UNPKG

ruru

Version:

Grafast-flavoured GraphiQL distribution

3 lines • 1.26 MB
/*! For license information please see ruru.js.LICENSE.txt */
var e,t,n,r,i={32112(){},75302(e,t,n){const r=n(19537);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 s(e){return r(e)||Array.isArray(e)||"function"==typeof e}e.exports=function(e,t,n){if(r(n)||(n={default:n}),!s(e))return void 0!==n.default?n.default:e;"number"==typeof t&&(t=String(t));const a=Array.isArray(t),l="string"==typeof t,u=n.separator||".",c=n.joinChar||("string"==typeof u?u:".");if(!l&&!a)return e;if(l&&t in e)return o(t,e,n)?e[t]:n.default;let d=a?t:function(e,t,n){return"function"==typeof n.split?n.split(e):e.split(t)}(t,u,n),p=d.length,f=0;do{let t=d[f];for("number"==typeof t&&(t=String(t));t&&"\\"===t.slice(-1);)t=i([t.slice(0,-1),d[++f]||""],c,n);if(t in e){if(!o(t,e,n))return n.default;e=e[t]}else{let r=!1,s=f+1;for(;s<p;)if(t=i([t,d[s++]],c,n),r=t in e){if(!o(t,e,n))return n.default;e=e[t],f=s-1;break}if(!r)return n.default}}while(++f<p&&s(e));return f===p?e:n.default}},60190(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&a.return&&a.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.defaultValue=C;var a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(14041)),l=n(68658);function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function f(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function h(e){return e.charAt(0).toUpperCase()+e.slice(1)}var m={keyword:"#B11A04",def:"#D2054E",property:"#1F61A0",qualifier:"#1C92A9",attribute:"#8B2BB9",number:"#2882F9",string:"#D64292",builtin:"#D47509",string2:"#0B7FC7",variable:"#397D13",atom:"#CA9800"},g=a.createElement("svg",{width:"12",height:"9"},a.createElement("path",{fill:"#666",d:"M 0 2 L 9 2 L 4.5 7.5 z"})),y=a.createElement("svg",{width:"12",height:"9"},a.createElement("path",{fill:"#666",d:"M 0 0 L 0 9 L 5.5 4.5 z"})),v=a.createElement("svg",{style:{marginRight:"3px",marginLeft:"-3px"},width:"12",height:"12",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.createElement("path",{d:"M16 0H2C0.9 0 0 0.9 0 2V16C0 17.1 0.9 18 2 18H16C17.1 18 18 17.1 18 16V2C18 0.9 17.1 0 16 0ZM16 16H2V2H16V16ZM14.99 6L13.58 4.58L6.99 11.17L4.41 8.6L2.99 10.01L6.99 14L14.99 6Z",fill:"#666"})),b=a.createElement("svg",{style:{marginRight:"3px",marginLeft:"-3px"},width:"12",height:"12",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.createElement("path",{d:"M16 2V16H2V2H16ZM16 0H2C0.9 0 0 0.9 0 2V16C0 17.1 0.9 18 2 18H16C17.1 18 18 17.1 18 16V2C18 0.9 17.1 0 16 0Z",fill:"#CCC"}));function E(e){return e.checked?e.styleConfig.checkboxChecked:e.styleConfig.checkboxUnchecked}function T(e){var t=e.getFields();if(t.id){var n=["id"];return t.email?n.push("email"):t.name&&n.push("name"),n}if(t.edges)return["edges"];if(t.node)return["node"];if(t.nodes)return["nodes"];var r=[];return Object.keys(t).forEach(function(e){(0,l.isLeafType)(t[e].type)&&r.push(e)}),r.length?r.slice(0,2):["__typename"]}function w(e){return(0,l.isNonNullType)(e.type)&&void 0===e.defaultValue}function k(e){for(var t=e;(0,l.isWrappingType)(t);)t=t.ofType;return t}function S(e,t){if("string"!=typeof t&&"VariableDefinition"===t.kind)return t.variable;if((0,l.isScalarType)(e))try{switch(e.name){case"String":return{kind:"StringValue",value:String(e.parseValue(t))};case"Float":return{kind:"FloatValue",value:String(e.parseValue(parseFloat(t)))};case"Int":return{kind:"IntValue",value:String(e.parseValue(parseInt(t,10)))};case"Boolean":try{var n=JSON.parse(t);return"boolean"==typeof n?{kind:"BooleanValue",value:n}:{kind:"BooleanValue",value:!1}}catch(e){return{kind:"BooleanValue",value:!1}}default:return{kind:"StringValue",value:String(e.parseValue(t))}}}catch(e){return console.error("error coercing arg value",e,t),{kind:"StringValue",value:t}}else try{var r=e.parseValue(t);return r?{kind:"EnumValue",value:String(r)}:{kind:"EnumValue",value:e.getValues()[0].name}}catch(t){return{kind:"EnumValue",value:e.getValues()[0].name}}}var x=function(e){function t(){var e,n,r;d(this,t);for(var i=arguments.length,s=Array(i),a=0;a<i;a++)s[a]=arguments[a];return n=r=p(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(s))),r._getArgSelection=function(){return r.props.selection.fields.find(function(e){return e.name.value===r.props.arg.name})},r._removeArg=function(){var e=r.props.selection,t=r._getArgSelection();r._previousArgSelection=t,r.props.modifyFields(e.fields.filter(function(e){return e!==t}),!0)},r._addArg=function(){var e=r.props,t=e.selection,n=e.arg,i=e.getDefaultScalarArgValue,o=e.parentField,s=e.makeDefaultArg,a=k(n.type),u=null;if(r._previousArgSelection)u=r._previousArgSelection;else if((0,l.isInputObjectType)(a)){var d=a.getFields();u={kind:"ObjectField",name:{kind:"Name",value:n.name},value:{kind:"ObjectValue",fields:O(i,s,o,Object.keys(d).map(function(e){return d[e]}))}}}else(0,l.isLeafType)(a)&&(u={kind:"ObjectField",name:{kind:"Name",value:n.name},value:i(o,n,a)});if(u)return r.props.modifyFields([].concat(c(t.fields||[]),[u]),!0);console.error("Unable to add arg for argType",a)},r._setArgValue=function(e,t){var n=!1,i=!1,s=!1;try{"VariableDefinition"===e.kind?i=!0:null==e?n=!0:"string"==typeof e.kind&&(s=!0)}catch(e){}var a=r.props.selection,u=r._getArgSelection();if(u){var c=k(r.props.arg.type);if((0,l.isLeafType)(c)||i||n||s){var d=void 0,p=void 0;return null==e?p=null:!e.target&&e.kind&&"VariableDefinition"===e.kind?p=(d=e).variable:"string"==typeof e.kind?p=e:e.target&&"string"==typeof e.target.value&&(d=e.target.value,p=S(c,d)),r.props.modifyFields((a.fields||[]).map(function(e){return e===u?o({},e,{value:p}):e}),t)}console.warn("Unable to handle non leaf types in InputArgView.setArgValue",e)}else console.error("missing arg selection when setting arg value")},r._modifyChildFields=function(e){return r.props.modifyFields(r.props.selection.fields.map(function(t){return t.name.value===r.props.arg.name?o({},t,{value:{kind:"ObjectValue",fields:e}}):t}),!0)},p(r,n)}return f(t,e),s(t,[{key:"render",value:function(){var e=this.props,t=e.arg,n=e.parentField,r=this._getArgSelection();return a.createElement(A,{argValue:r?r.value:null,arg:t,parentField:n,addArg:this._addArg,removeArg:this._removeArg,setArgFields:this._modifyChildFields,setArgValue:this._setArgValue,getDefaultScalarArgValue:this.props.getDefaultScalarArgValue,makeDefaultArg:this.props.makeDefaultArg,onRunOperation:this.props.onRunOperation,styleConfig:this.props.styleConfig,onCommit:this.props.onCommit,definition:this.props.definition})}}]),t}(a.PureComponent);function C(e){if((0,l.isEnumType)(e))return{kind:"EnumValue",value:e.getValues()[0].name};switch(e.name){case"String":default:return{kind:"StringValue",value:""};case"Float":return{kind:"FloatValue",value:"1.5"};case"Int":return{kind:"IntValue",value:"10"};case"Boolean":return{kind:"BooleanValue",value:!1}}}function _(e,t,n){return C(n)}var N=function(e){function t(){var e,n,r;d(this,t);for(var i=arguments.length,s=Array(i),a=0;a<i;a++)s[a]=arguments[a];return n=r=p(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(s))),r._getArgSelection=function(){return(r.props.selection.arguments||[]).find(function(e){return e.name.value===r.props.arg.name})},r._removeArg=function(e){var t=r.props.selection,n=r._getArgSelection();return r._previousArgSelection=n,r.props.modifyArguments((t.arguments||[]).filter(function(e){return e!==n}),e)},r._addArg=function(e){var t=r.props,n=t.selection,i=t.getDefaultScalarArgValue,o=t.makeDefaultArg,s=t.parentField,a=t.arg,u=k(a.type),d=null;if(r._previousArgSelection)d=r._previousArgSelection;else if((0,l.isInputObjectType)(u)){var p=u.getFields();d={kind:"Argument",name:{kind:"Name",value:a.name},value:{kind:"ObjectValue",fields:O(i,o,s,Object.keys(p).map(function(e){return p[e]}))}}}else(0,l.isLeafType)(u)&&(d={kind:"Argument",name:{kind:"Name",value:a.name},value:i(s,a,u)});return d?r.props.modifyArguments([].concat(c(n.arguments||[]),[d]),e):(console.error("Unable to add arg for argType",u),null)},r._setArgValue=function(e,t){var n=!1,i=!1,s=!1;try{"VariableDefinition"===e.kind?i=!0:null==e?n=!0:"string"==typeof e.kind&&(s=!0)}catch(e){}var a=r.props.selection,u=r._getArgSelection();if(u||i){var c=k(r.props.arg.type);if((0,l.isLeafType)(c)||i||n||s){var d=void 0,p=void 0;return null==e?p=null:e.target&&"string"==typeof e.target.value?(d=e.target.value,p=S(c,d)):e.target||"VariableDefinition"!==e.kind?"string"==typeof e.kind&&(p=e):p=(d=e).variable,r.props.modifyArguments((a.arguments||[]).map(function(e){return e===u?o({},e,{value:p}):e}),t)}console.warn("Unable to handle non leaf types in ArgView._setArgValue")}else console.error("missing arg selection when setting arg value")},r._setArgFields=function(e,t){var n=r.props.selection,i=r._getArgSelection();if(i)return r.props.modifyArguments((n.arguments||[]).map(function(t){return t===i?o({},t,{value:{kind:"ObjectValue",fields:e}}):t}),t);console.error("missing arg selection when setting arg value")},p(r,n)}return f(t,e),s(t,[{key:"render",value:function(){var e=this.props,t=e.arg,n=e.parentField,r=this._getArgSelection();return a.createElement(A,{argValue:r?r.value:null,arg:t,parentField:n,addArg:this._addArg,removeArg:this._removeArg,setArgFields:this._setArgFields,setArgValue:this._setArgValue,getDefaultScalarArgValue:this.props.getDefaultScalarArgValue,makeDefaultArg:this.props.makeDefaultArg,onRunOperation:this.props.onRunOperation,styleConfig:this.props.styleConfig,onCommit:this.props.onCommit,definition:this.props.definition})}}]),t}(a.PureComponent),D=function(e){function t(){var e,n,r;d(this,t);for(var i=arguments.length,o=Array(i),s=0;s<i;s++)o[s]=arguments[s];return n=r=p(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r._handleChange=function(e){r.props.setArgValue(e,!0)},p(r,n)}return f(t,e),s(t,[{key:"componentDidMount",value:function(){var e=this._ref,t=document.activeElement;!e||!t||t instanceof HTMLTextAreaElement||(e.focus(),e.setSelectionRange(0,e.value.length))}},{key:"render",value:function(){var e=this,t=this.props,n=t.arg,r=t.argValue,i=t.styleConfig,o=k(n.type),s="string"==typeof r.value?r.value:"",l="StringValue"===this.props.argValue.kind?i.colors.string:i.colors.number;return a.createElement("span",{style:{color:l}},"String"===o.name?'"':"",a.createElement("input",{style:{border:"none",borderBottom:"1px solid #888",outline:"none",width:Math.max(1,Math.min(15,s.length))+"ch",color:l},ref:function(t){e._ref=t},type:"text",onChange:this._handleChange,value:s}),"String"===o.name?'"':"")}}]),t}(a.PureComponent),A=function(e){function t(){var e,n,r;d(this,t);for(var i=arguments.length,o=Array(i),s=0;s<i;s++)o[s]=arguments[s];return n=r=p(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.state={displayArgActions:!1},p(r,n)}return f(t,e),s(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.argValue,r=t.arg,s=t.styleConfig,u=k(r.type),d=null;if(n)if("Variable"===n.kind)d=a.createElement("span",{style:{color:s.colors.variable}},"$",n.name.value);else if((0,l.isScalarType)(u))d="Boolean"===u.name?a.createElement("select",{style:{color:s.colors.builtin},onChange:this.props.setArgValue,value:"BooleanValue"===n.kind?n.value:void 0},a.createElement("option",{key:"true",value:"true"},"true"),a.createElement("option",{key:"false",value:"false"},"false")):a.createElement(D,{setArgValue:this.props.setArgValue,arg:r,argValue:n,onRunOperation:this.props.onRunOperation,styleConfig:this.props.styleConfig});else if((0,l.isEnumType)(u))"EnumValue"===n.kind?d=a.createElement("select",{style:{backgroundColor:"white",color:s.colors.string2},onChange:this.props.setArgValue,value:n.value},u.getValues().map(function(e){return a.createElement("option",{key:e.name,value:e.name},e.name)})):console.error("arg mismatch between arg and selection",u,n);else if((0,l.isInputObjectType)(u))if("ObjectValue"===n.kind){var p=u.getFields();d=a.createElement("div",{style:{marginLeft:16}},Object.keys(p).sort().map(function(t){return a.createElement(x,{key:t,arg:p[t],parentField:e.props.parentField,selection:n,modifyFields:e.props.setArgFields,getDefaultScalarArgValue:e.props.getDefaultScalarArgValue,makeDefaultArg:e.props.makeDefaultArg,onRunOperation:e.props.onRunOperation,styleConfig:e.props.styleConfig,onCommit:e.props.onCommit,definition:e.props.definition})}))}else console.error("arg mismatch between arg and selection",u,n);var f=n&&"Variable"===n.kind,h=this.state.displayArgActions?a.createElement("button",{type:"submit",className:"toolbar-button",title:f?"Remove the variable":"Extract the current value into a GraphQL variable",onClick:function(t){t.preventDefault(),t.stopPropagation(),f?function(){if(n&&n.name&&n.name.value){var t=n.name.value,r=(e.props.definition.variableDefinitions||[]).find(function(e){return e.variable.name.value===t});if(r){var i=r.defaultValue,s=e.props.setArgValue(i,{commit:!1});if(s){var a=s.definitions.find(function(t){return t.name.value===e.props.definition.name.value});if(!a)return;var u=0;(0,l.visit)(a,{Variable:function(e){e.name.value===t&&(u+=1)}});var c=a.variableDefinitions||[];u<2&&(c=c.filter(function(e){return e.variable.name.value!==t}));var d=o({},a,{variableDefinitions:c}),p=s.definitions.map(function(e){return a===e?d:e}),f=o({},s,{definitions:p});e.props.onCommit(f)}}}}():function(){var t,s=r.name,a=(e.props.definition.variableDefinitions||[]).filter(function(e){return e.variable.name.value.startsWith(s)}).length;t=a>0?""+s+a:s;var u=r.type.toString(),d={kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:t}},type:(0,l.parseType)(u),directives:[]},p=void 0,f={};if(null!=n){var h=(0,l.visit)(n,{Variable:function(t){var n,r=t.name.value,i=(n=r,(e.props.definition.variableDefinitions||[]).find(function(e){return e.variable.name.value===n}));if(f[r]=f[r]+1||1,i)return i.defaultValue}}),m="NonNullType"===d.type.kind?o({},d,{type:d.type.type}):d;p=o({},m,{defaultValue:h})}else p=d;var g=Object.entries(f).filter(function(e){var t=i(e,2);return t[0],t[1]<2}).map(function(e){var t=i(e,2),n=t[0];return t[1],n});if(p){var y=e.props.setArgValue(p,!1);if(y){var v=y.definitions.find(function(t){return!!(t.operation&&t.name&&t.name.value&&e.props.definition.name&&e.props.definition.name.value)&&t.name.value===e.props.definition.name.value}),b=[].concat(c(v.variableDefinitions||[]),[p]).filter(function(e){return-1===g.indexOf(e.variable.name.value)}),E=o({},v,{variableDefinitions:b}),T=y.definitions.map(function(e){return v===e?E:e}),w=o({},y,{definitions:T});e.props.onCommit(w)}}}()},style:s.styles.actionButtonStyle},a.createElement("span",{style:{color:s.colors.variable}},"$")):null;return a.createElement("div",{style:{cursor:"pointer",minHeight:"16px",WebkitUserSelect:"none",userSelect:"none"},"data-arg-name":r.name,"data-arg-type":u.name,className:"graphiql-explorer-"+r.name},a.createElement("span",{style:{cursor:"pointer"},onClick:function(t){var r=!n;r?e.props.addArg(!0):e.props.removeArg(!0),e.setState({displayArgActions:r})}},(0,l.isInputObjectType)(u)?a.createElement("span",null,n?this.props.styleConfig.arrowOpen:this.props.styleConfig.arrowClosed):a.createElement(E,{checked:!!n,styleConfig:this.props.styleConfig}),a.createElement("span",{style:{color:s.colors.attribute},title:r.description,onMouseEnter:function(){null!=n&&e.setState({displayArgActions:!0})},onMouseLeave:function(){return e.setState({displayArgActions:!1})}},r.name,w(r)?"*":"",": ",h," ")," "),d||a.createElement("span",null)," ")}}]),t}(a.PureComponent),L=function(e){function t(){var e,n,r;d(this,t);for(var i=arguments.length,o=Array(i),s=0;s<i;s++)o[s]=arguments[s];return n=r=p(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r._addFragment=function(){r.props.modifySelections([].concat(c(r.props.selections),[r._previousSelection||{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:r.props.implementingType.name}},selectionSet:{kind:"SelectionSet",selections:r.props.getDefaultFieldNames(r.props.implementingType).map(function(e){return{kind:"Field",name:{kind:"Name",value:e}}})}}]))},r._removeFragment=function(){var e=r._getSelection();r._previousSelection=e,r.props.modifySelections(r.props.selections.filter(function(t){return t!==e}))},r._getSelection=function(){var e=r.props.selections.find(function(e){return"InlineFragment"===e.kind&&e.typeCondition&&r.props.implementingType.name===e.typeCondition.name.value});return e?"InlineFragment"===e.kind?e:void 0:null},r._modifyChildSelections=function(e,t){var n=r._getSelection();return r.props.modifySelections(r.props.selections.map(function(t){return t===n?{directives:t.directives,kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:r.props.implementingType.name}},selectionSet:{kind:"SelectionSet",selections:e}}:t}),t)},p(r,n)}return f(t,e),s(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.implementingType,r=t.schema,i=t.getDefaultFieldNames,o=t.styleConfig,s=this._getSelection(),l=n.getFields(),u=s&&s.selectionSet?s.selectionSet.selections:[];return a.createElement("div",{className:"graphiql-explorer-"+n.name},a.createElement("span",{style:{cursor:"pointer"},onClick:s?this._removeFragment:this._addFragment},a.createElement(E,{checked:!!s,styleConfig:this.props.styleConfig}),a.createElement("span",{style:{color:o.colors.atom}},this.props.implementingType.name)),s?a.createElement("div",{style:{marginLeft:16}},Object.keys(l).sort().map(function(t){return a.createElement(F,{key:t,field:l[t],selections:u,modifySelections:e._modifyChildSelections,schema:r,getDefaultFieldNames:i,getDefaultScalarArgValue:e.props.getDefaultScalarArgValue,makeDefaultArg:e.props.makeDefaultArg,onRunOperation:e.props.onRunOperation,onCommit:e.props.onCommit,styleConfig:e.props.styleConfig,definition:e.props.definition,availableFragments:e.props.availableFragments})})):null)}}]),t}(a.PureComponent),I=function(e){function t(){var e,n,r;d(this,t);for(var i=arguments.length,o=Array(i),s=0;s<i;s++)o[s]=arguments[s];return n=r=p(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r._addFragment=function(){r.props.modifySelections([].concat(c(r.props.selections),[r._previousSelection||{kind:"FragmentSpread",name:r.props.fragment.name}]))},r._removeFragment=function(){var e=r._getSelection();r._previousSelection=e,r.props.modifySelections(r.props.selections.filter(function(e){return!("FragmentSpread"===e.kind&&e.name.value===r.props.fragment.name.value)}))},r._getSelection=function(){return r.props.selections.find(function(e){return"FragmentSpread"===e.kind&&e.name.value===r.props.fragment.name.value})},p(r,n)}return f(t,e),s(t,[{key:"render",value:function(){var e=this.props.styleConfig,t=this._getSelection();return a.createElement("div",{className:"graphiql-explorer-"+this.props.fragment.name.value},a.createElement("span",{style:{cursor:"pointer"},onClick:t?this._removeFragment:this._addFragment},a.createElement(E,{checked:!!t,styleConfig:this.props.styleConfig}),a.createElement("span",{style:{color:e.colors.def},className:"graphiql-explorer-"+this.props.fragment.name.value},this.props.fragment.name.value)))}}]),t}(a.PureComponent);function O(e,t,n,r){var i=[],o=!0,s=!1,a=void 0;try{for(var u,c=r[Symbol.iterator]();!(o=(u=c.next()).done);o=!0){var d=u.value;if((0,l.isRequiredInputField)(d)||t&&t(n,d)){var p=k(d.type);(0,l.isInputObjectType)(p)?function(){var r=p.getFields();i.push({kind:"ObjectField",name:{kind:"Name",value:d.name},value:{kind:"ObjectValue",fields:O(e,t,n,Object.keys(r).map(function(e){return r[e]}))}})}():(0,l.isLeafType)(p)&&i.push({kind:"ObjectField",name:{kind:"Name",value:d.name},value:e(n,d,p)})}}}catch(e){s=!0,a=e}finally{try{!o&&c.return&&c.return()}finally{if(s)throw a}}return i}function R(e,t,n){var r=[],i=!0,o=!1,s=void 0;try{for(var a,u=n.args[Symbol.iterator]();!(i=(a=u.next()).done);i=!0){var c=a.value;if(w(c)||t&&t(n,c)){var d=k(c.type);(0,l.isInputObjectType)(d)?function(){var i=d.getFields();r.push({kind:"Argument",name:{kind:"Name",value:c.name},value:{kind:"ObjectValue",fields:O(e,t,n,Object.keys(i).map(function(e){return i[e]}))}})}():(0,l.isLeafType)(d)&&r.push({kind:"Argument",name:{kind:"Name",value:c.name},value:e(n,c,d)})}}}catch(e){o=!0,s=e}finally{try{!i&&u.return&&u.return()}finally{if(o)throw s}}return r}var F=function(e){function t(){var e,n,r;d(this,t);for(var i=arguments.length,o=Array(i),s=0;s<i;s++)o[s]=arguments[s];return n=r=p(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.state={displayFieldActions:!1},r._addAllFieldsToSelections=function(e){var t={kind:"SelectionSet",selections:e?Object.keys(e).map(function(e){return{kind:"Field",name:{kind:"Name",value:e},arguments:[]}}):[]},n=[].concat(c(r.props.selections.filter(function(e){return"InlineFragment"===e.kind||e.name.value!==r.props.field.name})),[{kind:"Field",name:{kind:"Name",value:r.props.field.name},arguments:R(r.props.getDefaultScalarArgValue,r.props.makeDefaultArg,r.props.field),selectionSet:t}]);r.props.modifySelections(n)},r._addFieldToSelections=function(e){var t=[].concat(c(r.props.selections),[r._previousSelection||{kind:"Field",name:{kind:"Name",value:r.props.field.name},arguments:R(r.props.getDefaultScalarArgValue,r.props.makeDefaultArg,r.props.field)}]);r.props.modifySelections(t)},r._handleUpdateSelections=function(e){if(r._getSelection()&&!e.altKey)r._removeFieldFromSelections();else{var t=(0,l.getNamedType)(r.props.field.type),n=(0,l.isObjectType)(t)&&t.getFields();n&&e.altKey?r._addAllFieldsToSelections(n):r._addFieldToSelections(n)}},r._removeFieldFromSelections=function(){var e=r._getSelection();r._previousSelection=e,r.props.modifySelections(r.props.selections.filter(function(t){return t!==e}))},r._getSelection=function(){var e=r.props.selections.find(function(e){return"Field"===e.kind&&r.props.field.name===e.name.value});return e?"Field"===e.kind?e:void 0:null},r._setArguments=function(e,t){var n=r._getSelection();if(n)return r.props.modifySelections(r.props.selections.map(function(t){return t===n?{alias:n.alias,arguments:e,directives:n.directives,kind:"Field",name:n.name,selectionSet:n.selectionSet}:t}),t);console.error("Missing selection when setting arguments",e)},r._modifyChildSelections=function(e,t){return r.props.modifySelections(r.props.selections.map(function(t){if("Field"===t.kind&&r.props.field.name===t.name.value){if("Field"!==t.kind)throw new Error("invalid selection");return{alias:t.alias,arguments:t.arguments,directives:t.directives,kind:"Field",name:t.name,selectionSet:{kind:"SelectionSet",selections:e}}}return t}),t)},p(r,n)}return f(t,e),s(t,[{key:"render",value:function(){var e=this,n=this.props,r=n.field,i=n.schema,s=n.getDefaultFieldNames,u=n.styleConfig,d=this._getSelection(),p=function(e){for(var t=e;(0,l.isWrappingType)(t);)t=t.ofType;return t}(r.type),f=r.args.sort(function(e,t){return e.name.localeCompare(t.name)}),h="graphiql-explorer-node graphiql-explorer-"+r.name;r.isDeprecated&&(h+=" graphiql-explorer-deprecated");var m=(0,l.isObjectType)(p)||(0,l.isInterfaceType)(p)||(0,l.isUnionType)(p)?this.props.availableFragments&&this.props.availableFragments[p.name]:null,g=a.createElement("div",{className:h},a.createElement("span",{title:r.description,style:{cursor:"pointer",display:"inline-flex",alignItems:"center",minHeight:"16px",WebkitUserSelect:"none",userSelect:"none"},"data-field-name":r.name,"data-field-type":p.name,onClick:this._handleUpdateSelections,onMouseEnter:function(){(0,l.isObjectType)(p)&&d&&d.selectionSet&&d.selectionSet.selections.filter(function(e){return"FragmentSpread"!==e.kind}).length>0&&e.setState({displayFieldActions:!0})},onMouseLeave:function(){return e.setState({displayFieldActions:!1})}},(0,l.isObjectType)(p)?a.createElement("span",null,d?this.props.styleConfig.arrowOpen:this.props.styleConfig.arrowClosed):null,(0,l.isObjectType)(p)?null:a.createElement(E,{checked:!!d,styleConfig:this.props.styleConfig}),a.createElement("span",{style:{color:u.colors.property},className:"graphiql-explorer-field-view"},r.name),this.state.displayFieldActions?a.createElement("button",{type:"submit",className:"toolbar-button",title:"Extract selections into a new reusable fragment",onClick:function(t){t.preventDefault(),t.stopPropagation();var n=p.name+"Fragment",r=(m||[]).filter(function(e){return e.name.value.startsWith(n)}).length;r>0&&(n=""+n+r);var i=d&&d.selectionSet?d.selectionSet.selections:[],s=[{kind:"FragmentSpread",name:{kind:"Name",value:n},directives:[]}],a={kind:"FragmentDefinition",name:{kind:"Name",value:n},typeCondition:{kind:"NamedType",name:{kind:"Name",value:p.name}},directives:[],selectionSet:{kind:"SelectionSet",selections:i}},l=e._modifyChildSelections(s,!1);if(l){var u=o({},l,{definitions:[].concat(c(l.definitions),[a])});e.props.onCommit(u)}else console.warn("Unable to complete extractFragment operation")},style:o({},u.styles.actionButtonStyle)},a.createElement("span",null,"…")):null),d&&f.length?a.createElement("div",{style:{marginLeft:16},className:"graphiql-explorer-graphql-arguments"},f.map(function(t){return a.createElement(N,{key:t.name,parentField:r,arg:t,selection:d,modifyArguments:e._setArguments,getDefaultScalarArgValue:e.props.getDefaultScalarArgValue,makeDefaultArg:e.props.makeDefaultArg,onRunOperation:e.props.onRunOperation,styleConfig:e.props.styleConfig,onCommit:e.props.onCommit,definition:e.props.definition})})):null);if(d&&((0,l.isObjectType)(p)||(0,l.isInterfaceType)(p)||(0,l.isUnionType)(p))){var y=(0,l.isUnionType)(p)?{}:p.getFields(),v=d&&d.selectionSet?d.selectionSet.selections:[];return a.createElement("div",{className:"graphiql-explorer-"+r.name},g,a.createElement("div",{style:{marginLeft:16}},m?m.map(function(t){var n=i.getType(t.typeCondition.name.value),r=t.name.value;return n?a.createElement(I,{key:r,fragment:t,selections:v,modifySelections:e._modifyChildSelections,schema:i,styleConfig:e.props.styleConfig,onCommit:e.props.onCommit}):null}):null,Object.keys(y).sort().map(function(n){return a.createElement(t,{key:n,field:y[n],selections:v,modifySelections:e._modifyChildSelections,schema:i,getDefaultFieldNames:s,getDefaultScalarArgValue:e.props.getDefaultScalarArgValue,makeDefaultArg:e.props.makeDefaultArg,onRunOperation:e.props.onRunOperation,styleConfig:e.props.styleConfig,onCommit:e.props.onCommit,definition:e.props.definition,availableFragments:e.props.availableFragments})}),(0,l.isInterfaceType)(p)||(0,l.isUnionType)(p)?i.getPossibleTypes(p).map(function(t){return a.createElement(L,{key:t.name,implementingType:t,selections:v,modifySelections:e._modifyChildSelections,schema:i,getDefaultFieldNames:s,getDefaultScalarArgValue:e.props.getDefaultScalarArgValue,makeDefaultArg:e.props.makeDefaultArg,onRunOperation:e.props.onRunOperation,styleConfig:e.props.styleConfig,onCommit:e.props.onCommit,definition:e.props.definition})}):null))}return g}}]),t}(a.PureComponent),P={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",variableDefinitions:[],name:{kind:"Name",value:"MyQuery"},directives:[],selectionSet:{kind:"SelectionSet",selections:[]}}]},M=null;var j={buttonStyle:{fontSize:"1.2em",padding:"0px",backgroundColor:"white",border:"none",margin:"5px 0px",height:"40px",width:"100%",display:"block",maxWidth:"none"},actionButtonStyle:{padding:"0px",backgroundColor:"white",border:"none",margin:"0px",maxWidth:"none",height:"15px",width:"15px",display:"inline-block",fontSize:"smaller"},explorerActionsStyle:{margin:"4px -8px -8px",paddingLeft:"8px",bottom:"0px",width:"100%",textAlign:"center",background:"none",borderTop:"none",borderBottom:"none"}},V=function(e){function t(){var e,n,r;d(this,t);for(var i=arguments.length,s=Array(i),a=0;a<i;a++)s[a]=arguments[a];return n=r=p(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(s))),r.state={newOperationType:"query",displayTitleActions:!1},r._modifySelections=function(e,t){var n=r.props.definition;0===n.selectionSet.selections.length&&r._previousOperationDef&&(n=r._previousOperationDef);var i=void 0;if("FragmentDefinition"===n.kind)i=o({},n,{selectionSet:o({},n.selectionSet,{selections:e})});else if("OperationDefinition"===n.kind){var s=e.filter(function(e){return!("Field"===e.kind&&"__typename"===e.name.value)});0===s.length&&(s=[{kind:"Field",name:{kind:"Name",value:"__typename ## Placeholder value"}}]),i=o({},n,{selectionSet:o({},n.selectionSet,{selections:s})})}return r.props.onEdit(i,t)},r._onOperationRename=function(e){return r.props.onOperationRename(e.target.value)},r._handlePotentialRun=function(e){(function(e){return e.ctrlKey&&"Enter"===e.key})(e)&&"FragmentDefinition"!==r.props.definition.kind&&r.props.onRunOperation(r.props.name)},r._rootViewElId=function(){var e=r.props;return e.operationType+"-"+(e.name||"unknown")},p(r,n)}return f(t,e),s(t,[{key:"componentDidMount",value:function(){var e=this._rootViewElId();this.props.onMount(e)}},{key:"render",value:function(){var e=this,t=this.props,n=t.operationType,r=t.definition,i=t.schema,s=t.getDefaultFieldNames,l=t.styleConfig,u=this._rootViewElId(),c=this.props.fields||{},d=r.selectionSet.selections,p=this.props.name||h(n)+" Name";return a.createElement("div",{id:u,tabIndex:"0",onKeyDown:this._handlePotentialRun,style:{borderBottom:this.props.isLast?"none":"1px solid #d6d6d6",marginBottom:"0em",paddingBottom:"1em"}},a.createElement("div",{style:{color:l.colors.keyword,paddingBottom:4},className:"graphiql-operation-title-bar",onMouseEnter:function(){return e.setState({displayTitleActions:!0})},onMouseLeave:function(){return e.setState({displayTitleActions:!1})}},n," ",a.createElement("span",{style:{color:l.colors.def}},a.createElement("input",{style:{color:l.colors.def,border:"none",borderBottom:"1px solid #888",outline:"none",width:Math.max(4,p.length)+"ch"},autoComplete:"false",placeholder:h(n)+" Name",value:this.props.name,onKeyDown:this._handlePotentialRun,onChange:this._onOperationRename})),this.props.onTypeName?a.createElement("span",null,a.createElement("br",null),"on "+this.props.onTypeName):"",this.state.displayTitleActions?a.createElement(a.Fragment,null,a.createElement("button",{type:"submit",className:"toolbar-button",onClick:function(){return e.props.onOperationDestroy()},style:o({},l.styles.actionButtonStyle)},a.createElement("span",null,"✕")),a.createElement("button",{type:"submit",className:"toolbar-button",onClick:function(){return e.props.onOperationClone()},style:o({},l.styles.actionButtonStyle)},a.createElement("span",null,"⎘"))):""),Object.keys(c).sort().map(function(t){return a.createElement(F,{key:t,field:c[t],selections:d,modifySelections:e._modifySelections,schema:i,getDefaultFieldNames:s,getDefaultScalarArgValue:e.props.getDefaultScalarArgValue,makeDefaultArg:e.props.makeDefaultArg,onRunOperation:e.props.onRunOperation,styleConfig:e.props.styleConfig,onCommit:e.props.onCommit,definition:e.props.definition,availableFragments:e.props.availableFragments})}))}}]),t}(a.PureComponent);function K(){return a.createElement("div",{style:{fontFamily:"sans-serif",display:"flex",flexDirection:"column",alignItems:"center",margin:"1em",marginTop:0,flexGrow:1,justifyContent:"flex-end"}},a.createElement("div",{style:{borderTop:"1px solid #d6d6d6",paddingTop:"1em",width:"100%",textAlign:"center"}},"GraphiQL Explorer by ",a.createElement("a",{href:"https://www.onegraph.com"},"OneGraph")),a.createElement("div",null,"Contribute on"," ",a.createElement("a",{href:"https://github.com/OneGraph/graphiql-explorer"},"GitHub")))}var U=function(e){function t(){var e,n,r;d(this,t);for(var i=arguments.length,o=Array(i),s=0;s<i;s++)o[s]=arguments[s];return n=r=p(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.state={newOperationType:"query",operation:null,operationToScrollTo:null},r._resetScroll=function(){var e=r._ref;e&&(e.scrollLeft=0)},r._onEdit=function(e){return r.props.onEdit(e)},r._setAddOperationType=function(e){r.setState({newOperationType:e})},r._handleRootViewMount=function(e){if(r.state.operationToScrollTo&&r.state.operationToScrollTo===e){var t=".graphiql-explorer-root #"+e,n=document.querySelector(t);n&&n.scrollIntoView()}},p(r,n)}return f(t,e),s(t,[{key:"componentDidMount",value:function(){this._resetScroll()}},{key:"render",value:function(){var e=this,t=this.props,n=t.schema,i=t.query,s=t.makeDefaultArg;if(!n)return a.createElement("div",{style:{fontFamily:"sans-serif"},className:"error-container"},"No Schema Available");var d={colors:this.props.colors||m,checkboxChecked:this.props.checkboxChecked||v,checkboxUnchecked:this.props.checkboxUnchecked||b,arrowClosed:this.props.arrowClosed||y,arrowOpen:this.props.arrowOpen||g,styles:this.props.styles?o({},j,this.props.styles):j},p=n.getQueryType(),f=n.getMutationType(),E=n.getSubscriptionType();if(!p&&!f&&!E)return a.createElement("div",null,"Missing query type");var w=p&&p.getFields(),k=f&&f.getFields(),S=E&&E.getFields(),x=function(e){if(M&&M[0]===e)return M[1];var t=function(e){try{return e.trim()?(0,l.parse)(e,{noLocation:!0}):null}catch(e){return new Error(e)}}(e);return t?t instanceof Error?M?M[1]:P:(M=[e,t],t):P}(i),C=this.props.getDefaultFieldNames||T,N=this.props.getDefaultScalarArgValue||_,D=x.definitions.map(function(e){return"FragmentDefinition"===e.kind||"OperationDefinition"===e.kind?e:null}).filter(Boolean),A=0===D.length?P.definitions:D,L=[w?a.createElement("option",{key:"query",className:"toolbar-button",style:d.styles.buttonStyle,type:"link",value:"query"},"Query"):null,k?a.createElement("option",{key:"mutation",className:"toolbar-button",style:d.styles.buttonStyle,type:"link",value:"mutation"},"Mutation"):null,S?a.createElement("option",{key:"subscription",className:"toolbar-button",style:d.styles.buttonStyle,type:"link",value:"subscription"},"Subscription"):null].filter(Boolean),I=0===L.length||this.props.hideActions?null:a.createElement("div",{style:{minHeight:"50px",maxHeight:"50px",overflow:"none"}},a.createElement("form",{className:"variable-editor-title graphiql-explorer-actions",style:o({},d.styles.explorerActionsStyle,{display:"flex",flexDirection:"row",alignItems:"center",borderTop:"1px solid rgb(214, 214, 214)"}),onSubmit:function(e){return e.preventDefault()}},a.createElement("span",{style:{display:"inline-block",flexGrow:"0",textAlign:"right"}},"Add new"," "),a.createElement("select",{onChange:function(t){return e._setAddOperationType(t.target.value)},value:this.state.newOperationType,style:{flexGrow:"2"}},L),a.createElement("button",{type:"submit",className:"toolbar-button",onClick:function(){return e.state.newOperationType?(t=e.state.newOperationType,n=x.definitions,i=(r=1===x.definitions.length&&x.definitions[0]===P.definitions[0])?[]:n.filter(function(e){return"OperationDefinition"===e.kind&&e.operation===t}),s="My"+h(t)+(0===i.length?"":i.length+1),a={kind:"OperationDefinition",operation:t,name:{kind:"Name",value:s},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename # Placeholder value",loc:null},arguments:[],directives:[],selectionSet:null,loc:null}],loc:null},loc:null},u=r?[a]:[].concat(c(x.definitions),[a]),d=o({},x,{definitions:u}),e.setState({operationToScrollTo:t+"-"+s}),void e.props.onEdit((0,l.print)(d))):null;var t,n,r,i,s,a,u,d},style:o({},d.styles.buttonStyle,{height:"22px",width:"22px"})},a.createElement("span",null,"+")))),O=this.props.externalFragments&&this.props.externalFragments.reduce(function(e,t){if("FragmentDefinition"===t.kind){var n=t.typeCondition.name.value,r=e[n]||[],i=[].concat(c(r),[t]).sort(function(e,t){return e.name.value.localeCompare(t.name.value)});return o({},e,u({},n,i))}return e},{}),R=A.reduce(function(e,t){if("FragmentDefinition"===t.kind){var n=t.typeCondition.name.value,r=e[n]||[],i=[].concat(c(r),[t]).sort(function(e,t){return e.name.value.localeCompare(t.name.value)});return o({},e,u({},n,i))}return e},{}),F=o({},R,O),U=this.props.showAttribution?a.createElement(K,null):null;return a.createElement("div",{ref:function(t){e._ref=t},style:{fontSize:12,textOverflow:"ellipsis",whiteSpace:"nowrap",margin:0,padding:8,fontFamily:'Consolas, Inconsolata, "Droid Sans Mono", Monaco, monospace',display:"flex",flexDirection:"column",height:"100%"},className:"graphiql-explorer-root"},a.createElement("div",{style:{flexGrow:"1",overflow:"scroll"}},A.map(function(t,i){var u=t&&t.name&&t.name.value,p="FragmentDefinition"===t.kind?"fragment":t&&t.operation||"query",f="FragmentDefinition"===t.kind&&"NamedType"===t.typeCondition.kind&&n.getType(t.typeCondition.name.value),h=f instanceof l.GraphQLObjectType?f.getFields():null,m="query"===p?w:"mutation"===p?k:"subscription"===p?S:"FragmentDefinition"===t.kind?h:null,g="FragmentDefinition"===t.kind?t.typeCondition.name.value:null,y=function(t){var n=(0,l.print)(t);e.props.onEdit(n)};return a.createElement(V,{key:i,isLast:i===A.length-1,fields:m,operationType:p,name:u,definition:t,onOperationRename:function(n){var r,i,s,a,u=(s=o({},r=t,{name:null==(i=n)||""===i?null:{kind:"Name",value:i,loc:void 0}}),a=x.definitions.map(function(e){return r===e?s:e}),o({},x,{definitions:a}));e.props.onEdit((0,l.print)(u))},onOperationDestroy:function(){var n,r,i=(n=t,r=x.definitions.filter(function(e){return n!==e}),o({},x,{definitions:r}));e.props.onEdit((0,l.print)(i))},onOperationClone:function(){var n=function(t){var n;n="FragmentDefinition"===t.kind?"fragment":t.operation;var r=(t.name&&t.name.value||"")+"Copy",i=o({},t,{name:{kind:"Name",value:r,loc:void 0}}),s=x.definitions,a=[].concat(c(s),[i]);return e.setState({operationToScrollTo:n+"-"+r}),o({},x,{definitions:a})}(t);e.props.onEdit((0,l.print)(n))},onTypeName:g,onMount:e._handleRootViewMount,onCommit:y,onEdit:function(e,n){var i;if(i="object"!==(void 0===n?"undefined":r(n))||void 0===n.commit||n.commit,e){var s=o({},x,{definitions:x.definitions.map(function(n){return n===t?e:n})});return i?(y(s),s):s}return x},schema:n,getDefaultFieldNames:C,getDefaultScalarArgValue:N,makeDefaultArg:s,onRunOperation:function(){e.props.onRunOperation&&e.props.onRunOperation(u)},styleConfig:d,availableFragments:F})}),U),I)}}]),t}(a.PureComponent);U.defaultProps={getDefaultFieldNames:T,getDefaultScalarArgValue:_};var B=function(e){function t(){var e,n,r;d(this,t);for(var i=arguments.length,o=Array(i),s=0;s<i;s++)o[s]=arguments[s];return n=r=p(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.state={hasError:!1,error:null,errorInfo:null},p(r,n)}return f(t,e),s(t,[{key:"componentDidCatch",value:function(e,t){this.setState({hasError:!0,error:e,errorInfo:t}),console.error("Error in component",e,t)}},{key:"render",value:function(){return this.state.hasError?a.createElement("div",{style:{padding:18,fontFamily:"sans-serif"}},a.createElement("div",null,"Something went wrong"),a.createElement("details",{style:{whiteSpace:"pre-wrap"}},this.state.error?this.state.error.toString():null,a.createElement("br",null),this.state.errorInfo?this.state.errorInfo.componentStack:null)):this.props.children}}]),t}(a.Component),$=function(e){function t(){return d(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,e),s(t,[{key:"render",value:function(){return a.createElement("div",{className:"docExplorerWrap",style:{height:"100%",width:this.props.width,minWidth:this.props.width,zIndex:7,display:this.props.explorerIsOpen?"flex":"none",flexDirection:"column",overflow:"hidden"}},a.createElement("div",{className:"doc-explorer-title-bar"},a.createElement("div",{className:"doc-explorer-title"},this.props.title),a.createElement("div",{className:"doc-explorer-rhs"},a.createElement("div",{className:"docExplorerHide",onClick:this.props.onToggleExplorer},"✕"))),a.createElement("div",{className:"doc-explorer-contents",style:{padding:"0px",overflowY:"unset"}},a.createElement(B,null,a.createElement(U,this.props))))}}]),t}(a.PureComponent);$.defaultValue=C,$.defaultProps={width:320,title:"Explorer"},t.default=$},12833(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Explorer=void 0;var r,i=(r=n(60190))&&r.__esModule?r:{default:r};t.Explorer=i.default,t.default=i.default},37066(e,t,n){n.r(t),n.d(t,{CharacterStream:()=>i.CharacterStream,CompletionItemKind:()=>o.CompletionItemKind,DIAGNOSTIC_SEVERITY:()=>r.DIAGNOSTIC_SEVERITY,FileChangeTypeKind:()=>o.FileChangeTypeKind,GraphQLDocumentMode:()=>i.GraphQLDocumentMode,LexRules:()=>i.LexRules,ParseRules:()=>i.ParseRules,Position:()=>s.Position,Range:()=>s.Range,RuleKinds:()=>i.RuleKinds,SEVERITY:()=>r.SEVERITY,SuggestionCommand:()=>r.SuggestionCommand,canUseDirective:()=>r.canUseDirective,collectVariables:()=>s.collectVariables,getASTNodeAtPosition:()=>s.getASTNodeAtPosition,getAutocompleteSuggestions:()=>r.getAutocompleteSuggestions,getContextAtPosition:()=>i.getContextAtPosition,getDefinitionQueryResultForArgument:()=>r.getDefinitionQueryResultForArgument,getDefinitionQueryResultForDefinitionNode:()=>r.getDefinitionQueryResultForDefinitionNode,getDefinitionQueryResultForField:()=>r.getDefinitionQueryResultForField,getDefinitionQueryResultForFragmentSpread:()=>r.getDefinitionQueryResultForFragmentSpread,getDefinitionQueryResultForNamedType:()=>r.getDefinitionQueryResultForNamedType,getDefinitionState:()=>i.getDefinitionState,getDiagnostics:()=>r.getDiagnostics,getFieldDef:()=>i.getFieldDef,getFragmentDefinitions:()=>r.getFragmentDefinitions,getFragmentDependencies:()=>s.getFragmentDependencies,getFragmentDependenciesForAST:()=>s.getFragmentDependenciesForAST,getHoverInformation:()=>r.getHoverInformation,getOperationASTFacts:()=>s.getOperationASTFacts,getOperationFacts:()=>s.getOperationFacts,getOutline:()=>r.getOutline,getQueryFacts:()=>s.getQueryFacts,getRange:()=>r.getRange,getTokenAtPosition:()=>i.getTokenAtPosition,getTypeInfo:()=>r.getTypeInfo,getVariableCompletions:()=>r.getVariableCompletions,getVariablesJSONSchema:()=>s.getVariablesJSONSchema,isIgnored:()=>i.isIgnored,list:()=>i.list,offsetToPosition:()=>s.offsetToPosition,onlineParser:()=>i.onlineParser,opt:()=>i.opt,p:()=>i.p,pointToOffset:()=>s.pointToOffset,t:()=>i.t,validateQuery:()=>r.validateQuery,validateWithCustomRules:()=>s.validateWithCustomRules});var r=n(79302),i=n(620),o=n(2503),s=n(13924)},83883(e,t,n){n.r(t),n.d(t,{getFieldInsertText:()=>d,getInputInsertText:()=>c,getInsertText:()=>u,hintList:()=>o,objectValues:()=>i});var r=n(73663);function i(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 o(e,t){return function(e,t){if(!t||""===t.trim()||":"===t.trim()||"{"===t.trim())return s(e,e=>!e.isDeprecated);return s(s(e.map(e=>({proximity:l(a(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,a(e.string))}function s(e,t){const n=e.filter(t);return 0===n.length?e:n}function a(e){return e.toLowerCase().replaceAll(/\W/g,"")}function l(e,t){let n=function(e,t){let n,r;const i=[],o=e.length,s=t.length;for(n=0;n<=o;n++)i[n]=[n];for(r=1;r<=s;r++)i[0][r]=r;for(n=1;n<=o;n++)for(r=1;r<=s;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][s]}(t,e);return e.length>t.length&&(n-=e.length-t.length-1,n+=0===e.indexOf(t)?0:.5),n}const u=(e,t,n)=>{if(!t)return null!=n?n:e;const i=(0,r.getNamedType)(t);return(0,r.isObjectType)(i)||(0,r.isInputObjectType)(i)||(0,r.isListType)(i)||(0,r.isAbstractType)(i)?e+" {\n   $1\n}":null!=n?n:e},c=(e,t,n)=>{if((0,r.isListType)(t)){const n=(0,r.getNamedType)(t.ofType);return e+`[${u("",n,"$1")}]`}return u(e,t,n)},d=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}`)}) ${u("",e.type,"\n")}`}},16177(e,t,n){n.r(t),n.d(t,{SuggestionCommand:()=>m,canUseDirective:()=>T,getAutocompleteSuggestions:()=>g,getFragmentDefinitions:()=>E,getTypeInfo:()=>p.getTypeInfo,getVariableCompletions:()=>b,runOnlineParser:()=>p.runOnlineParser});var r=n(73663),i=n(42455),o=n(84143),s=n(28957),a=n(98195),l=n(90424),u=n(42868),c=n(64917),d=n(2503),p=n(620),f=n(83883),h=n(32852);const m={command:"editor.action.triggerSuggest",title:"Suggestions"};function g(e,t,n,u,g,k){var S;const x=Object.assign(Object.assign({},k),{schema:e}),C=(0,p.getContextAtPosition)(t,n,e,u,k);if(!C)return[];const{state:_,typeInfo:N,mode:D,token:A}=C,{kind:L,step:I,prevState:O}=_;if(L===p.RuleKinds.DOCUMENT)return D===p.GraphQLDocumentMode.TYPE_SYSTEM?function(e){return(0,f.hintList)(e,[{label:"extend",kind:d.CompletionItemKind.Function},...y])}(A):D===p.GraphQLDocumentMode.EXECUTABLE?function(e){return(0,f.hintList)(e,v)}(A):function(e){return(0,f.hintList)(e,[{label:"extend",kind:d.CompletionItemKind.Function},...v,...y])}(A);if(L===p.RuleKinds.EXTEND_DEF)return function(e){return(0,f.hintList)(e,y)}(A);if((null===(S=null==O?void 0:O.prevState)||void 0===S?void 0:S.kind)===p.RuleKinds.EXTENSION_DEFINITION&&_.name)return(0,f.hintList)(A,[]);if((null==O?void 0:O.kind)===i.Kind.SCALAR_TYPE_EXTENSION)return(0,f.hintList)(A,Object.values(e.getTypeMap()).filter(r.isScalarType).map(e=>({label:e.name,kind:d.CompletionItemKind.Function})));if((null==O?void 0:O.kind)===i.Kind.OBJECT_TYPE_EXTENSION)return(0,f.hintList)(A,Object.values(e.getTypeMap()).filter(e=>(0,r.isObjectType)(e)&&!e.name.startsWith("__")).map(e=>({label:e.name,kind:d.CompletionItemKind.Function})));if((null==O?void 0:O.kind)===i.Kind.INTERFACE_TYPE_EXTENSION)return(0,f.hintList)(A,Object.values(e.getTypeMap()).filter(r.isInterfaceType).map(e=>({label:e.name,kind:d.CompletionItemKind.Function})));if((null==O?void 0:O.kind)===i.Kind.UNION_TYPE_EXTENSION)return(0,f.hintList)(A,Object.values(e.getTypeMap()).filter(r.isUnionType).map(e=>({label:e.name,kind:d.CompletionItemKind.Function})));if((null==O?void 0:O.kind)===i.Kind.ENUM_TYPE_EXTENSION)return(0,f.hintList)(A,Object.values(e.getTypeMap()).filter(e=>(0,r.isEnumType)(e)&&!e.name.startsWith("__")).map(e=>({label:e.name,kind:d.CompletionItemKind.Function})));if((null==O?void 0:O.kind)===i.Kind.INPUT_OBJECT_TYPE_EXTENSION)return(0,f.hintList)(A,Object.values(e.getTypeMap()).filter(r.isInputObjectType).map(e=>({label:e.name,kind:d.CompletionItemKind.Function})));if(L===p.RuleKinds.IMPLEMENTS||L===p.RuleKinds.NAMED_TYPE&&(null==O?void 0:O.kind)===p.RuleKinds.IMPLEMENTS)return function(e,t,n,i,o){if(t.needsSeparator)return[];const s=n.getTypeMap(),a=(0,f.objectValues)(s).filter(r.isInterfaceType),l=a.map(({name:e})=>e),u=new Set;(0,p.runOnlineParser)(i,(e,t)=>{var i,s,a,c,d;if(t.name&&(t.kind!==p.RuleKinds.INTERFACE_DEF||l.includes(t.name)||u.add(t.name),t.kind===p.RuleKinds.NAMED_TYPE&&(null===(i=t.prevState)||void 0===i?void 0:i.kind)===p.RuleKinds.IMPLEMENTS))if(o.interfaceDef){if(null===(s=o.interfaceDef)||void 0===s?void 0:s.getInterfaces().find(({name:e})=>e===t.name))return;const e=n.getType(t.name),i=null===(a=o.interfaceDef)||void 0===a?void 0:a.toConfig();o.interfaceDef=new r.GraphQLInterfaceType(Object.assign(Object.assign({},i),{interfaces:[...i.interfaces,e||new r.GraphQLInterfaceType({name:t.name,fields:{}})]}))}else if(o.objectTypeDef){if(null===(c=o.objectTypeDef)||void 0===c?void 0:c.getInterfaces().find(({name:e})=>e===t.name))return;const e=n.getType(t.name),i=null===(d=o.objectTypeDef)||void 0===d?void 0:d.toConfig();o.objectTypeDef=new r.GraphQLObjectType(Object.assign(Object.assign({},i),{interfaces:[...i.interfaces,e||new r.GraphQLInterfaceType({name:t.name,fields:{}})]}))}});const c=o.interfaceDef||o.objectTypeDef,h=((null==c?void 0:c.getInterfaces())||[]).map(({name:e})=>e),m=a.concat([...u].map(e=>({name:e}))).filter(({name:e})=>e!==(null==c?void 0:c.name)&&!h.includes(e));return(0,f.hintList)(e,m.map(e=>{const t={label:e.name,kind:d.CompletionItemKind.Interface,type:e};return(null==e?void 0:e.description)&&(t.documentation=e.description),t}))}(A,_,e,t,N);if(L===p.RuleKinds.SELECTION_SET||L===p.RuleKinds.FIELD||L===p.RuleKinds.ALIASED_FIELD)return function(e,t,n){var i;if(t.parentType){const{parentType:o}=t;let a=[];return"getFields"in o&&(a=(0,f.objectValues)(o.getFields())),(0,r.isCompositeType)(o)&&a.push(s.TypeNameMetaFieldDef),o===(null===(i=null==n?void 0:n.schema)||void 0===i?void 0:i.getQueryType())&&a.push(s.SchemaMetaFieldDef,s.TypeMetaFieldDef),(0,f.hintList)(e,a.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:d.CompletionItemKind.Field,labelDetails:{detail:" "+t.type.toString()},type:t.type};return(null==n?void 0:n.fillLeafsOnComplete)&&(o.insertText=(0,f.getFieldInsertText)(t),o.insertText||(o.insertText=(0,f.getInsertText)(t.name,t.type,t.name+(e.state.needsAdvance?"":"\n"))),o.insertText&&(o.insertTextFormat=d.InsertTextFormat.Snippet,o.insertTextMode=h.InsertTextMode.adjustIndentation,o.command=m)),o}))}return[]}(A,N,x);if(L===p.RuleKinds.ARGUMENTS||L===p.RuleKinds.ARGUMENT&&0===I){const{argDefs:e}=N;if(e)return(0,f.hintList)(A,e.map(e=>{var t;return{label:e.name,insertText:(0,f.getInputInsertText)(e.name+": ",e.type),insertTextMode:h.InsertTextMode.adjustIndentation,insertTextFormat:d.InsertTextFormat.Snippet,command:m,labelDetails:{detail:" "+String(e.type)},documentation:null!==(t=e.description)&&void 0!==t?t:void 0,kind:d.CompletionItemKind.Variable,type:e.type}}))}if((L===p.RuleKinds.OBJECT_VALUE||L===p.RuleKinds.OBJECT_FIELD&&0===I)&&N.objectFieldDefs){const e=(0,f.objectValues)(N.objectFieldDefs),t=L===p.RuleKinds.OBJECT_VALUE?d.CompletionItemKind.Value:d.CompletionItemKind.Field;return(0,f.hintList)(A,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:(0,f.getInputInsertText)(e.name+": ",e.type),insertTextMode:h.InsertTextMode.adjustIndentation,insertTextFormat:d.InsertTextFormat.Snippet,command:m}}))}if(L===p.RuleKinds.ENUM_VALUE||L===p.RuleKinds.LIST_VALUE&&1===I||L===p.RuleKinds.OBJECT_FIELD&&2===I||L===p.RuleKinds.ARGUMENT&&2===I)return function(e,t,n,i){const s=(0,r.getNamedType)(t.inputType),a=b(n,i,e).filter(e=>e.detail===(null==s?void 0:s.name));if(s instanceof r.GraphQLEnumType){const t=s.getValues();return(0,f.hintList)(e,t.map(e=>{var t;return{label:e.name,detail:String(s),documentation:null!==(t=e.description)&&void 0!==t?t:void 0,deprecated:Boolean(e.deprecationReason),isDeprecated:Boolean(e.deprecationReason),deprecationReason:e.deprecationReason,kind:d.CompletionItemKind.EnumMember,type:s}}).concat(a))}return s===o.GraphQLBoolean?(0,f.hintList)(e,a.concat([{label:"true",detail:String(o.GraphQLBoolean),documentation:"Not false.",kind:d.CompletionItemKind.Variable,type:o.GraphQLBoolean},{label:"false",detail:String(o.GraphQLBoolean),documentation:"Not true.",kind:d.CompletionItemKind.Variable,type:o.GraphQLBoolean}])):a}(A,N,t,e);if(L===p.RuleKinds.VARIABLE&&1===I){const n=(0,r.getNamedType)(N.inputType),i=b(t,e,A);return(0,f.hintList)(A,i.filter(e=>e.detail===(null==n?void 0:n.name)))}if(L===p.RuleKinds.TYPE_CONDITION&&1===I||L===p.RuleKinds.NAMED_TYPE&&null!=O&&O.kind===p.RuleKinds.TYPE_CONDITION)return function(e,t,n){let i;if(t.parentType)if((0,r.isAbstractType)(t.parentType)){const e=(0,r.assertAbstractType)(t.parentType),o=n.getPossibleTypes(e),s=Object.create(null);for(const e of o)for(const t of e.getInterfaces())s[t.name]=t;i=o.concat((0,f.objectValues)(s))}else i=[t.parentType];else{const e=n.getTypeMap();i=(0,f.objectValues)(e).filter(e=>(0,r.isCompositeType)(e)&&!e.name.startsWith("__"))}return(0,f.hintList)(e,i.map(e=>{const t=(0,r.getNamedType)(e);return{label:String(e),documentation:(null==t?void 0:t.description)||"",kind:d.CompletionItemKind.Field}}))}(A,N,e);if(L===p.RuleKinds.FRAGMENT_SPREAD&&1===I)return function(e,t,n,i,o){if(!i)return[];const s=n.getTypeMap(),a=(0,p.getDefinitionState)(e.state),l=E(i);o&&o.length>0&&l.push(...o);const u=l.filter(e=>s[e.typeCondition.name.value]&&!(a&&a.kind===p.RuleKinds.FRAGMENT_DEFINITION&&a.name===e.name.value)&&(0,r.isCompositeType)(t.parentType)&&(0,r.isCompositeType)(s[e.typeCondition.name.value])&&(0,c.doTypesOverlap)(n,t.parentType,s[e.typeCondition.name.value]));return(0,f.hintList)(e,u.map(e=>({label:e.name.value,detail:String(s[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:d.CompletionItemKind.Field,type:s[e.typeCondition.name.value]})))}(A,N,e,t,Array.isArray(g)?g:(e=>{const t=[];if(e)try{(0,l.visit)((0,a.parse)(e),{FragmentDefinition(e){t.push(e)}})}catch(e){return[]}return t})(g));const R=w(_);return R.kind===p.RuleKinds.FIELD_DEF?(0,f.hintList)(A,Object.values(e.getTypeMap()).filter(e=>(0,r.isOutputType)(e)&&!e.name.startsWith("__")).map(e=>({label:e.name,kind:d.CompletionItemKind.Function,insertText:(null==k?void 0:k.fillLeafsOnComplete)?e.name+"\n":e.name,insertTextMode:h.InsertTextMode.adjustIndentation}))):R.kind===p.RuleKinds.INPUT_VALUE_DEF&&2===I?(0,f.hintList)(A,Object.values(e.getTypeMap()).filter(e=>(0,r.isInputType)(e)&&!e.name.startsWith("__")).map(e=>({label:e.name,kind:d.CompletionItemKind.Function,insertText:(null==k?void 0:k.fillLeafsOnComplete)?e.name+"\n$1":e.name,insertTextMode:h.InsertTextMode.adjustIndentation,insertTextFormat:d.InsertTextFormat.Snippet}))):L===p.RuleKinds.VARIABLE_DEFINITION&&2===I||L===p.RuleKinds.LIST_TYPE&&1===I||L===p.RuleKinds.NAMED_TYPE&&O&&(O.kind===p.RuleKinds.VARIABLE_DEFINITION||O.kind===p.RuleKinds.LIST_TYPE||O.kind===p.RuleKinds.NON_NULL_TYPE)?function(e,t){const n=t.getTypeMap(),i=(0,f.objectValues)(n).filter(r.isInputType);return(0,f.hintList)(e,i.map(e=>({label:e.name,documentation:(null==e?void 0:e.description)||"",kind:d.CompletionItemKind.Variable})))}(A,e):L===p.RuleKinds.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=>T(t.prevState,e));return(0,f.hintList)(e,r.map(e=>({label:e.name,documentation:(null==e?void 0:e.description)||"",kind:d.CompletionItemKind.Function})))}return[]}(A,_,e):L===p.RuleKinds.DIRECTIVE_DEF?function(e,t,n){const r=n.getDirectives().find(e=>e.name===t.name);return(0,f.hintList)(e,(null==r?void 0:r.args.map(e=>({label:e.name,documentation:e.description||"",kind:d.CompletionItemKind.Field})))||[])}(A,_,e):[]}const y=[{label:"type",kind:d.CompletionItemKind.Function},{label:"interface",kind:d.CompletionItemKind.Function},{label:"union",kind:d.CompletionItemKind.Function},{label:"input",kind:d.CompletionItemKind.Function},{label:"scalar",kind:d.CompletionItemKind.Function},{label:"schema",kind:d.CompletionItemKind.Function}],v=[{label:"query",kind:d.CompletionItemKind.Function},{label:"mutation",kind:d.CompletionItemKind.Function},{label:"subscription",kind:d.CompletionItemKind.Function},{label:"fragment",kind:d.CompletionItemKind.Function},{label:"{",kind:d.CompletionItemKind.Constructor}];function b(e,t,n){let r,i=null;const o=Object.create({});return(0,p.runOnlineParser)(e,(e,s)=>{var a;if((null==s?void 0:s.kind)===p.RuleKinds.VARIABLE&&s.name&&(i=s.name),(null==s?void 0:s.kind)===p.RuleKinds.NAMED_TYPE&&i){const e=((e,t)=>{var n,r,i,o,s,a,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===(a=null===(s=null===(o=e.prevState)||void 0===o?void 0:o.prevState)||void 0===s?void 0:s.prevState)||void 0===a?void 0:a.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})(s,p.RuleKinds.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===(a=null==n?void 0:n.state)||void 0===a?void 0:a.kind)?i:"$"+i;o[i]={detail:r.toString(),insertText:e,label:"$"+i,rawInsert:e,type:r,kind:d.CompletionItemKind.Variable},i=null,r=null}}),(0,f.objectValues)(o)}function E(e){const t=[];return(0,p.runOnlineParser)(e,(e,n)=>{n.kind===p.RuleKinds.FRAGMENT_DEFINITION&&n.name&&n.type&&t.push({kind:p.RuleKinds.FRAGMENT_DEFINITION,name:{kind:i.Kind.NAME,value:n.name},selectionSet:{kind:p.RuleKinds.SELECTION_SET,selections:[]},typeCondition:{kind:p.RuleKinds.NAMED_TYPE,name:{kind:i.Kind.NAME,value:n.type}}})}),t}function T(e,t){if(!(null==e?void 0:e.kind))return!1;const{kind:n,prevState:r}=e,{locations:i}=t;switch(n){case p.RuleKinds.QUERY:return i.includes(u.DirectiveLocation.QUERY);case p.RuleKinds.MUTATION:return i.includes(u.DirectiveLocation.MUTATION);case p.RuleKinds.SUBSCRIPTION:return i.includes(u.DirectiveLocation.SUBSCRIPTION);case p.RuleKinds.FIELD:case p.RuleKinds.ALIASED_FIELD:return i.includes(u.DirectiveLocation.FIELD);case p.RuleKinds.FRAGMENT_DEFINITION:return i.includes(u.DirectiveLocation.FRAGMENT_DEFINITION);case p.RuleKinds.FRAGMENT_SPREAD:return i.includes(u.DirectiveLocation.FRAGMENT_SPREAD);case p.RuleKinds.INLINE_FRAGMENT:return i.includes(u.DirectiveLocation.INLINE_FRAGMENT);case p.RuleKinds.SCHEMA_DEF:return i.includes(u.DirectiveLocation.SCHEMA);case p.RuleKinds.SCALAR_DEF:return i.includes(u.DirectiveLocation.SCALAR);case p.RuleKinds.OBJECT_TYPE_DEF:return i.includes(u.DirectiveLocation.OBJECT);case p.RuleKinds.FIELD_DEF:return i.includes(u.DirectiveLocation.FIELD_DEFINITION);case p.RuleKinds.INTERFACE_DEF:return i.includes(u.DirectiveLocation.INTERFACE);case p.RuleKinds.UNION_DEF:return i.includes(u.DirectiveLocation.UNION);case p.RuleKinds.ENUM_DEF:return i.includes(u.DirectiveLocation.ENUM);case p.RuleKinds.ENUM_VALUE:return i.includes(u.DirectiveLocation.ENUM_VALUE);case p.RuleKinds.INPUT_DEF:return i.includes(u.DirectiveLocation.INPUT_OBJECT);case p.RuleKinds.INPUT_VALUE_DEF:switch(null==r?void 0:r.kind){case p.RuleKinds.ARGUMENTS_DEF:return i.includes(u.DirectiveLocation.ARGUMENT_DEFINITION);case p.RuleKinds.INPUT_DEF:return i.includes(u.DirectiveLocation.INPUT_FIELD_DEFINITION)}}return!1}function w(e){return e.prevState&&e.kind&&[p.RuleKinds.NAMED_TYPE,p.RuleKinds.LIST_TYPE,p.RuleKinds.TYPE,p.RuleKinds.NON_NULL_TYPE].includes(e.kind)?w(e.prevState):e}},72155(e,t,n){n.r(t),n.d(t,{LANGUAGE:()=>o,getDefinitionQueryResultForArgument:()=>d,getDefinitionQueryResultForDefinitionNode:()=>f,getDefinitionQueryResultForField:()=>c,getDefinitionQueryResultForFragmentSpread:()=>p,getDefinitionQueryResultForNamedType:()=>u});var r=n(13924),i=function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{l(r.next(e))}catch(e){o(e)}}function a(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}l((r=r.apply(e,t||[])).next())})};const o="GraphQL";function s(e,t){if(!e)throw new Error(t)}function a(e,t){const n=t.loc;return s(n,"Expected ASTNode to have a location."),(0,r.locToRange)(e,n)}function l(e,t){const n=t.loc;return s(n,"Expected ASTNode to have a location."),(0,r.offsetToPosition)(e,n.start)}function u(e,t,n){return i(this,void 0,void 0,function*(){const r=t.name.value,i=n.filter(({definition:e})=>e.name&&e.name.value===r);if(0===i.length)throw new Error(`Definition not found for GraphQL type ${r}`);const u=i.map(({filePath:e,content:t,definition:n})=>function(e,t,n){const{name:r}=n;return s(r,"Expected ASTNode to have a Name."),{path:e,position:l(t,n),range:a(t,n),name:r.value||"",language:o,projectRoot:e}}(e||"",t,n));return{definitions:u,queryRange:u.map(n=>a(e,t)),printedName:r}})}function c(e,t,n){var r;return i(this,void 0,void 0,function*(){const i=n.filter(({definition:e})=>e.name&&e.name.value===t);if(0===i.length)throw new Error(`Definition not found for GraphQL type ${t}`);const o=[];for(const{filePath:t,content:n,definition:s}of i){const i=null===(r=s.fields)||void 0===r?void 0:r.find(t=>t.name.value===e);null!=i&&o.push(m(t||"",n,i))}return{definitions:o,queryRange:[],printedName:[t,e].join(".")}})}function d(e,t,n,r){var o,s,a;return i(this,void 0,void 0,function*(){const i=[];for(const{filePath:n,content:l,definition:u}of r){const r=null===(a=null===(s=null===(o=u.fields)||void 0===o?void 0:o.find(e=>e.name.value===t))||void 0===s?void 0:s.arguments)||void 0===a?void 0:a.find(t=>t.name.value===e);null!=r&&i.push(g(n||"",l,r))}return{definitions:i,queryRange:[],printedName:`${[n,t].join(".")}(${e})`}})}function p(e,t,n){return i(this,void 0,void 0,function*(){const r=t.name.value,i=n.filter(({definition:e})=>e.name.value===r);if(0===i.length)throw new Error(`Definition not found for GraphQL fragment ${r}`);const o=i.map(({filePath:e,content:t,definition:n})=>h(e||"",t,n));return{definitions:o,queryRange:o.map(n=>a(e,t)),printedName:r}})}function f(e,t,n){var r;return{definitions:[h(e,t,n)],queryRange:n.name?[a(t,n.name)]:[],printedName:null===(r=n.name)||void 0===r?void 0:r.value}}function h(e,t,n){const{name:r}=n;if(!r)throw new Error("Expected ASTNode to have a Name.");return{path:e,position:l(t,n),range:a(t,n),name:r.value||"",language:o,projectRoot:e}}function m(e,t,n){const{name:r}=n;return s(r,"Expected ASTNode to have a Name."),{path:e,position:l(t,n),range:a(t,n),name:r.value||"",language:o,projectRoot:e}}function g(e,t,n){const{name:r}=n;return s(r,"Expected ASTNode to have a Name."),{path:e,position:l(t,n),range:a(t,n),name:r.value||"",language:o,projectRoot:e}}},61504(e,t,n){n.r(t),n.d(t,{DIAGNOSTIC_SEVERITY:()=>d,SEVERITY:()=>c,getDiagnostics:()=>f,getRange:()=>g,validateQuery:()=>h});var r=n(48255),i=n(8553),o=n(98195),s=n(9554),a=n(2168),l=n(620),u=n(13924);const c={Error:"Error",Warning:"Warning",Information:"Information",Hint:"Hint"},d={[c.Error]:1,[c.Warning]:2,[c.Information]:3,[c.Hint]:4},p=(e,t)=>{if(!e)throw new Error(t)};function f(e,t=null,n,i,a){var l,u;let c=null,p="";a&&(p="string"==typeof a?a:a.reduce((e,t)=>e+(0,s.print)(t)+"\n\n",""));const f=p?`${e}\n\n${p}`:e;try{c=(0,o.parse)(f)}catch(e){if(e instanceof r.GraphQLError){const t=g(null!==(u=null===(l=e.locations)||void 0===l?void 0:l[0])&&void 0!==u?u:{line:0,column:0},f);return[{severity:d.Error,message:e.message,source:"GraphQL: Syntax",range:t}]}throw e}return h(c,t,n,i)}function h(e,t=null,n,r){if(!t)return[];const o=(0,u.validateWithCustomRules)(t,e,n,r).flatMap(e=>m(e,d.Error,"Validation")),s=(0,i.validate)(t,e,[a.NoDeprecatedCustomRule]).flatMap(e=>m(e,d.Warning,"Deprecation"));return o.concat(s)}function m(e,t,n){if(!e.nodes)return[];const r=[];for(const[i,o]of e.nodes.entries()){const s="Variable"!==o.kind&&"name"in o&&void 0!==o.name?o.name:"variable"in o&&void 0!==o.variable?o.variable:o;if(s){p(e.locations,"GraphQL validation error requires locations.");const o=e.locations[i],a=y(s),l=o.column+(a.end-a.start);r.push({source:`GraphQL: ${n}`,message:e.message,severity:t,range:new u.Range(new u.Position(o.line-1,o.column-1),new u.Position(o.line-1,l))})}}return r}function g(e,t){const n=(0,l.onlineParser)(),r=n.startState(),i=t.split("\n");p(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 l.CharacterStream(i[t]);!o.eol()&&"invalidchar"!==n.token(o,r););p(o,"Expected Parser stream to be available.");const s=e.line-1,a=o.getStartOfToken(),c=o.getCurrentPosition();return new u.Range(new u.Position(s,a),new u.Position(s,c))}function y(e){const t=e.loc;return p(t,"Expected ASTNode to have a location."),t}},71754(e,t,n){n.r(t),n.d(t,{getHoverInformation:()=>o,renderArg:()=>d,renderDirective:()=>c,renderEnumValue:()=>f,renderField:()=>l,renderType:()=>h});var r=n(73663),i=n(620);function o(e,t,n,r,o){const u=Object.assign(Object.assign({},o),{schema:e}),p=(0,i.getContextAtPosition)(t,n,e,r);if(!p)return"";const{typeInfo:g,token:y}=p,{kind:v,step:b}=y.state;if("Field"===v&&0===b&&g.fieldDef||"AliasedField"===v&&2===b&&g.fieldDef||"ObjectField"===v&&0===b&&g.fieldDef){const e=[];return s(e,u),l(e,g,u),a(e,u),m(e,0,g.fieldDef),e.join("").trim()}if("Directive"===v&&1===b&&g.directiveDef){const e=[];return s(e,u),c(e,g),a(e,u),m(e,0,g.directiveDef),e.join("").trim()}if("Variable"===v&&g.type){const e=[];return s(e,u),h(e,g,u,g.type),a(e,u),m(e,0,g.type),e.join("").trim()}if("Argument"===v&&0===b&&g.argDef){const e=[];return s(e,u),d(e,g,u),a(e,u),m(e,0,g.argDef),e.join("").trim()}if("EnumValue"===v&&g.enumValue&&"description"in g.enumValue){const e=[];return s(e,u),f(e,g,u),a(e,u),m(e,0,g.enumValue),e.join("").trim()}if("NamedType"===v&&g.type&&"description"in g.type){const e=[];return s(e,u),h(e,g,u,g.type),a(e,u),m(e,0,g.type),e.join("").trim()}return""}function s(e,t){t.useMarkdown&&g(e,"```graphql\n")}function a(e,t){t.useMarkdown&&g(e,"\n```")}function l(e,t,n){u(e,t,n),p(e,t,n,t.type)}function u(e,t,n){if(!t.fieldDef)return;const r=t.fieldDef.name;"__"!==r.slice(0,2)&&(h(e,t,n,t.parentType),g(e,".")),g(e,r)}function c(e,t,n){t.directiveDef&&g(e,"@"+t.directiveDef.name)}function d(e,t,n){if(t.directiveDef?c(e,t):t.fieldDef&&u(e,t,n),!t.argDef)return;const{name:r}=t.argDef;g(e,"("),g(e,r),p(e,t,n,t.inputType),g(e,")")}function p(e,t,n,r){g(e,": "),h(e,t,n,r)}function f(e,t,n){if(!t.enumValue)return;const{name:r}=t.enumValue;h(e,t,n,t.inputType),g(e,"."),g(e,r)}function h(e,t,n,i){i&&(i instanceof r.GraphQLNonNull?(h(e,t,n,i.ofType),g(e,"!")):i instanceof r.GraphQLList?(g(e,"["),h(e,t,n,i.ofType),g(e,"]")):g(e,i.name))}function m(e,t,n){if(!n)return;const r="string"==typeof n.description?n.description:null;r&&(g(e,"\n\n"),g(e,r)),function(e,t,n){if(!n)return;const r=n.deprecationReason;r&&(g(e,"\n\n"),g(e,"Deprecated: "),g(e,r))}(e,0,n)}function g(e,t){e.push(t)}},68746(e,t,n){n.r(t),n.d(t,{getOutline:()=>a});var r=n(42455),i=n(98195),o=n(90424),s=n(13924);function a(e){let t;try{t=(0,i.parse)(e)}catch(e){return null}const n=function(e){const t=t=>({representativeName:t.name,startPosition:(0,s.offsetToPosition)(e,t.loc.start),endPosition:(0,s.offsetToPosition)(e,t.loc.end),kind:t.kind,children:t.selectionSet||t.fields||t.values||t.arguments||[]});return{Field(e){const n=e.alias?[l("plain",e.alias),l("plain",": ")]:[];return n.push(l("plain",e.name)),Object.assign({tokenizedText:n},t(e))},OperationDefinition:e=>Object.assign({tokenizedText:[l("keyword",e.operation),l("whitespace"," "),l("class-name",e.name)]},t(e)),Document:e=>e.definitions,SelectionSet:e=>function(e,t){const n=[];for(let r=0;r<e.length;r++){const i=t(e[r]);Array.isArray(i)?n.push(...i):n.push(i)}return n}(e.selections,e=>e.kind===r.Kind.INLINE_FRAGMENT?e.selectionSet:e),Name:e=>e.value,FragmentDefinition:e=>Object.assign({tokenizedText:[l("keyword","fragment"),l("whitespace"," "),l("class-name",e.name)]},t(e)),InterfaceTypeDefinition:e=>Object.assign({tokenizedText:[l("keyword","interface"),l("whitespace"," "),l("class-name",e.name)]},t(e)),EnumTypeDefinition:e=>Object.assign({tokenizedText:[l("keyword","enum"),l("whitespace"," "),l("class-name",e.name)]},t(e)),EnumValueDefinition:e=>Object.assign({tokenizedText:[l("plain",e.name)]},t(e)),ObjectTypeDefinition:e=>Object.assign({tokenizedText:[l("keyword","type"),l("whitespace"," "),l("class-name",e.name)]},t(e)),InputObjectTypeDefinition:e=>Object.assign({tokenizedText:[l("keyword","input"),l("whitespace"," "),l("class-name",e.name)]},t(e)),FragmentSpread:e=>Object.assign({tokenizedText:[l("plain","..."),l("class-name",e.name)]},t(e)),InputValueDefinition:e=>Object.assign({tokenizedText:[l("plain",e.name)]},t(e)),FieldDefinition:e=>Object.assign({tokenizedText:[l("plain",e.name)]},t(e)),InlineFragment:e=>e.selectionSet}}(e);return{outlineTrees:(0,o.visit)(t,{leave:e=>void 0!==n&&e.kind in n?n[e.kind](e):null})}}function l(e,t){return{kind:e,value:t}}},79302(e,t,n){n.r(t),n.d(t,{DIAGNOSTIC_SEVERITY:()=>s.DIAGNOSTIC_SEVERITY,LANGUAGE:()=>o.LANGUAGE,SEVERITY:()=>s.SEVERITY,SuggestionCommand:()=>i.SuggestionCommand,canUseDirective:()=>i.canUseDirective,getAutocompleteSuggestions:()=>i.getAutocompleteSuggestions,getDefinitionQueryResultForArgument:()=>o.getDefinitionQueryResultForArgument,getDefinitionQueryResultForDefinitionNode:()=>o.getDefinitionQueryResultForDefinitionNode,getDefinitionQueryResultForField:()=>o.getDefinitionQueryResultForField,getDefinitionQueryResultForFragmentSpread:()=>o.getDefinitionQueryResultForFragmentSpread,getDefinitionQueryResultForNamedType:()=>o.getDefinitionQueryResultForNamedType,getDiagnostics:()=>s.getDiagnostics,getFieldInsertText:()=>r.getFieldInsertText,getFragmentDefinitions:()=>i.getFragmentDefinitions,getHoverInformation:()=>l.getHoverInformation,getInputInsertText:()=>r.getInputInsertText,getInsertText:()=>r.getInsertText,getOutline:()=>a.getOutline,getRange:()=>s.getRange,getTypeInfo:()=>i.getTypeInfo,getVariableCompletions:()=>i.getVariableCompletions,hintList:()=>r.hintList,objectValues:()=>r.objectValues,runOnlineParser:()=>i.runOnlineParser,validateQuery:()=>s.validateQuery});var r=n(83883),i=n(16177),o=n(72155),s=n(61504),a=n(68746),l=n(71754)},89739(e,t,n){n.r(t),n.d(t,{default:()=>r});class r{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}}},89903(e,t,n){function r(e){return{ofRule:e}}function i(e,t){return{ofRule:e,isList:!0,separator:t}}function o(e,t){const n=e.match;return e.match=e=>{let r=!1;return n&&(r=n(e)),r&&t.every(t=>t.match&&!t.match(e))},e}function s(e,t){return{style:t,match:t=>t.kind===e}}function a(e,t){return{style:t||"punctuation",match:t=>"Punctuation"===t.kind&&t.value===e}}n.r(t),n.d(t,{butNot:()=>o,list:()=>i,opt:()=>r,p:()=>a,t:()=>s})},4827(e,t,n){n.r(t),n.d(t,{LexRules:()=>s,ParseRules:()=>a,isIgnored:()=>o});var r=n(89903),i=n(42455);const o=e=>" "===e||"\t"===e||","===e||"\n"===e||"\r"===e||"\ufeff"===e||" "===e,s={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:/^#.*/},a={Document:[(0,r.list)("Definition")],Definition(e){switch(e.value){case"{":return"ShortQuery";case"query":return"Query";case"mutation":return"Mutation";case"subscription":return"Subscription";case"fragment":return i.Kind.FRAGMENT_DEFINITION;case"schema":return"SchemaDef";case"scalar":return"ScalarDef";case"type":return"ObjectTypeDef";case"interface":return"InterfaceDef";case"union":return"UnionDef";case"enum":return"EnumDef";case"input":return"InputDef";case"extend":return"ExtendDef";case"directive":return"DirectiveDef"}},ShortQuery:["SelectionSet"],Query:[l("query"),(0,r.opt)(u("def")),(0,r.opt)("VariableDefinitions"),(0,r.list)("Directive"),"SelectionSet"],Mutation:[l("mutation"),(0,r.opt)(u("def")),(0,r.opt)("VariableDefinitions"),(0,r.list)("Directive"),"SelectionSet"],Subscription:[l("subscription"),(0,r.opt)(u("def")),(0,r.opt)("VariableDefinitions"),(0,r.list)("Directive"),"SelectionSet"],VariableDefinitions:[(0,r.p)("("),(0,r.list)("VariableDefinition"),(0,r.p)(")")],VariableDefinition:["Variable",(0,r.p)(":"),"Type",(0,r.opt)("DefaultValue")],Variable:[(0,r.p)("$","variable"),u("variable")],DefaultValue:[(0,r.p)("="),"Value"],SelectionSet:[(0,r.p)("{"),(0,r.list)("Selection"),(0,r.p)("}")],Selection:(e,t)=>"..."===e.value?t.match(/[\s\u00a0,]*(on\b|@|{)/,!1)?"InlineFragment":"FragmentSpread":t.match(/[\s\u00a0,]*:/,!1)?"AliasedField":"Field",AliasedField:[u("property"),(0,r.p)(":"),u("qualifier"),(0,r.opt)("Arguments"),(0,r.list)("Directive"),(0,r.opt)("SelectionSet")],Field:[u("property"),(0,r.opt)("Arguments"),(0,r.list)("Directive"),(0,r.opt)("SelectionSet")],Arguments:[(0,r.p)("("),(0,r.list)("Argument"),(0,r.p)(")")],Argument:[u("attribute"),(0,r.p)(":"),"Value"],FragmentSpread:[(0,r.p)("..."),u("def"),(0,r.list)("Directive")],InlineFragment:[(0,r.p)("..."),(0,r.opt)("TypeCondition"),(0,r.list)("Directive"),"SelectionSet"],FragmentDefinition:[l("fragment"),(0,r.opt)((0,r.butNot)(u("def"),[l("on")])),"TypeCondition",(0,r.list)("Directive"),"SelectionSet"],TypeCondition:[l("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:[(0,r.t)("Number","number")],StringValue:[{style:"string",match:e=>"String"===e.kind,update(e,t){t.value.startsWith('"""')&&(e.inBlockstring=!t.value.slice(3).endsWith('"""'))}}],BooleanValue:[(0,r.t)("Name","builtin")],NullValue:[(0,r.t)("Name","keyword")],EnumValue:[u("string-2")],ListValue:[(0,r.p)("["),(0,r.list)("Value"),(0,r.p)("]")],ObjectValue:[(0,r.p)("{"),(0,r.list)("ObjectField"),(0,r.p)("}")],ObjectField:[u("attribute"),(0,r.p)(":"),"Value"],Type:e=>"["===e.value?"ListType":"NonNullType",ListType:[(0,r.p)("["),"Type",(0,r.p)("]"),(0,r.opt)((0,r.p)("!"))],NonNullType:["NamedType",(0,r.opt)((0,r.p)("!"))],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:[(0,r.p)("@","meta"),u("meta"),(0,r.opt)("Arguments")],DirectiveDef:[l("directive"),(0,r.p)("@","meta"),u("meta"),(0,r.opt)("ArgumentsDef"),l("on"),(0,r.list)("DirectiveLocation",(0,r.p)("|"))],InterfaceDef:[l("interface"),u("atom"),(0,r.opt)("Implements"),(0,r.list)("Directive"),(0,r.p)("{"),(0,r.list)("FieldDef"),(0,r.p)("}")],Implements:[l("implements"),(0,r.list)("NamedType",(0,r.p)("&"))],DirectiveLocation:[u("string-2")],SchemaDef:[l("schema"),(0,r.list)("Directive"),(0,r.p)("{"),(0,r.list)("OperationTypeDef"),(0,r.p)("}")],OperationTypeDef:[u("keyword"),(0,r.p)(":"),u("atom")],ScalarDef:[l("scalar"),u("atom"),(0,r.list)("Directive")],ObjectTypeDef:[l("type"),u("atom"),(0,r.opt)("Implements"),(0,r.list)("Directive"),(0,r.p)("{"),(0,r.list)("FieldDef"),(0,r.p)("}")],FieldDef:[u("property"),(0,r.opt)("ArgumentsDef"),(0,r.p)(":"),"Type",(0,r.list)("Directive")],ArgumentsDef:[(0,r.p)("("),(0,r.list)("InputValueDef"),(0,r.p)(")")],InputValueDef:[u("attribute"),(0,r.p)(":"),"Type",(0,r.opt)("DefaultValue"),(0,r.list)("Directive")],UnionDef:[l("union"),u("atom"),(0,r.list)("Directive"),(0,r.p)("="),(0,r.list)("UnionMember",(0,r.p)("|"))],UnionMember:["NamedType"],EnumDef:[l("enum"),u("atom"),(0,r.list)("Directive"),(0,r.p)("{"),(0,r.list)("EnumValueDef"),(0,r.p)("}")],EnumValueDef:[u("string-2"),(0,r.list)("Directive")],InputDef:[l("input"),u("atom"),(0,r.list)("Directive"),(0,r.p)("{"),(0,r.list)("InputValueDef"),(0,r.p)("}")],ExtendDef:[l("extend"),"ExtensionDefinition"],ExtensionDefinition(e){switch(e.value){case"schema":return i.Kind.SCHEMA_EXTENSION;case"scalar":return i.Kind.SCALAR_TYPE_EXTENSION;case"type":return i.Kind.OBJECT_TYPE_EXTENSION;case"interface":return i.Kind.INTERFACE_TYPE_EXTENSION;case"union":return i.Kind.UNION_TYPE_EXTENSION;case"enum":return i.Kind.ENUM_TYPE_EXTENSION;case"input":return i.Kind.INPUT_OBJECT_TYPE_EXTENSION}},[i.Kind.SCHEMA_EXTENSION]:["SchemaDef"],[i.Kind.SCALAR_TYPE_EXTENSION]:["ScalarDef"],[i.Kind.OBJECT_TYPE_EXTENSION]:["ObjectTypeDef"],[i.Kind.INTERFACE_TYPE_EXTENSION]:["InterfaceDef"],[i.Kind.UNION_TYPE_EXTENSION]:["UnionDef"],[i.Kind.ENUM_TYPE_EXTENSION]:["EnumDef"],[i.Kind.INPUT_OBJECT_TYPE_EXTENSION]:["InputDef"]};function l(e){return{style:"keyword",match:t=>"Name"===t.kind&&t.value===e}}function u(e){return{style:e,match:e=>"Name"===e.kind,update(e,t){e.name=t.value}}}},14096(e,t,n){n.r(t),n.d(t,{GraphQLDocumentMode:()=>r,TYPE_SYSTEM_KINDS:()=>u,getContextAtPosition:()=>p,getDocumentMode:()=>c,getTokenAtPosition:()=>d,runOnlineParser:()=>l});var r,i=n(620),o=n(42455),s=n(98195),a=n(90424);function l(e,t){const n=e.split("\n"),r=(0,i.onlineParser)();let o=r.startState(),s="",a=new i.CharacterStream("");for(let e=0;e<n.length;e++){for(a=new i.CharacterStream(n[e]);!a.eol()&&(s=r.token(a,o),"BREAK"!==t(a,o,s,e)););t(a,o,s,e),o.kind||(o=r.startState())}return{start:a.getStartOfToken(),end:a.getCurrentPosition(),string:a.current(),state:o,style:s}}!function(e){e.TYPE_SYSTEM="TYPE_SYSTEM",e.EXECUTABLE="EXECUTABLE",e.UNKNOWN="UNKNOWN"}(r||(r={}));const u=[o.Kind.SCHEMA_DEFINITION,o.Kind.OPERATION_TYPE_DEFINITION,o.Kind.SCALAR_TYPE_DEFINITION,o.Kind.OBJECT_TYPE_DEFINITION,o.Kind.INTERFACE_TYPE_DEFINITION,o.Kind.UNION_TYPE_DEFINITION,o.Kind.ENUM_TYPE_DEFINITION,o.Kind.INPUT_OBJECT_TYPE_DEFINITION,o.Kind.DIRECTIVE_DEFINITION,o.Kind.SCHEMA_EXTENSION,o.Kind.SCALAR_TYPE_EXTENSION,o.Kind.OBJECT_TYPE_EXTENSION,o.Kind.INTERFACE_TYPE_EXTENSION,o.Kind.UNION_TYPE_EXTENSION,o.Kind.ENUM_TYPE_EXTENSION,o.Kind.INPUT_OBJECT_TYPE_EXTENSION];function c(e,t){return(null==t?void 0:t.endsWith(".graphqls"))?r.TYPE_SYSTEM:(e=>{let t=r.UNKNOWN;if(e)try{(0,a.visit)((0,s.parse)(e),{enter(e){if("Document"!==e.kind)return!!u.includes(e.kind)&&(t=r.TYPE_SYSTEM,a.BREAK);t=r.EXECUTABLE}})}catch(e){return t}return t})(e)}function d(e,t,n=0){let r=null,i=null,o=null;const s=l(e,(e,s,a,l)=>{if(!(l!==t.line||e.getCurrentPosition()+n<t.character+1))return r=a,i=Object.assign({},s),o=e.current(),"BREAK"});return{start:s.start,end:s.end,string:o||s.string,state:i||s.state,style:r||s.style}}function p(e,t,n,r,o){const s=r||d(e,t,1);if(!s)return null;const a="Invalid"===s.state.kind?s.state.prevState:s.state;return a?{token:s,state:a,typeInfo:(0,i.getTypeInfo)(n,s.state),mode:(null==o?void 0:o.mode)||c(e,null==o?void 0:o.uri)}:null}},32732(e,t,n){n.r(t),n.d(t,{forEachState:()=>a,getDefinitionState:()=>l,getFieldDef:()=>s,getTypeInfo:()=>u});var r=n(73663),i=n(28957),o=n(620);function s(e,t,n){return n===i.SchemaMetaFieldDef.name&&e.getQueryType()===t?i.SchemaMetaFieldDef:n===i.TypeMetaFieldDef.name&&e.getQueryType()===t?i.TypeMetaFieldDef:n===i.TypeNameMetaFieldDef.name&&(0,r.isCompositeType)(t)?i.TypeNameMetaFieldDef:"getFields"in t?t.getFields()[n]:null}function a(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])}function l(e){let t;return a(e,e=>{switch(e.kind){case"Query":case"ShortQuery":case"Mutation":case"Subscription":case"FragmentDefinition":t=e}}),t}function u(e,t){let n,i,l,u,c,d,p,f,h,m,g;return a(t,t=>{var a;switch(t.kind){case o.RuleKinds.QUERY:case"ShortQuery":m=e.getQueryType();break;case o.RuleKinds.MUTATION:m=e.getMutationType();break;case o.RuleKinds.SUBSCRIPTION:m=e.getSubscriptionType();break;case o.RuleKinds.INLINE_FRAGMENT:case o.RuleKinds.FRAGMENT_DEFINITION:t.type&&(m=e.getType(t.type));break;case o.RuleKinds.FIELD:case o.RuleKinds.ALIASED_FIELD:m&&t.name?(c=h?s(e,h,t.name):null,m=c?c.type:null):c=null;break;case o.RuleKinds.SELECTION_SET:h=(0,r.getNamedType)(m);break;case o.RuleKinds.DIRECTIVE:l=t.name?e.getDirective(t.name):null;break;case o.RuleKinds.INTERFACE_DEF:t.name&&(p=null,g=new r.GraphQLInterfaceType({name:t.name,interfaces:[],fields:{}}));break;case o.RuleKinds.OBJECT_TYPE_DEF:t.name&&(g=null,p=new r.GraphQLObjectType({name:t.name,interfaces:[],fields:{}}));break;case o.RuleKinds.ARGUMENTS:if(t.prevState)switch(t.prevState.kind){case o.RuleKinds.FIELD:i=c&&c.args;break;case o.RuleKinds.DIRECTIVE:i=l&&l.args;break;case o.RuleKinds.ALIASED_FIELD:{const n=null===(a=t.prevState)||void 0===a?void 0:a.name;if(!n){i=null;break}const r=h?s(e,h,n):null;if(!r){i=null;break}i=r.args;break}default:i=null}else i=null;break;case o.RuleKinds.ARGUMENT:if(i)for(let e=0;e<i.length;e++)if(i[e].name===t.name){n=i[e];break}d=null==n?void 0:n.type;break;case o.RuleKinds.VARIABLE_DEFINITION:case o.RuleKinds.VARIABLE:m=d;break;case o.RuleKinds.ENUM_VALUE:const y=(0,r.getNamedType)(d);u=y instanceof r.GraphQLEnumType?y.getValues().find(e=>e.value===t.name):null;break;case o.RuleKinds.LIST_VALUE:const v=(0,r.getNullableType)(d);d=v instanceof r.GraphQLList?v.ofType:null;break;case o.RuleKinds.OBJECT_VALUE:const b=(0,r.getNamedType)(d);f=b instanceof r.GraphQLInputObjectType?b.getFields():null;break;case o.RuleKinds.OBJECT_FIELD:const E=t.name&&f?f[t.name]:null;d=null==E?void 0:E.type,c=E,m=c?c.type:null;break;case o.RuleKinds.NAMED_TYPE:t.name&&(m=e.getType(t.name))}}),{argDef:n,argDefs:i,directiveDef:l,enumValue:u,fieldDef:c,inputType:d,objectFieldDefs:f,parentType:h,type:m,interfaceDef:g,objectTypeDef:p}}},620(e,t,n){n.r(t),n.d(t,{AdditionalRuleKinds:()=>u.AdditionalRuleKinds,CharacterStream:()=>r.default,GraphQLDocumentMode:()=>a.GraphQLDocumentMode,LexRules:()=>i.LexRules,ParseRules:()=>i.ParseRules,RuleKinds:()=>u.RuleKinds,butNot:()=>o.butNot,getContextAtPosition:()=>a.getContextAtPosition,getDefinitionState:()=>l.getDefinitionState,getDocumentMode:()=>a.getDocumentMode,getFieldDef:()=>l.getFieldDef,getTokenAtPosition:()=>a.getTokenAtPosition,getTypeInfo:()=>l.getTypeInfo,isIgnored:()=>i.isIgnored,list:()=>o.list,onlineParser:()=>s.default,opt:()=>o.opt,p:()=>o.p,runOnlineParser:()=>a.runOnlineParser,t:()=>o.t});var r=n(89739),i=n(4827),o=n(89903),s=n(18282),a=n(14096),l=n(32732),u=n(81545)},18282(e,t,n){n.r(t),n.d(t,{default:()=>o});var r=n(4827),i=n(42455);function o(e={eatWhitespace:e=>e.eatWhile(r.isIgnored),lexRules:r.LexRules,parseRules:r.ParseRules,editorConfig:{}}){return{startState(){const t={level:0,step:0,name:null,kind:null,type:null,rule:null,needsSeparator:!1,prevState:null};return l(e.parseRules,t,i.Kind.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:d,editorConfig:f}=n;if(t.rule&&0===t.rule.length?u(t):t.needsAdvance&&(t.needsAdvance=!1,c(t,!0)),e.sol()){const n=(null==f?void 0:f.tabSize)||2;t.indentLevel=Math.floor(e.indentation()/n)}if(d(e))return"ws";const h=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(!h)return e.match(/\S+/)||e.match(/\s/),l(a,t,"Invalid"),"invalidchar";if("Comment"===h.kind)return l(a,t,"Comment"),"comment";const m=s({},t);if("Punctuation"===h.kind)if(/^[{([]/.test(h.value))void 0!==t.indentLevel&&(t.levels=(t.levels||[]).concat(t.indentLevel+1));else if(/^[})\]]/.test(h.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(h,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){l(o,t,n);continue}if(null===(r=n.match)||void 0===r?void 0:r.call(n,h))return n.update&&n.update(t,h),"Punctuation"===h.kind?c(t,!0):t.needsAdvance=!0,n.style}p(t)}return s(t,m),l(a,t,"Invalid"),"invalidchar"}(t,n,e)}}function s(e,t){const n=Object.keys(t);for(let r=0;r<n.length;r++)e[n[r]]=t[n[r]];return e}const a={Invalid:[],Comment:[]};function l(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 u(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 c(e,t){var n;if(d(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);)u(e),e.rule&&(d(e)?(null===(n=e.rule)||void 0===n?void 0:n[e.step].separator)&&(e.needsSeparator=!e.needsSeparator):(e.needsSeparator=!1,e.step++))}function d(e){const t=Array.isArray(e.rule)&&"string"!=typeof e.rule[e.step]&&e.rule[e.step];return t&&t.isList}function p(e){for(;e.rule&&(!Array.isArray(e.rule)||!e.rule[e.step].ofRule);)u(e);e.rule&&c(e,!1)}},81545(e,t,n){n.r(t),n.d(t,{AdditionalRuleKinds:()=>i,RuleKinds:()=>o});var r=n(42455);const i={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"},o=Object.assign(Object.assign({},r.Kind),i)},2503(e,t,n){n.r(t),n.d(t,{CompletionItemKind:()=>s,FileChangeTypeKind:()=>o,GraphQLDocumentMode:()=>i.GraphQLDocumentMode,InsertTextFormat:()=>r.InsertTextFormat});var r=n(32852),i=n(620);const o={Created:1,Changed:2,Deleted:3};var s;!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}(s||(s={}))},11993(e,t,n){n.r(t),n.d(t,{Position:()=>i,Range:()=>r,locToRange:()=>s,offsetToPosition:()=>o});class r{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 i(e,t)}setEnd(e,t){this.end=new i(e,t)}}class i{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}}function o(e,t){const n=e.slice(0,t),r=n.split("\n").length-1,o=n.lastIndexOf("\n");return new i(r,t-o-1)}function s(e,t){const n=o(e,t.start),i=o(e,t.end);return new r(n,i)}},15741(e,t,n){n.r(t),n.d(t,{collectVariables:()=>s});var r=n(42455),i=n(84143),o=n(89494);function s(e,t){const n=Object.create(null);for(const s of t.definitions)if("OperationDefinition"===s.kind){const{variableDefinitions:t}=s;if(t)for(const{variable:s,type:a}of t){const t=(0,o.typeFromAST)(e,a);t?n[s.name.value]=t:a.kind===r.Kind.NAMED_TYPE&&"Float"===a.name.value&&(n[s.name.value]=i.GraphQLFloat)}}return n}},9163(e,t,n){n.r(t),n.d(t,{getFragmentDependencies:()=>a,getFragmentDependenciesForAST:()=>l});var r=n(98195),i=n(90424),o=n(62012),s=n.n(o);const a=(e,t)=>{if(!t)return[];let n;try{n=(0,r.parse)(e)}catch(e){return[]}return l(n,t)},l=(e,t)=>{if(!t)return[];const n=new Map,r=new Set;(0,i.visit)(e,{FragmentDefinition(e){n.set(e.name.value,!0)},FragmentSpread(e){r.has(e.name.value)||r.add(e.name.value)}});const o=new Set;for(const e of r)!n.has(e)&&t.has(e)&&o.add(s()(t.get(e)));const a=[];for(const e of o)(0,i.visit)(e,{FragmentSpread(e){!r.has(e.name.value)&&t.get(e.name.value)&&(o.add(s()(t.get(e.name.value))),r.add(e.name.value))}}),n.has(e.name.value)||a.push(e);return a}},46476(e,t,n){n.r(t),n.d(t,{getASTNodeAtPosition:()=>i,pointToOffset:()=>o});var r=n(90424);function i(e,t,n){const i=o(e,n);let s;return(0,r.visit)(t,{enter(e){if(!("Name"!==e.kind&&e.loc&&e.loc.start<=i&&i<=e.loc.end))return!1;s=e},leave(e){if(e.loc&&e.loc.start<=i&&i<=e.loc.end)return!1}}),s}function o(e,t){const n=e.split("\n").slice(0,t.line);return t.character+n.map(e=>e.length+1).reduce((e,t)=>e+t,0)}},66972(e,t,n){n.r(t),n.d(t,{default:()=>a,getOperationASTFacts:()=>s,getQueryFacts:()=>l});var r=n(98195),i=n(90424),o=n(15741);function s(e,t){const n=t?(0,o.collectVariables)(t,e):void 0,r=[];return(0,i.visit)(e,{OperationDefinition(e){r.push(e)}}),{variableToType:n,operations:r}}function a(e,t){if(t)try{const n=(0,r.parse)(t);return Object.assign(Object.assign({},s(n,e)),{documentAST:n})}catch(e){}}const l=a},25322(e,t,n){n.r(t),n.d(t,{defaultJSONSchemaOptions:()=>i,getVariablesJSONSchema:()=>d});var r=n(73663);const i={useMarkdownDescription:!1};function o(e,t){e.push(t)}function s(e,t){(0,r.isNonNullType)(t)?(s(e,t.ofType),o(e,"!")):(0,r.isListType)(t)?(o(e,"["),s(e,t.ofType),o(e,"]")):o(e,t.name)}function a(e,t,n){const i=[],a="type"in e?e.type:e;return"type"in e&&e.description&&(o(i,e.description),o(i,"\n\n")),o(i,function(e,t){const n=[];return t&&o(n,"```graphql\n"),s(n,e),t&&o(n,"\n```"),n.join("")}(a,t)),n?(o(i,"\n"),o(i,n)):!(0,r.isScalarType)(a)&&"description"in a&&a.description?(o(i,"\n"),o(i,a.description)):"ofType"in a&&!(0,r.isScalarType)(a.ofType)&&"description"in a.ofType&&a.ofType.description&&(o(i,"\n"),o(i,a.ofType.description)),i.join("")}const l={Int:{type:"integer"},String:{type:"string"},Float:{type:"number"},ID:{type:"string"},Boolean:{type:"boolean"},DateTime:{type:"string"}};class u{constructor(){this.set=new Set}mark(e){return!this.set.has(e)&&(this.set.add(e),!0)}}function c(e,t){var n,i;let o=Object.create(null);const s=Object.create(null),l="type"in e?e.type:e,u=(0,r.isNonNullType)(l)?l.ofType:l,d=(0,r.isNonNullType)(l);if((0,r.isScalarType)(u))(null===(n=null==t?void 0:t.scalarSchemas)||void 0===n?void 0:n[u.name])?o=JSON.parse(JSON.stringify(t.scalarSchemas[u.name])):o.type=["string","number","boolean","integer"],d||(Array.isArray(o.type)?o.type.push("null"):o.type?o.type=[o.type,"null"]:o.enum?o.enum.push(null):o.oneOf?o.oneOf.push({type:"null"}):o={oneOf:[o,{type:"null"}]});else if((0,r.isEnumType)(u))o.enum=u.getValues().map(e=>e.name),d||o.enum.push(null);else if((0,r.isListType)(u)){o.type=d?"array":["array","null"];const{definition:e,definitions:n}=c(u.ofType,t);if(o.items=e,n)for(const e of Object.keys(n))s[e]=n[e]}else if((0,r.isInputObjectType)(u)&&(d?o.$ref=`#/definitions/${u.name}`:o.oneOf=[{$ref:`#/definitions/${u.name}`},{type:"null"}],null===(i=null==t?void 0:t.definitionMarker)||void 0===i?void 0:i.mark(u.name))){const e=u.getFields(),n={type:"object",properties:{},required:[]};n.description=a(u),(null==t?void 0:t.useMarkdownDescription)&&(n.markdownDescription=a(u,!0));for(const r of Object.keys(e)){const i=e[r],{required:o,definition:a,definitions:l}=c(i,t);if(n.properties[r]=a,o&&n.required.push(r),l)for(const[e,t]of Object.entries(l))s[e]=t}s[u.name]=n}"defaultValue"in e&&void 0!==e.defaultValue&&(o.default=e.defaultValue);const{description:p}=o;return o.description=a(e,!1,p),(null==t?void 0:t.useMarkdownDescription)&&(o.markdownDescription=a(e,!0,p)),{required:d,definition:o,definitions:s}}function d(e,t){var n;const r={$schema:"http://json-schema.org/draft-04/schema",type:"object",properties:{},required:[],additionalProperties:!1},i=Object.assign(Object.assign({},t),{definitionMarker:new u,scalarSchemas:Object.assign(Object.assign({},l),null==t?void 0:t.scalarSchemas)});if(e)for(const[t,o]of Object.entries(e)){const{definition:e,required:s,definitions:a}=c(o,i);r.properties[t]=e,s&&(null===(n=r.required)||void 0===n||n.push(t)),a&&(r.definitions=Object.assign(Object.assign({},null==r?void 0:r.definitions),a))}return r}},13924(e,t,n){n.r(t),n.d(t,{Position:()=>s.Position,Range:()=>s.Range,collectVariables:()=>l.collectVariables,getASTNodeAtPosition:()=>o.getASTNodeAtPosition,getFragmentDependencies:()=>r.getFragmentDependencies,getFragmentDependenciesForAST:()=>r.getFragmentDependenciesForAST,getOperationASTFacts:()=>u.getOperationASTFacts,getOperationFacts:()=>u.default,getQueryFacts:()=>u.getQueryFacts,getVariablesJSONSchema:()=>i.getVariablesJSONSchema,locToRange:()=>s.locToRange,offsetToPosition:()=>s.offsetToPosition,pointToOffset:()=>o.pointToOffset,validateWithCustomRules:()=>a.validateWithCustomRules});var r=n(9163),i=n(25322),o=n(46476),s=n(11993),a=n(52248),l=n(15741),u=n(66972)},52248(e,t,n){n.r(t),n.d(t,{validateWithCustomRules:()=>x});var r=n(8553),i=n(24556),o=n(38489),s=n(42455),a=n(49911),l=n(6868),u=n(8898),c=n(24466),d=n(91981),p=n(67565),f=n(12475),h=n(26886),m=n(80656),g=n(12584),y=n(55343),v=n(40354),b=n(27368),E=n(92954),T=n(73537),w=n(77065),k=n(85966);const S=[y.LoneSchemaDefinitionRule,v.UniqueOperationTypesRule,b.UniqueTypeNamesRule,E.UniqueEnumValueNamesRule,T.UniqueFieldDefinitionNamesRule,w.UniqueDirectiveNamesRule,c.KnownTypeNamesRule,l.KnownDirectivesRule,h.UniqueDirectivesPerLocationRule,k.PossibleTypeExtensionsRule,f.UniqueArgumentNamesRule,m.UniqueInputFieldNamesRule,g.UniqueVariableNamesRule,a.FragmentsOnCompositeTypesRule,p.ProvidedRequiredArgumentsRule];function x(e,t,n,a,l){const c=i.specifiedRules.filter(e=>e!==d.NoUnusedFragmentsRule&&e!==o.ExecutableDefinitionsRule&&(!a||e!==u.KnownFragmentNamesRule));return n&&Array.prototype.push.apply(c,n),l&&Array.prototype.push.apply(c,S),(0,r.validate)(e,t,c).filter(e=>{if(e.message.includes("Unknown directive")&&e.nodes){const t=e.nodes[0];if(t&&t.kind===s.Kind.DIRECTIVE){const e=t.name.value;if("arguments"===e||"argumentDefinitions"===e)return!1}}return!0})}},12685(e,t,n){var r=n(19537);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")}},95858(e){e.exports=function(e){return"object"==typeof e?null===e:"function"!=typeof e}},19537(e){e.exports=function(e){return null!=e&&"object"==typeof e&&!1===Array.isArray(e)}},31710(e,t,n){n.r(t),n.d(t,{CancellationToken:()=>o,CancellationTokenSource:()=>a,cancelOnDispose:()=>l});var r=n(22573);const i=Object.freeze(function(e,t){const n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}});var o;!function(e){e.isCancellationToken=function(t){return t===e.None||t===e.Cancelled||t instanceof s||!(!t||"object"!=typeof t)&&"boolean"==typeof t.isCancellationRequested&&"function"==typeof t.onCancellationRequested},e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:r.Event.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:i})}(o||(o={}));class s{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?i:(this._emitter||(this._emitter=new r.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class a{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new s),this._token}cancel(){this._token?this._token instanceof s&&this._token.cancel():this._token=o.Cancelled}dispose(e=!1){e&&this.cancel(),this._parentListener?.dispose(),this._token?this._token instanceof s&&this._token.dispose():this._token=o.None}}function l(e){const t=new a;return e.add({dispose(){t.cancel()}}),t.token}},36972(e,t,n){n.d(t,{Codicon:()=>s,codiconsDerived:()=>o}),n.r(t);var r=n(55833);const i={add:(0,r.register)("add",6e4),plus:(0,r.register)("plus",6e4),gistNew:(0,r.register)("gist-new",6e4),repoCreate:(0,r.register)("repo-create",6e4),lightbulb:(0,r.register)("lightbulb",60001),lightBulb:(0,r.register)("light-bulb",60001),repo:(0,r.register)("repo",60002),repoDelete:(0,r.register)("repo-delete",60002),gistFork:(0,r.register)("gist-fork",60003),repoForked:(0,r.register)("repo-forked",60003),gitPullRequest:(0,r.register)("git-pull-request",60004),gitPullRequestAbandoned:(0,r.register)("git-pull-request-abandoned",60004),recordKeys:(0,r.register)("record-keys",60005),keyboard:(0,r.register)("keyboard",60005),tag:(0,r.register)("tag",60006),gitPullRequestLabel:(0,r.register)("git-pull-request-label",60006),tagAdd:(0,r.register)("tag-add",60006),tagRemove:(0,r.register)("tag-remove",60006),person:(0,r.register)("person",60007),personFollow:(0,r.register)("person-follow",60007),personOutline:(0,r.register)("person-outline",60007),personFilled:(0,r.register)("person-filled",60007),gitBranch:(0,r.register)("git-branch",60008),gitBranchCreate:(0,r.register)("git-branch-create",60008),gitBranchDelete:(0,r.register)("git-branch-delete",60008),sourceControl:(0,r.register)("source-control",60008),mirror:(0,r.register)("mirror",60009),mirrorPublic:(0,r.register)("mirror-public",60009),star:(0,r.register)("star",60010),starAdd:(0,r.register)("star-add",60010),starDelete:(0,r.register)("star-delete",60010),starEmpty:(0,r.register)("star-empty",60010),comment:(0,r.register)("comment",60011),commentAdd:(0,r.register)("comment-add",60011),alert:(0,r.register)("alert",60012),warning:(0,r.register)("warning",60012),search:(0,r.register)("search",60013),searchSave:(0,r.register)("search-save",60013),logOut:(0,r.register)("log-out",60014),signOut:(0,r.register)("sign-out",60014),logIn:(0,r.register)("log-in",60015),signIn:(0,r.register)("sign-in",60015),eye:(0,r.register)("eye",60016),eyeUnwatch:(0,r.register)("eye-unwatch",60016),eyeWatch:(0,r.register)("eye-watch",60016),circleFilled:(0,r.register)("circle-filled",60017),primitiveDot:(0,r.register)("primitive-dot",60017),closeDirty:(0,r.register)("close-dirty",60017),debugBreakpoint:(0,r.register)("debug-breakpoint",60017),debugBreakpointDisabled:(0,r.register)("debug-breakpoint-disabled",60017),debugHint:(0,r.register)("debug-hint",60017),terminalDecorationSuccess:(0,r.register)("terminal-decoration-success",60017),primitiveSquare:(0,r.register)("primitive-square",60018),edit:(0,r.register)("edit",60019),pencil:(0,r.register)("pencil",60019),info:(0,r.register)("info",60020),issueOpened:(0,r.register)("issue-opened",60020),gistPrivate:(0,r.register)("gist-private",60021),gitForkPrivate:(0,r.register)("git-fork-private",60021),lock:(0,r.register)("lock",60021),mirrorPrivate:(0,r.register)("mirror-private",60021),close:(0,r.register)("close",60022),removeClose:(0,r.register)("remove-close",60022),x:(0,r.register)("x",60022),repoSync:(0,r.register)("repo-sync",60023),sync:(0,r.register)("sync",60023),clone:(0,r.register)("clone",60024),desktopDownload:(0,r.register)("desktop-download",60024),beaker:(0,r.register)("beaker",60025),microscope:(0,r.register)("microscope",60025),vm:(0,r.register)("vm",60026),deviceDesktop:(0,r.register)("device-desktop",60026),file:(0,r.register)("file",60027),fileText:(0,r.register)("file-text",60027),more:(0,r.register)("more",60028),ellipsis:(0,r.register)("ellipsis",60028),kebabHorizontal:(0,r.register)("kebab-horizontal",60028),mailReply:(0,r.register)("mail-reply",60029),reply:(0,r.register)("reply",60029),organization:(0,r.register)("organization",60030),organizationFilled:(0,r.register)("organization-filled",60030),organizationOutline:(0,r.register)("organization-outline",60030),newFile:(0,r.register)("new-file",60031),fileAdd:(0,r.register)("file-add",60031),newFolder:(0,r.register)("new-folder",60032),fileDirectoryCreate:(0,r.register)("file-directory-create",60032),trash:(0,r.register)("trash",60033),trashcan:(0,r.register)("trashcan",60033),history:(0,r.register)("history",60034),clock:(0,r.register)("clock",60034),folder:(0,r.register)("folder",60035),fileDirectory:(0,r.register)("file-directory",60035),symbolFolder:(0,r.register)("symbol-folder",60035),logoGithub:(0,r.register)("logo-github",60036),markGithub:(0,r.register)("mark-github",60036),github:(0,r.register)("github",60036),terminal:(0,r.register)("terminal",60037),console:(0,r.register)("console",60037),repl:(0,r.register)("repl",60037),zap:(0,r.register)("zap",60038),symbolEvent:(0,r.register)("symbol-event",60038),error:(0,r.register)("error",60039),stop:(0,r.register)("stop",60039),variable:(0,r.register)("variable",60040),symbolVariable:(0,r.register)("symbol-variable",60040),array:(0,r.register)("array",60042),symbolArray:(0,r.register)("symbol-array",60042),symbolModule:(0,r.register)("symbol-module",60043),symbolPackage:(0,r.register)("symbol-package",60043),symbolNamespace:(0,r.register)("symbol-namespace",60043),symbolObject:(0,r.register)("symbol-object",60043),symbolMethod:(0,r.register)("symbol-method",60044),symbolFunction:(0,r.register)("symbol-function",60044),symbolConstructor:(0,r.register)("symbol-constructor",60044),symbolBoolean:(0,r.register)("symbol-boolean",60047),symbolNull:(0,r.register)("symbol-null",60047),symbolNumeric:(0,r.register)("symbol-numeric",60048),symbolNumber:(0,r.register)("symbol-number",60048),symbolStructure:(0,r.register)("symbol-structure",60049),symbolStruct:(0,r.register)("symbol-struct",60049),symbolParameter:(0,r.register)("symbol-parameter",60050),symbolTypeParameter:(0,r.register)("symbol-type-parameter",60050),symbolKey:(0,r.register)("symbol-key",60051),symbolText:(0,r.register)("symbol-text",60051),symbolReference:(0,r.register)("symbol-reference",60052),goToFile:(0,r.register)("go-to-file",60052),symbolEnum:(0,r.register)("symbol-enum",60053),symbolValue:(0,r.register)("symbol-value",60053),symbolRuler:(0,r.register)("symbol-ruler",60054),symbolUnit:(0,r.register)("symbol-unit",60054),activateBreakpoints:(0,r.register)("activate-breakpoints",60055),archive:(0,r.register)("archive",60056),arrowBoth:(0,r.register)("arrow-both",60057),arrowDown:(0,r.register)("arrow-down",60058),arrowLeft:(0,r.register)("arrow-left",60059),arrowRight:(0,r.register)("arrow-right",60060),arrowSmallDown:(0,r.register)("arrow-small-down",60061),arrowSmallLeft:(0,r.register)("arrow-small-left",60062),arrowSmallRight:(0,r.register)("arrow-small-right",60063),arrowSmallUp:(0,r.register)("arrow-small-up",60064),arrowUp:(0,r.register)("arrow-up",60065),bell:(0,r.register)("bell",60066),bold:(0,r.register)("bold",60067),book:(0,r.register)("book",60068),bookmark:(0,r.register)("bookmark",60069),debugBreakpointConditionalUnverified:(0,r.register)("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:(0,r.register)("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:(0,r.register)("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:(0,r.register)("debug-breakpoint-data-unverified",60072),debugBreakpointData:(0,r.register)("debug-breakpoint-data",60073),debugBreakpointDataDisabled:(0,r.register)("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:(0,r.register)("debug-breakpoint-log-unverified",60074),debugBreakpointLog:(0,r.register)("debug-breakpoint-log",60075),debugBreakpointLogDisabled:(0,r.register)("debug-breakpoint-log-disabled",60075),briefcase:(0,r.register)("briefcase",60076),broadcast:(0,r.register)("broadcast",60077),browser:(0,r.register)("browser",60078),bug:(0,r.register)("bug",60079),calendar:(0,r.register)("calendar",60080),caseSensitive:(0,r.register)("case-sensitive",60081),check:(0,r.register)("check",60082),checklist:(0,r.register)("checklist",60083),chevronDown:(0,r.register)("chevron-down",60084),chevronLeft:(0,r.register)("chevron-left",60085),chevronRight:(0,r.register)("chevron-right",60086),chevronUp:(0,r.register)("chevron-up",60087),chromeClose:(0,r.register)("chrome-close",60088),chromeMaximize:(0,r.register)("chrome-maximize",60089),chromeMinimize:(0,r.register)("chrome-minimize",60090),chromeRestore:(0,r.register)("chrome-restore",60091),circleOutline:(0,r.register)("circle-outline",60092),circle:(0,r.register)("circle",60092),debugBreakpointUnverified:(0,r.register)("debug-breakpoint-unverified",60092),terminalDecorationIncomplete:(0,r.register)("terminal-decoration-incomplete",60092),circleSlash:(0,r.register)("circle-slash",60093),circuitBoard:(0,r.register)("circuit-board",60094),clearAll:(0,r.register)("clear-all",60095),clippy:(0,r.register)("clippy",60096),closeAll:(0,r.register)("close-all",60097),cloudDownload:(0,r.register)("cloud-download",60098),cloudUpload:(0,r.register)("cloud-upload",60099),code:(0,r.register)("code",60100),collapseAll:(0,r.register)("collapse-all",60101),colorMode:(0,r.register)("color-mode",60102),commentDiscussion:(0,r.register)("comment-discussion",60103),creditCard:(0,r.register)("credit-card",60105),dash:(0,r.register)("dash",60108),dashboard:(0,r.register)("dashboard",60109),database:(0,r.register)("database",60110),debugContinue:(0,r.register)("debug-continue",60111),debugDisconnect:(0,r.register)("debug-disconnect",60112),debugPause:(0,r.register)("debug-pause",60113),debugRestart:(0,r.register)("debug-restart",60114),debugStart:(0,r.register)("debug-start",60115),debugStepInto:(0,r.register)("debug-step-into",60116),debugStepOut:(0,r.register)("debug-step-out",60117),debugStepOver:(0,r.register)("debug-step-over",60118),debugStop:(0,r.register)("debug-stop",60119),debug:(0,r.register)("debug",60120),deviceCameraVideo:(0,r.register)("device-camera-video",60121),deviceCamera:(0,r.register)("device-camera",60122),deviceMobile:(0,r.register)("device-mobile",60123),diffAdded:(0,r.register)("diff-added",60124),diffIgnored:(0,r.register)("diff-ignored",60125),diffModified:(0,r.register)("diff-modified",60126),diffRemoved:(0,r.register)("diff-removed",60127),diffRenamed:(0,r.register)("diff-renamed",60128),diff:(0,r.register)("diff",60129),diffSidebyside:(0,r.register)("diff-sidebyside",60129),discard:(0,r.register)("discard",60130),editorLayout:(0,r.register)("editor-layout",60131),emptyWindow:(0,r.register)("empty-window",60132),exclude:(0,r.register)("exclude",60133),extensions:(0,r.register)("extensions",60134),eyeClosed:(0,r.register)("eye-closed",60135),fileBinary:(0,r.register)("file-binary",60136),fileCode:(0,r.register)("file-code",60137),fileMedia:(0,r.register)("file-media",60138),filePdf:(0,r.register)("file-pdf",60139),fileSubmodule:(0,r.register)("file-submodule",60140),fileSymlinkDirectory:(0,r.register)("file-symlink-directory",60141),fileSymlinkFile:(0,r.register)("file-symlink-file",60142),fileZip:(0,r.register)("file-zip",60143),files:(0,r.register)("files",60144),filter:(0,r.register)("filter",60145),flame:(0,r.register)("flame",60146),foldDown:(0,r.register)("fold-down",60147),foldUp:(0,r.register)("fold-up",60148),fold:(0,r.register)("fold",60149),folderActive:(0,r.register)("folder-active",60150),folderOpened:(0,r.register)("folder-opened",60151),gear:(0,r.register)("gear",60152),gift:(0,r.register)("gift",60153),gistSecret:(0,r.register)("gist-secret",60154),gist:(0,r.register)("gist",60155),gitCommit:(0,r.register)("git-commit",60156),gitCompare:(0,r.register)("git-compare",60157),compareChanges:(0,r.register)("compare-changes",60157),gitMerge:(0,r.register)("git-merge",60158),githubAction:(0,r.register)("github-action",60159),githubAlt:(0,r.register)("github-alt",60160),globe:(0,r.register)("globe",60161),grabber:(0,r.register)("grabber",60162),graph:(0,r.register)("graph",60163),gripper:(0,r.register)("gripper",60164),heart:(0,r.register)("heart",60165),home:(0,r.register)("home",60166),horizontalRule:(0,r.register)("horizontal-rule",60167),hubot:(0,r.register)("hubot",60168),inbox:(0,r.register)("inbox",60169),issueReopened:(0,r.register)("issue-reopened",60171),issues:(0,r.register)("issues",60172),italic:(0,r.register)("italic",60173),jersey:(0,r.register)("jersey",60174),json:(0,r.register)("json",60175),kebabVertical:(0,r.register)("kebab-vertical",60176),key:(0,r.register)("key",60177),law:(0,r.register)("law",60178),lightbulbAutofix:(0,r.register)("lightbulb-autofix",60179),linkExternal:(0,r.register)("link-external",60180),link:(0,r.register)("link",60181),listOrdered:(0,r.register)("list-ordered",60182),listUnordered:(0,r.register)("list-unordered",60183),liveShare:(0,r.register)("live-share",60184),loading:(0,r.register)("loading",60185),location:(0,r.register)("location",60186),mailRead:(0,r.register)("mail-read",60187),mail:(0,r.register)("mail",60188),markdown:(0,r.register)("markdown",60189),megaphone:(0,r.register)("megaphone",60190),mention:(0,r.register)("mention",60191),milestone:(0,r.register)("milestone",60192),gitPullRequestMilestone:(0,r.register)("git-pull-request-milestone",60192),mortarBoard:(0,r.register)("mortar-board",60193),move:(0,r.register)("move",60194),multipleWindows:(0,r.register)("multiple-windows",60195),mute:(0,r.register)("mute",60196),noNewline:(0,r.register)("no-newline",60197),note:(0,r.register)("note",60198),octoface:(0,r.register)("octoface",60199),openPreview:(0,r.register)("open-preview",60200),package:(0,r.register)("package",60201),paintcan:(0,r.register)("paintcan",60202),pin:(0,r.register)("pin",60203),play:(0,r.register)("play",60204),run:(0,r.register)("run",60204),plug:(0,r.register)("plug",60205),preserveCase:(0,r.register)("preserve-case",60206),preview:(0,r.register)("preview",60207),project:(0,r.register)("project",60208),pulse:(0,r.register)("pulse",60209),question:(0,r.register)("question",60210),quote:(0,r.register)("quote",60211),radioTower:(0,r.register)("radio-tower",60212),reactions:(0,r.register)("reactions",60213),references:(0,r.register)("references",60214),refresh:(0,r.register)("refresh",60215),regex:(0,r.register)("regex",60216),remoteExplorer:(0,r.register)("remote-explorer",60217),remote:(0,r.register)("remote",60218),remove:(0,r.register)("remove",60219),replaceAll:(0,r.register)("replace-all",60220),replace:(0,r.register)("replace",60221),repoClone:(0,r.register)("repo-clone",60222),repoForcePush:(0,r.register)("repo-force-push",60223),repoPull:(0,r.register)("repo-pull",60224),repoPush:(0,r.register)("repo-push",60225),report:(0,r.register)("report",60226),requestChanges:(0,r.register)("request-changes",60227),rocket:(0,r.register)("rocket",60228),rootFolderOpened:(0,r.register)("root-folder-opened",60229),rootFolder:(0,r.register)("root-folder",60230),rss:(0,r.register)("rss",60231),ruby:(0,r.register)("ruby",60232),saveAll:(0,r.register)("save-all",60233),saveAs:(0,r.register)("save-as",60234),save:(0,r.register)("save",60235),screenFull:(0,r.register)("screen-full",60236),screenNormal:(0,r.register)("screen-normal",60237),searchStop:(0,r.register)("search-stop",60238),server:(0,r.register)("server",60240),settingsGear:(0,r.register)("settings-gear",60241),settings:(0,r.register)("settings",60242),shield:(0,r.register)("shield",60243),smiley:(0,r.register)("smiley",60244),sortPrecedence:(0,r.register)("sort-precedence",60245),splitHorizontal:(0,r.register)("split-horizontal",60246),splitVertical:(0,r.register)("split-vertical",60247),squirrel:(0,r.register)("squirrel",60248),starFull:(0,r.register)("star-full",60249),starHalf:(0,r.register)("star-half",60250),symbolClass:(0,r.register)("symbol-class",60251),symbolColor:(0,r.register)("symbol-color",60252),symbolConstant:(0,r.register)("symbol-constant",60253),symbolEnumMember:(0,r.register)("symbol-enum-member",60254),symbolField:(0,r.register)("symbol-field",60255),symbolFile:(0,r.register)("symbol-file",60256),symbolInterface:(0,r.register)("symbol-interface",60257),symbolKeyword:(0,r.register)("symbol-keyword",60258),symbolMisc:(0,r.register)("symbol-misc",60259),symbolOperator:(0,r.register)("symbol-operator",60260),symbolProperty:(0,r.register)("symbol-property",60261),wrench:(0,r.register)("wrench",60261),wrenchSubaction:(0,r.register)("wrench-subaction",60261),symbolSnippet:(0,r.register)("symbol-snippet",60262),tasklist:(0,r.register)("tasklist",60263),telescope:(0,r.register)("telescope",60264),textSize:(0,r.register)("text-size",60265),threeBars:(0,r.register)("three-bars",60266),thumbsdown:(0,r.register)("thumbsdown",60267),thumbsup:(0,r.register)("thumbsup",60268),tools:(0,r.register)("tools",60269),triangleDown:(0,r.register)("triangle-down",60270),triangleLeft:(0,r.register)("triangle-left",60271),triangleRight:(0,r.register)("triangle-right",60272),triangleUp:(0,r.register)("triangle-up",60273),twitter:(0,r.register)("twitter",60274),unfold:(0,r.register)("unfold",60275),unlock:(0,r.register)("unlock",60276),unmute:(0,r.register)("unmute",60277),unverified:(0,r.register)("unverified",60278),verified:(0,r.register)("verified",60279),versions:(0,r.register)("versions",60280),vmActive:(0,r.register)("vm-active",60281),vmOutline:(0,r.register)("vm-outline",60282),vmRunning:(0,r.register)("vm-running",60283),watch:(0,r.register)("watch",60284),whitespace:(0,r.register)("whitespace",60285),wholeWord:(0,r.register)("whole-word",60286),window:(0,r.register)("window",60287),wordWrap:(0,r.register)("word-wrap",60288),zoomIn:(0,r.register)("zoom-in",60289),zoomOut:(0,r.register)("zoom-out",60290),listFilter:(0,r.register)("list-filter",60291),listFlat:(0,r.register)("list-flat",60292),listSelection:(0,r.register)("list-selection",60293),selection:(0,r.register)("selection",60293),listTree:(0,r.register)("list-tree",60294),debugBreakpointFunctionUnverified:(0,r.register)("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:(0,r.register)("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:(0,r.register)("debug-breakpoint-function-disabled",60296),debugStackframeActive:(0,r.register)("debug-stackframe-active",60297),circleSmallFilled:(0,r.register)("circle-small-filled",60298),debugStackframeDot:(0,r.register)("debug-stackframe-dot",60298),terminalDecorationMark:(0,r.register)("terminal-decoration-mark",60298),debugStackframe:(0,r.register)("debug-stackframe",60299),debugStackframeFocused:(0,r.register)("debug-stackframe-focused",60299),debugBreakpointUnsupported:(0,r.register)("debug-breakpoint-unsupported",60300),symbolString:(0,r.register)("symbol-string",60301),debugReverseContinue:(0,r.register)("debug-reverse-continue",60302),debugStepBack:(0,r.register)("debug-step-back",60303),debugRestartFrame:(0,r.register)("debug-restart-frame",60304),debugAlt:(0,r.register)("debug-alt",60305),callIncoming:(0,r.register)("call-incoming",60306),callOutgoing:(0,r.register)("call-outgoing",60307),menu:(0,r.register)("menu",60308),expandAll:(0,r.register)("expand-all",60309),feedback:(0,r.register)("feedback",60310),gitPullRequestReviewer:(0,r.register)("git-pull-request-reviewer",60310),groupByRefType:(0,r.register)("group-by-ref-type",60311),ungroupByRefType:(0,r.register)("ungroup-by-ref-type",60312),account:(0,r.register)("account",60313),gitPullRequestAssignee:(0,r.register)("git-pull-request-assignee",60313),bellDot:(0,r.register)("bell-dot",60314),debugConsole:(0,r.register)("debug-console",60315),library:(0,r.register)("library",60316),output:(0,r.register)("output",60317),runAll:(0,r.register)("run-all",60318),syncIgnored:(0,r.register)("sync-ignored",60319),pinned:(0,r.register)("pinned",60320),githubInverted:(0,r.register)("github-inverted",60321),serverProcess:(0,r.register)("server-process",60322),serverEnvironment:(0,r.register)("server-environment",60323),pass:(0,r.register)("pass",60324),issueClosed:(0,r.register)("issue-closed",60324),stopCircle:(0,r.register)("stop-circle",60325),playCircle:(0,r.register)("play-circle",60326),record:(0,r.register)("record",60327),debugAltSmall:(0,r.register)("debug-alt-small",60328),vmConnect:(0,r.register)("vm-connect",60329),cloud:(0,r.register)("cloud",60330),merge:(0,r.register)("merge",60331),export:(0,r.register)("export",60332),graphLeft:(0,r.register)("graph-left",60333),magnet:(0,r.register)("magnet",60334),notebook:(0,r.register)("notebook",60335),redo:(0,r.register)("redo",60336),checkAll:(0,r.register)("check-all",60337),pinnedDirty:(0,r.register)("pinned-dirty",60338),passFilled:(0,r.register)("pass-filled",60339),circleLargeFilled:(0,r.register)("circle-large-filled",60340),circleLarge:(0,r.register)("circle-large",60341),circleLargeOutline:(0,r.register)("circle-large-outline",60341),combine:(0,r.register)("combine",60342),gather:(0,r.register)("gather",60342),table:(0,r.register)("table",60343),variableGroup:(0,r.register)("variable-group",60344),typeHierarchy:(0,r.register)("type-hierarchy",60345),typeHierarchySub:(0,r.register)("type-hierarchy-sub",60346),typeHierarchySuper:(0,r.register)("type-hierarchy-super",60347),gitPullRequestCreate:(0,r.register)("git-pull-request-create",60348),runAbove:(0,r.register)("run-above",60349),runBelow:(0,r.register)("run-below",60350),notebookTemplate:(0,r.register)("notebook-template",60351),debugRerun:(0,r.register)("debug-rerun",60352),workspaceTrusted:(0,r.register)("workspace-trusted",60353),workspaceUntrusted:(0,r.register)("workspace-untrusted",60354),workspaceUnknown:(0,r.register)("workspace-unknown",60355),terminalCmd:(0,r.register)("terminal-cmd",60356),terminalDebian:(0,r.register)("terminal-debian",60357),terminalLinux:(0,r.register)("terminal-linux",60358),terminalPowershell:(0,r.register)("terminal-powershell",60359),terminalTmux:(0,r.register)("terminal-tmux",60360),terminalUbuntu:(0,r.register)("terminal-ubuntu",60361),terminalBash:(0,r.register)("terminal-bash",60362),arrowSwap:(0,r.register)("arrow-swap",60363),copy:(0,r.register)("copy",60364),personAdd:(0,r.register)("person-add",60365),filterFilled:(0,r.register)("filter-filled",60366),wand:(0,r.register)("wand",60367),debugLineByLine:(0,r.register)("debug-line-by-line",60368),inspect:(0,r.register)("inspect",60369),layers:(0,r.register)("layers",60370),layersDot:(0,r.register)("layers-dot",60371),layersActive:(0,r.register)("layers-active",60372),compass:(0,r.register)("compass",60373),compassDot:(0,r.register)("compass-dot",60374),compassActive:(0,r.register)("compass-active",60375),azure:(0,r.register)("azure",60376),issueDraft:(0,r.register)("issue-draft",60377),gitPullRequestClosed:(0,r.register)("git-pull-request-closed",60378),gitPullRequestDraft:(0,r.register)("git-pull-request-draft",60379),debugAll:(0,r.register)("debug-all",60380),debugCoverage:(0,r.register)("debug-coverage",60381),runErrors:(0,r.register)("run-errors",60382),folderLibrary:(0,r.register)("folder-library",60383),debugContinueSmall:(0,r.register)("debug-continue-small",60384),beakerStop:(0,r.register)("beaker-stop",60385),graphLine:(0,r.register)("graph-line",60386),graphScatter:(0,r.register)("graph-scatter",60387),pieChart:(0,r.register)("pie-chart",60388),bracket:(0,r.register)("bracket",60175),bracketDot:(0,r.register)("bracket-dot",60389),bracketError:(0,r.register)("bracket-error",60390),lockSmall:(0,r.register)("lock-small",60391),azureDevops:(0,r.register)("azure-devops",60392),verifiedFilled:(0,r.register)("verified-filled",60393),newline:(0,r.register)("newline",60394),layout:(0,r.register)("layout",60395),layoutActivitybarLeft:(0,r.register)("layout-activitybar-left",60396),layoutActivitybarRight:(0,r.register)("layout-activitybar-right",60397),layoutPanelLeft:(0,r.register)("layout-panel-left",60398),layoutPanelCenter:(0,r.register)("layout-panel-center",60399),layoutPanelJustify:(0,r.register)("layout-panel-justify",60400),layoutPanelRight:(0,r.register)("layout-panel-right",60401),layoutPanel:(0,r.register)("layout-panel",60402),layoutSidebarLeft:(0,r.register)("layout-sidebar-left",60403),layoutSidebarRight:(0,r.register)("layout-sidebar-right",60404),layoutStatusbar:(0,r.register)("layout-statusbar",60405),layoutMenubar:(0,r.register)("layout-menubar",60406),layoutCentered:(0,r.register)("layout-centered",60407),target:(0,r.register)("target",60408),indent:(0,r.register)("indent",60409),recordSmall:(0,r.register)("record-small",60410),errorSmall:(0,r.register)("error-small",60411),terminalDecorationError:(0,r.register)("terminal-decoration-error",60411),arrowCircleDown:(0,r.register)("arrow-circle-down",60412),arrowCircleLeft:(0,r.register)("arrow-circle-left",60413),arrowCircleRight:(0,r.register)("arrow-circle-right",60414),arrowCircleUp:(0,r.register)("arrow-circle-up",60415),layoutSidebarRightOff:(0,r.register)("layout-sidebar-right-off",60416),layoutPanelOff:(0,r.register)("layout-panel-off",60417),layoutSidebarLeftOff:(0,r.register)("layout-sidebar-left-off",60418),blank:(0,r.register)("blank",60419),heartFilled:(0,r.register)("heart-filled",60420),map:(0,r.register)("map",60421),mapHorizontal:(0,r.register)("map-horizontal",60421),foldHorizontal:(0,r.register)("fold-horizontal",60421),mapFilled:(0,r.register)("map-filled",60422),mapHorizontalFilled:(0,r.register)("map-horizontal-filled",60422),foldHorizontalFilled:(0,r.register)("fold-horizontal-filled",60422),circleSmall:(0,r.register)("circle-small",60423),bellSlash:(0,r.register)("bell-slash",60424),bellSlashDot:(0,r.register)("bell-slash-dot",60425),commentUnresolved:(0,r.register)("comment-unresolved",60426),gitPullRequestGoToChanges:(0,r.register)("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:(0,r.register)("git-pull-request-new-changes",60428),searchFuzzy:(0,r.register)("search-fuzzy",60429),commentDraft:(0,r.register)("comment-draft",60430),send:(0,r.register)("send",60431),sparkle:(0,r.register)("sparkle",60432),insert:(0,r.register)("insert",60433),mic:(0,r.register)("mic",60434),thumbsdownFilled:(0,r.register)("thumbsdown-filled",60435),thumbsupFilled:(0,r.register)("thumbsup-filled",60436),coffee:(0,r.register)("coffee",60437),snake:(0,r.register)("snake",60438),game:(0,r.register)("game",60439),vr:(0,r.register)("vr",60440),chip:(0,r.register)("chip",60441),piano:(0,r.register)("piano",60442),music:(0,r.register)("music",60443),micFilled:(0,r.register)("mic-filled",60444),repoFetch:(0,r.register)("repo-fetch",60445),copilot:(0,r.register)("copilot",60446),lightbulbSparkle:(0,r.register)("lightbulb-sparkle",60447),robot:(0,r.register)("robot",60448),sparkleFilled:(0,r.register)("sparkle-filled",60449),diffSingle:(0,r.register)("diff-single",60450),diffMultiple:(0,r.register)("diff-multiple",60451),surroundWith:(0,r.register)("surround-with",60452),share:(0,r.register)("share",60453),gitStash:(0,r.register)("git-stash",60454),gitStashApply:(0,r.register)("git-stash-apply",60455),gitStashPop:(0,r.register)("git-stash-pop",60456),vscode:(0,r.register)("vscode",60457),vscodeInsiders:(0,r.register)("vscode-insiders",60458),codeOss:(0,r.register)("code-oss",60459),runCoverage:(0,r.register)("run-coverage",60460),runAllCoverage:(0,r.register)("run-all-coverage",60461),coverage:(0,r.register)("coverage",60462),githubProject:(0,r.register)("github-project",60463),mapVertical:(0,r.register)("map-vertical",60464),foldVertical:(0,r.register)("fold-vertical",60464),mapVerticalFilled:(0,r.register)("map-vertical-filled",60465),foldVerticalFilled:(0,r.register)("fold-vertical-filled",60465),goToSearch:(0,r.register)("go-to-search",60466),percentage:(0,r.register)("percentage",60467),sortPercentage:(0,r.register)("sort-percentage",60467),attach:(0,r.register)("attach",60468)},o={dialogError:(0,r.register)("dialog-error","error"),dialogWarning:(0,r.register)("dialog-warning","warning"),dialogInfo:(0,r.register)("dialog-info","info"),dialogClose:(0,r.register)("dialog-close","close"),treeItemExpanded:(0,r.register)("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:(0,r.register)("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:(0,r.register)("tree-filter-on-type-off","list-selection"),treeFilterClear:(0,r.register)("tree-filter-clear","close"),treeItemLoading:(0,r.register)("tree-item-loading","loading"),menuSelection:(0,r.register)("menu-selection","check"),menuSubmenu:(0,r.register)("menu-submenu","chevron-right"),menuBarMore:(0,r.register)("menubar-more","more"),scrollbarButtonLeft:(0,r.register)("scrollbar-button-left","triangle-left"),scrollbarButtonRight:(0,r.register)("scrollbar-button-right","triangle-right"),scrollbarButtonUp:(0,r.register)("scrollbar-button-up","triangle-up"),scrollbarButtonDown:(0,r.register)("scrollbar-button-down","triangle-down"),toolBarMore:(0,r.register)("toolbar-more","more"),quickInputBack:(0,r.register)("quick-input-back","arrow-left"),dropDownButton:(0,r.register)("drop-down-button",60084),symbolCustomColor:(0,r.register)("symbol-customcolor",60252),exportIcon:(0,r.register)("export",60332),workspaceUnspecified:(0,r.register)("workspace-unspecified",60355),newLine:(0,r.register)("newline",60394),thumbsDownFilled:(0,r.register)("thumbsdown-filled",60435),thumbsUpFilled:(0,r.register)("thumbsup-filled",60436),gitFetch:(0,r.register)("git-fetch",60445),lightbulbSparkleAutofix:(0,r.register)("lightbulb-sparkle-autofix",60447),debugBreakpointPending:(0,r.register)("debug-breakpoint-pending",60377)},s={...i,...o}},55833(e,t,n){n.r(t),n.d(t,{getCodiconFontCharacters:()=>s,register:()=>o});var r=n(69708);const i=Object.create(null);function o(e,t){if((0,r.isString)(t)){const n=i[t];if(void 0===n)throw new Error(`${e} references an unknown codicon: ${t}`);t=n}return i[e]=t,{id:e}}function s(){return i}},73226(e,t,n){n.r(t),n.d(t,{BugIndicatingError:()=>g,CancellationError:()=>c,ErrorHandler:()=>r,ErrorNoTelemetry:()=>m,NotSupportedError:()=>h,canceled:()=>d,errorHandler:()=>i,illegalArgument:()=>p,illegalState:()=>f,isCancellationError:()=>u,onUnexpectedError:()=>o,onUnexpectedExternalError:()=>s,transformErrorForSerialization:()=>a});class r{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{if(e.stack){if(m.isErrorNoTelemetry(e))throw new m(e.message+"\n\n"+e.stack);throw new Error(e.message+"\n\n"+e.stack)}throw e},0)}}emit(e){this.listeners.forEach(t=>{t(e)})}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}}const i=new r;function o(e){u(e)||i.onUnexpectedError(e)}function s(e){u(e)||i.onUnexpectedExternalError(e)}function a(e){if(e instanceof Error){const{name:t,message:n}=e;return{$isError:!0,name:t,message:n,stack:e.stacktrace||e.stack,noTelemetry:m.isErrorNoTelemetry(e)}}return e}const l="Canceled";function u(e){return e instanceof c||e instanceof Error&&e.name===l&&e.message===l}class c extends Error{constructor(){super(l),this.name=this.message}}function d(){const e=new Error(l);return e.name=e.message,e}function p(e){return e?new Error(`Illegal argument: ${e}`):new Error("Illegal argument")}function f(e){return e?new Error(`Illegal state: ${e}`):new Error("Illegal state")}class h extends Error{constructor(e){super("NotSupported"),e&&(this.message=e)}}class m extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(e){if(e instanceof m)return e;const t=new m;return t.message=e.message,t.stack=e.stack,t}static isErrorNoTelemetry(e){return"CodeExpectedError"===e.name}}class g extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,g.prototype)}}},22573(e,t,n){n.r(t),n.d(t,{DebounceEmitter:()=>b,Emitter:()=>m,Event:()=>r,EventBufferer:()=>w,EventMultiplexer:()=>T,EventProfiling:()=>u,ListenerLeakError:()=>p,ListenerRefusalError:()=>f,MicrotaskEmitter:()=>E,PauseableEmitter:()=>v,Relay:()=>k,createEventDeliveryQueue:()=>g});var r,i=n(73226),o=n(93444),s=n(32293),a=n(70092),l=n(30222);!function(e){function t(e){return(t,n=null,r)=>{let i,o=!1;return i=e(e=>{if(!o)return i?i.dispose():o=!0,t.call(n,e)},null,r),o&&i.dispose(),i}}function n(e,t,n){return i((n,r=null,i)=>e(e=>n.call(r,t(e)),null,i),n)}function r(e,t,n){return i((n,r=null,i)=>e(e=>t(e)&&n.call(r,e),null,i),n)}function i(e,t){let n;const r=new m({onWillAddFirstListener(){n=e(r.fire,r)},onDidRemoveLastListener(){n?.dispose()}});return t?.add(r),r.event}function o(e,t,n=100,r=!1,i=!1,o,s){let a,l,u,c,d=0;const p=new m({leakWarningThreshold:o,onWillAddFirstListener(){a=e(e=>{d++,l=t(l,e),r&&!u&&(p.fire(l),l=void 0),c=()=>{const e=l;l=void 0,u=void 0,(!r||d>1)&&p.fire(e),d=0},"number"==typeof n?(clearTimeout(u),u=setTimeout(c,n)):void 0===u&&(u=0,queueMicrotask(c))})},onWillRemoveListener(){i&&d>0&&c?.()},onDidRemoveLastListener(){c=void 0,a.dispose()}});return s?.add(p),p.event}e.None=()=>s.Disposable.None,e.defer=function(e,t){return o(e,()=>{},0,void 0,!0,void 0,t)},e.once=t,e.onceIf=function(t,n){return e.once(e.filter(t,n))},e.map=n,e.forEach=function(e,t,n){return i((n,r=null,i)=>e(e=>{t(e),n.call(r,e)},null,i),n)},e.filter=r,e.signal=function(e){return e},e.any=function(...e){return(t,n=null,r)=>{const i=(0,s.combinedDisposable)(...e.map(e=>e(e=>t.call(n,e))));return o=i,(a=r)instanceof Array?a.push(o):a&&a.add(o),o;var o,a}},e.reduce=function(e,t,r,i){let o=r;return n(e,e=>(o=t(o,e),o),i)},e.debounce=o,e.accumulate=function(t,n=0,r){return e.debounce(t,(e,t)=>e?(e.push(t),e):[t],n,void 0,!0,void 0,r)},e.latch=function(e,t=(e,t)=>e===t,n){let i,o=!0;return r(e,e=>{const n=o||!t(e,i);return o=!1,i=e,n},n)},e.split=function(t,n,r){return[e.filter(t,n,r),e.filter(t,e=>!n(e),r)]},e.buffer=function(e,t=!1,n=[],r){let i=n.slice(),o=e(e=>{i?i.push(e):a.fire(e)});r&&r.add(o);const s=()=>{i?.forEach(e=>a.fire(e)),i=null},a=new m({onWillAddFirstListener(){o||(o=e(e=>a.fire(e)),r&&r.add(o))},onDidAddFirstListener(){i&&(t?setTimeout(s):s())},onDidRemoveLastListener(){o&&o.dispose(),o=null}});return r&&r.add(a),a.event},e.chain=function(e,t){return(n,r,i)=>{const o=t(new l);return e(function(e){const t=o.evaluate(e);t!==a&&n.call(r,t)},void 0,i)}};const a=Symbol("HaltChainable");class l{constructor(){this.steps=[]}map(e){return this.steps.push(e),this}forEach(e){return this.steps.push(t=>(e(t),t)),this}filter(e){return this.steps.push(t=>e(t)?t:a),this}reduce(e,t){let n=t;return this.steps.push(t=>(n=e(n,t),n)),this}latch(e=(e,t)=>e===t){let t,n=!0;return this.steps.push(r=>{const i=n||!e(r,t);return n=!1,t=r,i?r:a}),this}evaluate(e){for(const t of this.steps)if((e=t(e))===a)break;return e}}e.fromNodeEventEmitter=function(e,t,n=e=>e){const r=(...e)=>i.fire(n(...e)),i=new m({onWillAddFirstListener:()=>e.on(t,r),onDidRemoveLastListener:()=>e.removeListener(t,r)});return i.event},e.fromDOMEventEmitter=function(e,t,n=e=>e){const r=(...e)=>i.fire(n(...e)),i=new m({onWillAddFirstListener:()=>e.addEventListener(t,r),onDidRemoveLastListener:()=>e.removeEventListener(t,r)});return i.event},e.toPromise=function(e){return new Promise(n=>t(e)(n))},e.fromPromise=function(e){const t=new m;return e.then(e=>{t.fire(e)},()=>{t.fire(void 0)}).finally(()=>{t.dispose()}),t.event},e.forward=function(e,t){return e(e=>t.fire(e))},e.runAndSubscribe=function(e,t,n){return t(n),e(e=>t(e))};class u{constructor(e,t){this._observable=e,this._counter=0,this._hasChanged=!1;const n={onWillAddFirstListener:()=>{e.addObserver(this),this._observable.reportChanges()},onDidRemoveLastListener:()=>{e.removeObserver(this)}};this.emitter=new m(n),t&&t.add(this.emitter)}beginUpdate(e){this._counter++}handlePossibleChange(e){}handleChange(e,t){this._hasChanged=!0}endUpdate(e){this._counter--,0===this._counter&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}e.fromObservable=function(e,t){return new u(e,t).emitter.event},e.fromObservableLight=function(e){return(t,n,r)=>{let i=0,o=!1;const a={beginUpdate(){i++},endUpdate(){i--,0===i&&(e.reportChanges(),o&&(o=!1,t.call(n)))},handlePossibleChange(){},handleChange(){o=!0}};e.addObserver(a),e.reportChanges();const l={dispose(){e.removeObserver(a)}};return r instanceof s.DisposableStore?r.add(l):Array.isArray(r)&&r.push(l),l}}}(r||(r={}));class u{static{this.all=new Set}static{this._idPool=0}constructor(e){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${e}_${u._idPool++}`,u.all.add(this)}start(e){this._stopWatch=new l.StopWatch,this.listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}}class c{static{this._idPool=1}constructor(e,t,n=(c._idPool++).toString(16).padStart(3,"0")){this._errorHandler=e,this.threshold=t,this.name=n,this._warnCountdown=0}dispose(){this._stacks?.clear()}check(e,t){const n=this.threshold;if(n<=0||t<n)return;this._stacks||(this._stacks=new Map);const r=this._stacks.get(e.value)||0;if(this._stacks.set(e.value,r+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=.5*n;const[e,r]=this.getMostFrequentStack(),i=`[${this.name}] potential listener LEAK detected, having ${t} listeners already. MOST frequent listener (${r}):`;console.warn(i),console.warn(e);const o=new p(i,e);this._errorHandler(o)}return()=>{const t=this._stacks.get(e.value)||0;this._stacks.set(e.value,t-1)}}getMostFrequentStack(){if(!this._stacks)return;let e,t=0;for(const[n,r]of this._stacks)(!e||t<r)&&(e=[n,r],t=r);return e}}class d{static create(){const e=new Error;return new d(e.stack??"")}constructor(e){this.value=e}print(){console.warn(this.value.split("\n").slice(2).join("\n"))}}class p extends Error{constructor(e,t){super(e),this.name="ListenerLeakError",this.stack=t}}class f extends Error{constructor(e,t){super(e),this.name="ListenerRefusalError",this.stack=t}}class h{constructor(e){this.value=e}}class m{constructor(e){this._size=0,this._options=e,this._leakageMon=this._options?.leakWarningThreshold?new c(e?.onListenerError??i.onUnexpectedError,this._options?.leakWarningThreshold??-1):void 0,this._perfMon=this._options?._profName?new u(this._options._profName):void 0,this._deliveryQueue=this._options?.deliveryQueue}dispose(){this._disposed||(this._disposed=!0,this._deliveryQueue?.current===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),this._options?.onDidRemoveLastListener?.(),this._leakageMon?.dispose())}get event(){return this._event??=(e,t,n)=>{if(this._leakageMon&&this._size>this._leakageMon.threshold**2){const e=`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;console.warn(e);const t=this._leakageMon.getMostFrequentStack()??["UNKNOWN stack",-1],n=new f(`${e}. HINT: Stack shows most frequent listener (${t[1]}-times)`,t[0]);return(this._options?.onListenerError||i.onUnexpectedError)(n),s.Disposable.None}if(this._disposed)return s.Disposable.None;t&&(e=e.bind(t));const r=new h(e);let o;this._leakageMon&&this._size>=Math.ceil(.2*this._leakageMon.threshold)&&(r.stack=d.create(),o=this._leakageMon.check(r.stack,this._size+1)),this._listeners?this._listeners instanceof h?(this._deliveryQueue??=new y,this._listeners=[this._listeners,r]):this._listeners.push(r):(this._options?.onWillAddFirstListener?.(this),this._listeners=r,this._options?.onDidAddFirstListener?.(this)),this._size++;const a=(0,s.toDisposable)(()=>{o?.(),this._removeListener(r)});return n instanceof s.DisposableStore?n.add(a):Array.isArray(n)&&n.push(a),a},this._event}_removeListener(e){if(this._options?.onWillRemoveListener?.(this),!this._listeners)return;if(1===this._size)return this._listeners=void 0,this._options?.onDidRemoveLastListener?.(this),void(this._size=0);const t=this._listeners,n=t.indexOf(e);if(-1===n)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,t[n]=void 0;const r=this._deliveryQueue.current===this;if(2*this._size<=t.length){let e=0;for(let n=0;n<t.length;n++)t[n]?t[e++]=t[n]:r&&(this._deliveryQueue.end--,e<this._deliveryQueue.i&&this._deliveryQueue.i--);t.length=e}}_deliver(e,t){if(!e)return;const n=this._options?.onListenerError||i.onUnexpectedError;if(n)try{e.value(t)}catch(e){n(e)}else e.value(t)}_deliverQueue(e){const t=e.current._listeners;for(;e.i<e.end;)this._deliver(t[e.i++],e.value);e.reset()}fire(e){if(this._deliveryQueue?.current&&(this._deliverQueue(this._deliveryQueue),this._perfMon?.stop()),this._perfMon?.start(this._size),this._listeners)if(this._listeners instanceof h)this._deliver(this._listeners,e);else{const t=this._deliveryQueue;t.enqueue(this,e,this._listeners.length),this._deliverQueue(t)}this._perfMon?.stop()}hasListeners(){return this._size>0}}const g=()=>new y;class y{constructor(){this.i=-1,this.end=0}enqueue(e,t,n){this.i=0,this.end=n,this.current=e,this.value=t}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}class v extends m{constructor(e){super(e),this._isPaused=0,this._eventQueue=new a.LinkedList,this._mergeFn=e?.merge}pause(){this._isPaused++}resume(){if(0!==this._isPaused&&0===--this._isPaused)if(this._mergeFn){if(this._eventQueue.size>0){const e=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(e))}}else for(;!this._isPaused&&0!==this._eventQueue.size;)super.fire(this._eventQueue.shift())}fire(e){this._size&&(0!==this._isPaused?this._eventQueue.push(e):super.fire(e))}}class b extends v{constructor(e){super(e),this._delay=e.delay??100}fire(e){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(e)}}class E extends m{constructor(e){super(e),this._queuedEvents=[],this._mergeFn=e?.merge}fire(e){this.hasListeners()&&(this._queuedEvents.push(e),1===this._queuedEvents.length&&queueMicrotask(()=>{this._mergeFn?super.fire(this._mergeFn(this._queuedEvents)):this._queuedEvents.forEach(e=>super.fire(e)),this._queuedEvents=[]}))}}class T{constructor(){this.hasListeners=!1,this.events=[],this.emitter=new m({onWillAddFirstListener:()=>this.onFirstListenerAdd(),onDidRemoveLastListener:()=>this.onLastListenerRemove()})}get event(){return this.emitter.event}add(e){const t={event:e,listener:null};return this.events.push(t),this.hasListeners&&this.hook(t),(0,s.toDisposable)((0,o.createSingleCallFunction)(()=>{this.hasListeners&&this.unhook(t);const e=this.events.indexOf(t);this.events.splice(e,1)}))}onFirstListenerAdd(){this.hasListeners=!0,this.events.forEach(e=>this.hook(e))}onLastListenerRemove(){this.hasListeners=!1,this.events.forEach(e=>this.unhook(e))}hook(e){e.listener=e.event(e=>this.emitter.fire(e))}unhook(e){e.listener?.dispose(),e.listener=null}dispose(){this.emitter.dispose();for(const e of this.events)e.listener?.dispose();this.events=[]}}class w{constructor(){this.data=[]}wrapEvent(e,t,n){return(r,i,o)=>e(e=>{const o=this.data[this.data.length-1];if(!t)return void(o?o.buffers.push(()=>r.call(i,e)):r.call(i,e));const s=o;s?(s.items??=[],s.items.push(e),0===s.buffers.length&&o.buffers.push(()=>{s.reducedResult??=n?s.items.reduce(t,n):s.items.reduce(t),r.call(i,s.reducedResult)})):r.call(i,t(n,e))},void 0,o)}bufferEvents(e){const t={buffers:new Array};this.data.push(t);const n=e();return this.data.pop(),t.buffers.forEach(e=>e()),n}}class k{constructor(){this.listening=!1,this.inputEvent=r.None,this.inputEventListener=s.Disposable.None,this.emitter=new m({onDidAddFirstListener:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onDidRemoveLastListener:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(e){this.inputEvent=e,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=e(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},93444(e,t,n){function r(e,t){const n=this;let r,i=!1;return function(){if(i)return r;if(i=!0,t)try{r=e.apply(n,arguments)}finally{t()}else r=e.apply(n,arguments);return r}}n.r(t),n.d(t,{createSingleCallFunction:()=>r})},73179(e,t,n){var r;n.r(t),n.d(t,{Iterable:()=>r}),function(e){function t(e){return e&&"object"==typeof e&&"function"==typeof e[Symbol.iterator]}e.is=t;const n=Object.freeze([]);function*r(e){yield e}e.empty=function(){return n},e.single=r,e.wrap=function(e){return t(e)?e:r(e)},e.from=function(e){return e||n},e.reverse=function*(e){for(let t=e.length-1;t>=0;t--)yield e[t]},e.isEmpty=function(e){return!e||!0===e[Symbol.iterator]().next().done},e.first=function(e){return e[Symbol.iterator]().next().value},e.some=function(e,t){let n=0;for(const r of e)if(t(r,n++))return!0;return!1},e.find=function(e,t){for(const n of e)if(t(n))return n},e.filter=function*(e,t){for(const n of e)t(n)&&(yield n)},e.map=function*(e,t){let n=0;for(const r of e)yield t(r,n++)},e.flatMap=function*(e,t){let n=0;for(const r of e)yield*t(r,n++)},e.concat=function*(...e){for(const t of e)yield*t},e.reduce=function(e,t,n){let r=n;for(const n of e)r=t(r,n);return r},e.slice=function*(e,t,n=e.length){for(t<0&&(t+=e.length),n<0?n+=e.length:n>e.length&&(n=e.length);t<n;t++)yield e[t]},e.consume=function(t,n=Number.POSITIVE_INFINITY){const r=[];if(0===n)return[r,t];const i=t[Symbol.iterator]();for(let t=0;t<n;t++){const t=i.next();if(t.done)return[r,e.empty()];r.push(t.value)}return[r,{[Symbol.iterator]:()=>i}]},e.asyncToArray=async function(e){const t=[];for await(const n of e)t.push(n);return Promise.resolve(t)}}(r||(r={}))},58518(e,t,n){n.r(t),n.d(t,{EVENT_KEY_CODE_MAP:()=>a,IMMUTABLE_CODE_TO_KEY_CODE:()=>p,IMMUTABLE_KEY_CODE_TO_CODE:()=>f,KeyChord:()=>m,KeyCodeUtils:()=>h,NATIVE_WINDOWS_KEY_CODE_TO_KEY_CODE:()=>l});class r{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}const i=new r,o=new r,s=new r,a=new Array(230),l={},u=[],c=Object.create(null),d=Object.create(null),p=[],f=[];for(let e=0;e<=193;e++)p[e]=-1;for(let e=0;e<=132;e++)f[e]=-1;var h;function m(e,t){return(e|(65535&t)<<16>>>0)>>>0}!function(){const e="",t=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN",e,e],[1,1,"Hyper",0,e,0,e,e,e],[1,2,"Super",0,e,0,e,e,e],[1,3,"Fn",0,e,0,e,e,e],[1,4,"FnLock",0,e,0,e,e,e],[1,5,"Suspend",0,e,0,e,e,e],[1,6,"Resume",0,e,0,e,e,e],[1,7,"Turbo",0,e,0,e,e,e],[1,8,"Sleep",0,e,0,"VK_SLEEP",e,e],[1,9,"WakeUp",0,e,0,e,e,e],[0,10,"KeyA",31,"A",65,"VK_A",e,e],[0,11,"KeyB",32,"B",66,"VK_B",e,e],[0,12,"KeyC",33,"C",67,"VK_C",e,e],[0,13,"KeyD",34,"D",68,"VK_D",e,e],[0,14,"KeyE",35,"E",69,"VK_E",e,e],[0,15,"KeyF",36,"F",70,"VK_F",e,e],[0,16,"KeyG",37,"G",71,"VK_G",e,e],[0,17,"KeyH",38,"H",72,"VK_H",e,e],[0,18,"KeyI",39,"I",73,"VK_I",e,e],[0,19,"KeyJ",40,"J",74,"VK_J",e,e],[0,20,"KeyK",41,"K",75,"VK_K",e,e],[0,21,"KeyL",42,"L",76,"VK_L",e,e],[0,22,"KeyM",43,"M",77,"VK_M",e,e],[0,23,"KeyN",44,"N",78,"VK_N",e,e],[0,24,"KeyO",45,"O",79,"VK_O",e,e],[0,25,"KeyP",46,"P",80,"VK_P",e,e],[0,26,"KeyQ",47,"Q",81,"VK_Q",e,e],[0,27,"KeyR",48,"R",82,"VK_R",e,e],[0,28,"KeyS",49,"S",83,"VK_S",e,e],[0,29,"KeyT",50,"T",84,"VK_T",e,e],[0,30,"KeyU",51,"U",85,"VK_U",e,e],[0,31,"KeyV",52,"V",86,"VK_V",e,e],[0,32,"KeyW",53,"W",87,"VK_W",e,e],[0,33,"KeyX",54,"X",88,"VK_X",e,e],[0,34,"KeyY",55,"Y",89,"VK_Y",e,e],[0,35,"KeyZ",56,"Z",90,"VK_Z",e,e],[0,36,"Digit1",22,"1",49,"VK_1",e,e],[0,37,"Digit2",23,"2",50,"VK_2",e,e],[0,38,"Digit3",24,"3",51,"VK_3",e,e],[0,39,"Digit4",25,"4",52,"VK_4",e,e],[0,40,"Digit5",26,"5",53,"VK_5",e,e],[0,41,"Digit6",27,"6",54,"VK_6",e,e],[0,42,"Digit7",28,"7",55,"VK_7",e,e],[0,43,"Digit8",29,"8",56,"VK_8",e,e],[0,44,"Digit9",30,"9",57,"VK_9",e,e],[0,45,"Digit0",21,"0",48,"VK_0",e,e],[1,46,"Enter",3,"Enter",13,"VK_RETURN",e,e],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE",e,e],[1,48,"Backspace",1,"Backspace",8,"VK_BACK",e,e],[1,49,"Tab",2,"Tab",9,"VK_TAB",e,e],[1,50,"Space",10,"Space",32,"VK_SPACE",e,e],[0,51,"Minus",88,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[0,52,"Equal",86,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[0,53,"BracketLeft",92,"[",219,"VK_OEM_4","[","OEM_4"],[0,54,"BracketRight",94,"]",221,"VK_OEM_6","]","OEM_6"],[0,55,"Backslash",93,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,56,"IntlHash",0,e,0,e,e,e],[0,57,"Semicolon",85,";",186,"VK_OEM_1",";","OEM_1"],[0,58,"Quote",95,"'",222,"VK_OEM_7","'","OEM_7"],[0,59,"Backquote",91,"`",192,"VK_OEM_3","`","OEM_3"],[0,60,"Comma",87,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[0,61,"Period",89,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[0,62,"Slash",90,"/",191,"VK_OEM_2","/","OEM_2"],[1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",e,e],[1,64,"F1",59,"F1",112,"VK_F1",e,e],[1,65,"F2",60,"F2",113,"VK_F2",e,e],[1,66,"F3",61,"F3",114,"VK_F3",e,e],[1,67,"F4",62,"F4",115,"VK_F4",e,e],[1,68,"F5",63,"F5",116,"VK_F5",e,e],[1,69,"F6",64,"F6",117,"VK_F6",e,e],[1,70,"F7",65,"F7",118,"VK_F7",e,e],[1,71,"F8",66,"F8",119,"VK_F8",e,e],[1,72,"F9",67,"F9",120,"VK_F9",e,e],[1,73,"F10",68,"F10",121,"VK_F10",e,e],[1,74,"F11",69,"F11",122,"VK_F11",e,e],[1,75,"F12",70,"F12",123,"VK_F12",e,e],[1,76,"PrintScreen",0,e,0,e,e,e],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL",e,e],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",e,e],[1,79,"Insert",19,"Insert",45,"VK_INSERT",e,e],[1,80,"Home",14,"Home",36,"VK_HOME",e,e],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",e,e],[1,82,"Delete",20,"Delete",46,"VK_DELETE",e,e],[1,83,"End",13,"End",35,"VK_END",e,e],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT",e,e],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",e],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",e],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",e],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",e],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK",e,e],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE",e,e],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY",e,e],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT",e,e],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD",e,e],[1,94,"NumpadEnter",3,e,0,e,e,e],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1",e,e],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2",e,e],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3",e,e],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4",e,e],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5",e,e],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6",e,e],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7",e,e],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8",e,e],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9",e,e],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0",e,e],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL",e,e],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102",e,e],[1,107,"ContextMenu",58,"ContextMenu",93,e,e,e],[1,108,"Power",0,e,0,e,e,e],[1,109,"NumpadEqual",0,e,0,e,e,e],[1,110,"F13",71,"F13",124,"VK_F13",e,e],[1,111,"F14",72,"F14",125,"VK_F14",e,e],[1,112,"F15",73,"F15",126,"VK_F15",e,e],[1,113,"F16",74,"F16",127,"VK_F16",e,e],[1,114,"F17",75,"F17",128,"VK_F17",e,e],[1,115,"F18",76,"F18",129,"VK_F18",e,e],[1,116,"F19",77,"F19",130,"VK_F19",e,e],[1,117,"F20",78,"F20",131,"VK_F20",e,e],[1,118,"F21",79,"F21",132,"VK_F21",e,e],[1,119,"F22",80,"F22",133,"VK_F22",e,e],[1,120,"F23",81,"F23",134,"VK_F23",e,e],[1,121,"F24",82,"F24",135,"VK_F24",e,e],[1,122,"Open",0,e,0,e,e,e],[1,123,"Help",0,e,0,e,e,e],[1,124,"Select",0,e,0,e,e,e],[1,125,"Again",0,e,0,e,e,e],[1,126,"Undo",0,e,0,e,e,e],[1,127,"Cut",0,e,0,e,e,e],[1,128,"Copy",0,e,0,e,e,e],[1,129,"Paste",0,e,0,e,e,e],[1,130,"Find",0,e,0,e,e,e],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE",e,e],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP",e,e],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN",e,e],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR",e,e],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1",e,e],[1,136,"KanaMode",0,e,0,e,e,e],[0,137,"IntlYen",0,e,0,e,e,e],[1,138,"Convert",0,e,0,e,e,e],[1,139,"NonConvert",0,e,0,e,e,e],[1,140,"Lang1",0,e,0,e,e,e],[1,141,"Lang2",0,e,0,e,e,e],[1,142,"Lang3",0,e,0,e,e,e],[1,143,"Lang4",0,e,0,e,e,e],[1,144,"Lang5",0,e,0,e,e,e],[1,145,"Abort",0,e,0,e,e,e],[1,146,"Props",0,e,0,e,e,e],[1,147,"NumpadParenLeft",0,e,0,e,e,e],[1,148,"NumpadParenRight",0,e,0,e,e,e],[1,149,"NumpadBackspace",0,e,0,e,e,e],[1,150,"NumpadMemoryStore",0,e,0,e,e,e],[1,151,"NumpadMemoryRecall",0,e,0,e,e,e],[1,152,"NumpadMemoryClear",0,e,0,e,e,e],[1,153,"NumpadMemoryAdd",0,e,0,e,e,e],[1,154,"NumpadMemorySubtract",0,e,0,e,e,e],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR",e,e],[1,156,"NumpadClearEntry",0,e,0,e,e,e],[1,0,e,5,"Ctrl",17,"VK_CONTROL",e,e],[1,0,e,4,"Shift",16,"VK_SHIFT",e,e],[1,0,e,6,"Alt",18,"VK_MENU",e,e],[1,0,e,57,"Meta",91,"VK_COMMAND",e,e],[1,157,"ControlLeft",5,e,0,"VK_LCONTROL",e,e],[1,158,"ShiftLeft",4,e,0,"VK_LSHIFT",e,e],[1,159,"AltLeft",6,e,0,"VK_LMENU",e,e],[1,160,"MetaLeft",57,e,0,"VK_LWIN",e,e],[1,161,"ControlRight",5,e,0,"VK_RCONTROL",e,e],[1,162,"ShiftRight",4,e,0,"VK_RSHIFT",e,e],[1,163,"AltRight",6,e,0,"VK_RMENU",e,e],[1,164,"MetaRight",57,e,0,"VK_RWIN",e,e],[1,165,"BrightnessUp",0,e,0,e,e,e],[1,166,"BrightnessDown",0,e,0,e,e,e],[1,167,"MediaPlay",0,e,0,e,e,e],[1,168,"MediaRecord",0,e,0,e,e,e],[1,169,"MediaFastForward",0,e,0,e,e,e],[1,170,"MediaRewind",0,e,0,e,e,e],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",e,e],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",e,e],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP",e,e],[1,174,"Eject",0,e,0,e,e,e],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",e,e],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",e,e],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",e,e],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",e,e],[1,179,"LaunchApp1",0,e,0,"VK_MEDIA_LAUNCH_APP1",e,e],[1,180,"SelectTask",0,e,0,e,e,e],[1,181,"LaunchScreenSaver",0,e,0,e,e,e],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH",e,e],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME",e,e],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK",e,e],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD",e,e],[1,186,"BrowserStop",0,e,0,"VK_BROWSER_STOP",e,e],[1,187,"BrowserRefresh",0,e,0,"VK_BROWSER_REFRESH",e,e],[1,188,"BrowserFavorites",0,e,0,"VK_BROWSER_FAVORITES",e,e],[1,189,"ZoomToggle",0,e,0,e,e,e],[1,190,"MailReply",0,e,0,e,e,e],[1,191,"MailForward",0,e,0,e,e,e],[1,192,"MailSend",0,e,0,e,e,e],[1,0,e,114,"KeyInComposition",229,e,e,e],[1,0,e,116,"ABNT_C2",194,"VK_ABNT_C2",e,e],[1,0,e,96,"OEM_8",223,"VK_OEM_8",e,e],[1,0,e,0,e,0,"VK_KANA",e,e],[1,0,e,0,e,0,"VK_HANGUL",e,e],[1,0,e,0,e,0,"VK_JUNJA",e,e],[1,0,e,0,e,0,"VK_FINAL",e,e],[1,0,e,0,e,0,"VK_HANJA",e,e],[1,0,e,0,e,0,"VK_KANJI",e,e],[1,0,e,0,e,0,"VK_CONVERT",e,e],[1,0,e,0,e,0,"VK_NONCONVERT",e,e],[1,0,e,0,e,0,"VK_ACCEPT",e,e],[1,0,e,0,e,0,"VK_MODECHANGE",e,e],[1,0,e,0,e,0,"VK_SELECT",e,e],[1,0,e,0,e,0,"VK_PRINT",e,e],[1,0,e,0,e,0,"VK_EXECUTE",e,e],[1,0,e,0,e,0,"VK_SNAPSHOT",e,e],[1,0,e,0,e,0,"VK_HELP",e,e],[1,0,e,0,e,0,"VK_APPS",e,e],[1,0,e,0,e,0,"VK_PROCESSKEY",e,e],[1,0,e,0,e,0,"VK_PACKET",e,e],[1,0,e,0,e,0,"VK_DBE_SBCSCHAR",e,e],[1,0,e,0,e,0,"VK_DBE_DBCSCHAR",e,e],[1,0,e,0,e,0,"VK_ATTN",e,e],[1,0,e,0,e,0,"VK_CRSEL",e,e],[1,0,e,0,e,0,"VK_EXSEL",e,e],[1,0,e,0,e,0,"VK_EREOF",e,e],[1,0,e,0,e,0,"VK_PLAY",e,e],[1,0,e,0,e,0,"VK_ZOOM",e,e],[1,0,e,0,e,0,"VK_NONAME",e,e],[1,0,e,0,e,0,"VK_PA1",e,e],[1,0,e,0,e,0,"VK_OEM_CLEAR",e,e]],n=[],r=[];for(const e of t){const[t,h,m,g,y,v,b,E,T]=e;if(r[h]||(r[h]=!0,u[h]=m,c[m]=h,d[m.toLowerCase()]=h,t&&(p[h]=g,0!==g&&3!==g&&5!==g&&4!==g&&6!==g&&57!==g&&(f[g]=h))),!n[g]){if(n[g]=!0,!y)throw new Error(`String representation missing for key code ${g} around scan code ${m}`);i.define(g,y),o.define(g,E||y),s.define(g,T||E||y)}v&&(a[v]=g),b&&(l[b]=g)}f[3]=46}(),function(e){e.toString=function(e){return i.keyCodeToStr(e)},e.fromString=function(e){return i.strToKeyCode(e)},e.toUserSettingsUS=function(e){return o.keyCodeToStr(e)},e.toUserSettingsGeneral=function(e){return s.keyCodeToStr(e)},e.fromUserSettings=function(e){return o.strToKeyCode(e)||s.strToKeyCode(e)},e.toElectronAccelerator=function(e){if(e>=98&&e<=113)return null;switch(e){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return i.keyCodeToStr(e)}}(h||(h={}))},32293(e,t,n){n.r(t),n.d(t,{Disposable:()=>g,DisposableMap:()=>E,DisposableStore:()=>m,ImmortalReference:()=>b,MutableDisposable:()=>y,RefCountedDisposable:()=>v,combinedDisposable:()=>f,dispose:()=>p,isDisposable:()=>d,markAsDisposed:()=>l,markAsSingleton:()=>c,setDisposableTracker:()=>s,toDisposable:()=>h,trackDisposable:()=>a});var r=n(93444),i=n(73179);let o=null;function s(e){o=e}function a(e){return o?.trackDisposable(e),e}function l(e){o?.markAsDisposed(e)}function u(e,t){o?.setParent(e,t)}function c(e){return o?.markAsSingleton(e),e}function d(e){return"object"==typeof e&&null!==e&&"function"==typeof e.dispose&&0===e.dispose.length}function p(e){if(i.Iterable.is(e)){const t=[];for(const n of e)if(n)try{n.dispose()}catch(e){t.push(e)}if(1===t.length)throw t[0];if(t.length>1)throw new AggregateError(t,"Encountered errors while disposing of store");return Array.isArray(e)?[]:e}if(e)return e.dispose(),e}function f(...e){const t=h(()=>p(e));return function(e,t){if(o)for(const n of e)o.setParent(n,t)}(e,t),t}function h(e){const t=a({dispose:(0,r.createSingleCallFunction)(()=>{l(t),e()})});return t}class m{static{this.DISABLE_DISPOSED_WARNING=!1}constructor(){this._toDispose=new Set,this._isDisposed=!1,a(this)}dispose(){this._isDisposed||(l(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(0!==this._toDispose.size)try{p(this._toDispose)}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return u(e,this),this._isDisposed?m.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}deleteAndLeak(e){e&&this._toDispose.has(e)&&(this._toDispose.delete(e),u(e,null))}}class g{static{this.None=Object.freeze({dispose(){}})}constructor(){this._store=new m,a(this),u(this._store,this)}dispose(){l(this),this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}class y{constructor(){this._isDisposed=!1,a(this)}get value(){return this._isDisposed?void 0:this._value}set value(e){this._isDisposed||e===this._value||(this._value?.dispose(),e&&u(e,this),this._value=e)}clear(){this.value=void 0}dispose(){this._isDisposed=!0,l(this),this._value?.dispose(),this._value=void 0}}class v{constructor(e){this._disposable=e,this._counter=1}acquire(){return this._counter++,this}release(){return 0===--this._counter&&this._disposable.dispose(),this}}class b{constructor(e){this.object=e}dispose(){}}class E{constructor(){this._store=new Map,this._isDisposed=!1,a(this)}dispose(){l(this),this._isDisposed=!0,this.clearAndDisposeAll()}clearAndDisposeAll(){if(this._store.size)try{p(this._store.values())}finally{this._store.clear()}}get(e){return this._store.get(e)}set(e,t,n=!1){this._isDisposed&&console.warn(new Error("Trying to add a disposable to a DisposableMap that has already been disposed of. The added object will be leaked!").stack),n||this._store.get(e)?.dispose(),this._store.set(e,t)}deleteAndDispose(e){this._store.get(e)?.dispose(),this._store.delete(e)}[Symbol.iterator](){return this._store[Symbol.iterator]()}}},70092(e,t,n){n.r(t),n.d(t,{LinkedList:()=>i});class r{static{this.Undefined=new r(void 0)}constructor(e){this.element=e,this.next=r.Undefined,this.prev=r.Undefined}}class i{constructor(){this._first=r.Undefined,this._last=r.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===r.Undefined}clear(){let e=this._first;for(;e!==r.Undefined;){const t=e.next;e.prev=r.Undefined,e.next=r.Undefined,e=t}this._first=r.Undefined,this._last=r.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const n=new r(e);if(this._first===r.Undefined)this._first=n,this._last=n;else if(t){const e=this._last;this._last=n,n.prev=e,e.next=n}else{const e=this._first;this._first=n,n.next=e,e.prev=n}this._size+=1;let i=!1;return()=>{i||(i=!0,this._remove(n))}}shift(){if(this._first!==r.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==r.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==r.Undefined&&e.next!==r.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===r.Undefined&&e.next===r.Undefined?(this._first=r.Undefined,this._last=r.Undefined):e.next===r.Undefined?(this._last=this._last.prev,this._last.next=r.Undefined):e.prev===r.Undefined&&(this._first=this._first.next,this._first.prev=r.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==r.Undefined;)yield e.element,e=e.next}}},60942(e,t,n){n.r(t),n.d(t,{basename:()=>S,dirname:()=>k,extname:()=>x,join:()=>E,normalize:()=>b,posix:()=>v,relative:()=>w,resolve:()=>T,sep:()=>C,win32:()=>g});var r=n(8144);const i=46,o=47,s=92,a=58;class l extends Error{constructor(e,t,n){let r;"string"==typeof t&&0===t.indexOf("not ")?(r="must not be",t=t.replace(/^not /,"")):r="must be";const i=-1!==e.indexOf(".")?"property":"argument";let o=`The "${e}" ${i} ${r} of type ${t}`;o+=". Received type "+typeof n,super(o),this.code="ERR_INVALID_ARG_TYPE"}}function u(e,t){if("string"!=typeof e)throw new l(t,"string",e)}const c="win32"===r.platform;function d(e){return e===o||e===s}function p(e){return e===o}function f(e){return e>=65&&e<=90||e>=97&&e<=122}function h(e,t,n,r){let s="",a=0,l=-1,u=0,c=0;for(let d=0;d<=e.length;++d){if(d<e.length)c=e.charCodeAt(d);else{if(r(c))break;c=o}if(r(c)){if(l===d-1||1===u);else if(2===u){if(s.length<2||2!==a||s.charCodeAt(s.length-1)!==i||s.charCodeAt(s.length-2)!==i){if(s.length>2){const e=s.lastIndexOf(n);-1===e?(s="",a=0):(s=s.slice(0,e),a=s.length-1-s.lastIndexOf(n)),l=d,u=0;continue}if(0!==s.length){s="",a=0,l=d,u=0;continue}}t&&(s+=s.length>0?`${n}..`:"..",a=2)}else s.length>0?s+=`${n}${e.slice(l+1,d)}`:s=e.slice(l+1,d),a=d-l-1;l=d,u=0}else c===i&&-1!==u?++u:u=-1}return s}function m(e,t){!function(e){if(null===e||"object"!=typeof e)throw new l("pathObject","Object",e)}(t);const n=t.dir||t.root,r=t.base||`${t.name||""}${i=t.ext,i?`${"."===i[0]?"":"."}${i}`:""}`;var i;return n?n===t.root?`${n}${r}`:`${n}${e}${r}`:r}const g={resolve(...e){let t="",n="",i=!1;for(let o=e.length-1;o>=-1;o--){let l;if(o>=0){if(l=e[o],u(l,`paths[${o}]`),0===l.length)continue}else 0===t.length?l=r.cwd():(l=r.env[`=${t}`]||r.cwd(),(void 0===l||l.slice(0,2).toLowerCase()!==t.toLowerCase()&&l.charCodeAt(2)===s)&&(l=`${t}\\`));const c=l.length;let p=0,h="",m=!1;const g=l.charCodeAt(0);if(1===c)d(g)&&(p=1,m=!0);else if(d(g))if(m=!0,d(l.charCodeAt(1))){let e=2,t=e;for(;e<c&&!d(l.charCodeAt(e));)e++;if(e<c&&e!==t){const n=l.slice(t,e);for(t=e;e<c&&d(l.charCodeAt(e));)e++;if(e<c&&e!==t){for(t=e;e<c&&!d(l.charCodeAt(e));)e++;e!==c&&e===t||(h=`\\\\${n}\\${l.slice(t,e)}`,p=e)}}}else p=1;else f(g)&&l.charCodeAt(1)===a&&(h=l.slice(0,2),p=2,c>2&&d(l.charCodeAt(2))&&(m=!0,p=3));if(h.length>0)if(t.length>0){if(h.toLowerCase()!==t.toLowerCase())continue}else t=h;if(i){if(t.length>0)break}else if(n=`${l.slice(p)}\\${n}`,i=m,m&&t.length>0)break}return n=h(n,!i,"\\",d),i?`${t}\\${n}`:`${t}${n}`||"."},normalize(e){u(e,"path");const t=e.length;if(0===t)return".";let n,r=0,i=!1;const o=e.charCodeAt(0);if(1===t)return p(o)?"\\":e;if(d(o))if(i=!0,d(e.charCodeAt(1))){let i=2,o=i;for(;i<t&&!d(e.charCodeAt(i));)i++;if(i<t&&i!==o){const s=e.slice(o,i);for(o=i;i<t&&d(e.charCodeAt(i));)i++;if(i<t&&i!==o){for(o=i;i<t&&!d(e.charCodeAt(i));)i++;if(i===t)return`\\\\${s}\\${e.slice(o)}\\`;i!==o&&(n=`\\\\${s}\\${e.slice(o,i)}`,r=i)}}}else r=1;else f(o)&&e.charCodeAt(1)===a&&(n=e.slice(0,2),r=2,t>2&&d(e.charCodeAt(2))&&(i=!0,r=3));let s=r<t?h(e.slice(r),!i,"\\",d):"";return 0!==s.length||i||(s="."),s.length>0&&d(e.charCodeAt(t-1))&&(s+="\\"),void 0===n?i?`\\${s}`:s:i?`${n}\\${s}`:`${n}${s}`},isAbsolute(e){u(e,"path");const t=e.length;if(0===t)return!1;const n=e.charCodeAt(0);return d(n)||t>2&&f(n)&&e.charCodeAt(1)===a&&d(e.charCodeAt(2))},join(...e){if(0===e.length)return".";let t,n;for(let r=0;r<e.length;++r){const i=e[r];u(i,"path"),i.length>0&&(void 0===t?t=n=i:t+=`\\${i}`)}if(void 0===t)return".";let r=!0,i=0;if("string"==typeof n&&d(n.charCodeAt(0))){++i;const e=n.length;e>1&&d(n.charCodeAt(1))&&(++i,e>2&&(d(n.charCodeAt(2))?++i:r=!1))}if(r){for(;i<t.length&&d(t.charCodeAt(i));)i++;i>=2&&(t=`\\${t.slice(i)}`)}return g.normalize(t)},relative(e,t){if(u(e,"from"),u(t,"to"),e===t)return"";const n=g.resolve(e),r=g.resolve(t);if(n===r)return"";if((e=n.toLowerCase())===(t=r.toLowerCase()))return"";let i=0;for(;i<e.length&&e.charCodeAt(i)===s;)i++;let o=e.length;for(;o-1>i&&e.charCodeAt(o-1)===s;)o--;const a=o-i;let l=0;for(;l<t.length&&t.charCodeAt(l)===s;)l++;let c=t.length;for(;c-1>l&&t.charCodeAt(c-1)===s;)c--;const d=c-l,p=a<d?a:d;let f=-1,h=0;for(;h<p;h++){const n=e.charCodeAt(i+h);if(n!==t.charCodeAt(l+h))break;n===s&&(f=h)}if(h!==p){if(-1===f)return r}else{if(d>p){if(t.charCodeAt(l+h)===s)return r.slice(l+h+1);if(2===h)return r.slice(l+h)}a>p&&(e.charCodeAt(i+h)===s?f=h:2===h&&(f=3)),-1===f&&(f=0)}let m="";for(h=i+f+1;h<=o;++h)h!==o&&e.charCodeAt(h)!==s||(m+=0===m.length?"..":"\\..");return l+=f,m.length>0?`${m}${r.slice(l,c)}`:(r.charCodeAt(l)===s&&++l,r.slice(l,c))},toNamespacedPath(e){if("string"!=typeof e||0===e.length)return e;const t=g.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===s){if(t.charCodeAt(1)===s){const e=t.charCodeAt(2);if(63!==e&&e!==i)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(f(t.charCodeAt(0))&&t.charCodeAt(1)===a&&t.charCodeAt(2)===s)return`\\\\?\\${t}`;return e},dirname(e){u(e,"path");const t=e.length;if(0===t)return".";let n=-1,r=0;const i=e.charCodeAt(0);if(1===t)return d(i)?e:".";if(d(i)){if(n=r=1,d(e.charCodeAt(1))){let i=2,o=i;for(;i<t&&!d(e.charCodeAt(i));)i++;if(i<t&&i!==o){for(o=i;i<t&&d(e.charCodeAt(i));)i++;if(i<t&&i!==o){for(o=i;i<t&&!d(e.charCodeAt(i));)i++;if(i===t)return e;i!==o&&(n=r=i+1)}}}}else f(i)&&e.charCodeAt(1)===a&&(n=t>2&&d(e.charCodeAt(2))?3:2,r=n);let o=-1,s=!0;for(let n=t-1;n>=r;--n)if(d(e.charCodeAt(n))){if(!s){o=n;break}}else s=!1;if(-1===o){if(-1===n)return".";o=n}return e.slice(0,o)},basename(e,t){void 0!==t&&u(t,"suffix"),u(e,"path");let n,r=0,i=-1,o=!0;if(e.length>=2&&f(e.charCodeAt(0))&&e.charCodeAt(1)===a&&(r=2),void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let s=t.length-1,a=-1;for(n=e.length-1;n>=r;--n){const l=e.charCodeAt(n);if(d(l)){if(!o){r=n+1;break}}else-1===a&&(o=!1,a=n+1),s>=0&&(l===t.charCodeAt(s)?-1===--s&&(i=n):(s=-1,i=a))}return r===i?i=a:-1===i&&(i=e.length),e.slice(r,i)}for(n=e.length-1;n>=r;--n)if(d(e.charCodeAt(n))){if(!o){r=n+1;break}}else-1===i&&(o=!1,i=n+1);return-1===i?"":e.slice(r,i)},extname(e){u(e,"path");let t=0,n=-1,r=0,o=-1,s=!0,l=0;e.length>=2&&e.charCodeAt(1)===a&&f(e.charCodeAt(0))&&(t=r=2);for(let a=e.length-1;a>=t;--a){const t=e.charCodeAt(a);if(d(t)){if(!s){r=a+1;break}}else-1===o&&(s=!1,o=a+1),t===i?-1===n?n=a:1!==l&&(l=1):-1!==n&&(l=-1)}return-1===n||-1===o||0===l||1===l&&n===o-1&&n===r+1?"":e.slice(n,o)},format:m.bind(null,"\\"),parse(e){u(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const n=e.length;let r=0,o=e.charCodeAt(0);if(1===n)return d(o)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(d(o)){if(r=1,d(e.charCodeAt(1))){let t=2,i=t;for(;t<n&&!d(e.charCodeAt(t));)t++;if(t<n&&t!==i){for(i=t;t<n&&d(e.charCodeAt(t));)t++;if(t<n&&t!==i){for(i=t;t<n&&!d(e.charCodeAt(t));)t++;t===n?r=t:t!==i&&(r=t+1)}}}}else if(f(o)&&e.charCodeAt(1)===a){if(n<=2)return t.root=t.dir=e,t;if(r=2,d(e.charCodeAt(2))){if(3===n)return t.root=t.dir=e,t;r=3}}r>0&&(t.root=e.slice(0,r));let s=-1,l=r,c=-1,p=!0,h=e.length-1,m=0;for(;h>=r;--h)if(o=e.charCodeAt(h),d(o)){if(!p){l=h+1;break}}else-1===c&&(p=!1,c=h+1),o===i?-1===s?s=h:1!==m&&(m=1):-1!==s&&(m=-1);return-1!==c&&(-1===s||0===m||1===m&&s===c-1&&s===l+1?t.base=t.name=e.slice(l,c):(t.name=e.slice(l,s),t.base=e.slice(l,c),t.ext=e.slice(s,c))),t.dir=l>0&&l!==r?e.slice(0,l-1):t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},y=(()=>{if(c){const e=/\\/g;return()=>{const t=r.cwd().replace(e,"/");return t.slice(t.indexOf("/"))}}return()=>r.cwd()})(),v={resolve(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){const i=r>=0?e[r]:y();u(i,`paths[${r}]`),0!==i.length&&(t=`${i}/${t}`,n=i.charCodeAt(0)===o)}return t=h(t,!n,"/",p),n?`/${t}`:t.length>0?t:"."},normalize(e){if(u(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===o,n=e.charCodeAt(e.length-1)===o;return 0===(e=h(e,!t,"/",p)).length?t?"/":n?"./":".":(n&&(e+="/"),t?`/${e}`:e)},isAbsolute:e=>(u(e,"path"),e.length>0&&e.charCodeAt(0)===o),join(...e){if(0===e.length)return".";let t;for(let n=0;n<e.length;++n){const r=e[n];u(r,"path"),r.length>0&&(void 0===t?t=r:t+=`/${r}`)}return void 0===t?".":v.normalize(t)},relative(e,t){if(u(e,"from"),u(t,"to"),e===t)return"";if((e=v.resolve(e))===(t=v.resolve(t)))return"";const n=e.length,r=n-1,i=t.length-1,s=r<i?r:i;let a=-1,l=0;for(;l<s;l++){const n=e.charCodeAt(1+l);if(n!==t.charCodeAt(1+l))break;n===o&&(a=l)}if(l===s)if(i>s){if(t.charCodeAt(1+l)===o)return t.slice(1+l+1);if(0===l)return t.slice(1+l)}else r>s&&(e.charCodeAt(1+l)===o?a=l:0===l&&(a=0));let c="";for(l=1+a+1;l<=n;++l)l!==n&&e.charCodeAt(l)!==o||(c+=0===c.length?"..":"/..");return`${c}${t.slice(1+a)}`},toNamespacedPath:e=>e,dirname(e){if(u(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===o;let n=-1,r=!0;for(let t=e.length-1;t>=1;--t)if(e.charCodeAt(t)===o){if(!r){n=t;break}}else r=!1;return-1===n?t?"/":".":t&&1===n?"//":e.slice(0,n)},basename(e,t){void 0!==t&&u(t,"ext"),u(e,"path");let n,r=0,i=-1,s=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let a=t.length-1,l=-1;for(n=e.length-1;n>=0;--n){const u=e.charCodeAt(n);if(u===o){if(!s){r=n+1;break}}else-1===l&&(s=!1,l=n+1),a>=0&&(u===t.charCodeAt(a)?-1===--a&&(i=n):(a=-1,i=l))}return r===i?i=l:-1===i&&(i=e.length),e.slice(r,i)}for(n=e.length-1;n>=0;--n)if(e.charCodeAt(n)===o){if(!s){r=n+1;break}}else-1===i&&(s=!1,i=n+1);return-1===i?"":e.slice(r,i)},extname(e){u(e,"path");let t=-1,n=0,r=-1,s=!0,a=0;for(let l=e.length-1;l>=0;--l){const u=e.charCodeAt(l);if(u!==o)-1===r&&(s=!1,r=l+1),u===i?-1===t?t=l:1!==a&&(a=1):-1!==t&&(a=-1);else if(!s){n=l+1;break}}return-1===t||-1===r||0===a||1===a&&t===r-1&&t===n+1?"":e.slice(t,r)},format:m.bind(null,"/"),parse(e){u(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const n=e.charCodeAt(0)===o;let r;n?(t.root="/",r=1):r=0;let s=-1,a=0,l=-1,c=!0,d=e.length-1,p=0;for(;d>=r;--d){const t=e.charCodeAt(d);if(t!==o)-1===l&&(c=!1,l=d+1),t===i?-1===s?s=d:1!==p&&(p=1):-1!==s&&(p=-1);else if(!c){a=d+1;break}}if(-1!==l){const r=0===a&&n?1:a;-1===s||0===p||1===p&&s===l-1&&s===a+1?t.base=t.name=e.slice(r,l):(t.name=e.slice(r,s),t.base=e.slice(r,l),t.ext=e.slice(s,l))}return a>0?t.dir=e.slice(0,a-1):n&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};v.win32=g.win32=g,v.posix=g.posix=v;const b=c?g.normalize:v.normalize,E=c?g.join:v.join,T=c?g.resolve:v.resolve,w=c?g.relative:v.relative,k=c?g.dirname:v.dirname,S=c?g.basename:v.basename,x=c?g.extname:v.extname,C=c?g.sep:v.sep},69958(e,t,n){n.r(t),n.d(t,{LANGUAGE_DEFAULT:()=>i,OS:()=>j,isAndroid:()=>G,isChrome:()=>B,isEdge:()=>z,isFirefox:()=>$,isIOS:()=>I,isLinux:()=>_,isLittleEndian:()=>U,isMacintosh:()=>C,isMobile:()=>O,isNative:()=>N,isSafari:()=>q,isWeb:()=>D,isWebWorker:()=>A,isWindows:()=>x,language:()=>F,setTimeout0:()=>M,setTimeout0IsFaster:()=>P,userAgent:()=>R,webWorkerOrigin:()=>L});var r=n(12003);const i="en";let o,s,a=!1,l=!1,u=!1,c=!1,d=!1,p=!1,f=!1,h=!1,m=!1,g=!1,y=i,v=null,b=null;const E=globalThis;let T;void 0!==E.vscode&&void 0!==E.vscode.process?T=E.vscode.process:"undefined"!=typeof process&&"string"==typeof process?.versions?.node&&(T=process);const w="string"==typeof T?.versions?.electron,k=w&&"renderer"===T?.type;if("object"==typeof T){a="win32"===T.platform,l="darwin"===T.platform,u="linux"===T.platform,c=u&&!!T.env.SNAP&&!!T.env.SNAP_REVISION,f=w,m=!!T.env.CI||!!T.env.BUILD_ARTIFACTSTAGINGDIRECTORY,o=i,y=i;const e=T.env.VSCODE_NLS_CONFIG;if(e)try{const t=JSON.parse(e);o=t.userLocale,v=t.osLocale,y=t.resolvedLanguage||i,b=t.languagePack?.translationsConfigFile}catch(e){}d=!0}else"object"!=typeof navigator||k?console.error("Unable to resolve platform."):(s=navigator.userAgent,a=s.indexOf("Windows")>=0,l=s.indexOf("Macintosh")>=0,h=(s.indexOf("Macintosh")>=0||s.indexOf("iPad")>=0||s.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,u=s.indexOf("Linux")>=0,g=s?.indexOf("Mobi")>=0,p=!0,y=r.getNLSLanguage()||i,o=navigator.language.toLowerCase(),v=o);let S=0;l?S=1:a?S=3:u&&(S=2);const x=a,C=l,_=u,N=d,D=p,A=p&&"function"==typeof E.importScripts,L=A?E.origin:void 0,I=h,O=g,R=s,F=y,P="function"==typeof E.postMessage&&!E.importScripts,M=(()=>{if(P){const e=[];E.addEventListener("message",t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let n=0,r=e.length;n<r;n++){const r=e[n];if(r.id===t.data.vscodeScheduleAsyncWork)return e.splice(n,1),void r.callback()}});let t=0;return n=>{const r=++t;e.push({id:r,callback:n}),E.postMessage({vscodeScheduleAsyncWork:r},"*")}}return e=>setTimeout(e)})(),j=l||h?2:a?1:3;let V=!0,K=!1;function U(){if(!K){K=!0;const e=new Uint8Array(2);e[0]=1,e[1]=2;const t=new Uint16Array(e.buffer);V=513===t[0]}return V}const B=!!(R&&R.indexOf("Chrome")>=0),$=!!(R&&R.indexOf("Firefox")>=0),q=!!(!B&&R&&R.indexOf("Safari")>=0),z=!!(R&&R.indexOf("Edg/")>=0),G=!!(R&&R.indexOf("Android")>=0)},8144(e,t,n){n.r(t),n.d(t,{cwd:()=>s,env:()=>a,platform:()=>l});var r=n(69958);let i;const o=globalThis.vscode;if(void 0!==o&&void 0!==o.process){const e=o.process;i={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd:()=>e.cwd()}}else i="undefined"!=typeof process&&"string"==typeof process?.versions?.node?{get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd:()=>process.env.VSCODE_CWD||process.cwd()}:{get platform(){return r.isWindows?"win32":r.isMacintosh?"darwin":"linux"},get arch(){},get env(){return{}},cwd:()=>"/"};const s=i.cwd,a=i.env,l=i.platform},30222(e,t,n){n.r(t),n.d(t,{StopWatch:()=>i});const r=globalThis.performance&&"function"==typeof globalThis.performance.now;class i{static create(e){return new i(e)}constructor(e){this._now=r&&!1===e?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return-1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime}}},69708(e,t,n){function r(e){return"string"==typeof e}function i(e){return!("object"!=typeof e||null===e||Array.isArray(e)||e instanceof RegExp||e instanceof Date)}function o(e){const t=Object.getPrototypeOf(Uint8Array);return"object"==typeof e&&e instanceof t}function s(e){return"number"==typeof e&&!isNaN(e)}function a(e){return!!e&&"function"==typeof e[Symbol.iterator]}function l(e){return!0===e||!1===e}function u(e){return void 0===e}function c(e){return!d(e)}function d(e){return u(e)||null===e}function p(e,t){if(!e)throw new Error(t?`Unexpected type, expected '${t}'`:"Unexpected type")}function f(e){if(d(e))throw new Error("Assertion Failed: argument is undefined or null");return e}function h(e){return"function"==typeof e}function m(e,t){const n=Math.min(e.length,t.length);for(let r=0;r<n;r++)g(e[r],t[r])}function g(e,t){if(r(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(h(t)){try{if(e instanceof t)return}catch{}if(!d(e)&&e.constructor===t)return;if(1===t.length&&!0===t.call(void 0,e))return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}n.r(t),n.d(t,{assertIsDefined:()=>f,assertType:()=>p,isBoolean:()=>l,isDefined:()=>c,isFunction:()=>h,isIterable:()=>a,isNumber:()=>s,isObject:()=>i,isString:()=>r,isTypedArray:()=>o,isUndefined:()=>u,isUndefinedOrNull:()=>d,validateConstraint:()=>g,validateConstraints:()=>m})},5839(e,t,n){n.r(t),n.d(t,{URI:()=>d,uriToFsPath:()=>y});var r=n(60942),i=n(69958);const o=/^\w[\w\d+.-]*$/,s=/^\//,a=/^\/\//,l="",u="/",c=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class d{static isUri(e){return e instanceof d||!!e&&"string"==typeof e.authority&&"string"==typeof e.fragment&&"string"==typeof e.path&&"string"==typeof e.query&&"string"==typeof e.scheme&&"string"==typeof e.fsPath&&"function"==typeof e.with&&"function"==typeof e.toString}constructor(e,t,n,r,i,c=!1){"object"==typeof e?(this.scheme=e.scheme||l,this.authority=e.authority||l,this.path=e.path||l,this.query=e.query||l,this.fragment=e.fragment||l):(this.scheme=function(e,t){return e||t?e:"file"}(e,c),this.authority=t||l,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==u&&(t=u+t):t=u}return t}(this.scheme,n||l),this.query=r||l,this.fragment=i||l,function(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!o.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!s.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(a.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}(this,c))}get fsPath(){return y(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:n,path:r,query:i,fragment:o}=e;return void 0===t?t=this.scheme:null===t&&(t=l),void 0===n?n=this.authority:null===n&&(n=l),void 0===r?r=this.path:null===r&&(r=l),void 0===i?i=this.query:null===i&&(i=l),void 0===o?o=this.fragment:null===o&&(o=l),t===this.scheme&&n===this.authority&&r===this.path&&i===this.query&&o===this.fragment?this:new f(t,n,r,i,o)}static parse(e,t=!1){const n=c.exec(e);return n?new f(n[2]||l,T(n[4]||l),T(n[5]||l),T(n[7]||l),T(n[9]||l),t):new f(l,l,l,l,l)}static file(e){let t=l;if(i.isWindows&&(e=e.replace(/\\/g,u)),e[0]===u&&e[1]===u){const n=e.indexOf(u,2);-1===n?(t=e.substring(2),e=u):(t=e.substring(2,n),e=e.substring(n)||u)}return new f("file",t,e,l,l)}static from(e,t){return new f(e.scheme,e.authority,e.path,e.query,e.fragment,t)}static joinPath(e,...t){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let n;return n=i.isWindows&&"file"===e.scheme?d.file(r.win32.join(y(e,!0),...t)).path:r.posix.join(e.path,...t),e.with({path:n})}toString(e=!1){return v(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof d)return e;{const t=new f(e);return t._formatted=e.external??null,t._fsPath=e._sep===p?e.fsPath??null:null,t}}return e}}const p=i.isWindows?1:void 0;class f extends d{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=y(this,!1)),this._fsPath}toString(e=!1){return e?v(this,!0):(this._formatted||(this._formatted=v(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=p),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}const h={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function m(e,t,n){let r,i=-1;for(let o=0;o<e.length;o++){const s=e.charCodeAt(o);if(s>=97&&s<=122||s>=65&&s<=90||s>=48&&s<=57||45===s||46===s||95===s||126===s||t&&47===s||n&&91===s||n&&93===s||n&&58===s)-1!==i&&(r+=encodeURIComponent(e.substring(i,o)),i=-1),void 0!==r&&(r+=e.charAt(o));else{void 0===r&&(r=e.substr(0,o));const t=h[s];void 0!==t?(-1!==i&&(r+=encodeURIComponent(e.substring(i,o)),i=-1),r+=t):-1===i&&(i=o)}}return-1!==i&&(r+=encodeURIComponent(e.substring(i))),void 0!==r?r:e}function g(e){let t;for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);35===r||63===r?(void 0===t&&(t=e.substr(0,n)),t+=h[r]):void 0!==t&&(t+=e[n])}return void 0!==t?t:e}function y(e,t){let n;return n=e.authority&&e.path.length>1&&"file"===e.scheme?`//${e.authority}${e.path}`:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,i.isWindows&&(n=n.replace(/\//g,"\\")),n}function v(e,t){const n=t?g:m;let r="",{scheme:i,authority:o,path:s,query:a,fragment:l}=e;if(i&&(r+=i,r+=":"),(o||"file"===i)&&(r+=u,r+=u),o){let e=o.indexOf("@");if(-1!==e){const t=o.substr(0,e);o=o.substr(e+1),e=t.lastIndexOf(":"),-1===e?r+=n(t,!1,!1):(r+=n(t.substr(0,e),!1,!1),r+=":",r+=n(t.substr(e+1),!1,!0)),r+="@"}o=o.toLowerCase(),e=o.lastIndexOf(":"),-1===e?r+=n(o,!1,!0):(r+=n(o.substr(0,e),!1,!0),r+=o.substr(e))}if(s){if(s.length>=3&&47===s.charCodeAt(0)&&58===s.charCodeAt(2)){const e=s.charCodeAt(1);e>=65&&e<=90&&(s=`/${String.fromCharCode(e+32)}:${s.substr(3)}`)}else if(s.length>=2&&58===s.charCodeAt(1)){const e=s.charCodeAt(0);e>=65&&e<=90&&(s=`${String.fromCharCode(e+32)}:${s.substr(2)}`)}r+=n(s,!0,!1)}return a&&(r+="?",r+=n(a,!1,!1)),l&&(r+="#",r+=t?l:m(l,!1,!1)),r}function b(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+b(e.substr(3)):e}}const E=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function T(e){return e.match(E)?e.replace(E,e=>b(e)):e}},55818(e,t,n){n.r(t),n.d(t,{Position:()=>r});class r{constructor(e,t){this.lineNumber=e,this.column=t}with(e=this.lineNumber,t=this.column){return e===this.lineNumber&&t===this.column?this:new r(e,t)}delta(e=0,t=0){return this.with(this.lineNumber+e,this.column+t)}equals(e){return r.equals(this,e)}static equals(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(e){return r.isBefore(this,e)}static isBefore(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<t.column}isBeforeOrEqual(e){return r.isBeforeOrEqual(this,e)}static isBeforeOrEqual(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<=t.column}static compare(e,t){const n=0|e.lineNumber,r=0|t.lineNumber;return n===r?(0|e.column)-(0|t.column):n-r}clone(){return new r(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(e){return new r(e.lineNumber,e.column)}static isIPosition(e){return e&&"number"==typeof e.lineNumber&&"number"==typeof e.column}toJSON(){return{lineNumber:this.lineNumber,column:this.column}}}},81304(e,t,n){n.r(t),n.d(t,{Range:()=>i});var r=n(55818);class i{constructor(e,t,n,r){e>n||e===n&&t>r?(this.startLineNumber=n,this.startColumn=r,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=n,this.endColumn=r)}isEmpty(){return i.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return i.containsPosition(this,e)}static containsPosition(e,t){return!(t.lineNumber<e.startLineNumber||t.lineNumber>e.endLineNumber||t.lineNumber===e.startLineNumber&&t.column<e.startColumn||t.lineNumber===e.endLineNumber&&t.column>e.endColumn)}static strictContainsPosition(e,t){return!(t.lineNumber<e.startLineNumber||t.lineNumber>e.endLineNumber||t.lineNumber===e.startLineNumber&&t.column<=e.startColumn||t.lineNumber===e.endLineNumber&&t.column>=e.endColumn)}containsRange(e){return i.containsRange(this,e)}static containsRange(e,t){return!(t.startLineNumber<e.startLineNumber||t.endLineNumber<e.startLineNumber||t.startLineNumber>e.endLineNumber||t.endLineNumber>e.endLineNumber||t.startLineNumber===e.startLineNumber&&t.startColumn<e.startColumn||t.endLineNumber===e.endLineNumber&&t.endColumn>e.endColumn)}strictContainsRange(e){return i.strictContainsRange(this,e)}static strictContainsRange(e,t){return!(t.startLineNumber<e.startLineNumber||t.endLineNumber<e.startLineNumber||t.startLineNumber>e.endLineNumber||t.endLineNumber>e.endLineNumber||t.startLineNumber===e.startLineNumber&&t.startColumn<=e.startColumn||t.endLineNumber===e.endLineNumber&&t.endColumn>=e.endColumn)}plusRange(e){return i.plusRange(this,e)}static plusRange(e,t){let n,r,o,s;return t.startLineNumber<e.startLineNumber?(n=t.startLineNumber,r=t.startColumn):t.startLineNumber===e.startLineNumber?(n=t.startLineNumber,r=Math.min(t.startColumn,e.startColumn)):(n=e.startLineNumber,r=e.startColumn),t.endLineNumber>e.endLineNumber?(o=t.endLineNumber,s=t.endColumn):t.endLineNumber===e.endLineNumber?(o=t.endLineNumber,s=Math.max(t.endColumn,e.endColumn)):(o=e.endLineNumber,s=e.endColumn),new i(n,r,o,s)}intersectRanges(e){return i.intersectRanges(this,e)}static intersectRanges(e,t){let n=e.startLineNumber,r=e.startColumn,o=e.endLineNumber,s=e.endColumn;const a=t.startLineNumber,l=t.startColumn,u=t.endLineNumber,c=t.endColumn;return n<a?(n=a,r=l):n===a&&(r=Math.max(r,l)),o>u?(o=u,s=c):o===u&&(s=Math.min(s,c)),n>o||n===o&&r>s?null:new i(n,r,o,s)}equalsRange(e){return i.equalsRange(this,e)}static equalsRange(e,t){return!e&&!t||!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn}getEndPosition(){return i.getEndPosition(this)}static getEndPosition(e){return new r.Position(e.endLineNumber,e.endColumn)}getStartPosition(){return i.getStartPosition(this)}static getStartPosition(e){return new r.Position(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,t){return new i(this.startLineNumber,this.startColumn,e,t)}setStartPosition(e,t){return new i(e,t,this.endLineNumber,this.endColumn)}collapseToStart(){return i.collapseToStart(this)}static collapseToStart(e){return new i(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}collapseToEnd(){return i.collapseToEnd(this)}static collapseToEnd(e){return new i(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn)}delta(e){return new i(this.startLineNumber+e,this.startColumn,this.endLineNumber+e,this.endColumn)}static fromPositions(e,t=e){return new i(e.lineNumber,e.column,t.lineNumber,t.column)}static lift(e){return e?new i(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return e&&"number"==typeof e.startLineNumber&&"number"==typeof e.startColumn&&"number"==typeof e.endLineNumber&&"number"==typeof e.endColumn}static areIntersectingOrTouching(e,t){return!(e.endLineNumber<t.startLineNumber||e.endLineNumber===t.startLineNumber&&e.endColumn<t.startColumn||t.endLineNumber<e.startLineNumber||t.endLineNumber===e.startLineNumber&&t.endColumn<e.startColumn)}static areIntersecting(e,t){return!(e.endLineNumber<t.startLineNumber||e.endLineNumber===t.startLineNumber&&e.endColumn<=t.startColumn||t.endLineNumber<e.startLineNumber||t.endLineNumber===e.startLineNumber&&t.endColumn<=e.startColumn)}static compareRangesUsingStarts(e,t){if(e&&t){const n=0|e.startLineNumber,r=0|t.startLineNumber;if(n===r){const n=0|e.startColumn,r=0|t.startColumn;if(n===r){const n=0|e.endLineNumber,r=0|t.endLineNumber;return n===r?(0|e.endColumn)-(0|t.endColumn):n-r}return n-r}return n-r}return(e?1:0)-(t?1:0)}static compareRangesUsingEnds(e,t){return e.endLineNumber===t.endLineNumber?e.endColumn===t.endColumn?e.startLineNumber===t.startLineNumber?e.startColumn-t.startColumn:e.startLineNumber-t.startLineNumber:e.endColumn-t.endColumn:e.endLineNumber-t.endLineNumber}static spansMultipleLines(e){return e.endLineNumber>e.startLineNumber}toJSON(){return this}}},15719(e,t,n){n.r(t),n.d(t,{Selection:()=>o});var r=n(55818),i=n(81304);class o extends i.Range{constructor(e,t,n,r){super(e,t,n,r),this.selectionStartLineNumber=e,this.selectionStartColumn=t,this.positionLineNumber=n,this.positionColumn=r}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return o.selectionsEqual(this,e)}static selectionsEqual(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(e,t){return 0===this.getDirection()?new o(this.startLineNumber,this.startColumn,e,t):new o(e,t,this.startLineNumber,this.startColumn)}getPosition(){return new r.Position(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new r.Position(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(e,t){return 0===this.getDirection()?new o(e,t,this.endLineNumber,this.endColumn):new o(this.endLineNumber,this.endColumn,e,t)}static fromPositions(e,t=e){return new o(e.lineNumber,e.column,t.lineNumber,t.column)}static fromRange(e,t){return 0===t?new o(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new o(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)}static liftSelection(e){return new o(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}static selectionsArrEqual(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n++)if(!this.selectionsEqual(e[n],t[n]))return!1;return!0}static isISelection(e){return e&&"number"==typeof e.selectionStartLineNumber&&"number"==typeof e.selectionStartColumn&&"number"==typeof e.positionLineNumber&&"number"==typeof e.positionColumn}static createWithDirection(e,t,n,r,i){return 0===i?new o(e,t,n,r):new o(n,r,e,t)}}},51753(e,t,n){n.d(t,{Command:()=>_,CompletionItemKinds:()=>d,DocumentHighlightKind:()=>m,DocumentPasteTriggerKind:()=>f,EncodedTokenizationResult:()=>b,FoldingRangeKind:()=>A,HoverVerbosityAction:()=>c,InlayHintKind:()=>N,InlineCompletionTriggerKind:()=>p,InlineEditTriggerKind:()=>R,LazyTokenizationSupport:()=>L,NewSymbolNameTag:()=>x,NewSymbolNameTriggerKind:()=>C,SelectedSuggestionInfo:()=>E,SignatureHelpTriggerKind:()=>h,SymbolKinds:()=>S,TextEdit:()=>D,Token:()=>y,TokenizationRegistry:()=>I,TokenizationResult:()=>v,TreeSitterTokenizationRegistry:()=>O,getAriaLabelForSymbol:()=>k,isLocationLink:()=>T,symbolKindNames:()=>w}),n.r(t);var r=n(36972),i=n(5839),o=n(81304),s=n(22573),a=n(32293);class l{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new s.Emitter,this.onDidChange=this._onDidChange.event,this._colorMap=null}handleChange(e){this._onDidChange.fire({changedLanguages:e,changedColorMap:!1})}register(e,t){return this._tokenizationSupports.set(e,t),this.handleChange([e]),(0,a.toDisposable)(()=>{this._tokenizationSupports.get(e)===t&&(this._tokenizationSupports.delete(e),this.handleChange([e]))})}get(e){return this._tokenizationSupports.get(e)||null}registerFactory(e,t){this._factories.get(e)?.dispose();const n=new u(this,e,t);return this._factories.set(e,n),(0,a.toDisposable)(()=>{const t=this._factories.get(e);t&&t===n&&(this._factories.delete(e),t.dispose())})}async getOrCreate(e){const t=this.get(e);if(t)return t;const n=this._factories.get(e);return!n||n.isResolved?null:(await n.resolve(),this.get(e))}isResolved(e){if(this.get(e))return!0;const t=this._factories.get(e);return!(t&&!t.isResolved)}setColorMap(e){this._colorMap=e,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}}class u extends a.Disposable{get isResolved(){return this._isResolved}constructor(e,t,n){super(),this._registry=e,this._languageId=t,this._factory=n,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}async resolve(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise}async _create(){const e=await this._factory.tokenizationSupport;this._isResolved=!0,e&&!this._isDisposed&&this._register(this._registry.register(this._languageId,e))}}var c,d,p,f,h,m,g=n(12003);class y{constructor(e,t,n){this.offset=e,this.type=t,this.language=n,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}class v{constructor(e,t){this.tokens=e,this.endState=t,this._tokenizationResultBrand=void 0}}class b{constructor(e,t){this.tokens=e,this.endState=t,this._encodedTokenizationResultBrand=void 0}}!function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"}(c||(c={})),function(e){const t=new Map;t.set(0,r.Codicon.symbolMethod),t.set(1,r.Codicon.symbolFunction),t.set(2,r.Codicon.symbolConstructor),t.set(3,r.Codicon.symbolField),t.set(4,r.Codicon.symbolVariable),t.set(5,r.Codicon.symbolClass),t.set(6,r.Codicon.symbolStruct),t.set(7,r.Codicon.symbolInterface),t.set(8,r.Codicon.symbolModule),t.set(9,r.Codicon.symbolProperty),t.set(10,r.Codicon.symbolEvent),t.set(11,r.Codicon.symbolOperator),t.set(12,r.Codicon.symbolUnit),t.set(13,r.Codicon.symbolValue),t.set(15,r.Codicon.symbolEnum),t.set(14,r.Codicon.symbolConstant),t.set(15,r.Codicon.symbolEnum),t.set(16,r.Codicon.symbolEnumMember),t.set(17,r.Codicon.symbolKeyword),t.set(27,r.Codicon.symbolSnippet),t.set(18,r.Codicon.symbolText),t.set(19,r.Codicon.symbolColor),t.set(20,r.Codicon.symbolFile),t.set(21,r.Codicon.symbolReference),t.set(22,r.Codicon.symbolCustomColor),t.set(23,r.Codicon.symbolFolder),t.set(24,r.Codicon.symbolTypeParameter),t.set(25,r.Codicon.account),t.set(26,r.Codicon.issues),e.toIcon=function(e){let n=t.get(e);return n||(console.info("No codicon found for CompletionItemKind "+e),n=r.Codicon.symbolProperty),n};const n=new Map;n.set("method",0),n.set("function",1),n.set("constructor",2),n.set("field",3),n.set("variable",4),n.set("class",5),n.set("struct",6),n.set("interface",7),n.set("module",8),n.set("property",9),n.set("event",10),n.set("operator",11),n.set("unit",12),n.set("value",13),n.set("constant",14),n.set("enum",15),n.set("enum-member",16),n.set("enumMember",16),n.set("keyword",17),n.set("snippet",27),n.set("text",18),n.set("color",19),n.set("file",20),n.set("reference",21),n.set("customcolor",22),n.set("folder",23),n.set("type-parameter",24),n.set("typeParameter",24),n.set("account",25),n.set("issue",26),e.fromString=function(e,t){let r=n.get(e);return void 0!==r||t||(r=9),r}}(d||(d={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(p||(p={}));class E{constructor(e,t,n,r){this.range=e,this.text=t,this.completionKind=n,this.isSnippetText=r}equals(e){return o.Range.lift(this.range).equalsRange(e.range)&&this.text===e.text&&this.completionKind===e.completionKind&&this.isSnippetText===e.isSnippetText}}function T(e){return e&&i.URI.isUri(e.uri)&&o.Range.isIRange(e.range)&&(o.Range.isIRange(e.originSelectionRange)||o.Range.isIRange(e.targetSelectionRange))}!function(e){e[e.Automatic=0]="Automatic",e[e.PasteAs=1]="PasteAs"}(f||(f={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(h||(h={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(m||(m={}));const w={17:(0,g.localize)("Array","array"),16:(0,g.localize)("Boolean","boolean"),4:(0,g.localize)("Class","class"),13:(0,g.localize)("Constant","constant"),8:(0,g.localize)("Constructor","constructor"),9:(0,g.localize)("Enum","enumeration"),21:(0,g.localize)("EnumMember","enumeration member"),23:(0,g.localize)("Event","event"),7:(0,g.localize)("Field","field"),0:(0,g.localize)("File","file"),11:(0,g.localize)("Function","function"),10:(0,g.localize)("Interface","interface"),19:(0,g.localize)("Key","key"),5:(0,g.localize)("Method","method"),1:(0,g.localize)("Module","module"),2:(0,g.localize)("Namespace","namespace"),20:(0,g.localize)("Null","null"),15:(0,g.localize)("Number","number"),18:(0,g.localize)("Object","object"),24:(0,g.localize)("Operator","operator"),3:(0,g.localize)("Package","package"),6:(0,g.localize)("Property","property"),14:(0,g.localize)("String","string"),22:(0,g.localize)("Struct","struct"),25:(0,g.localize)("TypeParameter","type parameter"),12:(0,g.localize)("Variable","variable")};function k(e,t){return(0,g.localize)("symbolAriaLabel","{0} ({1})",e,w[t])}var S,x,C,_,N;!function(e){const t=new Map;t.set(0,r.Codicon.symbolFile),t.set(1,r.Codicon.symbolModule),t.set(2,r.Codicon.symbolNamespace),t.set(3,r.Codicon.symbolPackage),t.set(4,r.Codicon.symbolClass),t.set(5,r.Codicon.symbolMethod),t.set(6,r.Codicon.symbolProperty),t.set(7,r.Codicon.symbolField),t.set(8,r.Codicon.symbolConstructor),t.set(9,r.Codicon.symbolEnum),t.set(10,r.Codicon.symbolInterface),t.set(11,r.Codicon.symbolFunction),t.set(12,r.Codicon.symbolVariable),t.set(13,r.Codicon.symbolConstant),t.set(14,r.Codicon.symbolString),t.set(15,r.Codicon.symbolNumber),t.set(16,r.Codicon.symbolBoolean),t.set(17,r.Codicon.symbolArray),t.set(18,r.Codicon.symbolObject),t.set(19,r.Codicon.symbolKey),t.set(20,r.Codicon.symbolNull),t.set(21,r.Codicon.symbolEnumMember),t.set(22,r.Codicon.symbolStruct),t.set(23,r.Codicon.symbolEvent),t.set(24,r.Codicon.symbolOperator),t.set(25,r.Codicon.symbolTypeParameter),e.toIcon=function(e){let n=t.get(e);return n||(console.info("No codicon found for SymbolKind "+e),n=r.Codicon.symbolProperty),n}}(S||(S={}));class D{}class A{static{this.Comment=new A("comment")}static{this.Imports=new A("imports")}static{this.Region=new A("region")}static fromValue(e){switch(e){case"comment":return A.Comment;case"imports":return A.Imports;case"region":return A.Region}return new A(e)}constructor(e){this.value=e}}!function(e){e[e.AIGenerated=1]="AIGenerated"}(x||(x={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(C||(C={})),function(e){e.is=function(e){return!(!e||"object"!=typeof e)&&"string"==typeof e.id&&"string"==typeof e.title}}(_||(_={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(N||(N={}));class L{constructor(e){this.createSupport=e,this._tokenizationSupport=null}dispose(){this._tokenizationSupport&&this._tokenizationSupport.then(e=>{e&&e.dispose()})}get tokenizationSupport(){return this._tokenizationSupport||(this._tokenizationSupport=this.createSupport()),this._tokenizationSupport}}const I=new l,O=new l;var R;!function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(R||(R={}))},37970(e,t,n){n.r(t),n.d(t,{KeyMod:()=>p,createMonacoBaseAPI:()=>f});var r=n(31710),i=n(22573),o=n(58518),s=n(5839),a=n(55818),l=n(81304),u=n(15719),c=n(51753),d=n(69014);class p{static{this.CtrlCmd=2048}static{this.Shift=1024}static{this.Alt=512}static{this.WinCtrl=256}static chord(e,t){return(0,o.KeyChord)(e,t)}}function f(){return{editor:void 0,languages:void 0,CancellationTokenSource:r.CancellationTokenSource,Emitter:i.Emitter,KeyCode:d.KeyCode,KeyMod:p,Position:a.Position,Range:l.Range,Selection:u.Selection,SelectionDirection:d.SelectionDirection,MarkerSeverity:d.MarkerSeverity,MarkerTag:d.MarkerTag,Uri:s.URI,Token:c.Token}}},69014(e,t,n){var r,i,o,s,a,l,u,c,d,p,f,h,m,g,y,v,b,E,T,w,k,S,x,C,_,N,D,A,L,I,O,R,F,P,M,j,V,K,U,B,$,q,z,G,Q,H;n.r(t),n.d(t,{AccessibilitySupport:()=>r,CodeActionTriggerType:()=>i,CompletionItemInsertTextRule:()=>o,CompletionItemKind:()=>s,CompletionItemTag:()=>a,CompletionTriggerKind:()=>l,ContentWidgetPositionPreference:()=>u,CursorChangeReason:()=>c,DefaultEndOfLine:()=>d,DocumentHighlightKind:()=>p,EditorAutoIndentStrategy:()=>f,EditorOption:()=>h,EndOfLinePreference:()=>m,EndOfLineSequence:()=>g,GlyphMarginLane:()=>y,HoverVerbosityAction:()=>v,IndentAction:()=>b,InjectedTextCursorStops:()=>E,InlayHintKind:()=>T,InlineCompletionTriggerKind:()=>w,InlineEditTriggerKind:()=>k,KeyCode:()=>S,MarkerSeverity:()=>x,MarkerTag:()=>C,MinimapPosition:()=>_,MinimapSectionHeaderStyle:()=>N,MouseTargetType:()=>D,NewSymbolNameTag:()=>A,NewSymbolNameTriggerKind:()=>L,OverlayWidgetPositionPreference:()=>I,OverviewRulerLane:()=>O,PartialAcceptTriggerKind:()=>R,PositionAffinity:()=>F,RenderLineNumbersType:()=>P,RenderMinimap:()=>M,ScrollType:()=>j,ScrollbarVisibility:()=>V,SelectionDirection:()=>K,ShowLightbulbIconMode:()=>U,SignatureHelpTriggerKind:()=>B,SymbolKind:()=>$,SymbolTag:()=>q,TextEditorCursorBlinkingStyle:()=>z,TextEditorCursorStyle:()=>G,TrackedRangeStickiness:()=>Q,WrappingIndent:()=>H}),function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"}(r||(r={})),function(e){e[e.Invoke=1]="Invoke",e[e.Auto=2]="Auto"}(i||(i={})),function(e){e[e.None=0]="None",e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"}(o||(o={})),function(e){e[e.Method=0]="Method",e[e.Function=1]="Function",e[e.Constructor=2]="Constructor",e[e.Field=3]="Field",e[e.Variable=4]="Variable",e[e.Class=5]="Class",e[e.Struct=6]="Struct",e[e.Interface=7]="Interface",e[e.Module=8]="Module",e[e.Property=9]="Property",e[e.Event=10]="Event",e[e.Operator=11]="Operator",e[e.Unit=12]="Unit",e[e.Value=13]="Value",e[e.Constant=14]="Constant",e[e.Enum=15]="Enum",e[e.EnumMember=16]="EnumMember",e[e.Keyword=17]="Keyword",e[e.Text=18]="Text",e[e.Color=19]="Color",e[e.File=20]="File",e[e.Reference=21]="Reference",e[e.Customcolor=22]="Customcolor",e[e.Folder=23]="Folder",e[e.TypeParameter=24]="TypeParameter",e[e.User=25]="User",e[e.Issue=26]="Issue",e[e.Snippet=27]="Snippet"}(s||(s={})),function(e){e[e.Deprecated=1]="Deprecated"}(a||(a={})),function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"}(l||(l={})),function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"}(u||(u={})),function(e){e[e.NotSet=0]="NotSet",e[e.ContentFlush=1]="ContentFlush",e[e.RecoverFromMarkers=2]="RecoverFromMarkers",e[e.Explicit=3]="Explicit",e[e.Paste=4]="Paste",e[e.Undo=5]="Undo",e[e.Redo=6]="Redo"}(c||(c={})),function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(d||(d={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(p||(p={})),function(e){e[e.None=0]="None",e[e.Keep=1]="Keep",e[e.Brackets=2]="Brackets",e[e.Advanced=3]="Advanced",e[e.Full=4]="Full"}(f||(f={})),function(e){e[e.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",e[e.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",e[e.accessibilitySupport=2]="accessibilitySupport",e[e.accessibilityPageSize=3]="accessibilityPageSize",e[e.ariaLabel=4]="ariaLabel",e[e.ariaRequired=5]="ariaRequired",e[e.autoClosingBrackets=6]="autoClosingBrackets",e[e.autoClosingComments=7]="autoClosingComments",e[e.screenReaderAnnounceInlineSuggestion=8]="screenReaderAnnounceInlineSuggestion",e[e.autoClosingDelete=9]="autoClosingDelete",e[e.autoClosingOvertype=10]="autoClosingOvertype",e[e.autoClosingQuotes=11]="autoClosingQuotes",e[e.autoIndent=12]="autoIndent",e[e.automaticLayout=13]="automaticLayout",e[e.autoSurround=14]="autoSurround",e[e.bracketPairColorization=15]="bracketPairColorization",e[e.guides=16]="guides",e[e.codeLens=17]="codeLens",e[e.codeLensFontFamily=18]="codeLensFontFamily",e[e.codeLensFontSize=19]="codeLensFontSize",e[e.colorDecorators=20]="colorDecorators",e[e.colorDecoratorsLimit=21]="colorDecoratorsLimit",e[e.columnSelection=22]="columnSelection",e[e.comments=23]="comments",e[e.contextmenu=24]="contextmenu",e[e.copyWithSyntaxHighlighting=25]="copyWithSyntaxHighlighting",e[e.cursorBlinking=26]="cursorBlinking",e[e.cursorSmoothCaretAnimation=27]="cursorSmoothCaretAnimation",e[e.cursorStyle=28]="cursorStyle",e[e.cursorSurroundingLines=29]="cursorSurroundingLines",e[e.cursorSurroundingLinesStyle=30]="cursorSurroundingLinesStyle",e[e.cursorWidth=31]="cursorWidth",e[e.disableLayerHinting=32]="disableLayerHinting",e[e.disableMonospaceOptimizations=33]="disableMonospaceOptimizations",e[e.domReadOnly=34]="domReadOnly",e[e.dragAndDrop=35]="dragAndDrop",e[e.dropIntoEditor=36]="dropIntoEditor",e[e.emptySelectionClipboard=37]="emptySelectionClipboard",e[e.experimentalWhitespaceRendering=38]="experimentalWhitespaceRendering",e[e.extraEditorClassName=39]="extraEditorClassName",e[e.fastScrollSensitivity=40]="fastScrollSensitivity",e[e.find=41]="find",e[e.fixedOverflowWidgets=42]="fixedOverflowWidgets",e[e.folding=43]="folding",e[e.foldingStrategy=44]="foldingStrategy",e[e.foldingHighlight=45]="foldingHighlight",e[e.foldingImportsByDefault=46]="foldingImportsByDefault",e[e.foldingMaximumRegions=47]="foldingMaximumRegions",e[e.unfoldOnClickAfterEndOfLine=48]="unfoldOnClickAfterEndOfLine",e[e.fontFamily=49]="fontFamily",e[e.fontInfo=50]="fontInfo",e[e.fontLigatures=51]="fontLigatures",e[e.fontSize=52]="fontSize",e[e.fontWeight=53]="fontWeight",e[e.fontVariations=54]="fontVariations",e[e.formatOnPaste=55]="formatOnPaste",e[e.formatOnType=56]="formatOnType",e[e.glyphMargin=57]="glyphMargin",e[e.gotoLocation=58]="gotoLocation",e[e.hideCursorInOverviewRuler=59]="hideCursorInOverviewRuler",e[e.hover=60]="hover",e[e.inDiffEditor=61]="inDiffEditor",e[e.inlineSuggest=62]="inlineSuggest",e[e.inlineEdit=63]="inlineEdit",e[e.letterSpacing=64]="letterSpacing",e[e.lightbulb=65]="lightbulb",e[e.lineDecorationsWidth=66]="lineDecorationsWidth",e[e.lineHeight=67]="lineHeight",e[e.lineNumbers=68]="lineNumbers",e[e.lineNumbersMinChars=69]="lineNumbersMinChars",e[e.linkedEditing=70]="linkedEditing",e[e.links=71]="links",e[e.matchBrackets=72]="matchBrackets",e[e.minimap=73]="minimap",e[e.mouseStyle=74]="mouseStyle",e[e.mouseWheelScrollSensitivity=75]="mouseWheelScrollSensitivity",e[e.mouseWheelZoom=76]="mouseWheelZoom",e[e.multiCursorMergeOverlapping=77]="multiCursorMergeOverlapping",e[e.multiCursorModifier=78]="multiCursorModifier",e[e.multiCursorPaste=79]="multiCursorPaste",e[e.multiCursorLimit=80]="multiCursorLimit",e[e.occurrencesHighlight=81]="occurrencesHighlight",e[e.overviewRulerBorder=82]="overviewRulerBorder",e[e.overviewRulerLanes=83]="overviewRulerLanes",e[e.padding=84]="padding",e[e.pasteAs=85]="pasteAs",e[e.parameterHints=86]="parameterHints",e[e.peekWidgetDefaultFocus=87]="peekWidgetDefaultFocus",e[e.placeholder=88]="placeholder",e[e.definitionLinkOpensInPeek=89]="definitionLinkOpensInPeek",e[e.quickSuggestions=90]="quickSuggestions",e[e.quickSuggestionsDelay=91]="quickSuggestionsDelay",e[e.readOnly=92]="readOnly",e[e.readOnlyMessage=93]="readOnlyMessage",e[e.renameOnType=94]="renameOnType",e[e.renderControlCharacters=95]="renderControlCharacters",e[e.renderFinalNewline=96]="renderFinalNewline",e[e.renderLineHighlight=97]="renderLineHighlight",e[e.renderLineHighlightOnlyWhenFocus=98]="renderLineHighlightOnlyWhenFocus",e[e.renderValidationDecorations=99]="renderValidationDecorations",e[e.renderWhitespace=100]="renderWhitespace",e[e.revealHorizontalRightPadding=101]="revealHorizontalRightPadding",e[e.roundedSelection=102]="roundedSelection",e[e.rulers=103]="rulers",e[e.scrollbar=104]="scrollbar",e[e.scrollBeyondLastColumn=105]="scrollBeyondLastColumn",e[e.scrollBeyondLastLine=106]="scrollBeyondLastLine",e[e.scrollPredominantAxis=107]="scrollPredominantAxis",e[e.selectionClipboard=108]="selectionClipboard",e[e.selectionHighlight=109]="selectionHighlight",e[e.selectOnLineNumbers=110]="selectOnLineNumbers",e[e.showFoldingControls=111]="showFoldingControls",e[e.showUnused=112]="showUnused",e[e.snippetSuggestions=113]="snippetSuggestions",e[e.smartSelect=114]="smartSelect",e[e.smoothScrolling=115]="smoothScrolling",e[e.stickyScroll=116]="stickyScroll",e[e.stickyTabStops=117]="stickyTabStops",e[e.stopRenderingLineAfter=118]="stopRenderingLineAfter",e[e.suggest=119]="suggest",e[e.suggestFontSize=120]="suggestFontSize",e[e.suggestLineHeight=121]="suggestLineHeight",e[e.suggestOnTriggerCharacters=122]="suggestOnTriggerCharacters",e[e.suggestSelection=123]="suggestSelection",e[e.tabCompletion=124]="tabCompletion",e[e.tabIndex=125]="tabIndex",e[e.unicodeHighlighting=126]="unicodeHighlighting",e[e.unusualLineTerminators=127]="unusualLineTerminators",e[e.useShadowDOM=128]="useShadowDOM",e[e.useTabStops=129]="useTabStops",e[e.wordBreak=130]="wordBreak",e[e.wordSegmenterLocales=131]="wordSegmenterLocales",e[e.wordSeparators=132]="wordSeparators",e[e.wordWrap=133]="wordWrap",e[e.wordWrapBreakAfterCharacters=134]="wordWrapBreakAfterCharacters",e[e.wordWrapBreakBeforeCharacters=135]="wordWrapBreakBeforeCharacters",e[e.wordWrapColumn=136]="wordWrapColumn",e[e.wordWrapOverride1=137]="wordWrapOverride1",e[e.wordWrapOverride2=138]="wordWrapOverride2",e[e.wrappingIndent=139]="wrappingIndent",e[e.wrappingStrategy=140]="wrappingStrategy",e[e.showDeprecated=141]="showDeprecated",e[e.inlayHints=142]="inlayHints",e[e.editorClassName=143]="editorClassName",e[e.pixelRatio=144]="pixelRatio",e[e.tabFocusMode=145]="tabFocusMode",e[e.layoutInfo=146]="layoutInfo",e[e.wrappingInfo=147]="wrappingInfo",e[e.defaultColorDecorators=148]="defaultColorDecorators",e[e.colorDecoratorsActivatedOn=149]="colorDecoratorsActivatedOn",e[e.inlineCompletionsAccessibilityVerbose=150]="inlineCompletionsAccessibilityVerbose"}(h||(h={})),function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(m||(m={})),function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"}(g||(g={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"}(y||(y={})),function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"}(v||(v={})),function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(b||(b={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(E||(E={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(T||(T={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(w||(w={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(k||(k={})),function(e){e[e.DependsOnKbLayout=-1]="DependsOnKbLayout",e[e.Unknown=0]="Unknown",e[e.Backspace=1]="Backspace",e[e.Tab=2]="Tab",e[e.Enter=3]="Enter",e[e.Shift=4]="Shift",e[e.Ctrl=5]="Ctrl",e[e.Alt=6]="Alt",e[e.PauseBreak=7]="PauseBreak",e[e.CapsLock=8]="CapsLock",e[e.Escape=9]="Escape",e[e.Space=10]="Space",e[e.PageUp=11]="PageUp",e[e.PageDown=12]="PageDown",e[e.End=13]="End",e[e.Home=14]="Home",e[e.LeftArrow=15]="LeftArrow",e[e.UpArrow=16]="UpArrow",e[e.RightArrow=17]="RightArrow",e[e.DownArrow=18]="DownArrow",e[e.Insert=19]="Insert",e[e.Delete=20]="Delete",e[e.Digit0=21]="Digit0",e[e.Digit1=22]="Digit1",e[e.Digit2=23]="Digit2",e[e.Digit3=24]="Digit3",e[e.Digit4=25]="Digit4",e[e.Digit5=26]="Digit5",e[e.Digit6=27]="Digit6",e[e.Digit7=28]="Digit7",e[e.Digit8=29]="Digit8",e[e.Digit9=30]="Digit9",e[e.KeyA=31]="KeyA",e[e.KeyB=32]="KeyB",e[e.KeyC=33]="KeyC",e[e.KeyD=34]="KeyD",e[e.KeyE=35]="KeyE",e[e.KeyF=36]="KeyF",e[e.KeyG=37]="KeyG",e[e.KeyH=38]="KeyH",e[e.KeyI=39]="KeyI",e[e.KeyJ=40]="KeyJ",e[e.KeyK=41]="KeyK",e[e.KeyL=42]="KeyL",e[e.KeyM=43]="KeyM",e[e.KeyN=44]="KeyN",e[e.KeyO=45]="KeyO",e[e.KeyP=46]="KeyP",e[e.KeyQ=47]="KeyQ",e[e.KeyR=48]="KeyR",e[e.KeyS=49]="KeyS",e[e.KeyT=50]="KeyT",e[e.KeyU=51]="KeyU",e[e.KeyV=52]="KeyV",e[e.KeyW=53]="KeyW",e[e.KeyX=54]="KeyX",e[e.KeyY=55]="KeyY",e[e.KeyZ=56]="KeyZ",e[e.Meta=57]="Meta",e[e.ContextMenu=58]="ContextMenu",e[e.F1=59]="F1",e[e.F2=60]="F2",e[e.F3=61]="F3",e[e.F4=62]="F4",e[e.F5=63]="F5",e[e.F6=64]="F6",e[e.F7=65]="F7",e[e.F8=66]="F8",e[e.F9=67]="F9",e[e.F10=68]="F10",e[e.F11=69]="F11",e[e.F12=70]="F12",e[e.F13=71]="F13",e[e.F14=72]="F14",e[e.F15=73]="F15",e[e.F16=74]="F16",e[e.F17=75]="F17",e[e.F18=76]="F18",e[e.F19=77]="F19",e[e.F20=78]="F20",e[e.F21=79]="F21",e[e.F22=80]="F22",e[e.F23=81]="F23",e[e.F24=82]="F24",e[e.NumLock=83]="NumLock",e[e.ScrollLock=84]="ScrollLock",e[e.Semicolon=85]="Semicolon",e[e.Equal=86]="Equal",e[e.Comma=87]="Comma",e[e.Minus=88]="Minus",e[e.Period=89]="Period",e[e.Slash=90]="Slash",e[e.Backquote=91]="Backquote",e[e.BracketLeft=92]="BracketLeft",e[e.Backslash=93]="Backslash",e[e.BracketRight=94]="BracketRight",e[e.Quote=95]="Quote",e[e.OEM_8=96]="OEM_8",e[e.IntlBackslash=97]="IntlBackslash",e[e.Numpad0=98]="Numpad0",e[e.Numpad1=99]="Numpad1",e[e.Numpad2=100]="Numpad2",e[e.Numpad3=101]="Numpad3",e[e.Numpad4=102]="Numpad4",e[e.Numpad5=103]="Numpad5",e[e.Numpad6=104]="Numpad6",e[e.Numpad7=105]="Numpad7",e[e.Numpad8=106]="Numpad8",e[e.Numpad9=107]="Numpad9",e[e.NumpadMultiply=108]="NumpadMultiply",e[e.NumpadAdd=109]="NumpadAdd",e[e.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",e[e.NumpadSubtract=111]="NumpadSubtract",e[e.NumpadDecimal=112]="NumpadDecimal",e[e.NumpadDivide=113]="NumpadDivide",e[e.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",e[e.ABNT_C1=115]="ABNT_C1",e[e.ABNT_C2=116]="ABNT_C2",e[e.AudioVolumeMute=117]="AudioVolumeMute",e[e.AudioVolumeUp=118]="AudioVolumeUp",e[e.AudioVolumeDown=119]="AudioVolumeDown",e[e.BrowserSearch=120]="BrowserSearch",e[e.BrowserHome=121]="BrowserHome",e[e.BrowserBack=122]="BrowserBack",e[e.BrowserForward=123]="BrowserForward",e[e.MediaTrackNext=124]="MediaTrackNext",e[e.MediaTrackPrevious=125]="MediaTrackPrevious",e[e.MediaStop=126]="MediaStop",e[e.MediaPlayPause=127]="MediaPlayPause",e[e.LaunchMediaPlayer=128]="LaunchMediaPlayer",e[e.LaunchMail=129]="LaunchMail",e[e.LaunchApp2=130]="LaunchApp2",e[e.Clear=131]="Clear",e[e.MAX_VALUE=132]="MAX_VALUE"}(S||(S={})),function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(x||(x={})),function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"}(C||(C={})),function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"}(_||(_={})),function(e){e[e.Normal=1]="Normal",e[e.Underlined=2]="Underlined"}(N||(N={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.TEXTAREA=1]="TEXTAREA",e[e.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",e[e.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",e[e.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",e[e.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",e[e.CONTENT_TEXT=6]="CONTENT_TEXT",e[e.CONTENT_EMPTY=7]="CONTENT_EMPTY",e[e.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",e[e.CONTENT_WIDGET=9]="CONTENT_WIDGET",e[e.OVERVIEW_RULER=10]="OVERVIEW_RULER",e[e.SCROLLBAR=11]="SCROLLBAR",e[e.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",e[e.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"}(D||(D={})),function(e){e[e.AIGenerated=1]="AIGenerated"}(A||(A={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(L||(L={})),function(e){e[e.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",e[e.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",e[e.TOP_CENTER=2]="TOP_CENTER"}(I||(I={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(O||(O={})),function(e){e[e.Word=0]="Word",e[e.Line=1]="Line",e[e.Suggest=2]="Suggest"}(R||(R={})),function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.None=2]="None",e[e.LeftOfInjectedText=3]="LeftOfInjectedText",e[e.RightOfInjectedText=4]="RightOfInjectedText"}(F||(F={})),function(e){e[e.Off=0]="Off",e[e.On=1]="On",e[e.Relative=2]="Relative",e[e.Interval=3]="Interval",e[e.Custom=4]="Custom"}(P||(P={})),function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"}(M||(M={})),function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"}(j||(j={})),function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"}(V||(V={})),function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"}(K||(K={})),function(e){e.Off="off",e.OnCode="onCode",e.On="on"}(U||(U={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(B||(B={})),function(e){e[e.File=0]="File",e[e.Module=1]="Module",e[e.Namespace=2]="Namespace",e[e.Package=3]="Package",e[e.Class=4]="Class",e[e.Method=5]="Method",e[e.Property=6]="Property",e[e.Field=7]="Field",e[e.Constructor=8]="Constructor",e[e.Enum=9]="Enum",e[e.Interface=10]="Interface",e[e.Function=11]="Function",e[e.Variable=12]="Variable",e[e.Constant=13]="Constant",e[e.String=14]="String",e[e.Number=15]="Number",e[e.Boolean=16]="Boolean",e[e.Array=17]="Array",e[e.Object=18]="Object",e[e.Key=19]="Key",e[e.Null=20]="Null",e[e.EnumMember=21]="EnumMember",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter"}($||($={})),function(e){e[e.Deprecated=1]="Deprecated"}(q||(q={})),function(e){e[e.Hidden=0]="Hidden",e[e.Blink=1]="Blink",e[e.Smooth=2]="Smooth",e[e.Phase=3]="Phase",e[e.Expand=4]="Expand",e[e.Solid=5]="Solid"}(z||(z={})),function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"}(G||(G={})),function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"}(Q||(Q={})),function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"}(H||(H={}))},12003(e,t,n){function r(){return globalThis._VSCODE_NLS_MESSAGES}function i(){return globalThis._VSCODE_NLS_LANGUAGE}n.d(t,{getNLSLanguage:()=>i,getNLSMessages:()=>r,localize:()=>a,localize2:()=>u}),n.r(t);const o="pseudo"===i()||"undefined"!=typeof document&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function s(e,t){let n;return n=0===t.length?e:e.replace(/\{(\d+)\}/g,(e,n)=>{const r=n[0],i=t[r];let o=e;return"string"==typeof i?o=i:"number"!=typeof i&&"boolean"!=typeof i&&null!=i||(o=String(i)),o}),o&&(n="["+n.replace(/[aouei]/g,"$&$&")+"]"),n}function a(e,t,...n){return s("number"==typeof e?l(e,t):t,n)}function l(e,t){const n=r()?.[e];if("string"!=typeof n){if("string"==typeof t)return t;throw new Error(`!!! NLS MISSING: ${e} !!!`)}return n}function u(e,t,...n){let r;r="number"==typeof e?l(e,t):t;const i=s(r,n);return{value:i,original:t===r?i:s(t,n)}}},68172(e,t,n){n.r(t),n.d(t,{getModelLanguageId:()=>a,getStringSchema:()=>f,toCompletion:()=>c,toGraphQLPosition:()=>u,toMarkerData:()=>p,toMonacoRange:()=>l,toMonacoSeverity:()=>d});var r=n(359),i=n(56514),o=n(37066),s=n(69014);const a=e=>"getModeId"in e?e.getModeId():e.getLanguageId();function l(e){return{startLineNumber:e.start.line+1,startColumn:e.start.character+1,endLineNumber:e.end.line+1,endColumn:e.end.character+1}}function u(e){return new o.Position(e.lineNumber-1,e.column-1)}function c(e,t){return{label:e.label,insertText:e.insertText,sortText:e.sortText,filterText:e.filterText,...e.documentation&&{documentation:{value:e.documentation}},detail:e.detail,...t&&{range:l(t)},kind:e.kind,...e.insertTextFormat&&{insertTextFormat:e.insertTextFormat},...e.insertTextMode&&{insertTextMode:e.insertTextMode},...e.command&&{command:{...e.command,id:e.command.command}},...e.labelDetails&&{labelDetails:e.labelDetails}}}function d(e){const t={1:s.MarkerSeverity.Error,2:s.MarkerSeverity.Warning,3:s.MarkerSeverity.Info,4:s.MarkerSeverity.Hint};return e?t[e]:t[2]}function p(e){return{startLineNumber:e.range.start.line+1,endLineNumber:e.range.end.line+1,startColumn:e.range.start.character+1,endColumn:e.range.end.character,message:e.message,severity:d(e.severity),code:e.code||void 0}}const f=e=>{const{schema:t,documentAST:n,introspectionJSON:o,introspectionJSONString:s,documentString:a,...l}=e;if(t)return{...l,documentString:(0,i.printSchema)(t)};if(s)return{...l,introspectionJSONString:s};if(a)return{...l,documentString:a};if(o)return{...l,introspectionJSONString:JSON.stringify(o)};if(n){const e=(0,r.buildASTSchema)(n,l.buildSchemaOptions);return{...l,documentString:(0,i.printSchema)(e)}}throw new Error("No schema supplied")}},62012(e){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})},29113(e,t,n){var r,i=Object.create,o=Object.defineProperty,s=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,l=Object.getPrototypeOf,u=Object.prototype.hasOwnProperty,c=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of a(t))u.call(e,i)||i===n||o(e,i,{get:()=>t[i],enumerable:!(r=s(t,i))||r.enumerable});return e},d={};((e,t)=>{for(var n in t)o(e,n,{get:t[n],enumerable:!0})})(d,{$dispatcherGuard:()=>x,$makeReadOnly:()=>_,$reset:()=>C,$structuralCheck:()=>I,c:()=>E,clearRenderCounterRegistry:()=>D,renderCounterRegistry:()=>N,useRenderCounter:()=>A}),e.exports=(r=d,c(o({},"__esModule",{value:!0}),r));var p,f,h=((e,t,n)=>(n=null!=e?i(l(e)):{},c(e&&e.__esModule?n:o(n,"default",{value:e,enumerable:!0}),e)))(n(14041)),{useRef:m,useEffect:g,isValidElement:y}=h,v=null!=(p=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE)?p:h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,b=Symbol.for("react.memo_cache_sentinel"),E="function"==typeof(null==(f=h.__COMPILER_RUNTIME)?void 0:f.c)?h.__COMPILER_RUNTIME.c:function(e){return h.useMemo(()=>{const t=new Array(e);for(let n=0;n<e;n++)t[n]=b;return t[b]=!0,t},[])},T={};["readContext","useCallback","useContext","useEffect","useImperativeHandle","useInsertionEffect","useLayoutEffect","useMemo","useReducer","useRef","useState","useDebugValue","useDeferredValue","useTransition","useMutableSource","useSyncExternalStore","useId","unstable_isNewReconciler","getCacheSignal","getCacheForType","useCacheRefresh"].forEach(e=>{T[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 w=null;function k(e){return v.ReactCurrentDispatcher.current=e,v.ReactCurrentDispatcher.current}T.useMemoCache=e=>{if(null==w)throw new Error("React Compiler internal invariant violation: unexpected null dispatcher");return w.useMemoCache(e)};var S=[];function x(e){const t=v.ReactCurrentDispatcher.current;if(0===e){if(S.push(t),1===S.length&&(w=t),t===T)throw new Error("[React] Unexpected call to custom hook or component from a React compiled function. Check that (1) all hooks are called directly and named according to convention ('use[A-Z]') and (2) components are returned as JSX instead of being directly invoked.");k(T)}else if(1===e){const e=S.pop();if(null==e)throw new Error("React Compiler internal error: unexpected null in guard stack");0===S.length&&(w=null),k(e)}else if(2===e)S.push(t),k(w);else{if(3!==e)throw new Error("React Compiler internal error: unreachable block"+e);{const e=S.pop();if(null==e)throw new Error("React Compiler internal error: unexpected null in guard stack");k(e)}}}function C(e){for(let t=0;t<e.length;t++)e[t]=b}function _(){throw new Error("TODO: implement $makeReadOnly in react-compiler-runtime")}var N=new Map;function D(){for(const e of N.values())e.forEach(e=>{e.count=0})}function A(e){const t=m(null);null!=t.current&&(t.current.count+=1),g(()=>{if(null==t.current){const n={count:0};!function(e,t){let n=N.get(e);null==n&&(n=new Set,N.set(e,n)),n.add(t)}(e,n),t.current=n}return()=>{null!==t.current&&function(e,t){const n=N.get(e);null!=n&&n.delete(t)}(e,t.current)}})}var L=new Set;function I(e,t,n,r,i,o){function s(e,t,s,a){const l=`${r}:${o} [${i}] ${n}${s} changed from ${e} to ${t} at depth ${a}`;L.has(l)||(L.add(l),console.error(l))}!function e(t,n,r,i){if(!(i>2)&&t!==n)if(typeof t!=typeof n)s("type "+typeof t,"type "+typeof n,r,i);else if("object"==typeof t){const o=Array.isArray(t),a=Array.isArray(n);if(null===t&&null!==n)s("null","type "+typeof n,r,i);else if(null===n)s("type "+typeof t,"null",r,i);else if(t instanceof Map)if(n instanceof Map)if(t.size!==n.size)s(`Map instance with size ${t.size}`,`Map instance with size ${n.size}`,r,i);else for(const[o,a]of t)n.has(o)?e(a,n.get(o),`${r}.get(${o})`,i+1):s(`Map instance with key ${o}`,`Map instance without key ${o}`,r,i);else s("Map instance","other value",r,i);else if(n instanceof Map)s("other value","Map instance",r,i);else if(t instanceof Set)if(n instanceof Set)if(t.size!==n.size)s(`Set instance with size ${t.size}`,`Set instance with size ${n.size}`,r,i);else for(const e of n)t.has(e)||s(`Set instance without element ${e}`,`Set instance with element ${e}`,r,i);else s("Set instance","other value",r,i);else if(n instanceof Set)s("other value","Set instance",r,i);else if(o||a)if(o!==a)s("type "+(o?"array":"object"),"type "+(a?"array":"object"),r,i);else if(t.length!==n.length)s(`array with length ${t.length}`,`array with length ${n.length}`,r,i);else for(let o=0;o<t.length;o++)e(t[o],n[o],`${r}[${o}]`,i+1);else if(y(t)||y(n))y(t)!==y(n)?s("type "+(y(t)?"React element":"object"),"type "+(y(n)?"React element":"object"),r,i):t.type!==n.type?s(`React element of type ${t.type}`,`React element of type ${n.type}`,r,i):e(t.props,n.props,`[props of ${r}]`,i+1);else{for(const e in n)e in t||s(`object without key ${e}`,`object with key ${e}`,r,i);for(const o in t)o in n?e(t[o],n[o],`${r}.${o}`,i+1):s(`object with key ${o}`,`object without key ${o}`,r,i)}}else{if("function"==typeof t)return;isNaN(t)||isNaN(n)?isNaN(t)!==isNaN(n)&&s(isNaN(t)?"NaN":"non-NaN value",isNaN(n)?"NaN":"non-NaN value",r,i):t!==n&&s(t,n,r,i)}}(e,t,"",0)}},86974(e,t,n){var r=n(97967),i=n(14041),o=n(43144);function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;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."}function a(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function l(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 u(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 c(e){if(31===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function d(e){if(l(e)!==e)throw Error(s(188))}function p(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e;for(e=e.child;null!==e;){if(null!==(t=p(e)))return t;e=e.sibling}return null}var f=Object.assign,h=Symbol.for("react.element"),m=Symbol.for("react.transitional.element"),g=Symbol.for("react.portal"),y=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),E=Symbol.for("react.consumer"),T=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),S=Symbol.for("react.suspense_list"),x=Symbol.for("react.memo"),C=Symbol.for("react.lazy");Symbol.for("react.scope");var _=Symbol.for("react.activity");Symbol.for("react.legacy_hidden"),Symbol.for("react.tracing_marker");var N=Symbol.for("react.memo_cache_sentinel");Symbol.for("react.view_transition");var D=Symbol.iterator;function A(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=D&&e[D]||e["@@iterator"])?e:null}var L=Symbol.for("react.client.reference");function I(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===L?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case y:return"Fragment";case b:return"Profiler";case v:return"StrictMode";case k:return"Suspense";case S:return"SuspenseList";case _:return"Activity"}if("object"==typeof e)switch(e.$$typeof){case g:return"Portal";case T:return e.displayName||"Context";case E:return(e._context.displayName||"Context")+".Consumer";case w:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case x:return null!==(t=e.displayName||null)?t:I(e.type)||"Memo";case C:t=e._payload,e=e._init;try{return I(e(t))}catch(e){}}return null}var O=Array.isArray,R=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P={pending:!1,data:null,method:null,action:null},M=[],j=-1;function V(e){return{current:e}}function K(e){0>j||(e.current=M[j],M[j]=null,j--)}function U(e,t){j++,M[j]=e.current,e.current=t}var B,$,q=V(null),z=V(null),G=V(null),Q=V(null);function H(e,t){switch(U(G,t),U(z,e),U(q,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?yd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)e=vd(t=yd(t),e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}K(q),U(q,e)}function W(){K(q),K(z),K(G)}function Y(e){null!==e.memoizedState&&U(Q,e);var t=q.current,n=vd(t,e.type);t!==n&&(U(z,e),U(q,n))}function X(e){z.current===e&&(K(q),K(z)),Q.current===e&&(K(Q),cp._currentValue=P)}function J(e){if(void 0===B)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);B=t&&t[1]||"",$=-1<e.stack.indexOf("\n    at")?" (<anonymous>)":-1<e.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+B+e+$}var Z=!1;function ee(e,t){if(!e||Z)return"";Z=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&"function"==typeof n.catch&&n.catch(function(){})}}catch(e){if(e&&r&&"string"==typeof e.stack)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=r.DetermineComponentFrameRoot(),s=o[0],a=o[1];if(s&&a){var l=s.split("\n"),u=a.split("\n");for(i=r=0;r<l.length&&!l[r].includes("DetermineComponentFrameRoot");)r++;for(;i<u.length&&!u[i].includes("DetermineComponentFrameRoot");)i++;if(r===l.length||i===u.length)for(r=l.length-1,i=u.length-1;1<=r&&0<=i&&l[r]!==u[i];)i--;for(;1<=r&&0<=i;r--,i--)if(l[r]!==u[i]){if(1!==r||1!==i)do{if(r--,0>--i||l[r]!==u[i]){var c="\n"+l[r].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}}while(1<=r&&0<=i);break}}}finally{Z=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?J(n):""}function te(e,t){switch(e.tag){case 26:case 27:case 5:return J(e.type);case 16:return J("Lazy");case 13:return e.child!==t&&null!==t?J("Suspense Fallback"):J("Suspense");case 19:return J("SuspenseList");case 0:case 15:return ee(e.type,!1);case 11:return ee(e.type.render,!1);case 1:return ee(e.type,!0);case 31:return J("Activity");default:return""}}function ne(e){try{var t="",n=null;do{t+=te(e,n),n=e,e=e.return}while(e);return t}catch(e){return"\nError generating stack: "+e.message+"\n"+e.stack}}var re=Object.prototype.hasOwnProperty,ie=r.unstable_scheduleCallback,oe=r.unstable_cancelCallback,se=r.unstable_shouldYield,ae=r.unstable_requestPaint,le=r.unstable_now,ue=r.unstable_getCurrentPriorityLevel,ce=r.unstable_ImmediatePriority,de=r.unstable_UserBlockingPriority,pe=r.unstable_NormalPriority,fe=r.unstable_LowPriority,he=r.unstable_IdlePriority,me=r.log,ge=r.unstable_setDisableYieldValue,ye=null,ve=null;function be(e){if("function"==typeof me&&ge(e),ve&&"function"==typeof ve.setStrictMode)try{ve.setStrictMode(ye,e)}catch(e){}}var Ee=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(Te(e)/we|0)|0},Te=Math.log,we=Math.LN2,ke=256,Se=262144,xe=4194304;function Ce(e){var t=42&e;if(0!==t)return t;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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return 261888&e;case 262144:case 524288:case 1048576:case 2097152:return 3932160&e;case 4194304:case 8388608:case 16777216:case 33554432:return 62914560&e;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function _e(e,t,n){var r=e.pendingLanes;if(0===r)return 0;var i=0,o=e.suspendedLanes,s=e.pingedLanes;e=e.warmLanes;var a=134217727&r;return 0!==a?0!==(r=a&~o)?i=Ce(r):0!==(s&=a)?i=Ce(s):n||0!==(n=a&~e)&&(i=Ce(n)):0!==(a=r&~o)?i=Ce(a):0!==s?i=Ce(s):n||0!==(n=r&~e)&&(i=Ce(n)),0===i?0:0!==t&&t!==i&&0===(t&o)&&((o=i&-i)>=(n=t&-t)||32===o&&4194048&n)?t:i}function Ne(e,t){return 0===(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)}function De(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32: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 Ae(){var e=xe;return!(62914560&(xe<<=1))&&(xe=4194304),e}function Le(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ie(e,t){e.pendingLanes|=t,268435456!==t&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Oe(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Ee(t);e.entangledLanes|=t,e.entanglements[r]=1073741824|e.entanglements[r]|261930&n}function Re(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ee(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function Fe(e,t){var n=t&-t;return 0!==((n=42&n?1:Pe(n))&(e.suspendedLanes|t))?0:n}function Pe(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Me(e){return 2<(e&=-e)?8<e?134217727&e?32:268435456:8:2}function je(){var e=F.p;return 0!==e?e:void 0===(e=window.event)?32:Cp(e.type)}function Ve(e,t){var n=F.p;try{return F.p=e,t()}finally{F.p=n}}var Ke=Math.random().toString(36).slice(2),Ue="__reactFiber$"+Ke,Be="__reactProps$"+Ke,$e="__reactContainer$"+Ke,qe="__reactEvents$"+Ke,ze="__reactListeners$"+Ke,Ge="__reactHandles$"+Ke,Qe="__reactResources$"+Ke,He="__reactMarker$"+Ke;function We(e){delete e[Ue],delete e[Be],delete e[qe],delete e[ze],delete e[Ge]}function Ye(e){var t=e[Ue];if(t)return t;for(var n=e.parentNode;n;){if(t=n[$e]||n[Ue]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Pd(e);null!==e;){if(n=e[Ue])return n;e=Pd(e)}return t}n=(e=n).parentNode}return null}function Xe(e){if(e=e[Ue]||e[$e]){var t=e.tag;if(5===t||6===t||13===t||31===t||26===t||27===t||3===t)return e}return null}function Je(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e.stateNode;throw Error(s(33))}function Ze(e){var t=e[Qe];return t||(t=e[Qe]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function et(e){e[He]=!0}var tt=new Set,nt={};function rt(e,t){it(e,t),it(e+"Capture",t)}function it(e,t){for(nt[e]=t,e=0;e<t.length;e++)tt.add(t[e])}var ot=RegExp("^[: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]*$"),st={},at={};function lt(e,t,n){if(i=t,re.call(at,i)||!re.call(st,i)&&(ot.test(i)?at[i]=!0:(st[i]=!0,0)))if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":return void e.removeAttribute(t);case"boolean":var r=t.toLowerCase().slice(0,5);if("data-"!==r&&"aria-"!==r)return void e.removeAttribute(t)}e.setAttribute(t,""+n)}var i}function ut(e,t,n){if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(t)}e.setAttribute(t,""+n)}}function ct(e,t,n,r){if(null===r)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(n)}e.setAttributeNS(t,n,""+r)}}function dt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function pt(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function ft(e){if(!e._valueTracker){var t=pt(e)?"checked":"value";e._valueTracker=function(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&void 0!==r&&"function"==typeof r.get&&"function"==typeof r.set){var i=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e,t,""+e[t])}}function ht(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=pt(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function mt(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}}var gt=/[\n"\\]/g;function yt(e){return e.replace(gt,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function vt(e,t,n,r,i,o,s,a){e.name="",null!=s&&"function"!=typeof s&&"symbol"!=typeof s&&"boolean"!=typeof s?e.type=s:e.removeAttribute("type"),null!=t?"number"===s?(0===t&&""===e.value||e.value!=t)&&(e.value=""+dt(t)):e.value!==""+dt(t)&&(e.value=""+dt(t)):"submit"!==s&&"reset"!==s||e.removeAttribute("value"),null!=t?Et(e,s,dt(t)):null!=n?Et(e,s,dt(n)):null!=r&&e.removeAttribute("value"),null==i&&null!=o&&(e.defaultChecked=!!o),null!=i&&(e.checked=i&&"function"!=typeof i&&"symbol"!=typeof i),null!=a&&"function"!=typeof a&&"symbol"!=typeof a&&"boolean"!=typeof a?e.name=""+dt(a):e.removeAttribute("name")}function bt(e,t,n,r,i,o,s,a){if(null!=o&&"function"!=typeof o&&"symbol"!=typeof o&&"boolean"!=typeof o&&(e.type=o),null!=t||null!=n){if(("submit"===o||"reset"===o)&&null==t)return void ft(e);n=null!=n?""+dt(n):"",t=null!=t?""+dt(t):n,a||t===e.value||(e.value=t),e.defaultValue=t}r="function"!=typeof(r=null!=r?r:i)&&"symbol"!=typeof r&&!!r,e.checked=a?e.checked:!!r,e.defaultChecked=!!r,null!=s&&"function"!=typeof s&&"symbol"!=typeof s&&"boolean"!=typeof s&&(e.name=s),ft(e)}function Et(e,t,n){"number"===t&&mt(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Tt(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=""+dt(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 wt(e,t,n){null==t||((t=""+dt(t))!==e.value&&(e.value=t),null!=n)?e.defaultValue=null!=n?""+dt(n):"":e.defaultValue!==t&&(e.defaultValue=t)}function kt(e,t,n,r){if(null==t){if(null!=r){if(null!=n)throw Error(s(92));if(O(r)){if(1<r.length)throw Error(s(93));r=r[0]}n=r}null==n&&(n=""),t=n}n=dt(t),e.defaultValue=n,(r=e.textContent)===n&&""!==r&&null!==r&&(e.value=r),ft(e)}function St(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 xt=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Ct(e,t,n){var r=0===t.indexOf("--");null==n||"boolean"==typeof n||""===n?r?e.setProperty(t,""):"float"===t?e.cssFloat="":e[t]="":r?e.setProperty(t,n):"number"!=typeof n||0===n||xt.has(t)?"float"===t?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function _t(e,t,n){if(null!=t&&"object"!=typeof t)throw Error(s(62));if(e=e.style,null!=n){for(var r in n)!n.hasOwnProperty(r)||null!=t&&t.hasOwnProperty(r)||(0===r.indexOf("--")?e.setProperty(r,""):"float"===r?e.cssFloat="":e[r]="");for(var i in t)r=t[i],t.hasOwnProperty(i)&&n[i]!==r&&Ct(e,i,r)}else for(var o in t)t.hasOwnProperty(o)&&Ct(e,o,t[o])}function Nt(e){if(-1===e.indexOf("-"))return!1;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 Dt=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),At=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Lt(e){return At.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function It(){}var Ot=null;function Rt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Ft=null,Pt=null;function Mt(e){var t=Xe(e);if(t&&(e=t.stateNode)){var n=e[Be]||null;e:switch(e=t.stateNode,t.type){case"input":if(vt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+yt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=r[Be]||null;if(!i)throw Error(s(90));vt(r,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)(r=n[t]).form===e.form&&ht(r)}break e;case"textarea":wt(e,n.value,n.defaultValue);break e;case"select":null!=(t=n.value)&&Tt(e,!!n.multiple,t,!1)}}}var jt=!1;function Vt(e,t,n){if(jt)return e(t,n);jt=!0;try{return e(t)}finally{if(jt=!1,(null!==Ft||null!==Pt)&&(Zu(),Ft&&(t=Ft,e=Pt,Pt=Ft=null,Mt(t),e)))for(t=0;t<e.length;t++)Mt(e[t])}}function Kt(e,t){var n=e.stateNode;if(null===n)return null;var r=n[Be]||null;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(s(231,t,typeof n));return n}var Ut=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),Bt=!1;if(Ut)try{var $t={};Object.defineProperty($t,"passive",{get:function(){Bt=!0}}),window.addEventListener("test",$t,$t),window.removeEventListener("test",$t,$t)}catch(e){Bt=!1}var qt=null,zt=null,Gt=null;function Qt(){if(Gt)return Gt;var e,t,n=zt,r=n.length,i="value"in qt?qt.value:qt.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var s=r-e;for(t=1;t<=s&&n[r-t]===i[o-t];t++);return Gt=i.slice(e,1<t?1-t:void 0)}function Ht(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 Wt(){return!0}function Yt(){return!1}function Xt(e){function t(t,n,r,i,o){for(var s in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(s)&&(t=e[s],this[s]=t?t(i):i[s]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?Wt:Yt,this.isPropagationStopped=Yt,this}return f(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=Wt)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Wt)},persist:function(){},isPersistent:Wt}),t}var Jt,Zt,en,tn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},nn=Xt(tn),rn=f({},tn,{view:0,detail:0}),on=Xt(rn),sn=f({},rn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:yn,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!==en&&(en&&"mousemove"===e.type?(Jt=e.screenX-en.screenX,Zt=e.screenY-en.screenY):Zt=Jt=0,en=e),Jt)},movementY:function(e){return"movementY"in e?e.movementY:Zt}}),an=Xt(sn),ln=Xt(f({},sn,{dataTransfer:0})),un=Xt(f({},rn,{relatedTarget:0})),cn=Xt(f({},tn,{animationName:0,elapsedTime:0,pseudoElement:0})),dn=Xt(f({},tn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),pn=Xt(f({},tn,{data:0})),fn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},hn={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"},mn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function gn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=mn[e])&&!!t[e]}function yn(){return gn}var vn=Xt(f({},rn,{key:function(e){if(e.key){var t=fn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Ht(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?hn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:yn,charCode:function(e){return"keypress"===e.type?Ht(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Ht(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),bn=Xt(f({},sn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),En=Xt(f({},rn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:yn})),Tn=Xt(f({},tn,{propertyName:0,elapsedTime:0,pseudoElement:0})),wn=Xt(f({},sn,{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})),kn=Xt(f({},tn,{newState:0,oldState:0})),Sn=[9,13,27,32],xn=Ut&&"CompositionEvent"in window,Cn=null;Ut&&"documentMode"in document&&(Cn=document.documentMode);var _n=Ut&&"TextEvent"in window&&!Cn,Nn=Ut&&(!xn||Cn&&8<Cn&&11>=Cn),Dn=String.fromCharCode(32),An=!1;function Ln(e,t){switch(e){case"keyup":return-1!==Sn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function In(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var On=!1,Rn={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 Fn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Rn[e.type]:"textarea"===t}function Pn(e,t,n,r){Ft?Pt?Pt.push(r):Pt=[r]:Ft=r,0<(t=rd(t,"onChange")).length&&(n=new nn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Mn=null,jn=null;function Vn(e){Wc(e,0)}function Kn(e){if(ht(Je(e)))return e}function Un(e,t){if("change"===e)return t}var Bn=!1;if(Ut){var $n;if(Ut){var qn="oninput"in document;if(!qn){var zn=document.createElement("div");zn.setAttribute("oninput","return;"),qn="function"==typeof zn.oninput}$n=qn}else $n=!1;Bn=$n&&(!document.documentMode||9<document.documentMode)}function Gn(){Mn&&(Mn.detachEvent("onpropertychange",Qn),jn=Mn=null)}function Qn(e){if("value"===e.propertyName&&Kn(jn)){var t=[];Pn(t,jn,e,Rt(e)),Vt(Vn,t)}}function Hn(e,t,n){"focusin"===e?(Gn(),jn=n,(Mn=t).attachEvent("onpropertychange",Qn)):"focusout"===e&&Gn()}function Wn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Kn(jn)}function Yn(e,t){if("click"===e)return Kn(t)}function Xn(e,t){if("input"===e||"change"===e)return Kn(t)}var Jn="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function Zn(e,t){if(Jn(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(!re.call(t,i)||!Jn(e[i],t[i]))return!1}return!0}function er(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function tr(e,t){var n,r=er(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=er(r)}}function nr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?nr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function rr(e){for(var t=mt((e=null!=e&&null!=e.ownerDocument&&null!=e.ownerDocument.defaultView?e.ownerDocument.defaultView:window).document);t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=mt((e=t.contentWindow).document)}return t}function ir(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)}var or=Ut&&"documentMode"in document&&11>=document.documentMode,sr=null,ar=null,lr=null,ur=!1;function cr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;ur||null==sr||sr!==mt(r)||(r="selectionStart"in(r=sr)&&ir(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},lr&&Zn(lr,r)||(lr=r,0<(r=rd(ar,"onSelect")).length&&(t=new nn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=sr)))}function dr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var pr={animationend:dr("Animation","AnimationEnd"),animationiteration:dr("Animation","AnimationIteration"),animationstart:dr("Animation","AnimationStart"),transitionrun:dr("Transition","TransitionRun"),transitionstart:dr("Transition","TransitionStart"),transitioncancel:dr("Transition","TransitionCancel"),transitionend:dr("Transition","TransitionEnd")},fr={},hr={};function mr(e){if(fr[e])return fr[e];if(!pr[e])return e;var t,n=pr[e];for(t in n)if(n.hasOwnProperty(t)&&t in hr)return fr[e]=n[t];return e}Ut&&(hr=document.createElement("div").style,"AnimationEvent"in window||(delete pr.animationend.animation,delete pr.animationiteration.animation,delete pr.animationstart.animation),"TransitionEvent"in window||delete pr.transitionend.transition);var gr=mr("animationend"),yr=mr("animationiteration"),vr=mr("animationstart"),br=mr("transitionrun"),Er=mr("transitionstart"),Tr=mr("transitioncancel"),wr=mr("transitionend"),kr=new Map,Sr="abort auxClick beforeToggle 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 xr(e,t){kr.set(e,t),rt(t,[e])}Sr.push("scrollEnd");var Cr="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)},_r=[],Nr=0,Dr=0;function Ar(){for(var e=Nr,t=Dr=Nr=0;t<e;){var n=_r[t];_r[t++]=null;var r=_r[t];_r[t++]=null;var i=_r[t];_r[t++]=null;var o=_r[t];if(_r[t++]=null,null!==r&&null!==i){var s=r.pending;null===s?i.next=i:(i.next=s.next,s.next=i),r.pending=i}0!==o&&Rr(n,i,o)}}function Lr(e,t,n,r){_r[Nr++]=e,_r[Nr++]=t,_r[Nr++]=n,_r[Nr++]=r,Dr|=r,e.lanes|=r,null!==(e=e.alternate)&&(e.lanes|=r)}function Ir(e,t,n,r){return Lr(e,t,n,r),Fr(e)}function Or(e,t){return Lr(e,null,null,t),Fr(e)}function Rr(e,t,n){e.lanes|=n;var r=e.alternate;null!==r&&(r.lanes|=n);for(var i=!1,o=e.return;null!==o;)o.childLanes|=n,null!==(r=o.alternate)&&(r.childLanes|=n),22===o.tag&&(null===(e=o.stateNode)||1&e._visibility||(i=!0)),e=o,o=o.return;return 3===e.tag?(o=e.stateNode,i&&null!==t&&(i=31-Ee(n),null===(r=(e=o.hiddenUpdates)[i])?e[i]=[t]:r.push(t),t.lane=536870912|n),o):null}function Fr(e){if(50<qu)throw qu=0,zu=null,Error(s(185));for(var t=e.return;null!==t;)t=(e=t).return;return 3===e.tag?e.stateNode:null}var Pr={};function Mr(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.refCleanup=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 jr(e,t,n,r){return new Mr(e,t,n,r)}function Vr(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Kr(e,t){var n=e.alternate;return null===n?((n=jr(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=65011712&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.refCleanup=e.refCleanup,n}function Ur(e,t){e.flags&=65011714;var n=e.alternate;return null===n?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Br(e,t,n,r,i,o){var a=0;if(r=e,"function"==typeof e)Vr(e)&&(a=1);else if("string"==typeof e)a=function(e,t,n){if(1===n||null!=t.itemProp)return!1;switch(e){case"meta":case"title":return!0;case"style":if("string"!=typeof t.precedence||"string"!=typeof t.href||""===t.href)break;return!0;case"link":if("string"!=typeof t.rel||"string"!=typeof t.href||""===t.href||t.onLoad||t.onError)break;return"stylesheet"!==t.rel||(e=t.disabled,"string"==typeof t.precedence&&null==e);case"script":if(t.async&&"function"!=typeof t.async&&"symbol"!=typeof t.async&&!t.onLoad&&!t.onError&&t.src&&"string"==typeof t.src)return!0}return!1}(e,n,q.current)?26:"html"===e||"head"===e||"body"===e?27:5;else e:switch(e){case _:return(e=jr(31,n,t,i)).elementType=_,e.lanes=o,e;case y:return $r(n.children,i,o,t);case v:a=8,i|=24;break;case b:return(e=jr(12,n,t,2|i)).elementType=b,e.lanes=o,e;case k:return(e=jr(13,n,t,i)).elementType=k,e.lanes=o,e;case S:return(e=jr(19,n,t,i)).elementType=S,e.lanes=o,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case T:a=10;break e;case E:a=9;break e;case w:a=11;break e;case x:a=14;break e;case C:a=16,r=null;break e}a=29,n=Error(s(130,null===e?"null":typeof e,"")),r=null}return(t=jr(a,n,t,i)).elementType=e,t.type=r,t.lanes=o,t}function $r(e,t,n,r){return(e=jr(7,e,r,t)).lanes=n,e}function qr(e,t,n){return(e=jr(6,e,null,t)).lanes=n,e}function zr(e){var t=jr(18,null,null,0);return t.stateNode=e,t}function Gr(e,t,n){return(t=jr(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Qr=new WeakMap;function Hr(e,t){if("object"==typeof e&&null!==e){var n=Qr.get(e);return void 0!==n?n:(t={value:e,source:t,stack:ne(t)},Qr.set(e,t),t)}return{value:e,source:t,stack:ne(t)}}var Wr=[],Yr=0,Xr=null,Jr=0,Zr=[],ei=0,ti=null,ni=1,ri="";function ii(e,t){Wr[Yr++]=Jr,Wr[Yr++]=Xr,Xr=e,Jr=t}function oi(e,t,n){Zr[ei++]=ni,Zr[ei++]=ri,Zr[ei++]=ti,ti=e;var r=ni;e=ri;var i=32-Ee(r)-1;r&=~(1<<i),n+=1;var o=32-Ee(t)+i;if(30<o){var s=i-i%5;o=(r&(1<<s)-1).toString(32),r>>=s,i-=s,ni=1<<32-Ee(t)+i|n<<i|r,ri=o+e}else ni=1<<o|n<<i|r,ri=e}function si(e){null!==e.return&&(ii(e,1),oi(e,1,0))}function ai(e){for(;e===Xr;)Xr=Wr[--Yr],Wr[Yr]=null,Jr=Wr[--Yr],Wr[Yr]=null;for(;e===ti;)ti=Zr[--ei],Zr[ei]=null,ri=Zr[--ei],Zr[ei]=null,ni=Zr[--ei],Zr[ei]=null}function li(e,t){Zr[ei++]=ni,Zr[ei++]=ri,Zr[ei++]=ti,ni=t.id,ri=t.overflow,ti=e}var ui=null,ci=null,di=!1,pi=null,fi=!1,hi=Error(s(519));function mi(e){throw Ti(Hr(Error(s(418,1<arguments.length&&void 0!==arguments[1]&&arguments[1]?"text":"HTML","")),e)),hi}function gi(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[Ue]=e,t[Be]=r,n){case"dialog":Yc("cancel",t),Yc("close",t);break;case"iframe":case"object":case"embed":Yc("load",t);break;case"video":case"audio":for(n=0;n<Qc.length;n++)Yc(Qc[n],t);break;case"source":Yc("error",t);break;case"img":case"image":case"link":Yc("error",t),Yc("load",t);break;case"details":Yc("toggle",t);break;case"input":Yc("invalid",t),bt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":Yc("invalid",t);break;case"textarea":Yc("invalid",t),kt(t,r.value,r.defaultValue,r.children)}"string"!=typeof(n=r.children)&&"number"!=typeof n&&"bigint"!=typeof n||t.textContent===""+n||!0===r.suppressHydrationWarning||ud(t.textContent,n)?(null!=r.popover&&(Yc("beforetoggle",t),Yc("toggle",t)),null!=r.onScroll&&Yc("scroll",t),null!=r.onScrollEnd&&Yc("scrollend",t),null!=r.onClick&&(t.onclick=It),t=!0):t=!1,t||mi(e,!0)}function yi(e){for(ui=e.return;ui;)switch(ui.tag){case 5:case 31:case 13:return void(fi=!1);case 27:case 3:return void(fi=!0);default:ui=ui.return}}function vi(e){if(e!==ui)return!1;if(!di)return yi(e),di=!0,!1;var t,n=e.tag;if((t=3!==n&&27!==n)&&((t=5===n)&&(t=!("form"!==(t=e.type)&&"button"!==t)||bd(e.type,e.memoizedProps)),t=!t),t&&ci&&mi(e),yi(e),13===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(s(317));ci=Fd(e)}else if(31===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(s(317));ci=Fd(e)}else 27===n?(n=ci,Cd(e.type)?(e=Rd,Rd=null,ci=e):ci=n):ci=ui?Od(e.stateNode.nextSibling):null;return!0}function bi(){ci=ui=null,di=!1}function Ei(){var e=pi;return null!==e&&(null===Au?Au=e:Au.push.apply(Au,e),pi=null),e}function Ti(e){null===pi?pi=[e]:pi.push(e)}var wi=V(null),ki=null,Si=null;function xi(e,t,n){U(wi,t._currentValue),t._currentValue=n}function Ci(e){e._currentValue=wi.current,K(wi)}function _i(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 Ni(e,t,n,r){var i=e.child;for(null!==i&&(i.return=e);null!==i;){var o=i.dependencies;if(null!==o){var a=i.child;o=o.firstContext;e:for(;null!==o;){var l=o;o=i;for(var u=0;u<t.length;u++)if(l.context===t[u]){o.lanes|=n,null!==(l=o.alternate)&&(l.lanes|=n),_i(o.return,n,e),r||(a=null);break e}o=l.next}}else if(18===i.tag){if(null===(a=i.return))throw Error(s(341));a.lanes|=n,null!==(o=a.alternate)&&(o.lanes|=n),_i(a,n,e),a=null}else a=i.child;if(null!==a)a.return=i;else for(a=i;null!==a;){if(a===e){a=null;break}if(null!==(i=a.sibling)){i.return=a.return,a=i;break}a=a.return}i=a}}function Di(e,t,n,r){e=null;for(var i=t,o=!1;null!==i;){if(!o)if(524288&i.flags)o=!0;else if(262144&i.flags)break;if(10===i.tag){var a=i.alternate;if(null===a)throw Error(s(387));if(null!==(a=a.memoizedProps)){var l=i.type;Jn(i.pendingProps.value,a.value)||(null!==e?e.push(l):e=[l])}}else if(i===Q.current){if(null===(a=i.alternate))throw Error(s(387));a.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(null!==e?e.push(cp):e=[cp])}i=i.return}null!==e&&Ni(t,e,n,r),t.flags|=262144}function Ai(e){for(e=e.firstContext;null!==e;){if(!Jn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Li(e){ki=e,Si=null,null!==(e=e.dependencies)&&(e.firstContext=null)}function Ii(e){return Ri(ki,e)}function Oi(e,t){return null===ki&&Li(e),Ri(e,t)}function Ri(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},null===Si){if(null===e)throw Error(s(308));Si=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Si=Si.next=t;return n}var Fi="undefined"!=typeof AbortController?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},Pi=r.unstable_scheduleCallback,Mi=r.unstable_NormalPriority,ji={$$typeof:T,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Vi(){return{controller:new Fi,data:new Map,refCount:0}}function Ki(e){e.refCount--,0===e.refCount&&Pi(Mi,function(){e.controller.abort()})}var Ui=null,Bi=0,$i=0,qi=null;function zi(){if(0===--Bi&&null!==Ui){null!==qi&&(qi.status="fulfilled");var e=Ui;Ui=null,$i=0,qi=null;for(var t=0;t<e.length;t++)(0,e[t])()}}var Gi=R.S;R.S=function(e,t){Ou=le(),"object"==typeof t&&null!==t&&"function"==typeof t.then&&function(e,t){if(null===Ui){var n=Ui=[];Bi=0,$i=Bc(),qi={status:"pending",value:void 0,then:function(e){n.push(e)}}}Bi++,t.then(zi,zi)}(0,t),null!==Gi&&Gi(e,t)};var Qi=V(null);function Hi(){var e=Qi.current;return null!==e?e:hu.pooledCache}function Wi(e,t){U(Qi,null===t?Qi.current:t.pool)}function Yi(){var e=Hi();return null===e?null:{parent:ji._currentValue,pool:e}}var Xi=Error(s(460)),Ji=Error(s(474)),Zi=Error(s(542)),eo={then:function(){}};function to(e){return"fulfilled"===(e=e.status)||"rejected"===e}function no(e,t,n){switch(void 0===(n=e[n])?e.push(t):n!==t&&(t.then(It,It),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw so(e=t.reason),e;default:if("string"==typeof t.status)t.then(It,It);else{if(null!==(e=hu)&&100<e.shellSuspendCounter)throw Error(s(482));(e=t).status="pending",e.then(function(e){if("pending"===t.status){var n=t;n.status="fulfilled",n.value=e}},function(e){if("pending"===t.status){var n=t;n.status="rejected",n.reason=e}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw so(e=t.reason),e}throw io=t,Xi}}function ro(e){try{return(0,e._init)(e._payload)}catch(e){if(null!==e&&"object"==typeof e&&"function"==typeof e.then)throw io=e,Xi;throw e}}var io=null;function oo(){if(null===io)throw Error(s(459));var e=io;return io=null,e}function so(e){if(e===Xi||e===Zi)throw Error(s(483))}var ao=null,lo=0;function uo(e){var t=lo;return lo+=1,null===ao&&(ao=[]),no(ao,e,t)}function co(e,t){t=t.props.ref,e.ref=void 0!==t?t:null}function po(e,t){if(t.$$typeof===h)throw Error(s(525));throw e=Object.prototype.toString.call(t),Error(s(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function fo(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){for(var t=new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function i(e,t){return(e=Kr(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=67108866,n):r:(t.flags|=67108866,n):(t.flags|=1048576,n)}function a(t){return e&&null===t.alternate&&(t.flags|=67108866),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=qr(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===y?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===C&&ro(o)===t.type)?(co(t=i(t,n.props),n),t.return=e,t):(co(t=Br(n.type,n.key,n.props,null,e.mode,r),n),t.return=e,t)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Gr(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=$r(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function p(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t||"bigint"==typeof t)return(t=qr(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case m:return co(n=Br(t.type,t.key,t.props,null,e.mode,n),t),n.return=e,n;case g:return(t=Gr(t,e.mode,n)).return=e,t;case C:return p(e,t=ro(t),n)}if(O(t)||A(t))return(t=$r(t,e.mode,n,null)).return=e,t;if("function"==typeof t.then)return p(e,uo(t),n);if(t.$$typeof===T)return p(e,Oi(e,t),n);po(e,t)}return null}function f(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n||"bigint"==typeof n)return null!==i?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case m:return n.key===i?u(e,t,n,r):null;case g:return n.key===i?c(e,t,n,r):null;case C:return f(e,t,n=ro(n),r)}if(O(n)||A(n))return null!==i?null:d(e,t,n,r,null);if("function"==typeof n.then)return f(e,t,uo(n),r);if(n.$$typeof===T)return f(e,t,Oi(e,n),r);po(e,n)}return null}function h(e,t,n,r,i){if("string"==typeof r&&""!==r||"number"==typeof r||"bigint"==typeof r)return l(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case m:return u(t,e=e.get(null===r.key?n:r.key)||null,r,i);case g:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i);case C:return h(e,t,n,r=ro(r),i)}if(O(r)||A(r))return d(t,e=e.get(n)||null,r,i,null);if("function"==typeof r.then)return h(e,t,n,uo(r),i);if(r.$$typeof===T)return h(e,t,n,Oi(t,r),i);po(t,r)}return null}function v(l,u,c,d){if("object"==typeof c&&null!==c&&c.type===y&&null===c.key&&(c=c.props.children),"object"==typeof c&&null!==c){switch(c.$$typeof){case m:e:{for(var b=c.key;null!==u;){if(u.key===b){if((b=c.type)===y){if(7===u.tag){n(l,u.sibling),(d=i(u,c.props.children)).return=l,l=d;break e}}else if(u.elementType===b||"object"==typeof b&&null!==b&&b.$$typeof===C&&ro(b)===u.type){n(l,u.sibling),co(d=i(u,c.props),c),d.return=l,l=d;break e}n(l,u);break}t(l,u),u=u.sibling}c.type===y?((d=$r(c.props.children,l.mode,d,c.key)).return=l,l=d):(co(d=Br(c.type,c.key,c.props,null,l.mode,d),c),d.return=l,l=d)}return a(l);case g:e:{for(b=c.key;null!==u;){if(u.key===b){if(4===u.tag&&u.stateNode.containerInfo===c.containerInfo&&u.stateNode.implementation===c.implementation){n(l,u.sibling),(d=i(u,c.children||[])).return=l,l=d;break e}n(l,u);break}t(l,u),u=u.sibling}(d=Gr(c,l.mode,d)).return=l,l=d}return a(l);case C:return v(l,u,c=ro(c),d)}if(O(c))return function(i,s,a,l){for(var u=null,c=null,d=s,m=s=0,g=null;null!==d&&m<a.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var y=f(i,d,a[m],l);if(null===y){null===d&&(d=g);break}e&&d&&null===y.alternate&&t(i,d),s=o(y,s,m),null===c?u=y:c.sibling=y,c=y,d=g}if(m===a.length)return n(i,d),di&&ii(i,m),u;if(null===d){for(;m<a.length;m++)null!==(d=p(i,a[m],l))&&(s=o(d,s,m),null===c?u=d:c.sibling=d,c=d);return di&&ii(i,m),u}for(d=r(d);m<a.length;m++)null!==(g=h(d,i,m,a[m],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),s=o(g,s,m),null===c?u=g:c.sibling=g,c=g);return e&&d.forEach(function(e){return t(i,e)}),di&&ii(i,m),u}(l,u,c,d);if(A(c)){if("function"!=typeof(b=A(c)))throw Error(s(150));return function(i,a,l,u){if(null==l)throw Error(s(151));for(var c=null,d=null,m=a,g=a=0,y=null,v=l.next();null!==m&&!v.done;g++,v=l.next()){m.index>g?(y=m,m=null):y=m.sibling;var b=f(i,m,v.value,u);if(null===b){null===m&&(m=y);break}e&&m&&null===b.alternate&&t(i,m),a=o(b,a,g),null===d?c=b:d.sibling=b,d=b,m=y}if(v.done)return n(i,m),di&&ii(i,g),c;if(null===m){for(;!v.done;g++,v=l.next())null!==(v=p(i,v.value,u))&&(a=o(v,a,g),null===d?c=v:d.sibling=v,d=v);return di&&ii(i,g),c}for(m=r(m);!v.done;g++,v=l.next())null!==(v=h(m,i,g,v.value,u))&&(e&&null!==v.alternate&&m.delete(null===v.key?g:v.key),a=o(v,a,g),null===d?c=v:d.sibling=v,d=v);return e&&m.forEach(function(e){return t(i,e)}),di&&ii(i,g),c}(l,u,c=b.call(c),d)}if("function"==typeof c.then)return v(l,u,uo(c),d);if(c.$$typeof===T)return v(l,u,Oi(l,c),d);po(l,c)}return"string"==typeof c&&""!==c||"number"==typeof c||"bigint"==typeof c?(c=""+c,null!==u&&6===u.tag?(n(l,u.sibling),(d=i(u,c)).return=l,l=d):(n(l,u),(d=qr(c,l.mode,d)).return=l,l=d),a(l)):n(l,u)}return function(e,t,n,r){try{lo=0;var i=v(e,t,n,r);return ao=null,i}catch(t){if(t===Xi||t===Zi)throw t;var o=jr(29,t,null,e.mode);return o.lanes=r,o.return=e,o}}}var ho=fo(!0),mo=fo(!1),go=!1;function yo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function vo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function bo(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Eo(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&fu){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Fr(e),Rr(e,null,n),t}return Lr(e,r,t,n),Fr(e)}function To(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194048&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Re(e,n)}}function wo(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 s={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};null===o?i=o=s:o=o.next=s,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,callbacks:r.callbacks},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var ko=!1;function So(){if(ko&&null!==qi)throw qi}function xo(e,t,n,r){ko=!1;var i=e.updateQueue;go=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,a=i.shared.pending;if(null!==a){i.shared.pending=null;var l=a,u=l.next;l.next=null,null===s?o=u:s.next=u,s=l;var c=e.alternate;null!==c&&(a=(c=c.updateQueue).lastBaseUpdate)!==s&&(null===a?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l)}if(null!==o){var d=i.baseState;for(s=0,c=u=l=null,a=o;;){var p=-536870913&a.lane,h=p!==a.lane;if(h?(gu&p)===p:(r&p)===p){0!==p&&p===$i&&(ko=!0),null!==c&&(c=c.next={lane:0,tag:a.tag,payload:a.payload,callback:null,next:null});e:{var m=e,g=a;p=t;var y=n;switch(g.tag){case 1:if("function"==typeof(m=g.payload)){d=m.call(y,d,p);break e}d=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null==(p="function"==typeof(m=g.payload)?m.call(y,d,p):m))break e;d=f({},d,p);break e;case 2:go=!0}}null!==(p=a.callback)&&(e.flags|=64,h&&(e.flags|=8192),null===(h=i.callbacks)?i.callbacks=[p]:h.push(p))}else h={lane:p,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===c?(u=c=h,l=d):c=c.next=h,s|=p;if(null===(a=a.next)){if(null===(a=i.shared.pending))break;a=(h=a).next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}null===c&&(l=d),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,null===o&&(i.shared.lanes=0),Su|=s,e.lanes=s,e.memoizedState=d}}function Co(e,t){if("function"!=typeof e)throw Error(s(191,e));e.call(t)}function _o(e,t){var n=e.callbacks;if(null!==n)for(e.callbacks=null,e=0;e<n.length;e++)Co(n[e],t)}var No=V(null),Do=V(0);function Ao(e,t){U(Do,e=wu),U(No,t),wu=e|t.baseLanes}function Lo(){U(Do,wu),U(No,No.current)}function Io(){wu=Do.current,K(No),K(Do)}var Oo=V(null),Ro=null;function Fo(e){var t=e.alternate;U(Ko,1&Ko.current),U(Oo,e),null===Ro&&(null===t||null!==No.current||null!==t.memoizedState)&&(Ro=e)}function Po(e){U(Ko,Ko.current),U(Oo,e),null===Ro&&(Ro=e)}function Mo(e){22===e.tag?(U(Ko,Ko.current),U(Oo,e),null===Ro&&(Ro=e)):jo()}function jo(){U(Ko,Ko.current),U(Oo,Oo.current)}function Vo(e){K(Oo),Ro===e&&(Ro=null),K(Ko)}var Ko=V(0);function Uo(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||Ld(n)||Id(n)))return t}else if(19!==t.tag||"forwards"!==t.memoizedProps.revealOrder&&"backwards"!==t.memoizedProps.revealOrder&&"unstable_legacy-backwards"!==t.memoizedProps.revealOrder&&"together"!==t.memoizedProps.revealOrder){if(null!==t.child){t.child.return=t,t=t.child;continue}}else if(128&t.flags)return t;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 Bo=0,$o=null,qo=null,zo=null,Go=!1,Qo=!1,Ho=!1,Wo=0,Yo=0,Xo=null,Jo=0;function Zo(){throw Error(s(321))}function es(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Jn(e[n],t[n]))return!1;return!0}function ts(e,t,n,r,i,o){return Bo=o,$o=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,R.H=null===e||null===e.memoizedState?ga:ya,Ho=!1,o=n(r,i),Ho=!1,Qo&&(o=rs(t,n,r,i)),ns(e),o}function ns(e){R.H=ma;var t=null!==qo&&null!==qo.next;if(Bo=0,zo=qo=$o=null,Go=!1,Yo=0,Xo=null,t)throw Error(s(300));null===e||Oa||null!==(e=e.dependencies)&&Ai(e)&&(Oa=!0)}function rs(e,t,n,r){$o=e;var i=0;do{if(Qo&&(Xo=null),Yo=0,Qo=!1,25<=i)throw Error(s(301));if(i+=1,zo=qo=null,null!=e.updateQueue){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,null!=o.memoCache&&(o.memoCache.index=0)}R.H=va,o=t(n,r)}while(Qo);return o}function is(){var e=R.H,t=e.useState()[0];return t="function"==typeof t.then?cs(t):t,e=e.useState()[0],(null!==qo?qo.memoizedState:null)!==e&&($o.flags|=1024),t}function os(){var e=0!==Wo;return Wo=0,e}function ss(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function as(e){if(Go){for(e=e.memoizedState;null!==e;){var t=e.queue;null!==t&&(t.pending=null),e=e.next}Go=!1}Bo=0,zo=qo=$o=null,Qo=!1,Yo=Wo=0,Xo=null}function ls(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===zo?$o.memoizedState=zo=e:zo=zo.next=e,zo}function us(){if(null===qo){var e=$o.alternate;e=null!==e?e.memoizedState:null}else e=qo.next;var t=null===zo?$o.memoizedState:zo.next;if(null!==t)zo=t,qo=e;else{if(null===e){if(null===$o.alternate)throw Error(s(467));throw Error(s(310))}e={memoizedState:(qo=e).memoizedState,baseState:qo.baseState,baseQueue:qo.baseQueue,queue:qo.queue,next:null},null===zo?$o.memoizedState=zo=e:zo=zo.next=e}return zo}function cs(e){var t=Yo;return Yo+=1,null===Xo&&(Xo=[]),e=no(Xo,e,t),t=$o,null===(null===zo?t.memoizedState:zo.next)&&(t=t.alternate,R.H=null===t||null===t.memoizedState?ga:ya),e}function ds(e){if(null!==e&&"object"==typeof e){if("function"==typeof e.then)return cs(e);if(e.$$typeof===T)return Ii(e)}throw Error(s(438,String(e)))}function ps(e){var t=null,n=$o.updateQueue;if(null!==n&&(t=n.memoCache),null==t){var r=$o.alternate;null!==r&&null!==(r=r.updateQueue)&&null!=(r=r.memoCache)&&(t={data:r.data.map(function(e){return e.slice()}),index:0})}if(null==t&&(t={data:[],index:0}),null===n&&(n={lastEffect:null,events:null,stores:null,memoCache:null},$o.updateQueue=n),n.memoCache=t,void 0===(n=t.data[t.index]))for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=N;return t.index++,n}function fs(e,t){return"function"==typeof t?t(e):t}function hs(e){return ms(us(),qo,e)}function ms(e,t,n){var r=e.queue;if(null===r)throw Error(s(311));r.lastRenderedReducer=n;var i=e.baseQueue,o=r.pending;if(null!==o){if(null!==i){var a=i.next;i.next=o.next,o.next=a}t.baseQueue=i=o,r.pending=null}if(o=e.baseState,null===i)e.memoizedState=o;else{var l=a=null,u=null,c=t=i.next,d=!1;do{var p=-536870913&c.lane;if(p!==c.lane?(gu&p)===p:(Bo&p)===p){var f=c.revertLane;if(0===f)null!==u&&(u=u.next={lane:0,revertLane:0,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),p===$i&&(d=!0);else{if((Bo&f)===f){c=c.next,f===$i&&(d=!0);continue}p={lane:0,revertLane:c.revertLane,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},null===u?(l=u=p,a=o):u=u.next=p,$o.lanes|=f,Su|=f}p=c.action,Ho&&n(o,p),o=c.hasEagerState?c.eagerState:n(o,p)}else f={lane:p,revertLane:c.revertLane,gesture:c.gesture,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},null===u?(l=u=f,a=o):u=u.next=f,$o.lanes|=p,Su|=p;c=c.next}while(null!==c&&c!==t);if(null===u?a=o:u.next=l,!Jn(o,e.memoizedState)&&(Oa=!0,d&&null!==(n=qi)))throw n;e.memoizedState=o,e.baseState=a,e.baseQueue=u,r.lastRenderedState=o}return null===i&&(r.lanes=0),[e.memoizedState,r.dispatch]}function gs(e){var t=us(),n=t.queue;if(null===n)throw Error(s(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var a=i=i.next;do{o=e(o,a.action),a=a.next}while(a!==i);Jn(o,t.memoizedState)||(Oa=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function ys(e,t,n){var r=$o,i=us(),o=di;if(o){if(void 0===n)throw Error(s(407));n=n()}else n=t();var a=!Jn((qo||i).memoizedState,n);if(a&&(i.memoizedState=n,Oa=!0),i=i.queue,Bs(Es.bind(null,r,i,e),[e]),i.getSnapshot!==t||a||null!==zo&&1&zo.memoizedState.tag){if(r.flags|=2048,Ms(9,{destroy:void 0},bs.bind(null,r,i,n,t),null),null===hu)throw Error(s(349));o||127&Bo||vs(r,t,n)}return n}function vs(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=$o.updateQueue)?(t={lastEffect:null,events:null,stores:null,memoCache:null},$o.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function bs(e,t,n,r){t.value=n,t.getSnapshot=r,Ts(t)&&ws(e)}function Es(e,t,n){return n(function(){Ts(t)&&ws(e)})}function Ts(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Jn(e,n)}catch(e){return!0}}function ws(e){var t=Or(e,2);null!==t&&Hu(t,0,2)}function ks(e){var t=ls();if("function"==typeof e){var n=e;if(e=n(),Ho){be(!0);try{n()}finally{be(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:fs,lastRenderedState:e},t}function Ss(e,t,n,r){return e.baseState=n,ms(e,qo,"function"==typeof r?r:fs)}function xs(e,t,n,r,i){if(pa(e))throw Error(s(485));if(null!==(e=t.action)){var o={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};null!==R.T?n(!0):o.isTransition=!1,r(o),null===(n=t.pending)?(o.next=t.pending=o,Cs(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Cs(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var o=R.T,s={};R.T=s;try{var a=n(i,r),l=R.S;null!==l&&l(s,a),_s(e,t,a)}catch(n){Ds(e,t,n)}finally{null!==o&&null!==s.types&&(o.types=s.types),R.T=o}}else try{_s(e,t,o=n(i,r))}catch(n){Ds(e,t,n)}}function _s(e,t,n){null!==n&&"object"==typeof n&&"function"==typeof n.then?n.then(function(n){Ns(e,t,n)},function(n){return Ds(e,t,n)}):Ns(e,t,n)}function Ns(e,t,n){t.status="fulfilled",t.value=n,As(t),e.state=n,null!==(t=e.pending)&&((n=t.next)===t?e.pending=null:(n=n.next,t.next=n,Cs(e,n)))}function Ds(e,t,n){var r=e.pending;if(e.pending=null,null!==r){r=r.next;do{t.status="rejected",t.reason=n,As(t),t=t.next}while(t!==r)}e.action=null}function As(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Ls(e,t){return t}function Is(e,t){if(di){var n=hu.formState;if(null!==n){e:{var r=$o;if(di){if(ci){t:{for(var i=ci,o=fi;8!==i.nodeType;){if(!o){i=null;break t}if(null===(i=Od(i.nextSibling))){i=null;break t}}i="F!"===(o=i.data)||"F"===o?i:null}if(i){ci=Od(i.nextSibling),r="F!"===i.data;break e}}mi(r)}r=!1}r&&(t=n[0])}}return(n=ls()).memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ls,lastRenderedState:t},n.queue=r,n=ua.bind(null,$o,r),r.dispatch=n,r=ks(!1),o=da.bind(null,$o,!1,r.queue),i={state:t,dispatch:null,action:e,pending:null},(r=ls()).queue=i,n=xs.bind(null,$o,i,o,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function Os(e){return Rs(us(),qo,e)}function Rs(e,t,n){if(t=ms(e,t,Ls)[0],e=hs(fs)[0],"object"==typeof t&&null!==t&&"function"==typeof t.then)try{var r=cs(t)}catch(e){if(e===Xi)throw Zi;throw e}else r=t;var i=(t=us()).queue,o=i.dispatch;return n!==t.memoizedState&&($o.flags|=2048,Ms(9,{destroy:void 0},Fs.bind(null,i,n),null)),[r,o,e]}function Fs(e,t){e.action=t}function Ps(e){var t=us(),n=qo;if(null!==n)return Rs(t,n,e);us(),t=t.memoizedState;var r=(n=us()).queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Ms(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},null===(t=$o.updateQueue)&&(t={lastEffect:null,events:null,stores:null,memoCache:null},$o.updateQueue=t),null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function js(){return us().memoizedState}function Vs(e,t,n,r){var i=ls();$o.flags|=e,i.memoizedState=Ms(1|t,{destroy:void 0},n,void 0===r?null:r)}function Ks(e,t,n,r){var i=us();r=void 0===r?null:r;var o=i.memoizedState.inst;null!==qo&&null!==r&&es(r,qo.memoizedState.deps)?i.memoizedState=Ms(t,o,n,r):($o.flags|=e,i.memoizedState=Ms(1|t,o,n,r))}function Us(e,t){Vs(8390656,8,e,t)}function Bs(e,t){Ks(2048,8,e,t)}function $s(e){var t=us().memoizedState;return function(e){$o.flags|=4;var t=$o.updateQueue;if(null===t)t={lastEffect:null,events:null,stores:null,memoCache:null},$o.updateQueue=t,t.events=[e];else{var n=t.events;null===n?t.events=[e]:n.push(e)}}({ref:t,nextImpl:e}),function(){if(2&fu)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function qs(e,t){return Ks(4,2,e,t)}function zs(e,t){return Ks(4,4,e,t)}function Gs(e,t){if("function"==typeof t){e=e();var n=t(e);return function(){"function"==typeof n?n():t(null)}}if(null!=t)return e=e(),t.current=e,function(){t.current=null}}function Qs(e,t,n){n=null!=n?n.concat([e]):null,Ks(4,4,Gs.bind(null,t,e),n)}function Hs(){}function Ws(e,t){var n=us();t=void 0===t?null:t;var r=n.memoizedState;return null!==t&&es(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ys(e,t){var n=us();t=void 0===t?null:t;var r=n.memoizedState;if(null!==t&&es(t,r[1]))return r[0];if(r=e(),Ho){be(!0);try{e()}finally{be(!1)}}return n.memoizedState=[r,t],r}function Xs(e,t,n){return void 0===n||1073741824&Bo&&!(261930&gu)?e.memoizedState=t:(e.memoizedState=n,e=Qu(),$o.lanes|=e,Su|=e,n)}function Js(e,t,n,r){return Jn(n,t)?n:null!==No.current?(e=Xs(e,n,r),Jn(e,t)||(Oa=!0),e):42&Bo&&(!(1073741824&Bo)||261930&gu)?(e=Qu(),$o.lanes|=e,Su|=e,t):(Oa=!0,e.memoizedState=n)}function Zs(e,t,n,r,i){var o=F.p;F.p=0!==o&&8>o?o:8;var s,a,l,u=R.T,c={};R.T=c,da(e,!1,t,n);try{var d=i(),p=R.S;if(null!==p&&p(c,d),null!==d&&"object"==typeof d&&"function"==typeof d.then){var f=(s=r,a=[],l={status:"pending",value:null,reason:null,then:function(e){a.push(e)}},d.then(function(){l.status="fulfilled",l.value=s;for(var e=0;e<a.length;e++)(0,a[e])(s)},function(e){for(l.status="rejected",l.reason=e,e=0;e<a.length;e++)(0,a[e])(void 0)}),l);ca(e,t,f,Gu())}else ca(e,t,r,Gu())}catch(n){ca(e,t,{then:function(){},status:"rejected",reason:n},Gu())}finally{F.p=o,null!==u&&null!==c.types&&(u.types=c.types),R.T=u}}function ea(){}function ta(e,t,n,r){if(5!==e.tag)throw Error(s(476));var i=na(e).queue;Zs(e,i,t,P,null===n?ea:function(){return ra(e),n(r)})}function na(e){var t=e.memoizedState;if(null!==t)return t;var n={};return(t={memoizedState:P,baseState:P,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fs,lastRenderedState:P},next:null}).next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fs,lastRenderedState:n},next:null},e.memoizedState=t,null!==(e=e.alternate)&&(e.memoizedState=t),t}function ra(e){var t=na(e);null===t.next&&(t=e.alternate.memoizedState),ca(e,t.next.queue,{},Gu())}function ia(){return Ii(cp)}function oa(){return us().memoizedState}function sa(){return us().memoizedState}function aa(e){for(var t=e.return;null!==t;){switch(t.tag){case 24:case 3:var n=Gu(),r=Eo(t,e=bo(n),n);return null!==r&&(Hu(r,0,n),To(r,t,n)),t={cache:Vi()},void(e.payload=t)}t=t.return}}function la(e,t,n){var r=Gu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},pa(e)?fa(t,n):null!==(n=Ir(e,t,n,r))&&(Hu(n,0,r),ha(n,t,r))}function ua(e,t,n){ca(e,t,n,Gu())}function ca(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(pa(e))fa(t,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var s=t.lastRenderedState,a=o(s,n);if(i.hasEagerState=!0,i.eagerState=a,Jn(a,s))return Lr(e,t,i,0),null===hu&&Ar(),!1}catch(e){}if(null!==(n=Ir(e,t,i,r)))return Hu(n,0,r),ha(n,t,r),!0}return!1}function da(e,t,n,r){if(r={lane:2,revertLane:Bc(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},pa(e)){if(t)throw Error(s(479))}else null!==(t=Ir(e,n,r,2))&&Hu(t,0,2)}function pa(e){var t=e.alternate;return e===$o||null!==t&&t===$o}function fa(e,t){Qo=Go=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ha(e,t,n){if(4194048&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Re(e,n)}}var ma={readContext:Ii,use:ds,useCallback:Zo,useContext:Zo,useEffect:Zo,useImperativeHandle:Zo,useLayoutEffect:Zo,useInsertionEffect:Zo,useMemo:Zo,useReducer:Zo,useRef:Zo,useState:Zo,useDebugValue:Zo,useDeferredValue:Zo,useTransition:Zo,useSyncExternalStore:Zo,useId:Zo,useHostTransitionStatus:Zo,useFormState:Zo,useActionState:Zo,useOptimistic:Zo,useMemoCache:Zo,useCacheRefresh:Zo};ma.useEffectEvent=Zo;var ga={readContext:Ii,use:ds,useCallback:function(e,t){return ls().memoizedState=[e,void 0===t?null:t],e},useContext:Ii,useEffect:Us,useImperativeHandle:function(e,t,n){n=null!=n?n.concat([e]):null,Vs(4194308,4,Gs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Vs(4194308,4,e,t)},useInsertionEffect:function(e,t){Vs(4,2,e,t)},useMemo:function(e,t){var n=ls();t=void 0===t?null:t;var r=e();if(Ho){be(!0);try{e()}finally{be(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=ls();if(void 0!==n){var i=n(t);if(Ho){be(!0);try{n(t)}finally{be(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=la.bind(null,$o,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ls().memoizedState=e},useState:function(e){var t=(e=ks(e)).queue,n=ua.bind(null,$o,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Hs,useDeferredValue:function(e,t){return Xs(ls(),e,t)},useTransition:function(){var e=ks(!1);return e=Zs.bind(null,$o,e.queue,!0,!1),ls().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=$o,i=ls();if(di){if(void 0===n)throw Error(s(407));n=n()}else{if(n=t(),null===hu)throw Error(s(349));127&gu||vs(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,Us(Es.bind(null,r,o,e),[e]),r.flags|=2048,Ms(9,{destroy:void 0},bs.bind(null,r,o,n,t),null),n},useId:function(){var e=ls(),t=hu.identifierPrefix;if(di){var n=ri;t="_"+t+"R_"+(n=(ni&~(1<<32-Ee(ni)-1)).toString(32)+n),0<(n=Wo++)&&(t+="H"+n.toString(32)),t+="_"}else t="_"+t+"r_"+(n=Jo++).toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:ia,useFormState:Is,useActionState:Is,useOptimistic:function(e){var t=ls();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=da.bind(null,$o,!0,n),n.dispatch=t,[e,t]},useMemoCache:ps,useCacheRefresh:function(){return ls().memoizedState=aa.bind(null,$o)},useEffectEvent:function(e){var t=ls(),n={impl:e};return t.memoizedState=n,function(){if(2&fu)throw Error(s(440));return n.impl.apply(void 0,arguments)}}},ya={readContext:Ii,use:ds,useCallback:Ws,useContext:Ii,useEffect:Bs,useImperativeHandle:Qs,useInsertionEffect:qs,useLayoutEffect:zs,useMemo:Ys,useReducer:hs,useRef:js,useState:function(){return hs(fs)},useDebugValue:Hs,useDeferredValue:function(e,t){return Js(us(),qo.memoizedState,e,t)},useTransition:function(){var e=hs(fs)[0],t=us().memoizedState;return["boolean"==typeof e?e:cs(e),t]},useSyncExternalStore:ys,useId:oa,useHostTransitionStatus:ia,useFormState:Os,useActionState:Os,useOptimistic:function(e,t){return Ss(us(),0,e,t)},useMemoCache:ps,useCacheRefresh:sa};ya.useEffectEvent=$s;var va={readContext:Ii,use:ds,useCallback:Ws,useContext:Ii,useEffect:Bs,useImperativeHandle:Qs,useInsertionEffect:qs,useLayoutEffect:zs,useMemo:Ys,useReducer:gs,useRef:js,useState:function(){return gs(fs)},useDebugValue:Hs,useDeferredValue:function(e,t){var n=us();return null===qo?Xs(n,e,t):Js(n,qo.memoizedState,e,t)},useTransition:function(){var e=gs(fs)[0],t=us().memoizedState;return["boolean"==typeof e?e:cs(e),t]},useSyncExternalStore:ys,useId:oa,useHostTransitionStatus:ia,useFormState:Ps,useActionState:Ps,useOptimistic:function(e,t){var n=us();return null!==qo?Ss(n,0,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:ps,useCacheRefresh:sa};function ba(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:f({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}va.useEffectEvent=$s;var Ea={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Gu(),i=bo(r);i.payload=t,null!=n&&(i.callback=n),null!==(t=Eo(e,i,r))&&(Hu(t,0,r),To(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Gu(),i=bo(r);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=Eo(e,i,r))&&(Hu(t,0,r),To(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Gu(),r=bo(n);r.tag=2,null!=t&&(r.callback=t),null!==(t=Eo(e,r,n))&&(Hu(t,0,n),To(t,e,n))}};function Ta(e,t,n,r,i,o,s){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,s):!(t.prototype&&t.prototype.isPureReactComponent&&Zn(n,r)&&Zn(i,o))}function wa(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&&Ea.enqueueReplaceState(t,t.state,null)}function ka(e,t){var n=t;if("ref"in t)for(var r in n={},t)"ref"!==r&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=f({},n)),e)void 0===n[i]&&(n[i]=e[i]);return n}function Sa(e){Cr(e)}function xa(e){console.error(e)}function Ca(e){Cr(e)}function _a(e,t){try{(0,e.onUncaughtError)(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Na(e,t,n){try{(0,e.onCaughtError)(n.value,{componentStack:n.stack,errorBoundary:1===t.tag?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function Da(e,t,n){return(n=bo(n)).tag=3,n.payload={element:null},n.callback=function(){_a(e,t)},n}function Aa(e){return(e=bo(e)).tag=3,e}function La(e,t,n,r){var i=n.type.getDerivedStateFromError;if("function"==typeof i){var o=r.value;e.payload=function(){return i(o)},e.callback=function(){Na(t,n,r)}}var s=n.stateNode;null!==s&&"function"==typeof s.componentDidCatch&&(e.callback=function(){Na(t,n,r),"function"!=typeof i&&(null===Pu?Pu=new Set([this]):Pu.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:null!==e?e:""})})}var Ia=Error(s(461)),Oa=!1;function Ra(e,t,n,r){t.child=null===e?mo(t,null,n,r):ho(t,e.child,n,r)}function Fa(e,t,n,r,i){n=n.render;var o=t.ref;if("ref"in r){var s={};for(var a in r)"ref"!==a&&(s[a]=r[a])}else s=r;return Li(t),r=ts(e,t,n,s,o,i),a=os(),null===e||Oa?(di&&a&&si(t),t.flags|=1,Ra(e,t,r,i),t.child):(ss(e,t,i),il(e,t,i))}function Pa(e,t,n,r,i){if(null===e){var o=n.type;return"function"!=typeof o||Vr(o)||void 0!==o.defaultProps||null!==n.compare?((e=Br(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Ma(e,t,o,r,i))}if(o=e.child,!ol(e,i)){var s=o.memoizedProps;if((n=null!==(n=n.compare)?n:Zn)(s,r)&&e.ref===t.ref)return il(e,t,i)}return t.flags|=1,(e=Kr(o,r)).ref=t.ref,e.return=t,t.child=e}function Ma(e,t,n,r,i){if(null!==e){var o=e.memoizedProps;if(Zn(o,r)&&e.ref===t.ref){if(Oa=!1,t.pendingProps=r=o,!ol(e,i))return t.lanes=e.lanes,il(e,t,i);131072&e.flags&&(Oa=!0)}}return qa(e,t,n,r,i)}function ja(e,t,n,r){var i=r.children,o=null!==e?e.memoizedState:null;if(null===e&&null===t.stateNode&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),"hidden"===r.mode){if(128&t.flags){if(o=null!==o?o.baseLanes|n:n,null!==e){for(r=t.child=e.child,i=0;null!==r;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~o}else r=0,t.child=null;return Ka(e,t,o,n,r)}if(!(536870912&n))return r=t.lanes=536870912,Ka(e,t,null!==o?o.baseLanes|n:n,n,r);t.memoizedState={baseLanes:0,cachePool:null},null!==e&&Wi(0,null!==o?o.cachePool:null),null!==o?Ao(t,o):Lo(),Mo(t)}else null!==o?(Wi(0,o.cachePool),Ao(t,o),jo(),t.memoizedState=null):(null!==e&&Wi(0,null),Lo(),jo());return Ra(e,t,i,n),t.child}function Va(e,t){return null!==e&&22===e.tag||null!==t.stateNode||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Ka(e,t,n,r,i){var o=Hi();return o=null===o?null:{parent:ji._currentValue,pool:o},t.memoizedState={baseLanes:n,cachePool:o},null!==e&&Wi(0,null),Lo(),Mo(t),null!==e&&Di(e,t,r,!0),t.childLanes=i,null}function Ua(e,t){return(t=Za({mode:t.mode,children:t.children},e.mode)).ref=e.ref,e.child=t,t.return=e,t}function Ba(e,t,n){return ho(t,e.child,null,n),(e=Ua(t,t.pendingProps)).flags|=2,Vo(t),t.memoizedState=null,e}function $a(e,t){var n=t.ref;if(null===n)null!==e&&null!==e.ref&&(t.flags|=4194816);else{if("function"!=typeof n&&"object"!=typeof n)throw Error(s(284));null!==e&&e.ref===n||(t.flags|=4194816)}}function qa(e,t,n,r,i){return Li(t),n=ts(e,t,n,r,void 0,i),r=os(),null===e||Oa?(di&&r&&si(t),t.flags|=1,Ra(e,t,n,i),t.child):(ss(e,t,i),il(e,t,i))}function za(e,t,n,r,i,o){return Li(t),t.updateQueue=null,n=rs(t,r,n,i),ns(e),r=os(),null===e||Oa?(di&&r&&si(t),t.flags|=1,Ra(e,t,n,o),t.child):(ss(e,t,o),il(e,t,o))}function Ga(e,t,n,r,i){if(Li(t),null===t.stateNode){var o=Pr,s=n.contextType;"object"==typeof s&&null!==s&&(o=Ii(s)),o=new n(r,o),t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,o.updater=Ea,t.stateNode=o,o._reactInternals=t,(o=t.stateNode).props=r,o.state=t.memoizedState,o.refs={},yo(t),s=n.contextType,o.context="object"==typeof s&&null!==s?Ii(s):Pr,o.state=t.memoizedState,"function"==typeof(s=n.getDerivedStateFromProps)&&(ba(t,n,s,r),o.state=t.memoizedState),"function"==typeof n.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(s=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),s!==o.state&&Ea.enqueueReplaceState(o,o.state,null),xo(t,r,o,i),So(),o.state=t.memoizedState),"function"==typeof o.componentDidMount&&(t.flags|=4194308),r=!0}else if(null===e){o=t.stateNode;var a=t.memoizedProps,l=ka(n,a);o.props=l;var u=o.context,c=n.contextType;s=Pr,"object"==typeof c&&null!==c&&(s=Ii(c));var d=n.getDerivedStateFromProps;c="function"==typeof d||"function"==typeof o.getSnapshotBeforeUpdate,a=t.pendingProps!==a,c||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(a||u!==s)&&wa(t,o,r,s),go=!1;var p=t.memoizedState;o.state=p,xo(t,r,o,i),So(),u=t.memoizedState,a||p!==u||go?("function"==typeof d&&(ba(t,n,d,r),u=t.memoizedState),(l=go||Ta(t,n,l,r,p,u,s))?(c||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||("function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"==typeof o.componentDidMount&&(t.flags|=4194308)):("function"==typeof o.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),o.props=r,o.state=u,o.context=s,r=l):("function"==typeof o.componentDidMount&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,vo(e,t),c=ka(n,s=t.memoizedProps),o.props=c,d=t.pendingProps,p=o.context,u=n.contextType,l=Pr,"object"==typeof u&&null!==u&&(l=Ii(u)),(u="function"==typeof(a=n.getDerivedStateFromProps)||"function"==typeof o.getSnapshotBeforeUpdate)||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(s!==d||p!==l)&&wa(t,o,r,l),go=!1,p=t.memoizedState,o.state=p,xo(t,r,o,i),So();var f=t.memoizedState;s!==d||p!==f||go||null!==e&&null!==e.dependencies&&Ai(e.dependencies)?("function"==typeof a&&(ba(t,n,a,r),f=t.memoizedState),(c=go||Ta(t,n,c,r,p,f,l)||null!==e&&null!==e.dependencies&&Ai(e.dependencies))?(u||"function"!=typeof o.UNSAFE_componentWillUpdate&&"function"!=typeof o.componentWillUpdate||("function"==typeof o.componentWillUpdate&&o.componentWillUpdate(r,f,l),"function"==typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,f,l)),"function"==typeof o.componentDidUpdate&&(t.flags|=4),"function"==typeof o.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof o.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=f),o.props=r,o.state=f,o.context=l,r=c):("function"!=typeof o.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return o=r,$a(e,t),r=!!(128&t.flags),o||r?(o=t.stateNode,n=r&&"function"!=typeof n.getDerivedStateFromError?null:o.render(),t.flags|=1,null!==e&&r?(t.child=ho(t,e.child,null,i),t.child=ho(t,null,n,i)):Ra(e,t,n,i),t.memoizedState=o.state,e=t.child):e=il(e,t,i),e}function Qa(e,t,n,r){return bi(),t.flags|=256,Ra(e,t,n,r),t.child}var Ha={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Wa(e){return{baseLanes:e,cachePool:Yi()}}function Ya(e,t,n){return e=null!==e?e.childLanes&~n:0,t&&(e|=_u),e}function Xa(e,t,n){var r,i=t.pendingProps,o=!1,a=!!(128&t.flags);if((r=a)||(r=(null===e||null!==e.memoizedState)&&!!(2&Ko.current)),r&&(o=!0,t.flags&=-129),r=!!(32&t.flags),t.flags&=-33,null===e){if(di){if(o?Fo(t):jo(),(e=ci)?null!==(e=null!==(e=Ad(e,fi))&&"&"!==e.data?e:null)&&(t.memoizedState={dehydrated:e,treeContext:null!==ti?{id:ni,overflow:ri}:null,retryLane:536870912,hydrationErrors:null},(n=zr(e)).return=t,t.child=n,ui=t,ci=null):e=null,null===e)throw mi(t);return Id(e)?t.lanes=32:t.lanes=536870912,null}var l=i.children;return i=i.fallback,o?(jo(),l=Za({mode:"hidden",children:l},o=t.mode),i=$r(i,o,n,null),l.return=t,i.return=t,l.sibling=i,t.child=l,(i=t.child).memoizedState=Wa(n),i.childLanes=Ya(e,r,n),t.memoizedState=Ha,Va(null,i)):(Fo(t),Ja(t,l))}var u=e.memoizedState;if(null!==u&&null!==(l=u.dehydrated)){if(a)256&t.flags?(Fo(t),t.flags&=-257,t=el(e,t,n)):null!==t.memoizedState?(jo(),t.child=e.child,t.flags|=128,t=null):(jo(),l=i.fallback,o=t.mode,i=Za({mode:"visible",children:i.children},o),(l=$r(l,o,n,null)).flags|=2,i.return=t,l.return=t,i.sibling=l,t.child=i,ho(t,e.child,null,n),(i=t.child).memoizedState=Wa(n),i.childLanes=Ya(e,r,n),t.memoizedState=Ha,t=Va(null,i));else if(Fo(t),Id(l)){if(r=l.nextSibling&&l.nextSibling.dataset)var c=r.dgst;r=c,(i=Error(s(419))).stack="",i.digest=r,Ti({value:i,source:null,stack:null}),t=el(e,t,n)}else if(Oa||Di(e,t,n,!1),r=0!==(n&e.childLanes),Oa||r){if(null!==(r=hu)&&0!==(i=Fe(r,n))&&i!==u.retryLane)throw u.retryLane=i,Or(e,i),Hu(r,0,i),Ia;Ld(l)||sc(),t=el(e,t,n)}else Ld(l)?(t.flags|=192,t.child=e.child,t=null):(e=u.treeContext,ci=Od(l.nextSibling),ui=t,di=!0,pi=null,fi=!1,null!==e&&li(t,e),(t=Ja(t,i.children)).flags|=4096);return t}return o?(jo(),l=i.fallback,o=t.mode,c=(u=e.child).sibling,(i=Kr(u,{mode:"hidden",children:i.children})).subtreeFlags=65011712&u.subtreeFlags,null!==c?l=Kr(c,l):(l=$r(l,o,n,null)).flags|=2,l.return=t,i.return=t,i.sibling=l,t.child=i,Va(null,i),i=t.child,null===(l=e.child.memoizedState)?l=Wa(n):(null!==(o=l.cachePool)?(u=ji._currentValue,o=o.parent!==u?{parent:u,pool:u}:o):o=Yi(),l={baseLanes:l.baseLanes|n,cachePool:o}),i.memoizedState=l,i.childLanes=Ya(e,r,n),t.memoizedState=Ha,Va(e.child,i)):(Fo(t),e=(n=e.child).sibling,(n=Kr(n,{mode:"visible",children:i.children})).return=t,n.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n)}function Ja(e,t){return(t=Za({mode:"visible",children:t},e.mode)).return=e,e.child=t}function Za(e,t){return(e=jr(22,e,null,t)).lanes=0,e}function el(e,t,n){return ho(t,e.child,null,n),(e=Ja(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function tl(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),_i(e.return,t,n)}function nl(e,t,n,r,i,o){var s=e.memoizedState;null===s?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:o}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=i,s.treeForkCount=o)}function rl(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;r=r.children;var s=Ko.current,a=!!(2&s);if(a?(s=1&s|2,t.flags|=128):s&=1,U(Ko,s),Ra(e,t,r,n),r=di?Jr:0,!a&&null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&tl(e,n,t);else if(19===e.tag)tl(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}switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===Uo(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),nl(t,!1,i,n,o,r);break;case"backwards":case"unstable_legacy-backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===Uo(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}nl(t,!0,n,null,o,r);break;case"together":nl(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function il(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Su|=t.lanes,0===(n&t.childLanes)){if(null===e)return null;if(Di(e,t,n,!1),0===(n&t.childLanes))return null}if(null!==e&&t.child!==e.child)throw Error(s(153));if(null!==t.child){for(n=Kr(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Kr(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function ol(e,t){return 0!==(e.lanes&t)||!(null===(e=e.dependencies)||!Ai(e))}function sl(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps)Oa=!0;else{if(!(ol(e,n)||128&t.flags))return Oa=!1,function(e,t,n){switch(t.tag){case 3:H(t,t.stateNode.containerInfo),xi(0,ji,e.memoizedState.cache),bi();break;case 27:case 5:Y(t);break;case 4:H(t,t.stateNode.containerInfo);break;case 10:xi(0,t.type,t.memoizedProps.value);break;case 31:if(null!==t.memoizedState)return t.flags|=128,Po(t),null;break;case 13:var r=t.memoizedState;if(null!==r)return null!==r.dehydrated?(Fo(t),t.flags|=128,null):0!==(n&t.child.childLanes)?Xa(e,t,n):(Fo(t),null!==(e=il(e,t,n))?e.sibling:null);Fo(t);break;case 19:var i=!!(128&e.flags);if((r=0!==(n&t.childLanes))||(Di(e,t,n,!1),r=0!==(n&t.childLanes)),i){if(r)return rl(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),U(Ko,Ko.current),r)break;return null;case 22:return t.lanes=0,ja(e,t,n,t.pendingProps);case 24:xi(0,ji,e.memoizedState.cache)}return il(e,t,n)}(e,t,n);Oa=!!(131072&e.flags)}else Oa=!1,di&&1048576&t.flags&&oi(t,Jr,t.index);switch(t.lanes=0,t.tag){case 16:e:{var r=t.pendingProps;if(e=ro(t.elementType),t.type=e,"function"!=typeof e){if(null!=e){var i=e.$$typeof;if(i===w){t.tag=11,t=Fa(null,t,e,r,n);break e}if(i===x){t.tag=14,t=Pa(null,t,e,r,n);break e}}throw t=I(e)||e,Error(s(306,t,""))}Vr(e)?(r=ka(e,r),t.tag=1,t=Ga(null,t,e,r,n)):(t.tag=0,t=qa(null,t,e,r,n))}return t;case 0:return qa(e,t,t.type,t.pendingProps,n);case 1:return Ga(e,t,r=t.type,i=ka(r,t.pendingProps),n);case 3:e:{if(H(t,t.stateNode.containerInfo),null===e)throw Error(s(387));r=t.pendingProps;var o=t.memoizedState;i=o.element,vo(e,t),xo(t,r,null,n);var a=t.memoizedState;if(r=a.cache,xi(0,ji,r),r!==o.cache&&Ni(t,[ji],n,!0),So(),r=a.element,o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:a.cache},t.updateQueue.baseState=o,t.memoizedState=o,256&t.flags){t=Qa(e,t,r,n);break e}if(r!==i){Ti(i=Hr(Error(s(424)),t)),t=Qa(e,t,r,n);break e}for(e=9===(e=t.stateNode.containerInfo).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,ci=Od(e.firstChild),ui=t,di=!0,pi=null,fi=!0,n=mo(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(bi(),r===i){t=il(e,t,n);break e}Ra(e,t,r,n)}t=t.child}return t;case 26:return $a(e,t),null===e?(n=zd(t.type,null,t.pendingProps,null))?t.memoizedState=n:di||(n=t.type,e=t.pendingProps,(r=gd(G.current).createElement(n))[Ue]=t,r[Be]=e,pd(r,n,e),et(r),t.stateNode=r):t.memoizedState=zd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Y(t),null===e&&di&&(r=t.stateNode=Md(t.type,t.pendingProps,G.current),ui=t,fi=!0,i=ci,Cd(t.type)?(Rd=i,ci=Od(r.firstChild)):ci=i),Ra(e,t,t.pendingProps.children,n),$a(e,t),null===e&&(t.flags|=4194304),t.child;case 5:return null===e&&di&&((i=r=ci)&&(null!==(r=function(e,t,n,r){for(;1===e.nodeType;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&("INPUT"!==e.nodeName||"hidden"!==e.type))break}else if(r){if(!e[He])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if("stylesheet"===(o=e.getAttribute("rel"))&&e.hasAttribute("data-precedence"))break;if(o!==i.rel||e.getAttribute("href")!==(null==i.href||""===i.href?null:i.href)||e.getAttribute("crossorigin")!==(null==i.crossOrigin?null:i.crossOrigin)||e.getAttribute("title")!==(null==i.title?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(((o=e.getAttribute("src"))!==(null==i.src?null:i.src)||e.getAttribute("type")!==(null==i.type?null:i.type)||e.getAttribute("crossorigin")!==(null==i.crossOrigin?null:i.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else{if("input"!==t||"hidden"!==e.type)return e;var o=null==i.name?null:""+i.name;if("hidden"===i.type&&e.getAttribute("name")===o)return e}if(null===(e=Od(e.nextSibling)))break}return null}(r,t.type,t.pendingProps,fi))?(t.stateNode=r,ui=t,ci=Od(r.firstChild),fi=!1,i=!0):i=!1),i||mi(t)),Y(t),i=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,r=o.children,bd(i,o)?r=null:null!==a&&bd(i,a)&&(t.flags|=32),null!==t.memoizedState&&(i=ts(e,t,is,null,null,n),cp._currentValue=i),$a(e,t),Ra(e,t,r,n),t.child;case 6:return null===e&&di&&((e=n=ci)&&(null!==(n=function(e,t,n){if(""===t)return null;for(;3!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!n)return null;if(null===(e=Od(e.nextSibling)))return null}return e}(n,t.pendingProps,fi))?(t.stateNode=n,ui=t,ci=null,e=!0):e=!1),e||mi(t)),null;case 13:return Xa(e,t,n);case 4:return H(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=ho(t,null,r,n):Ra(e,t,r,n),t.child;case 11:return Fa(e,t,t.type,t.pendingProps,n);case 7:return Ra(e,t,t.pendingProps,n),t.child;case 8:case 12:return Ra(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,xi(0,t.type,r.value),Ra(e,t,r.children,n),t.child;case 9:return i=t.type._context,r=t.pendingProps.children,Li(t),r=r(i=Ii(i)),t.flags|=1,Ra(e,t,r,n),t.child;case 14:return Pa(e,t,t.type,t.pendingProps,n);case 15:return Ma(e,t,t.type,t.pendingProps,n);case 19:return rl(e,t,n);case 31:return function(e,t,n){var r=t.pendingProps,i=!!(128&t.flags);if(t.flags&=-129,null===e){if(di){if("hidden"===r.mode)return e=Ua(t,r),t.lanes=536870912,Va(null,e);if(Po(t),(e=ci)?null!==(e=null!==(e=Ad(e,fi))&&"&"===e.data?e:null)&&(t.memoizedState={dehydrated:e,treeContext:null!==ti?{id:ni,overflow:ri}:null,retryLane:536870912,hydrationErrors:null},(n=zr(e)).return=t,t.child=n,ui=t,ci=null):e=null,null===e)throw mi(t);return t.lanes=536870912,null}return Ua(t,r)}var o=e.memoizedState;if(null!==o){var a=o.dehydrated;if(Po(t),i)if(256&t.flags)t.flags&=-257,t=Ba(e,t,n);else{if(null===t.memoizedState)throw Error(s(558));t.child=e.child,t.flags|=128,t=null}else if(Oa||Di(e,t,n,!1),i=0!==(n&e.childLanes),Oa||i){if(null!==(r=hu)&&0!==(a=Fe(r,n))&&a!==o.retryLane)throw o.retryLane=a,Or(e,a),Hu(r,0,a),Ia;sc(),t=Ba(e,t,n)}else e=o.treeContext,ci=Od(a.nextSibling),ui=t,di=!0,pi=null,fi=!1,null!==e&&li(t,e),(t=Ua(t,r)).flags|=4096;return t}return(e=Kr(e.child,{mode:r.mode,children:r.children})).ref=t.ref,t.child=e,e.return=t,e}(e,t,n);case 22:return ja(e,t,n,t.pendingProps);case 24:return Li(t),r=Ii(ji),null===e?(null===(i=Hi())&&(i=hu,o=Vi(),i.pooledCache=o,o.refCount++,null!==o&&(i.pooledCacheLanes|=n),i=o),t.memoizedState={parent:r,cache:i},yo(t),xi(0,ji,i)):(0!==(e.lanes&n)&&(vo(e,t),xo(t,null,null,n),So()),i=e.memoizedState,o=t.memoizedState,i.parent!==r?(i={parent:r,cache:r},t.memoizedState=i,0===t.lanes&&(t.memoizedState=t.updateQueue.baseState=i),xi(0,ji,r)):(r=o.cache,xi(0,ji,r),r!==i.cache&&Ni(t,[ji],n,!0))),Ra(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function al(e){e.flags|=4}function ll(e,t,n,r,i){if((t=!!(32&e.mode))&&(t=!1),t){if(e.flags|=16777216,(335544128&i)===i)if(e.stateNode.complete)e.flags|=8192;else{if(!rc())throw io=eo,Ji;e.flags|=8192}}else e.flags&=-16777217}function ul(e,t){if("stylesheet"!==t.type||4&t.state.loading)e.flags&=-16777217;else if(e.flags|=16777216,!ip(t)){if(!rc())throw io=eo,Ji;e.flags|=8192}}function cl(e,t){null!==t&&(e.flags|=4),16384&e.flags&&(t=22!==e.tag?Ae():536870912,e.lanes|=t,Nu|=t)}function dl(e,t){if(!di)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 pl(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|=65011712&i.subtreeFlags,r|=65011712&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 fl(e,t,n){var r=t.pendingProps;switch(ai(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:case 1:return pl(t),null;case 3:return n=t.stateNode,r=null,null!==e&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Ci(ji),W(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(vi(t)?al(t):null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,Ei())),pl(t),null;case 26:var i=t.type,o=t.memoizedState;return null===e?(al(t),null!==o?(pl(t),ul(t,o)):(pl(t),ll(t,i,0,0,n))):o?o!==e.memoizedState?(al(t),pl(t),ul(t,o)):(pl(t),t.flags&=-16777217):((e=e.memoizedProps)!==r&&al(t),pl(t),ll(t,i,0,0,n)),null;case 27:if(X(t),n=G.current,i=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==r&&al(t);else{if(!r){if(null===t.stateNode)throw Error(s(166));return pl(t),null}e=q.current,vi(t)?gi(t):(e=Md(i,r,n),t.stateNode=e,al(t))}return pl(t),null;case 5:if(X(t),i=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==r&&al(t);else{if(!r){if(null===t.stateNode)throw Error(s(166));return pl(t),null}if(o=q.current,vi(t))gi(t);else{var a=gd(G.current);switch(o){case 1:o=a.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:o=a.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":o=a.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":o=a.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":(o=a.createElement("div")).innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o="string"==typeof r.is?a.createElement("select",{is:r.is}):a.createElement("select"),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o="string"==typeof r.is?a.createElement(i,{is:r.is}):a.createElement(i)}}o[Ue]=t,o[Be]=r;e:for(a=t.child;null!==a;){if(5===a.tag||6===a.tag)o.appendChild(a.stateNode);else if(4!==a.tag&&27!==a.tag&&null!==a.child){a.child.return=a,a=a.child;continue}if(a===t)break e;for(;null===a.sibling;){if(null===a.return||a.return===t)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}t.stateNode=o;e:switch(pd(o,i,r),i){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&al(t)}}return pl(t),ll(t,t.type,null===e||e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==r&&al(t);else{if("string"!=typeof r&&null===t.stateNode)throw Error(s(166));if(e=G.current,vi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,null!==(i=ui))switch(i.tag){case 27:case 5:r=i.memoizedProps}e[Ue]=t,(e=!!(e.nodeValue===n||null!==r&&!0===r.suppressHydrationWarning||ud(e.nodeValue,n)))||mi(t,!0)}else(e=gd(e).createTextNode(r))[Ue]=t,t.stateNode=e}return pl(t),null;case 31:if(n=t.memoizedState,null===e||null!==e.memoizedState){if(r=vi(t),null!==n){if(null===e){if(!r)throw Error(s(318));if(!(e=null!==(e=t.memoizedState)?e.dehydrated:null))throw Error(s(557));e[Ue]=t}else bi(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;pl(t),e=!1}else n=Ei(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return 256&t.flags?(Vo(t),t):(Vo(t),null);if(128&t.flags)throw Error(s(558))}return pl(t),null;case 13:if(r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(i=vi(t),null!==r&&null!==r.dehydrated){if(null===e){if(!i)throw Error(s(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(s(317));i[Ue]=t}else bi(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;pl(t),i=!1}else i=Ei(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return 256&t.flags?(Vo(t),t):(Vo(t),null)}return Vo(t),128&t.flags?(t.lanes=n,t):(n=null!==r,e=null!==e&&null!==e.memoizedState,n&&(i=null,null!==(r=t.child).alternate&&null!==r.alternate.memoizedState&&null!==r.alternate.memoizedState.cachePool&&(i=r.alternate.memoizedState.cachePool.pool),o=null,null!==r.memoizedState&&null!==r.memoizedState.cachePool&&(o=r.memoizedState.cachePool.pool),o!==i&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),cl(t,t.updateQueue),pl(t),null);case 4:return W(),null===e&&Zc(t.stateNode.containerInfo),pl(t),null;case 10:return Ci(t.type),pl(t),null;case 19:if(K(Ko),null===(r=t.memoizedState))return pl(t),null;if(i=!!(128&t.flags),null===(o=r.rendering))if(i)dl(r,!1);else{if(0!==ku||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(o=Uo(e))){for(t.flags|=128,dl(r,!1),e=o.updateQueue,t.updateQueue=e,cl(t,e),t.subtreeFlags=0,e=n,n=t.child;null!==n;)Ur(n,e),n=n.sibling;return U(Ko,1&Ko.current|2),di&&ii(t,r.treeForkCount),t.child}e=e.sibling}null!==r.tail&&le()>Ru&&(t.flags|=128,i=!0,dl(r,!1),t.lanes=4194304)}else{if(!i)if(null!==(e=Uo(o))){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,cl(t,e),dl(r,!0),null===r.tail&&"hidden"===r.tailMode&&!o.alternate&&!di)return pl(t),null}else 2*le()-r.renderingStartTime>Ru&&536870912!==n&&(t.flags|=128,i=!0,dl(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(null!==(e=r.last)?e.sibling=o:t.child=o,r.last=o)}return null!==r.tail?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=le(),e.sibling=null,n=Ko.current,U(Ko,i?1&n|2:1&n),di&&ii(t,r.treeForkCount),e):(pl(t),null);case 22:case 23:return Vo(t),Io(),r=null!==t.memoizedState,null!==e?null!==e.memoizedState!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?!!(536870912&n)&&!(128&t.flags)&&(pl(t),6&t.subtreeFlags&&(t.flags|=8192)):pl(t),null!==(n=t.updateQueue)&&cl(t,n.retryQueue),n=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),r=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),null!==e&&K(Qi),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ci(ji),pl(t),null;case 25:case 30:return null}throw Error(s(156,t.tag))}function hl(e,t){switch(ai(t),t.tag){case 1:return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Ci(ji),W(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 26:case 27:case 5:return X(t),null;case 31:if(null!==t.memoizedState){if(Vo(t),null===t.alternate)throw Error(s(340));bi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 13:if(Vo(t),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(s(340));bi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return K(Ko),null;case 4:return W(),null;case 10:return Ci(t.type),null;case 22:case 23:return Vo(t),Io(),null!==e&&K(Qi),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 24:return Ci(ji),null;default:return null}}function ml(e,t){switch(ai(t),t.tag){case 3:Ci(ji),W();break;case 26:case 27:case 5:X(t);break;case 4:W();break;case 31:null!==t.memoizedState&&Vo(t);break;case 13:Vo(t);break;case 19:K(Ko);break;case 10:Ci(t.type);break;case 22:case 23:Vo(t),Io(),null!==e&&K(Qi);break;case 24:Ci(ji)}}function gl(e,t){try{var n=t.updateQueue,r=null!==n?n.lastEffect:null;if(null!==r){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var o=n.create,s=n.inst;r=o(),s.destroy=r}n=n.next}while(n!==i)}}catch(e){kc(t,t.return,e)}}function yl(e,t,n){try{var r=t.updateQueue,i=null!==r?r.lastEffect:null;if(null!==i){var o=i.next;r=o;do{if((r.tag&e)===e){var s=r.inst,a=s.destroy;if(void 0!==a){s.destroy=void 0,i=t;var l=n,u=a;try{u()}catch(e){kc(i,l,e)}}}r=r.next}while(r!==o)}}catch(e){kc(t,t.return,e)}}function vl(e){var t=e.updateQueue;if(null!==t){var n=e.stateNode;try{_o(t,n)}catch(t){kc(e,e.return,t)}}}function bl(e,t,n){n.props=ka(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){kc(e,t,n)}}function El(e,t){try{var n=e.ref;if(null!==n){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;default:r=e.stateNode}"function"==typeof n?e.refCleanup=n(r):n.current=r}}catch(n){kc(e,t,n)}}function Tl(e,t){var n=e.ref,r=e.refCleanup;if(null!==n)if("function"==typeof r)try{r()}catch(n){kc(e,t,n)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if("function"==typeof n)try{n(null)}catch(n){kc(e,t,n)}else n.current=null}function wl(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&r.focus();break e;case"img":n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){kc(e,e.return,t)}}function kl(e,t,n){try{var r=e.stateNode;!function(e,t,n,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,o=null,a=null,l=null,u=null,c=null,d=null;for(h in n){var p=n[h];if(n.hasOwnProperty(h)&&null!=p)switch(h){case"checked":case"value":break;case"defaultValue":u=p;default:r.hasOwnProperty(h)||cd(e,t,h,null,r,p)}}for(var f in r){var h=r[f];if(p=n[f],r.hasOwnProperty(f)&&(null!=h||null!=p))switch(f){case"type":o=h;break;case"name":i=h;break;case"checked":c=h;break;case"defaultChecked":d=h;break;case"value":a=h;break;case"defaultValue":l=h;break;case"children":case"dangerouslySetInnerHTML":if(null!=h)throw Error(s(137,t));break;default:h!==p&&cd(e,t,f,h,r,p)}}return void vt(e,a,l,u,c,d,o,i);case"select":for(o in h=a=l=f=null,n)if(u=n[o],n.hasOwnProperty(o)&&null!=u)switch(o){case"value":break;case"multiple":h=u;default:r.hasOwnProperty(o)||cd(e,t,o,null,r,u)}for(i in r)if(o=r[i],u=n[i],r.hasOwnProperty(i)&&(null!=o||null!=u))switch(i){case"value":f=o;break;case"defaultValue":l=o;break;case"multiple":a=o;default:o!==u&&cd(e,t,i,o,r,u)}return t=l,n=a,r=h,void(null!=f?Tt(e,!!n,f,!1):!!r!=!!n&&(null!=t?Tt(e,!!n,t,!0):Tt(e,!!n,n?[]:"",!1)));case"textarea":for(l in h=f=null,n)if(i=n[l],n.hasOwnProperty(l)&&null!=i&&!r.hasOwnProperty(l))switch(l){case"value":case"children":break;default:cd(e,t,l,null,r,i)}for(a in r)if(i=r[a],o=n[a],r.hasOwnProperty(a)&&(null!=i||null!=o))switch(a){case"value":f=i;break;case"defaultValue":h=i;break;case"children":break;case"dangerouslySetInnerHTML":if(null!=i)throw Error(s(91));break;default:i!==o&&cd(e,t,a,i,r,o)}return void wt(e,f,h);case"option":for(var m in n)f=n[m],n.hasOwnProperty(m)&&null!=f&&!r.hasOwnProperty(m)&&("selected"===m?e.selected=!1:cd(e,t,m,null,r,f));for(u in r)f=r[u],h=n[u],!r.hasOwnProperty(u)||f===h||null==f&&null==h||("selected"===u?e.selected=f&&"function"!=typeof f&&"symbol"!=typeof f:cd(e,t,u,f,r,h));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var g in n)f=n[g],n.hasOwnProperty(g)&&null!=f&&!r.hasOwnProperty(g)&&cd(e,t,g,null,r,f);for(c in r)if(f=r[c],h=n[c],r.hasOwnProperty(c)&&f!==h&&(null!=f||null!=h))switch(c){case"children":case"dangerouslySetInnerHTML":if(null!=f)throw Error(s(137,t));break;default:cd(e,t,c,f,r,h)}return;default:if(Nt(t)){for(var y in n)f=n[y],n.hasOwnProperty(y)&&void 0!==f&&!r.hasOwnProperty(y)&&dd(e,t,y,void 0,r,f);for(d in r)f=r[d],h=n[d],!r.hasOwnProperty(d)||f===h||void 0===f&&void 0===h||dd(e,t,d,f,r,h);return}}for(var v in n)f=n[v],n.hasOwnProperty(v)&&null!=f&&!r.hasOwnProperty(v)&&cd(e,t,v,null,r,f);for(p in r)f=r[p],h=n[p],!r.hasOwnProperty(p)||f===h||null==f&&null==h||cd(e,t,p,f,r,h)}(r,e.type,n,t),r[Be]=t}catch(t){kc(e,e.return,t)}}function Sl(e){return 5===e.tag||3===e.tag||26===e.tag||27===e.tag&&Cd(e.type)||4===e.tag}function xl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||Sl(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(27===e.tag&&Cd(e.type))continue e;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 Cl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?(9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).insertBefore(e,t):((t=9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=It));else if(4!==r&&(27===r&&Cd(e.type)&&(n=e.stateNode,t=null),null!==(e=e.child)))for(Cl(e,t,n),e=e.sibling;null!==e;)Cl(e,t,n),e=e.sibling}function _l(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&&(27===r&&Cd(e.type)&&(n=e.stateNode),null!==(e=e.child)))for(_l(e,t,n),e=e.sibling;null!==e;)_l(e,t,n),e=e.sibling}function Nl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);pd(t,r,n),t[Ue]=e,t[Be]=n}catch(t){kc(e,e.return,t)}}var Dl=!1,Al=!1,Ll=!1,Il="function"==typeof WeakSet?WeakSet:Set,Ol=null;function Rl(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Hl(e,n),4&r&&gl(5,n);break;case 1:if(Hl(e,n),4&r)if(e=n.stateNode,null===t)try{e.componentDidMount()}catch(e){kc(n,n.return,e)}else{var i=ka(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){kc(n,n.return,e)}}64&r&&vl(n),512&r&&El(n,n.return);break;case 3:if(Hl(e,n),64&r&&null!==(e=n.updateQueue)){if(t=null,null!==n.child)switch(n.child.tag){case 27:case 5:case 1:t=n.child.stateNode}try{_o(e,t)}catch(e){kc(n,n.return,e)}}break;case 27:null===t&&4&r&&Nl(n);case 26:case 5:Hl(e,n),null===t&&4&r&&wl(n),512&r&&El(n,n.return);break;case 12:Hl(e,n);break;case 31:Hl(e,n),4&r&&Kl(e,n);break;case 13:Hl(e,n),4&r&&Ul(e,n),64&r&&null!==(e=n.memoizedState)&&null!==(e=e.dehydrated)&&function(e,t){var n=e.ownerDocument;if("$~"===e.data)e._reactRetry=t;else if("$?"!==e.data||"loading"!==n.readyState)t();else{var r=function(){t(),n.removeEventListener("DOMContentLoaded",r)};n.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}(e,n=_c.bind(null,n));break;case 22:if(!(r=null!==n.memoizedState||Dl)){t=null!==t&&null!==t.memoizedState||Al,i=Dl;var o=Al;Dl=r,(Al=t)&&!o?Yl(e,n,!!(8772&n.subtreeFlags)):Hl(e,n),Dl=i,Al=o}break;case 30:break;default:Hl(e,n)}}function Fl(e){var t=e.alternate;null!==t&&(e.alternate=null,Fl(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&We(t),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Pl=null,Ml=!1;function jl(e,t,n){for(n=n.child;null!==n;)Vl(e,t,n),n=n.sibling}function Vl(e,t,n){if(ve&&"function"==typeof ve.onCommitFiberUnmount)try{ve.onCommitFiberUnmount(ye,n)}catch(e){}switch(n.tag){case 26:Al||Tl(n,t),jl(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode).parentNode.removeChild(n);break;case 27:Al||Tl(n,t);var r=Pl,i=Ml;Cd(n.type)&&(Pl=n.stateNode,Ml=!1),jl(e,t,n),jd(n.stateNode),Pl=r,Ml=i;break;case 5:Al||Tl(n,t);case 6:if(r=Pl,i=Ml,Pl=null,jl(e,t,n),Ml=i,null!==(Pl=r))if(Ml)try{(9===Pl.nodeType?Pl.body:"HTML"===Pl.nodeName?Pl.ownerDocument.body:Pl).removeChild(n.stateNode)}catch(e){kc(n,t,e)}else try{Pl.removeChild(n.stateNode)}catch(e){kc(n,t,e)}break;case 18:null!==Pl&&(Ml?(_d(9===(e=Pl).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,n.stateNode),qp(e)):_d(Pl,n.stateNode));break;case 4:r=Pl,i=Ml,Pl=n.stateNode.containerInfo,Ml=!0,jl(e,t,n),Pl=r,Ml=i;break;case 0:case 11:case 14:case 15:yl(2,n,t),Al||yl(4,n,t),jl(e,t,n);break;case 1:Al||(Tl(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount&&bl(n,t,r)),jl(e,t,n);break;case 21:jl(e,t,n);break;case 22:Al=(r=Al)||null!==n.memoizedState,jl(e,t,n),Al=r;break;default:jl(e,t,n)}}function Kl(e,t){if(null===t.memoizedState&&null!==(e=t.alternate)&&null!==(e=e.memoizedState)){e=e.dehydrated;try{qp(e)}catch(e){kc(t,t.return,e)}}}function Ul(e,t){if(null===t.memoizedState&&null!==(e=t.alternate)&&null!==(e=e.memoizedState)&&null!==(e=e.dehydrated))try{qp(e)}catch(e){kc(t,t.return,e)}}function Bl(e,t){var n=function(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return null===t&&(t=e.stateNode=new Il),t;case 22:return null===(t=(e=e.stateNode)._retryCache)&&(t=e._retryCache=new Il),t;default:throw Error(s(435,e.tag))}}(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Nc.bind(null,e,t);t.then(r,r)}})}function $l(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r],o=e,a=t,l=a;e:for(;null!==l;){switch(l.tag){case 27:if(Cd(l.type)){Pl=l.stateNode,Ml=!1;break e}break;case 5:Pl=l.stateNode,Ml=!1;break e;case 3:case 4:Pl=l.stateNode.containerInfo,Ml=!0;break e}l=l.return}if(null===Pl)throw Error(s(160));Vl(o,a,i),Pl=null,Ml=!1,null!==(o=i.alternate)&&(o.return=null),i.return=null}if(13886&t.subtreeFlags)for(t=t.child;null!==t;)zl(t,e),t=t.sibling}var ql=null;function zl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:$l(t,e),Gl(e),4&r&&(yl(3,e,e.return),gl(3,e),yl(5,e,e.return));break;case 1:$l(t,e),Gl(e),512&r&&(Al||null===n||Tl(n,n.return)),64&r&&Dl&&null!==(e=e.updateQueue)&&null!==(r=e.callbacks)&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=null===n?r:n.concat(r));break;case 26:var i=ql;if($l(t,e),Gl(e),512&r&&(Al||null===n||Tl(n,n.return)),4&r){var o=null!==n?n.memoizedState:null;if(r=e.memoizedState,null===n)if(null===r)if(null===e.stateNode){e:{r=e.type,n=e.memoizedProps,i=i.ownerDocument||i;t:switch(r){case"title":(!(o=i.getElementsByTagName("title")[0])||o[He]||o[Ue]||"http://www.w3.org/2000/svg"===o.namespaceURI||o.hasAttribute("itemprop"))&&(o=i.createElement(r),i.head.insertBefore(o,i.querySelector("head > title"))),pd(o,r,n),o[Ue]=e,et(o),r=o;break e;case"link":var a=np("link","href",i).get(r+(n.href||""));if(a)for(var l=0;l<a.length;l++)if((o=a[l]).getAttribute("href")===(null==n.href||""===n.href?null:n.href)&&o.getAttribute("rel")===(null==n.rel?null:n.rel)&&o.getAttribute("title")===(null==n.title?null:n.title)&&o.getAttribute("crossorigin")===(null==n.crossOrigin?null:n.crossOrigin)){a.splice(l,1);break t}pd(o=i.createElement(r),r,n),i.head.appendChild(o);break;case"meta":if(a=np("meta","content",i).get(r+(n.content||"")))for(l=0;l<a.length;l++)if((o=a[l]).getAttribute("content")===(null==n.content?null:""+n.content)&&o.getAttribute("name")===(null==n.name?null:n.name)&&o.getAttribute("property")===(null==n.property?null:n.property)&&o.getAttribute("http-equiv")===(null==n.httpEquiv?null:n.httpEquiv)&&o.getAttribute("charset")===(null==n.charSet?null:n.charSet)){a.splice(l,1);break t}pd(o=i.createElement(r),r,n),i.head.appendChild(o);break;default:throw Error(s(468,r))}o[Ue]=e,et(o),r=o}e.stateNode=r}else rp(i,e.type,e.stateNode);else e.stateNode=Xd(i,r,e.memoizedProps);else o!==r?(null===o?null!==n.stateNode&&(n=n.stateNode).parentNode.removeChild(n):o.count--,null===r?rp(i,e.type,e.stateNode):Xd(i,r,e.memoizedProps)):null===r&&null!==e.stateNode&&kl(e,e.memoizedProps,n.memoizedProps)}break;case 27:$l(t,e),Gl(e),512&r&&(Al||null===n||Tl(n,n.return)),null!==n&&4&r&&kl(e,e.memoizedProps,n.memoizedProps);break;case 5:if($l(t,e),Gl(e),512&r&&(Al||null===n||Tl(n,n.return)),32&e.flags){i=e.stateNode;try{St(i,"")}catch(t){kc(e,e.return,t)}}4&r&&null!=e.stateNode&&kl(e,i=e.memoizedProps,null!==n?n.memoizedProps:i),1024&r&&(Ll=!0);break;case 6:if($l(t,e),Gl(e),4&r){if(null===e.stateNode)throw Error(s(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){kc(e,e.return,t)}}break;case 3:if(tp=null,i=ql,ql=Ud(t.containerInfo),$l(t,e),ql=i,Gl(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{qp(t.containerInfo)}catch(t){kc(e,e.return,t)}Ll&&(Ll=!1,Ql(e));break;case 4:r=ql,ql=Ud(e.stateNode.containerInfo),$l(t,e),Gl(e),ql=r;break;case 12:default:$l(t,e),Gl(e);break;case 31:case 19:$l(t,e),Gl(e),4&r&&null!==(r=e.updateQueue)&&(e.updateQueue=null,Bl(e,r));break;case 13:$l(t,e),Gl(e),8192&e.child.flags&&null!==e.memoizedState!=(null!==n&&null!==n.memoizedState)&&(Iu=le()),4&r&&null!==(r=e.updateQueue)&&(e.updateQueue=null,Bl(e,r));break;case 22:i=null!==e.memoizedState;var u=null!==n&&null!==n.memoizedState,c=Dl,d=Al;if(Dl=c||i,Al=d||u,$l(t,e),Al=d,Dl=c,Gl(e),8192&r)e:for(t=e.stateNode,t._visibility=i?-2&t._visibility:1|t._visibility,i&&(null===n||u||Dl||Al||Wl(e)),n=null,t=e;;){if(5===t.tag||26===t.tag){if(null===n){u=n=t;try{if(o=u.stateNode,i)"function"==typeof(a=o.style).setProperty?a.setProperty("display","none","important"):a.display="none";else{l=u.stateNode;var p=u.memoizedProps.style,f=null!=p&&p.hasOwnProperty("display")?p.display:null;l.style.display=null==f||"boolean"==typeof f?"":(""+f).trim()}}catch(e){kc(u,u.return,e)}}}else if(6===t.tag){if(null===n){u=t;try{u.stateNode.nodeValue=i?"":u.memoizedProps}catch(e){kc(u,u.return,e)}}}else if(18===t.tag){if(null===n){u=t;try{var h=u.stateNode;i?Nd(h,!0):Nd(u.stateNode,!1)}catch(e){kc(u,u.return,e)}}}else if((22!==t.tag&&23!==t.tag||null===t.memoizedState||t===e)&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;null===t.sibling;){if(null===t.return||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}4&r&&null!==(r=e.updateQueue)&&null!==(n=r.retryQueue)&&(r.retryQueue=null,Bl(e,n));case 30:case 21:}}function Gl(e){var t=e.flags;if(2&t){try{for(var n,r=e.return;null!==r;){if(Sl(r)){n=r;break}r=r.return}if(null==n)throw Error(s(160));switch(n.tag){case 27:var i=n.stateNode;_l(e,xl(e),i);break;case 5:var o=n.stateNode;32&n.flags&&(St(o,""),n.flags&=-33),_l(e,xl(e),o);break;case 3:case 4:var a=n.stateNode.containerInfo;Cl(e,xl(e),a);break;default:throw Error(s(161))}}catch(t){kc(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function Ql(e){if(1024&e.subtreeFlags)for(e=e.child;null!==e;){var t=e;Ql(t),5===t.tag&&1024&t.flags&&t.stateNode.reset(),e=e.sibling}}function Hl(e,t){if(8772&t.subtreeFlags)for(t=t.child;null!==t;)Rl(e,t.alternate,t),t=t.sibling}function Wl(e){for(e=e.child;null!==e;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:yl(4,t,t.return),Wl(t);break;case 1:Tl(t,t.return);var n=t.stateNode;"function"==typeof n.componentWillUnmount&&bl(t,t.return,n),Wl(t);break;case 27:jd(t.stateNode);case 26:case 5:Tl(t,t.return),Wl(t);break;case 22:null===t.memoizedState&&Wl(t);break;default:Wl(t)}e=e.sibling}}function Yl(e,t,n){for(n=n&&!!(8772&t.subtreeFlags),t=t.child;null!==t;){var r=t.alternate,i=e,o=t,s=o.flags;switch(o.tag){case 0:case 11:case 15:Yl(i,o,n),gl(4,o);break;case 1:if(Yl(i,o,n),"function"==typeof(i=(r=o).stateNode).componentDidMount)try{i.componentDidMount()}catch(e){kc(r,r.return,e)}if(null!==(i=(r=o).updateQueue)){var a=r.stateNode;try{var l=i.shared.hiddenCallbacks;if(null!==l)for(i.shared.hiddenCallbacks=null,i=0;i<l.length;i++)Co(l[i],a)}catch(e){kc(r,r.return,e)}}n&&64&s&&vl(o),El(o,o.return);break;case 27:Nl(o);case 26:case 5:Yl(i,o,n),n&&null===r&&4&s&&wl(o),El(o,o.return);break;case 12:Yl(i,o,n);break;case 31:Yl(i,o,n),n&&4&s&&Kl(i,o);break;case 13:Yl(i,o,n),n&&4&s&&Ul(i,o);break;case 22:null===o.memoizedState&&Yl(i,o,n),El(o,o.return);break;case 30:break;default:Yl(i,o,n)}t=t.sibling}}function Xl(e,t){var n=null;null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),e=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(e=t.memoizedState.cachePool.pool),e!==n&&(null!=e&&e.refCount++,null!=n&&Ki(n))}function Jl(e,t){e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Ki(e))}function Zl(e,t,n,r){if(10256&t.subtreeFlags)for(t=t.child;null!==t;)eu(e,t,n,r),t=t.sibling}function eu(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Zl(e,t,n,r),2048&i&&gl(9,t);break;case 1:case 31:case 13:default:Zl(e,t,n,r);break;case 3:Zl(e,t,n,r),2048&i&&(e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Ki(e)));break;case 12:if(2048&i){Zl(e,t,n,r),e=t.stateNode;try{var o=t.memoizedProps,s=o.id,a=o.onPostCommit;"function"==typeof a&&a(s,null===t.alternate?"mount":"update",e.passiveEffectDuration,-0)}catch(e){kc(t,t.return,e)}}else Zl(e,t,n,r);break;case 23:break;case 22:o=t.stateNode,s=t.alternate,null!==t.memoizedState?2&o._visibility?Zl(e,t,n,r):nu(e,t):2&o._visibility?Zl(e,t,n,r):(o._visibility|=2,tu(e,t,n,r,!!(10256&t.subtreeFlags)||!1)),2048&i&&Xl(s,t);break;case 24:Zl(e,t,n,r),2048&i&&Jl(t.alternate,t)}}function tu(e,t,n,r,i){for(i=i&&(!!(10256&t.subtreeFlags)||!1),t=t.child;null!==t;){var o=e,s=t,a=n,l=r,u=s.flags;switch(s.tag){case 0:case 11:case 15:tu(o,s,a,l,i),gl(8,s);break;case 23:break;case 22:var c=s.stateNode;null!==s.memoizedState?2&c._visibility?tu(o,s,a,l,i):nu(o,s):(c._visibility|=2,tu(o,s,a,l,i)),i&&2048&u&&Xl(s.alternate,s);break;case 24:tu(o,s,a,l,i),i&&2048&u&&Jl(s.alternate,s);break;default:tu(o,s,a,l,i)}t=t.sibling}}function nu(e,t){if(10256&t.subtreeFlags)for(t=t.child;null!==t;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:nu(n,r),2048&i&&Xl(r.alternate,r);break;case 24:nu(n,r),2048&i&&Jl(r.alternate,r);break;default:nu(n,r)}t=t.sibling}}var ru=8192;function iu(e,t,n){if(e.subtreeFlags&ru)for(e=e.child;null!==e;)ou(e,t,n),e=e.sibling}function ou(e,t,n){switch(e.tag){case 26:iu(e,t,n),e.flags&ru&&null!==e.memoizedState&&function(e,t,n,r){if(!("stylesheet"!==n.type||"string"==typeof r.media&&!1===matchMedia(r.media).matches||4&n.state.loading)){if(null===n.instance){var i=Gd(r.href),o=t.querySelector(Qd(i));if(o)return null!==(t=o._p)&&"object"==typeof t&&"function"==typeof t.then&&(e.count++,e=sp.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=o,void et(o);o=t.ownerDocument||t,r=Hd(r),(i=Vd.get(i))&&Zd(r,i),et(o=o.createElement("link"));var s=o;s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),pd(o,"link",r),n.instance=o}null===e.stylesheets&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(3&n.state.loading)&&(e.count++,n=sp.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}(n,ql,e.memoizedState,e.memoizedProps);break;case 5:default:iu(e,t,n);break;case 3:case 4:var r=ql;ql=Ud(e.stateNode.containerInfo),iu(e,t,n),ql=r;break;case 22:null===e.memoizedState&&(null!==(r=e.alternate)&&null!==r.memoizedState?(r=ru,ru=16777216,iu(e,t,n),ru=r):iu(e,t,n))}}function su(e){var t=e.alternate;if(null!==t&&null!==(e=t.child)){t.child=null;do{t=e.sibling,e.sibling=null,e=t}while(null!==e)}}function au(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];Ol=r,cu(r,e)}su(e)}if(10256&e.subtreeFlags)for(e=e.child;null!==e;)lu(e),e=e.sibling}function lu(e){switch(e.tag){case 0:case 11:case 15:au(e),2048&e.flags&&yl(9,e,e.return);break;case 3:case 12:default:au(e);break;case 22:var t=e.stateNode;null!==e.memoizedState&&2&t._visibility&&(null===e.return||13!==e.return.tag)?(t._visibility&=-3,uu(e)):au(e)}}function uu(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];Ol=r,cu(r,e)}su(e)}for(e=e.child;null!==e;){switch((t=e).tag){case 0:case 11:case 15:yl(8,t,t.return),uu(t);break;case 22:2&(n=t.stateNode)._visibility&&(n._visibility&=-3,uu(t));break;default:uu(t)}e=e.sibling}}function cu(e,t){for(;null!==Ol;){var n=Ol;switch(n.tag){case 0:case 11:case 15:yl(8,n,t);break;case 23:case 22:if(null!==n.memoizedState&&null!==n.memoizedState.cachePool){var r=n.memoizedState.cachePool.pool;null!=r&&r.refCount++}break;case 24:Ki(n.memoizedState.cache)}if(null!==(r=n.child))r.return=n,Ol=r;else e:for(n=e;null!==Ol;){var i=(r=Ol).sibling,o=r.return;if(Fl(r),r===n){Ol=null;break e}if(null!==i){i.return=o,Ol=i;break e}Ol=o}}}var du={getCacheForType:function(e){var t=Ii(ji),n=t.data.get(e);return void 0===n&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Ii(ji).controller.signal}},pu="function"==typeof WeakMap?WeakMap:Map,fu=0,hu=null,mu=null,gu=0,yu=0,vu=null,bu=!1,Eu=!1,Tu=!1,wu=0,ku=0,Su=0,xu=0,Cu=0,_u=0,Nu=0,Du=null,Au=null,Lu=!1,Iu=0,Ou=0,Ru=1/0,Fu=null,Pu=null,Mu=0,ju=null,Vu=null,Ku=0,Uu=0,Bu=null,$u=null,qu=0,zu=null;function Gu(){return 2&fu&&0!==gu?gu&-gu:null!==R.T?Bc():je()}function Qu(){if(0===_u)if(536870912&gu&&!di)_u=536870912;else{var e=Se;!(3932160&(Se<<=1))&&(Se=262144),_u=e}return null!==(e=Oo.current)&&(e.flags|=32),_u}function Hu(e,t,n){(e!==hu||2!==yu&&9!==yu)&&null===e.cancelPendingCommit||(tc(e,0),Ju(e,gu,_u,!1)),Ie(e,n),2&fu&&e===hu||(e===hu&&(!(2&fu)&&(xu|=n),4===ku&&Ju(e,gu,_u,!1)),Fc(e))}function Wu(e,t,n){if(6&fu)throw Error(s(327));for(var r=!n&&!(127&t)&&0===(t&e.expiredLanes)||Ne(e,t),i=r?function(e,t){var n=fu;fu|=2;var r=ic(),i=oc();hu!==e||gu!==t?(Fu=null,Ru=le()+500,tc(e,t)):Eu=Ne(e,t);e:for(;;)try{if(0!==yu&&null!==mu){t=mu;var o=vu;t:switch(yu){case 1:yu=0,vu=null,pc(e,t,o,1);break;case 2:case 9:if(to(o)){yu=0,vu=null,dc(t);break}t=function(){2!==yu&&9!==yu||hu!==e||(yu=7),Fc(e)},o.then(t,t);break e;case 3:yu=7;break e;case 4:yu=5;break e;case 7:to(o)?(yu=0,vu=null,dc(t)):(yu=0,vu=null,pc(e,t,o,7));break;case 5:var a=null;switch(mu.tag){case 26:a=mu.memoizedState;case 5:case 27:var l=mu;if(a?ip(a):l.stateNode.complete){yu=0,vu=null;var u=l.sibling;if(null!==u)mu=u;else{var c=l.return;null!==c?(mu=c,fc(c)):mu=null}break t}}yu=0,vu=null,pc(e,t,o,5);break;case 6:yu=0,vu=null,pc(e,t,o,6);break;case 8:ec(),ku=6;break e;default:throw Error(s(462))}}uc();break}catch(t){nc(e,t)}return Si=ki=null,R.H=r,R.A=i,fu=n,null!==mu?0:(hu=null,gu=0,Ar(),ku)}(e,t):ac(e,t,!0),o=r;;){if(0===i){Eu&&!r&&Ju(e,t,0,!1);break}if(n=e.current.alternate,!o||Xu(n)){if(2===i){if(o=t,e.errorRecoveryDisabledLanes&o)var a=0;else a=0!=(a=-536870913&e.pendingLanes)?a:536870912&a?536870912:0;if(0!==a){t=a;e:{var l=e;i=Du;var u=l.current.memoizedState.isDehydrated;if(u&&(tc(l,a).flags|=256),2!==(a=ac(l,a,!1))){if(Tu&&!u){l.errorRecoveryDisabledLanes|=o,xu|=o,i=4;break e}o=Au,Au=i,null!==o&&(null===Au?Au=o:Au.push.apply(Au,o))}i=a}if(o=!1,2!==i)continue}}if(1===i){tc(e,0),Ju(e,t,0,!0);break}e:{switch(r=e,o=i){case 0:case 1:throw Error(s(345));case 4:if((4194048&t)!==t)break;case 6:Ju(r,t,_u,!bu);break e;case 2:Au=null;break;case 3:case 5:break;default:throw Error(s(329))}if((62914560&t)===t&&10<(i=Iu+300-le())){if(Ju(r,t,_u,!bu),0!==_e(r,0,!0))break e;Ku=t,r.timeoutHandle=Td(Yu.bind(null,r,n,Au,Fu,Lu,t,_u,xu,Nu,bu,o,"Throttled",-0,0),i)}else Yu(r,n,Au,Fu,Lu,t,_u,xu,Nu,bu,o,null,-0,0)}break}i=ac(e,t,!1),o=!1}Fc(e)}function Yu(e,t,n,r,i,o,s,a,l,u,c,d,p,f){if(e.timeoutHandle=-1,8192&(d=t.subtreeFlags)||!(16785408&~d)){ou(t,o,d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:It});var h=(62914560&o)===o?Iu-le():(4194048&o)===o?Ou-le():0;if(h=function(e,t){return e.stylesheets&&0===e.count&&lp(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&lp(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&0===op&&(op=62500*function(){if("function"==typeof performance.getEntriesByType){for(var e=0,t=0,n=performance.getEntriesByType("resource"),r=0;r<n.length;r++){var i=n[r],o=i.transferSize,s=i.initiatorType,a=i.duration;if(o&&a&&fd(s)){for(s=0,a=i.responseEnd,r+=1;r<n.length;r++){var l=n[r],u=l.startTime;if(u>a)break;var c=l.transferSize,d=l.initiatorType;c&&fd(d)&&(s+=c*((l=l.responseEnd)<a?1:(a-u)/(l-u)))}if(--r,t+=8*(o+s)/(i.duration/1e3),10<++e)break}}if(0<e)return t/e/1e6}return navigator.connection&&"number"==typeof(e=navigator.connection.downlink)?e:5}());var i=setTimeout(function(){if(e.waitingForImages=!1,0===e.count&&(e.stylesheets&&lp(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>op?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}(d,h),null!==h)return Ku=o,e.cancelPendingCommit=h(mc.bind(null,e,t,o,n,r,i,s,a,l,c,d,null,p,f)),void Ju(e,o,s,!u)}mc(e,t,o,n,r,i,s,a,l)}function Xu(e){for(var t=e;;){var n=t.tag;if((0===n||11===n||15===n)&&16384&t.flags&&null!==(n=t.updateQueue)&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!Jn(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}function Ju(e,t,n,r){t&=~Cu,t&=~xu,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var o=31-Ee(i),s=1<<o;r[o]=-1,i&=~s}0!==n&&Oe(e,n,t)}function Zu(){return!!(6&fu)||(Pc(0,!1),!1)}function ec(){if(null!==mu){if(0===yu)var e=mu.return;else Si=ki=null,as(e=mu),ao=null,lo=0,e=mu;for(;null!==e;)ml(e.alternate,e),e=e.return;mu=null}}function tc(e,t){var n=e.timeoutHandle;-1!==n&&(e.timeoutHandle=-1,wd(n)),null!==(n=e.cancelPendingCommit)&&(e.cancelPendingCommit=null,n()),Ku=0,ec(),hu=e,mu=n=Kr(e.current,null),gu=t,yu=0,vu=null,bu=!1,Eu=Ne(e,t),Tu=!1,Nu=_u=Cu=xu=Su=ku=0,Au=Du=null,Lu=!1,8&t&&(t|=32&t);var r=e.entangledLanes;if(0!==r)for(e=e.entanglements,r&=t;0<r;){var i=31-Ee(r),o=1<<i;t|=e[i],r&=~o}return wu=t,Ar(),n}function nc(e,t){$o=null,R.H=ma,t===Xi||t===Zi?(t=oo(),yu=3):t===Ji?(t=oo(),yu=4):yu=t===Ia?8:null!==t&&"object"==typeof t&&"function"==typeof t.then?6:1,vu=t,null===mu&&(ku=1,_a(e,Hr(t,e.current)))}function rc(){var e=Oo.current;return null===e||((4194048&gu)===gu?null===Ro:!!((62914560&gu)===gu||536870912&gu)&&e===Ro)}function ic(){var e=R.H;return R.H=ma,null===e?ma:e}function oc(){var e=R.A;return R.A=du,e}function sc(){ku=4,bu||(4194048&gu)!==gu&&null!==Oo.current||(Eu=!0),!(134217727&Su)&&!(134217727&xu)||null===hu||Ju(hu,gu,_u,!1)}function ac(e,t,n){var r=fu;fu|=2;var i=ic(),o=oc();hu===e&&gu===t||(Fu=null,tc(e,t)),t=!1;var s=ku;e:for(;;)try{if(0!==yu&&null!==mu){var a=mu,l=vu;switch(yu){case 8:ec(),s=6;break e;case 3:case 2:case 9:case 6:null===Oo.current&&(t=!0);var u=yu;if(yu=0,vu=null,pc(e,a,l,u),n&&Eu){s=0;break e}break;default:u=yu,yu=0,vu=null,pc(e,a,l,u)}}lc(),s=ku;break}catch(t){nc(e,t)}return t&&e.shellSuspendCounter++,Si=ki=null,fu=r,R.H=i,R.A=o,null===mu&&(hu=null,gu=0,Ar()),s}function lc(){for(;null!==mu;)cc(mu)}function uc(){for(;null!==mu&&!se();)cc(mu)}function cc(e){var t=sl(e.alternate,e,wu);e.memoizedProps=e.pendingProps,null===t?fc(e):mu=t}function dc(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=za(n,t,t.pendingProps,t.type,void 0,gu);break;case 11:t=za(n,t,t.pendingProps,t.type.render,t.ref,gu);break;case 5:as(t);default:ml(n,t),t=sl(n,t=mu=Ur(t,wu),wu)}e.memoizedProps=e.pendingProps,null===t?fc(e):mu=t}function pc(e,t,n,r){Si=ki=null,as(t),ao=null,lo=0;var i=t.return;try{if(function(e,t,n,r,i){if(n.flags|=32768,null!==r&&"object"==typeof r&&"function"==typeof r.then){if(null!==(t=n.alternate)&&Di(t,n,i,!0),null!==(n=Oo.current)){switch(n.tag){case 31:case 13:return null===Ro?sc():null===n.alternate&&0===ku&&(ku=3),n.flags&=-257,n.flags|=65536,n.lanes=i,r===eo?n.flags|=16384:(null===(t=n.updateQueue)?n.updateQueue=new Set([r]):t.add(r),Sc(e,r,i)),!1;case 22:return n.flags|=65536,r===eo?n.flags|=16384:(null===(t=n.updateQueue)?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):null===(n=t.retryQueue)?t.retryQueue=new Set([r]):n.add(r),Sc(e,r,i)),!1}throw Error(s(435,n.tag))}return Sc(e,r,i),sc(),!1}if(di)return null!==(t=Oo.current)?(!(65536&t.flags)&&(t.flags|=256),t.flags|=65536,t.lanes=i,r!==hi&&Ti(Hr(e=Error(s(422),{cause:r}),n))):(r!==hi&&Ti(Hr(t=Error(s(423),{cause:r}),n)),(e=e.current.alternate).flags|=65536,i&=-i,e.lanes|=i,r=Hr(r,n),wo(e,i=Da(e.stateNode,r,i)),4!==ku&&(ku=2)),!1;var o=Error(s(520),{cause:r});if(o=Hr(o,n),null===Du?Du=[o]:Du.push(o),4!==ku&&(ku=2),null===t)return!0;r=Hr(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,wo(n,e=Da(n.stateNode,r,e)),!1;case 1:if(t=n.type,o=n.stateNode,!(128&n.flags||"function"!=typeof t.getDerivedStateFromError&&(null===o||"function"!=typeof o.componentDidCatch||null!==Pu&&Pu.has(o))))return n.flags|=65536,i&=-i,n.lanes|=i,La(i=Aa(i),e,n,r),wo(n,i),!1}n=n.return}while(null!==n);return!1}(e,i,t,n,gu))return ku=1,_a(e,Hr(n,e.current)),void(mu=null)}catch(t){if(null!==i)throw mu=i,t;return ku=1,_a(e,Hr(n,e.current)),void(mu=null)}32768&t.flags?(di||1===r?e=!0:Eu||536870912&gu?e=!1:(bu=e=!0,(2===r||9===r||3===r||6===r)&&null!==(r=Oo.current)&&13===r.tag&&(r.flags|=16384)),hc(t,e)):fc(t)}function fc(e){var t=e;do{if(32768&t.flags)return void hc(t,bu);e=t.return;var n=fl(t.alternate,t,wu);if(null!==n)return void(mu=n);if(null!==(t=t.sibling))return void(mu=t);mu=t=e}while(null!==t);0===ku&&(ku=5)}function hc(e,t){do{var n=hl(e.alternate,e);if(null!==n)return n.flags&=32767,void(mu=n);if(null!==(n=e.return)&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&null!==(e=e.sibling))return void(mu=e);mu=e=n}while(null!==e);ku=6,mu=null}function mc(e,t,n,r,i,o,a,l,u){e.cancelPendingCommit=null;do{Ec()}while(0!==Mu);if(6&fu)throw Error(s(327));if(null!==t){if(t===e.current)throw Error(s(177));if(o=t.lanes|t.childLanes,function(e,t,n,r,i,o){var s=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var a=e.entanglements,l=e.expirationTimes,u=e.hiddenUpdates;for(n=s&~n;0<n;){var c=31-Ee(n),d=1<<c;a[c]=0,l[c]=-1;var p=u[c];if(null!==p)for(u[c]=null,c=0;c<p.length;c++){var f=p[c];null!==f&&(f.lane&=-536870913)}n&=~d}0!==r&&Oe(e,r,0),0!==o&&0===i&&0!==e.tag&&(e.suspendedLanes|=o&~(s&~t))}(e,n,o|=Dr,a,l,u),e===hu&&(mu=hu=null,gu=0),Vu=t,ju=e,Ku=n,Uu=o,Bu=i,$u=r,10256&t.subtreeFlags||10256&t.flags?(e.callbackNode=null,e.callbackPriority=0,ie(pe,function(){return Tc(),null})):(e.callbackNode=null,e.callbackPriority=0),r=!!(13878&t.flags),13878&t.subtreeFlags||r){r=R.T,R.T=null,i=F.p,F.p=2,a=fu,fu|=4;try{!function(e,t){if(e=e.containerInfo,hd=bp,ir(e=rr(e))){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,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch(e){n=null;break e}var a=0,l=-1,u=-1,c=0,d=0,p=e,f=null;t:for(;;){for(var h;p!==n||0!==i&&3!==p.nodeType||(l=a+i),p!==o||0!==r&&3!==p.nodeType||(u=a+r),3===p.nodeType&&(a+=p.nodeValue.length),null!==(h=p.firstChild);)f=p,p=h;for(;;){if(p===e)break t;if(f===n&&++c===i&&(l=a),f===o&&++d===r&&(u=a),null!==(h=p.nextSibling))break;f=(p=f).parentNode}p=h}n=-1===l||-1===u?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(md={focusedElem:e,selectionRange:n},bp=!1,Ol=t;null!==Ol;)if(e=(t=Ol).child,1028&t.subtreeFlags&&null!==e)e.return=t,Ol=e;else for(;null!==Ol;){switch(o=(t=Ol).alternate,e=t.flags,t.tag){case 0:if(4&e&&null!==(e=null!==(e=t.updateQueue)?e.events:null))for(n=0;n<e.length;n++)(i=e[n]).ref.impl=i.nextImpl;break;case 11:case 15:case 5:case 26:case 27:case 6:case 4:case 17:break;case 1:if(1024&e&&null!==o){e=void 0,n=t,i=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var m=ka(n.type,i);e=r.getSnapshotBeforeUpdate(m,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){kc(n,n.return,e)}}break;case 3:if(1024&e)if(9===(n=(e=t.stateNode.containerInfo).nodeType))Dd(e);else if(1===n)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Dd(e);break;default:e.textContent=""}break;default:if(1024&e)throw Error(s(163))}if(null!==(e=t.sibling)){e.return=t.return,Ol=e;break}Ol=t.return}}(e,t)}finally{fu=a,F.p=i,R.T=r}}Mu=1,gc(),yc(),vc()}}function gc(){if(1===Mu){Mu=0;var e=ju,t=Vu,n=!!(13878&t.flags);if(13878&t.subtreeFlags||n){n=R.T,R.T=null;var r=F.p;F.p=2;var i=fu;fu|=4;try{zl(t,e);var o=md,s=rr(e.containerInfo),a=o.focusedElem,l=o.selectionRange;if(s!==a&&a&&a.ownerDocument&&nr(a.ownerDocument.documentElement,a)){if(null!==l&&ir(a)){var u=l.start,c=l.end;if(void 0===c&&(c=u),"selectionStart"in a)a.selectionStart=u,a.selectionEnd=Math.min(c,a.value.length);else{var d=a.ownerDocument||document,p=d&&d.defaultView||window;if(p.getSelection){var f=p.getSelection(),h=a.textContent.length,m=Math.min(l.start,h),g=void 0===l.end?m:Math.min(l.end,h);!f.extend&&m>g&&(s=g,g=m,m=s);var y=tr(a,m),v=tr(a,g);if(y&&v&&(1!==f.rangeCount||f.anchorNode!==y.node||f.anchorOffset!==y.offset||f.focusNode!==v.node||f.focusOffset!==v.offset)){var b=d.createRange();b.setStart(y.node,y.offset),f.removeAllRanges(),m>g?(f.addRange(b),f.extend(v.node,v.offset)):(b.setEnd(v.node,v.offset),f.addRange(b))}}}}for(d=[],f=a;f=f.parentNode;)1===f.nodeType&&d.push({element:f,left:f.scrollLeft,top:f.scrollTop});for("function"==typeof a.focus&&a.focus(),a=0;a<d.length;a++){var E=d[a];E.element.scrollLeft=E.left,E.element.scrollTop=E.top}}bp=!!hd,md=hd=null}finally{fu=i,F.p=r,R.T=n}}e.current=t,Mu=2}}function yc(){if(2===Mu){Mu=0;var e=ju,t=Vu,n=!!(8772&t.flags);if(8772&t.subtreeFlags||n){n=R.T,R.T=null;var r=F.p;F.p=2;var i=fu;fu|=4;try{Rl(e,t.alternate,t)}finally{fu=i,F.p=r,R.T=n}}Mu=3}}function vc(){if(4===Mu||3===Mu){Mu=0,ae();var e=ju,t=Vu,n=Ku,r=$u;10256&t.subtreeFlags||10256&t.flags?Mu=5:(Mu=0,Vu=ju=null,bc(e,e.pendingLanes));var i=e.pendingLanes;if(0===i&&(Pu=null),Me(n),t=t.stateNode,ve&&"function"==typeof ve.onCommitFiberRoot)try{ve.onCommitFiberRoot(ye,t,void 0,!(128&~t.current.flags))}catch(e){}if(null!==r){t=R.T,i=F.p,F.p=2,R.T=null;try{for(var o=e.onRecoverableError,s=0;s<r.length;s++){var a=r[s];o(a.value,{componentStack:a.stack})}}finally{R.T=t,F.p=i}}3&Ku&&Ec(),Fc(e),i=e.pendingLanes,261930&n&&42&i?e===zu?qu++:(qu=0,zu=e):qu=0,Pc(0,!1)}}function bc(e,t){0===(e.pooledCacheLanes&=t)&&null!=(t=e.pooledCache)&&(e.pooledCache=null,Ki(t))}function Ec(){return gc(),yc(),vc(),Tc()}function Tc(){if(5!==Mu)return!1;var e=ju,t=Uu;Uu=0;var n=Me(Ku),r=R.T,i=F.p;try{F.p=32>n?32:n,R.T=null,n=Bu,Bu=null;var o=ju,a=Ku;if(Mu=0,Vu=ju=null,Ku=0,6&fu)throw Error(s(331));var l=fu;if(fu|=4,lu(o.current),eu(o,o.current,a,n),fu=l,Pc(0,!1),ve&&"function"==typeof ve.onPostCommitFiberRoot)try{ve.onPostCommitFiberRoot(ye,o)}catch(e){}return!0}finally{F.p=i,R.T=r,bc(e,t)}}function wc(e,t,n){t=Hr(n,t),null!==(e=Eo(e,t=Da(e.stateNode,t,2),2))&&(Ie(e,2),Fc(e))}function kc(e,t,n){if(3===e.tag)wc(e,e,n);else for(;null!==t;){if(3===t.tag){wc(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Pu||!Pu.has(r))){e=Hr(n,e),null!==(r=Eo(t,n=Aa(2),2))&&(La(n,r,t,e),Ie(r,2),Fc(r));break}}t=t.return}}function Sc(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new pu;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)||(Tu=!0,i.add(n),e=xc.bind(null,e,t,n),t.then(e,e))}function xc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,hu===e&&(gu&n)===n&&(4===ku||3===ku&&(62914560&gu)===gu&&300>le()-Iu?!(2&fu)&&tc(e,0):Cu|=n,Nu===gu&&(Nu=0)),Fc(e)}function Cc(e,t){0===t&&(t=Ae()),null!==(e=Or(e,t))&&(Ie(e,t),Fc(e))}function _c(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Cc(e,n)}function Nc(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(s(314))}null!==r&&r.delete(t),Cc(e,n)}var Dc=null,Ac=null,Lc=!1,Ic=!1,Oc=!1,Rc=0;function Fc(e){e!==Ac&&null===e.next&&(null===Ac?Dc=Ac=e:Ac=Ac.next=e),Ic=!0,Lc||(Lc=!0,Sd(function(){6&fu?ie(ce,Mc):jc()}))}function Pc(e,t){if(!Oc&&Ic){Oc=!0;do{for(var n=!1,r=Dc;null!==r;){if(!t)if(0!==e){var i=r.pendingLanes;if(0===i)var o=0;else{var s=r.suspendedLanes,a=r.pingedLanes;o=(1<<31-Ee(42|e)+1)-1,o=201326741&(o&=i&~(s&~a))?201326741&o|1:o?2|o:0}0!==o&&(n=!0,Uc(r,o))}else o=gu,!(3&(o=_e(r,r===hu?o:0,null!==r.cancelPendingCommit||-1!==r.timeoutHandle)))||Ne(r,o)||(n=!0,Uc(r,o));r=r.next}}while(n);Oc=!1}}function Mc(){jc()}function jc(){Ic=Lc=!1;var e,t=0;0!==Rc&&((e=window.event)&&"popstate"===e.type?e!==Ed&&(Ed=e,1):(Ed=null,0))&&(t=Rc);for(var n=le(),r=null,i=Dc;null!==i;){var o=i.next,s=Vc(i,n);0===s?(i.next=null,null===r?Dc=o:r.next=o,null===o&&(Ac=r)):(r=i,(0!==t||3&s)&&(Ic=!0)),i=o}0!==Mu&&5!==Mu||Pc(t,!1),0!==Rc&&(Rc=0)}function Vc(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=-62914561&e.pendingLanes;0<o;){var s=31-Ee(o),a=1<<s,l=i[s];-1===l?0!==(a&n)&&0===(a&r)||(i[s]=De(a,t)):l<=t&&(e.expiredLanes|=a),o&=~a}if(n=gu,n=_e(e,e===(t=hu)?n:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle),r=e.callbackNode,0===n||e===t&&(2===yu||9===yu)||null!==e.cancelPendingCommit)return null!==r&&null!==r&&oe(r),e.callbackNode=null,e.callbackPriority=0;if(!(3&n)||Ne(e,n)){if((t=n&-n)===e.callbackPriority)return t;switch(null!==r&&oe(r),Me(n)){case 2:case 8:n=de;break;case 32:default:n=pe;break;case 268435456:n=he}return r=Kc.bind(null,e),n=ie(n,r),e.callbackPriority=t,e.callbackNode=n,t}return null!==r&&null!==r&&oe(r),e.callbackPriority=2,e.callbackNode=null,2}function Kc(e,t){if(0!==Mu&&5!==Mu)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Ec()&&e.callbackNode!==n)return null;var r=gu;return 0===(r=_e(e,e===hu?r:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle))?null:(Wu(e,r,t),Vc(e,le()),null!=e.callbackNode&&e.callbackNode===n?Kc.bind(null,e):null)}function Uc(e,t){if(Ec())return null;Wu(e,t,!0)}function Bc(){if(0===Rc){var e=$i;0===e&&(e=ke,!(261888&(ke<<=1))&&(ke=256)),Rc=e}return Rc}function $c(e){return null==e||"symbol"==typeof e||"boolean"==typeof e?null:"function"==typeof e?e:Lt(""+e)}function qc(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}for(var zc=0;zc<Sr.length;zc++){var Gc=Sr[zc];xr(Gc.toLowerCase(),"on"+(Gc[0].toUpperCase()+Gc.slice(1)))}xr(gr,"onAnimationEnd"),xr(yr,"onAnimationIteration"),xr(vr,"onAnimationStart"),xr("dblclick","onDoubleClick"),xr("focusin","onFocus"),xr("focusout","onBlur"),xr(br,"onTransitionRun"),xr(Er,"onTransitionStart"),xr(Tr,"onTransitionCancel"),xr(wr,"onTransitionEnd"),it("onMouseEnter",["mouseout","mouseover"]),it("onMouseLeave",["mouseout","mouseover"]),it("onPointerEnter",["pointerout","pointerover"]),it("onPointerLeave",["pointerout","pointerover"]),rt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),rt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),rt("onBeforeInput",["compositionend","keypress","textInput","paste"]),rt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),rt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),rt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Qc="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(" "),Hc=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Qc));function Wc(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 s=r.length-1;0<=s;s--){var a=r[s],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==o&&i.isPropagationStopped())break e;o=a,i.currentTarget=u;try{o(i)}catch(e){Cr(e)}i.currentTarget=null,o=l}else for(s=0;s<r.length;s++){if(l=(a=r[s]).instance,u=a.currentTarget,a=a.listener,l!==o&&i.isPropagationStopped())break e;o=a,i.currentTarget=u;try{o(i)}catch(e){Cr(e)}i.currentTarget=null,o=l}}}}function Yc(e,t){var n=t[qe];void 0===n&&(n=t[qe]=new Set);var r=e+"__bubble";n.has(r)||(ed(t,e,2,!1),n.add(r))}function Xc(e,t,n){var r=0;t&&(r|=4),ed(n,e,r,t)}var Jc="_reactListening"+Math.random().toString(36).slice(2);function Zc(e){if(!e[Jc]){e[Jc]=!0,tt.forEach(function(t){"selectionchange"!==t&&(Hc.has(t)||Xc(t,!1,e),Xc(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Jc]||(t[Jc]=!0,Xc("selectionchange",!1,t))}}function ed(e,t,n,r){switch(Cp(t)){case 2:var i=Ep;break;case 8:i=Tp;break;default:i=wp}n=i.bind(null,t,n,e),i=void 0,!Bt||"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 td(e,t,n,r,i){var o=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var s=r.tag;if(3===s||4===s){var a=r.stateNode.containerInfo;if(a===i)break;if(4===s)for(s=r.return;null!==s;){var u=s.tag;if((3===u||4===u)&&s.stateNode.containerInfo===i)return;s=s.return}for(;null!==a;){if(null===(s=Ye(a)))return;if(5===(u=s.tag)||6===u||26===u||27===u){r=o=s;continue e}a=a.parentNode}}r=r.return}Vt(function(){var r=o,i=Rt(n),s=[];e:{var a=kr.get(e);if(void 0!==a){var u=nn,c=e;switch(e){case"keypress":if(0===Ht(n))break e;case"keydown":case"keyup":u=vn;break;case"focusin":c="focus",u=un;break;case"focusout":c="blur",u=un;break;case"beforeblur":case"afterblur":u=un;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":u=an;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=ln;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=En;break;case gr:case yr:case vr:u=cn;break;case wr:u=Tn;break;case"scroll":case"scrollend":u=on;break;case"wheel":u=wn;break;case"copy":case"cut":case"paste":u=dn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=bn;break;case"toggle":case"beforetoggle":u=kn}var d=!!(4&t),p=!d&&("scroll"===e||"scrollend"===e),f=d?null!==a?a+"Capture":null:a;d=[];for(var h,m=r;null!==m;){var g=m;if(h=g.stateNode,5!==(g=g.tag)&&26!==g&&27!==g||null===h||null===f||null!=(g=Kt(m,f))&&d.push(nd(m,g,h)),p)break;m=m.return}0<d.length&&(a=new u(a,c,null,n,i),s.push({event:a,listeners:d}))}}if(!(7&t)){if(u="mouseout"===e||"pointerout"===e,(!(a="mouseover"===e||"pointerover"===e)||n===Ot||!(c=n.relatedTarget||n.fromElement)||!Ye(c)&&!c[$e])&&(u||a)&&(a=i.window===i?i:(a=i.ownerDocument)?a.defaultView||a.parentWindow:window,u?(u=r,null!==(c=(c=n.relatedTarget||n.toElement)?Ye(c):null)&&(p=l(c),d=c.tag,c!==p||5!==d&&27!==d&&6!==d)&&(c=null)):(u=null,c=r),u!==c)){if(d=an,g="onMouseLeave",f="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(d=bn,g="onPointerLeave",f="onPointerEnter",m="pointer"),p=null==u?a:Je(u),h=null==c?a:Je(c),(a=new d(g,m+"leave",u,n,i)).target=p,a.relatedTarget=h,g=null,Ye(i)===r&&((d=new d(f,m+"enter",c,n,i)).target=h,d.relatedTarget=p,g=d),p=g,u&&c)e:{for(d=id,m=c,h=0,g=f=u;g;g=d(g))h++;g=0;for(var y=m;y;y=d(y))g++;for(;0<h-g;)f=d(f),h--;for(;0<g-h;)m=d(m),g--;for(;h--;){if(f===m||null!==m&&f===m.alternate){d=f;break e}f=d(f),m=d(m)}d=null}else d=null;null!==u&&od(s,a,u,d,!1),null!==c&&null!==p&&od(s,p,c,d,!0)}if("select"===(u=(a=r?Je(r):window).nodeName&&a.nodeName.toLowerCase())||"input"===u&&"file"===a.type)var v=Un;else if(Fn(a))if(Bn)v=Xn;else{v=Wn;var b=Hn}else!(u=a.nodeName)||"input"!==u.toLowerCase()||"checkbox"!==a.type&&"radio"!==a.type?r&&Nt(r.elementType)&&(v=Un):v=Yn;switch(v&&(v=v(e,r))?Pn(s,v,n,i):(b&&b(e,a,r),"focusout"===e&&r&&"number"===a.type&&null!=r.memoizedProps.value&&Et(a,"number",a.value)),b=r?Je(r):window,e){case"focusin":(Fn(b)||"true"===b.contentEditable)&&(sr=b,ar=r,lr=null);break;case"focusout":lr=ar=sr=null;break;case"mousedown":ur=!0;break;case"contextmenu":case"mouseup":case"dragend":ur=!1,cr(s,n,i);break;case"selectionchange":if(or)break;case"keydown":case"keyup":cr(s,n,i)}var E;if(xn)e:{switch(e){case"compositionstart":var T="onCompositionStart";break e;case"compositionend":T="onCompositionEnd";break e;case"compositionupdate":T="onCompositionUpdate";break e}T=void 0}else On?Ln(e,n)&&(T="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(T="onCompositionStart");T&&(Nn&&"ko"!==n.locale&&(On||"onCompositionStart"!==T?"onCompositionEnd"===T&&On&&(E=Qt()):(zt="value"in(qt=i)?qt.value:qt.textContent,On=!0)),0<(b=rd(r,T)).length&&(T=new pn(T,e,null,n,i),s.push({event:T,listeners:b}),(E||null!==(E=In(n)))&&(T.data=E))),(E=_n?function(e,t){switch(e){case"compositionend":return In(t);case"keypress":return 32!==t.which?null:(An=!0,Dn);case"textInput":return(e=t.data)===Dn&&An?null:e;default:return null}}(e,n):function(e,t){if(On)return"compositionend"===e||!xn&&Ln(e,t)?(e=Qt(),Gt=zt=qt=null,On=!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 Nn&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(T=rd(r,"onBeforeInput")).length&&(b=new pn("onBeforeInput","beforeinput",null,n,i),s.push({event:b,listeners:T}),b.data=E),function(e,t,n,r,i){if("submit"===t&&n&&n.stateNode===i){var o=$c((i[Be]||null).action),s=r.submitter;s&&null!==(t=(t=s[Be]||null)?$c(t.formAction):s.getAttribute("formAction"))&&(o=t,s=null);var a=new nn("action","action",null,r,i);e.push({event:a,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(0!==Rc){var e=s?qc(i,s):new FormData(i);ta(n,{pending:!0,data:e,method:i.method,action:o},null,e)}}else"function"==typeof o&&(a.preventDefault(),e=s?qc(i,s):new FormData(i),ta(n,{pending:!0,data:e,method:i.method,action:o},o,e))},currentTarget:i}]})}}(s,e,r,n,i)}Wc(s,t)})}function nd(e,t,n){return{instance:e,listener:t,currentTarget:n}}function rd(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;if(5!==(i=i.tag)&&26!==i&&27!==i||null===o||(null!=(i=Kt(e,n))&&r.unshift(nd(e,i,o)),null!=(i=Kt(e,t))&&r.push(nd(e,i,o))),3===e.tag)return r;e=e.return}return[]}function id(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag&&27!==e.tag);return e||null}function od(e,t,n,r,i){for(var o=t._reactName,s=[];null!==n&&n!==r;){var a=n,l=a.alternate,u=a.stateNode;if(a=a.tag,null!==l&&l===r)break;5!==a&&26!==a&&27!==a||null===u||(l=u,i?null!=(u=Kt(n,o))&&s.unshift(nd(n,u,l)):i||null!=(u=Kt(n,o))&&s.push(nd(n,u,l))),n=n.return}0!==s.length&&e.push({event:t,listeners:s})}var sd=/\r\n?/g,ad=/\u0000|\uFFFD/g;function ld(e){return("string"==typeof e?e:""+e).replace(sd,"\n").replace(ad,"")}function ud(e,t){return t=ld(t),ld(e)===t}function cd(e,t,n,r,i,o){switch(n){case"children":"string"==typeof r?"body"===t||"textarea"===t&&""===r||St(e,r):("number"==typeof r||"bigint"==typeof r)&&"body"!==t&&St(e,""+r);break;case"className":ut(e,"class",r);break;case"tabIndex":ut(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":ut(e,n,r);break;case"style":_t(e,r,o);break;case"data":if("object"!==t){ut(e,"data",r);break}case"src":case"href":if(""===r&&("a"!==t||"href"!==n)){e.removeAttribute(n);break}if(null==r||"function"==typeof r||"symbol"==typeof r||"boolean"==typeof r){e.removeAttribute(n);break}r=Lt(""+r),e.setAttribute(n,r);break;case"action":case"formAction":if("function"==typeof r){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}if("function"==typeof o&&("formAction"===n?("input"!==t&&cd(e,t,"name",i.name,i,null),cd(e,t,"formEncType",i.formEncType,i,null),cd(e,t,"formMethod",i.formMethod,i,null),cd(e,t,"formTarget",i.formTarget,i,null)):(cd(e,t,"encType",i.encType,i,null),cd(e,t,"method",i.method,i,null),cd(e,t,"target",i.target,i,null))),null==r||"symbol"==typeof r||"boolean"==typeof r){e.removeAttribute(n);break}r=Lt(""+r),e.setAttribute(n,r);break;case"onClick":null!=r&&(e.onclick=It);break;case"onScroll":null!=r&&Yc("scroll",e);break;case"onScrollEnd":null!=r&&Yc("scrollend",e);break;case"dangerouslySetInnerHTML":if(null!=r){if("object"!=typeof r||!("__html"in r))throw Error(s(61));if(null!=(n=r.__html)){if(null!=i.children)throw Error(s(60));e.innerHTML=n}}break;case"multiple":e.multiple=r&&"function"!=typeof r&&"symbol"!=typeof r;break;case"muted":e.muted=r&&"function"!=typeof r&&"symbol"!=typeof r;break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":case"autoFocus":break;case"xlinkHref":if(null==r||"function"==typeof r||"boolean"==typeof r||"symbol"==typeof r){e.removeAttribute("xlink:href");break}n=Lt(""+r),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":null!=r&&"function"!=typeof r&&"symbol"!=typeof r?e.setAttribute(n,""+r):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":r&&"function"!=typeof r&&"symbol"!=typeof r?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":!0===r?e.setAttribute(n,""):!1!==r&&null!=r&&"function"!=typeof r&&"symbol"!=typeof r?e.setAttribute(n,r):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":null!=r&&"function"!=typeof r&&"symbol"!=typeof r&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case"rowSpan":case"start":null==r||"function"==typeof r||"symbol"==typeof r||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case"popover":Yc("beforetoggle",e),Yc("toggle",e),lt(e,"popover",r);break;case"xlinkActuate":ct(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":ct(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":ct(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":ct(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":ct(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":ct(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":ct(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":ct(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":ct(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":lt(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])&&lt(e,n=Dt.get(n)||n,r)}}function dd(e,t,n,r,i,o){switch(n){case"style":_t(e,r,o);break;case"dangerouslySetInnerHTML":if(null!=r){if("object"!=typeof r||!("__html"in r))throw Error(s(61));if(null!=(n=r.__html)){if(null!=i.children)throw Error(s(60));e.innerHTML=n}}break;case"children":"string"==typeof r?St(e,r):("number"==typeof r||"bigint"==typeof r)&&St(e,""+r);break;case"onScroll":null!=r&&Yc("scroll",e);break;case"onScrollEnd":null!=r&&Yc("scrollend",e);break;case"onClick":null!=r&&(e.onclick=It);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":case"innerText":case"textContent":break;default:nt.hasOwnProperty(n)||("o"!==n[0]||"n"!==n[1]||(i=n.endsWith("Capture"),t=n.slice(2,i?n.length-7:void 0),"function"==typeof(o=null!=(o=e[Be]||null)?o[n]:null)&&e.removeEventListener(t,o,i),"function"!=typeof r)?n in e?e[n]=r:!0===r?e.setAttribute(n,""):lt(e,n,r):("function"!=typeof o&&null!==o&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,i)))}}function pd(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Yc("error",e),Yc("load",e);var r,i=!1,o=!1;for(r in n)if(n.hasOwnProperty(r)){var a=n[r];if(null!=a)switch(r){case"src":i=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:cd(e,t,r,a,n,null)}}return o&&cd(e,t,"srcSet",n.srcSet,n,null),void(i&&cd(e,t,"src",n.src,n,null));case"input":Yc("invalid",e);var l=r=a=o=null,u=null,c=null;for(i in n)if(n.hasOwnProperty(i)){var d=n[i];if(null!=d)switch(i){case"name":o=d;break;case"type":a=d;break;case"checked":u=d;break;case"defaultChecked":c=d;break;case"value":r=d;break;case"defaultValue":l=d;break;case"children":case"dangerouslySetInnerHTML":if(null!=d)throw Error(s(137,t));break;default:cd(e,t,i,d,n,null)}}return void bt(e,r,l,u,c,a,o,!1);case"select":for(o in Yc("invalid",e),i=a=r=null,n)if(n.hasOwnProperty(o)&&null!=(l=n[o]))switch(o){case"value":r=l;break;case"defaultValue":a=l;break;case"multiple":i=l;default:cd(e,t,o,l,n,null)}return t=r,n=a,e.multiple=!!i,void(null!=t?Tt(e,!!i,t,!1):null!=n&&Tt(e,!!i,n,!0));case"textarea":for(a in Yc("invalid",e),r=o=i=null,n)if(n.hasOwnProperty(a)&&null!=(l=n[a]))switch(a){case"value":i=l;break;case"defaultValue":o=l;break;case"children":r=l;break;case"dangerouslySetInnerHTML":if(null!=l)throw Error(s(91));break;default:cd(e,t,a,l,n,null)}return void kt(e,i,o,r);case"option":for(u in n)n.hasOwnProperty(u)&&null!=(i=n[u])&&("selected"===u?e.selected=i&&"function"!=typeof i&&"symbol"!=typeof i:cd(e,t,u,i,n,null));return;case"dialog":Yc("beforetoggle",e),Yc("toggle",e),Yc("cancel",e),Yc("close",e);break;case"iframe":case"object":Yc("load",e);break;case"video":case"audio":for(i=0;i<Qc.length;i++)Yc(Qc[i],e);break;case"image":Yc("error",e),Yc("load",e);break;case"details":Yc("toggle",e);break;case"embed":case"source":case"link":Yc("error",e),Yc("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(c in n)if(n.hasOwnProperty(c)&&null!=(i=n[c]))switch(c){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:cd(e,t,c,i,n,null)}return;default:if(Nt(t)){for(d in n)n.hasOwnProperty(d)&&void 0!==(i=n[d])&&dd(e,t,d,i,n,void 0);return}}for(l in n)n.hasOwnProperty(l)&&null!=(i=n[l])&&cd(e,t,l,i,n,null)}function fd(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}var hd=null,md=null;function gd(e){return 9===e.nodeType?e:e.ownerDocument}function yd(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function vd(e,t){if(0===e)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return 1===e&&"foreignObject"===t?0:e}function bd(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"bigint"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Ed=null,Td="function"==typeof setTimeout?setTimeout:void 0,wd="function"==typeof clearTimeout?clearTimeout:void 0,kd="function"==typeof Promise?Promise:void 0,Sd="function"==typeof queueMicrotask?queueMicrotask:void 0!==kd?function(e){return kd.resolve(null).then(e).catch(xd)}:Td;function xd(e){setTimeout(function(){throw e})}function Cd(e){return"head"===e}function _d(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)||"/&"===n){if(0===r)return e.removeChild(i),void qp(t);r--}else if("$"===n||"$?"===n||"$~"===n||"$!"===n||"&"===n)r++;else if("html"===n)jd(e.ownerDocument.documentElement);else if("head"===n){jd(n=e.ownerDocument.head);for(var o=n.firstChild;o;){var s=o.nextSibling,a=o.nodeName;o[He]||"SCRIPT"===a||"STYLE"===a||"LINK"===a&&"stylesheet"===o.rel.toLowerCase()||n.removeChild(o),o=s}}else"body"===n&&jd(e.ownerDocument.body);n=i}while(n);qp(t)}function Nd(e,t){var n=e;e=0;do{var r=n.nextSibling;if(1===n.nodeType?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",""===n.getAttribute("style")&&n.removeAttribute("style")):3===n.nodeType&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),r&&8===r.nodeType)if("/$"===(n=r.data)){if(0===e)break;e--}else"$"!==n&&"$?"!==n&&"$~"!==n&&"$!"!==n||e++;n=r}while(n)}function Dd(e){var t=e.firstChild;for(t&&10===t.nodeType&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Dd(n),We(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if("stylesheet"===n.rel.toLowerCase())continue}e.removeChild(n)}}function Ad(e,t){for(;8!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!t)return null;if(null===(e=Od(e.nextSibling)))return null}return e}function Ld(e){return"$?"===e.data||"$~"===e.data}function Id(e){return"$!"===e.data||"$?"===e.data&&"loading"!==e.ownerDocument.readyState}function Od(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||"$~"===t||"&"===t||"F!"===t||"F"===t)break;if("/$"===t||"/&"===t)return null}}return e}var Rd=null;function Fd(e){e=e.nextSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n||"/&"===n){if(0===t)return Od(e.nextSibling);t--}else"$"!==n&&"$!"!==n&&"$?"!==n&&"$~"!==n&&"&"!==n||t++}e=e.nextSibling}return null}function Pd(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n||"$~"===n||"&"===n){if(0===t)return e;t--}else"/$"!==n&&"/&"!==n||t++}e=e.previousSibling}return null}function Md(e,t,n){switch(t=gd(n),e){case"html":if(!(e=t.documentElement))throw Error(s(452));return e;case"head":if(!(e=t.head))throw Error(s(453));return e;case"body":if(!(e=t.body))throw Error(s(454));return e;default:throw Error(s(451))}}function jd(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);We(e)}var Vd=new Map,Kd=new Set;function Ud(e){return"function"==typeof e.getRootNode?e.getRootNode():9===e.nodeType?e:e.ownerDocument}var Bd=F.d;F.d={f:function(){var e=Bd.f(),t=Zu();return e||t},r:function(e){var t=Xe(e);null!==t&&5===t.tag&&"form"===t.type?ra(t):Bd.r(e)},D:function(e){Bd.D(e),qd("dns-prefetch",e,null)},C:function(e,t){Bd.C(e,t),qd("preconnect",e,t)},L:function(e,t,n){Bd.L(e,t,n);var r=$d;if(r&&e&&t){var i='link[rel="preload"][as="'+yt(t)+'"]';"image"===t&&n&&n.imageSrcSet?(i+='[imagesrcset="'+yt(n.imageSrcSet)+'"]',"string"==typeof n.imageSizes&&(i+='[imagesizes="'+yt(n.imageSizes)+'"]')):i+='[href="'+yt(e)+'"]';var o=i;switch(t){case"style":o=Gd(e);break;case"script":o=Wd(e)}Vd.has(o)||(e=f({rel:"preload",href:"image"===t&&n&&n.imageSrcSet?void 0:e,as:t},n),Vd.set(o,e),null!==r.querySelector(i)||"style"===t&&r.querySelector(Qd(o))||"script"===t&&r.querySelector(Yd(o))||(pd(t=r.createElement("link"),"link",e),et(t),r.head.appendChild(t)))}},m:function(e,t){Bd.m(e,t);var n=$d;if(n&&e){var r=t&&"string"==typeof t.as?t.as:"script",i='link[rel="modulepreload"][as="'+yt(r)+'"][href="'+yt(e)+'"]',o=i;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=Wd(e)}if(!Vd.has(o)&&(e=f({rel:"modulepreload",href:e},t),Vd.set(o,e),null===n.querySelector(i))){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Yd(o)))return}pd(r=n.createElement("link"),"link",e),et(r),n.head.appendChild(r)}}},X:function(e,t){Bd.X(e,t);var n=$d;if(n&&e){var r=Ze(n).hoistableScripts,i=Wd(e),o=r.get(i);o||((o=n.querySelector(Yd(i)))||(e=f({src:e,async:!0},t),(t=Vd.get(i))&&ep(e,t),et(o=n.createElement("script")),pd(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},r.set(i,o))}},S:function(e,t,n){Bd.S(e,t,n);var r=$d;if(r&&e){var i=Ze(r).hoistableStyles,o=Gd(e);t=t||"default";var s=i.get(o);if(!s){var a={loading:0,preload:null};if(s=r.querySelector(Qd(o)))a.loading=5;else{e=f({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Vd.get(o))&&Zd(e,n);var l=s=r.createElement("link");et(l),pd(l,"link",e),l._p=new Promise(function(e,t){l.onload=e,l.onerror=t}),l.addEventListener("load",function(){a.loading|=1}),l.addEventListener("error",function(){a.loading|=2}),a.loading|=4,Jd(s,t,r)}s={type:"stylesheet",instance:s,count:1,state:a},i.set(o,s)}}},M:function(e,t){Bd.M(e,t);var n=$d;if(n&&e){var r=Ze(n).hoistableScripts,i=Wd(e),o=r.get(i);o||((o=n.querySelector(Yd(i)))||(e=f({src:e,async:!0,type:"module"},t),(t=Vd.get(i))&&ep(e,t),et(o=n.createElement("script")),pd(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},r.set(i,o))}}};var $d="undefined"==typeof document?null:document;function qd(e,t,n){var r=$d;if(r&&"string"==typeof t&&t){var i=yt(t);i='link[rel="'+e+'"][href="'+i+'"]',"string"==typeof n&&(i+='[crossorigin="'+n+'"]'),Kd.has(i)||(Kd.add(i),e={rel:e,crossOrigin:n,href:t},null===r.querySelector(i)&&(pd(t=r.createElement("link"),"link",e),et(t),r.head.appendChild(t)))}}function zd(e,t,n,r){var i,o,a,l,u=(u=G.current)?Ud(u):null;if(!u)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return"string"==typeof n.precedence&&"string"==typeof n.href?(t=Gd(n.href),(r=(n=Ze(u).hoistableStyles).get(t))||(r={type:"style",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if("stylesheet"===n.rel&&"string"==typeof n.href&&"string"==typeof n.precedence){e=Gd(n.href);var c=Ze(u).hoistableStyles,d=c.get(e);if(d||(u=u.ownerDocument||u,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,d),(c=u.querySelector(Qd(e)))&&!c._p&&(d.instance=c,d.state.loading=5),Vd.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Vd.set(e,n),c||(i=u,o=e,a=n,l=d.state,i.querySelector('link[rel="preload"][as="style"]['+o+"]")?l.loading=1:(o=i.createElement("link"),l.preload=o,o.addEventListener("load",function(){return l.loading|=1}),o.addEventListener("error",function(){return l.loading|=2}),pd(o,"link",a),et(o),i.head.appendChild(o))))),t&&null===r)throw Error(s(528,""));return d}if(t&&null!==r)throw Error(s(529,""));return null;case"script":return t=n.async,"string"==typeof(n=n.src)&&t&&"function"!=typeof t&&"symbol"!=typeof t?(t=Wd(n),(r=(n=Ze(u).hoistableScripts).get(t))||(r={type:"script",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function Gd(e){return'href="'+yt(e)+'"'}function Qd(e){return'link[rel="stylesheet"]['+e+"]"}function Hd(e){return f({},e,{"data-precedence":e.precedence,precedence:null})}function Wd(e){return'[src="'+yt(e)+'"]'}function Yd(e){return"script[async]"+e}function Xd(e,t,n){if(t.count++,null===t.instance)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+yt(n.href)+'"]');if(r)return t.instance=r,et(r),r;var i=f({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return et(r=(e.ownerDocument||e).createElement("style")),pd(r,"style",i),Jd(r,n.precedence,e),t.instance=r;case"stylesheet":i=Gd(n.href);var o=e.querySelector(Qd(i));if(o)return t.state.loading|=4,t.instance=o,et(o),o;r=Hd(n),(i=Vd.get(i))&&Zd(r,i),et(o=(e.ownerDocument||e).createElement("link"));var a=o;return a._p=new Promise(function(e,t){a.onload=e,a.onerror=t}),pd(o,"link",r),t.state.loading|=4,Jd(o,n.precedence,e),t.instance=o;case"script":return o=Wd(n.src),(i=e.querySelector(Yd(o)))?(t.instance=i,et(i),i):(r=n,(i=Vd.get(o))&&ep(r=f({},n),i),et(i=(e=e.ownerDocument||e).createElement("script")),pd(i,"link",r),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(s(443,t.type))}else"stylesheet"===t.type&&!(4&t.state.loading)&&(r=t.instance,t.state.loading|=4,Jd(r,n.precedence,e));return t.instance}function Jd(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=r.length?r[r.length-1]:null,o=i,s=0;s<r.length;s++){var a=r[s];if(a.dataset.precedence===t)o=a;else if(o!==i)break}o?o.parentNode.insertBefore(e,o.nextSibling):(t=9===n.nodeType?n.head:n).insertBefore(e,t.firstChild)}function Zd(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.title&&(e.title=t.title)}function ep(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.integrity&&(e.integrity=t.integrity)}var tp=null;function np(e,t,n){if(null===tp){var r=new Map,i=tp=new Map;i.set(n,r)}else(r=(i=tp).get(n))||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var o=n[i];if(!(o[He]||o[Ue]||"link"===e&&"stylesheet"===o.getAttribute("rel"))&&"http://www.w3.org/2000/svg"!==o.namespaceURI){var s=o.getAttribute(t)||"";s=e+s;var a=r.get(s);a?a.push(o):r.set(s,[o])}}return r}function rp(e,t,n){(e=e.ownerDocument||e).head.insertBefore(n,"title"===t?e.querySelector("head > title"):null)}function ip(e){return!!("stylesheet"!==e.type||3&e.state.loading)}var op=0;function sp(){if(this.count--,0===this.count&&(0===this.imgCount||!this.waitingForImages))if(this.stylesheets)lp(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}var ap=null;function lp(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,ap=new Map,t.forEach(up,e),ap=null,sp.call(e))}function up(e,t){if(!(4&t.state.loading)){var n=ap.get(e);if(n)var r=n.get(null);else{n=new Map,ap.set(e,n);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<i.length;o++){var s=i[o];"LINK"!==s.nodeName&&"not all"===s.getAttribute("media")||(n.set(s.dataset.precedence,s),r=s)}r&&n.set(null,r)}s=(i=t.instance).getAttribute("data-precedence"),(o=n.get(s)||r)===r&&n.set(null,i),n.set(s,i),this.count++,r=sp.bind(this),i.addEventListener("load",r),i.addEventListener("error",r),o?o.parentNode.insertBefore(i,o.nextSibling):(e=9===e.nodeType?e.head:e).insertBefore(i,e.firstChild),t.state.loading|=4}}var cp={$$typeof:T,Provider:null,Consumer:null,_currentValue:P,_currentValue2:P,_threadCount:0};function dp(e,t,n,r,i,o,s,a,l){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Le(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Le(0),this.hiddenUpdates=Le(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=o,this.onRecoverableError=s,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=l,this.incompleteTransitions=new Map}function pp(e,t,n,r,i,o,s,a,l,u,c,d){return e=new dp(e,t,n,s,l,u,c,d,a),t=1,!0===o&&(t|=24),o=jr(3,null,null,t),e.current=o,o.stateNode=e,(t=Vi()).refCount++,e.pooledCache=t,t.refCount++,o.memoizedState={element:r,isDehydrated:n,cache:t},yo(o),e}function fp(e){return e?e=Pr:Pr}function hp(e,t,n,r,i,o){i=fp(i),null===r.context?r.context=i:r.pendingContext=i,(r=bo(t)).payload={element:n},null!==(o=void 0===o?null:o)&&(r.callback=o),null!==(n=Eo(e,r,t))&&(Hu(n,0,t),To(n,e,t))}function mp(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function gp(e,t){mp(e,t),(e=e.alternate)&&mp(e,t)}function yp(e){if(13===e.tag||31===e.tag){var t=Or(e,67108864);null!==t&&Hu(t,0,67108864),gp(e,67108864)}}function vp(e){if(13===e.tag||31===e.tag){var t=Gu(),n=Or(e,t=Pe(t));null!==n&&Hu(n,0,t),gp(e,t)}}var bp=!0;function Ep(e,t,n,r){var i=R.T;R.T=null;var o=F.p;try{F.p=2,wp(e,t,n,r)}finally{F.p=o,R.T=i}}function Tp(e,t,n,r){var i=R.T;R.T=null;var o=F.p;try{F.p=8,wp(e,t,n,r)}finally{F.p=o,R.T=i}}function wp(e,t,n,r){if(bp){var i=kp(r);if(null===i)td(e,t,r,Sp,n),Fp(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return Np=Pp(Np,e,t,n,r,i),!0;case"dragenter":return Dp=Pp(Dp,e,t,n,r,i),!0;case"mouseover":return Ap=Pp(Ap,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Lp.set(o,Pp(Lp.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Ip.set(o,Pp(Ip.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(Fp(e,r),4&t&&-1<Rp.indexOf(e)){for(;null!==i;){var o=Xe(i);if(null!==o)switch(o.tag){case 3:if((o=o.stateNode).current.memoizedState.isDehydrated){var s=Ce(o.pendingLanes);if(0!==s){var a=o;for(a.pendingLanes|=2,a.entangledLanes|=2;s;){var l=1<<31-Ee(s);a.entanglements[1]|=l,s&=~l}Fc(o),!(6&fu)&&(Ru=le()+500,Pc(0,!1))}}break;case 31:case 13:null!==(a=Or(o,2))&&Hu(a,0,2),Zu(),gp(o,2)}if(null===(o=kp(r))&&td(e,t,r,Sp,n),o===i)break;i=o}null!==i&&r.stopPropagation()}else td(e,t,r,null,n)}}function kp(e){return xp(e=Rt(e))}var Sp=null;function xp(e){if(Sp=null,null!==(e=Ye(e))){var t=l(e);if(null===t)e=null;else{var n=t.tag;if(13===n){if(null!==(e=u(t)))return e;e=null}else if(31===n){if(null!==(e=c(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 Sp=e,null}function Cp(e){switch(e){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(ue()){case ce:return 2;case de:return 8;case pe:case fe:return 32;case he:return 268435456;default:return 32}default:return 32}}var _p=!1,Np=null,Dp=null,Ap=null,Lp=new Map,Ip=new Map,Op=[],Rp="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".split(" ");function Fp(e,t){switch(e){case"focusin":case"focusout":Np=null;break;case"dragenter":case"dragleave":Dp=null;break;case"mouseover":case"mouseout":Ap=null;break;case"pointerover":case"pointerout":Lp.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ip.delete(t.pointerId)}}function Pp(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=Xe(t))&&yp(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function Mp(e){var t=Ye(e.target);if(null!==t){var n=l(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=u(n)))return e.blockedOn=t,void Ve(e.priority,function(){vp(n)})}else if(31===t){if(null!==(t=c(n)))return e.blockedOn=t,void Ve(e.priority,function(){vp(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 jp(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=kp(e.nativeEvent);if(null!==n)return null!==(t=Xe(n))&&yp(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);Ot=r,n.target.dispatchEvent(r),Ot=null,t.shift()}return!0}function Vp(e,t,n){jp(e)&&n.delete(t)}function Kp(){_p=!1,null!==Np&&jp(Np)&&(Np=null),null!==Dp&&jp(Dp)&&(Dp=null),null!==Ap&&jp(Ap)&&(Ap=null),Lp.forEach(Vp),Ip.forEach(Vp)}function Up(e,t){e.blockedOn===t&&(e.blockedOn=null,_p||(_p=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,Kp)))}var Bp=null;function $p(e){Bp!==e&&(Bp=e,r.unstable_scheduleCallback(r.unstable_NormalPriority,function(){Bp===e&&(Bp=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if("function"!=typeof r){if(null===xp(r||n))continue;break}var o=Xe(n);null!==o&&(e.splice(t,3),t-=3,ta(o,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function qp(e){function t(t){return Up(t,e)}null!==Np&&Up(Np,e),null!==Dp&&Up(Dp,e),null!==Ap&&Up(Ap,e),Lp.forEach(t),Ip.forEach(t);for(var n=0;n<Op.length;n++){var r=Op[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Op.length&&null===(n=Op[0]).blockedOn;)Mp(n),null===n.blockedOn&&Op.shift();if(null!=(n=(e.ownerDocument||e).$$reactFormReplay))for(r=0;r<n.length;r+=3){var i=n[r],o=n[r+1],s=i[Be]||null;if("function"==typeof o)s||$p(n);else if(s){var a=null;if(o&&o.hasAttribute("formAction")){if(i=o,s=o[Be]||null)a=s.formAction;else if(null!==xp(i))continue}else a=s.action;"function"==typeof a?n[r+1]=a:(n.splice(r,3),r-=3),$p(n)}}}function zp(){function e(e){e.canIntercept&&"react-transition"===e.info&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:"manual",scroll:"manual"})}function t(){null!==i&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&null!=e.url&&navigation.navigate(e.url,{state:e.getState(),info:"react-transition",history:"replace"})}}if("object"==typeof navigation){var r=!1,i=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),null!==i&&(i(),i=null)}}}function Gp(e){this._internalRoot=e}function Qp(e){this._internalRoot=e}Qp.prototype.render=Gp.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(s(409));hp(t.current,Gu(),e,t,null,null)},Qp.prototype.unmount=Gp.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;hp(e.current,2,null,e,null,null),Zu(),t[$e]=null}},Qp.prototype.unstable_scheduleHydration=function(e){if(e){var t=je();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Op.length&&0!==t&&t<Op[n].priority;n++);Op.splice(n,0,e),0===n&&Mp(e)}};var Hp=i.version;if("19.2.4"!==Hp)throw Error(s(527,Hp,"19.2.4"));F.findDOMNode=function(e){var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(s(188));throw e=Object.keys(e).join(","),Error(s(268,e))}return e=function(e){var t=e.alternate;if(!t){if(null===(t=l(e)))throw Error(s(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return d(i),e;if(o===r)return d(i),t;o=o.sibling}throw Error(s(188))}if(n.return!==r.return)n=i,r=o;else{for(var a=!1,u=i.child;u;){if(u===n){a=!0,n=i,r=o;break}if(u===r){a=!0,r=i,n=o;break}u=u.sibling}if(!a){for(u=o.child;u;){if(u===n){a=!0,n=o,r=i;break}if(u===r){a=!0,r=o,n=i;break}u=u.sibling}if(!a)throw Error(s(189))}}if(n.alternate!==r)throw Error(s(190))}if(3!==n.tag)throw Error(s(188));return n.stateNode.current===n?e:t}(t),null===(e=null!==e?p(e):null)?null:e.stateNode};var Wp={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:R,reconcilerVersion:"19.2.4"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var Yp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Yp.isDisabled&&Yp.supportsFiber)try{ye=Yp.inject(Wp),ve=Yp}catch(e){}}t.createRoot=function(e,t){if(!a(e))throw Error(s(299));var n=!1,r="",i=Sa,o=xa,l=Ca;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onUncaughtError&&(i=t.onUncaughtError),void 0!==t.onCaughtError&&(o=t.onCaughtError),void 0!==t.onRecoverableError&&(l=t.onRecoverableError)),t=pp(e,1,!1,null,0,n,r,null,i,o,l,zp),e[$e]=t.current,Zc(e),new Gp(t)},t.hydrateRoot=function(e,t,n){if(!a(e))throw Error(s(299));var r=!1,i="",o=Sa,l=xa,u=Ca,c=null;return null!=n&&(!0===n.unstable_strictMode&&(r=!0),void 0!==n.identifierPrefix&&(i=n.identifierPrefix),void 0!==n.onUncaughtError&&(o=n.onUncaughtError),void 0!==n.onCaughtError&&(l=n.onCaughtError),void 0!==n.onRecoverableError&&(u=n.onRecoverableError),void 0!==n.formState&&(c=n.formState)),(t=pp(e,1,!0,t,0,r,i,c,o,l,u,zp)).context=fp(null),n=t.current,(i=bo(r=Pe(r=Gu()))).callback=null,Eo(n,i,r),n=r,t.current.lanes=n,Ie(t,n),Fc(t),e[$e]=t.current,Zc(e),new Qp(t)},t.version="19.2.4"},12310(e,t,n){var r=n(14041);function i(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;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."}function o(){}var s={d:{f:o,r:function(){throw Error(i(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},a=Symbol.for("react.portal"),l=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(e,t){return"font"===e?"":"string"==typeof t?"use-credentials"===t?t:"":void 0}t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType)throw Error(i(299));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:a,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.flushSync=function(e){var t=l.T,n=s.p;try{if(l.T=null,s.p=2,e)return e()}finally{l.T=t,s.p=n,s.d.f()}},t.preconnect=function(e,t){"string"==typeof e&&(t=t?"string"==typeof(t=t.crossOrigin)?"use-credentials"===t?t:"":void 0:null,s.d.C(e,t))},t.prefetchDNS=function(e){"string"==typeof e&&s.d.D(e)},t.preinit=function(e,t){if("string"==typeof e&&t&&"string"==typeof t.as){var n=t.as,r=u(n,t.crossOrigin),i="string"==typeof t.integrity?t.integrity:void 0,o="string"==typeof t.fetchPriority?t.fetchPriority:void 0;"style"===n?s.d.S(e,"string"==typeof t.precedence?t.precedence:void 0,{crossOrigin:r,integrity:i,fetchPriority:o}):"script"===n&&s.d.X(e,{crossOrigin:r,integrity:i,fetchPriority:o,nonce:"string"==typeof t.nonce?t.nonce:void 0})}},t.preinitModule=function(e,t){if("string"==typeof e)if("object"==typeof t&&null!==t){if(null==t.as||"script"===t.as){var n=u(t.as,t.crossOrigin);s.d.M(e,{crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0})}}else null==t&&s.d.M(e)},t.preload=function(e,t){if("string"==typeof e&&"object"==typeof t&&null!==t&&"string"==typeof t.as){var n=t.as,r=u(n,t.crossOrigin);s.d.L(e,n,{crossOrigin:r,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0,type:"string"==typeof t.type?t.type:void 0,fetchPriority:"string"==typeof t.fetchPriority?t.fetchPriority:void 0,referrerPolicy:"string"==typeof t.referrerPolicy?t.referrerPolicy:void 0,imageSrcSet:"string"==typeof t.imageSrcSet?t.imageSrcSet:void 0,imageSizes:"string"==typeof t.imageSizes?t.imageSizes:void 0,media:"string"==typeof t.media?t.media:void 0})}},t.preloadModule=function(e,t){if("string"==typeof e)if(t){var n=u(t.as,t.crossOrigin);s.d.m(e,{as:"string"==typeof t.as&&"script"!==t.as?t.as:void 0,crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0})}else s.d.m(e)},t.requestFormReset=function(e){s.d.r(e)},t.unstable_batchedUpdates=function(e,t){return e(t)},t.useFormState=function(e,t,n){return l.H.useFormState(e,t,n)},t.useFormStatus=function(){return l.H.useHostTransitionStatus()},t.version="19.2.4"},25873(e,t,n){!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(86974)},43144(e,t,n){!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(12310)},61197(e,t){var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function i(e,t,r){var i=null;if(void 0!==r&&(i=""+r),void 0!==t.key&&(i=""+t.key),"key"in t)for(var o in r={},t)"key"!==o&&(r[o]=t[o]);else r=t;return t=r.ref,{$$typeof:n,type:e,key:i,ref:void 0!==t?t:null,props:r}}t.Fragment=r,t.jsx=i,t.jsxs=i},42062(e,t){var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),f=Symbol.for("react.activity"),h=Symbol.iterator,m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,y={};function v(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||m}function b(){}function E(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||m}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("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")},b.prototype=v.prototype;var T=E.prototype=new b;T.constructor=E,g(T,v.prototype),T.isPureReactComponent=!0;var w=Array.isArray;function k(){}var S={H:null,A:null,T:null,S:null},x=Object.prototype.hasOwnProperty;function C(e,t,r){var i=r.ref;return{$$typeof:n,type:e,key:t,ref:void 0!==i?i:null,props:r}}function _(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var N=/\/+/g;function D(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(n=""+e.key,r={"=":"=0",":":"=2"},"$"+n.replace(/[=:]/g,function(e){return r[e]})):t.toString(36);var n,r}function A(e,t,i,o,s){var a=typeof e;"undefined"!==a&&"boolean"!==a||(e=null);var l,u,c=!1;if(null===e)c=!0;else switch(a){case"bigint":case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case n:case r:c=!0;break;case p:return A((c=e._init)(e._payload),t,i,o,s)}}if(c)return s=s(e),c=""===o?"."+D(e,0):o,w(s)?(i="",null!=c&&(i=c.replace(N,"$&/")+"/"),A(s,t,i,"",function(e){return e})):null!=s&&(_(s)&&(l=s,u=i+(null==s.key||e&&e.key===s.key?"":(""+s.key).replace(N,"$&/")+"/")+c,s=C(l.type,u,l.props)),t.push(s)),1;c=0;var d,f=""===o?".":o+":";if(w(e))for(var m=0;m<e.length;m++)c+=A(o=e[m],t,i,a=f+D(o,m),s);else if("function"==typeof(m=null===(d=e)||"object"!=typeof d?null:"function"==typeof(d=h&&d[h]||d["@@iterator"])?d:null))for(e=m.call(e),m=0;!(o=e.next()).done;)c+=A(o=o.value,t,i,a=f+D(o,m++),s);else if("object"===a){if("function"==typeof e.then)return A(function(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"==typeof e.status?e.then(k,k):(e.status="pending",e.then(function(t){"pending"===e.status&&(e.status="fulfilled",e.value=t)},function(t){"pending"===e.status&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}(e),t,i,o,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 c}function L(e,t,n){if(null==e)return e;var r=[],i=0;return A(e,r,"","",function(e){return t.call(n,e,i++)}),r}function I(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 O="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)},R={map:L,forEach:function(e,t,n){L(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return L(e,function(){t++}),t},toArray:function(e){return L(e,function(e){return e})||[]},only:function(e){if(!_(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};t.Activity=f,t.Children=R,t.Component=v,t.Fragment=i,t.Profiler=s,t.PureComponent=E,t.StrictMode=o,t.Suspense=c,t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=S,t.__COMPILER_RUNTIME={__proto__:null,c:function(e){return S.H.useMemoCache(e)}},t.cache=function(e){return function(){return e.apply(null,arguments)}},t.cacheSignal=function(){return null},t.cloneElement=function(e,t,n){if(null==e)throw Error("The argument must be a React element, but you passed "+e+".");var r=g({},e.props),i=e.key;if(null!=t)for(o in void 0!==t.key&&(i=""+t.key),t)!x.call(t,o)||"key"===o||"__self"===o||"__source"===o||"ref"===o&&void 0===t.ref||(r[o]=t[o]);var o=arguments.length-2;if(1===o)r.children=n;else if(1<o){for(var s=Array(o),a=0;a<o;a++)s[a]=arguments[a+2];r.children=s}return C(e.type,i,r)},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:a,_context:e},e},t.createElement=function(e,t,n){var r,i={},o=null;if(null!=t)for(r in void 0!==t.key&&(o=""+t.key),t)x.call(t,r)&&"key"!==r&&"__self"!==r&&"__source"!==r&&(i[r]=t[r]);var s=arguments.length-2;if(1===s)i.children=n;else if(1<s){for(var a=Array(s),l=0;l<s;l++)a[l]=arguments[l+2];i.children=a}if(e&&e.defaultProps)for(r in s=e.defaultProps)void 0===i[r]&&(i[r]=s[r]);return C(e,o,i)},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=_,t.lazy=function(e){return{$$typeof:p,_payload:{_status:-1,_result:e},_init:I}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=S.T,n={};S.T=n;try{var r=e(),i=S.S;null!==i&&i(n,r),"object"==typeof r&&null!==r&&"function"==typeof r.then&&r.then(k,O)}catch(e){O(e)}finally{null!==t&&null!==n.types&&(t.types=n.types),S.T=t}},t.unstable_useCacheRefresh=function(){return S.H.useCacheRefresh()},t.use=function(e){return S.H.use(e)},t.useActionState=function(e,t,n){return S.H.useActionState(e,t,n)},t.useCallback=function(e,t){return S.H.useCallback(e,t)},t.useContext=function(e){return S.H.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e,t){return S.H.useDeferredValue(e,t)},t.useEffect=function(e,t){return S.H.useEffect(e,t)},t.useEffectEvent=function(e){return S.H.useEffectEvent(e)},t.useId=function(){return S.H.useId()},t.useImperativeHandle=function(e,t,n){return S.H.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return S.H.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return S.H.useLayoutEffect(e,t)},t.useMemo=function(e,t){return S.H.useMemo(e,t)},t.useOptimistic=function(e,t){return S.H.useOptimistic(e,t)},t.useReducer=function(e,t,n){return S.H.useReducer(e,t,n)},t.useRef=function(e){return S.H.useRef(e)},t.useState=function(e){return S.H.useState(e)},t.useSyncExternalStore=function(e,t,n){return S.H.useSyncExternalStore(e,t,n)},t.useTransition=function(){return S.H.useTransition()},t.version="19.2.4"},14041(e,t,n){e.exports=n(42062)},31085(e,t,n){e.exports=n(61197)},66310(e,t){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,s=i>>>1;r<s;){var a=2*(r+1)-1,l=e[a],u=a+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[a]=n,r=a);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(t.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var s=performance;t.unstable_now=function(){return s.now()}}else{var a=Date,l=a.now();t.unstable_now=function(){return a.now()-l}}var u=[],c=[],d=1,p=null,f=3,h=!1,m=!1,g=!1,y=!1,v="function"==typeof setTimeout?setTimeout:null,b="function"==typeof clearTimeout?clearTimeout:null,E="undefined"!=typeof setImmediate?setImmediate:null;function T(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 w(e){if(g=!1,T(e),!m)if(null!==r(u))m=!0,S||(S=!0,k());else{var t=r(c);null!==t&&I(w,t.startTime-e)}}var k,S=!1,x=-1,C=5,_=-1;function N(){return!(!y&&t.unstable_now()-_<C)}function D(){if(y=!1,S){var e=t.unstable_now();_=e;var n=!0;try{e:{m=!1,g&&(g=!1,b(x),x=-1),h=!0;var o=f;try{t:{for(T(e),p=r(u);null!==p&&!(p.expirationTime>e&&N());){var s=p.callback;if("function"==typeof s){p.callback=null,f=p.priorityLevel;var a=s(p.expirationTime<=e);if(e=t.unstable_now(),"function"==typeof a){p.callback=a,T(e),n=!0;break t}p===r(u)&&i(u),T(e)}else i(u);p=r(u)}if(null!==p)n=!0;else{var l=r(c);null!==l&&I(w,l.startTime-e),n=!1}}break e}finally{p=null,f=o,h=!1}n=void 0}}finally{n?k():S=!1}}}if("function"==typeof E)k=function(){E(D)};else if("undefined"!=typeof MessageChannel){var A=new MessageChannel,L=A.port2;A.port1.onmessage=D,k=function(){L.postMessage(null)}}else k=function(){v(D,0)};function I(e,n){x=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_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"):C=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return f},t.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},t.unstable_requestPaint=function(){y=!0},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},t.unstable_scheduleCallback=function(e,i,o){var s=t.unstable_now();switch(o="object"==typeof o&&null!==o&&"number"==typeof(o=o.delay)&&0<o?s+o:s,e){case 1:var a=-1;break;case 2:a=250;break;case 5:a=1073741823;break;case 4:a=1e4;break;default:a=5e3}return e={id:d++,callback:i,priorityLevel:e,startTime:o,expirationTime:a=o+a,sortIndex:-1},o>s?(e.sortIndex=o,n(c,e),null===r(u)&&e===r(c)&&(g?(b(x),x=-1):g=!0,I(w,o-s))):(e.sortIndex=a,n(u,e),m||h||(m=!0,S||(S=!0,k()))),e},t.unstable_shouldYield=N,t.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}},97967(e,t,n){e.exports=n(66310)},11098(e,t,n){const{deleteProperty:r}=Reflect,i=n(95858),o=n(12685),s=e=>"object"==typeof e&&null!==e||"function"==typeof e,a=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);a(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 s=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:(s(o),o=""):o+=e[++t]}return o&&s(o),i})(e,t)),u=(e,t,n,i)=>{if(a(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||!s(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(a(t),void 0===l){u(o,t,n,r);break}"number"!=typeof l||Array.isArray(o[t])?(s(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},14047(e,t,n){var r=n(14041),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=r.useSyncExternalStore,s=r.useRef,a=r.useEffect,l=r.useMemo,u=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,c){var d=s(null);if(null===d.current){var p={hasValue:!1,value:null};d.current=p}else p=d.current;d=l(function(){function e(e){if(!a){if(a=!0,o=e,e=r(e),void 0!==c&&p.hasValue){var t=p.value;if(c(t,e))return s=t}return s=e}if(t=s,i(o,e))return t;var n=r(e);return void 0!==c&&c(t,n)?(o=e,t):(o=e,s=n)}var o,s,a=!1,l=void 0===n?null:n;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]},[t,n,r,c]);var f=o(e,d[0],d[1]);return a(function(){p.hasValue=!0,p.value=f},[f]),u(f),f}},95919(e,t,n){e.exports=n(14047)},85808(e,t,n){e.exports=n(68658)},48255(e,t,n){n.r(t),n.d(t,{GraphQLError:()=>s,formatError:()=>u,printError:()=>l});var r=n(91070),i=n(73971),o=n(8238);class s extends Error{constructor(e,...t){var n,o,l;const{nodes:u,source:c,positions:d,path:p,originalError:f,extensions:h}=function(e){const t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(t);super(e),this.name="GraphQLError",this.path=null!=p?p:void 0,this.originalError=null!=f?f:void 0,this.nodes=a(Array.isArray(u)?u:u?[u]:void 0);const m=a(null===(n=this.nodes)||void 0===n?void 0:n.map(e=>e.loc).filter(e=>null!=e));this.source=null!=c?c:null==m||null===(o=m[0])||void 0===o?void 0:o.source,this.positions=null!=d?d:null==m?void 0:m.map(e=>e.start),this.locations=d&&c?d.map(e=>(0,i.getLocation)(c,e)):null==m?void 0:m.map(e=>(0,i.getLocation)(e.source,e.start));const g=(0,r.isObjectLike)(null==f?void 0:f.extensions)?null==f?void 0:f.extensions:void 0;this.extensions=null!==(l=null!=h?h:g)&&void 0!==l?l:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=f&&f.stack?Object.defineProperty(this,"stack",{value:f.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,s):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(const t of this.nodes)t.loc&&(e+="\n\n"+(0,o.printLocation)(t.loc));else if(this.source&&this.locations)for(const t of this.locations)e+="\n\n"+(0,o.printSourceLocation)(this.source,t);return e}toJSON(){const e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function a(e){return void 0===e||0===e.length?void 0:e}function l(e){return e.toString()}function u(e){return e.toJSON()}},1737(e,t,n){n.d(t,{locatedError:()=>s}),n.r(t);var r=n(35198);class i extends Error{constructor(e){super("Unexpected error value: "+(0,r.inspect)(e)),this.name="NonErrorThrown",this.thrownValue=e}}var o=n(48255);function s(e,t,n){var r;const s=(a=e)instanceof Error?a:new i(a);var a;return function(e){return Array.isArray(e.path)}(s)?s:new o.GraphQLError(s.message,{nodes:null!==(r=s.nodes)&&void 0!==r?r:t,source:s.source,positions:s.positions,path:n,originalError:s})}},59841(e,t,n){n.r(t),n.d(t,{syntaxError:()=>i});var r=n(48255);function i(e,t,n){return new r.GraphQLError(`Syntax Error: ${n}`,{source:e,positions:[t]})}},85261(e,t,n){n.r(t),n.d(t,{collectFields:()=>l,collectSubfields:()=>u});var r=n(42455),i=n(73663),o=n(67274),s=n(89494),a=n(9390);function l(e,t,n,r,i){const o=new Map;return c(e,t,n,r,i,o,new Set),o}function u(e,t,n,r,i){const o=new Map,s=new Set;for(const a of i)a.selectionSet&&c(e,t,n,r,a.selectionSet,o,s);return o}function c(e,t,n,i,o,s,a){for(const l of o.selections)switch(l.kind){case r.Kind.FIELD:{if(!d(n,l))continue;const e=f(l),t=s.get(e);void 0!==t?t.push(l):s.set(e,[l]);break}case r.Kind.INLINE_FRAGMENT:if(!d(n,l)||!p(e,l,i))continue;c(e,t,n,i,l.selectionSet,s,a);break;case r.Kind.FRAGMENT_SPREAD:{const r=l.name.value;if(a.has(r)||!d(n,l))continue;a.add(r);const o=t[r];if(!o||!p(e,o,i))continue;c(e,t,n,i,o.selectionSet,s,a);break}}}function d(e,t){const n=(0,a.getDirectiveValues)(o.GraphQLSkipDirective,t,e);if(!0===(null==n?void 0:n.if))return!1;const r=(0,a.getDirectiveValues)(o.GraphQLIncludeDirective,t,e);return!1!==(null==r?void 0:r.if)}function p(e,t,n){const r=t.typeCondition;if(!r)return!0;const o=(0,s.typeFromAST)(e,r);return o===n||!!(0,i.isAbstractType)(o)&&e.isSubType(o,n)}function f(e){return e.alias?e.alias.value:e.name.value}},9582(e,t,n){n.d(t,{assertValidExecutionArguments:()=>x,buildExecutionContext:()=>C,buildResolveInfo:()=>D,defaultFieldResolver:()=>P,defaultTypeResolver:()=>F,execute:()=>w,executeSync:()=>k,getFieldDef:()=>M}),n.r(t);var r=n(93217),i=n(35198),o=n(71306),s=n(23153),a=n(91070),l=n(91481),u=n(77407);function c(e){return Promise.all(Object.values(e)).then(t=>{const n=Object.create(null);for(const[r,i]of Object.keys(e).entries())n[i]=t[r];return n})}var d=n(48255),p=n(1737),f=n(59762),h=n(42455),m=n(73663),g=n(28957),y=n(47626),v=n(85261),b=n(9390);const E=function(){let e;return function(t,n,r){void 0===e&&(e=new WeakMap);let i=e.get(t);void 0===i&&(i=new WeakMap,e.set(t,i));let o=i.get(n);void 0===o&&(o=new WeakMap,i.set(n,o));let s=o.get(r);return void 0===s&&(a=t,l=n,u=r,s=(0,v.collectSubfields)(a.schema,a.fragments,a.variableValues,l,u),o.set(r,s)),s;var a,l,u}}();class T{constructor(){this._errorPositions=new Set,this._errors=[]}get errors(){return this._errors}add(e,t){this._hasNulledPosition(t)||(this._errorPositions.add(t),this._errors.push(e))}_hasNulledPosition(e){let t=e;for(;void 0!==t;){if(this._errorPositions.has(t))return!0;t=t.prev}return this._errorPositions.has(void 0)}}function w(e){arguments.length<2||(0,r.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const{schema:t,document:n,variableValues:i,rootValue:o}=e;x(t,n,i);const s=C(e);if(!("schema"in s))return{errors:s};try{const{operation:e}=s,t=function(e,t,n){const r=e.schema.getRootType(t.operation);if(null==r)throw new d.GraphQLError(`Schema is not configured to execute ${t.operation} operation.`,{nodes:t});const i=(0,v.collectFields)(e.schema,e.fragments,e.variableValues,r,t.selectionSet),o=void 0;switch(t.operation){case f.OperationTypeNode.QUERY:return _(e,r,n,o,i);case f.OperationTypeNode.MUTATION:return function(e,t,n,r,i){return function(e,t){let n=Object.create(null);for(const r of e)n=(0,l.isPromise)(n)?n.then(e=>t(e,r)):t(n,r);return n}(i.entries(),(i,[o,s])=>{const a=(0,u.addPath)(r,o,t.name),c=N(e,t,n,s,a);return void 0===c?i:(0,l.isPromise)(c)?c.then(e=>(i[o]=e,i)):(i[o]=c,i)})}(e,r,n,o,i);case f.OperationTypeNode.SUBSCRIPTION:return _(e,r,n,o,i)}}(s,e,o);return(0,l.isPromise)(t)?t.then(e=>S(e,s.collectedErrors.errors),e=>(s.collectedErrors.add(e,void 0),S(null,s.collectedErrors.errors))):S(t,s.collectedErrors.errors)}catch(e){return s.collectedErrors.add(e,void 0),S(null,s.collectedErrors.errors)}}function k(e){const t=w(e);if((0,l.isPromise)(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function S(e,t){return 0===t.length?{data:e}:{errors:t,data:e}}function x(e,t,n){t||(0,r.devAssert)(!1,"Must provide document."),(0,y.assertValidSchema)(e),null==n||(0,a.isObjectLike)(n)||(0,r.devAssert)(!1,"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.")}function C(e){var t,n,r;const{schema:i,document:o,rootValue:s,contextValue:a,variableValues:l,operationName:u,fieldResolver:c,typeResolver:p,subscribeFieldResolver:f,options:m}=e;let g;const y=Object.create(null);for(const e of o.definitions)switch(e.kind){case h.Kind.OPERATION_DEFINITION:if(null==u){if(void 0!==g)return[new d.GraphQLError("Must provide operation name if query contains multiple operations.")];g=e}else(null===(t=e.name)||void 0===t?void 0:t.value)===u&&(g=e);break;case h.Kind.FRAGMENT_DEFINITION:y[e.name.value]=e}if(!g)return null!=u?[new d.GraphQLError(`Unknown operation named "${u}".`)]:[new d.GraphQLError("Must provide an operation.")];const v=null!==(n=g.variableDefinitions)&&void 0!==n?n:[],E=(0,b.getVariableValues)(i,v,null!=l?l:{},{maxErrors:null!==(r=null==m?void 0:m.maxCoercionErrors)&&void 0!==r?r:50});return E.errors?E.errors:{schema:i,fragments:y,rootValue:s,contextValue:a,operation:g,variableValues:E.coerced,fieldResolver:null!=c?c:P,typeResolver:null!=p?p:F,subscribeFieldResolver:null!=f?f:P,collectedErrors:new T}}function _(e,t,n,r,i){const o=Object.create(null);let s=!1;try{for(const[a,c]of i.entries()){const i=N(e,t,n,c,(0,u.addPath)(r,a,t.name));void 0!==i&&(o[a]=i,(0,l.isPromise)(i)&&(s=!0))}}catch(e){if(s)return c(o).finally(()=>{throw e});throw e}return s?c(o):o}function N(e,t,n,r,i){var o;const s=M(e.schema,t,r[0]);if(!s)return;const a=s.type,c=null!==(o=s.resolve)&&void 0!==o?o:e.fieldResolver,d=D(e,s,r,t,i);try{const t=c(n,(0,b.getArgumentValues)(s,r[0],e.variableValues),e.contextValue,d);let o;return o=(0,l.isPromise)(t)?t.then(t=>L(e,a,r,d,i,t)):L(e,a,r,d,i,t),(0,l.isPromise)(o)?o.then(void 0,t=>A((0,p.locatedError)(t,r,(0,u.pathToArray)(i)),a,i,e)):o}catch(t){return A((0,p.locatedError)(t,r,(0,u.pathToArray)(i)),a,i,e)}}function D(e,t,n,r,i){return{fieldName:t.name,fieldNodes:n,returnType:t.type,parentType:r,path:i,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function A(e,t,n,r){if((0,m.isNonNullType)(t))throw e;return r.collectedErrors.add(e,n),null}function L(e,t,n,r,a,c){if(c instanceof Error)throw c;if((0,m.isNonNullType)(t)){const i=L(e,t.ofType,n,r,a,c);if(null===i)throw new Error(`Cannot return null for non-nullable field ${r.parentType.name}.${r.fieldName}.`);return i}return null==c?null:(0,m.isListType)(t)?function(e,t,n,r,i,o){if(!(0,s.isIterableObject)(o))throw new d.GraphQLError(`Expected Iterable, but did not find one for field "${r.parentType.name}.${r.fieldName}".`);const a=t.ofType;let c=!1;const f=Array.from(o,(t,o)=>{const s=(0,u.addPath)(i,o,void 0);try{let i;return i=(0,l.isPromise)(t)?t.then(t=>L(e,a,n,r,s,t)):L(e,a,n,r,s,t),(0,l.isPromise)(i)?(c=!0,i.then(void 0,t=>A((0,p.locatedError)(t,n,(0,u.pathToArray)(s)),a,s,e))):i}catch(t){return A((0,p.locatedError)(t,n,(0,u.pathToArray)(s)),a,s,e)}});return c?Promise.all(f):f}(e,t,n,r,a,c):(0,m.isLeafType)(t)?function(e,t){const n=e.serialize(t);if(null==n)throw new Error(`Expected \`${(0,i.inspect)(e)}.serialize(${(0,i.inspect)(t)})\` to return non-nullable value, returned: ${(0,i.inspect)(n)}`);return n}(t,c):(0,m.isAbstractType)(t)?function(e,t,n,r,i,o){var s;const a=null!==(s=t.resolveType)&&void 0!==s?s:e.typeResolver,u=e.contextValue,c=a(o,u,r,t);return(0,l.isPromise)(c)?c.then(s=>O(e,I(s,e,t,n,r,o),n,r,i,o)):O(e,I(c,e,t,n,r,o),n,r,i,o)}(e,t,n,r,a,c):(0,m.isObjectType)(t)?O(e,t,n,r,a,c):void(0,o.invariant)(!1,"Cannot complete value of unexpected output type: "+(0,i.inspect)(t))}function I(e,t,n,r,o,s){if(null==e)throw new d.GraphQLError(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${o.parentType.name}.${o.fieldName}". Either the "${n.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`,r);if((0,m.isObjectType)(e))throw new d.GraphQLError("Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.");if("string"!=typeof e)throw new d.GraphQLError(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${o.parentType.name}.${o.fieldName}" with value ${(0,i.inspect)(s)}, received "${(0,i.inspect)(e)}".`);const a=t.schema.getType(e);if(null==a)throw new d.GraphQLError(`Abstract type "${n.name}" was resolved to a type "${e}" that does not exist inside the schema.`,{nodes:r});if(!(0,m.isObjectType)(a))throw new d.GraphQLError(`Abstract type "${n.name}" was resolved to a non-object type "${e}".`,{nodes:r});if(!t.schema.isSubType(n,a))throw new d.GraphQLError(`Runtime Object type "${a.name}" is not a possible type for "${n.name}".`,{nodes:r});return a}function O(e,t,n,r,i,o){const s=E(e,t,n);if(t.isTypeOf){const a=t.isTypeOf(o,e.contextValue,r);if((0,l.isPromise)(a))return a.then(r=>{if(!r)throw R(t,o,n);return _(e,t,o,i,s)});if(!a)throw R(t,o,n)}return _(e,t,o,i,s)}function R(e,t,n){return new d.GraphQLError(`Expected value of type "${e.name}" but got: ${(0,i.inspect)(t)}.`,{nodes:n})}const F=function(e,t,n,r){if((0,a.isObjectLike)(e)&&"string"==typeof e.__typename)return e.__typename;const i=n.schema.getPossibleTypes(r),o=[];for(let r=0;r<i.length;r++){const s=i[r];if(s.isTypeOf){const i=s.isTypeOf(e,t,n);if((0,l.isPromise)(i))o[r]=i;else if(i)return o.length&&Promise.allSettled(o).catch(()=>{}),s.name}}return o.length?Promise.all(o).then(e=>{for(let t=0;t<e.length;t++)if(e[t])return i[t].name}):void 0},P=function(e,t,n,r){if((0,a.isObjectLike)(e)||"function"==typeof e){const i=e[r.fieldName];return"function"==typeof i?e[r.fieldName](t,n,r):i}};function M(e,t,n){const r=n.name.value;return r===g.SchemaMetaFieldDef.name&&e.getQueryType()===t?g.SchemaMetaFieldDef:r===g.TypeMetaFieldDef.name&&e.getQueryType()===t?g.TypeMetaFieldDef:r===g.TypeNameMetaFieldDef.name?g.TypeNameMetaFieldDef:t.getFields()[r]}},57552(e,t,n){n.d(t,{createSourceEventStream:()=>f,subscribe:()=>p}),n.r(t);var r=n(93217),i=n(35198);function o(e){return"function"==typeof(null==e?void 0:e[Symbol.asyncIterator])}var s=n(77407),a=n(48255),l=n(1737),u=n(85261),c=n(9582),d=n(9390);async function p(e){arguments.length<2||(0,r.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const t=await f(e);return o(t)?function(t){const n=t[Symbol.asyncIterator]();async function r(t){if(t.done)return t;try{return{value:await(r=t.value,(0,c.execute)({...e,rootValue:r})),done:!1}}catch(e){if("function"==typeof n.return)try{await n.return()}catch(e){}throw e}var r}return{next:async()=>r(await n.next()),return:async()=>"function"==typeof n.return?r(await n.return()):{value:void 0,done:!0},async throw(e){if("function"==typeof n.throw)return r(await n.throw(e));throw e},[Symbol.asyncIterator](){return this}}}(t):t}async function f(...e){const t=function(e){const t=e[0];return t&&"document"in t?t:{schema:t,document:e[1],rootValue:e[2],contextValue:e[3],variableValues:e[4],operationName:e[5],subscribeFieldResolver:e[6]}}(e),{schema:n,document:r,variableValues:p}=t;(0,c.assertValidExecutionArguments)(n,r,p);const f=(0,c.buildExecutionContext)(t);if(!("schema"in f))return{errors:f};try{const e=await async function(e){const{schema:t,fragments:n,operation:r,variableValues:i,rootValue:o}=e,p=t.getSubscriptionType();if(null==p)throw new a.GraphQLError("Schema is not configured to execute subscription operation.",{nodes:r});const f=(0,u.collectFields)(t,n,i,p,r.selectionSet),[h,m]=[...f.entries()][0],g=(0,c.getFieldDef)(t,p,m[0]);if(!g){const e=m[0].name.value;throw new a.GraphQLError(`The subscription field "${e}" is not defined.`,{nodes:m})}const y=(0,s.addPath)(void 0,h,p.name),v=(0,c.buildResolveInfo)(e,g,m,p,y);try{var b;const t=(0,d.getArgumentValues)(g,m[0],i),n=e.contextValue,r=null!==(b=g.subscribe)&&void 0!==b?b:e.subscribeFieldResolver,s=await r(o,t,n,v);if(s instanceof Error)throw s;return s}catch(e){throw(0,l.locatedError)(e,m,(0,s.pathToArray)(y))}}(f);if(!o(e))throw new Error(`Subscription field must return Async Iterable. Received: ${(0,i.inspect)(e)}.`);return e}catch(e){if(e instanceof a.GraphQLError)return{errors:[e]};throw e}}},9390(e,t,n){n.r(t),n.d(t,{getArgumentValues:()=>h,getDirectiveValues:()=>m,getVariableValues:()=>f});var r=n(35198),i=n(15487),o=n(18261),s=n(48255),a=n(42455),l=n(9554),u=n(73663),c=n(89818),d=n(89494),p=n(69327);function f(e,t,n,i){const a=[],f=null==i?void 0:i.maxErrors;try{const i=function(e,t,n,i){const a=Object.create(null);for(const f of t){const t=f.variable.name.value,h=(0,d.typeFromAST)(e,f.type);if(!(0,u.isInputType)(h)){const e=(0,l.print)(f.type);i(new s.GraphQLError(`Variable "$${t}" expected value of type "${e}" which cannot be used as an input type.`,{nodes:f.type}));continue}if(!g(n,t)){if(f.defaultValue)a[t]=(0,p.valueFromAST)(f.defaultValue,h);else if((0,u.isNonNullType)(h)){const e=(0,r.inspect)(h);i(new s.GraphQLError(`Variable "$${t}" of required type "${e}" was not provided.`,{nodes:f}))}continue}const m=n[t];if(null===m&&(0,u.isNonNullType)(h)){const e=(0,r.inspect)(h);i(new s.GraphQLError(`Variable "$${t}" of non-null type "${e}" must not be null.`,{nodes:f}));continue}a[t]=(0,c.coerceInputValue)(m,h,(e,n,a)=>{let l=`Variable "$${t}" got invalid value `+(0,r.inspect)(n);e.length>0&&(l+=` at "${t}${(0,o.printPathArray)(e)}"`),i(new s.GraphQLError(l+"; "+a.message,{nodes:f,originalError:a}))})}return{...a}}(e,t,n,e=>{if(null!=f&&a.length>=f)throw new s.GraphQLError("Too many errors processing variables, error limit reached. Execution aborted.");a.push(e)});if(0===a.length)return{coerced:i}}catch(e){a.push(e)}return{errors:a}}function h(e,t,n){var o;const c=Object.create(null),d=null!==(o=t.arguments)&&void 0!==o?o:[],f=(0,i.keyMap)(d,e=>e.name.value);for(const i of e.args){const e=i.name,o=i.type,d=f[e];if(!d){if(void 0!==i.defaultValue)c[e]=i.defaultValue;else if((0,u.isNonNullType)(o))throw new s.GraphQLError(`Argument "${e}" of required type "${(0,r.inspect)(o)}" was not provided.`,{nodes:t});continue}const h=d.value;let m=h.kind===a.Kind.NULL;if(h.kind===a.Kind.VARIABLE){const t=h.name.value;if(null==n||!g(n,t)){if(void 0!==i.defaultValue)c[e]=i.defaultValue;else if((0,u.isNonNullType)(o))throw new s.GraphQLError(`Argument "${e}" of required type "${(0,r.inspect)(o)}" was provided the variable "$${t}" which was not provided a runtime value.`,{nodes:h});continue}m=null==n[t]}if(m&&(0,u.isNonNullType)(o))throw new s.GraphQLError(`Argument "${e}" of non-null type "${(0,r.inspect)(o)}" must not be null.`,{nodes:h});const y=(0,p.valueFromAST)(h,o,n);if(void 0===y)throw new s.GraphQLError(`Argument "${e}" has invalid value ${(0,l.print)(h)}.`,{nodes:h});c[e]=y}return{...c}}function m(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 h(e,i,n)}function g(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},68658(e,t,n){n.d(t,{BREAK:()=>C.BREAK,BreakingChangeType:()=>Ke,DEFAULT_DEPRECATION_REASON:()=>m.DEFAULT_DEPRECATION_REASON,DangerousChangeType:()=>Ue,DirectiveLocation:()=>N.DirectiveLocation,ExecutableDefinitionsRule:()=>M.ExecutableDefinitionsRule,FieldsOnCorrectTypeRule:()=>j.FieldsOnCorrectTypeRule,FragmentsOnCompositeTypesRule:()=>V.FragmentsOnCompositeTypesRule,GRAPHQL_MAX_INT:()=>g.GRAPHQL_MAX_INT,GRAPHQL_MIN_INT:()=>g.GRAPHQL_MIN_INT,GraphQLBoolean:()=>g.GraphQLBoolean,GraphQLDeprecatedDirective:()=>m.GraphQLDeprecatedDirective,GraphQLDirective:()=>m.GraphQLDirective,GraphQLEnumType:()=>f.GraphQLEnumType,GraphQLError:()=>O.GraphQLError,GraphQLFloat:()=>g.GraphQLFloat,GraphQLID:()=>g.GraphQLID,GraphQLIncludeDirective:()=>m.GraphQLIncludeDirective,GraphQLInputObjectType:()=>f.GraphQLInputObjectType,GraphQLInt:()=>g.GraphQLInt,GraphQLInterfaceType:()=>f.GraphQLInterfaceType,GraphQLList:()=>f.GraphQLList,GraphQLNonNull:()=>f.GraphQLNonNull,GraphQLObjectType:()=>f.GraphQLObjectType,GraphQLOneOfDirective:()=>m.GraphQLOneOfDirective,GraphQLScalarType:()=>f.GraphQLScalarType,GraphQLSchema:()=>h.GraphQLSchema,GraphQLSkipDirective:()=>m.GraphQLSkipDirective,GraphQLSpecifiedByDirective:()=>m.GraphQLSpecifiedByDirective,GraphQLString:()=>g.GraphQLString,GraphQLUnionType:()=>f.GraphQLUnionType,Kind:()=>_.Kind,KnownArgumentNamesRule:()=>K.KnownArgumentNamesRule,KnownDirectivesRule:()=>U.KnownDirectivesRule,KnownFragmentNamesRule:()=>B.KnownFragmentNamesRule,KnownTypeNamesRule:()=>$.KnownTypeNamesRule,Lexer:()=>k.Lexer,Location:()=>b.Location,LoneAnonymousOperationRule:()=>q.LoneAnonymousOperationRule,LoneSchemaDefinitionRule:()=>ce.LoneSchemaDefinitionRule,MaxIntrospectionDepthRule:()=>ue.MaxIntrospectionDepthRule,NoDeprecatedCustomRule:()=>ve.NoDeprecatedCustomRule,NoFragmentCyclesRule:()=>z.NoFragmentCyclesRule,NoSchemaIntrospectionCustomRule:()=>R,NoUndefinedVariablesRule:()=>G.NoUndefinedVariablesRule,NoUnusedFragmentsRule:()=>Q.NoUnusedFragmentsRule,NoUnusedVariablesRule:()=>H.NoUnusedVariablesRule,OperationTypeNode:()=>b.OperationTypeNode,OverlappingFieldsCanBeMergedRule:()=>W.OverlappingFieldsCanBeMergedRule,PossibleFragmentSpreadsRule:()=>Y.PossibleFragmentSpreadsRule,PossibleTypeExtensionsRule:()=>ye.PossibleTypeExtensionsRule,ProvidedRequiredArgumentsRule:()=>X.ProvidedRequiredArgumentsRule,ScalarLeafsRule:()=>J.ScalarLeafsRule,SchemaMetaFieldDef:()=>y.SchemaMetaFieldDef,SingleFieldSubscriptionsRule:()=>Z.SingleFieldSubscriptionsRule,Source:()=>E.Source,Token:()=>b.Token,TokenKind:()=>S.TokenKind,TypeInfo:()=>yt.TypeInfo,TypeKind:()=>y.TypeKind,TypeMetaFieldDef:()=>y.TypeMetaFieldDef,TypeNameMetaFieldDef:()=>y.TypeNameMetaFieldDef,UniqueArgumentDefinitionNamesRule:()=>me.UniqueArgumentDefinitionNamesRule,UniqueArgumentNamesRule:()=>ee.UniqueArgumentNamesRule,UniqueDirectiveNamesRule:()=>ge.UniqueDirectiveNamesRule,UniqueDirectivesPerLocationRule:()=>te.UniqueDirectivesPerLocationRule,UniqueEnumValueNamesRule:()=>fe.UniqueEnumValueNamesRule,UniqueFieldDefinitionNamesRule:()=>he.UniqueFieldDefinitionNamesRule,UniqueFragmentNamesRule:()=>ne.UniqueFragmentNamesRule,UniqueInputFieldNamesRule:()=>re.UniqueInputFieldNamesRule,UniqueOperationNamesRule:()=>ie.UniqueOperationNamesRule,UniqueOperationTypesRule:()=>de.UniqueOperationTypesRule,UniqueTypeNamesRule:()=>pe.UniqueTypeNamesRule,UniqueVariableNamesRule:()=>oe.UniqueVariableNamesRule,ValidationContext:()=>F.ValidationContext,ValuesOfCorrectTypeRule:()=>se.ValuesOfCorrectTypeRule,VariablesAreInputTypesRule:()=>ae.VariablesAreInputTypesRule,VariablesInAllowedPositionRule:()=>le.VariablesInAllowedPositionRule,__Directive:()=>y.__Directive,__DirectiveLocation:()=>y.__DirectiveLocation,__EnumValue:()=>y.__EnumValue,__Field:()=>y.__Field,__InputValue:()=>y.__InputValue,__Schema:()=>y.__Schema,__Type:()=>y.__Type,__TypeKind:()=>y.__TypeKind,assertAbstractType:()=>f.assertAbstractType,assertCompositeType:()=>f.assertCompositeType,assertDirective:()=>m.assertDirective,assertEnumType:()=>f.assertEnumType,assertEnumValueName:()=>v.assertEnumValueName,assertInputObjectType:()=>f.assertInputObjectType,assertInputType:()=>f.assertInputType,assertInterfaceType:()=>f.assertInterfaceType,assertLeafType:()=>f.assertLeafType,assertListType:()=>f.assertListType,assertName:()=>v.assertName,assertNamedType:()=>f.assertNamedType,assertNonNullType:()=>f.assertNonNullType,assertNullableType:()=>f.assertNullableType,assertObjectType:()=>f.assertObjectType,assertOutputType:()=>f.assertOutputType,assertScalarType:()=>f.assertScalarType,assertSchema:()=>h.assertSchema,assertType:()=>f.assertType,assertUnionType:()=>f.assertUnionType,assertValidName:()=>je,assertValidSchema:()=>a.assertValidSchema,assertWrappingType:()=>f.assertWrappingType,astFromValue:()=>$e.astFromValue,buildASTSchema:()=>dt.buildASTSchema,buildClientSchema:()=>ct.buildClientSchema,buildSchema:()=>dt.buildSchema,coerceInputValue:()=>vt.coerceInputValue,concatAST:()=>Ie,createSourceEventStream:()=>I.createSourceEventStream,defaultFieldResolver:()=>u.defaultFieldResolver,defaultTypeResolver:()=>u.defaultTypeResolver,doTypesOverlap:()=>bt.doTypesOverlap,execute:()=>u.execute,executeSync:()=>u.executeSync,extendSchema:()=>pt.extendSchema,findBreakingChanges:()=>ze,findDangerousChanges:()=>Ge,formatError:()=>O.formatError,getArgumentValues:()=>L.getArgumentValues,getDirectiveValues:()=>L.getDirectiveValues,getEnterLeaveForKind:()=>C.getEnterLeaveForKind,getIntrospectionQuery:()=>ke.getIntrospectionQuery,getLocation:()=>T.getLocation,getNamedType:()=>f.getNamedType,getNullableType:()=>f.getNullableType,getOperationAST:()=>ut.getOperationAST,getOperationRootType:()=>Te,getVariableValues:()=>L.getVariableValues,getVisitFn:()=>C.getVisitFn,graphql:()=>c,graphqlSync:()=>d,introspectionFromSchema:()=>Se,introspectionTypes:()=>y.introspectionTypes,isAbstractType:()=>f.isAbstractType,isCompositeType:()=>f.isCompositeType,isConstValueNode:()=>D.isConstValueNode,isDefinitionNode:()=>D.isDefinitionNode,isDirective:()=>m.isDirective,isEnumType:()=>f.isEnumType,isEqualType:()=>bt.isEqualType,isExecutableDefinitionNode:()=>D.isExecutableDefinitionNode,isInputObjectType:()=>f.isInputObjectType,isInputType:()=>f.isInputType,isInterfaceType:()=>f.isInterfaceType,isIntrospectionType:()=>y.isIntrospectionType,isLeafType:()=>f.isLeafType,isListType:()=>f.isListType,isNamedType:()=>f.isNamedType,isNonNullType:()=>f.isNonNullType,isNullableType:()=>f.isNullableType,isObjectType:()=>f.isObjectType,isOutputType:()=>f.isOutputType,isRequiredArgument:()=>f.isRequiredArgument,isRequiredInputField:()=>f.isRequiredInputField,isScalarType:()=>f.isScalarType,isSchema:()=>h.isSchema,isSchemaCoordinateNode:()=>D.isSchemaCoordinateNode,isSelectionNode:()=>D.isSelectionNode,isSpecifiedDirective:()=>m.isSpecifiedDirective,isSpecifiedScalarType:()=>g.isSpecifiedScalarType,isType:()=>f.isType,isTypeDefinitionNode:()=>D.isTypeDefinitionNode,isTypeExtensionNode:()=>D.isTypeExtensionNode,isTypeNode:()=>D.isTypeNode,isTypeSubTypeOf:()=>bt.isTypeSubTypeOf,isTypeSystemDefinitionNode:()=>D.isTypeSystemDefinitionNode,isTypeSystemExtensionNode:()=>D.isTypeSystemExtensionNode,isUnionType:()=>f.isUnionType,isValidNameError:()=>Ve,isValueNode:()=>D.isValueNode,isWrappingType:()=>f.isWrappingType,lexicographicSortSchema:()=>Ne,locatedError:()=>Ee.locatedError,parse:()=>s.parse,parseConstValue:()=>s.parseConstValue,parseSchemaCoordinate:()=>s.parseSchemaCoordinate,parseType:()=>s.parseType,parseValue:()=>s.parseValue,print:()=>x.print,printError:()=>O.printError,printIntrospectionSchema:()=>ft.printIntrospectionSchema,printLocation:()=>w.printLocation,printSchema:()=>ft.printSchema,printSourceLocation:()=>w.printSourceLocation,printType:()=>ft.printType,recommendedRules:()=>P.recommendedRules,resolveASTSchemaCoordinate:()=>lt,resolveObjMapThunk:()=>f.resolveObjMapThunk,resolveReadonlyArrayThunk:()=>f.resolveReadonlyArrayThunk,resolveSchemaCoordinate:()=>at,responsePathAsArray:()=>A.pathToArray,separateOperations:()=>Oe,specifiedDirectives:()=>m.specifiedDirectives,specifiedRules:()=>P.specifiedRules,specifiedScalarTypes:()=>g.specifiedScalarTypes,stripIgnoredCharacters:()=>Me,subscribe:()=>I.subscribe,syntaxError:()=>be.syntaxError,typeFromAST:()=>ht.typeFromAST,validate:()=>l.validate,validateSchema:()=>a.validateSchema,valueFromAST:()=>mt.valueFromAST,valueFromASTUntyped:()=>gt.valueFromASTUntyped,version:()=>r.version,versionInfo:()=>r.versionInfo,visit:()=>C.visit,visitInParallel:()=>C.visitInParallel,visitWithTypeInfo:()=>yt.visitWithTypeInfo}),n.r(t);var r=n(89911),i=n(93217),o=n(91481),s=n(98195),a=n(47626),l=n(8553),u=n(9582);function c(e){return new Promise(t=>t(p(e)))}function d(e){const t=p(e);if((0,o.isPromise)(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function p(e){arguments.length<2||(0,i.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const{schema:t,source:n,rootValue:r,contextValue:o,variableValues:c,operationName:d,fieldResolver:p,typeResolver:f}=e,h=(0,a.validateSchema)(t);if(h.length>0)return{errors:h};let m;try{m=(0,s.parse)(n)}catch(e){return{errors:[e]}}const g=(0,l.validate)(t,m);return g.length>0?{errors:g}:(0,u.execute)({schema:t,document:m,rootValue:r,contextValue:o,variableValues:c,operationName:d,fieldResolver:p,typeResolver:f})}var f=n(73663),h=n(25329),m=n(67274),g=n(84143),y=n(28957),v=n(20567),b=n(59762),E=n(39537),T=n(73971),w=n(8238),k=n(98472),S=n(12039),x=n(9554),C=n(90424),_=n(42455),N=n(42868),D=n(3420),A=n(77407),L=n(9390),I=n(57552),O=n(48255);function R(e){return{Field(t){const n=(0,f.getNamedType)(e.getType());n&&(0,y.isIntrospectionType)(n)&&e.reportError(new O.GraphQLError(`GraphQL introspection has been disabled, but the requested query contained the field "${t.name.value}".`,{nodes:t}))}}}var F=n(81875),P=n(24556),M=n(38489),j=n(5449),V=n(49911),K=n(40825),U=n(6868),B=n(8898),$=n(24466),q=n(84719),z=n(42833),G=n(72027),Q=n(91981),H=n(39201),W=n(25106),Y=n(58644),X=n(67565),J=n(70048),Z=n(10099),ee=n(12475),te=n(26886),ne=n(45536),re=n(80656),ie=n(35157),oe=n(12584),se=n(51838),ae=n(99461),le=n(68022),ue=n(47525),ce=n(55343),de=n(40354),pe=n(27368),fe=n(92954),he=n(73537),me=n(94410),ge=n(77065),ye=n(85966),ve=n(2168),be=n(59841),Ee=n(1737);function Te(e,t){if("query"===t.operation){const n=e.getQueryType();if(!n)throw new O.GraphQLError("Schema does not define the required query root type.",{nodes:t});return n}if("mutation"===t.operation){const n=e.getMutationType();if(!n)throw new O.GraphQLError("Schema is not configured for mutations.",{nodes:t});return n}if("subscription"===t.operation){const n=e.getSubscriptionType();if(!n)throw new O.GraphQLError("Schema is not configured for subscriptions.",{nodes:t});return n}throw new O.GraphQLError("Can only have query, mutation and subscription operations.",{nodes:t})}var we=n(71306),ke=n(58881);function Se(e,t){const n={specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,oneOf:!0,...t},r=(0,s.parse)((0,ke.getIntrospectionQuery)(n)),i=(0,u.executeSync)({schema:e,document:r});return!i.errors&&i.data||(0,we.invariant)(!1),i.data}var xe=n(35198),Ce=n(96394),_e=n(63858);function Ne(e){const t=e.toConfig(),n=(0,Ce.keyValMap)(Ae(t.types),e=>e.name,function(e){if((0,f.isScalarType)(e)||(0,y.isIntrospectionType)(e))return e;if((0,f.isObjectType)(e)){const t=e.toConfig();return new f.GraphQLObjectType({...t,interfaces:()=>l(t.interfaces),fields:()=>a(t.fields)})}if((0,f.isInterfaceType)(e)){const t=e.toConfig();return new f.GraphQLInterfaceType({...t,interfaces:()=>l(t.interfaces),fields:()=>a(t.fields)})}if((0,f.isUnionType)(e)){const t=e.toConfig();return new f.GraphQLUnionType({...t,types:()=>l(t.types)})}if((0,f.isEnumType)(e)){const t=e.toConfig();return new f.GraphQLEnumType({...t,values:De(t.values,e=>e)})}if((0,f.isInputObjectType)(e)){const t=e.toConfig();return new f.GraphQLInputObjectType({...t,fields:()=>De(t.fields,e=>({...e,type:r(e.type)}))})}(0,we.invariant)(!1,"Unexpected type: "+(0,xe.inspect)(e))});return new h.GraphQLSchema({...t,types:Object.values(n),directives:Ae(t.directives).map(function(e){const t=e.toConfig();return new m.GraphQLDirective({...t,locations:Le(t.locations,e=>e),args:s(t.args)})}),query:o(t.query),mutation:o(t.mutation),subscription:o(t.subscription)});function r(e){return(0,f.isListType)(e)?new f.GraphQLList(r(e.ofType)):(0,f.isNonNullType)(e)?new f.GraphQLNonNull(r(e.ofType)):i(e)}function i(e){return n[e.name]}function o(e){return e&&i(e)}function s(e){return De(e,e=>({...e,type:r(e.type)}))}function a(e){return De(e,e=>({...e,type:r(e.type),args:e.args&&s(e.args)}))}function l(e){return Ae(e).map(i)}}function De(e,t){const n=Object.create(null);for(const r of Object.keys(e).sort(_e.naturalCompare))n[r]=t(e[r]);return n}function Ae(e){return Le(e,e=>e.name)}function Le(e,t){return e.slice().sort((e,n)=>{const r=t(e),i=t(n);return(0,_e.naturalCompare)(r,i)})}function Ie(e){const t=[];for(const n of e)t.push(...n.definitions);return{kind:_.Kind.DOCUMENT,definitions:t}}function Oe(e){const t=[],n=Object.create(null);for(const r of e.definitions)switch(r.kind){case _.Kind.OPERATION_DEFINITION:t.push(r);break;case _.Kind.FRAGMENT_DEFINITION:n[r.name.value]=Fe(r.selectionSet)}const r=Object.create(null);for(const i of t){const t=new Set;for(const e of Fe(i.selectionSet))Re(t,n,e);r[i.name?i.name.value:""]={kind:_.Kind.DOCUMENT,definitions:e.definitions.filter(e=>e===i||e.kind===_.Kind.FRAGMENT_DEFINITION&&t.has(e.name.value))}}return r}function Re(e,t,n){if(!e.has(n)){e.add(n);const r=t[n];if(void 0!==r)for(const n of r)Re(e,t,n)}}function Fe(e){const t=[];return(0,C.visit)(e,{FragmentSpread(e){t.push(e.name.value)}}),t}var Pe=n(67714);function Me(e){const t=(0,E.isSource)(e)?e:new E.Source(e),n=t.body,r=new k.Lexer(t);let i="",o=!1;for(;r.advance().kind!==S.TokenKind.EOF;){const e=r.token,t=e.kind,s=!(0,k.isPunctuatorTokenKind)(e.kind);o&&(s||e.kind===S.TokenKind.SPREAD)&&(i+=" ");const a=n.slice(e.start,e.end);t===S.TokenKind.BLOCK_STRING?i+=(0,Pe.printBlockString)(e.value,{minimize:!0}):i+=a,o=s}return i}function je(e){const t=Ve(e);if(t)throw t;return e}function Ve(e){if("string"==typeof e||(0,i.devAssert)(!1,"Expected name to be a string."),e.startsWith("__"))return new O.GraphQLError(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`);try{(0,v.assertName)(e)}catch(e){return e}}var Ke,Ue,Be=n(15487),$e=n(39709),qe=n(20997);function ze(e,t){return Qe(e,t).filter(e=>e.type in Ke)}function Ge(e,t){return Qe(e,t).filter(e=>e.type in Ue)}function Qe(e,t){return[...We(e,t),...He(e,t)]}function He(e,t){const n=[],r=st(e.getDirectives(),t.getDirectives());for(const e of r.removed)n.push({type:Ke.DIRECTIVE_REMOVED,description:`${e.name} was removed.`});for(const[e,t]of r.persisted){const r=st(e.args,t.args);for(const t of r.added)(0,f.isRequiredArgument)(t)&&n.push({type:Ke.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${t.name} on directive ${e.name} was added.`});for(const t of r.removed)n.push({type:Ke.DIRECTIVE_ARG_REMOVED,description:`${t.name} was removed from ${e.name}.`});e.isRepeatable&&!t.isRepeatable&&n.push({type:Ke.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${e.name}.`});for(const r of e.locations)t.locations.includes(r)||n.push({type:Ke.DIRECTIVE_LOCATION_REMOVED,description:`${r} was removed from ${e.name}.`})}return n}function We(e,t){const n=[],r=st(Object.values(e.getTypeMap()),Object.values(t.getTypeMap()));for(const e of r.removed)n.push({type:Ke.TYPE_REMOVED,description:(0,g.isSpecifiedScalarType)(e)?`Standard scalar ${e.name} was removed because it is not referenced anymore.`:`${e.name} was removed.`});for(const[e,t]of r.persisted)(0,f.isEnumType)(e)&&(0,f.isEnumType)(t)?n.push(...Je(e,t)):(0,f.isUnionType)(e)&&(0,f.isUnionType)(t)?n.push(...Xe(e,t)):(0,f.isInputObjectType)(e)&&(0,f.isInputObjectType)(t)?n.push(...Ye(e,t)):(0,f.isObjectType)(e)&&(0,f.isObjectType)(t)||(0,f.isInterfaceType)(e)&&(0,f.isInterfaceType)(t)?n.push(...et(e,t),...Ze(e,t)):e.constructor!==t.constructor&&n.push({type:Ke.TYPE_CHANGED_KIND,description:`${e.name} changed from ${it(e)} to ${it(t)}.`});return n}function Ye(e,t){const n=[],r=st(Object.values(e.getFields()),Object.values(t.getFields()));for(const t of r.added)(0,f.isRequiredInputField)(t)?n.push({type:Ke.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${t.name} on input type ${e.name} was added.`}):n.push({type:Ue.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${t.name} on input type ${e.name} was added.`});for(const t of r.removed)n.push({type:Ke.FIELD_REMOVED,description:`${e.name}.${t.name} was removed.`});for(const[t,i]of r.persisted)rt(t.type,i.type)||n.push({type:Ke.FIELD_CHANGED_KIND,description:`${e.name}.${t.name} changed type from ${String(t.type)} to ${String(i.type)}.`});return n}function Xe(e,t){const n=[],r=st(e.getTypes(),t.getTypes());for(const t of r.added)n.push({type:Ue.TYPE_ADDED_TO_UNION,description:`${t.name} was added to union type ${e.name}.`});for(const t of r.removed)n.push({type:Ke.TYPE_REMOVED_FROM_UNION,description:`${t.name} was removed from union type ${e.name}.`});return n}function Je(e,t){const n=[],r=st(e.getValues(),t.getValues());for(const t of r.added)n.push({type:Ue.VALUE_ADDED_TO_ENUM,description:`${t.name} was added to enum type ${e.name}.`});for(const t of r.removed)n.push({type:Ke.VALUE_REMOVED_FROM_ENUM,description:`${t.name} was removed from enum type ${e.name}.`});return n}function Ze(e,t){const n=[],r=st(e.getInterfaces(),t.getInterfaces());for(const t of r.added)n.push({type:Ue.IMPLEMENTED_INTERFACE_ADDED,description:`${t.name} added to interfaces implemented by ${e.name}.`});for(const t of r.removed)n.push({type:Ke.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${t.name}.`});return n}function et(e,t){const n=[],r=st(Object.values(e.getFields()),Object.values(t.getFields()));for(const t of r.removed)n.push({type:Ke.FIELD_REMOVED,description:`${e.name}.${t.name} was removed.`});for(const[t,i]of r.persisted)n.push(...tt(e,t,i)),nt(t.type,i.type)||n.push({type:Ke.FIELD_CHANGED_KIND,description:`${e.name}.${t.name} changed type from ${String(t.type)} to ${String(i.type)}.`});return n}function tt(e,t,n){const r=[],i=st(t.args,n.args);for(const n of i.removed)r.push({type:Ke.ARG_REMOVED,description:`${e.name}.${t.name} arg ${n.name} was removed.`});for(const[n,o]of i.persisted)if(rt(n.type,o.type)){if(void 0!==n.defaultValue)if(void 0===o.defaultValue)r.push({type:Ue.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${n.name} defaultValue was removed.`});else{const i=ot(n.defaultValue,n.type),s=ot(o.defaultValue,o.type);i!==s&&r.push({type:Ue.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${n.name} has changed defaultValue from ${i} to ${s}.`})}}else r.push({type:Ke.ARG_CHANGED_KIND,description:`${e.name}.${t.name} arg ${n.name} has changed type from ${String(n.type)} to ${String(o.type)}.`});for(const n of i.added)(0,f.isRequiredArgument)(n)?r.push({type:Ke.REQUIRED_ARG_ADDED,description:`A required arg ${n.name} on ${e.name}.${t.name} was added.`}):r.push({type:Ue.OPTIONAL_ARG_ADDED,description:`An optional arg ${n.name} on ${e.name}.${t.name} was added.`});return r}function nt(e,t){return(0,f.isListType)(e)?(0,f.isListType)(t)&&nt(e.ofType,t.ofType)||(0,f.isNonNullType)(t)&&nt(e,t.ofType):(0,f.isNonNullType)(e)?(0,f.isNonNullType)(t)&&nt(e.ofType,t.ofType):(0,f.isNamedType)(t)&&e.name===t.name||(0,f.isNonNullType)(t)&&nt(e,t.ofType)}function rt(e,t){return(0,f.isListType)(e)?(0,f.isListType)(t)&&rt(e.ofType,t.ofType):(0,f.isNonNullType)(e)?(0,f.isNonNullType)(t)&&rt(e.ofType,t.ofType)||!(0,f.isNonNullType)(t)&&rt(e.ofType,t):(0,f.isNamedType)(t)&&e.name===t.name}function it(e){return(0,f.isScalarType)(e)?"a Scalar type":(0,f.isObjectType)(e)?"an Object type":(0,f.isInterfaceType)(e)?"an Interface type":(0,f.isUnionType)(e)?"a Union type":(0,f.isEnumType)(e)?"an Enum type":(0,f.isInputObjectType)(e)?"an Input type":void(0,we.invariant)(!1,"Unexpected type: "+(0,xe.inspect)(e))}function ot(e,t){const n=(0,$e.astFromValue)(e,t);return null!=n||(0,we.invariant)(!1),(0,x.print)((0,qe.sortValueNode)(n))}function st(e,t){const n=[],r=[],i=[],o=(0,Be.keyMap)(e,({name:e})=>e),s=(0,Be.keyMap)(t,({name:e})=>e);for(const t of e){const e=s[t.name];void 0===e?r.push(t):i.push([t,e])}for(const e of t)void 0===o[e.name]&&n.push(e);return{added:n,persisted:i,removed:r}}function at(e,t){return lt(e,(0,s.parseSchemaCoordinate)(t))}function lt(e,t){switch(t.kind){case _.Kind.TYPE_COORDINATE:return function(e,t){const n=t.name.value,r=e.getType(n);if(null!=r)return{kind:"NamedType",type:r}}(e,t);case _.Kind.MEMBER_COORDINATE:return function(e,t){const n=t.name.value,r=e.getType(n);if(!r)throw new Error(`Expected ${(0,xe.inspect)(n)} to be defined as a type in the schema.`);if(!((0,f.isEnumType)(r)||(0,f.isInputObjectType)(r)||(0,f.isObjectType)(r)||(0,f.isInterfaceType)(r)))throw new Error(`Expected ${(0,xe.inspect)(n)} to be an Enum, Input Object, Object or Interface type.`);if((0,f.isEnumType)(r)){const e=t.memberName.value,n=r.getValue(e);if(null==n)return;return{kind:"EnumValue",type:r,enumValue:n}}if((0,f.isInputObjectType)(r)){const e=t.memberName.value,n=r.getFields()[e];if(null==n)return;return{kind:"InputField",type:r,inputField:n}}const i=t.memberName.value,o=r.getFields()[i];if(null!=o)return{kind:"Field",type:r,field:o}}(e,t);case _.Kind.ARGUMENT_COORDINATE:return function(e,t){const n=t.name.value,r=e.getType(n);if(null==r)throw new Error(`Expected ${(0,xe.inspect)(n)} to be defined as a type in the schema.`);if(!(0,f.isObjectType)(r)&&!(0,f.isInterfaceType)(r))throw new Error(`Expected ${(0,xe.inspect)(n)} to be an object type or interface type.`);const i=t.fieldName.value,o=r.getFields()[i];if(null==o)throw new Error(`Expected ${(0,xe.inspect)(i)} to exist as a field of type ${(0,xe.inspect)(n)} in the schema.`);const s=t.argumentName.value,a=o.args.find(e=>e.name===s);if(null!=a)return{kind:"FieldArgument",type:r,field:o,fieldArgument:a}}(e,t);case _.Kind.DIRECTIVE_COORDINATE:return function(e,t){const n=t.name.value,r=e.getDirective(n);if(r)return{kind:"Directive",directive:r}}(e,t);case _.Kind.DIRECTIVE_ARGUMENT_COORDINATE:return function(e,t){const n=t.name.value,r=e.getDirective(n);if(!r)throw new Error(`Expected ${(0,xe.inspect)(n)} to be defined as a directive in the schema.`);const{argumentName:{value:i}}=t,o=r.args.find(e=>e.name===i);if(o)return{kind:"DirectiveArgument",directive:r,directiveArgument:o}}(e,t)}}!function(e){e.TYPE_REMOVED="TYPE_REMOVED",e.TYPE_CHANGED_KIND="TYPE_CHANGED_KIND",e.TYPE_REMOVED_FROM_UNION="TYPE_REMOVED_FROM_UNION",e.VALUE_REMOVED_FROM_ENUM="VALUE_REMOVED_FROM_ENUM",e.REQUIRED_INPUT_FIELD_ADDED="REQUIRED_INPUT_FIELD_ADDED",e.IMPLEMENTED_INTERFACE_REMOVED="IMPLEMENTED_INTERFACE_REMOVED",e.FIELD_REMOVED="FIELD_REMOVED",e.FIELD_CHANGED_KIND="FIELD_CHANGED_KIND",e.REQUIRED_ARG_ADDED="REQUIRED_ARG_ADDED",e.ARG_REMOVED="ARG_REMOVED",e.ARG_CHANGED_KIND="ARG_CHANGED_KIND",e.DIRECTIVE_REMOVED="DIRECTIVE_REMOVED",e.DIRECTIVE_ARG_REMOVED="DIRECTIVE_ARG_REMOVED",e.REQUIRED_DIRECTIVE_ARG_ADDED="REQUIRED_DIRECTIVE_ARG_ADDED",e.DIRECTIVE_REPEATABLE_REMOVED="DIRECTIVE_REPEATABLE_REMOVED",e.DIRECTIVE_LOCATION_REMOVED="DIRECTIVE_LOCATION_REMOVED"}(Ke||(Ke={})),function(e){e.VALUE_ADDED_TO_ENUM="VALUE_ADDED_TO_ENUM",e.TYPE_ADDED_TO_UNION="TYPE_ADDED_TO_UNION",e.OPTIONAL_INPUT_FIELD_ADDED="OPTIONAL_INPUT_FIELD_ADDED",e.OPTIONAL_ARG_ADDED="OPTIONAL_ARG_ADDED",e.IMPLEMENTED_INTERFACE_ADDED="IMPLEMENTED_INTERFACE_ADDED",e.ARG_DEFAULT_VALUE_CHANGE="ARG_DEFAULT_VALUE_CHANGE"}(Ue||(Ue={}));var ut=n(85187),ct=n(65410),dt=n(359),pt=n(70219),ft=n(56514),ht=n(89494),mt=n(69327),gt=n(48542),yt=n(57350),vt=n(89818),bt=n(64917)},77407(e,t,n){function r(e,t,n){return{prev:e,key:t,typename:n}}function i(e){const t=[];let n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}n.r(t),n.d(t,{addPath:()=>r,pathToArray:()=>i})},93217(e,t,n){function r(e,t){if(!Boolean(e))throw new Error(t)}n.r(t),n.d(t,{devAssert:()=>r})},54833(e,t,n){function r(e,t){const[n,r]=t?[e,t]:[void 0,e];let i=" Did you mean ";n&&(i+=n+" ");const o=r.map(e=>`"${e}"`);switch(o.length){case 0:return"";case 1:return i+o[0]+"?";case 2:return i+o[0]+" or "+o[1]+"?"}const s=o.slice(0,5),a=s.pop();return i+s.join(", ")+", or "+a+"?"}n.r(t),n.d(t,{didYouMean:()=>r})},46712(e,t,n){function r(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}n.r(t),n.d(t,{groupBy:()=>r})},78574(e,t,n){function r(e){return e}n.r(t),n.d(t,{identityFunc:()=>r})},35198(e,t,n){function r(e){return i(e,[])}function i(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:i(t,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";const n=Math.min(10,e.length),r=e.length-n,o=[];for(let r=0;r<n;++r)o.push(i(e[r],t));return 1===r?o.push("... 1 more item"):r>1&&o.push(`... ${r} more items`),"["+o.join(", ")+"]"}(e,n);return function(e,t){const n=Object.entries(e);if(0===n.length)return"{}";if(t.length>2)return"["+function(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){const t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(e)+"]";const r=n.map(([e,n])=>e+": "+i(n,t));return"{ "+r.join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}n.r(t),n.d(t,{inspect:()=>r})},50792(e,t,n){n.r(t),n.d(t,{instanceOf:()=>i});var r=n(35198);const i=globalThis.process?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if("object"==typeof e&&null!==e){var n;const i=t.prototype[Symbol.toStringTag];if(i===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null===(n=e.constructor)||void 0===n?void 0:n.name)){const t=(0,r.inspect)(e);throw new Error(`Cannot use ${i} "${t}" from another module or realm.\n\nEnsure that there is only one instance of "graphql" in the node_modules\ndirectory. If different versions of "graphql" are the dependencies of other\nrelied on modules, use "resolutions" to ensure only one version is installed.\n\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate "graphql" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results.`)}}return!1}},71306(e,t,n){function r(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}n.r(t),n.d(t,{invariant:()=>r})},23153(e,t,n){function r(e){return"object"==typeof e&&"function"==typeof(null==e?void 0:e[Symbol.iterator])}n.r(t),n.d(t,{isIterableObject:()=>r})},91070(e,t,n){function r(e){return"object"==typeof e&&null!==e}n.r(t),n.d(t,{isObjectLike:()=>r})},91481(e,t,n){function r(e){return"function"==typeof(null==e?void 0:e.then)}n.r(t),n.d(t,{isPromise:()=>r})},15487(e,t,n){function r(e,t){const n=Object.create(null);for(const r of e)n[t(r)]=r;return n}n.r(t),n.d(t,{keyMap:()=>r})},96394(e,t,n){function r(e,t,n){const r=Object.create(null);for(const i of e)r[t(i)]=n(i);return r}n.r(t),n.d(t,{keyValMap:()=>r})},93871(e,t,n){function r(e,t){const n=Object.create(null);for(const r of Object.keys(e))n[r]=t(e[r],r);return n}n.r(t),n.d(t,{mapValue:()=>r})},63858(e,t,n){function r(e,t){let n=0,r=0;for(;n<e.length&&r<t.length;){let s=e.charCodeAt(n),a=t.charCodeAt(r);if(o(s)&&o(a)){let l=0;do{++n,l=10*l+s-i,s=e.charCodeAt(n)}while(o(s)&&l>0);let u=0;do{++r,u=10*u+a-i,a=t.charCodeAt(r)}while(o(a)&&u>0);if(l<u)return-1;if(l>u)return 1}else{if(s<a)return-1;if(s>a)return 1;++n,++r}}return e.length-t.length}n.r(t),n.d(t,{naturalCompare:()=>r});const i=48;function o(e){return!isNaN(e)&&i<=e&&e<=57}},18261(e,t,n){function r(e){return e.map(e=>"number"==typeof e?"["+e.toString()+"]":"."+e).join("")}n.r(t),n.d(t,{printPathArray:()=>r})},36382(e,t,n){n.r(t),n.d(t,{suggestionList:()=>i});var r=n(63858);function i(e,t){const n=Object.create(null),i=new o(e),s=Math.floor(.4*e.length)+1;for(const e of t){const t=i.measure(e,s);void 0!==t&&(n[e]=t)}return Object.keys(n).sort((e,t)=>{const i=n[e]-n[t];return 0!==i?i:(0,r.naturalCompare)(e,t)})}class o{constructor(e){this._input=e,this._inputLowerCase=e.toLowerCase(),this._inputArray=s(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=s(n),i=this._inputArray;if(r.length<i.length){const e=r;r=i,i=e}const o=r.length,a=i.length;if(o-a>t)return;const l=this._rows;for(let e=0;e<=a;e++)l[0][e]=e;for(let e=1;e<=o;e++){const n=l[(e-1)%3],o=l[e%3];let s=o[0]=e;for(let t=1;t<=a;t++){const a=r[e-1]===i[t-1]?0:1;let u=Math.min(n[t]+1,o[t-1]+1,n[t-1]+a);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<s&&(s=u),o[t]=u}if(s>t)return}const u=l[o%3][a];return u<=t?u:void 0}}function s(e){const t=e.length,n=new Array(t);for(let r=0;r<t;++r)n[r]=e.charCodeAt(r);return n}},40698(e,t,n){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.r(t),n.d(t,{toObjMap:()=>r})},59762(e,t,n){n.r(t),n.d(t,{Location:()=>r,OperationTypeNode:()=>l,QueryDocumentKeys:()=>o,Token:()=>i,isNode:()=>a});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:["description","name","variableDefinitions","directives","selectionSet"],VariableDefinition:["description","variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["description","name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"],TypeCoordinate:["name"],MemberCoordinate:["name","memberName"],ArgumentCoordinate:["name","fieldName","argumentName"],DirectiveCoordinate:["name"],DirectiveArgumentCoordinate:["name","argumentName"]},s=new Set(Object.keys(o));function a(e){const t=null==e?void 0:e.kind;return"string"==typeof t&&s.has(t)}var l;!function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(l||(l={}))},67714(e,t,n){n.r(t),n.d(t,{dedentBlockStringLines:()=>i,isPrintableAsBlockString:()=>s,printBlockString:()=>a});var r=n(25881);function i(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,i=-1;for(let t=0;t<e.length;++t){var s;const a=e[t],l=o(a);l!==a.length&&(r=null!==(s=r)&&void 0!==s?s: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.isWhiteSpace)(e.charCodeAt(t));)++t;return t}function s(e){if(""===e)return!0;let t=!0,n=!1,r=!0,i=!1;for(let o=0;o<e.length;++o)switch(e.codePointAt(o)){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 11:case 12:case 14:case 15:case 13:return!1;case 10:if(t&&!i)return!1;i=!0,t=!0,n=!1;break;case 9:case 32:n||(n=t);break;default:r&&(r=n),t=!1}return!(t||r&&i)}function a(e,t){const n=e.replace(/"""/g,'\\"""'),i=n.split(/\r\n|[\n\r]/g),o=1===i.length,s=i.length>1&&i.slice(1).every(e=>0===e.length||(0,r.isWhiteSpace)(e.charCodeAt(0))),a=n.endsWith('\\"""'),l=e.endsWith('"')&&!a,u=e.endsWith("\\"),c=l||u,d=!(null!=t&&t.minimize)&&(!o||e.length>70||c||s||a);let p="";const f=o&&(0,r.isWhiteSpace)(e.charCodeAt(0));return(d&&!f||s)&&(p+="\n"),p+=n,(d||c)&&(p+="\n"),'"""'+p+'"""'}},25881(e,t,n){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 s(e){return o(e)||95===e}function a(e){return o(e)||i(e)||95===e}n.r(t),n.d(t,{isDigit:()=>i,isLetter:()=>o,isNameContinue:()=>a,isNameStart:()=>s,isWhiteSpace:()=>r})},42868(e,t,n){var r;n.r(t),n.d(t,{DirectiveLocation:()=>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={}))},42455(e,t,n){var r;n.r(t),n.d(t,{Kind:()=>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",e.TYPE_COORDINATE="TypeCoordinate",e.MEMBER_COORDINATE="MemberCoordinate",e.ARGUMENT_COORDINATE="ArgumentCoordinate",e.DIRECTIVE_COORDINATE="DirectiveCoordinate",e.DIRECTIVE_ARGUMENT_COORDINATE="DirectiveArgumentCoordinate"}(r||(r={}))},98472(e,t,n){n.r(t),n.d(t,{Lexer:()=>l,createToken:()=>m,isPunctuatorTokenKind:()=>u,printCodePointAt:()=>h,readName:()=>_});var r=n(59841),i=n(59762),o=n(67714),s=n(25881),a=n(12039);class l{constructor(e){const t=new i.Token(a.TokenKind.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==a.TokenKind.EOF)do{if(e.next)e=e.next;else{const t=g(this,e.end);e.next=t,t.prev=e,e=t}}while(e.kind===a.TokenKind.COMMENT);return e}}function u(e){return e===a.TokenKind.BANG||e===a.TokenKind.DOLLAR||e===a.TokenKind.AMP||e===a.TokenKind.PAREN_L||e===a.TokenKind.PAREN_R||e===a.TokenKind.DOT||e===a.TokenKind.SPREAD||e===a.TokenKind.COLON||e===a.TokenKind.EQUALS||e===a.TokenKind.AT||e===a.TokenKind.BRACKET_L||e===a.TokenKind.BRACKET_R||e===a.TokenKind.BRACE_L||e===a.TokenKind.PIPE||e===a.TokenKind.BRACE_R}function c(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function d(e,t){return p(e.charCodeAt(t))&&f(e.charCodeAt(t+1))}function p(e){return e>=55296&&e<=56319}function f(e){return e>=56320&&e<=57343}function h(e,t){const n=e.source.body.codePointAt(t);if(void 0===n)return a.TokenKind.EOF;if(n>=32&&n<=126){const e=String.fromCodePoint(n);return'"'===e?"'\"'":`"${e}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function m(e,t,n,r,o){const s=e.line,a=1+n-e.lineStart;return new i.Token(t,n,r,s,a,o)}function g(e,t){const n=e.source.body,i=n.length;let o=t;for(;o<i;){const t=n.charCodeAt(o);switch(t){case 65279:case 9:case 32:case 44:++o;continue;case 10:++o,++e.line,e.lineStart=o;continue;case 13:10===n.charCodeAt(o+1)?o+=2:++o,++e.line,e.lineStart=o;continue;case 35:return y(e,o);case 33:return m(e,a.TokenKind.BANG,o,o+1);case 36:return m(e,a.TokenKind.DOLLAR,o,o+1);case 38:return m(e,a.TokenKind.AMP,o,o+1);case 40:return m(e,a.TokenKind.PAREN_L,o,o+1);case 41:return m(e,a.TokenKind.PAREN_R,o,o+1);case 46:if(46===n.charCodeAt(o+1)&&46===n.charCodeAt(o+2))return m(e,a.TokenKind.SPREAD,o,o+3);break;case 58:return m(e,a.TokenKind.COLON,o,o+1);case 61:return m(e,a.TokenKind.EQUALS,o,o+1);case 64:return m(e,a.TokenKind.AT,o,o+1);case 91:return m(e,a.TokenKind.BRACKET_L,o,o+1);case 93:return m(e,a.TokenKind.BRACKET_R,o,o+1);case 123:return m(e,a.TokenKind.BRACE_L,o,o+1);case 124:return m(e,a.TokenKind.PIPE,o,o+1);case 125:return m(e,a.TokenKind.BRACE_R,o,o+1);case 34:return 34===n.charCodeAt(o+1)&&34===n.charCodeAt(o+2)?C(e,o):E(e,o)}if((0,s.isDigit)(t)||45===t)return v(e,o,t);if((0,s.isNameStart)(t))return _(e,o);throw(0,r.syntaxError)(e.source,o,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":c(t)||d(n,o)?`Unexpected character: ${h(e,o)}.`:`Invalid character: ${h(e,o)}.`)}return m(e,a.TokenKind.EOF,i,i)}function y(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(c(e))++i;else{if(!d(n,i))break;i+=2}}return m(e,a.TokenKind.COMMENT,t,i,n.slice(t+1,i))}function v(e,t,n){const i=e.source.body;let o=t,l=n,u=!1;if(45===l&&(l=i.charCodeAt(++o)),48===l){if(l=i.charCodeAt(++o),(0,s.isDigit)(l))throw(0,r.syntaxError)(e.source,o,`Invalid number, unexpected digit after 0: ${h(e,o)}.`)}else o=b(e,o,l),l=i.charCodeAt(o);if(46===l&&(u=!0,l=i.charCodeAt(++o),o=b(e,o,l),l=i.charCodeAt(o)),69!==l&&101!==l||(u=!0,l=i.charCodeAt(++o),43!==l&&45!==l||(l=i.charCodeAt(++o)),o=b(e,o,l),l=i.charCodeAt(o)),46===l||(0,s.isNameStart)(l))throw(0,r.syntaxError)(e.source,o,`Invalid number, expected digit but got: ${h(e,o)}.`);return m(e,u?a.TokenKind.FLOAT:a.TokenKind.INT,t,o,i.slice(t,o))}function b(e,t,n){if(!(0,s.isDigit)(n))throw(0,r.syntaxError)(e.source,t,`Invalid number, expected digit but got: ${h(e,t)}.`);const i=e.source.body;let o=t+1;for(;(0,s.isDigit)(i.charCodeAt(o));)++o;return o}function E(e,t){const n=e.source.body,i=n.length;let o=t+1,s=o,l="";for(;o<i;){const i=n.charCodeAt(o);if(34===i)return l+=n.slice(s,o),m(e,a.TokenKind.STRING,t,o+1,l);if(92===i){l+=n.slice(s,o);const t=117===n.charCodeAt(o+1)?123===n.charCodeAt(o+2)?T(e,o):w(e,o):x(e,o);l+=t.value,o+=t.size,s=o;continue}if(10===i||13===i)break;if(c(i))++o;else{if(!d(n,o))throw(0,r.syntaxError)(e.source,o,`Invalid character within String: ${h(e,o)}.`);o+=2}}throw(0,r.syntaxError)(e.source,o,"Unterminated string.")}function T(e,t){const n=e.source.body;let i=0,o=3;for(;o<12;){const e=n.charCodeAt(t+o++);if(125===e){if(o<5||!c(i))break;return{value:String.fromCodePoint(i),size:o}}if(i=i<<4|S(e),i<0)break}throw(0,r.syntaxError)(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+o)}".`)}function w(e,t){const n=e.source.body,i=k(n,t+2);if(c(i))return{value:String.fromCodePoint(i),size:6};if(p(i)&&92===n.charCodeAt(t+6)&&117===n.charCodeAt(t+7)){const e=k(n,t+8);if(f(e))return{value:String.fromCodePoint(i,e),size:12}}throw(0,r.syntaxError)(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}function k(e,t){return S(e.charCodeAt(t))<<12|S(e.charCodeAt(t+1))<<8|S(e.charCodeAt(t+2))<<4|S(e.charCodeAt(t+3))}function S(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function x(e,t){const n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw(0,r.syntaxError)(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function C(e,t){const n=e.source.body,i=n.length;let s=e.lineStart,l=t+3,u=l,p="";const f=[];for(;l<i;){const i=n.charCodeAt(l);if(34===i&&34===n.charCodeAt(l+1)&&34===n.charCodeAt(l+2)){p+=n.slice(u,l),f.push(p);const r=m(e,a.TokenKind.BLOCK_STRING,t,l+3,(0,o.dedentBlockStringLines)(f).join("\n"));return e.line+=f.length-1,e.lineStart=s,r}if(92!==i||34!==n.charCodeAt(l+1)||34!==n.charCodeAt(l+2)||34!==n.charCodeAt(l+3))if(10!==i&&13!==i)if(c(i))++l;else{if(!d(n,l))throw(0,r.syntaxError)(e.source,l,`Invalid character within String: ${h(e,l)}.`);l+=2}else p+=n.slice(u,l),f.push(p),13===i&&10===n.charCodeAt(l+1)?l+=2:++l,p="",u=l,s=l;else p+=n.slice(u,l),u=l+1,l+=4}throw(0,r.syntaxError)(e.source,l,"Unterminated string.")}function _(e,t){const n=e.source.body,r=n.length;let i=t+1;for(;i<r;){const e=n.charCodeAt(i);if(!(0,s.isNameContinue)(e))break;++i}return m(e,a.TokenKind.NAME,t,i,n.slice(t,i))}},73971(e,t,n){n.r(t),n.d(t,{getLocation:()=>o});var r=n(71306);const i=/\r\n|[\n\r]/g;function o(e,t){let n=0,o=1;for(const s of e.body.matchAll(i)){if("number"==typeof s.index||(0,r.invariant)(!1),s.index>=t)break;n=s.index+s[0].length,o+=1}return{line:o,column:t+1-n}}},98195(e,t,n){n.r(t),n.d(t,{Parser:()=>g,parse:()=>d,parseConstValue:()=>f,parseSchemaCoordinate:()=>m,parseType:()=>h,parseValue:()=>p});var r=n(59841),i=n(59762),o=n(42868),s=n(42455),a=n(98472),l=n(28557),u=n(39537),c=n(12039);function d(e,t){const n=new g(e,t),r=n.parseDocument();return Object.defineProperty(r,"tokenCount",{enumerable:!1,value:n.tokenCount}),r}function p(e,t){const n=new g(e,t);n.expectToken(c.TokenKind.SOF);const r=n.parseValueLiteral(!1);return n.expectToken(c.TokenKind.EOF),r}function f(e,t){const n=new g(e,t);n.expectToken(c.TokenKind.SOF);const r=n.parseConstValueLiteral();return n.expectToken(c.TokenKind.EOF),r}function h(e,t){const n=new g(e,t);n.expectToken(c.TokenKind.SOF);const r=n.parseTypeReference();return n.expectToken(c.TokenKind.EOF),r}function m(e){const t=(0,u.isSource)(e)?e:new u.Source(e),n=new l.SchemaCoordinateLexer(t),r=new g(e,{lexer:n});r.expectToken(c.TokenKind.SOF);const i=r.parseSchemaCoordinate();return r.expectToken(c.TokenKind.EOF),i}class g{constructor(e,t={}){const{lexer:n,...r}=t;if(n)this._lexer=n;else{const t=(0,u.isSource)(e)?e:new u.Source(e);this._lexer=new a.Lexer(t)}this._options=r,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){const e=this.expectToken(c.TokenKind.NAME);return this.node(e,{kind:s.Kind.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:s.Kind.DOCUMENT,definitions:this.many(c.TokenKind.SOF,this.parseDefinition,c.TokenKind.EOF)})}parseDefinition(){if(this.peek(c.TokenKind.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(e&&t.kind===c.TokenKind.BRACE_L)throw(0,r.syntaxError)(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are not supported on shorthand queries.");if(t.kind===c.TokenKind.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition()}if(e)throw(0,r.syntaxError)(this._lexer.source,this._lexer.token.start,"Unexpected description, only GraphQL definitions support descriptions.");if("extend"===t.value)return this.parseTypeSystemExtension()}throw this.unexpected(t)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(c.TokenKind.BRACE_L))return this.node(e,{kind:s.Kind.OPERATION_DEFINITION,operation:i.OperationTypeNode.QUERY,description:void 0,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const t=this.parseDescription(),n=this.parseOperationType();let r;return this.peek(c.TokenKind.NAME)&&(r=this.parseName()),this.node(e,{kind:s.Kind.OPERATION_DEFINITION,operation:n,description:t,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(c.TokenKind.NAME);switch(e.value){case"query":return i.OperationTypeNode.QUERY;case"mutation":return i.OperationTypeNode.MUTATION;case"subscription":return i.OperationTypeNode.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(c.TokenKind.PAREN_L,this.parseVariableDefinition,c.TokenKind.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:s.Kind.VARIABLE_DEFINITION,description:this.parseDescription(),variable:this.parseVariable(),type:(this.expectToken(c.TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(c.TokenKind.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(c.TokenKind.DOLLAR),this.node(e,{kind:s.Kind.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:s.Kind.SELECTION_SET,selections:this.many(c.TokenKind.BRACE_L,this.parseSelection,c.TokenKind.BRACE_R)})}parseSelection(){return this.peek(c.TokenKind.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,t=this.parseName();let n,r;return this.expectOptionalToken(c.TokenKind.COLON)?(n=t,r=this.parseName()):r=t,this.node(e,{kind:s.Kind.FIELD,alias:n,name:r,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(c.TokenKind.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(c.TokenKind.PAREN_L,t,c.TokenKind.PAREN_R)}parseArgument(e=!1){const t=this._lexer.token,n=this.parseName();return this.expectToken(c.TokenKind.COLON),this.node(t,{kind:s.Kind.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(c.TokenKind.SPREAD);const t=this.expectOptionalKeyword("on");return!t&&this.peek(c.TokenKind.NAME)?this.node(e,{kind:s.Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:s.Kind.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const e=this._lexer.token,t=this.parseDescription();return this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables?this.node(e,{kind:s.Kind.FRAGMENT_DEFINITION,description:t,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:s.Kind.FRAGMENT_DEFINITION,description:t,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){const t=this._lexer.token;switch(t.kind){case c.TokenKind.BRACKET_L:return this.parseList(e);case c.TokenKind.BRACE_L:return this.parseObject(e);case c.TokenKind.INT:return this.advanceLexer(),this.node(t,{kind:s.Kind.INT,value:t.value});case c.TokenKind.FLOAT:return this.advanceLexer(),this.node(t,{kind:s.Kind.FLOAT,value:t.value});case c.TokenKind.STRING:case c.TokenKind.BLOCK_STRING:return this.parseStringLiteral();case c.TokenKind.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:s.Kind.BOOLEAN,value:!0});case"false":return this.node(t,{kind:s.Kind.BOOLEAN,value:!1});case"null":return this.node(t,{kind:s.Kind.NULL});default:return this.node(t,{kind:s.Kind.ENUM,value:t.value})}case c.TokenKind.DOLLAR:if(e){if(this.expectToken(c.TokenKind.DOLLAR),this._lexer.token.kind===c.TokenKind.NAME){const e=this._lexer.token.value;throw(0,r.syntaxError)(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:s.Kind.STRING,value:e.value,block:e.kind===c.TokenKind.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:s.Kind.LIST,values:this.any(c.TokenKind.BRACKET_L,()=>this.parseValueLiteral(e),c.TokenKind.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:s.Kind.OBJECT,fields:this.any(c.TokenKind.BRACE_L,()=>this.parseObjectField(e),c.TokenKind.BRACE_R)})}parseObjectField(e){const t=this._lexer.token,n=this.parseName();return this.expectToken(c.TokenKind.COLON),this.node(t,{kind:s.Kind.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];for(;this.peek(c.TokenKind.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const t=this._lexer.token;return this.expectToken(c.TokenKind.AT),this.node(t,{kind:s.Kind.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken(c.TokenKind.BRACKET_L)){const n=this.parseTypeReference();this.expectToken(c.TokenKind.BRACKET_R),t=this.node(e,{kind:s.Kind.LIST_TYPE,type:n})}else t=this.parseNamedType();return this.expectOptionalToken(c.TokenKind.BANG)?this.node(e,{kind:s.Kind.NON_NULL_TYPE,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:s.Kind.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(c.TokenKind.STRING)||this.peek(c.TokenKind.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");const n=this.parseConstDirectives(),r=this.many(c.TokenKind.BRACE_L,this.parseOperationTypeDefinition,c.TokenKind.BRACE_R);return this.node(e,{kind:s.Kind.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r})}parseOperationTypeDefinition(){const e=this._lexer.token,t=this.parseOperationType();this.expectToken(c.TokenKind.COLON);const n=this.parseNamedType();return this.node(e,{kind:s.Kind.OPERATION_TYPE_DEFINITION,operation:t,type:n})}parseScalarTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");const n=this.parseName(),r=this.parseConstDirectives();return this.node(e,{kind:s.Kind.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r})}parseObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:s.Kind.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(c.TokenKind.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(c.TokenKind.BRACE_L,this.parseFieldDefinition,c.TokenKind.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(c.TokenKind.COLON);const i=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(e,{kind:s.Kind.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:o})}parseArgumentDefs(){return this.optionalMany(c.TokenKind.PAREN_L,this.parseInputValueDef,c.TokenKind.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(c.TokenKind.COLON);const r=this.parseTypeReference();let i;this.expectOptionalToken(c.TokenKind.EQUALS)&&(i=this.parseConstValueLiteral());const o=this.parseConstDirectives();return this.node(e,{kind:s.Kind.INPUT_VALUE_DEFINITION,description:t,name:n,type:r,defaultValue:i,directives:o})}parseInterfaceTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:s.Kind.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o})}parseUnionTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:s.Kind.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(c.TokenKind.EQUALS)?this.delimitedMany(c.TokenKind.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:s.Kind.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i})}parseEnumValuesDefinition(){return this.optionalMany(c.TokenKind.BRACE_L,this.parseEnumValueDefinition,c.TokenKind.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(e,{kind:s.Kind.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw(0,r.syntaxError)(this._lexer.source,this._lexer.token.start,`${y(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:s.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(c.TokenKind.BRACE_L,this.parseInputValueDef,c.TokenKind.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===c.TokenKind.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const t=this.parseConstDirectives(),n=this.optionalMany(c.TokenKind.BRACE_L,this.parseOperationTypeDefinition,c.TokenKind.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:s.Kind.SCHEMA_EXTENSION,directives:t,operationTypes:n})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const t=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(e,{kind:s.Kind.SCALAR_TYPE_EXTENSION,name:t,directives:n})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:s.Kind.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:s.Kind.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:s.Kind.UNION_TYPE_EXTENSION,name:t,directives:n,types:r})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:s.Kind.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:s.Kind.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r})}parseDirectiveDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(c.TokenKind.AT);const n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const o=this.parseDirectiveLocations();return this.node(e,{kind:s.Kind.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:o})}parseDirectiveLocations(){return this.delimitedMany(c.TokenKind.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(o.DirectiveLocation,t.value))return t;throw this.unexpected(e)}parseSchemaCoordinate(){const e=this._lexer.token,t=this.expectOptionalToken(c.TokenKind.AT),n=this.parseName();let r,i;return!t&&this.expectOptionalToken(c.TokenKind.DOT)&&(r=this.parseName()),(t||r)&&this.expectOptionalToken(c.TokenKind.PAREN_L)&&(i=this.parseName(),this.expectToken(c.TokenKind.COLON),this.expectToken(c.TokenKind.PAREN_R)),t?i?this.node(e,{kind:s.Kind.DIRECTIVE_ARGUMENT_COORDINATE,name:n,argumentName:i}):this.node(e,{kind:s.Kind.DIRECTIVE_COORDINATE,name:n}):r?i?this.node(e,{kind:s.Kind.ARGUMENT_COORDINATE,name:n,fieldName:r,argumentName:i}):this.node(e,{kind:s.Kind.MEMBER_COORDINATE,name:n,memberName:r}):this.node(e,{kind:s.Kind.TYPE_COORDINATE,name:n})}node(e,t){return!0!==this._options.noLocation&&(t.loc=new i.Location(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){const t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw(0,r.syntaxError)(this._lexer.source,t.start,`Expected ${v(e)}, found ${y(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){const t=this._lexer.token;if(t.kind!==c.TokenKind.NAME||t.value!==e)throw(0,r.syntaxError)(this._lexer.source,t.start,`Expected "${e}", found ${y(t)}.`);this.advanceLexer()}expectOptionalKeyword(e){const t=this._lexer.token;return t.kind===c.TokenKind.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){const t=null!=e?e:this._lexer.token;return(0,r.syntaxError)(this._lexer.source,t.start,`Unexpected ${y(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!==c.TokenKind.EOF&&(++this._tokenCounter,void 0!==e&&this._tokenCounter>e))throw(0,r.syntaxError)(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function y(e){const t=e.value;return v(e.kind)+(null!=t?` "${t}"`:"")}function v(e){return(0,a.isPunctuatorTokenKind)(e)?`"${e}"`:e}},3420(e,t,n){n.r(t),n.d(t,{isConstValueNode:()=>l,isDefinitionNode:()=>i,isExecutableDefinitionNode:()=>o,isSchemaCoordinateNode:()=>h,isSelectionNode:()=>s,isTypeDefinitionNode:()=>d,isTypeExtensionNode:()=>f,isTypeNode:()=>u,isTypeSystemDefinitionNode:()=>c,isTypeSystemExtensionNode:()=>p,isValueNode:()=>a});var r=n(42455);function i(e){return o(e)||c(e)||p(e)}function o(e){return e.kind===r.Kind.OPERATION_DEFINITION||e.kind===r.Kind.FRAGMENT_DEFINITION}function s(e){return e.kind===r.Kind.FIELD||e.kind===r.Kind.FRAGMENT_SPREAD||e.kind===r.Kind.INLINE_FRAGMENT}function a(e){return e.kind===r.Kind.VARIABLE||e.kind===r.Kind.INT||e.kind===r.Kind.FLOAT||e.kind===r.Kind.STRING||e.kind===r.Kind.BOOLEAN||e.kind===r.Kind.NULL||e.kind===r.Kind.ENUM||e.kind===r.Kind.LIST||e.kind===r.Kind.OBJECT}function l(e){return a(e)&&(e.kind===r.Kind.LIST?e.values.some(l):e.kind===r.Kind.OBJECT?e.fields.some(e=>l(e.value)):e.kind!==r.Kind.VARIABLE)}function u(e){return e.kind===r.Kind.NAMED_TYPE||e.kind===r.Kind.LIST_TYPE||e.kind===r.Kind.NON_NULL_TYPE}function c(e){return e.kind===r.Kind.SCHEMA_DEFINITION||d(e)||e.kind===r.Kind.DIRECTIVE_DEFINITION}function d(e){return e.kind===r.Kind.SCALAR_TYPE_DEFINITION||e.kind===r.Kind.OBJECT_TYPE_DEFINITION||e.kind===r.Kind.INTERFACE_TYPE_DEFINITION||e.kind===r.Kind.UNION_TYPE_DEFINITION||e.kind===r.Kind.ENUM_TYPE_DEFINITION||e.kind===r.Kind.INPUT_OBJECT_TYPE_DEFINITION}function p(e){return e.kind===r.Kind.SCHEMA_EXTENSION||f(e)}function f(e){return e.kind===r.Kind.SCALAR_TYPE_EXTENSION||e.kind===r.Kind.OBJECT_TYPE_EXTENSION||e.kind===r.Kind.INTERFACE_TYPE_EXTENSION||e.kind===r.Kind.UNION_TYPE_EXTENSION||e.kind===r.Kind.ENUM_TYPE_EXTENSION||e.kind===r.Kind.INPUT_OBJECT_TYPE_EXTENSION}function h(e){return e.kind===r.Kind.TYPE_COORDINATE||e.kind===r.Kind.MEMBER_COORDINATE||e.kind===r.Kind.ARGUMENT_COORDINATE||e.kind===r.Kind.DIRECTIVE_COORDINATE||e.kind===r.Kind.DIRECTIVE_ARGUMENT_COORDINATE}},8238(e,t,n){n.r(t),n.d(t,{printLocation:()=>i,printSourceLocation:()=>o});var r=n(73971);function i(e){return o(e.source,(0,r.getLocation)(e.source,e.start))}function o(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,l=1===t.line?n:0,u=t.column+l,c=`${e.name}:${a}:${u}\n`,d=r.split(/\r\n|[\n\r]/g),p=d[i];if(p.length>120){const e=Math.floor(u/80),t=u%80,n=[];for(let e=0;e<p.length;e+=80)n.push(p.slice(e,e+80));return c+s([[`${a} |`,n[0]],...n.slice(1,e+1).map(e=>["|",e]),["|","^".padStart(t)],["|",n[e+1]]])}return c+s([[a-1+" |",d[i-1]],[`${a} |`,p],["|","^".padStart(u)],[`${a+1} |`,d[i+1]]])}function s(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")}},48272(e,t,n){function r(e){return`"${e.replace(i,o)}"`}n.r(t),n.d(t,{printString:()=>r});const i=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function o(e){return s[e.charCodeAt(0)]}const s=["\\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"]},9554(e,t,n){n.r(t),n.d(t,{print:()=>s});var r=n(67714),i=n(48272),o=n(90424);function s(e){return(0,o.visit)(e,a)}const a={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>l(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=p(e.variableDefinitions)?c("(\n",l(e.variableDefinitions,"\n"),"\n)"):c("(",l(e.variableDefinitions,", "),")"),n=c("",e.description,"\n")+l([e.operation,l([e.name,t]),l(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r,description:i})=>c("",i,"\n")+e+": "+t+c(" = ",n)+c(" ",l(r," "))},SelectionSet:{leave:({selections:e})=>u(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){const o=c("",e,": ")+t;let s=o+c("(",l(n,", "),")");return s.length>80&&(s=o+c("(\n",d(l(n,"\n")),"\n)")),l([s,l(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+c(" ",l(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>l(["...",c("on ",e),l(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i,description:o})=>c("",o,"\n")+`fragment ${e}${c("(",l(n,", "),")")} `+`on ${t} ${c("",l(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?(0,r.printBlockString)(e):(0,i.printString)(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+l(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+l(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+c("(",l(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>c("",e,"\n")+l(["schema",l(t," "),u(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>c("",e,"\n")+l(["scalar",t,l(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>c("",e,"\n")+l(["type",t,c("implements ",l(n," & ")),l(r," "),u(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>c("",e,"\n")+t+(p(n)?c("(\n",d(l(n,"\n")),"\n)"):c("(",l(n,", "),")"))+": "+r+c(" ",l(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>c("",e,"\n")+l([t+": "+n,c("= ",r),l(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>c("",e,"\n")+l(["interface",t,c("implements ",l(n," & ")),l(r," "),u(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>c("",e,"\n")+l(["union",t,l(n," "),c("= ",l(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>c("",e,"\n")+l(["enum",t,l(n," "),u(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>c("",e,"\n")+l([t,l(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>c("",e,"\n")+l(["input",t,l(n," "),u(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:i})=>c("",e,"\n")+"directive @"+t+(p(n)?c("(\n",d(l(n,"\n")),"\n)"):c("(",l(n,", "),")"))+(r?" repeatable":"")+" on "+l(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>l(["extend schema",l(e," "),u(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>l(["extend scalar",e,l(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>l(["extend type",e,c("implements ",l(t," & ")),l(n," "),u(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>l(["extend interface",e,c("implements ",l(t," & ")),l(n," "),u(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>l(["extend union",e,l(t," "),c("= ",l(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>l(["extend enum",e,l(t," "),u(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>l(["extend input",e,l(t," "),u(n)]," ")},TypeCoordinate:{leave:({name:e})=>e},MemberCoordinate:{leave:({name:e,memberName:t})=>l([e,c(".",t)])},ArgumentCoordinate:{leave:({name:e,fieldName:t,argumentName:n})=>l([e,c(".",t),c("(",n,":)")])},DirectiveCoordinate:{leave:({name:e})=>l(["@",e])},DirectiveArgumentCoordinate:{leave:({name:e,argumentName:t})=>l(["@",e,c("(",t,":)")])}};function l(e,t=""){var n;return null!==(n=null==e?void 0:e.filter(e=>e).join(t))&&void 0!==n?n:""}function u(e){return c("{\n",d(l(e,"\n")),"\n}")}function c(e,t,n=""){return null!=t&&""!==t?e+t+n:""}function d(e){return c("  ",e.replace(/\n/g,"\n  "))}function p(e){var t;return null!==(t=null==e?void 0:e.some(e=>e.includes("\n")))&&void 0!==t&&t}},28557(e,t,n){n.r(t),n.d(t,{SchemaCoordinateLexer:()=>l});var r=n(59841),i=n(59762),o=n(25881),s=n(98472),a=n(12039);class l{line=1;lineStart=0;constructor(e){const t=new i.Token(a.TokenKind.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t}get[Symbol.toStringTag](){return"SchemaCoordinateLexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==a.TokenKind.EOF){const t=function(e,t){const n=e.source.body,i=n.length,l=t;if(l<i){const t=n.charCodeAt(l);switch(t){case 46:return(0,s.createToken)(e,a.TokenKind.DOT,l,l+1);case 40:return(0,s.createToken)(e,a.TokenKind.PAREN_L,l,l+1);case 41:return(0,s.createToken)(e,a.TokenKind.PAREN_R,l,l+1);case 58:return(0,s.createToken)(e,a.TokenKind.COLON,l,l+1);case 64:return(0,s.createToken)(e,a.TokenKind.AT,l,l+1)}if((0,o.isNameStart)(t))return(0,s.readName)(e,l);throw(0,r.syntaxError)(e.source,l,`Invalid character: ${(0,s.printCodePointAt)(e,l)}.`)}return(0,s.createToken)(e,a.TokenKind.EOF,i,i)}(this,e.end);e.next=t,t.prev=e,e=t}return e}}},39537(e,t,n){n.r(t),n.d(t,{Source:()=>s,isSource:()=>a});var r=n(93217),i=n(35198),o=n(50792);class s{constructor(e,t="GraphQL request",n={line:1,column:1}){"string"==typeof e||(0,r.devAssert)(!1,`Body must be a string. Received: ${(0,i.inspect)(e)}.`),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||(0,r.devAssert)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,r.devAssert)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function a(e){return(0,o.instanceOf)(e,s)}},12039(e,t,n){var r;n.r(t),n.d(t,{TokenKind:()=>r}),function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.DOT=".",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"}(r||(r={}))},90424(e,t,n){n.r(t),n.d(t,{BREAK:()=>a,getEnterLeaveForKind:()=>c,getVisitFn:()=>d,visit:()=>l,visitInParallel:()=>u});var r=n(93217),i=n(35198),o=n(59762),s=n(42455);const a=Object.freeze({});function l(e,t,n=o.QueryDocumentKeys){const l=new Map;for(const e of Object.values(s.Kind))l.set(e,c(t,e));let u,d,p,f=Array.isArray(e),h=[e],m=-1,g=[],y=e;const v=[],b=[];do{m++;const e=m===h.length,s=e&&0!==g.length;if(e){if(d=0===b.length?void 0:v[v.length-1],y=p,p=b.pop(),s)if(f){y=y.slice();let e=0;for(const[t,n]of g){const r=t-e;null===n?(y.splice(r,1),e++):y[r]=n}}else{y={...y};for(const[e,t]of g)y[e]=t}m=u.index,h=u.keys,g=u.edits,f=u.inArray,u=u.prev}else if(p){if(d=f?m:h[m],y=p[d],null==y)continue;v.push(d)}let c;if(!Array.isArray(y)){var E,T;(0,o.isNode)(y)||(0,r.devAssert)(!1,`Invalid AST Node: ${(0,i.inspect)(y)}.`);const n=e?null===(E=l.get(y.kind))||void 0===E?void 0:E.leave:null===(T=l.get(y.kind))||void 0===T?void 0:T.enter;if(c=null==n?void 0:n.call(t,y,d,p,v,b),c===a)break;if(!1===c){if(!e){v.pop();continue}}else if(void 0!==c&&(g.push([d,c]),!e)){if(!(0,o.isNode)(c)){v.pop();continue}y=c}}var w;void 0===c&&s&&g.push([d,y]),e?v.pop():(u={inArray:f,index:m,keys:h,edits:g,prev:u},f=Array.isArray(y),h=f?y:null!==(w=n[y.kind])&&void 0!==w?w:[],m=-1,g=[],p&&b.push(p),p=y)}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(s.Kind)){let i=!1;const o=new Array(e.length).fill(void 0),s=new Array(e.length).fill(void 0);for(let t=0;t<e.length;++t){const{enter:n,leave:a}=c(e[t],r);i||(i=null!=n||null!=a),o[t]=n,s[t]=a}if(!i)continue;const l={enter(...n){const r=n[0];for(let s=0;s<e.length;s++)if(null===t[s]){var i;const l=null===(i=o[s])||void 0===i?void 0:i.apply(e[s],n);if(!1===l)t[s]=r;else if(l===a)t[s]=a;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=s[o])||void 0===i?void 0:i.apply(e[o],n);if(r===a)t[o]=a;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}}function d(e,t,n){const{enter:r,leave:i}=c(e,t);return n?i:r}},20567(e,t,n){n.r(t),n.d(t,{assertEnumValueName:()=>a,assertName:()=>s});var r=n(93217),i=n(48255),o=n(25881);function s(e){if(null!=e||(0,r.devAssert)(!1,"Must provide name."),"string"==typeof e||(0,r.devAssert)(!1,"Expected name to be a string."),0===e.length)throw new i.GraphQLError("Expected name to be a non-empty string.");for(let t=1;t<e.length;++t)if(!(0,o.isNameContinue)(e.charCodeAt(t)))throw new i.GraphQLError(`Names must only contain [_a-zA-Z0-9] but "${e}" does not.`);if(!(0,o.isNameStart)(e.charCodeAt(0)))throw new i.GraphQLError(`Names must start with [_a-zA-Z] but "${e}" does not.`);return e}function a(e){if("true"===e||"false"===e||"null"===e)throw new i.GraphQLError(`Enum values cannot be named: ${e}`);return s(e)}},73663(e,t,n){n.r(t),n.d(t,{GraphQLEnumType:()=>ye,GraphQLInputObjectType:()=>Ee,GraphQLInterfaceType:()=>he,GraphQLList:()=>Q,GraphQLNonNull:()=>H,GraphQLObjectType:()=>se,GraphQLScalarType:()=>oe,GraphQLUnionType:()=>me,argsToArgsConfig:()=>pe,assertAbstractType:()=>G,assertCompositeType:()=>q,assertEnumType:()=>A,assertInputObjectType:()=>I,assertInputType:()=>j,assertInterfaceType:()=>C,assertLeafType:()=>B,assertListType:()=>R,assertNamedType:()=>te,assertNonNullType:()=>P,assertNullableType:()=>J,assertObjectType:()=>S,assertOutputType:()=>K,assertScalarType:()=>w,assertType:()=>E,assertUnionType:()=>N,assertWrappingType:()=>Y,defineArguments:()=>ue,getNamedType:()=>ne,getNullableType:()=>Z,isAbstractType:()=>z,isCompositeType:()=>$,isEnumType:()=>D,isInputObjectType:()=>L,isInputType:()=>M,isInterfaceType:()=>x,isLeafType:()=>U,isListType:()=>O,isNamedType:()=>ee,isNonNullType:()=>F,isNullableType:()=>X,isObjectType:()=>k,isOutputType:()=>V,isRequiredArgument:()=>fe,isRequiredInputField:()=>we,isScalarType:()=>T,isType:()=>b,isUnionType:()=>_,isWrappingType:()=>W,resolveObjMapThunk:()=>ie,resolveReadonlyArrayThunk:()=>re});var r=n(93217),i=n(54833),o=n(78574),s=n(35198),a=n(50792),l=n(91070),u=n(15487),c=n(96394),d=n(93871),p=n(36382),f=n(40698),h=n(48255),m=n(42455),g=n(9554),y=n(48542),v=n(20567);function b(e){return T(e)||k(e)||x(e)||_(e)||D(e)||L(e)||O(e)||F(e)}function E(e){if(!b(e))throw new Error(`Expected ${(0,s.inspect)(e)} to be a GraphQL type.`);return e}function T(e){return(0,a.instanceOf)(e,oe)}function w(e){if(!T(e))throw new Error(`Expected ${(0,s.inspect)(e)} to be a GraphQL Scalar type.`);return e}function k(e){return(0,a.instanceOf)(e,se)}function S(e){if(!k(e))throw new Error(`Expected ${(0,s.inspect)(e)} to be a GraphQL Object type.`);return e}function x(e){return(0,a.instanceOf)(e,he)}function C(e){if(!x(e))throw new Error(`Expected ${(0,s.inspect)(e)} to be a GraphQL Interface type.`);return e}function _(e){return(0,a.instanceOf)(e,me)}function N(e){if(!_(e))throw new Error(`Expected ${(0,s.inspect)(e)} to be a GraphQL Union type.`);return e}function D(e){return(0,a.instanceOf)(e,ye)}function A(e){if(!D(e))throw new Error(`Expected ${(0,s.inspect)(e)} to be a GraphQL Enum type.`);return e}function L(e){return(0,a.instanceOf)(e,Ee)}function I(e){if(!L(e))throw new Error(`Expected ${(0,s.inspect)(e)} to be a GraphQL Input Object type.`);return e}function O(e){return(0,a.instanceOf)(e,Q)}function R(e){if(!O(e))throw new Error(`Expected ${(0,s.inspect)(e)} to be a GraphQL List type.`);return e}function F(e){return(0,a.instanceOf)(e,H)}function P(e){if(!F(e))throw new Error(`Expected ${(0,s.inspect)(e)} to be a GraphQL Non-Null type.`);return e}function M(e){return T(e)||D(e)||L(e)||W(e)&&M(e.ofType)}function j(e){if(!M(e))throw new Error(`Expected ${(0,s.inspect)(e)} to be a GraphQL input type.`);return e}function V(e){return T(e)||k(e)||x(e)||_(e)||D(e)||W(e)&&V(e.ofType)}function K(e){if(!V(e))throw new Error(`Expected ${(0,s.inspect)(e)} to be a GraphQL output type.`);return e}function U(e){return T(e)||D(e)}function B(e){if(!U(e))throw new Error(`Expected ${(0,s.inspect)(e)} to be a GraphQL leaf type.`);return e}function $(e){return k(e)||x(e)||_(e)}function q(e){if(!$(e))throw new Error(`Expected ${(0,s.inspect)(e)} to be a GraphQL composite type.`);return e}function z(e){return x(e)||_(e)}function G(e){if(!z(e))throw new Error(`Expected ${(0,s.inspect)(e)} to be a GraphQL abstract type.`);return e}class Q{constructor(e){b(e)||(0,r.devAssert)(!1,`Expected ${(0,s.inspect)(e)} to be a GraphQL type.`),this.ofType=e}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}}class H{constructor(e){X(e)||(0,r.devAssert)(!1,`Expected ${(0,s.inspect)(e)} to be a GraphQL nullable type.`),this.ofType=e}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}}function W(e){return O(e)||F(e)}function Y(e){if(!W(e))throw new Error(`Expected ${(0,s.inspect)(e)} to be a GraphQL wrapping type.`);return e}function X(e){return b(e)&&!F(e)}function J(e){if(!X(e))throw new Error(`Expected ${(0,s.inspect)(e)} to be a GraphQL nullable type.`);return e}function Z(e){if(e)return F(e)?e.ofType:e}function ee(e){return T(e)||k(e)||x(e)||_(e)||D(e)||L(e)}function te(e){if(!ee(e))throw new Error(`Expected ${(0,s.inspect)(e)} to be a GraphQL named type.`);return e}function ne(e){if(e){let t=e;for(;W(t);)t=t.ofType;return t}}function re(e){return"function"==typeof e?e():e}function ie(e){return"function"==typeof e?e():e}class oe{constructor(e){var t,n,i,a;const l=null!==(t=e.parseValue)&&void 0!==t?t:o.identityFunc;this.name=(0,v.assertName)(e.name),this.description=e.description,this.specifiedByURL=e.specifiedByURL,this.serialize=null!==(n=e.serialize)&&void 0!==n?n:o.identityFunc,this.parseValue=l,this.parseLiteral=null!==(i=e.parseLiteral)&&void 0!==i?i:(e,t)=>l((0,y.valueFromASTUntyped)(e,t)),this.extensions=(0,f.toObjMap)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(a=e.extensionASTNodes)&&void 0!==a?a:[],null==e.specifiedByURL||"string"==typeof e.specifiedByURL||(0,r.devAssert)(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${(0,s.inspect)(e.specifiedByURL)}.`),null==e.serialize||"function"==typeof e.serialize||(0,r.devAssert)(!1,`${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`),e.parseLiteral&&("function"==typeof e.parseValue&&"function"==typeof e.parseLiteral||(0,r.devAssert)(!1,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`))}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class se{constructor(e){var t;this.name=(0,v.assertName)(e.name),this.description=e.description,this.isTypeOf=e.isTypeOf,this.extensions=(0,f.toObjMap)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=()=>le(e),this._interfaces=()=>ae(e),null==e.isTypeOf||"function"==typeof e.isTypeOf||(0,r.devAssert)(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${(0,s.inspect)(e.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:de(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function ae(e){var t;const n=re(null!==(t=e.interfaces)&&void 0!==t?t:[]);return Array.isArray(n)||(0,r.devAssert)(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),n}function le(e){const t=ie(e.fields);return ce(t)||(0,r.devAssert)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),(0,d.mapValue)(t,(t,n)=>{var i;ce(t)||(0,r.devAssert)(!1,`${e.name}.${n} field config must be an object.`),null==t.resolve||"function"==typeof t.resolve||(0,r.devAssert)(!1,`${e.name}.${n} field resolver must be a function if provided, but got: ${(0,s.inspect)(t.resolve)}.`);const o=null!==(i=t.args)&&void 0!==i?i:{};return ce(o)||(0,r.devAssert)(!1,`${e.name}.${n} args must be an object with argument names as keys.`),{name:(0,v.assertName)(n),description:t.description,type:t.type,args:ue(o),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:(0,f.toObjMap)(t.extensions),astNode:t.astNode}})}function ue(e){return Object.entries(e).map(([e,t])=>({name:(0,v.assertName)(e),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:(0,f.toObjMap)(t.extensions),astNode:t.astNode}))}function ce(e){return(0,l.isObjectLike)(e)&&!Array.isArray(e)}function de(e){return(0,d.mapValue)(e,e=>({description:e.description,type:e.type,args:pe(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}))}function pe(e){return(0,c.keyValMap)(e,e=>e.name,e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}))}function fe(e){return F(e.type)&&void 0===e.defaultValue}class he{constructor(e){var t;this.name=(0,v.assertName)(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=(0,f.toObjMap)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=le.bind(void 0,e),this._interfaces=ae.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||(0,r.devAssert)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,s.inspect)(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:de(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class me{constructor(e){var t;this.name=(0,v.assertName)(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=(0,f.toObjMap)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._types=ge.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||(0,r.devAssert)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,s.inspect)(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return"function"==typeof this._types&&(this._types=this._types()),this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function ge(e){const t=re(e.types);return Array.isArray(t)||(0,r.devAssert)(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}class ye{constructor(e){var t;this.name=(0,v.assertName)(e.name),this.description=e.description,this.extensions=(0,f.toObjMap)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._values="function"==typeof e.values?e.values:be(this.name,e.values),this._valueLookup=null,this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return"function"==typeof this._values&&(this._values=be(this.name,this._values())),this._values}getValue(e){return null===this._nameLookup&&(this._nameLookup=(0,u.keyMap)(this.getValues(),e=>e.name)),this._nameLookup[e]}serialize(e){null===this._valueLookup&&(this._valueLookup=new Map(this.getValues().map(e=>[e.value,e])));const t=this._valueLookup.get(e);if(void 0===t)throw new h.GraphQLError(`Enum "${this.name}" cannot represent value: ${(0,s.inspect)(e)}`);return t.name}parseValue(e){if("string"!=typeof e){const t=(0,s.inspect)(e);throw new h.GraphQLError(`Enum "${this.name}" cannot represent non-string value: ${t}.`+ve(this,t))}const t=this.getValue(e);if(null==t)throw new h.GraphQLError(`Value "${e}" does not exist in "${this.name}" enum.`+ve(this,e));return t.value}parseLiteral(e,t){if(e.kind!==m.Kind.ENUM){const t=(0,g.print)(e);throw new h.GraphQLError(`Enum "${this.name}" cannot represent non-enum value: ${t}.`+ve(this,t),{nodes:e})}const n=this.getValue(e.value);if(null==n){const t=(0,g.print)(e);throw new h.GraphQLError(`Value "${t}" does not exist in "${this.name}" enum.`+ve(this,t),{nodes:e})}return n.value}toConfig(){const e=(0,c.keyValMap)(this.getValues(),e=>e.name,e=>({description:e.description,value:e.value,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}));return{name:this.name,description:this.description,values:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function ve(e,t){const n=e.getValues().map(e=>e.name),r=(0,p.suggestionList)(t,n);return(0,i.didYouMean)("the enum value",r)}function be(e,t){return ce(t)||(0,r.devAssert)(!1,`${e} values must be an object with value names as keys.`),Object.entries(t).map(([t,n])=>(ce(n)||(0,r.devAssert)(!1,`${e}.${t} must refer to an object with a "value" key representing an internal value but got: ${(0,s.inspect)(n)}.`),{name:(0,v.assertEnumValueName)(t),description:n.description,value:void 0!==n.value?n.value:t,deprecationReason:n.deprecationReason,extensions:(0,f.toObjMap)(n.extensions),astNode:n.astNode}))}class Ee{constructor(e){var t,n;this.name=(0,v.assertName)(e.name),this.description=e.description,this.extensions=(0,f.toObjMap)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this.isOneOf=null!==(n=e.isOneOf)&&void 0!==n&&n,this._fields=Te.bind(void 0,e)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}toConfig(){const e=(0,d.mapValue)(this.getFields(),e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}));return{name:this.name,description:this.description,fields:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,isOneOf:this.isOneOf}}toString(){return this.name}toJSON(){return this.toString()}}function Te(e){const t=ie(e.fields);return ce(t)||(0,r.devAssert)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),(0,d.mapValue)(t,(t,n)=>(!("resolve"in t)||(0,r.devAssert)(!1,`${e.name}.${n} field has a resolve property, but Input Types cannot define resolvers.`),{name:(0,v.assertName)(n),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:(0,f.toObjMap)(t.extensions),astNode:t.astNode}))}function we(e){return F(e.type)&&void 0===e.defaultValue}},67274(e,t,n){n.r(t),n.d(t,{DEFAULT_DEPRECATION_REASON:()=>y,GraphQLDeprecatedDirective:()=>v,GraphQLDirective:()=>h,GraphQLIncludeDirective:()=>m,GraphQLOneOfDirective:()=>E,GraphQLSkipDirective:()=>g,GraphQLSpecifiedByDirective:()=>b,assertDirective:()=>f,isDirective:()=>p,isSpecifiedDirective:()=>w,specifiedDirectives:()=>T});var r=n(93217),i=n(35198),o=n(50792),s=n(91070),a=n(40698),l=n(42868),u=n(20567),c=n(73663),d=n(84143);function p(e){return(0,o.instanceOf)(e,h)}function f(e){if(!p(e))throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL directive.`);return e}class h{constructor(e){var t,n;this.name=(0,u.assertName)(e.name),this.description=e.description,this.locations=e.locations,this.isRepeatable=null!==(t=e.isRepeatable)&&void 0!==t&&t,this.extensions=(0,a.toObjMap)(e.extensions),this.astNode=e.astNode,Array.isArray(e.locations)||(0,r.devAssert)(!1,`@${e.name} locations must be an Array.`);const i=null!==(n=e.args)&&void 0!==n?n:{};(0,s.isObjectLike)(i)&&!Array.isArray(i)||(0,r.devAssert)(!1,`@${e.name} args must be an object with argument names as keys.`),this.args=(0,c.defineArguments)(i)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:(0,c.argsToArgsConfig)(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}}const m=new h({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[l.DirectiveLocation.FIELD,l.DirectiveLocation.FRAGMENT_SPREAD,l.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new c.GraphQLNonNull(d.GraphQLBoolean),description:"Included when true."}}}),g=new h({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[l.DirectiveLocation.FIELD,l.DirectiveLocation.FRAGMENT_SPREAD,l.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new c.GraphQLNonNull(d.GraphQLBoolean),description:"Skipped when true."}}}),y="No longer supported",v=new h({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[l.DirectiveLocation.FIELD_DEFINITION,l.DirectiveLocation.ARGUMENT_DEFINITION,l.DirectiveLocation.INPUT_FIELD_DEFINITION,l.DirectiveLocation.ENUM_VALUE],args:{reason:{type:d.GraphQLString,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:y}}}),b=new h({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[l.DirectiveLocation.SCALAR],args:{url:{type:new c.GraphQLNonNull(d.GraphQLString),description:"The URL that specifies the behavior of this scalar."}}}),E=new h({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[l.DirectiveLocation.INPUT_OBJECT],args:{}}),T=Object.freeze([m,g,v,b,E]);function w(e){return T.some(({name:t})=>t===e.name)}},28957(e,t,n){n.r(t),n.d(t,{SchemaMetaFieldDef:()=>b,TypeKind:()=>y,TypeMetaFieldDef:()=>E,TypeNameMetaFieldDef:()=>T,__Directive:()=>d,__DirectiveLocation:()=>p,__EnumValue:()=>g,__Field:()=>h,__InputValue:()=>m,__Schema:()=>c,__Type:()=>f,__TypeKind:()=>v,introspectionTypes:()=>w,isIntrospectionType:()=>k});var r=n(35198),i=n(71306),o=n(42868),s=n(9554),a=n(39709),l=n(73663),u=n(84143);const c=new l.GraphQLObjectType({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:()=>({description:{type:u.GraphQLString,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new l.GraphQLNonNull(new l.GraphQLList(new l.GraphQLNonNull(f))),resolve:e=>Object.values(e.getTypeMap())},queryType:{description:"The type that query operations will be rooted at.",type:new l.GraphQLNonNull(f),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:f,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:f,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new l.GraphQLNonNull(new l.GraphQLList(new l.GraphQLNonNull(d))),resolve:e=>e.getDirectives()}})}),d=new l.GraphQLObjectType({name:"__Directive",description:"A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",fields:()=>({name:{type:new l.GraphQLNonNull(u.GraphQLString),resolve:e=>e.name},description:{type:u.GraphQLString,resolve:e=>e.description},isRepeatable:{type:new l.GraphQLNonNull(u.GraphQLBoolean),resolve:e=>e.isRepeatable},locations:{type:new l.GraphQLNonNull(new l.GraphQLList(new l.GraphQLNonNull(p))),resolve:e=>e.locations},args:{type:new l.GraphQLNonNull(new l.GraphQLList(new l.GraphQLNonNull(m))),args:{includeDeprecated:{type:u.GraphQLBoolean,defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.args:e.args.filter(e=>null==e.deprecationReason)}})}),p=new l.GraphQLEnumType({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:o.DirectiveLocation.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:o.DirectiveLocation.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:o.DirectiveLocation.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:o.DirectiveLocation.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:o.DirectiveLocation.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:o.DirectiveLocation.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:o.DirectiveLocation.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:o.DirectiveLocation.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:o.DirectiveLocation.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:o.DirectiveLocation.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:o.DirectiveLocation.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:o.DirectiveLocation.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:o.DirectiveLocation.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:o.DirectiveLocation.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:o.DirectiveLocation.UNION,description:"Location adjacent to a union definition."},ENUM:{value:o.DirectiveLocation.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:o.DirectiveLocation.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:o.DirectiveLocation.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:o.DirectiveLocation.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),f=new l.GraphQLObjectType({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:()=>({kind:{type:new l.GraphQLNonNull(v),resolve:e=>(0,l.isScalarType)(e)?y.SCALAR:(0,l.isObjectType)(e)?y.OBJECT:(0,l.isInterfaceType)(e)?y.INTERFACE:(0,l.isUnionType)(e)?y.UNION:(0,l.isEnumType)(e)?y.ENUM:(0,l.isInputObjectType)(e)?y.INPUT_OBJECT:(0,l.isListType)(e)?y.LIST:(0,l.isNonNullType)(e)?y.NON_NULL:void(0,i.invariant)(!1,`Unexpected type: "${(0,r.inspect)(e)}".`)},name:{type:u.GraphQLString,resolve:e=>"name"in e?e.name:void 0},description:{type:u.GraphQLString,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:u.GraphQLString,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new l.GraphQLList(new l.GraphQLNonNull(h)),args:{includeDeprecated:{type:u.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,l.isObjectType)(e)||(0,l.isInterfaceType)(e)){const n=Object.values(e.getFields());return t?n:n.filter(e=>null==e.deprecationReason)}}},interfaces:{type:new l.GraphQLList(new l.GraphQLNonNull(f)),resolve(e){if((0,l.isObjectType)(e)||(0,l.isInterfaceType)(e))return e.getInterfaces()}},possibleTypes:{type:new l.GraphQLList(new l.GraphQLNonNull(f)),resolve(e,t,n,{schema:r}){if((0,l.isAbstractType)(e))return r.getPossibleTypes(e)}},enumValues:{type:new l.GraphQLList(new l.GraphQLNonNull(g)),args:{includeDeprecated:{type:u.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,l.isEnumType)(e)){const n=e.getValues();return t?n:n.filter(e=>null==e.deprecationReason)}}},inputFields:{type:new l.GraphQLList(new l.GraphQLNonNull(m)),args:{includeDeprecated:{type:u.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,l.isInputObjectType)(e)){const n=Object.values(e.getFields());return t?n:n.filter(e=>null==e.deprecationReason)}}},ofType:{type:f,resolve:e=>"ofType"in e?e.ofType:void 0},isOneOf:{type:u.GraphQLBoolean,resolve:e=>{if((0,l.isInputObjectType)(e))return e.isOneOf}}})}),h=new l.GraphQLObjectType({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:()=>({name:{type:new l.GraphQLNonNull(u.GraphQLString),resolve:e=>e.name},description:{type:u.GraphQLString,resolve:e=>e.description},args:{type:new l.GraphQLNonNull(new l.GraphQLList(new l.GraphQLNonNull(m))),args:{includeDeprecated:{type:u.GraphQLBoolean,defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.args:e.args.filter(e=>null==e.deprecationReason)},type:{type:new l.GraphQLNonNull(f),resolve:e=>e.type},isDeprecated:{type:new l.GraphQLNonNull(u.GraphQLBoolean),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:u.GraphQLString,resolve:e=>e.deprecationReason}})}),m=new l.GraphQLObjectType({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:()=>({name:{type:new l.GraphQLNonNull(u.GraphQLString),resolve:e=>e.name},description:{type:u.GraphQLString,resolve:e=>e.description},type:{type:new l.GraphQLNonNull(f),resolve:e=>e.type},defaultValue:{type:u.GraphQLString,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){const{type:t,defaultValue:n}=e,r=(0,a.astFromValue)(n,t);return r?(0,s.print)(r):null}},isDeprecated:{type:new l.GraphQLNonNull(u.GraphQLBoolean),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:u.GraphQLString,resolve:e=>e.deprecationReason}})}),g=new l.GraphQLObjectType({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:()=>({name:{type:new l.GraphQLNonNull(u.GraphQLString),resolve:e=>e.name},description:{type:u.GraphQLString,resolve:e=>e.description},isDeprecated:{type:new l.GraphQLNonNull(u.GraphQLBoolean),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:u.GraphQLString,resolve:e=>e.deprecationReason}})});var y;!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"}(y||(y={}));const v=new l.GraphQLEnumType({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:y.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:y.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:y.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:y.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:y.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:y.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:y.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:y.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),b={name:"__schema",type:new l.GraphQLNonNull(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},E={name:"__type",type:f,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new l.GraphQLNonNull(u.GraphQLString),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(e,{name:t},n,{schema:r})=>r.getType(t),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},T={name:"__typename",type:new l.GraphQLNonNull(u.GraphQLString),description:"The name of the current Object type at runtime.",args:[],resolve:(e,t,n,{parentType:r})=>r.name,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},w=Object.freeze([c,d,p,f,h,m,g,v]);function k(e){return w.some(({name:t})=>e.name===t)}},84143(e,t,n){n.r(t),n.d(t,{GRAPHQL_MAX_INT:()=>u,GRAPHQL_MIN_INT:()=>c,GraphQLBoolean:()=>h,GraphQLFloat:()=>p,GraphQLID:()=>m,GraphQLInt:()=>d,GraphQLString:()=>f,isSpecifiedScalarType:()=>y,specifiedScalarTypes:()=>g});var r=n(35198),i=n(91070),o=n(48255),s=n(42455),a=n(9554),l=n(73663);const u=2147483647,c=-2147483648,d=new l.GraphQLScalarType({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize(e){const t=v(e);if("boolean"==typeof t)return t?1:0;let n=t;if("string"==typeof t&&""!==t&&(n=Number(t)),"number"!=typeof n||!Number.isInteger(n))throw new o.GraphQLError(`Int cannot represent non-integer value: ${(0,r.inspect)(t)}`);if(n>u||n<c)throw new o.GraphQLError("Int cannot represent non 32-bit signed integer value: "+(0,r.inspect)(t));return n},parseValue(e){if("number"!=typeof e||!Number.isInteger(e))throw new o.GraphQLError(`Int cannot represent non-integer value: ${(0,r.inspect)(e)}`);if(e>u||e<c)throw new o.GraphQLError(`Int cannot represent non 32-bit signed integer value: ${e}`);return e},parseLiteral(e){if(e.kind!==s.Kind.INT)throw new o.GraphQLError(`Int cannot represent non-integer value: ${(0,a.print)(e)}`,{nodes:e});const t=parseInt(e.value,10);if(t>u||t<c)throw new o.GraphQLError(`Int cannot represent non 32-bit signed integer value: ${e.value}`,{nodes:e});return t}}),p=new l.GraphQLScalarType({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",serialize(e){const t=v(e);if("boolean"==typeof t)return t?1:0;let n=t;if("string"==typeof t&&""!==t&&(n=Number(t)),"number"!=typeof n||!Number.isFinite(n))throw new o.GraphQLError(`Float cannot represent non numeric value: ${(0,r.inspect)(t)}`);return n},parseValue(e){if("number"!=typeof e||!Number.isFinite(e))throw new o.GraphQLError(`Float cannot represent non numeric value: ${(0,r.inspect)(e)}`);return e},parseLiteral(e){if(e.kind!==s.Kind.FLOAT&&e.kind!==s.Kind.INT)throw new o.GraphQLError(`Float cannot represent non numeric value: ${(0,a.print)(e)}`,e);return parseFloat(e.value)}}),f=new l.GraphQLScalarType({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize(e){const t=v(e);if("string"==typeof t)return t;if("boolean"==typeof t)return t?"true":"false";if("number"==typeof t&&Number.isFinite(t))return t.toString();throw new o.GraphQLError(`String cannot represent value: ${(0,r.inspect)(e)}`)},parseValue(e){if("string"!=typeof e)throw new o.GraphQLError(`String cannot represent a non string value: ${(0,r.inspect)(e)}`);return e},parseLiteral(e){if(e.kind!==s.Kind.STRING)throw new o.GraphQLError(`String cannot represent a non string value: ${(0,a.print)(e)}`,{nodes:e});return e.value}}),h=new l.GraphQLScalarType({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize(e){const t=v(e);if("boolean"==typeof t)return t;if(Number.isFinite(t))return 0!==t;throw new o.GraphQLError(`Boolean cannot represent a non boolean value: ${(0,r.inspect)(t)}`)},parseValue(e){if("boolean"!=typeof e)throw new o.GraphQLError(`Boolean cannot represent a non boolean value: ${(0,r.inspect)(e)}`);return e},parseLiteral(e){if(e.kind!==s.Kind.BOOLEAN)throw new o.GraphQLError(`Boolean cannot represent a non boolean value: ${(0,a.print)(e)}`,{nodes:e});return e.value}}),m=new l.GraphQLScalarType({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize(e){const t=v(e);if("string"==typeof t)return t;if(Number.isInteger(t))return String(t);throw new o.GraphQLError(`ID cannot represent value: ${(0,r.inspect)(e)}`)},parseValue(e){if("string"==typeof e)return e;if("number"==typeof e&&Number.isInteger(e))return e.toString();throw new o.GraphQLError(`ID cannot represent value: ${(0,r.inspect)(e)}`)},parseLiteral(e){if(e.kind!==s.Kind.STRING&&e.kind!==s.Kind.INT)throw new o.GraphQLError("ID cannot represent a non-string and non-integer value: "+(0,a.print)(e),{nodes:e});return e.value}}),g=Object.freeze([f,d,p,h,m]);function y(e){return g.some(({name:t})=>e.name===t)}function v(e){if((0,i.isObjectLike)(e)){if("function"==typeof e.valueOf){const t=e.valueOf();if(!(0,i.isObjectLike)(t))return t}if("function"==typeof e.toJSON)return e.toJSON()}return e}},25329(e,t,n){n.r(t),n.d(t,{GraphQLSchema:()=>h,assertSchema:()=>f,isSchema:()=>p});var r=n(93217),i=n(35198),o=n(50792),s=n(91070),a=n(40698),l=n(59762),u=n(73663),c=n(67274),d=n(28957);function p(e){return(0,o.instanceOf)(e,h)}function f(e){if(!p(e))throw new Error(`Expected ${(0,i.inspect)(e)} to be a GraphQL schema.`);return e}class h{constructor(e){var t,n;this.__validationErrors=!0===e.assumeValid?[]:void 0,(0,s.isObjectLike)(e)||(0,r.devAssert)(!1,"Must provide configuration object."),!e.types||Array.isArray(e.types)||(0,r.devAssert)(!1,`"types" must be Array if provided but got: ${(0,i.inspect)(e.types)}.`),!e.directives||Array.isArray(e.directives)||(0,r.devAssert)(!1,`"directives" must be Array if provided but got: ${(0,i.inspect)(e.directives)}.`),this.description=e.description,this.extensions=(0,a.toObjMap)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._queryType=e.query,this._mutationType=e.mutation,this._subscriptionType=e.subscription,this._directives=null!==(n=e.directives)&&void 0!==n?n:c.specifiedDirectives;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.isDirective)(e))for(const t of e.args)m(t.type,o);m(d.__Schema,o),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(const e of o){if(null==e)continue;const t=e.name;if(t||(0,r.devAssert)(!1,"One of the provided types for building the Schema is missing a name."),void 0!==this._typeMap[t])throw new Error(`Schema must contain uniquely named types but contains multiple types named "${t}".`);if(this._typeMap[t]=e,(0,u.isInterfaceType)(e)){for(const t of e.getInterfaces())if((0,u.isInterfaceType)(t)){let n=this._implementationsMap[t.name];void 0===n&&(n=this._implementationsMap[t.name]={objects:[],interfaces:[]}),n.interfaces.push(e)}}else if((0,u.isObjectType)(e))for(const t of e.getInterfaces())if((0,u.isInterfaceType)(t)){let n=this._implementationsMap[t.name];void 0===n&&(n=this._implementationsMap[t.name]={objects:[],interfaces:[]}),n.objects.push(e)}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(e){switch(e){case l.OperationTypeNode.QUERY:return this.getQueryType();case l.OperationTypeNode.MUTATION:return this.getMutationType();case l.OperationTypeNode.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(e){return this.getTypeMap()[e]}getPossibleTypes(e){return(0,u.isUnionType)(e)?e.getTypes():this.getImplementations(e).objects}getImplementations(e){const t=this._implementationsMap[e.name];return null!=t?t:{objects:[],interfaces:[]}}isSubType(e,t){let n=this._subTypeMap[e.name];if(void 0===n){if(n=Object.create(null),(0,u.isUnionType)(e))for(const t of e.getTypes())n[t.name]=!0;else{const t=this.getImplementations(e);for(const e of t.objects)n[e.name]=!0;for(const e of t.interfaces)n[e.name]=!0}this._subTypeMap[e.name]=n}return void 0!==n[t.name]}getDirectives(){return this._directives}getDirective(e){return this.getDirectives().find(t=>t.name===e)}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:void 0!==this.__validationErrors}}}function m(e,t){const n=(0,u.getNamedType)(e);if(!t.has(n))if(t.add(n),(0,u.isUnionType)(n))for(const e of n.getTypes())m(e,t);else if((0,u.isObjectType)(n)||(0,u.isInterfaceType)(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.isInputObjectType)(n))for(const e of Object.values(n.getFields()))m(e.type,t);return t}},47626(e,t,n){n.r(t),n.d(t,{assertValidSchema:()=>p,validateSchema:()=>d});var r=n(35198),i=n(48255),o=n(59762),s=n(64917),a=n(73663),l=n(67274),u=n(28957),c=n(25329);function d(e){if((0,c.assertSchema)(e),e.__validationErrors)return e.__validationErrors;const t=new f(e);!function(e){const t=e.schema,n=t.getQueryType();if(n){if(!(0,a.isObjectType)(n)){var i;e.reportError(`Query root type must be Object type, it cannot be ${(0,r.inspect)(n)}.`,null!==(i=h(t,o.OperationTypeNode.QUERY))&&void 0!==i?i:n.astNode)}}else e.reportError("Query root type must be provided.",t.astNode);const s=t.getMutationType();var l;s&&!(0,a.isObjectType)(s)&&e.reportError(`Mutation root type must be Object type if provided, it cannot be ${(0,r.inspect)(s)}.`,null!==(l=h(t,o.OperationTypeNode.MUTATION))&&void 0!==l?l:s.astNode);const u=t.getSubscriptionType();var c;u&&!(0,a.isObjectType)(u)&&e.reportError(`Subscription root type must be Object type if provided, it cannot be ${(0,r.inspect)(u)}.`,null!==(c=h(t,o.OperationTypeNode.SUBSCRIPTION))&&void 0!==c?c:u.astNode)}(t),function(e){for(const n of e.schema.getDirectives())if((0,l.isDirective)(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,a.isInputType)(i.type)||e.reportError(`The type of @${n.name}(${i.name}:) must be Input Type but got: ${(0,r.inspect)(i.type)}.`,i.astNode),(0,a.isRequiredArgument)(i)&&null!=i.deprecationReason&&e.reportError(`Required argument @${n.name}(${i.name}:) cannot be deprecated.`,[C(i.astNode),null===(t=i.astNode)||void 0===t?void 0:t.type])}}else e.reportError(`Expected directive but got: ${(0,r.inspect)(n)}.`,null==n?void 0:n.astNode)}(t),function(e){const t=function(e){const t=Object.create(null),n=[],r=Object.create(null);return function i(o){if(t[o.name])return;t[o.name]=!0,r[o.name]=n.length;const s=Object.values(o.getFields());for(const t of s)if((0,a.isNonNullType)(t.type)&&(0,a.isInputObjectType)(t.type.ofType)){const o=t.type.ofType,s=r[o.name];if(n.push(t),void 0===s)i(o);else{const t=n.slice(s),r=t.map(e=>e.name).join(".");e.reportError(`Cannot reference Input Object "${o.name}" within itself through a series of non-null fields: "${r}".`,t.map(e=>e.astNode))}n.pop()}r[o.name]=void 0}}(e),n=e.schema.getTypeMap();for(const i of Object.values(n))(0,a.isNamedType)(i)?((0,u.isIntrospectionType)(i)||m(e,i),(0,a.isObjectType)(i)||(0,a.isInterfaceType)(i)?(g(e,i),y(e,i)):(0,a.isUnionType)(i)?E(e,i):(0,a.isEnumType)(i)?T(e,i):(0,a.isInputObjectType)(i)&&(w(e,i),t(i))):e.reportError(`Expected GraphQL named type but got: ${(0,r.inspect)(i)}.`,i.astNode)}(t);const n=t.getErrors();return e.__validationErrors=n,n}function p(e){const t=d(e);if(0!==t.length)throw new Error(t.map(e=>e.message).join("\n\n"))}class f{constructor(e){this._errors=[],this.schema=e}reportError(e,t){const n=Array.isArray(t)?t.filter(Boolean):t;this._errors.push(new i.GraphQLError(e,{nodes:n}))}getErrors(){return this._errors}}function 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,a.isOutputType)(l.type)||e.reportError(`The type of ${t.name}.${l.name} must be Output Type but got: ${(0,r.inspect)(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,s;m(e,n),(0,a.isInputType)(n.type)||e.reportError(`The type of ${t.name}.${l.name}(${i}:) must be Input Type but got: ${(0,r.inspect)(n.type)}.`,null===(o=n.astNode)||void 0===o?void 0:o.type),(0,a.isRequiredArgument)(n)&&null!=n.deprecationReason&&e.reportError(`Required argument ${t.name}.${l.name}(${i}:) cannot be deprecated.`,[C(n.astNode),null===(s=n.astNode)||void 0===s?void 0:s.type])}}}function y(e,t){const n=Object.create(null);for(const i of t.getInterfaces())(0,a.isInterfaceType)(i)?t!==i?n[i.name]?e.reportError(`Type ${t.name} can only implement ${i.name} once.`,S(t,i)):(n[i.name]=!0,b(e,t,i),v(e,t,i)):e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,S(t,i)):e.reportError(`Type ${(0,r.inspect)(t)} must only implement Interface types, it cannot implement ${(0,r.inspect)(i)}.`,S(t,i))}function v(e,t,n){const i=t.getFields();for(const d of Object.values(n.getFields())){const p=d.name,f=i[p];if(f){var o,l;(0,s.isTypeSubTypeOf)(e.schema,f.type,d.type)||e.reportError(`Interface field ${n.name}.${p} expects type ${(0,r.inspect)(d.type)} but ${t.name}.${p} is type ${(0,r.inspect)(f.type)}.`,[null===(o=d.astNode)||void 0===o?void 0:o.type,null===(l=f.astNode)||void 0===l?void 0:l.type]);for(const i of d.args){const o=i.name,a=f.args.find(e=>e.name===o);var u,c;a?(0,s.isEqualType)(i.type,a.type)||e.reportError(`Interface field argument ${n.name}.${p}(${o}:) expects type ${(0,r.inspect)(i.type)} but ${t.name}.${p}(${o}:) is type ${(0,r.inspect)(a.type)}.`,[null===(u=i.astNode)||void 0===u?void 0:u.type,null===(c=a.astNode)||void 0===c?void 0:c.type]):e.reportError(`Interface field argument ${n.name}.${p}(${o}:) expected but ${t.name}.${p} does not provide it.`,[i.astNode,f.astNode])}for(const r of f.args){const i=r.name;!d.args.find(e=>e.name===i)&&(0,a.isRequiredArgument)(r)&&e.reportError(`Object field ${t.name}.${p} includes required argument ${i} that is missing from the Interface field ${n.name}.${p}.`,[r.astNode,d.astNode])}}else e.reportError(`Interface field ${n.name}.${p} expected but ${t.name} does not provide it.`,[d.astNode,t.astNode,...t.extensionASTNodes])}}function 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}.`,[...S(n,i),...S(t,n)])}function E(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.`,x(t,o.name)):(i[o.name]=!0,(0,a.isObjectType)(o)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${(0,r.inspect)(o)}.`,x(t,String(o))))}function T(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 s of n){var i,o;m(e,s),(0,a.isInputType)(s.type)||e.reportError(`The type of ${t.name}.${s.name} must be Input Type but got: ${(0,r.inspect)(s.type)}.`,null===(i=s.astNode)||void 0===i?void 0:i.type),(0,a.isRequiredInputField)(s)&&null!=s.deprecationReason&&e.reportError(`Required input field ${t.name}.${s.name} cannot be deprecated.`,[C(s.astNode),null===(o=s.astNode)||void 0===o?void 0:o.type]),t.isOneOf&&k(t,s,e)}}function k(e,t,n){var r;(0,a.isNonNullType)(t.type)&&n.reportError(`OneOf input field ${e.name}.${t.name} must be nullable.`,null===(r=t.astNode)||void 0===r?void 0:r.type),void 0!==t.defaultValue&&n.reportError(`OneOf input field ${e.name}.${t.name} cannot have a default value.`,t.astNode)}function S(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 x(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 C(e){var t;return null==e||null===(t=e.directives)||void 0===t?void 0:t.find(e=>e.name.value===l.GraphQLDeprecatedDirective.name)}},57350(e,t,n){n.r(t),n.d(t,{TypeInfo:()=>u,visitWithTypeInfo:()=>d});var r=n(59762),i=n(42455),o=n(90424),s=n(73663),a=n(28957),l=n(89494);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,s.isInputType)(t)&&this._inputTypeStack.push(t),(0,s.isCompositeType)(t)&&this._parentTypeStack.push(t),(0,s.isOutputType)(t)&&this._typeStack.push(t))}get[Symbol.toStringTag](){return"TypeInfo"}getType(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]}getParentType(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]}getInputType(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]}getParentInputType(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]}getFieldDef(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]}getDefaultValue(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(e){const t=this._schema;switch(e.kind){case i.Kind.SELECTION_SET:{const e=(0,s.getNamedType)(this.getType());this._parentTypeStack.push((0,s.isCompositeType)(e)?e:void 0);break}case i.Kind.FIELD:{const n=this.getParentType();let r,i;n&&(r=this._getFieldDef(t,n,e),r&&(i=r.type)),this._fieldDefStack.push(r),this._typeStack.push((0,s.isOutputType)(i)?i:void 0);break}case i.Kind.DIRECTIVE:this._directive=t.getDirective(e.name.value);break;case i.Kind.OPERATION_DEFINITION:{const n=t.getRootType(e.operation);this._typeStack.push((0,s.isObjectType)(n)?n:void 0);break}case i.Kind.INLINE_FRAGMENT:case i.Kind.FRAGMENT_DEFINITION:{const n=e.typeCondition,r=n?(0,l.typeFromAST)(t,n):(0,s.getNamedType)(this.getType());this._typeStack.push((0,s.isOutputType)(r)?r:void 0);break}case i.Kind.VARIABLE_DEFINITION:{const n=(0,l.typeFromAST)(t,e.type);this._inputTypeStack.push((0,s.isInputType)(n)?n:void 0);break}case i.Kind.ARGUMENT:{var n;let t,r;const i=null!==(n=this.getDirective())&&void 0!==n?n:this.getFieldDef();i&&(t=i.args.find(t=>t.name===e.name.value),t&&(r=t.type)),this._argument=t,this._defaultValueStack.push(t?t.defaultValue:void 0),this._inputTypeStack.push((0,s.isInputType)(r)?r:void 0);break}case i.Kind.LIST:{const e=(0,s.getNullableType)(this.getInputType()),t=(0,s.isListType)(e)?e.ofType:e;this._defaultValueStack.push(void 0),this._inputTypeStack.push((0,s.isInputType)(t)?t:void 0);break}case i.Kind.OBJECT_FIELD:{const t=(0,s.getNamedType)(this.getInputType());let n,r;(0,s.isInputObjectType)(t)&&(r=t.getFields()[e.name.value],r&&(n=r.type)),this._defaultValueStack.push(r?r.defaultValue:void 0),this._inputTypeStack.push((0,s.isInputType)(n)?n:void 0);break}case i.Kind.ENUM:{const t=(0,s.getNamedType)(this.getInputType());let n;(0,s.isEnumType)(t)&&(n=t.getValue(e.value)),this._enumValue=n;break}}}leave(e){switch(e.kind){case i.Kind.SELECTION_SET:this._parentTypeStack.pop();break;case i.Kind.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case i.Kind.DIRECTIVE:this._directive=null;break;case i.Kind.OPERATION_DEFINITION:case i.Kind.INLINE_FRAGMENT:case i.Kind.FRAGMENT_DEFINITION:this._typeStack.pop();break;case i.Kind.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case i.Kind.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case i.Kind.LIST:case i.Kind.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case i.Kind.ENUM:this._enumValue=null}}}function c(e,t,n){const r=n.name.value;return r===a.SchemaMetaFieldDef.name&&e.getQueryType()===t?a.SchemaMetaFieldDef:r===a.TypeMetaFieldDef.name&&e.getQueryType()===t?a.TypeMetaFieldDef:r===a.TypeNameMetaFieldDef.name&&(0,s.isCompositeType)(t)?a.TypeNameMetaFieldDef:(0,s.isObjectType)(t)||(0,s.isInterfaceType)(t)?t.getFields()[r]:void 0}function d(e,t){return{enter(...n){const i=n[0];e.enter(i);const s=(0,o.getEnterLeaveForKind)(t,i.kind).enter;if(s){const o=s.apply(t,n);return void 0!==o&&(e.leave(i),(0,r.isNode)(o)&&e.enter(o)),o}},leave(...n){const r=n[0],i=(0,o.getEnterLeaveForKind)(t,r.kind).leave;let s;return i&&(s=i.apply(t,n)),e.leave(r),s}}}},39709(e,t,n){n.r(t),n.d(t,{astFromValue:()=>c});var r=n(35198),i=n(71306),o=n(23153),s=n(91070),a=n(42455),l=n(73663),u=n(84143);function c(e,t){if((0,l.isNonNullType)(t)){const n=c(e,t.ofType);return(null==n?void 0:n.kind)===a.Kind.NULL?null:n}if(null===e)return{kind:a.Kind.NULL};if(void 0===e)return null;if((0,l.isListType)(t)){const n=t.ofType;if((0,o.isIterableObject)(e)){const t=[];for(const r of e){const e=c(r,n);null!=e&&t.push(e)}return{kind:a.Kind.LIST,values:t}}return c(e,n)}if((0,l.isInputObjectType)(t)){if(!(0,s.isObjectLike)(e))return null;const n=[];for(const r of Object.values(t.getFields())){const t=c(e[r.name],r.type);t&&n.push({kind:a.Kind.OBJECT_FIELD,name:{kind:a.Kind.NAME,value:r.name},value:t})}return{kind:a.Kind.OBJECT,fields:n}}if((0,l.isLeafType)(t)){const n=t.serialize(e);if(null==n)return null;if("boolean"==typeof n)return{kind:a.Kind.BOOLEAN,value:n};if("number"==typeof n&&Number.isFinite(n)){const e=String(n);return d.test(e)?{kind:a.Kind.INT,value:e}:{kind:a.Kind.FLOAT,value:e}}if("string"==typeof n)return(0,l.isEnumType)(t)?{kind:a.Kind.ENUM,value:n}:t===u.GraphQLID&&d.test(n)?{kind:a.Kind.INT,value:n}:{kind:a.Kind.STRING,value:n};throw new TypeError(`Cannot convert value to AST: ${(0,r.inspect)(n)}.`)}(0,i.invariant)(!1,"Unexpected input type: "+(0,r.inspect)(t))}const d=/^-?(?:0|[1-9][0-9]*)$/},359(e,t,n){n.r(t),n.d(t,{buildASTSchema:()=>c,buildSchema:()=>d});var r=n(93217),i=n(42455),o=n(98195),s=n(67274),a=n(25329),l=n(8553),u=n(70219);function c(e,t){null!=e&&e.kind===i.Kind.DOCUMENT||(0,r.devAssert)(!1,"Must provide valid Document AST."),!0!==(null==t?void 0:t.assumeValid)&&!0!==(null==t?void 0:t.assumeValidSDL)&&(0,l.assertValidSDL)(e);const n={description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},o=(0,u.extendSchemaImpl)(n,e,t);if(null==o.astNode)for(const e of o.types)switch(e.name){case"Query":o.query=e;break;case"Mutation":o.mutation=e;break;case"Subscription":o.subscription=e}const c=[...o.directives,...s.specifiedDirectives.filter(e=>o.directives.every(t=>t.name!==e.name))];return new a.GraphQLSchema({...o,directives:c})}function d(e,t){return c((0,o.parse)(e,{noLocation:null==t?void 0:t.noLocation,allowLegacyFragmentVariables:null==t?void 0:t.allowLegacyFragmentVariables}),{assumeValidSDL:null==t?void 0:t.assumeValidSDL,assumeValid:null==t?void 0:t.assumeValid})}},65410(e,t,n){n.r(t),n.d(t,{buildClientSchema:()=>h});var r=n(93217),i=n(35198),o=n(91070),s=n(96394),a=n(98195),l=n(73663),u=n(67274),c=n(28957),d=n(84143),p=n(25329),f=n(69327);function h(e,t){(0,o.isObjectLike)(e)&&(0,o.isObjectLike)(e.__schema)||(0,r.devAssert)(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${(0,i.inspect)(e)}.`);const n=e.__schema,h=(0,s.keyValMap)(n.types,e=>e.name,e=>function(e){if(null!=e&&null!=e.name&&null!=e.kind)switch(e.kind){case c.TypeKind.SCALAR:return r=e,new l.GraphQLScalarType({name:r.name,description:r.description,specifiedByURL:r.specifiedByURL});case c.TypeKind.OBJECT:return n=e,new l.GraphQLObjectType({name:n.name,description:n.description,interfaces:()=>k(n),fields:()=>S(n)});case c.TypeKind.INTERFACE:return t=e,new l.GraphQLInterfaceType({name:t.name,description:t.description,interfaces:()=>k(t),fields:()=>S(t)});case c.TypeKind.UNION:return function(e){if(!e.possibleTypes){const t=(0,i.inspect)(e);throw new Error(`Introspection result missing possibleTypes: ${t}.`)}return new l.GraphQLUnionType({name:e.name,description:e.description,types:()=>e.possibleTypes.map(T)})}(e);case c.TypeKind.ENUM:return function(e){if(!e.enumValues){const t=(0,i.inspect)(e);throw new Error(`Introspection result missing enumValues: ${t}.`)}return new l.GraphQLEnumType({name:e.name,description:e.description,values:(0,s.keyValMap)(e.enumValues,e=>e.name,e=>({description:e.description,deprecationReason:e.deprecationReason}))})}(e);case c.TypeKind.INPUT_OBJECT:return function(e){if(!e.inputFields){const t=(0,i.inspect)(e);throw new Error(`Introspection result missing inputFields: ${t}.`)}return new l.GraphQLInputObjectType({name:e.name,description:e.description,fields:()=>C(e.inputFields),isOneOf:e.isOneOf})}(e)}var t,n,r;const o=(0,i.inspect)(e);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${o}.`)}(e));for(const e of[...d.specifiedScalarTypes,...c.introspectionTypes])h[e.name]&&(h[e.name]=e);const m=n.queryType?T(n.queryType):null,g=n.mutationType?T(n.mutationType):null,y=n.subscriptionType?T(n.subscriptionType):null,v=n.directives?n.directives.map(function(e){if(!e.args){const t=(0,i.inspect)(e);throw new Error(`Introspection result missing directive args: ${t}.`)}if(!e.locations){const t=(0,i.inspect)(e);throw new Error(`Introspection result missing directive locations: ${t}.`)}return new u.GraphQLDirective({name:e.name,description:e.description,isRepeatable:e.isRepeatable,locations:e.locations.slice(),args:C(e.args)})}):[];return new p.GraphQLSchema({description:n.description,query:m,mutation:g,subscription:y,types:Object.values(h),directives:v,assumeValid:null==t?void 0:t.assumeValid});function b(e){if(e.kind===c.TypeKind.LIST){const t=e.ofType;if(!t)throw new Error("Decorated type deeper than introspection query.");return new l.GraphQLList(b(t))}if(e.kind===c.TypeKind.NON_NULL){const t=e.ofType;if(!t)throw new Error("Decorated type deeper than introspection query.");const n=b(t);return new l.GraphQLNonNull((0,l.assertNullableType)(n))}return E(e)}function E(e){const t=e.name;if(!t)throw new Error(`Unknown type reference: ${(0,i.inspect)(e)}.`);const n=h[t];if(!n)throw new Error(`Invalid or incomplete schema, unknown type: ${t}. Ensure that a full introspection query is used in order to build a client schema.`);return n}function T(e){return(0,l.assertObjectType)(E(e))}function w(e){return(0,l.assertInterfaceType)(E(e))}function k(e){if(null===e.interfaces&&e.kind===c.TypeKind.INTERFACE)return[];if(!e.interfaces){const t=(0,i.inspect)(e);throw new Error(`Introspection result missing interfaces: ${t}.`)}return e.interfaces.map(w)}function S(e){if(!e.fields)throw new Error(`Introspection result missing fields: ${(0,i.inspect)(e)}.`);return(0,s.keyValMap)(e.fields,e=>e.name,x)}function x(e){const t=b(e.type);if(!(0,l.isOutputType)(t)){const e=(0,i.inspect)(t);throw new Error(`Introspection must provide output type for fields, but received: ${e}.`)}if(!e.args){const t=(0,i.inspect)(e);throw new Error(`Introspection result missing field args: ${t}.`)}return{description:e.description,deprecationReason:e.deprecationReason,type:t,args:C(e.args)}}function C(e){return(0,s.keyValMap)(e,e=>e.name,_)}function _(e){const t=b(e.type);if(!(0,l.isInputType)(t)){const e=(0,i.inspect)(t);throw new Error(`Introspection must provide input type for arguments, but received: ${e}.`)}const n=null!=e.defaultValue?(0,f.valueFromAST)((0,a.parseValue)(e.defaultValue),t):void 0;return{description:e.description,type:t,defaultValue:n,deprecationReason:e.deprecationReason}}}},89818(e,t,n){n.r(t),n.d(t,{coerceInputValue:()=>f});var r=n(54833),i=n(35198),o=n(71306),s=n(23153),a=n(91070),l=n(77407),u=n(18261),c=n(36382),d=n(48255),p=n(73663);function f(e,t,n=h){return m(e,t,n,void 0)}function h(e,t,n){let r="Invalid value "+(0,i.inspect)(t);throw e.length>0&&(r+=` at "value${(0,u.printPathArray)(e)}"`),n.message=r+": "+n.message,n}function m(e,t,n,u){if((0,p.isNonNullType)(t))return null!=e?m(e,t.ofType,n,u):void n((0,l.pathToArray)(u),e,new d.GraphQLError(`Expected non-nullable type "${(0,i.inspect)(t)}" not to be null.`));if(null==e)return null;if((0,p.isListType)(t)){const r=t.ofType;return(0,s.isIterableObject)(e)?Array.from(e,(e,t)=>{const i=(0,l.addPath)(u,t,void 0);return m(e,r,n,i)}):[m(e,r,n,u)]}if((0,p.isInputObjectType)(t)){if(!(0,a.isObjectLike)(e)||Array.isArray(e))return void n((0,l.pathToArray)(u),e,new d.GraphQLError(`Expected type "${t.name}" to be an object.`));const o=Object.create(null),s=t.getFields();for(const r of Object.values(s)){const s=e[r.name];if(void 0!==s)o[r.name]=m(s,r.type,n,(0,l.addPath)(u,r.name,t.name));else if(void 0!==r.defaultValue)o[r.name]=r.defaultValue;else if((0,p.isNonNullType)(r.type)){const t=(0,i.inspect)(r.type);n((0,l.pathToArray)(u),e,new d.GraphQLError(`Field "${r.name}" of required type "${t}" was not provided.`))}}for(const i of Object.keys(e))if(!s[i]){const o=(0,c.suggestionList)(i,Object.keys(t.getFields()));n((0,l.pathToArray)(u),e,new d.GraphQLError(`Field "${i}" is not defined by type "${t.name}".`+(0,r.didYouMean)(o)))}if(t.isOneOf){const r=Object.keys(o);1!==r.length&&n((0,l.pathToArray)(u),e,new d.GraphQLError(`Exactly one key must be specified for OneOf type "${t.name}".`));const i=r[0],s=o[i];null===s&&n((0,l.pathToArray)(u).concat(i),s,new d.GraphQLError(`Field "${i}" must be non-null.`))}return{...o}}if((0,p.isLeafType)(t)){let r;try{r=t.parseValue(e)}catch(r){return void(r instanceof d.GraphQLError?n((0,l.pathToArray)(u),e,r):n((0,l.pathToArray)(u),e,new d.GraphQLError(`Expected type "${t.name}". `+r.message,{originalError:r})))}return void 0===r&&n((0,l.pathToArray)(u),e,new d.GraphQLError(`Expected type "${t.name}".`)),r}(0,o.invariant)(!1,"Unexpected input type: "+(0,i.inspect)(t))}},70219(e,t,n){n.r(t),n.d(t,{extendSchema:()=>v,extendSchemaImpl:()=>b});var r=n(93217),i=n(35198),o=n(71306),s=n(15487),a=n(93871),l=n(42455),u=n(3420),c=n(73663),d=n(67274),p=n(28957),f=n(84143),h=n(25329),m=n(8553),g=n(9390),y=n(69327);function v(e,t,n){(0,h.assertSchema)(e),null!=t&&t.kind===l.Kind.DOCUMENT||(0,r.devAssert)(!1,"Must provide valid Document AST."),!0!==(null==n?void 0:n.assumeValid)&&!0!==(null==n?void 0:n.assumeValidSDL)&&(0,m.assertValidSDLExtension)(t,e);const i=e.toConfig(),o=b(i,t,n);return i===o?e:new h.GraphQLSchema(o)}function b(e,t,n){var r,s,h,m;const v=[],b=Object.create(null),k=[];let S;const x=[];for(const e of t.definitions)if(e.kind===l.Kind.SCHEMA_DEFINITION)S=e;else if(e.kind===l.Kind.SCHEMA_EXTENSION)x.push(e);else if((0,u.isTypeDefinitionNode)(e))v.push(e);else if((0,u.isTypeExtensionNode)(e)){const t=e.name.value,n=b[t];b[t]=n?n.concat([e]):[e]}else e.kind===l.Kind.DIRECTIVE_DEFINITION&&k.push(e);if(0===Object.keys(b).length&&0===v.length&&0===k.length&&0===x.length&&null==S)return e;const C=Object.create(null);for(const t of e.types)C[t.name]=L(t);for(const e of v){var _;const t=e.name.value;C[t]=null!==(_=E[t])&&void 0!==_?_:$(e)}const N={query:e.query&&A(e.query),mutation:e.mutation&&A(e.mutation),subscription:e.subscription&&A(e.subscription),...S&&R([S]),...R(x)};return{description:null===(r=S)||void 0===r||null===(s=r.description)||void 0===s?void 0:s.value,...N,types:Object.values(C),directives:[...e.directives.map(function(e){const t=e.toConfig();return new d.GraphQLDirective({...t,args:(0,a.mapValue)(t.args,O)})}),...k.map(function(e){var t;return new d.GraphQLDirective({name:e.name.value,description:null===(t=e.description)||void 0===t?void 0:t.value,locations:e.locations.map(({value:e})=>e),isRepeatable:e.repeatable,args:j(e.arguments),astNode:e})})],extensions:Object.create(null),astNode:null!==(h=S)&&void 0!==h?h:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(x),assumeValid:null!==(m=null==n?void 0:n.assumeValid)&&void 0!==m&&m};function D(e){return(0,c.isListType)(e)?new c.GraphQLList(D(e.ofType)):(0,c.isNonNullType)(e)?new c.GraphQLNonNull(D(e.ofType)):A(e)}function A(e){return C[e.name]}function L(e){return(0,p.isIntrospectionType)(e)||(0,f.isSpecifiedScalarType)(e)?e:(0,c.isScalarType)(e)?function(e){var t;const n=e.toConfig(),r=null!==(t=b[n.name])&&void 0!==t?t:[];let i=n.specifiedByURL;for(const e of r){var o;i=null!==(o=w(e))&&void 0!==o?o:i}return new c.GraphQLScalarType({...n,specifiedByURL:i,extensionASTNodes:n.extensionASTNodes.concat(r)})}(e):(0,c.isObjectType)(e)?function(e){var t;const n=e.toConfig(),r=null!==(t=b[n.name])&&void 0!==t?t:[];return new c.GraphQLObjectType({...n,interfaces:()=>[...e.getInterfaces().map(A),...U(r)],fields:()=>({...(0,a.mapValue)(n.fields,I),...M(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(e):(0,c.isInterfaceType)(e)?function(e){var t;const n=e.toConfig(),r=null!==(t=b[n.name])&&void 0!==t?t:[];return new c.GraphQLInterfaceType({...n,interfaces:()=>[...e.getInterfaces().map(A),...U(r)],fields:()=>({...(0,a.mapValue)(n.fields,I),...M(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(e):(0,c.isUnionType)(e)?function(e){var t;const n=e.toConfig(),r=null!==(t=b[n.name])&&void 0!==t?t:[];return new c.GraphQLUnionType({...n,types:()=>[...e.getTypes().map(A),...B(r)],extensionASTNodes:n.extensionASTNodes.concat(r)})}(e):(0,c.isEnumType)(e)?function(e){var t;const n=e.toConfig(),r=null!==(t=b[e.name])&&void 0!==t?t:[];return new c.GraphQLEnumType({...n,values:{...n.values,...K(r)},extensionASTNodes:n.extensionASTNodes.concat(r)})}(e):(0,c.isInputObjectType)(e)?function(e){var t;const n=e.toConfig(),r=null!==(t=b[n.name])&&void 0!==t?t:[];return new c.GraphQLInputObjectType({...n,fields:()=>({...(0,a.mapValue)(n.fields,e=>({...e,type:D(e.type)})),...V(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(e):void(0,o.invariant)(!1,"Unexpected type: "+(0,i.inspect)(e))}function I(e){return{...e,type:D(e.type),args:e.args&&(0,a.mapValue)(e.args,O)}}function O(e){return{...e,type:D(e.type)}}function R(e){const t={};for(const r of e){var n;const e=null!==(n=r.operationTypes)&&void 0!==n?n:[];for(const n of e)t[n.operation]=F(n.type)}return t}function F(e){var t;const n=e.name.value,r=null!==(t=E[n])&&void 0!==t?t:C[n];if(void 0===r)throw new Error(`Unknown type: "${n}".`);return r}function P(e){return e.kind===l.Kind.LIST_TYPE?new c.GraphQLList(P(e.type)):e.kind===l.Kind.NON_NULL_TYPE?new c.GraphQLNonNull(P(e.type)):F(e)}function M(e){const t=Object.create(null);for(const i of e){var n;const e=null!==(n=i.fields)&&void 0!==n?n:[];for(const n of e){var r;t[n.name.value]={type:P(n.type),description:null===(r=n.description)||void 0===r?void 0:r.value,args:j(n.arguments),deprecationReason:T(n),astNode:n}}}return t}function j(e){const t=null!=e?e:[],n=Object.create(null);for(const e of t){var r;const t=P(e.type);n[e.name.value]={type:t,description:null===(r=e.description)||void 0===r?void 0:r.value,defaultValue:(0,y.valueFromAST)(e.defaultValue,t),deprecationReason:T(e),astNode:e}}return n}function V(e){const t=Object.create(null);for(const i of e){var n;const e=null!==(n=i.fields)&&void 0!==n?n:[];for(const n of e){var r;const e=P(n.type);t[n.name.value]={type:e,description:null===(r=n.description)||void 0===r?void 0:r.value,defaultValue:(0,y.valueFromAST)(n.defaultValue,e),deprecationReason:T(n),astNode:n}}}return t}function K(e){const t=Object.create(null);for(const i of e){var n;const e=null!==(n=i.values)&&void 0!==n?n:[];for(const n of e){var r;t[n.name.value]={description:null===(r=n.description)||void 0===r?void 0:r.value,deprecationReason:T(n),astNode:n}}}return t}function U(e){return e.flatMap(e=>{var t,n;return null!==(t=null===(n=e.interfaces)||void 0===n?void 0:n.map(F))&&void 0!==t?t:[]})}function B(e){return e.flatMap(e=>{var t,n;return null!==(t=null===(n=e.types)||void 0===n?void 0:n.map(F))&&void 0!==t?t:[]})}function $(e){var t;const n=e.name.value,r=null!==(t=b[n])&&void 0!==t?t:[];switch(e.kind){case l.Kind.OBJECT_TYPE_DEFINITION:{var i;const t=[e,...r];return new c.GraphQLObjectType({name:n,description:null===(i=e.description)||void 0===i?void 0:i.value,interfaces:()=>U(t),fields:()=>M(t),astNode:e,extensionASTNodes:r})}case l.Kind.INTERFACE_TYPE_DEFINITION:{var o;const t=[e,...r];return new c.GraphQLInterfaceType({name:n,description:null===(o=e.description)||void 0===o?void 0:o.value,interfaces:()=>U(t),fields:()=>M(t),astNode:e,extensionASTNodes:r})}case l.Kind.ENUM_TYPE_DEFINITION:{var s;const t=[e,...r];return new c.GraphQLEnumType({name:n,description:null===(s=e.description)||void 0===s?void 0:s.value,values:K(t),astNode:e,extensionASTNodes:r})}case l.Kind.UNION_TYPE_DEFINITION:{var a;const t=[e,...r];return new c.GraphQLUnionType({name:n,description:null===(a=e.description)||void 0===a?void 0:a.value,types:()=>B(t),astNode:e,extensionASTNodes:r})}case l.Kind.SCALAR_TYPE_DEFINITION:var u;return new c.GraphQLScalarType({name:n,description:null===(u=e.description)||void 0===u?void 0:u.value,specifiedByURL:w(e),astNode:e,extensionASTNodes:r});case l.Kind.INPUT_OBJECT_TYPE_DEFINITION:{var p;const t=[e,...r];return new c.GraphQLInputObjectType({name:n,description:null===(p=e.description)||void 0===p?void 0:p.value,fields:()=>V(t),astNode:e,extensionASTNodes:r,isOneOf:(f=e,Boolean((0,g.getDirectiveValues)(d.GraphQLOneOfDirective,f)))})}}var f}}const E=(0,s.keyMap)([...f.specifiedScalarTypes,...p.introspectionTypes],e=>e.name);function T(e){const t=(0,g.getDirectiveValues)(d.GraphQLDeprecatedDirective,e);return null==t?void 0:t.reason}function w(e){const t=(0,g.getDirectiveValues)(d.GraphQLSpecifiedByDirective,e);return null==t?void 0:t.url}},58881(e,t,n){function r(e){const t={descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1,oneOf:!1,...e},n=t.descriptions?"description":"",r=t.specifiedByUrl?"specifiedByURL":"",i=t.directiveIsRepeatable?"isRepeatable":"",o=t.schemaDescription?n:"";function s(e){return t.inputValueDeprecation?e:""}const a=t.oneOf?"isOneOf":"";return`\n    query IntrospectionQuery {\n      __schema {\n        ${o}\n        queryType { name kind }\n        mutationType { name kind }\n        subscriptionType { name kind }\n        types {\n          ...FullType\n        }\n        directives {\n          name\n          ${n}\n          ${i}\n          locations\n          args${s("(includeDeprecated: true)")} {\n            ...InputValue\n          }\n        }\n      }\n    }\n\n    fragment FullType on __Type {\n      kind\n      name\n      ${n}\n      ${r}\n      ${a}\n      fields(includeDeprecated: true) {\n        name\n        ${n}\n        args${s("(includeDeprecated: true)")} {\n          ...InputValue\n        }\n        type {\n          ...TypeRef\n        }\n        isDeprecated\n        deprecationReason\n      }\n      inputFields${s("(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      ${s("isDeprecated")}\n      ${s("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  `}n.r(t),n.d(t,{getIntrospectionQuery:()=>r})},85187(e,t,n){n.r(t),n.d(t,{getOperationAST:()=>i});var r=n(42455);function i(e,t){let n=null;for(const o of e.definitions){var i;if(o.kind===r.Kind.OPERATION_DEFINITION)if(null==t){if(n)return null;n=o}else if((null===(i=o.name)||void 0===i?void 0:i.value)===t)return o}return n}},56514(e,t,n){n.r(t),n.d(t,{printIntrospectionSchema:()=>h,printSchema:()=>f,printType:()=>v});var r=n(35198),i=n(71306),o=n(67714),s=n(42455),a=n(9554),l=n(73663),u=n(67274),c=n(28957),d=n(84143),p=n(39709);function f(e){return g(e,e=>!(0,u.isSpecifiedDirective)(e),m)}function h(e){return g(e,u.isSpecifiedDirective,c.isIntrospectionType)}function m(e){return!(0,d.isSpecifiedScalarType)(e)&&!(0,c.isIntrospectionType)(e)}function g(e,t,n){const r=e.getDirectives().filter(t),i=Object.values(e.getTypeMap()).filter(n);return[y(e),...r.map(e=>function(e){return x(e)+"directive @"+e.name+w(e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}(e)),...i.map(e=>v(e))].filter(Boolean).join("\n\n")}function y(e){if(null==e.description&&function(e){const t=e.getQueryType();if(t&&"Query"!==t.name)return!1;const n=e.getMutationType();if(n&&"Mutation"!==n.name)return!1;const r=e.getSubscriptionType();return!r||"Subscription"===r.name}(e))return;const t=[],n=e.getQueryType();n&&t.push(`  query: ${n.name}`);const r=e.getMutationType();r&&t.push(`  mutation: ${r.name}`);const i=e.getSubscriptionType();return i&&t.push(`  subscription: ${i.name}`),x(e)+`schema {\n${t.join("\n")}\n}`}function v(e){return(0,l.isScalarType)(e)?function(e){return x(e)+`scalar ${e.name}`+(null==(t=e).specifiedByURL?"":` @specifiedBy(url: ${(0,a.print)({kind:s.Kind.STRING,value:t.specifiedByURL})})`);var t}(e):(0,l.isObjectType)(e)?function(e){return x(e)+`type ${e.name}`+b(e)+E(e)}(e):(0,l.isInterfaceType)(e)?function(e){return x(e)+`interface ${e.name}`+b(e)+E(e)}(e):(0,l.isUnionType)(e)?function(e){const t=e.getTypes(),n=t.length?" = "+t.join(" | "):"";return x(e)+"union "+e.name+n}(e):(0,l.isEnumType)(e)?function(e){const t=e.getValues().map((e,t)=>x(e,"  ",!t)+"  "+e.name+S(e.deprecationReason));return x(e)+`enum ${e.name}`+T(t)}(e):(0,l.isInputObjectType)(e)?function(e){const t=Object.values(e.getFields()).map((e,t)=>x(e,"  ",!t)+"  "+k(e));return x(e)+`input ${e.name}`+(e.isOneOf?" @oneOf":"")+T(t)}(e):void(0,i.invariant)(!1,"Unexpected type: "+(0,r.inspect)(e))}function b(e){const t=e.getInterfaces();return t.length?" implements "+t.map(e=>e.name).join(" & "):""}function E(e){const t=Object.values(e.getFields()).map((e,t)=>x(e,"  ",!t)+"  "+e.name+w(e.args,"  ")+": "+String(e.type)+S(e.deprecationReason));return T(t)}function T(e){return 0!==e.length?" {\n"+e.join("\n")+"\n}":""}function w(e,t=""){return 0===e.length?"":e.every(e=>!e.description)?"("+e.map(k).join(", ")+")":"(\n"+e.map((e,n)=>x(e,"  "+t,!n)+"  "+t+k(e)).join("\n")+"\n"+t+")"}function k(e){const t=(0,p.astFromValue)(e.defaultValue,e.type);let n=e.name+": "+String(e.type);return t&&(n+=` = ${(0,a.print)(t)}`),n+S(e.deprecationReason)}function S(e){return null==e?"":e!==u.DEFAULT_DEPRECATION_REASON?` @deprecated(reason: ${(0,a.print)({kind:s.Kind.STRING,value:e})})`:" @deprecated"}function x(e,t="",n=!0){const{description:r}=e;return null==r?"":(t&&!n?"\n"+t:t)+(0,a.print)({kind:s.Kind.STRING,value:r,block:(0,o.isPrintableAsBlockString)(r)}).replace(/\n/g,"\n"+t)+"\n"}},20997(e,t,n){n.r(t),n.d(t,{sortValueNode:()=>o});var r=n(63858),i=n(42455);function o(e){switch(e.kind){case i.Kind.OBJECT:return{...e,fields:(t=e.fields,t.map(e=>({...e,value:o(e.value)})).sort((e,t)=>(0,r.naturalCompare)(e.name.value,t.name.value)))};case i.Kind.LIST:return{...e,values:e.values.map(o)};case i.Kind.INT:case i.Kind.FLOAT:case i.Kind.STRING:case i.Kind.BOOLEAN:case i.Kind.NULL:case i.Kind.ENUM:case i.Kind.VARIABLE:return e}var t}},64917(e,t,n){n.r(t),n.d(t,{doTypesOverlap:()=>s,isEqualType:()=>i,isTypeSubTypeOf:()=>o});var r=n(73663);function i(e,t){return e===t||((0,r.isNonNullType)(e)&&(0,r.isNonNullType)(t)||!(!(0,r.isListType)(e)||!(0,r.isListType)(t)))&&i(e.ofType,t.ofType)}function o(e,t,n){return t===n||((0,r.isNonNullType)(n)?!!(0,r.isNonNullType)(t)&&o(e,t.ofType,n.ofType):(0,r.isNonNullType)(t)?o(e,t.ofType,n):(0,r.isListType)(n)?!!(0,r.isListType)(t)&&o(e,t.ofType,n.ofType):!(0,r.isListType)(t)&&(0,r.isAbstractType)(n)&&((0,r.isInterfaceType)(t)||(0,r.isObjectType)(t))&&e.isSubType(n,t))}function s(e,t,n){return t===n||((0,r.isAbstractType)(t)?(0,r.isAbstractType)(n)?e.getPossibleTypes(t).some(t=>e.isSubType(n,t)):e.isSubType(t,n):!!(0,r.isAbstractType)(n)&&e.isSubType(n,t))}},89494(e,t,n){n.r(t),n.d(t,{typeFromAST:()=>o});var r=n(42455),i=n(73663);function o(e,t){switch(t.kind){case r.Kind.LIST_TYPE:{const n=o(e,t.type);return n&&new i.GraphQLList(n)}case r.Kind.NON_NULL_TYPE:{const n=o(e,t.type);return n&&new i.GraphQLNonNull(n)}case r.Kind.NAMED_TYPE:return e.getType(t.name.value)}}},69327(e,t,n){n.r(t),n.d(t,{valueFromAST:()=>l});var r=n(35198),i=n(71306),o=n(15487),s=n(42455),a=n(73663);function l(e,t,n){if(e){if(e.kind===s.Kind.VARIABLE){const r=e.name.value;if(null==n||void 0===n[r])return;const i=n[r];if(null===i&&(0,a.isNonNullType)(t))return;return i}if((0,a.isNonNullType)(t)){if(e.kind===s.Kind.NULL)return;return l(e,t.ofType,n)}if(e.kind===s.Kind.NULL)return null;if((0,a.isListType)(t)){const r=t.ofType;if(e.kind===s.Kind.LIST){const t=[];for(const i of e.values)if(u(i,n)){if((0,a.isNonNullType)(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,a.isInputObjectType)(t)){if(e.kind!==s.Kind.OBJECT)return;const r=Object.create(null),i=(0,o.keyMap)(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,a.isNonNullType)(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,a.isLeafType)(t)){let r;try{r=t.parseLiteral(e,n)}catch(e){return}if(void 0===r)return;return r}(0,i.invariant)(!1,"Unexpected input type: "+(0,r.inspect)(t))}}function u(e,t){return e.kind===s.Kind.VARIABLE&&(null==t||void 0===t[e.name.value])}},48542(e,t,n){n.r(t),n.d(t,{valueFromASTUntyped:()=>o});var r=n(96394),i=n(42455);function o(e,t){switch(e.kind){case i.Kind.NULL:return null;case i.Kind.INT:return parseInt(e.value,10);case i.Kind.FLOAT:return parseFloat(e.value);case i.Kind.STRING:case i.Kind.ENUM:case i.Kind.BOOLEAN:return e.value;case i.Kind.LIST:return e.values.map(e=>o(e,t));case i.Kind.OBJECT:return(0,r.keyValMap)(e.fields,e=>e.name.value,e=>o(e.value,t));case i.Kind.VARIABLE:return null==t?void 0:t[e.name.value]}}},81875(e,t,n){n.r(t),n.d(t,{ASTValidationContext:()=>s,SDLValidationContext:()=>a,ValidationContext:()=>l});var r=n(42455),i=n(90424),o=n(57350);class s{constructor(e,t){this._ast=e,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=t}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(e){this._onError(e)}getDocument(){return this._ast}getFragment(e){let t;if(this._fragments)t=this._fragments;else{t=Object.create(null);for(const e of this.getDocument().definitions)e.kind===r.Kind.FRAGMENT_DEFINITION&&(t[e.name.value]=e);this._fragments=t}return t[e]}getFragmentSpreads(e){let t=this._fragmentSpreads.get(e);if(!t){t=[];const n=[e];let i;for(;i=n.pop();)for(const e of i.selections)e.kind===r.Kind.FRAGMENT_SPREAD?t.push(e):e.selectionSet&&n.push(e.selectionSet);this._fragmentSpreads.set(e,t)}return t}getRecursivelyReferencedFragments(e){let t=this._recursivelyReferencedFragments.get(e);if(!t){t=[];const n=Object.create(null),r=[e.selectionSet];let i;for(;i=r.pop();)for(const e of this.getFragmentSpreads(i)){const i=e.name.value;if(!0!==n[i]){n[i]=!0;const e=this.getFragment(i);e&&(t.push(e),r.push(e.selectionSet))}}this._recursivelyReferencedFragments.set(e,t)}return t}}class a extends s{constructor(e,t,n){super(e,n),this._schema=t}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}}class l extends s{constructor(e,t,n,r){super(t,r),this._schema=e,this._typeInfo=n,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(e){let t=this._variableUsages.get(e);if(!t){const n=[],r=new o.TypeInfo(this._schema);(0,i.visit)(e,(0,o.visitWithTypeInfo)(r,{VariableDefinition:()=>!1,Variable(e){n.push({node:e,type:r.getInputType(),defaultValue:r.getDefaultValue(),parentType:r.getParentInputType()})}})),t=n,this._variableUsages.set(e,t)}return t}getRecursiveVariableUsages(e){let t=this._recursiveVariableUsages.get(e);if(!t){t=this.getVariableUsages(e);for(const n of this.getRecursivelyReferencedFragments(e))t=t.concat(this.getVariableUsages(n));this._recursiveVariableUsages.set(e,t)}return t}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}}},38489(e,t,n){n.r(t),n.d(t,{ExecutableDefinitionsRule:()=>s});var r=n(48255),i=n(42455),o=n(3420);function s(e){return{Document(t){for(const n of t.definitions)if(!(0,o.isExecutableDefinitionNode)(n)){const t=n.kind===i.Kind.SCHEMA_DEFINITION||n.kind===i.Kind.SCHEMA_EXTENSION?"schema":'"'+n.name.value+'"';e.reportError(new r.GraphQLError(`The ${t} definition is not executable.`,{nodes:n}))}return!1}}}},5449(e,t,n){n.r(t),n.d(t,{FieldsOnCorrectTypeRule:()=>l});var r=n(54833),i=n(63858),o=n(36382),s=n(48255),a=n(73663);function l(e){return{Field(t){const n=e.getParentType();if(n&&!e.getFieldDef()){const l=e.getSchema(),u=t.name.value;let c=(0,r.didYouMean)("to use an inline fragment on",function(e,t,n){if(!(0,a.isAbstractType)(t))return[];const r=new Set,o=Object.create(null);for(const i of e.getPossibleTypes(t))if(i.getFields()[n]){r.add(i),o[i.name]=1;for(const e of i.getInterfaces()){var s;e.getFields()[n]&&(r.add(e),o[e.name]=(null!==(s=o[e.name])&&void 0!==s?s:0)+1)}}return[...r].sort((t,n)=>{const r=o[n.name]-o[t.name];return 0!==r?r:(0,a.isInterfaceType)(t)&&e.isSubType(t,n)?-1:(0,a.isInterfaceType)(n)&&e.isSubType(n,t)?1:(0,i.naturalCompare)(t.name,n.name)}).map(e=>e.name)}(l,n,u));""===c&&(c=(0,r.didYouMean)(function(e,t){if((0,a.isObjectType)(e)||(0,a.isInterfaceType)(e)){const n=Object.keys(e.getFields());return(0,o.suggestionList)(t,n)}return[]}(n,u))),e.reportError(new s.GraphQLError(`Cannot query field "${u}" on type "${n.name}".`+c,{nodes:t}))}}}}},49911(e,t,n){n.r(t),n.d(t,{FragmentsOnCompositeTypesRule:()=>a});var r=n(48255),i=n(9554),o=n(73663),s=n(89494);function a(e){return{InlineFragment(t){const n=t.typeCondition;if(n){const t=(0,s.typeFromAST)(e.getSchema(),n);if(t&&!(0,o.isCompositeType)(t)){const t=(0,i.print)(n);e.reportError(new r.GraphQLError(`Fragment cannot condition on non composite type "${t}".`,{nodes:n}))}}},FragmentDefinition(t){const n=(0,s.typeFromAST)(e.getSchema(),t.typeCondition);if(n&&!(0,o.isCompositeType)(n)){const n=(0,i.print)(t.typeCondition);e.reportError(new r.GraphQLError(`Fragment "${t.name.value}" cannot condition on non composite type "${n}".`,{nodes:t.typeCondition}))}}}}},40825(e,t,n){n.r(t),n.d(t,{KnownArgumentNamesOnDirectivesRule:()=>u,KnownArgumentNamesRule:()=>l});var r=n(54833),i=n(36382),o=n(48255),s=n(42455),a=n(67274);function l(e){return{...u(e),Argument(t){const n=e.getArgument(),s=e.getFieldDef(),a=e.getParentType();if(!n&&s&&a){const n=t.name.value,l=s.args.map(e=>e.name),u=(0,i.suggestionList)(n,l);e.reportError(new o.GraphQLError(`Unknown argument "${n}" on field "${a.name}.${s.name}".`+(0,r.didYouMean)(u),{nodes:t}))}}}}function u(e){const t=Object.create(null),n=e.getSchema(),l=n?n.getDirectives():a.specifiedDirectives;for(const e of l)t[e.name]=e.args.map(e=>e.name);const u=e.getDocument().definitions;for(const e of u)if(e.kind===s.Kind.DIRECTIVE_DEFINITION){var c;const n=null!==(c=e.arguments)&&void 0!==c?c:[];t[e.name.value]=n.map(e=>e.name.value)}return{Directive(n){const s=n.name.value,a=t[s];if(n.arguments&&a)for(const t of n.arguments){const n=t.name.value;if(!a.includes(n)){const l=(0,i.suggestionList)(n,a);e.reportError(new o.GraphQLError(`Unknown argument "${n}" on directive "@${s}".`+(0,r.didYouMean)(l),{nodes:t}))}}return!1}}}},6868(e,t,n){n.r(t),n.d(t,{KnownDirectivesRule:()=>c});var r=n(35198),i=n(71306),o=n(48255),s=n(59762),a=n(42868),l=n(42455),u=n(67274);function c(e){const t=Object.create(null),n=e.getSchema(),c=n?n.getDirectives():u.specifiedDirectives;for(const e of c)t[e.name]=e.locations;const d=e.getDocument().definitions;for(const e of d)e.kind===l.Kind.DIRECTIVE_DEFINITION&&(t[e.name.value]=e.locations.map(e=>e.value));return{Directive(n,u,c,d,p){const f=n.name.value,h=t[f];if(!h)return void e.reportError(new o.GraphQLError(`Unknown directive "@${f}".`,{nodes:n}));const m=function(e){const t=e[e.length-1];switch("kind"in t||(0,i.invariant)(!1),t.kind){case l.Kind.OPERATION_DEFINITION:return function(e){switch(e){case s.OperationTypeNode.QUERY:return a.DirectiveLocation.QUERY;case s.OperationTypeNode.MUTATION:return a.DirectiveLocation.MUTATION;case s.OperationTypeNode.SUBSCRIPTION:return a.DirectiveLocation.SUBSCRIPTION}}(t.operation);case l.Kind.FIELD:return a.DirectiveLocation.FIELD;case l.Kind.FRAGMENT_SPREAD:return a.DirectiveLocation.FRAGMENT_SPREAD;case l.Kind.INLINE_FRAGMENT:return a.DirectiveLocation.INLINE_FRAGMENT;case l.Kind.FRAGMENT_DEFINITION:return a.DirectiveLocation.FRAGMENT_DEFINITION;case l.Kind.VARIABLE_DEFINITION:return a.DirectiveLocation.VARIABLE_DEFINITION;case l.Kind.SCHEMA_DEFINITION:case l.Kind.SCHEMA_EXTENSION:return a.DirectiveLocation.SCHEMA;case l.Kind.SCALAR_TYPE_DEFINITION:case l.Kind.SCALAR_TYPE_EXTENSION:return a.DirectiveLocation.SCALAR;case l.Kind.OBJECT_TYPE_DEFINITION:case l.Kind.OBJECT_TYPE_EXTENSION:return a.DirectiveLocation.OBJECT;case l.Kind.FIELD_DEFINITION:return a.DirectiveLocation.FIELD_DEFINITION;case l.Kind.INTERFACE_TYPE_DEFINITION:case l.Kind.INTERFACE_TYPE_EXTENSION:return a.DirectiveLocation.INTERFACE;case l.Kind.UNION_TYPE_DEFINITION:case l.Kind.UNION_TYPE_EXTENSION:return a.DirectiveLocation.UNION;case l.Kind.ENUM_TYPE_DEFINITION:case l.Kind.ENUM_TYPE_EXTENSION:return a.DirectiveLocation.ENUM;case l.Kind.ENUM_VALUE_DEFINITION:return a.DirectiveLocation.ENUM_VALUE;case l.Kind.INPUT_OBJECT_TYPE_DEFINITION:case l.Kind.INPUT_OBJECT_TYPE_EXTENSION:return a.DirectiveLocation.INPUT_OBJECT;case l.Kind.INPUT_VALUE_DEFINITION:{const t=e[e.length-3];return"kind"in t||(0,i.invariant)(!1),t.kind===l.Kind.INPUT_OBJECT_TYPE_DEFINITION?a.DirectiveLocation.INPUT_FIELD_DEFINITION:a.DirectiveLocation.ARGUMENT_DEFINITION}default:(0,i.invariant)(!1,"Unexpected kind: "+(0,r.inspect)(t.kind))}}(p);m&&!h.includes(m)&&e.reportError(new o.GraphQLError(`Directive "@${f}" may not be used on ${m}.`,{nodes:n}))}}}},8898(e,t,n){n.r(t),n.d(t,{KnownFragmentNamesRule:()=>i});var r=n(48255);function i(e){return{FragmentSpread(t){const n=t.name.value;e.getFragment(n)||e.reportError(new r.GraphQLError(`Unknown fragment "${n}".`,{nodes:t.name}))}}}},24466(e,t,n){n.r(t),n.d(t,{KnownTypeNamesRule:()=>l});var r=n(54833),i=n(36382),o=n(48255),s=n(3420),a=n(28957);function l(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),a=Object.create(null);for(const t of e.getDocument().definitions)(0,s.isTypeDefinitionNode)(t)&&(a[t.name.value]=!0);const l=[...Object.keys(n),...Object.keys(a)];return{NamedType(t,c,d,p,f){const h=t.name.value;if(!n[h]&&!a[h]){var m;const n=null!==(m=f[2])&&void 0!==m?m:d,a=null!=n&&"kind"in(g=n)&&((0,s.isTypeSystemDefinitionNode)(g)||(0,s.isTypeSystemExtensionNode)(g));if(a&&u.includes(h))return;const c=(0,i.suggestionList)(h,a?u.concat(l):l);e.reportError(new o.GraphQLError(`Unknown type "${h}".`+(0,r.didYouMean)(c),{nodes:t}))}var g}}}const u=[...n(84143).specifiedScalarTypes,...a.introspectionTypes].map(e=>e.name)},84719(e,t,n){n.r(t),n.d(t,{LoneAnonymousOperationRule:()=>o});var r=n(48255),i=n(42455);function o(e){let t=0;return{Document(e){t=e.definitions.filter(e=>e.kind===i.Kind.OPERATION_DEFINITION).length},OperationDefinition(n){!n.name&&t>1&&e.reportError(new r.GraphQLError("This anonymous operation must be the only defined operation.",{nodes:n}))}}}},55343(e,t,n){n.r(t),n.d(t,{LoneSchemaDefinitionRule:()=>i});var r=n(48255);function i(e){var t,n,i;const o=e.getSchema(),s=null!==(t=null!==(n=null!==(i=null==o?void 0:o.astNode)&&void 0!==i?i:null==o?void 0:o.getQueryType())&&void 0!==n?n:null==o?void 0:o.getMutationType())&&void 0!==t?t:null==o?void 0:o.getSubscriptionType();let a=0;return{SchemaDefinition(t){s?e.reportError(new r.GraphQLError("Cannot define a new schema within a schema extension.",{nodes:t})):(a>0&&e.reportError(new r.GraphQLError("Must provide only one schema definition.",{nodes:t})),++a)}}}},47525(e,t,n){n.r(t),n.d(t,{MaxIntrospectionDepthRule:()=>o});var r=n(48255),i=n(42455);function o(e){function t(n,r=Object.create(null),o=0){if(n.kind===i.Kind.FRAGMENT_SPREAD){const i=n.name.value;if(!0===r[i])return!1;const s=e.getFragment(i);if(!s)return!1;try{return r[i]=!0,t(s,r,o)}finally{r[i]=void 0}}if(n.kind===i.Kind.FIELD&&("fields"===n.name.value||"interfaces"===n.name.value||"possibleTypes"===n.name.value||"inputFields"===n.name.value)&&++o>=3)return!0;if("selectionSet"in n&&n.selectionSet)for(const e of n.selectionSet.selections)if(t(e,r,o))return!0;return!1}return{Field(n){if(("__schema"===n.name.value||"__type"===n.name.value)&&t(n))return e.reportError(new r.GraphQLError("Maximum introspection depth exceeded",{nodes:[n]})),!1}}}},42833(e,t,n){n.r(t),n.d(t,{NoFragmentCyclesRule:()=>i});var r=n(48255);function i(e){const t=Object.create(null),n=[],i=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition:e=>(o(e),!1)};function o(s){if(t[s.name.value])return;const a=s.name.value;t[a]=!0;const l=e.getFragmentSpreads(s.selectionSet);if(0!==l.length){i[a]=n.length;for(const t of l){const s=t.name.value,a=i[s];if(n.push(t),void 0===a){const t=e.getFragment(s);t&&o(t)}else{const t=n.slice(a),i=t.slice(0,-1).map(e=>'"'+e.name.value+'"').join(", ");e.reportError(new r.GraphQLError(`Cannot spread fragment "${s}" within itself`+(""!==i?` via ${i}.`:"."),{nodes:t}))}n.pop()}i[a]=void 0}}}},72027(e,t,n){n.r(t),n.d(t,{NoUndefinedVariablesRule:()=>i});var r=n(48255);function i(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){const i=e.getRecursiveVariableUsages(n);for(const{node:o}of i){const i=o.name.value;!0!==t[i]&&e.reportError(new r.GraphQLError(n.name?`Variable "$${i}" is not defined by operation "${n.name.value}".`:`Variable "$${i}" is not defined.`,{nodes:[o,n]}))}}},VariableDefinition(e){t[e.variable.name.value]=!0}}}},91981(e,t,n){n.r(t),n.d(t,{NoUnusedFragmentsRule:()=>i});var r=n(48255);function i(e){const t=[],n=[];return{OperationDefinition:e=>(t.push(e),!1),FragmentDefinition:e=>(n.push(e),!1),Document:{leave(){const i=Object.create(null);for(const n of t)for(const t of e.getRecursivelyReferencedFragments(n))i[t.name.value]=!0;for(const t of n){const n=t.name.value;!0!==i[n]&&e.reportError(new r.GraphQLError(`Fragment "${n}" is never used.`,{nodes:t}))}}}}}},39201(e,t,n){n.r(t),n.d(t,{NoUnusedVariablesRule:()=>i});var r=n(48255);function i(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(n){const i=Object.create(null),o=e.getRecursiveVariableUsages(n);for(const{node:e}of o)i[e.name.value]=!0;for(const o of t){const t=o.variable.name.value;!0!==i[t]&&e.reportError(new r.GraphQLError(n.name?`Variable "$${t}" is never used in operation "${n.name.value}".`:`Variable "$${t}" is never used.`,{nodes:o}))}}},VariableDefinition(e){t.push(e)}}}},25106(e,t,n){n.r(t),n.d(t,{OverlappingFieldsCanBeMergedRule:()=>d});var r=n(35198),i=n(48255),o=n(42455),s=n(9554),a=n(73663),l=n(20997),u=n(89494);function c(e){return Array.isArray(e)?e.map(([e,t])=>`subfields "${e}" conflict because `+c(t)).join(" and "):e}function d(e){const t=new T,n=new w,r=new Map;return{SelectionSet(o){const s=function(e,t,n,r,i,o){const s=[],[a,l]=v(e,t,i,o);if(function(e,t,n,r,i,o){for(const[s,a]of Object.entries(o))if(a.length>1)for(let o=0;o<a.length;o++)for(let l=o+1;l<a.length;l++){const u=m(e,n,r,i,!1,s,a[o],a[l]);u&&t.push(u)}}(e,s,t,n,r,a),0!==l.length)for(let i=0;i<l.length;i++){p(e,s,t,n,r,!1,a,l[i]);for(let o=i+1;o<l.length;o++)f(e,s,t,n,r,!1,l[i],l[o])}return s}(e,r,t,n,e.getParentType(),o);for(const[[t,n],r,o]of s){const s=c(n);e.reportError(new i.GraphQLError(`Fields "${t}" conflict because ${s}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:r.concat(o)}))}}}}function p(e,t,n,r,i,o,s,a){if(r.has(s,a,o))return;r.add(s,a,o);const l=e.getFragment(a);if(!l)return;const[u,c]=b(e,n,l);if(s!==u){h(e,t,n,r,i,o,s,u);for(const a of c)p(e,t,n,r,i,o,s,a)}}function f(e,t,n,r,i,o,s,a){if(s===a)return;if(i.has(s,a,o))return;i.add(s,a,o);const l=e.getFragment(s),u=e.getFragment(a);if(!l||!u)return;const[c,d]=b(e,n,l),[p,m]=b(e,n,u);h(e,t,n,r,i,o,c,p);for(const a of m)f(e,t,n,r,i,o,s,a);for(const s of d)f(e,t,n,r,i,o,s,a)}function h(e,t,n,r,i,o,s,a){for(const[l,u]of Object.entries(s)){const s=a[l];if(s)for(const a of u)for(const u of s){const s=m(e,n,r,i,o,l,a,u);s&&t.push(s)}}}function m(e,t,n,i,o,s,l,u){const[c,d,m]=l,[b,E,T]=u,w=o||c!==b&&(0,a.isObjectType)(c)&&(0,a.isObjectType)(b);if(!w){const e=d.name.value,t=E.name.value;if(e!==t)return[[s,`"${e}" and "${t}" are different fields`],[d],[E]];if(!function(e,t){const n=e.arguments,r=t.arguments;if(void 0===n||0===n.length)return void 0===r||0===r.length;if(void 0===r||0===r.length)return!1;if(n.length!==r.length)return!1;const i=new Map(r.map(({name:e,value:t})=>[e.value,t]));return n.every(e=>{const t=e.value,n=i.get(e.name.value);return void 0!==n&&g(t)===g(n)})}(d,E))return[[s,"they have differing arguments"],[d],[E]]}const k=null==m?void 0:m.type,S=null==T?void 0:T.type;if(k&&S&&y(k,S))return[[s,`they return conflicting types "${(0,r.inspect)(k)}" and "${(0,r.inspect)(S)}"`],[d],[E]];const x=d.selectionSet,C=E.selectionSet;if(x&&C){const r=function(e,t,n,r,i,o,s,a,l){const u=[],[c,d]=v(e,t,o,s),[m,g]=v(e,t,a,l);h(e,u,t,n,r,i,c,m);for(const o of g)p(e,u,t,n,r,i,c,o);for(const o of d)p(e,u,t,n,r,i,m,o);for(const o of d)for(const s of g)f(e,u,t,n,r,i,o,s);return u}(e,t,n,i,w,(0,a.getNamedType)(k),x,(0,a.getNamedType)(S),C);return function(e,t,n,r){if(e.length>0)return[[t,e.map(([e])=>e)],[n,...e.map(([,e])=>e).flat()],[r,...e.map(([,,e])=>e).flat()]]}(r,s,d,E)}}function g(e){return(0,s.print)((0,l.sortValueNode)(e))}function y(e,t){return(0,a.isListType)(e)?!(0,a.isListType)(t)||y(e.ofType,t.ofType):!!(0,a.isListType)(t)||((0,a.isNonNullType)(e)?!(0,a.isNonNullType)(t)||y(e.ofType,t.ofType):!!(0,a.isNonNullType)(t)||!(!(0,a.isLeafType)(e)&&!(0,a.isLeafType)(t))&&e!==t)}function v(e,t,n,r){const i=t.get(r);if(i)return i;const o=Object.create(null),s=Object.create(null);E(e,n,r,o,s);const a=[o,Object.keys(s)];return t.set(r,a),a}function b(e,t,n){const r=t.get(n.selectionSet);if(r)return r;const i=(0,u.typeFromAST)(e.getSchema(),n.typeCondition);return v(e,t,i,n.selectionSet)}function E(e,t,n,r,i){for(const s of n.selections)switch(s.kind){case o.Kind.FIELD:{const e=s.name.value;let n;((0,a.isObjectType)(t)||(0,a.isInterfaceType)(t))&&(n=t.getFields()[e]);const i=s.alias?s.alias.value:e;r[i]||(r[i]=[]),r[i].push([t,s,n]);break}case o.Kind.FRAGMENT_SPREAD:i[s.name.value]=!0;break;case o.Kind.INLINE_FRAGMENT:{const n=s.typeCondition,o=n?(0,u.typeFromAST)(e.getSchema(),n):t;E(e,o,s.selectionSet,r,i);break}}}class T{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 w{constructor(){this._orderedPairSet=new T}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)}}},58644(e,t,n){n.r(t),n.d(t,{PossibleFragmentSpreadsRule:()=>l});var r=n(35198),i=n(48255),o=n(73663),s=n(64917),a=n(89494);function l(e){return{InlineFragment(t){const n=e.getType(),a=e.getParentType();if((0,o.isCompositeType)(n)&&(0,o.isCompositeType)(a)&&!(0,s.doTypesOverlap)(e.getSchema(),n,a)){const o=(0,r.inspect)(a),s=(0,r.inspect)(n);e.reportError(new i.GraphQLError(`Fragment cannot be spread here as objects of type "${o}" can never be of type "${s}".`,{nodes:t}))}},FragmentSpread(t){const n=t.name.value,l=function(e,t){const n=e.getFragment(t);if(n){const t=(0,a.typeFromAST)(e.getSchema(),n.typeCondition);if((0,o.isCompositeType)(t))return t}}(e,n),u=e.getParentType();if(l&&u&&!(0,s.doTypesOverlap)(e.getSchema(),l,u)){const o=(0,r.inspect)(u),s=(0,r.inspect)(l);e.reportError(new i.GraphQLError(`Fragment "${n}" cannot be spread here as objects of type "${o}" can never be of type "${s}".`,{nodes:t}))}}}}},85966(e,t,n){n.r(t),n.d(t,{PossibleTypeExtensionsRule:()=>d});var r=n(54833),i=n(35198),o=n(71306),s=n(36382),a=n(48255),l=n(42455),u=n(3420),c=n(73663);function d(e){const t=e.getSchema(),n=Object.create(null);for(const t of e.getDocument().definitions)(0,u.isTypeDefinitionNode)(t)&&(n[t.name.value]=t);return{ScalarTypeExtension:d,ObjectTypeExtension:d,InterfaceTypeExtension:d,UnionTypeExtension:d,EnumTypeExtension:d,InputObjectTypeExtension:d};function d(u){const d=u.name.value,f=n[d],h=null==t?void 0:t.getType(d);let m;if(f?m=p[f.kind]:h&&(g=h,m=(0,c.isScalarType)(g)?l.Kind.SCALAR_TYPE_EXTENSION:(0,c.isObjectType)(g)?l.Kind.OBJECT_TYPE_EXTENSION:(0,c.isInterfaceType)(g)?l.Kind.INTERFACE_TYPE_EXTENSION:(0,c.isUnionType)(g)?l.Kind.UNION_TYPE_EXTENSION:(0,c.isEnumType)(g)?l.Kind.ENUM_TYPE_EXTENSION:(0,c.isInputObjectType)(g)?l.Kind.INPUT_OBJECT_TYPE_EXTENSION:void(0,o.invariant)(!1,"Unexpected type: "+(0,i.inspect)(g))),m){if(m!==u.kind){const t=function(e){switch(e){case l.Kind.SCALAR_TYPE_EXTENSION:return"scalar";case l.Kind.OBJECT_TYPE_EXTENSION:return"object";case l.Kind.INTERFACE_TYPE_EXTENSION:return"interface";case l.Kind.UNION_TYPE_EXTENSION:return"union";case l.Kind.ENUM_TYPE_EXTENSION:return"enum";case l.Kind.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:(0,o.invariant)(!1,"Unexpected kind: "+(0,i.inspect)(e))}}(u.kind);e.reportError(new a.GraphQLError(`Cannot extend non-${t} type "${d}".`,{nodes:f?[f,u]:u}))}}else{const i=Object.keys({...n,...null==t?void 0:t.getTypeMap()}),o=(0,s.suggestionList)(d,i);e.reportError(new a.GraphQLError(`Cannot extend type "${d}" because it is not defined.`+(0,r.didYouMean)(o),{nodes:u.name}))}var g}}const p={[l.Kind.SCALAR_TYPE_DEFINITION]:l.Kind.SCALAR_TYPE_EXTENSION,[l.Kind.OBJECT_TYPE_DEFINITION]:l.Kind.OBJECT_TYPE_EXTENSION,[l.Kind.INTERFACE_TYPE_DEFINITION]:l.Kind.INTERFACE_TYPE_EXTENSION,[l.Kind.UNION_TYPE_DEFINITION]:l.Kind.UNION_TYPE_EXTENSION,[l.Kind.ENUM_TYPE_DEFINITION]:l.Kind.ENUM_TYPE_EXTENSION,[l.Kind.INPUT_OBJECT_TYPE_DEFINITION]:l.Kind.INPUT_OBJECT_TYPE_EXTENSION}},67565(e,t,n){n.r(t),n.d(t,{ProvidedRequiredArgumentsOnDirectivesRule:()=>d,ProvidedRequiredArgumentsRule:()=>c});var r=n(35198),i=n(15487),o=n(48255),s=n(42455),a=n(9554),l=n(73663),u=n(67274);function c(e){return{...d(e),Field:{leave(t){var n;const i=e.getFieldDef();if(!i)return!1;const s=new Set(null===(n=t.arguments)||void 0===n?void 0:n.map(e=>e.name.value));for(const n of i.args)if(!s.has(n.name)&&(0,l.isRequiredArgument)(n)){const s=(0,r.inspect)(n.type);e.reportError(new o.GraphQLError(`Field "${i.name}" argument "${n.name}" of type "${s}" is required, but it was not provided.`,{nodes:t}))}}}}}function d(e){var t;const n=Object.create(null),c=e.getSchema(),d=null!==(t=null==c?void 0:c.getDirectives())&&void 0!==t?t:u.specifiedDirectives;for(const e of d)n[e.name]=(0,i.keyMap)(e.args.filter(l.isRequiredArgument),e=>e.name);const f=e.getDocument().definitions;for(const e of f)if(e.kind===s.Kind.DIRECTIVE_DEFINITION){var h;const t=null!==(h=e.arguments)&&void 0!==h?h:[];n[e.name.value]=(0,i.keyMap)(t.filter(p),e=>e.name.value)}return{Directive:{leave(t){const i=t.name.value,s=n[i];if(s){var u;const n=null!==(u=t.arguments)&&void 0!==u?u:[],c=new Set(n.map(e=>e.name.value));for(const[n,u]of Object.entries(s))if(!c.has(n)){const s=(0,l.isType)(u.type)?(0,r.inspect)(u.type):(0,a.print)(u.type);e.reportError(new o.GraphQLError(`Directive "@${i}" argument "${n}" of type "${s}" is required, but it was not provided.`,{nodes:t}))}}}}}}function p(e){return e.type.kind===s.Kind.NON_NULL_TYPE&&null==e.defaultValue}},70048(e,t,n){n.r(t),n.d(t,{ScalarLeafsRule:()=>s});var r=n(35198),i=n(48255),o=n(73663);function s(e){return{Field(t){const n=e.getType(),s=t.selectionSet;if(n)if((0,o.isLeafType)((0,o.getNamedType)(n))){if(s){const o=t.name.value,a=(0,r.inspect)(n);e.reportError(new i.GraphQLError(`Field "${o}" must not have a selection since type "${a}" has no subfields.`,{nodes:s}))}}else if(s){if(0===s.selections.length){const o=t.name.value,s=(0,r.inspect)(n);e.reportError(new i.GraphQLError(`Field "${o}" of type "${s}" must have at least one field selected.`,{nodes:t}))}}else{const o=t.name.value,s=(0,r.inspect)(n);e.reportError(new i.GraphQLError(`Field "${o}" of type "${s}" must have a selection of subfields. Did you mean "${o} { ... }"?`,{nodes:t}))}}}}},10099(e,t,n){n.r(t),n.d(t,{SingleFieldSubscriptionsRule:()=>s});var r=n(48255),i=n(42455),o=n(85261);function s(e){return{OperationDefinition(t){if("subscription"===t.operation){const n=e.getSchema(),s=n.getSubscriptionType();if(s){const a=t.name?t.name.value:null,l=Object.create(null),u=e.getDocument(),c=Object.create(null);for(const e of u.definitions)e.kind===i.Kind.FRAGMENT_DEFINITION&&(c[e.name.value]=e);const d=(0,o.collectFields)(n,c,l,s,t.selectionSet);if(d.size>1){const t=[...d.values()].slice(1).flat();e.reportError(new r.GraphQLError(null!=a?`Subscription "${a}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:t}))}for(const t of d.values())t[0].name.value.startsWith("__")&&e.reportError(new r.GraphQLError(null!=a?`Subscription "${a}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:t}))}}}}}},94410(e,t,n){n.r(t),n.d(t,{UniqueArgumentDefinitionNamesRule:()=>o});var r=n(46712),i=n(48255);function o(e){return{DirectiveDefinition(e){var t;const r=null!==(t=e.arguments)&&void 0!==t?t:[];return n(`@${e.name.value}`,r)},InterfaceTypeDefinition:t,InterfaceTypeExtension:t,ObjectTypeDefinition:t,ObjectTypeExtension:t};function t(e){var t;const r=e.name.value,i=null!==(t=e.fields)&&void 0!==t?t:[];for(const e of i){var o;n(`${r}.${e.name.value}`,null!==(o=e.arguments)&&void 0!==o?o:[])}return!1}function n(t,n){const o=(0,r.groupBy)(n,e=>e.name.value);for(const[n,r]of o)r.length>1&&e.reportError(new i.GraphQLError(`Argument "${t}(${n}:)" can only be defined once.`,{nodes:r.map(e=>e.name)}));return!1}}},12475(e,t,n){n.r(t),n.d(t,{UniqueArgumentNamesRule:()=>o});var r=n(46712),i=n(48255);function o(e){return{Field:t,Directive:t};function t(t){var n;const o=null!==(n=t.arguments)&&void 0!==n?n:[],s=(0,r.groupBy)(o,e=>e.name.value);for(const[t,n]of s)n.length>1&&e.reportError(new i.GraphQLError(`There can be only one argument named "${t}".`,{nodes:n.map(e=>e.name)}))}}},77065(e,t,n){n.r(t),n.d(t,{UniqueDirectiveNamesRule:()=>i});var r=n(48255);function i(e){const t=Object.create(null),n=e.getSchema();return{DirectiveDefinition(i){const o=i.name.value;if(null==n||!n.getDirective(o))return t[o]?e.reportError(new r.GraphQLError(`There can be only one directive named "@${o}".`,{nodes:[t[o],i.name]})):t[o]=i.name,!1;e.reportError(new r.GraphQLError(`Directive "@${o}" already exists in the schema. It cannot be redefined.`,{nodes:i.name}))}}}},26886(e,t,n){n.r(t),n.d(t,{UniqueDirectivesPerLocationRule:()=>a});var r=n(48255),i=n(42455),o=n(3420),s=n(67274);function a(e){const t=Object.create(null),n=e.getSchema(),a=n?n.getDirectives():s.specifiedDirectives;for(const e of a)t[e.name]=!e.isRepeatable;const l=e.getDocument().definitions;for(const e of l)e.kind===i.Kind.DIRECTIVE_DEFINITION&&(t[e.name.value]=!e.repeatable);const u=Object.create(null),c=Object.create(null);return{enter(n){if(!("directives"in n)||!n.directives)return;let s;if(n.kind===i.Kind.SCHEMA_DEFINITION||n.kind===i.Kind.SCHEMA_EXTENSION)s=u;else if((0,o.isTypeDefinitionNode)(n)||(0,o.isTypeExtensionNode)(n)){const e=n.name.value;s=c[e],void 0===s&&(c[e]=s=Object.create(null))}else s=Object.create(null);for(const i of n.directives){const n=i.name.value;t[n]&&(s[n]?e.reportError(new r.GraphQLError(`The directive "@${n}" can only be used once at this location.`,{nodes:[s[n],i]})):s[n]=i)}}}}},92954(e,t,n){n.r(t),n.d(t,{UniqueEnumValueNamesRule:()=>o});var r=n(48255),i=n(73663);function o(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),o=Object.create(null);return{EnumTypeDefinition:s,EnumTypeExtension:s};function s(t){var s;const a=t.name.value;o[a]||(o[a]=Object.create(null));const l=null!==(s=t.values)&&void 0!==s?s:[],u=o[a];for(const t of l){const o=t.name.value,s=n[a];(0,i.isEnumType)(s)&&s.getValue(o)?e.reportError(new r.GraphQLError(`Enum value "${a}.${o}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:t.name})):u[o]?e.reportError(new r.GraphQLError(`Enum value "${a}.${o}" can only be defined once.`,{nodes:[u[o],t.name]})):u[o]=t.name}return!1}}},73537(e,t,n){n.r(t),n.d(t,{UniqueFieldDefinitionNamesRule:()=>o});var r=n(48255),i=n(73663);function o(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),i=Object.create(null);return{InputObjectTypeDefinition:o,InputObjectTypeExtension:o,InterfaceTypeDefinition:o,InterfaceTypeExtension:o,ObjectTypeDefinition:o,ObjectTypeExtension:o};function o(t){var o;const a=t.name.value;i[a]||(i[a]=Object.create(null));const l=null!==(o=t.fields)&&void 0!==o?o:[],u=i[a];for(const t of l){const i=t.name.value;s(n[a],i)?e.reportError(new r.GraphQLError(`Field "${a}.${i}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:t.name})):u[i]?e.reportError(new r.GraphQLError(`Field "${a}.${i}" can only be defined once.`,{nodes:[u[i],t.name]})):u[i]=t.name}return!1}}function s(e,t){return!!((0,i.isObjectType)(e)||(0,i.isInterfaceType)(e)||(0,i.isInputObjectType)(e))&&null!=e.getFields()[t]}},45536(e,t,n){n.r(t),n.d(t,{UniqueFragmentNamesRule:()=>i});var r=n(48255);function i(e){const t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(n){const i=n.name.value;return t[i]?e.reportError(new r.GraphQLError(`There can be only one fragment named "${i}".`,{nodes:[t[i],n.name]})):t[i]=n.name,!1}}}},80656(e,t,n){n.r(t),n.d(t,{UniqueInputFieldNamesRule:()=>o});var r=n(71306),i=n(48255);function o(e){const t=[];let n=Object.create(null);return{ObjectValue:{enter(){t.push(n),n=Object.create(null)},leave(){const e=t.pop();e||(0,r.invariant)(!1),n=e}},ObjectField(t){const r=t.name.value;n[r]?e.reportError(new i.GraphQLError(`There can be only one input field named "${r}".`,{nodes:[n[r],t.name]})):n[r]=t.name}}}},35157(e,t,n){n.r(t),n.d(t,{UniqueOperationNamesRule:()=>i});var r=n(48255);function i(e){const t=Object.create(null);return{OperationDefinition(n){const i=n.name;return i&&(t[i.value]?e.reportError(new r.GraphQLError(`There can be only one operation named "${i.value}".`,{nodes:[t[i.value],i]})):t[i.value]=i),!1},FragmentDefinition:()=>!1}}},40354(e,t,n){n.r(t),n.d(t,{UniqueOperationTypesRule:()=>i});var r=n(48255);function i(e){const t=e.getSchema(),n=Object.create(null),i=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:o,SchemaExtension:o};function o(t){var o;const s=null!==(o=t.operationTypes)&&void 0!==o?o:[];for(const t of s){const o=t.operation,s=n[o];i[o]?e.reportError(new r.GraphQLError(`Type for ${o} already defined in the schema. It cannot be redefined.`,{nodes:t})):s?e.reportError(new r.GraphQLError(`There can be only one ${o} type in schema.`,{nodes:[s,t]})):n[o]=t}return!1}}},27368(e,t,n){n.r(t),n.d(t,{UniqueTypeNamesRule:()=>i});var r=n(48255);function i(e){const t=Object.create(null),n=e.getSchema();return{ScalarTypeDefinition:i,ObjectTypeDefinition:i,InterfaceTypeDefinition:i,UnionTypeDefinition:i,EnumTypeDefinition:i,InputObjectTypeDefinition:i};function i(i){const o=i.name.value;if(null==n||!n.getType(o))return t[o]?e.reportError(new r.GraphQLError(`There can be only one type named "${o}".`,{nodes:[t[o],i.name]})):t[o]=i.name,!1;e.reportError(new r.GraphQLError(`Type "${o}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:i.name}))}}},12584(e,t,n){n.r(t),n.d(t,{UniqueVariableNamesRule:()=>o});var r=n(46712),i=n(48255);function o(e){return{OperationDefinition(t){var n;const o=null!==(n=t.variableDefinitions)&&void 0!==n?n:[],s=(0,r.groupBy)(o,e=>e.variable.name.value);for(const[t,n]of s)n.length>1&&e.reportError(new i.GraphQLError(`There can be only one variable named "$${t}".`,{nodes:n.map(e=>e.variable.name)}))}}}},51838(e,t,n){n.r(t),n.d(t,{ValuesOfCorrectTypeRule:()=>d});var r=n(54833),i=n(35198),o=n(15487),s=n(36382),a=n(48255),l=n(42455),u=n(9554),c=n(73663);function d(e){return{ListValue(t){const n=(0,c.getNullableType)(e.getParentInputType());if(!(0,c.isListType)(n))return p(e,t),!1},ObjectValue(t){const n=(0,c.getNamedType)(e.getInputType());if(!(0,c.isInputObjectType)(n))return p(e,t),!1;const r=(0,o.keyMap)(t.fields,e=>e.name.value);for(const o of Object.values(n.getFields()))if(!r[o.name]&&(0,c.isRequiredInputField)(o)){const r=(0,i.inspect)(o.type);e.reportError(new a.GraphQLError(`Field "${n.name}.${o.name}" of required type "${r}" was not provided.`,{nodes:t}))}n.isOneOf&&function(e,t,n,r){var i;const o=Object.keys(r);if(1!==o.length)return void e.reportError(new a.GraphQLError(`OneOf Input Object "${n.name}" must specify exactly one key.`,{nodes:[t]}));const s=null===(i=r[o[0]])||void 0===i?void 0:i.value;s&&s.kind!==l.Kind.NULL||e.reportError(new a.GraphQLError(`Field "${n.name}.${o[0]}" must be non-null.`,{nodes:[t]}))}(e,t,n,r)},ObjectField(t){const n=(0,c.getNamedType)(e.getParentInputType());if(!e.getInputType()&&(0,c.isInputObjectType)(n)){const i=(0,s.suggestionList)(t.name.value,Object.keys(n.getFields()));e.reportError(new a.GraphQLError(`Field "${t.name.value}" is not defined by type "${n.name}".`+(0,r.didYouMean)(i),{nodes:t}))}},NullValue(t){const n=e.getInputType();(0,c.isNonNullType)(n)&&e.reportError(new a.GraphQLError(`Expected value of type "${(0,i.inspect)(n)}", found ${(0,u.print)(t)}.`,{nodes:t}))},EnumValue:t=>p(e,t),IntValue:t=>p(e,t),FloatValue:t=>p(e,t),StringValue:t=>p(e,t),BooleanValue:t=>p(e,t)}}function p(e,t){const n=e.getInputType();if(!n)return;const r=(0,c.getNamedType)(n);if(!(0,c.isLeafType)(r)){const r=(0,i.inspect)(n);return void e.reportError(new a.GraphQLError(`Expected value of type "${r}", found ${(0,u.print)(t)}.`,{nodes:t}))}try{if(void 0===r.parseLiteral(t,void 0)){const r=(0,i.inspect)(n);e.reportError(new a.GraphQLError(`Expected value of type "${r}", found ${(0,u.print)(t)}.`,{nodes:t}))}}catch(r){const o=(0,i.inspect)(n);r instanceof a.GraphQLError?e.reportError(r):e.reportError(new a.GraphQLError(`Expected value of type "${o}", found ${(0,u.print)(t)}; `+r.message,{nodes:t,originalError:r}))}}},99461(e,t,n){n.r(t),n.d(t,{VariablesAreInputTypesRule:()=>a});var r=n(48255),i=n(9554),o=n(73663),s=n(89494);function a(e){return{VariableDefinition(t){const n=(0,s.typeFromAST)(e.getSchema(),t.type);if(void 0!==n&&!(0,o.isInputType)(n)){const n=t.variable.name.value,o=(0,i.print)(t.type);e.reportError(new r.GraphQLError(`Variable "$${n}" cannot be non-input type "${o}".`,{nodes:t.type}))}}}}},68022(e,t,n){n.r(t),n.d(t,{VariablesInAllowedPositionRule:()=>u});var r=n(35198),i=n(48255),o=n(42455),s=n(73663),a=n(64917),l=n(89494);function u(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){const o=e.getRecursiveVariableUsages(n);for(const{node:n,type:a,defaultValue:u,parentType:d}of o){const o=n.name.value,p=t[o];if(p&&a){const t=e.getSchema(),f=(0,l.typeFromAST)(t,p.type);if(f&&!c(t,f,p.defaultValue,a,u)){const t=(0,r.inspect)(f),s=(0,r.inspect)(a);e.reportError(new i.GraphQLError(`Variable "$${o}" of type "${t}" used in position expecting type "${s}".`,{nodes:[p,n]}))}(0,s.isInputObjectType)(d)&&d.isOneOf&&(0,s.isNullableType)(f)&&e.reportError(new i.GraphQLError(`Variable "$${o}" is of type "${f}" but must be non-nullable to be used for OneOf Input Object "${d}".`,{nodes:[p,n]}))}}}},VariableDefinition(e){t[e.variable.name.value]=e}}}function c(e,t,n,r,i){if((0,s.isNonNullType)(r)&&!(0,s.isNonNullType)(t)){if((null==n||n.kind===o.Kind.NULL)&&void 0===i)return!1;const s=r.ofType;return(0,a.isTypeSubTypeOf)(e,t,s)}return(0,a.isTypeSubTypeOf)(e,t,r)}},2168(e,t,n){n.r(t),n.d(t,{NoDeprecatedCustomRule:()=>s});var r=n(71306),i=n(48255),o=n(73663);function s(e){return{Field(t){const n=e.getFieldDef(),o=null==n?void 0:n.deprecationReason;if(n&&null!=o){const s=e.getParentType();null!=s||(0,r.invariant)(!1),e.reportError(new i.GraphQLError(`The field ${s.name}.${n.name} is deprecated. ${o}`,{nodes:t}))}},Argument(t){const n=e.getArgument(),o=null==n?void 0:n.deprecationReason;if(n&&null!=o){const s=e.getDirective();if(null!=s)e.reportError(new i.GraphQLError(`Directive "@${s.name}" argument "${n.name}" is deprecated. ${o}`,{nodes:t}));else{const s=e.getParentType(),a=e.getFieldDef();null!=s&&null!=a||(0,r.invariant)(!1),e.reportError(new i.GraphQLError(`Field "${s.name}.${a.name}" argument "${n.name}" is deprecated. ${o}`,{nodes:t}))}}},ObjectField(t){const n=(0,o.getNamedType)(e.getParentInputType());if((0,o.isInputObjectType)(n)){const r=n.getFields()[t.name.value],o=null==r?void 0:r.deprecationReason;null!=o&&e.reportError(new i.GraphQLError(`The input field ${n.name}.${r.name} is deprecated. ${o}`,{nodes:t}))}},EnumValue(t){const n=e.getEnumValue(),s=null==n?void 0:n.deprecationReason;if(n&&null!=s){const a=(0,o.getNamedType)(e.getInputType());null!=a||(0,r.invariant)(!1),e.reportError(new i.GraphQLError(`The enum value "${a.name}.${n.name}" is deprecated. ${s}`,{nodes:t}))}}}}},24556(e,t,n){n.r(t),n.d(t,{recommendedRules:()=>j,specifiedRules:()=>V,specifiedSDLRules:()=>K});var r=n(38489),i=n(5449),o=n(49911),s=n(40825),a=n(6868),l=n(8898),u=n(24466),c=n(84719),d=n(55343),p=n(47525),f=n(42833),h=n(72027),m=n(91981),g=n(39201),y=n(25106),v=n(58644),b=n(85966),E=n(67565),T=n(70048),w=n(10099),k=n(94410),S=n(12475),x=n(77065),C=n(26886),_=n(92954),N=n(73537),D=n(45536),A=n(80656),L=n(35157),I=n(40354),O=n(27368),R=n(12584),F=n(51838),P=n(99461),M=n(68022);const j=Object.freeze([p.MaxIntrospectionDepthRule]),V=Object.freeze([r.ExecutableDefinitionsRule,L.UniqueOperationNamesRule,c.LoneAnonymousOperationRule,w.SingleFieldSubscriptionsRule,u.KnownTypeNamesRule,o.FragmentsOnCompositeTypesRule,P.VariablesAreInputTypesRule,T.ScalarLeafsRule,i.FieldsOnCorrectTypeRule,D.UniqueFragmentNamesRule,l.KnownFragmentNamesRule,m.NoUnusedFragmentsRule,v.PossibleFragmentSpreadsRule,f.NoFragmentCyclesRule,R.UniqueVariableNamesRule,h.NoUndefinedVariablesRule,g.NoUnusedVariablesRule,a.KnownDirectivesRule,C.UniqueDirectivesPerLocationRule,s.KnownArgumentNamesRule,S.UniqueArgumentNamesRule,F.ValuesOfCorrectTypeRule,E.ProvidedRequiredArgumentsRule,M.VariablesInAllowedPositionRule,y.OverlappingFieldsCanBeMergedRule,A.UniqueInputFieldNamesRule,...j]),K=Object.freeze([d.LoneSchemaDefinitionRule,I.UniqueOperationTypesRule,O.UniqueTypeNamesRule,_.UniqueEnumValueNamesRule,N.UniqueFieldDefinitionNamesRule,k.UniqueArgumentDefinitionNamesRule,x.UniqueDirectiveNamesRule,u.KnownTypeNamesRule,a.KnownDirectivesRule,C.UniqueDirectivesPerLocationRule,b.PossibleTypeExtensionsRule,s.KnownArgumentNamesOnDirectivesRule,S.UniqueArgumentNamesRule,A.UniqueInputFieldNamesRule,E.ProvidedRequiredArgumentsOnDirectivesRule])},8553(e,t,n){n.r(t),n.d(t,{assertValidSDL:()=>m,assertValidSDLExtension:()=>g,validate:()=>f,validateSDL:()=>h});var r=n(93217),i=n(93871),o=n(48255),s=n(59762),a=n(90424),l=n(47626),u=n(57350),c=n(24556),d=n(81875);const p=(0,i.mapValue)(s.QueryDocumentKeys,e=>e.filter(e=>"description"!==e));function f(e,t,n=c.specifiedRules,i,s=new u.TypeInfo(e)){var f;const h=null!==(f=null==i?void 0:i.maxErrors)&&void 0!==f?f:100;t||(0,r.devAssert)(!1,"Must provide document."),(0,l.assertValidSchema)(e);const m=Object.freeze({}),g=[],y=new d.ValidationContext(e,t,s,e=>{if(g.length>=h)throw g.push(new o.GraphQLError("Too many validation errors, error limit reached. Validation aborted.")),m;g.push(e)}),v=(0,a.visitInParallel)(n.map(e=>e(y)));try{(0,a.visit)(t,(0,u.visitWithTypeInfo)(s,v),p)}catch(e){if(e!==m)throw e}return g}function h(e,t,n=c.specifiedSDLRules){const r=[],i=new d.SDLValidationContext(e,t,e=>{r.push(e)}),o=n.map(e=>e(i));return(0,a.visit)(e,(0,a.visitInParallel)(o)),r}function m(e){const t=h(e);if(0!==t.length)throw new Error(t.map(e=>e.message).join("\n\n"))}function g(e,t){const n=h(e,t);if(0!==n.length)throw new Error(n.map(e=>e.message).join("\n\n"))}},89911(e,t,n){n.r(t),n.d(t,{version:()=>r,versionInfo:()=>i});const r="16.13.2",i=Object.freeze({major:16,minor:13,patch:2,preReleaseTag:null})},32852(e,t,n){var r,i,o,s,a,l,u,c,d,p,f,h,m,g,y,v,b,E,T,w,k,S,x,C,_,N,D,A,L,I,O,R,F,P,M,j,V,K,U,B,$,q,z,G,Q,H,W,Y,X,J,Z,ee,te,ne,re,ie,oe,se,ae,le,ue,ce,de,pe,fe,he,me,ge,ye,ve,be,Ee,Te,we,ke,Se,xe,Ce;n.r(t),n.d(t,{AnnotatedTextEdit:()=>x,ChangeAnnotation:()=>k,ChangeAnnotationIdentifier:()=>S,CodeAction:()=>oe,CodeActionContext:()=>ie,CodeActionKind:()=>ne,CodeActionTriggerKind:()=>re,CodeDescription:()=>b,CodeLens:()=>se,Color:()=>d,ColorInformation:()=>p,ColorPresentation:()=>f,Command:()=>T,CompletionItem:()=>$,CompletionItemKind:()=>M,CompletionItemLabelDetails:()=>B,CompletionItemTag:()=>V,CompletionList:()=>q,CreateFile:()=>_,DeleteFile:()=>D,Diagnostic:()=>E,DiagnosticRelatedInformation:()=>g,DiagnosticSeverity:()=>y,DiagnosticTag:()=>v,DocumentHighlight:()=>Y,DocumentHighlightKind:()=>W,DocumentLink:()=>le,DocumentSymbol:()=>te,DocumentUri:()=>r,EOL:()=>Ae,FoldingRange:()=>m,FoldingRangeKind:()=>h,FormattingOptions:()=>ae,Hover:()=>G,InlayHint:()=>be,InlayHintKind:()=>ye,InlayHintLabelPart:()=>ve,InlineCompletionContext:()=>xe,InlineCompletionItem:()=>Te,InlineCompletionList:()=>we,InlineCompletionTriggerKind:()=>ke,InlineValueContext:()=>ge,InlineValueEvaluatableExpression:()=>me,InlineValueText:()=>fe,InlineValueVariableLookup:()=>he,InsertReplaceEdit:()=>K,InsertTextFormat:()=>j,InsertTextMode:()=>U,Location:()=>u,LocationLink:()=>c,MarkedString:()=>z,MarkupContent:()=>P,MarkupKind:()=>F,OptionalVersionedTextDocumentIdentifier:()=>O,ParameterInformation:()=>Q,Position:()=>a,Range:()=>l,RenameFile:()=>N,SelectedCompletionInfo:()=>Se,SelectionRange:()=>ue,SemanticTokenModifiers:()=>de,SemanticTokenTypes:()=>ce,SemanticTokens:()=>pe,SignatureInformation:()=>H,StringValue:()=>Ee,SymbolInformation:()=>Z,SymbolKind:()=>X,SymbolTag:()=>J,TextDocument:()=>Le,TextDocumentEdit:()=>C,TextDocumentIdentifier:()=>L,TextDocumentItem:()=>R,TextEdit:()=>w,URI:()=>i,VersionedTextDocumentIdentifier:()=>I,WorkspaceChange:()=>De,WorkspaceEdit:()=>A,WorkspaceFolder:()=>Ce,WorkspaceSymbol:()=>ee,integer:()=>o,uinteger:()=>s}),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}}(s||(s={})),function(e){e.create=function(e,t){return e===Number.MAX_VALUE&&(e=s.MAX_VALUE),t===Number.MAX_VALUE&&(t=s.MAX_VALUE),{line:e,character:t}},e.is=function(e){let t=e;return Ie.objectLiteral(t)&&Ie.uinteger(t.line)&&Ie.uinteger(t.character)}}(a||(a={})),function(e){e.create=function(e,t,n,r){if(Ie.uinteger(e)&&Ie.uinteger(t)&&Ie.uinteger(n)&&Ie.uinteger(r))return{start:a.create(e,t),end:a.create(n,r)};if(a.is(e)&&a.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 Ie.objectLiteral(t)&&a.is(t.start)&&a.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 Ie.objectLiteral(t)&&l.is(t.range)&&(Ie.string(t.uri)||Ie.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 Ie.objectLiteral(t)&&l.is(t.targetRange)&&Ie.string(t.targetUri)&&l.is(t.targetSelectionRange)&&(l.is(t.originSelectionRange)||Ie.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 Ie.objectLiteral(t)&&Ie.numberRange(t.red,0,1)&&Ie.numberRange(t.green,0,1)&&Ie.numberRange(t.blue,0,1)&&Ie.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 Ie.objectLiteral(t)&&l.is(t.range)&&d.is(t.color)}}(p||(p={})),function(e){e.create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}},e.is=function(e){const t=e;return Ie.objectLiteral(t)&&Ie.string(t.label)&&(Ie.undefined(t.textEdit)||w.is(t))&&(Ie.undefined(t.additionalTextEdits)||Ie.typedArray(t.additionalTextEdits,w.is))}}(f||(f={})),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 s={startLine:e,endLine:t};return Ie.defined(n)&&(s.startCharacter=n),Ie.defined(r)&&(s.endCharacter=r),Ie.defined(i)&&(s.kind=i),Ie.defined(o)&&(s.collapsedText=o),s},e.is=function(e){const t=e;return Ie.objectLiteral(t)&&Ie.uinteger(t.startLine)&&Ie.uinteger(t.startLine)&&(Ie.undefined(t.startCharacter)||Ie.uinteger(t.startCharacter))&&(Ie.undefined(t.endCharacter)||Ie.uinteger(t.endCharacter))&&(Ie.undefined(t.kind)||Ie.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 Ie.defined(t)&&u.is(t.location)&&Ie.string(t.message)}}(g||(g={})),function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4}(y||(y={})),function(e){e.Unnecessary=1,e.Deprecated=2}(v||(v={})),function(e){e.is=function(e){const t=e;return Ie.objectLiteral(t)&&Ie.string(t.href)}}(b||(b={})),function(e){e.create=function(e,t,n,r,i,o){let s={range:e,message:t};return Ie.defined(n)&&(s.severity=n),Ie.defined(r)&&(s.code=r),Ie.defined(i)&&(s.source=i),Ie.defined(o)&&(s.relatedInformation=o),s},e.is=function(e){var t;let n=e;return Ie.defined(n)&&l.is(n.range)&&Ie.string(n.message)&&(Ie.number(n.severity)||Ie.undefined(n.severity))&&(Ie.integer(n.code)||Ie.string(n.code)||Ie.undefined(n.code))&&(Ie.undefined(n.codeDescription)||Ie.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(Ie.string(n.source)||Ie.undefined(n.source))&&(Ie.undefined(n.relatedInformation)||Ie.typedArray(n.relatedInformation,g.is))}}(E||(E={})),function(e){e.create=function(e,t,...n){let r={title:e,command:t};return Ie.defined(n)&&n.length>0&&(r.arguments=n),r},e.is=function(e){let t=e;return Ie.defined(t)&&Ie.string(t.title)&&Ie.string(t.command)}}(T||(T={})),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 Ie.objectLiteral(t)&&Ie.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 Ie.objectLiteral(t)&&Ie.string(t.label)&&(Ie.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(Ie.string(t.description)||void 0===t.description)}}(k||(k={})),function(e){e.is=function(e){const t=e;return Ie.string(t)}}(S||(S={})),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)||S.is(t.annotationId))}}(x||(x={})),function(e){e.create=function(e,t){return{textDocument:e,edits:t}},e.is=function(e){let t=e;return Ie.defined(t)&&O.is(t.textDocument)&&Array.isArray(t.edits)}}(C||(C={})),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&&Ie.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||Ie.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Ie.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||S.is(t.annotationId))}}(_||(_={})),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&&Ie.string(t.oldUri)&&Ie.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||Ie.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Ie.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||S.is(t.annotationId))}}(N||(N={})),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&&Ie.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||Ie.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||Ie.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||S.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=>Ie.string(e.kind)?_.is(e)||N.is(e)||D.is(e):C.is(e)))}}(A||(A={}));class _e{constructor(e,t){this.edits=e,this.changeAnnotations=t}insert(e,t,n){let r,i;if(void 0===n?r=w.insert(e,t):S.is(n)?(i=n,r=x.insert(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=x.insert(e,t,i)),this.edits.push(r),void 0!==i)return i}replace(e,t,n){let r,i;if(void 0===n?r=w.replace(e,t):S.is(n)?(i=n,r=x.replace(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=x.replace(e,t,i)),this.edits.push(r),void 0!==i)return i}delete(e,t){let n,r;if(void 0===t?n=w.del(e):S.is(t)?(r=t,n=x.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(t),n=x.del(e,r)),this.edits.push(n),void 0!==r)return r}add(e){this.edits.push(e)}all(){return this.edits}clear(){this.edits.splice(0,this.edits.length)}assertChangeAnnotations(e){if(void 0===e)throw new Error("Text edit change is not configured to manage change annotations.")}}class Ne{constructor(e){this._annotations=void 0===e?Object.create(null):e,this._counter=0,this._size=0}all(){return this._annotations}get size(){return this._size}manage(e,t){let n;if(S.is(e)?n=e:(n=this.nextId(),t=e),void 0!==this._annotations[n])throw new Error(`Id ${n} is already in use.`);if(void 0===t)throw new Error(`No annotation provided for id ${n}`);return this._annotations[n]=t,this._size++,n}nextId(){return this._counter++,this._counter.toString()}}class De{constructor(e){this._textEditChanges=Object.create(null),void 0!==e?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new Ne(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach(e=>{if(C.is(e)){const t=new _e(e.edits,this._changeAnnotations);this._textEditChanges[e.textDocument.uri]=t}})):e.changes&&Object.keys(e.changes).forEach(t=>{const n=new _e(e.changes[t]);this._textEditChanges[t]=n})):this._workspaceEdit={}}get edit(){return this.initDocumentChanges(),void 0!==this._changeAnnotations&&(0===this._changeAnnotations.size?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit}getTextEditChange(e){if(O.is(e)){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");const t={uri:e.uri,version:e.version};let n=this._textEditChanges[t.uri];if(!n){const e=[],r={textDocument:t,edits:e};this._workspaceEdit.documentChanges.push(r),n=new _e(e,this._changeAnnotations),this._textEditChanges[t.uri]=n}return n}{if(this.initChanges(),void 0===this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");let t=this._textEditChanges[e];if(!t){let n=[];this._workspaceEdit.changes[e]=n,t=new _e(n),this._textEditChanges[e]=t}return t}}initDocumentChanges(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new Ne,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())}initChanges(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._workspaceEdit.changes=Object.create(null))}createFile(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");let r,i,o;if(k.is(t)||S.is(t)?r=t:n=t,void 0===r?i=_.create(e,n):(o=S.is(r)?r:this._changeAnnotations.manage(r),i=_.create(e,n,o)),this._workspaceEdit.documentChanges.push(i),void 0!==o)return o}renameFile(e,t,n,r){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");let i,o,s;if(k.is(n)||S.is(n)?i=n:r=n,void 0===i?o=N.create(e,t,r):(s=S.is(i)?i:this._changeAnnotations.manage(i),o=N.create(e,t,r,s)),this._workspaceEdit.documentChanges.push(o),void 0!==s)return s}deleteFile(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");let r,i,o;if(k.is(t)||S.is(t)?r=t:n=t,void 0===r?i=D.create(e,n):(o=S.is(r)?r:this._changeAnnotations.manage(r),i=D.create(e,n,o)),this._workspaceEdit.documentChanges.push(i),void 0!==o)return o}}!function(e){e.create=function(e){return{uri:e}},e.is=function(e){let t=e;return Ie.defined(t)&&Ie.string(t.uri)}}(L||(L={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){let t=e;return Ie.defined(t)&&Ie.string(t.uri)&&Ie.integer(t.version)}}(I||(I={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){let t=e;return Ie.defined(t)&&Ie.string(t.uri)&&(null===t.version||Ie.integer(t.version))}}(O||(O={})),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 Ie.defined(t)&&Ie.string(t.uri)&&Ie.string(t.languageId)&&Ie.integer(t.version)&&Ie.string(t.text)}}(R||(R={})),function(e){e.PlainText="plaintext",e.Markdown="markdown",e.is=function(t){const n=t;return n===e.PlainText||n===e.Markdown}}(F||(F={})),function(e){e.is=function(e){const t=e;return Ie.objectLiteral(e)&&F.is(t.kind)&&Ie.string(t.value)}}(P||(P={})),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}(M||(M={})),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&&Ie.string(t.newText)&&l.is(t.insert)&&l.is(t.replace)}}(K||(K={})),function(e){e.asIs=1,e.adjustIndentation=2}(U||(U={})),function(e){e.is=function(e){const t=e;return t&&(Ie.string(t.detail)||void 0===t.detail)&&(Ie.string(t.description)||void 0===t.description)}}(B||(B={})),function(e){e.create=function(e){return{label:e}}}($||($={})),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 Ie.string(t)||Ie.objectLiteral(t)&&Ie.string(t.language)&&Ie.string(t.value)}}(z||(z={})),function(e){e.is=function(e){let t=e;return!!t&&Ie.objectLiteral(t)&&(P.is(t.contents)||z.is(t.contents)||Ie.typedArray(t.contents,z.is))&&(void 0===e.range||l.is(e.range))}}(G||(G={})),function(e){e.create=function(e,t){return t?{label:e,documentation:t}:{label:e}}}(Q||(Q={})),function(e){e.create=function(e,t,...n){let r={label:e};return Ie.defined(t)&&(r.documentation=t),Ie.defined(n)?r.parameters=n:r.parameters=[],r}}(H||(H={})),function(e){e.Text=1,e.Read=2,e.Write=3}(W||(W={})),function(e){e.create=function(e,t){let n={range:e};return Ie.number(t)&&(n.kind=t),n}}(Y||(Y={})),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}(J||(J={})),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}}(Z||(Z={})),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 s={name:e,detail:t,kind:n,range:r,selectionRange:i};return void 0!==o&&(s.children=o),s},e.is=function(e){let t=e;return t&&Ie.string(t.name)&&Ie.number(t.kind)&&l.is(t.range)&&l.is(t.selectionRange)&&(void 0===t.detail||Ie.string(t.detail))&&(void 0===t.deprecated||Ie.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 Ie.defined(t)&&Ie.typedArray(t.diagnostics,E.is)&&(void 0===t.only||Ie.typedArray(t.only,Ie.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):T.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&&Ie.string(t.title)&&(void 0===t.diagnostics||Ie.typedArray(t.diagnostics,E.is))&&(void 0===t.kind||Ie.string(t.kind))&&(void 0!==t.edit||void 0!==t.command)&&(void 0===t.command||T.is(t.command))&&(void 0===t.isPreferred||Ie.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 Ie.defined(t)&&(n.data=t),n},e.is=function(e){let t=e;return Ie.defined(t)&&l.is(t.range)&&(Ie.undefined(t.command)||T.is(t.command))}}(se||(se={})),function(e){e.create=function(e,t){return{tabSize:e,insertSpaces:t}},e.is=function(e){let t=e;return Ie.defined(t)&&Ie.uinteger(t.tabSize)&&Ie.boolean(t.insertSpaces)}}(ae||(ae={})),function(e){e.create=function(e,t,n){return{range:e,target:t,data:n}},e.is=function(e){let t=e;return Ie.defined(t)&&l.is(t.range)&&(Ie.undefined(t.target)||Ie.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 Ie.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 Ie.objectLiteral(t)&&(void 0===t.resultId||"string"==typeof t.resultId)&&Array.isArray(t.data)&&(0===t.data.length||"number"==typeof t.data[0])}}(pe||(pe={})),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)&&Ie.string(t.text)}}(fe||(fe={})),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)&&Ie.boolean(t.caseSensitiveLookup)&&(Ie.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)&&(Ie.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 Ie.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}}(ye||(ye={})),function(e){e.create=function(e){return{value:e}},e.is=function(e){const t=e;return Ie.objectLiteral(t)&&(void 0===t.tooltip||Ie.string(t.tooltip)||P.is(t.tooltip))&&(void 0===t.location||u.is(t.location))&&(void 0===t.command||T.is(t.command))}}(ve||(ve={})),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 Ie.objectLiteral(t)&&a.is(t.position)&&(Ie.string(t.label)||Ie.typedArray(t.label,ve.is))&&(void 0===t.kind||ye.is(t.kind))&&void 0===t.textEdits||Ie.typedArray(t.textEdits,w.is)&&(void 0===t.tooltip||Ie.string(t.tooltip)||P.is(t.tooltip))&&(void 0===t.paddingLeft||Ie.boolean(t.paddingLeft))&&(void 0===t.paddingRight||Ie.boolean(t.paddingRight))}}(be||(be={})),function(e){e.createSnippet=function(e){return{kind:"snippet",value:e}}}(Ee||(Ee={})),function(e){e.create=function(e,t,n,r){return{insertText:e,filterText:t,range:n,command:r}}}(Te||(Te={})),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}}}(Se||(Se={})),function(e){e.create=function(e,t){return{triggerKind:e,selectedCompletionInfo:t}}}(xe||(xe={})),function(e){e.is=function(e){const t=e;return Ie.objectLiteral(t)&&i.is(t.uri)&&Ie.string(t.name)}}(Ce||(Ce={}));const Ae=["\n","\r\n","\r"];var Le,Ie;!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 s=0,a=0,l=0;for(;s<i.length&&a<o.length;){let t=n(i[s],o[a]);e[l++]=t<=0?i[s++]:o[a++]}for(;s<i.length;)e[l++]=i[s++];for(;a<o.length;)e[l++]=o[a++];return e}e.create=function(e,t,n,r){return new Oe(e,t,n,r)},e.is=function(e){let t=e;return!!(Ie.defined(t)&&Ie.string(t.uri)&&(Ie.undefined(t.languageId)||Ie.string(t.languageId))&&Ie.uinteger(t.lineCount)&&Ie.func(t.getText)&&Ie.func(t.positionAt)&&Ie.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],s=e.offsetAt(n.range.start),a=e.offsetAt(n.range.end);if(!(a<=o))throw new Error("Overlapping edit");r=r.substring(0,s)+n.newText+r.substring(a,r.length),o=s}return r}}(Le||(Le={}));class Oe{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 a.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 a.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)}}(Ie||(Ie={}))}},o={};function s(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={exports:{}};return i[e].call(n.exports,n,n.exports,s),n.exports}s.m=i,s.amdO={},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,s.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 i=Object.create(null);s.r(i);var o={};e=e||[null,t({}),t([]),t(t)];for(var a=2&r&&n;("object"==typeof a||"function"==typeof a)&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach(e=>o[e]=()=>n[e]);return o.default=()=>n,s.d(i,o),i},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.f={},s.e=e=>Promise.all(Object.keys(s.f).reduce((t,n)=>(s.f[n](e,t),t),[])),s.u=e=>e+".js",s.miniCssF=e=>e+".ruru.css",s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;if("string"==typeof import.meta.url&&(e=import.meta.url),!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),s.p=e})(),(()=>{if("undefined"!=typeof document){var e={1595:0};s.f.miniCss=(t,n)=>{e[t]?n.push(e[t]):0!==e[t]&&{2370:1}[t]&&n.push(e[t]=(e=>new Promise((t,n)=>{var r=s.miniCssF(e),i=s.p+r;if(((e,t)=>{for(var n=document.getElementsByTagName("link"),r=0;r<n.length;r++){var i=(s=n[r]).getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(i===e||i===t))return s}var o=document.getElementsByTagName("style");for(r=0;r<o.length;r++){var s;if((i=(s=o[r]).getAttribute("data-href"))===e||i===t)return s}})(r,i))return t();((e,t,n,r,i)=>{var o=document.createElement("link");o.rel="stylesheet",o.type="text/css",s.nc&&(o.nonce=s.nc),o.onerror=o.onload=n=>{if(o.onerror=o.onload=null,"load"===n.type)r();else{var s=n&&n.type,a=n&&n.target&&n.target.href||t,l=new Error("Loading CSS chunk "+e+" failed.\n("+s+": "+a+")");l.name="ChunkLoadError",l.code="CSS_CHUNK_LOAD_FAILED",l.type=s,l.request=a,o.parentNode&&o.parentNode.removeChild(o),i(l)}},o.href=t,document.head.appendChild(o)})(e,i,0,t,n)}))(t).then(()=>{e[t]=0},n=>{throw delete e[t],n}))}}})(),n={1595:0},r=e=>{var t,r,{__webpack_esm_ids__:i,__webpack_esm_modules__:o,__webpack_esm_runtime__:a}=e,l=0;for(t in o)s.o(o,t)&&(s.m[t]=o[t]);for(a&&a(s);l<i.length;l++)r=i[l],s.o(n,r)&&n[r]&&n[r][0](),n[i[l]]=0},s.f.j=(e,t)=>{var i=s.o(n,e)?n[e]:void 0;if(0!==i)if(i)t.push(i[1]);else{var o=import("./"+s.u(e)).then(r,t=>{throw 0!==n[e]&&(n[e]=void 0),t});o=Promise.race([o,new Promise(t=>i=n[e]=[t])]),t.push(i[1]=o)}},s.nc=void 0,s.r({});var a={};s.r(a),s.d(a,{decode:()=>mn,encode:()=>vn,format:()=>bn,parse:()=>In});var l={};s.r(l),s.d(l,{Any:()=>Fn,Cc:()=>Pn,Cf:()=>Mn,P:()=>On,S:()=>Rn,Z:()=>jn});var u={};s.r(u),s.d(u,{arrayReplaceAt:()=>dr,assign:()=>cr,escapeHtml:()=>kr,escapeRE:()=>xr,fromCodePoint:()=>fr,has:()=>ur,isMdAsciiPunct:()=>Dr,isPunctChar:()=>Nr,isSpace:()=>Cr,isString:()=>ar,isValidEntityCode:()=>pr,isWhiteSpace:()=>_r,lib:()=>Lr,normalizeReference:()=>Ar,unescapeAll:()=>vr,unescapeMd:()=>yr});var c={};s.r(c),s.d(c,{parseLinkDestination:()=>Or,parseLinkLabel:()=>Ir,parseLinkTitle:()=>Rr});var d=s(14041),p=s.t(d,2),f=s(25873),h=s(31085),m=s(29113),g=s(73663);const y=e=>{let t;const n=new Set,r=(e,r)=>{const i="function"==typeof e?e(t):e;if(!Object.is(i,t)){const e=t;t=(null!=r?r:"object"!=typeof i||null===i)?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},i=()=>t,o={setState:r,getState:i,getInitialState:()=>s,subscribe:e=>(n.add(e),()=>n.delete(e))},s=t=e(r,i,o);return o},v=e=>e?y(e):y,b=e=>e;function E(e,t=b){const n=d.useSyncExternalStore(e.subscribe,d.useCallback(()=>t(e.getState()),[e,t]),d.useCallback(()=>t(e.getInitialState()),[e,t]));return d.useDebugValue(n),n}const T=e=>{const t=v(e),n=e=>E(t,e);return Object.assign(n,t),n},w=e=>Symbol.iterator in e,k=e=>"entries"in e,S=(e,t)=>{const n=e instanceof Map?e:new Map(e.entries()),r=t instanceof Map?t:new Map(t.entries());if(n.size!==r.size)return!1;for(const[e,t]of n)if(!r.has(e)||!Object.is(t,r.get(e)))return!1;return!0};function x(e){const t=d.useRef(void 0);return n=>{const r=e(n);return i=t.current,o=r,Object.is(i,o)||"object"==typeof i&&null!==i&&"object"==typeof o&&null!==o&&Object.getPrototypeOf(i)===Object.getPrototypeOf(o)&&(w(i)&&w(o)?k(i)&&k(o)?S(i,o):((e,t)=>{const n=e[Symbol.iterator](),r=t[Symbol.iterator]();let i=n.next(),o=r.next();for(;!i.done&&!o.done;){if(!Object.is(i.value,o.value))return!1;i=n.next(),o=r.next()}return!!i.done&&!!o.done})(i,o):S({entries:()=>Object.entries(i)},{entries:()=>Object.entries(o)}))?t.current:t.current=r;var i,o}}var C=Object.defineProperty,_=Object.defineProperties,N=Object.getOwnPropertyDescriptors,D=Object.getOwnPropertySymbols,A=Object.prototype.hasOwnProperty,L=Object.prototype.propertyIsEnumerable,I=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),O=(e,t,n)=>t in e?C(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,R=(e,t)=>{for(var n in t||(t={}))A.call(t,n)&&O(e,n,t[n]);if(D)for(var n of D(t))L.call(t,n)&&O(e,n,t[n]);return e},F=(e,t)=>_(e,N(t)),P=function(e,t){this[0]=e,this[1]=t};function M(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)}s(32112);var K=s(90424);function U(){const e={};return e.promise=new Promise((t,n)=>{e.resolve=t,e.reject=n}),e}const B=e=>{const{pushValue:t,asyncIterableIterator:n}=function(){let e={type:"running"},t=U();const n=[],r=function(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}(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())});return{pushValue:function(r){"running"===e.type&&(n.push(r),t.resolve(),t=U())},asyncIterableIterator:r}}(),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=>B(n=>e.subscribe(t,F(R({},n),{error(e){e instanceof CloseEvent?n.error(new Error(`Socket closed with event ${e.code} ${e.reason||""}`.trim())):n.error(e)}}))),q=(e,t)=>function(n,r){return i=function*(){const i=yield new P(t(e.url,{method:"POST",body:JSON.stringify(n),headers:R(R({"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,s=new TextDecoder("utf8"),a=e.getReader(),l=!n||!n.multiple,u=t.length,c="",d=[];try{let n;e:for(;!(n=await a.read()).done;){let a=s.decode(n.value,{stream:!0});r=c.length,c+=a;let p=a.indexOf(t);for(~p?r+=p:r=c.indexOf(t),d=[];~r;){let n=c.slice(0,r),s=c.slice(r+u);if(i){let t=n.indexOf("\r\n\r\n")+4,r=n.lastIndexOf("\r\n",t),i=!1,a=n.slice(t,r>-1?void 0:r),u=String(n.slice(0,t)).trim().split("\r\n"),c={},p=u.length;for(;o=u[--p];o=o.split(": "),c[o.shift().toLowerCase()]=o.join(": "));if(o=c["content-type"],o&&~o.indexOf("application/json"))try{a=JSON.parse(a),i=!0}catch(e){}if(o={headers:c,body:a,json:i},l?yield o:d.push(o),"--"===s.slice(0,2))break e}else t="\r\n"+t,i=u+=2;c=s,r=c.indexOf(t)}d.length&&(yield d)}}finally{d.length&&(yield d),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 s,a,l,u=((e,t,n)=>(t=e[I("asyncIterator")])?t.call(e):(e=e[I("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);s=!(a=yield new P(u.next())).done;s=!1){const e=a.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(a){l=[a]}finally{try{s&&(a=u.return)&&(yield new P(a.call(u)))}finally{if(l)throw l[0]}}},o=(e,t,n,r)=>{try{var s=i[e](t),a=(t=s.value)instanceof P,l=s.done;Promise.resolve(a?t[0]:t).then(i=>a?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)}},s=e=>a[e]=t=>new Promise((n,r)=>o(e,t,n,r)),a={},i=i.apply(this,null),a[I("asyncIterator")]=()=>a,s("next"),s("throw"),s("return"),a;var i,o,s,a};function z(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:R(R({"content-type":"application/json"},e.headers),null==r?void 0:r.headers)})).json())(e,t),r=e.enableIncrementalDelivery?q(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,K.visit)(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 s.e(9399).then(s.bind(s,19399));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,R(R({},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 B(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 G(e){return JSON.stringify(e,null,2)}function Q(e){return e instanceof Error?function(e){return F(R({},e),{message:e.message,stack:e.stack})}(e):e}function H(e){return Array.isArray(e)?G({errors:e.map(e=>Q(e))}):G({errors:[Q(e)]})}function W(e){return G(e)}var Y=s(98195),X=s(57350),J=s(9554),Z=s(42455);function ee(e,t,n){const r=[];if(!e||!t)return{insertions:r,result:t};let i;try{i=(0,Y.parse)(t)}catch(e){return{insertions:r,result:t}}const o=n||te,s=new X.TypeInfo(e);return(0,K.visit)(i,{leave(e){s.leave(e)},enter(e){if(s.enter(e),"Field"===e.kind&&!e.selectionSet){const n=ne(function(e){if(e)return e}(s.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,J.print)(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,g.isLeafType)(t[e].type)&&n.push(e);return n}function ne(e,t){const n=(0,g.getNamedType)(e);if(!e||(0,g.isLeafType)(e))return;const r=t(n);return Array.isArray(r)&&0!==r.length&&"getFields"in n?{kind:Z.Kind.SELECTION_SET,selections:r.map(e=>{const r=n.getFields()[e],i=r?r.type:null;return{kind:Z.Kind.FIELD,name:{kind:Z.Kind.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,g.getNamedType)(n).name:null,o=[],s=[];for(let a of t){if("FragmentSpread"===a.kind){const t=a.name.value;if(!a.directives||0===a.directives.length){if(s.includes(t))continue;s.push(t)}const n=e[a.name.value];if(n){const{typeCondition:e,directives:t,selectionSet:r}=n;a={kind:Z.Kind.INLINE_FRAGMENT,typeCondition:e,directives:t,selectionSet:r}}}if(a.kind===Z.Kind.INLINE_FRAGMENT&&(!a.directives||0===(null==(r=a.directives)?void 0:r.length))){const t=a.typeCondition?a.typeCondition.name.value:null;if(!t||t===i){o.push(...ie(e,a.selectionSet.selections,n));continue}}o.push(a)}return o}function oe(e,t){const n=t?new X.TypeInfo(t):null,r=Object.create(null);for(const t of e.definitions)t.kind===Z.Kind.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),F(R({},e),{selections:i})},FragmentDefinition:()=>null},o=(0,K.visit)(e,n?(0,X.visitWithTypeInfo)(n,i):i);return(0,K.visit)(o,{SelectionSet(e){let{selections:t}=e;return t=function(e,t){var n;const r=new Map,i=[];for(const o of e)if("Field"===o.kind){const e=t(o),s=r.get(e);if(null!=(n=o.directives)&&n.length){const e=R({},o);i.push(e)}else if(null!=s&&s.selectionSet&&o.selectionSet)s.selectionSet.selections=[...s.selectionSet.selections,...o.selectionSet.selections];else if(!s){const t=R({},o);r.set(e,t),i.push(t)}}else i.push(o);return i}(t,e=>e.alias?e.alias.value:e.name.value),F(R({},e),{selections:t})},FragmentDefinition:()=>null})}class se{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(`${ae}:`)&&(e+=1);return e},clear(){for(const e in localStorage)0===e.indexOf(`${ae}:`)&&localStorage.removeItem(e)}}}get(e){if(!this.storage)return null;const t=`${ae}:${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=`${ae}:${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 ae="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 s(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)&&s(this.favorite),(!i||o)&&s(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.parse)(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 s={query:e,variables:t,headers:n,operationName:r,label:i};o?(s.favorite=!1,this.favorite.delete(s),this.history.push(s)):(s.favorite=!0,this.favorite.push(s),this.history.delete(s)),this.queries=[...this.history.items,...this.favorite.items]}editLabel({query:e,variables:t,headers:n,operationName:r,label:i,favorite:o},s){const a={query:e,variables:t,headers:n,operationName:r,label:i};o?this.favorite.edit(F(R({},a),{favorite:o}),s):this.history.edit(a,s),this.queries=[...this.history.items,...this.favorite.items]}}var ce=s(25329),de=s(47626),pe=s(37970),fe=s(69014);const he="undefined"!=typeof navigator&&navigator.userAgent.includes("Mac");function me(e,t="⌘"){return he?e.replace("Ctrl",t):e}const ge=Object.freeze({prettify:{key:"Shift-Ctrl-P",keybindings:[pe.KeyMod.Shift|pe.KeyMod.WinCtrl|fe.KeyCode.KeyP]},mergeFragments:{key:"Shift-Ctrl-M",keybindings:[pe.KeyMod.Shift|pe.KeyMod.WinCtrl|fe.KeyCode.KeyM]},runQuery:{key:"Ctrl-Enter",keybindings:[pe.KeyMod.CtrlCmd|fe.KeyCode.Enter]},autoComplete:{key:"Space"},copyQuery:{key:"Shift-Ctrl-C",keybindings:[pe.KeyMod.Shift|pe.KeyMod.WinCtrl|fe.KeyCode.KeyC]},refetchSchema:{key:"Shift-Ctrl-R"},searchInEditor:{key:"Ctrl-F"},searchInDocs:{key:"Ctrl-Alt-K"}}),ye="headers",ve="visiblePlugin",be="query",Ee="variables",Te="tabState",we="shouldPersistHeaders",ke="theme",Se=`# Welcome to GraphiQL\n#\n# GraphiQL is an in-browser tool for writing, validating, and testing\n# 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:  ${ge.prettify.key} (or press the prettify button)\n#\n#  Merge fragments:  ${ge.mergeFragments.key} (or press the merge button)\n#\n#        Run Query:  ${me(ge.runQuery.key,"Cmd")} (or press the play button)\n#\n#    Auto Complete:  ${ge.autoComplete.key} (or just start typing)\n#\n\n`,xe={id:"graphql-prettify",label:"Prettify Editors",contextMenuGroupId:"graphql",keybindings:ge.prettify.keybindings},Ce={id:"graphql-merge",label:"Merge Fragments into Query",contextMenuGroupId:"graphql",keybindings:ge.mergeFragments.keybindings},_e={id:"graphql-run",label:"Run Operation",contextMenuGroupId:"graphql",keybindings:ge.runQuery.keybindings},Ne={id:"graphql-copy",label:"Copy Query",contextMenuGroupId:"graphql",keybindings:ge.copyQuery.keybindings},De="variables.json",Ae={allowComments:!0,trailingCommas:"ignore"},Le={validateVariablesJSON:{},jsonDiagnosticSettings:{validate:!0,schemaValidation:"error",...Ae}},Ie=async e=>{const[t,{printers:n},{parsers:r}]=await Promise.all([s.e(2408).then(s.bind(s,12408)),s.e(2541).then(s.bind(s,82541)),s.e(5708).then(s.t.bind(s,5708,23))]);return t.format(e,{parser:"graphql",plugins:[{printers:n},{parsers:r}]})},Oe={dark:"graphiql-DARK",light:"graphiql-LIGHT"},Re={transparent:"#ffffff00",bg:{dark:"#212a3b",light:"#ffffffff"},primary:{dark:"#ff5794",light:"#d60590"},primaryBg:{dark:"#ff579419",light:"#d6059019"},secondary:{dark:"#b7c2d711",light:"#3b4b6811"}},Fe=e=>({"editor.background":Re.transparent,"scrollbar.shadow":Re.transparent,"textLink.foreground":Re.primary[e],"textLink.activeForeground":Re.primary[e],"editorLink.activeForeground":Re.primary[e],"editorHoverWidget.background":Re.bg[e],"list.hoverBackground":Re.primaryBg[e],"list.highlightForeground":Re.primary[e],"list.focusHighlightForeground":Re.primary[e],"menu.background":Re.bg[e],"editorSuggestWidget.background":Re.bg[e],"editorSuggestWidget.selectedBackground":Re.primaryBg[e],"editorSuggestWidget.selectedForeground":Re.primary[e],"quickInput.background":Re.bg[e],"quickInputList.focusForeground":"dark"===e?"#ffffff":"#444444","highlighted.label":Re.primary[e],"quickInput.widget":Re.primary[e],highlight:Re.primary[e],"editorWidget.background":Re.bg[e],"input.background":Re.secondary[e],focusBorder:Re.primary[e],"toolbar.hoverBackground":Re.primaryBg[e],"inputOption.hoverBackground":Re.primaryBg[e],"quickInputList.focusBackground":Re.primaryBg[e],"editorWidget.resizeBorder":Re.primary[e],"pickerGroup.foreground":Re.primary[e],"menu.selectionBackground":Re.primaryBg[e],"menu.selectionForeground":Re.primary[e]}),Pe={dark:{base:"vs-dark",inherit:!0,colors:Fe("dark"),rules:[{token:"argument.identifier.gql",foreground:"#908aff"}]},light:{base:"vs",inherit:!0,colors:Fe("light"),rules:[{token:"argument.identifier.gql",foreground:"#6c69ce"}]}};function Me(e){return e&&"object"==typeof e&&!Array.isArray(e)&&je(e,"id")&&je(e,"title")&&Ve(e,"query")&&Ve(e,"variables")&&Ve(e,"headers")&&Ve(e,"operationName")&&Ve(e,"response")}function je(e,t){return t in e&&"string"==typeof e[t]}function Ve(e,t){return t in e&&("string"==typeof e[t]||null===e[t])}function Ke(e,t=!1){return JSON.stringify(e,(e,n)=>"hash"===e||"response"===e||!t&&"headers"===e?null:n)}function Ue({query:e=null,variables:t=null,headers:n=null}={}){const r=e?ze(e):null;return{id:$e(),hash:qe({query:e,variables:t,headers:n}),title:r||Ge,query:e,variables:t,headers:n,operationName:r,response:null}}function Be(e,t){return{...e,tabs:e.tabs.map((n,r)=>{if(r!==e.activeTabIndex)return n;const i={...n,...t};return{...i,hash:qe(i),title:i.operationName||(i.query?ze(i.query):void 0)||Ge}})}}function $e(){const e=()=>Math.floor(65536*(1+Math.random())).toString(16).slice(1);return`${e()}${e()}-${e()}-${e()}-${e()}-${e()}${e()}${e()}`}function qe(e){return[e.query??"",e.variables??"",e.headers??""].join("|")}function ze(e){const t=/^(?!#).*(query|subscription|mutation)\s+([a-zA-Z0-9_]+)/m.exec(e);return(null==t?void 0:t[2])??null}const Ge="<untitled>",Qe=e=>t=>E(e,t&&x(t)),He=v((e,t)=>({actions:{async initialize(){if(Boolean(t().monaco))return;const[n,{initializeMode:r}]=await Promise.all([Promise.all([s.e(1613),s.e(6611),s.e(2321),s.e(9570),s.e(4399),s.e(1320),s.e(2155),s.e(1004),s.e(2370),s.e(5051)]).then(s.bind(s,62370)),Promise.all([s.e(1613),s.e(6611),s.e(2321),s.e(9570),s.e(4399),s.e(1320),s.e(2155),s.e(1004),s.e(2370),s.e(546)]).then(s.bind(s,1568))]);globalThis.__MONACO=n,n.languages.json.jsonDefaults.setDiagnosticsOptions(Ae),n.editor.defineTheme(Oe.dark,Pe.dark),n.editor.defineTheme(Oe.light,Pe.light),navigator.userAgent.includes("Firefox/")&&async function(){const{MouseTargetFactory:e}=await Promise.all([s.e(2321),s.e(1004),s.e(8882)]).then(s.bind(s,49635)),t=e._doHitTestWithCaretPositionFromPoint;e._doHitTestWithCaretPositionFromPoint=(...e)=>{const[n,r]=e;return n.viewDomNode.ownerDocument.caretPositionFromPoint(r.clientX,r.clientY)?t(...e):{type:0}}}();const i=r({diagnosticSettings:Le});e({monaco:n,monacoGraphQL:i})}}})),We=Qe(He);function Ye(e,t){let n;return function(...r){n&&clearTimeout(n),n=setTimeout(()=>{n=null,t(...r)},e)}}function Xe(e,t,n){const r=(0,m.c)(10),{updateActiveTabValues:i}=Ct();let o;r[0]!==n?(o=e=>({editor:e["variables"===n?"variableEditor":"headerEditor"],storage:e.storage}),r[0]=n,r[1]=o):o=r[1];const{editor:s,storage:a}=xt(o);let l,u;r[2]!==e||r[3]!==s||r[4]!==a||r[5]!==t||r[6]!==n||r[7]!==i?(l=()=>{if(!s)return;const r=Ye(500,e=>{null!==t&&a.set(t,e)}),o=Ye(100,e=>{i({[n]:e})}),l=s.getModel().onDidChangeContent(t=>{const n=s.getValue();r(n),o(n),null==e||e(n)});return()=>{l.dispose()}},u=[e,s,t,n,i,a],r[2]=e,r[3]=s,r[4]=a,r[5]=t,r[6]=n,r[7]=i,r[8]=l,r[9]=u):(l=r[8],u=r[9]),(0,d.useEffect)(l,u)}const Je=(e,t)=>{const n=(0,m.c)(4),r=(0,d.useRef)(!1);let i,o,s;n[0]===Symbol.for("react.memo_cache_sentinel")?(i=()=>()=>{r.current=!1},o=[],n[0]=i,n[1]=o):(i=n[0],o=n[1]),(0,d.useEffect)(i,o),n[2]!==e?(s=()=>{if(r.current)return e();r.current=!0},n[2]=e,n[3]=s):s=n[3],(0,d.useEffect)(s,t)};function Ze(e){return 32===e||9===e}function et(e){return 10===e||13===e}function tt(e){return e>=48&&e<=57}var nt;!function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"}(nt||(nt={})),new Array(20).fill(0).map((e,t)=>" ".repeat(t));const rt=200;var it,ot,st;function at(e,t,n=it.DEFAULT){const r=function(e,t=!1){const n=e.length;let r=0,i="",o=0,s=16,a=0,l=0,u=0,c=0,d=0;function p(t,n){let i=0,o=0;for(;i<t||!n;){let t=e.charCodeAt(r);if(t>=48&&t<=57)o=16*o+t-48;else if(t>=65&&t<=70)o=16*o+t-65+10;else{if(!(t>=97&&t<=102))break;o=16*o+t-97+10}r++,i++}return i<t&&(o=-1),o}function f(){if(i="",d=0,o=r,l=a,c=u,r>=n)return o=n,s=17;let t=e.charCodeAt(r);if(Ze(t)){do{r++,i+=String.fromCharCode(t),t=e.charCodeAt(r)}while(Ze(t));return s=15}if(et(t))return r++,i+=String.fromCharCode(t),13===t&&10===e.charCodeAt(r)&&(r++,i+="\n"),a++,u=r,s=14;switch(t){case 123:return r++,s=1;case 125:return r++,s=2;case 91:return r++,s=3;case 93:return r++,s=4;case 58:return r++,s=6;case 44:return r++,s=5;case 34:return r++,i=function(){let t="",i=r;for(;;){if(r>=n){t+=e.substring(i,r),d=2;break}const o=e.charCodeAt(r);if(34===o){t+=e.substring(i,r),r++;break}if(92!==o){if(o>=0&&o<=31){if(et(o)){t+=e.substring(i,r),d=2;break}d=6}r++}else{if(t+=e.substring(i,r),r++,r>=n){d=2;break}switch(e.charCodeAt(r++)){case 34:t+='"';break;case 92:t+="\\";break;case 47:t+="/";break;case 98:t+="\b";break;case 102:t+="\f";break;case 110:t+="\n";break;case 114:t+="\r";break;case 116:t+="\t";break;case 117:const e=p(4,!0);e>=0?t+=String.fromCharCode(e):d=4;break;default:d=5}i=r}}return t}(),s=10;case 47:const l=r-1;if(47===e.charCodeAt(r+1)){for(r+=2;r<n&&!et(e.charCodeAt(r));)r++;return i=e.substring(l,r),s=12}if(42===e.charCodeAt(r+1)){r+=2;const t=n-1;let o=!1;for(;r<t;){const t=e.charCodeAt(r);if(42===t&&47===e.charCodeAt(r+1)){r+=2,o=!0;break}r++,et(t)&&(13===t&&10===e.charCodeAt(r)&&r++,a++,u=r)}return o||(r++,d=1),i=e.substring(l,r),s=13}return i+=String.fromCharCode(t),r++,s=16;case 45:if(i+=String.fromCharCode(t),r++,r===n||!tt(e.charCodeAt(r)))return s=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return i+=function(){let t=r;if(48===e.charCodeAt(r))r++;else for(r++;r<e.length&&tt(e.charCodeAt(r));)r++;if(r<e.length&&46===e.charCodeAt(r)){if(r++,!(r<e.length&&tt(e.charCodeAt(r))))return d=3,e.substring(t,r);for(r++;r<e.length&&tt(e.charCodeAt(r));)r++}let n=r;if(r<e.length&&(69===e.charCodeAt(r)||101===e.charCodeAt(r)))if(r++,(r<e.length&&43===e.charCodeAt(r)||45===e.charCodeAt(r))&&r++,r<e.length&&tt(e.charCodeAt(r))){for(r++;r<e.length&&tt(e.charCodeAt(r));)r++;n=r}else d=3;return e.substring(t,n)}(),s=11;default:for(;r<n&&h(t);)r++,t=e.charCodeAt(r);if(o!==r){switch(i=e.substring(o,r),i){case"true":return s=8;case"false":return s=9;case"null":return s=7}return s=16}return i+=String.fromCharCode(t),r++,s=16}}function h(e){if(Ze(e)||et(e))return!1;switch(e){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}return{setPosition:function(e){r=e,i="",o=0,s=16,d=0},getPosition:()=>r,scan:t?function(){let e;do{e=f()}while(e>=12&&e<=15);return e}:f,getToken:()=>s,getTokenValue:()=>i,getTokenOffset:()=>o,getTokenLength:()=>r-o,getTokenStartLine:()=>l,getTokenStartCharacter:()=>o-c,getTokenError:()=>d}}(e,!1),i=[];let o=0;function s(e){return e?t=>0===o&&e(t,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}function a(e){return e?t=>0===o&&e(t,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),()=>i.slice()):()=>!0}function l(e){return e?()=>{o>0?o++:!1===e(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),()=>i.slice())&&(o=1)}:()=>!0}function u(e){return e?()=>{o>0&&o--,0===o&&e(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter())}:()=>!0}const c=l(t.onObjectBegin),d=a(t.onObjectProperty),p=u(t.onObjectEnd),f=l(t.onArrayBegin),h=u(t.onArrayEnd),m=a(t.onLiteralValue),g=s(t.onSeparator),y=(b=t.onComment)?()=>0===o&&b(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0,v=s(t.onError);var b;const E=n&&n.disallowComments,T=n&&n.allowTrailingComma;function w(){for(;;){const e=r.scan();switch(r.getTokenError()){case 4:k(14);break;case 5:k(15);break;case 3:k(13);break;case 1:E||k(11);break;case 2:k(12);break;case 6:k(16)}switch(e){case 12:case 13:E?k(10):y();break;case 16:k(1);break;case 15:case 14:break;default:return e}}}function k(e,t=[],n=[]){if(v(e),t.length+n.length>0){let e=r.getToken();for(;17!==e;){if(-1!==t.indexOf(e)){w();break}if(-1!==n.indexOf(e))break;e=w()}}}function S(e){const t=r.getTokenValue();return e?m(t):(d(t),i.push(t)),w(),!0}function x(){return 10!==r.getToken()?(k(3,[],[2,5]),!1):(S(!1),6===r.getToken()?(g(":"),w(),C()||k(4,[],[2,5])):k(5,[],[2,5]),i.pop(),!0)}function C(){switch(r.getToken()){case 3:return function(){f(),w();let e=!0,t=!1;for(;4!==r.getToken()&&17!==r.getToken();){if(5===r.getToken()){if(t||k(4,[],[]),g(","),w(),4===r.getToken()&&T)break}else t&&k(6,[],[]);e?(i.push(0),e=!1):i[i.length-1]++,C()||k(4,[],[4,5]),t=!0}return h(),e||i.pop(),4!==r.getToken()?k(8,[4],[]):w(),!0}();case 1:return function(){c(),w();let e=!1;for(;2!==r.getToken()&&17!==r.getToken();){if(5===r.getToken()){if(e||k(4,[],[]),g(","),w(),2===r.getToken()&&T)break}else e&&k(6,[],[]);x()||k(4,[],[2,5]),e=!0}return p(),2!==r.getToken()?k(7,[2],[]):w(),!0}();case 10:return S(!0);default:return function(){switch(r.getToken()){case 11:const e=r.getTokenValue();let t=Number(e);isNaN(t)&&(k(2),t=0),m(t);break;case 7:m(null);break;case 8:m(!0);break;case 9:m(!1);break;default:return!1}return w(),!0}()}}return w(),17===r.getToken()?!!n.allowEmptyContent||(k(4,[],[]),!1):C()?(17!==r.getToken()&&k(9,[],[]),!0):(k(4,[],[]),!1)}new Array(rt).fill(0).map((e,t)=>"\n"+" ".repeat(t)),new Array(rt).fill(0).map((e,t)=>"\r"+" ".repeat(t)),new Array(rt).fill(0).map((e,t)=>"\r\n"+" ".repeat(t)),new Array(rt).fill(0).map((e,t)=>"\n"+"\t".repeat(t)),new Array(rt).fill(0).map((e,t)=>"\r"+"\t".repeat(t)),new Array(rt).fill(0).map((e,t)=>"\r\n"+"\t".repeat(t)),function(e){e.DEFAULT={allowTrailingComma:!1}}(it||(it={})),function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"}(ot||(ot={})),function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"}(st||(st={}));var lt;async function ut(e){const[t,{printers:n},{parsers:r}]=await Promise.all([s.e(2408).then(s.bind(s,12408)),s.e(3242).then(s.bind(s,73242)),s.e(2581).then(s.t.bind(s,2581,23))]);return t.format(e,{parser:"jsonc",plugins:[{printers:n},{parsers:r}],printWidth:0})}!function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"}(lt||(lt={}));const ct=new Intl.ListFormat("en",{style:"long",type:"conjunction"});function dt(e=""){let t;try{t=function(e){const t=[],n=function(e,t=[],n=it.DEFAULT){let r=null,i=[];const o=[];function s(e){Array.isArray(i)?i.push(e):null!==r&&(i[r]=e)}const a={onObjectBegin:()=>{const e={};s(e),o.push(i),i=e,r=null},onObjectProperty:e=>{r=e},onObjectEnd:()=>{i=o.pop()},onArrayBegin:()=>{const e=[];s(e),o.push(i),i=e,r=null},onArrayEnd:()=>{i=o.pop()},onLiteralValue:s,onError:(e,n,r)=>{t.push({error:e,offset:n,length:r})}};return at(e,a,n),i[0]}(e,t,{allowTrailingComma:!0,allowEmptyContent:!0});if(t.length){const e=ct.format(t.map(({error:e})=>function(e){switch(e){case 1:return"InvalidSymbol";case 2:return"InvalidNumberFormat";case 3:return"PropertyNameExpected";case 4:return"ValueExpected";case 5:return"ColonExpected";case 6:return"CommaExpected";case 7:return"CloseBraceExpected";case 8:return"CloseBracketExpected";case 9:return"EndOfFileExpected";case 10:return"InvalidCommentToken";case 11:return"UnexpectedEndOfComment";case 12:return"UnexpectedEndOfString";case 13:return"UnexpectedEndOfNumber";case 14:return"InvalidUnicode";case 15:return"InvalidEscapeCharacter";case 16:return"InvalidCharacter"}return"<unknown ParseErrorCode>"}(e)));throw new SyntaxError(e)}return n}(e)}catch(e){throw new Error(`are invalid JSON: ${e instanceof Error?e.message:e}.`)}if(t){if("object"!=typeof t||Array.isArray(t))throw new TypeError("are not a JSON object.");return t}}var pt=s(37066),ft=s(11098),ht=s.n(ft),mt=s(75302),gt=s.n(mt),yt=s(81304);const vt=new WeakMap;function bt(e,t){var n,r,i;let o=["data",...t.path??[]];for(const n of[e,t])if(n.pending){let t=vt.get(e);void 0===t&&(t=new Map,vt.set(e,t));for(const{id:e,path:r}of n.pending)t.set(e,["data",...r])}const{items:s,data:a,id:l}=t;if(s)if(l){if(o=null==(n=vt.get(e))?void 0:n.get(l),void 0===o)throw new Error("Invalid incremental delivery format.");gt()(e,o.join(".")).push(...s)}else{o=["data",...t.path??[]];for(const t of s)ht()(e,o.join("."),t),o[o.length-1]++}if(a){if(l){if(o=null==(r=vt.get(e))?void 0:r.get(l),void 0===o)throw new Error("Invalid incremental delivery format.");const{subPath:n}=t;void 0!==n&&(o=[...o,...n])}ht()(e,o.join("."),a,{merge:!0})}if(t.errors&&(e.errors||(e.errors=[]),e.errors.push(...t.errors)),t.extensions&&ht()(e,"extensions",t.extensions,{merge:!0}),t.incremental)for(const n of t.incremental)bt(e,n);if(t.completed)for(const{id:n,errors:r}of t.completed)null==(i=vt.get(e))||i.delete(n),r&&(e.errors||(e.errors=[]),e.errors.push(...r))}var Et=s(58881),Tt=s(65410);const wt=(0,d.createContext)(null),kt=e=>{const t=(0,m.c)(5);if(!e.fetcher)throw new TypeError("The `GraphiQLProvider` component requires a `fetcher` function to be passed as prop.");if(e.validationRules)throw new TypeError("The `validationRules` prop has been removed. Use custom GraphQL worker, see https://github.com/graphql/graphiql/tree/main/packages/monaco-graphql#custom-webworker-for-passing-non-static-config-to-worker.");if(e.query)throw new TypeError("The `query` prop has been removed. Use `initialQuery` prop instead, or set value programmatically using:\n\nconst queryEditor = useGraphiQL(state => state.queryEditor)\n\nuseEffect(() => {\n  queryEditor.setValue(query)\n}, [query])");if(e.variables)throw new TypeError("The `variables` prop has been removed. Use `initialVariables` prop instead, or set value programmatically using:\n\nconst variableEditor = useGraphiQL(state => state.variableEditor)\n\nuseEffect(() => {\n  variableEditor.setValue(variables)\n}, [variables])");if(e.headers)throw new TypeError("The `headers` prop has been removed. Use `initialHeaders` prop instead, or set value programmatically using:\n\nconst headerEditor = useGraphiQL(state => state.headerEditor)\n\nuseEffect(() => {\n  headerEditor.setValue(headers)\n}, [headers])");if(e.response)throw new TypeError("The `response` prop has been removed. Set value programmatically using:\n\nconst responseEditor = useGraphiQL(state => state.responseEditor)\n\nuseEffect(() => {\n  responseEditor.setValue(response)\n}, [response])");const{actions:n}=We(),[r,i]=(0,d.useState)(!1);let o,s,a;return t[0]!==n?(o=()=>{n.initialize(),i(!0)},t[0]=n,t[1]=o):o=t[1],t[2]===Symbol.for("react.memo_cache_sentinel")?(s=[],t[2]=s):s=t[2],(0,d.useEffect)(o,s),r?(t[3]!==e?(a=(0,h.jsx)(St,{...e}),t[3]=e,t[4]=a):a=t[4],a):null},St=e=>{const t=(0,m.c)(76);let n,r,i,o,s,a,l,u,c,p,f,g,y,v,b,E,w,k,S,x,C,_,N,D,A,L,I;t[0]!==e?(({defaultHeaders:i,defaultQuery:E,defaultTabs:o,externalFragments:s,onEditOperationName:c,onTabChange:f,shouldPersistHeaders:S,onCopyQuery:u,onPrettifyQuery:x,dangerouslyAssumeSchemaIsValid:C,fetcher:a,inputValueDeprecation:_,introspectionQueryName:N,onSchemaChange:p,schema:b,schemaDescription:D,getDefaultFieldNames:l,operationName:A,onTogglePluginVisibility:g,plugins:L,referencePlugin:v,visiblePlugin:I,children:r,defaultTheme:w,editorTheme:k,storage:n,...y}=e),t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=s,t[6]=a,t[7]=l,t[8]=u,t[9]=c,t[10]=p,t[11]=f,t[12]=g,t[13]=y,t[14]=v,t[15]=b,t[16]=E,t[17]=w,t[18]=k,t[19]=S,t[20]=x,t[21]=C,t[22]=_,t[23]=N,t[24]=D,t[25]=A,t[26]=L,t[27]=I):(n=t[1],r=t[2],i=t[3],o=t[4],s=t[5],a=t[6],l=t[7],u=t[8],c=t[9],p=t[10],f=t[11],g=t[12],y=t[13],v=t[14],b=t[15],E=t[16],w=t[17],k=t[18],S=t[19],x=t[20],C=t[21],_=t[22],N=t[23],D=t[24],A=t[25],L=t[26],I=t[27]);const O=void 0===E?Se:E,R=void 0!==S&&S,F=void 0===x?Ie:x,P=void 0!==C&&C,K=void 0!==_&&_,U=void 0===N?"IntrospectionQuery":N,B=void 0!==D&&D,$=void 0===A?null:A;let q;t[28]!==L?(q=void 0===L?[]:L,t[28]=L,t[29]=q):q=t[29];const z=q,G=void 0===w?null:w,Q=void 0===k?Oe:k,Y=(0,d.useRef)(null),X=(0,d.useId)();if(null===Y.current){let e;if(t[30]!==n||t[31]!==i||t[32]!==O||t[33]!==o||t[34]!==G||t[35]!==Q||t[36]!==s||t[37]!==a||t[38]!==l||t[39]!==K||t[40]!==U||t[41]!==u||t[42]!==c||t[43]!==F||t[44]!==p||t[45]!==f||t[46]!==g||t[47]!==$||t[48]!==z||t[49]!==y.initialHeaders||t[50]!==y.initialQuery||t[51]!==y.initialVariables||t[52]!==v||t[53]!==B||t[54]!==R||t[55]!==X||t[56]!==I){const r=new se(n),d=function(){const e=r.get(ve);return z.find(t=>t.title===e)||(e&&r.set(ve,""),I)},h=function(){const e=r.get(ke);switch(e){case"light":return"light";case"dark":return"dark";default:return"string"==typeof e&&r.set(ke,""),G}},m=function(){const e=y.initialQuery??r.get(be),t=y.initialVariables??r.get(Ee),n=y.initialHeaders??r.get(ye),{tabs:m,activeTabIndex:b}=function({defaultQuery:e,defaultHeaders:t,headers:n,query:r,variables:i,defaultTabs:o=[{query:r??e,variables:i,headers:n??t}],shouldPersistHeaders:s,storage:a}){const l=a.get(Te);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(Me)){const o=qe({query:r,variables:i,headers:t});let s=-1;for(let t=0;t<e.tabs.length;t++){const n=e.tabs[t];n.hash=qe({query:n.query,variables:n.variables,headers:n.headers}),n.hash===o&&(s=t)}if(s>=0)e.activeTabIndex=s;else{const t=r?ze(r):null;e.tabs.push({id:$e(),hash:o,title:t||Ge,query:r,variables:i,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:o.map(Ue)}}var u}({defaultHeaders:i,defaultQuery:O,defaultTabs:o,headers:n,query:e,shouldPersistHeaders:R,storage:r,variables:t}),E=null!==r.get(we),w=!1!==R&&E?"true"===r.get(we):R,k=(e=>e?T(e):T)((...o)=>{const d=o,h=(y={storage:r},()=>y)(...d);var y;const E=(e=>(t,n)=>{function r({query:e,variables:t,headers:r,response:i}){const{queryEditor:o,variableEditor:s,headerEditor:a,responseEditor:l,defaultHeaders:u}=n();null==o||o.setValue(e??""),null==s||s.setValue(t??""),null==a||a.setValue(r??u??""),null==l||l.setValue(i??"")}const i={addTab(){t(({defaultHeaders:e,onTabChange:t,tabs:i,activeTabIndex:o,actions:s})=>{const a=function(e){const{queryEditor:t,variableEditor:r,headerEditor:i,responseEditor:o,operationName:s}=n();return Be(e,{query:(null==t?void 0:t.getValue())??null,variables:(null==r?void 0:r.getValue())??null,headers:(null==i?void 0:i.getValue())??null,response:(null==o?void 0:o.getValue())??null,operationName:s??null})}({tabs:i,activeTabIndex:o}),l={tabs:[...a.tabs,Ue({headers:e})],activeTabIndex:a.tabs.length};return s.storeTabs(l),r(l.tabs[l.activeTabIndex]),null==t||t(l),l})},changeTab(e){t(({actions:t,onTabChange:n,tabs:i})=>{t.stop();const o={tabs:i,activeTabIndex:e};return t.storeTabs(o),r(o.tabs[o.activeTabIndex]),null==n||n(o),o})},moveTab(e){t(({onTabChange:t,actions:n,tabs:i,activeTabIndex:o})=>{const s=i[o],a={tabs:e,activeTabIndex:e.indexOf(s)};return n.storeTabs(a),r(a.tabs[a.activeTabIndex]),null==t||t(a),a})},closeTab(e){t(({activeTabIndex:t,onTabChange:n,actions:i,tabs:o})=>{t===e&&i.stop();const s={tabs:o.filter((t,n)=>e!==n),activeTabIndex:Math.max(t-1,0)};return i.storeTabs(s),r(s.tabs[s.activeTabIndex]),null==n||n(s),s})},updateActiveTabValues(e){t(({activeTabIndex:t,tabs:n,onTabChange:r,actions:i})=>{const o=Be({tabs:n,activeTabIndex:t},e);return i.storeTabs(o),null==r||r(o),o})},setEditor({headerEditor:e,queryEditor:n,responseEditor:r,variableEditor:i}){const o=Object.entries({headerEditor:e,queryEditor:n,responseEditor:r,variableEditor:i}).filter(([e,t])=>t),s=Object.fromEntries(o);t(s)},setOperationName(e){t(({onEditOperationName:t,actions:n})=>(n.updateActiveTabValues({operationName:e}),null==t||t(e),{operationName:e}))},setShouldPersistHeaders(e){const{headerEditor:r,tabs:i,activeTabIndex:o,storage:s}=n();if(e){s.set(ye,(null==r?void 0:r.getValue())??"");const e=Ke({tabs:i,activeTabIndex:o},!0);s.set(Te,e)}else s.set(ye,""),function(e){const t=e.get(Te);if(t){const n=JSON.parse(t);e.set(Te,JSON.stringify(n,(e,t)=>"headers"===e?null:t))}}(s);s.set(we,e.toString()),t({shouldPersistHeaders:e})},storeTabs({tabs:e,activeTabIndex:t}){const{shouldPersistHeaders:r,storage:i}=n();Ye(500,e=>{i.set(Te,e)})(Ke({tabs:e,activeTabIndex:t},r))},setOperationFacts({documentAST:e,operationName:n,operations:r}){t({documentAST:e,operationName:n,operations:r})},async copyQuery(){const{queryEditor:e,onCopyQuery:t}=n();if(!e)return;const r=e.getValue();null==t||t(r);try{await navigator.clipboard.writeText(r)}catch(e){console.warn("Failed to copy query!",e)}},async prettifyEditors(){const{queryEditor:e,headerEditor:t,variableEditor:r,onPrettifyQuery:i}=n();if(r)try{const e=r.getValue(),t=await ut(e);t!==e&&r.setValue(t)}catch(e){console.warn("Parsing variables JSON failed, skip prettification.",e)}if(t)try{const e=t.getValue(),n=await ut(e);n!==e&&t.setValue(n)}catch(e){console.warn("Parsing headers JSON failed, skip prettification.",e)}if(e)try{const t=e.getValue(),n=await i(t);n!==t&&e.setValue(n)}catch(e){console.warn("Parsing query failed, skip prettification.",e)}},mergeQuery(){const{queryEditor:e,documentAST:t,schema:r}=n(),i=null==e?void 0:e.getValue();t&&i&&e.setValue((0,J.print)(oe(t,r)))}};return{...e,actions:i}})({activeTabIndex:b,defaultHeaders:i,defaultQuery:O,externalFragments:_t(s),initialHeaders:n??i??"",initialQuery:e??(0===b?m[0].query:null)??"",initialVariables:t??"",onCopyQuery:u,onEditOperationName:c,onPrettifyQuery:F,onTabChange:f,shouldPersistHeaders:w,tabs:m,uriInstanceId:X.replaceAll(/[:«»]/g,"")+"-"})(...d),T=(e=>(t,n)=>({...e,isFetching:!1,subscription:null,queryId:0,actions:{stop(){t(({subscription:e})=>(null==e||e.unsubscribe(),{isFetching:!1,subscription:null}))},async run(){const{externalFragments:e,headerEditor:r,queryEditor:i,responseEditor:o,variableEditor:s,actions:a,operationName:l,documentAST:u,subscription:c,overrideOperationName:d,queryId:p,fetcher:f}=n();if(!i||!o)return;if(c)return void a.stop();function h(e){null==o||o.setValue(e),a.updateActiveTabValues({response:e})}function m(e,t){t&&h(H({message:`${t===s?"Variables":"Request headers"} ${e.message}`}))}const g=p+1;t({queryId:g});let y,v,b=function(){const{queryEditor:e,schema:t,getDefaultFieldNames:r}=n();if(!e)return;const i=e.getValue(),{insertions:o,result:s=""}=ee(t,i,r);if(!o.length)return s;const a=e.getModel(),l=e.getSelection(),u=a.getOffsetAt(l.getPosition());a.setValue(s);let c=0;const d=o.map(({index:e,string:t})=>{const n=a.getPositionAt(e+c),r=a.getPositionAt(e+(c+=t.length));return{range:new yt.Range(n.lineNumber,n.column,r.lineNumber,r.column),options:{className:"auto-inserted-leaf",hoverMessage:{value:"Automatically added leaf fields"},isWholeLine:!1}}}),p=e.createDecorationsCollection([]);p.set(d),setTimeout(()=>{p.clear()},7e3);let f=u;for(const{index:e,string:t}of o)e<u&&(f+=t.length);const h=a.getPositionAt(f);return e.setPosition(h),s}()||i.getValue();try{y=dt(null==s?void 0:s.getValue())}catch(e){return void m(e,s)}try{v=dt(null==r?void 0:r.getValue())}catch(e){return void m(e,r)}const E=u?(0,pt.getFragmentDependenciesForAST)(u,e):[];E.length&&(b+="\n"+E.map(e=>(0,J.print)(e)).join("\n")),h(""),t({isFetching:!0});try{const e={},r=r=>{if(g!==n().queryId)return;let i=!!Array.isArray(r)&&r;if(!i&&"object"==typeof r&&"hasNext"in r&&(i=[r]),i){for(const t of i)bt(e,t);t({isFetching:!1}),h(W(e))}else t({isFetching:!1}),h(W(r))},i=f({query:b,variables:y,operationName:d??l},{headers:v,documentAST:u}),o=await i;if(j(o)){const e=o.subscribe({next(e){r(e)},error(e){t({isFetching:!1}),h(H(e)),t({subscription:null})},complete(){t({isFetching:!1,subscription:null})}});t({subscription:e})}else if(V(o)){const e={unsubscribe:()=>{var e,t;return null==(t=(e=o[Symbol.asyncIterator]()).return)?void 0:t.call(e)}};t({subscription:e});for await(const e of o)r(e);t({isFetching:!1,subscription:null})}else r(o)}catch(e){t({isFetching:!1}),h(H(e)),t({subscription:null})}}}}))({fetcher:a,getDefaultFieldNames:l,overrideOperationName:$})(...d),k=(e=>t=>({plugins:[],visiblePlugin:null,...e,actions:{setVisiblePlugin(e=null){t(t=>{const{visiblePlugin:n,plugins:r,onTogglePluginVisibility:i,storage:o}=t,s="string"==typeof e,a=e&&r.find(t=>(s?t.title:t)===e)||null;return a===n?t:(null==i||i(a),o.set(ve,(null==a?void 0:a.title)??""),{visiblePlugin:a})})},setPlugins(e){const n=new Set,r="All GraphiQL plugins must have a unique title";for(const{title:t}of e){if("string"!=typeof t||!t)throw new Error(r);if(n.has(t))throw new Error(`${r}, found two plugins with the title '${t}'`);n.add(t)}t({plugins:e})}}}))({onTogglePluginVisibility:g,referencePlugin:v})(...d),S=(e=>(t,n)=>({...e,fetchError:null,isIntrospecting:!1,schema:null,validationErrors:[],schemaReference:null,requestCounter:0,shouldIntrospect:!0,actions:{setSchemaReference(e){t({schemaReference:e})},async introspect(){const{requestCounter:e,shouldIntrospect:r,onSchemaChange:i,headerEditor:o,fetcher:s,inputValueDeprecation:a,introspectionQueryName:l,schemaDescription:u}=n();if(!r)return;const c=e+1;t({requestCounter:c,isIntrospecting:!0,fetchError:null});try{let e,r=function(e){const t=async function(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}(s({query:e,operationName:l},d));if(!M(t))throw new TypeError("Fetcher did not return a Promise for introspection.");return t};try{e=dt(null==o?void 0:o.getValue())}catch(e){throw new Error(`Introspection failed. Request headers ${e instanceof Error?e.message:e}`)}const d=e?{headers:e}:{},p=(0,Et.getIntrospectionQuery)({inputValueDeprecation:a,schemaDescription:u}),f="IntrospectionQuery"===l?p:p.replace("query IntrospectionQuery",`query ${l}`);let h,m=await r(f);if("object"==typeof m&&"data"in m||(m=await r(p.replace("subscriptionType { name }",""))),t({isIntrospecting:!1}),m.data&&"__schema"in m.data)h=m.data;else{const e="string"==typeof m?m:W(m);t({fetchError:e})}if(c!==n().requestCounter||!h)return;const g=(0,Tt.buildClientSchema)(h);t({schema:g}),null==i||i(g)}catch(e){if(c!==n().requestCounter)return;e instanceof Error&&delete e.stack,t({isIntrospecting:!1,fetchError:H(e)})}}}}))({inputValueDeprecation:K,introspectionQueryName:U,onSchemaChange:p,schemaDescription:B})(...d),x=(({editorTheme:e})=>(t,n)=>({theme:null,actions:{setTheme(r){const{storage:i}=n();i.set(ke,r??""),document.body.classList.remove("graphiql-light","graphiql-dark"),r&&document.body.classList.add(`graphiql-${r}`);const{monaco:o}=He.getState(),s=r??(window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),a=e[s];null==o||o.editor.setTheme(a),t({theme:r,monacoTheme:a})}}}))({editorTheme:Q})(...d);return{...h,...E,...T,...k,...S,...x,actions:{...E.actions,...T.actions,...k.actions,...S.actions,...x.actions}}}),{actions:S}=k.getState();return S.storeTabs({activeTabIndex:b,tabs:m}),S.setPlugins(z),S.setVisiblePlugin(d()),S.setTheme(h()),k};e=m(),t[30]=n,t[31]=i,t[32]=O,t[33]=o,t[34]=G,t[35]=Q,t[36]=s,t[37]=a,t[38]=l,t[39]=K,t[40]=U,t[41]=u,t[42]=c,t[43]=F,t[44]=p,t[45]=f,t[46]=g,t[47]=$,t[48]=z,t[49]=y.initialHeaders,t[50]=y.initialQuery,t[51]=y.initialVariables,t[52]=v,t[53]=B,t[54]=R,t[55]=X,t[56]=I,t[57]=e}else e=t[57];Y.current=e}let Z,te,ne,re,ie,ae,le,ue,pe;return t[58]!==a?(Z=()=>{Y.current.setState({fetcher:a})},te=[a],t[58]=a,t[59]=Z,t[60]=te):(Z=t[59],te=t[60]),Je(Z,te),t[61]!==z||t[62]!==I?(ne=()=>{const{actions:e}=Y.current.getState();e.setPlugins(z),e.setVisiblePlugin(I)},re=[z,I],t[61]=z,t[62]=I,t[63]=ne,t[64]=re):(ne=t[63],re=t[64]),Je(ne,re),t[65]!==P||t[66]!==b?(ie=()=>{const e=(0,ce.isSchema)(b)||null==b?b:void 0,t=!e||P?[]:(0,de.validateSchema)(e),n=Y.current;n.setState(n=>{const{requestCounter:r}=n;return{requestCounter:r+1,schema:e,shouldIntrospect:!(0,ce.isSchema)(b)&&null!==b,validationErrors:t}});const{actions:r}=n.getState();r.introspect()},t[65]=P,t[66]=b,t[67]=ie):ie=t[67],t[68]!==P||t[69]!==a||t[70]!==b?(ae=[b,P,a],t[68]=P,t[69]=a,t[70]=b,t[71]=ae):ae=t[71],(0,d.useEffect)(ie,ae),t[72]===Symbol.for("react.memo_cache_sentinel")?(le=()=>{const e=function(e){if(e.ctrlKey&&"R"===e.key){const{actions:e}=Y.current.getState();e.introspect()}};return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}},ue=[],t[72]=le,t[73]=ue):(le=t[72],ue=t[73]),(0,d.useEffect)(le,ue),t[74]!==r?(pe=(0,h.jsx)(wt.Provider,{value:Y,children:r}),t[74]=r,t[75]=pe):pe=t[75],pe};function xt(e){const t=(0,d.useContext)(wt);if(!t)throw new Error('"useGraphiQL" hook must be used within a <GraphiQLProvider> component.\nIt looks like you are trying to use the hook outside the GraphiQL provider tree.');return E(t.current,x(e))}const Ct=()=>xt(Nt);function _t(e){const t=new Map;if(e)if(Array.isArray(e))for(const n of e)t.set(n.name.value,n);else{if("string"!=typeof e)throw new TypeError("The `externalFragments` prop must either be a string that contains the fragment definitions in SDL or a list of `FragmentDefinitionNode` objects.");(0,K.visit)((0,Y.parse)(e),{FragmentDefinition(e){t.set(e.name.value,e)}})}return t}function Nt(e){return e.actions}const Dt=an(({title:e,titleId:t,...n})=>d.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?d.createElement("title",{id:t},e):null,d.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}),d.createElement("rect",{x:6,y:6,width:2,height:2,rx:1,fill:"currentColor"}))),At=an(({title:e,titleId:t,...n})=>d.createElement("svg",{height:"1em",viewBox:"0 0 14 9",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?d.createElement("title",{id:t},e):null,d.createElement("path",{d:"M1 1L7 7L13 1",stroke:"currentColor",strokeWidth:1.5}))),Lt=an(({title:e,titleId:t,...n})=>d.createElement("svg",{height:"1em",viewBox:"0 0 7 10",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?d.createElement("title",{id:t},e):null,d.createElement("path",{d:"M6 1.04819L2 5.04819L6 9.04819",stroke:"currentColor",strokeWidth:1.75}))),It=an(({title:e,titleId:t,...n})=>d.createElement("svg",{height:"1em",viewBox:"0 0 14 9",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?d.createElement("title",{id:t},e):null,d.createElement("path",{d:"M13 8L7 2L1 8",stroke:"currentColor",strokeWidth:1.5}))),Ot=an(({title:e,titleId:t,...n})=>d.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?d.createElement("title",{id:t},e):null,d.createElement("path",{d:"M1 1L12.9998 12.9997"}),d.createElement("path",{d:"M13 1L1.00079 13.0003"}))),Rt=an(({title:e,titleId:t,...n})=>d.createElement("svg",{height:"1em",viewBox:"-2 -2 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?d.createElement("title",{id:t},e):null,d.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}),d.createElement("rect",{x:6.75,y:.75,width:10.5,height:10.5,rx:2.2069,stroke:"currentColor",strokeWidth:1.5}))),Ft=an(({title:e,titleId:t,...n})=>d.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?d.createElement("title",{id:t},e):null,d.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}),d.createElement("path",{d:"M5 9L9 5",stroke:"currentColor",strokeWidth:1.2}),d.createElement("path",{d:"M5 5L9 9",stroke:"currentColor",strokeWidth:1.2}))),Pt=an(({title:e,titleId:t,...n})=>d.createElement("svg",{height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?d.createElement("title",{id:t},e):null,d.createElement("path",{d:"M4 8L8 4",stroke:"currentColor",strokeWidth:1.2}),d.createElement("path",{d:"M4 4L8 8",stroke:"currentColor",strokeWidth:1.2}),d.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"}))),Mt=an(({title:e,titleId:t,...n})=>d.createElement("svg",{height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?d.createElement("title",{id:t},e):null,d.createElement("rect",{x:.6,y:.6,width:10.8,height:10.8,rx:3.4,stroke:"currentColor",strokeWidth:1.2}),d.createElement("path",{d:"M4 8L8 4",stroke:"currentColor",strokeWidth:1.2}),d.createElement("path",{d:"M4 4L8 8",stroke:"currentColor",strokeWidth:1.2}))),jt=an(({title:e,titleId:t,...n})=>d.createElement("svg",{height:"1em",viewBox:"0 0.5 12 12",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?d.createElement("title",{id:t},e):null,d.createElement("rect",{x:7,y:5.5,width:2,height:2,rx:1,transform:"rotate(90 7 5.5)",fill:"currentColor"}),d.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"}))),Vt=an(({title:e,titleId:t,...n})=>d.createElement("svg",{height:"1em",viewBox:"0 0 20 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?d.createElement("title",{id:t},e):null,d.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}),d.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}),d.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"}))),Kt=an(({title:e,titleId:t,...n})=>d.createElement("svg",{height:"1em",viewBox:"0 0 20 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?d.createElement("title",{id:t},e):null,d.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}),d.createElement("line",{x1:13,y1:11.75,x2:6,y2:11.75,stroke:"currentColor",strokeWidth:1.5}))),Ut=an(({title:e,titleId:t,...n})=>d.createElement("svg",{height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?d.createElement("title",{id:t},e):null,d.createElement("rect",{x:5,y:5,width:2,height:2,rx:1,fill:"currentColor"}),d.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"}))),Bt=an(({title:e,titleId:t,...n})=>d.createElement("svg",{height:"1em",viewBox:"0 0 12 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?d.createElement("title",{id:t},e):null,d.createElement("rect",{x:.6,y:1.1,width:10.8,height:10.8,rx:2.4,stroke:"currentColor",strokeWidth:1.2}),d.createElement("rect",{x:5,y:5.5,width:2,height:2,rx:1,fill:"currentColor"}))),$t=an(({title:e,titleId:t,...n})=>d.createElement("svg",{height:"1em",viewBox:"0 0 24 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?d.createElement("title",{id:t},e):null,d.createElement("path",{d:"M1.59375 9.52344L4.87259 12.9944L8.07872 9.41249",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"square"}),d.createElement("path",{d:"M13.75 5.25V10.75H18.75",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"square"}),d.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}))),qt=an(({title:e,titleId:t,...n})=>d.createElement("svg",{height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?d.createElement("title",{id:t},e):null,d.createElement("circle",{cx:6,cy:6,r:5.4,stroke:"currentColor",strokeWidth:1.2,strokeDasharray:"4.241025 4.241025",transform:"rotate(22.5 6 6)"}),d.createElement("circle",{cx:6,cy:6,r:1,fill:"currentColor"}))),zt=an(({title:e,titleId:t,...n})=>d.createElement("svg",{height:"1em",viewBox:"0 0 19 18",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?d.createElement("title",{id:t},e):null,d.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"}),d.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"}),d.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"}),d.createElement("path",{d:"M12.6318 5.86775H6.36955V12.1285H12.6318V5.86775Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"}),d.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"}))),Gt=an(({title:e,titleId:t,...n})=>d.createElement("svg",{height:"1em",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?d.createElement("title",{id:t},e):null,d.createElement("circle",{cx:5,cy:5,r:4.35,stroke:"currentColor",strokeWidth:1.3}),d.createElement("line",{x1:8.45962,y1:8.54038,x2:11.7525,y2:11.8333,stroke:"currentColor",strokeWidth:1.3}))),Qt=an(({title:e,titleId:t,...n})=>d.createElement("svg",{height:"1em",viewBox:"-2 -2 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?d.createElement("title",{id:t},e):null,d.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}),d.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}),d.createElement("path",{d:"M6 4.5L9 7.5L12 4.5",stroke:"currentColor",strokeWidth:1.5}),d.createElement("path",{d:"M12 13.5L9 10.5L6 13.5",stroke:"currentColor",strokeWidth:1.5}))),Ht=an(({title:e,titleId:t,...n})=>d.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?d.createElement("title",{id:t},e):null,d.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"}),d.createElement("path",{d:"M11.5 4.5L9.5 2.5",stroke:"currentColor",strokeWidth:1.4026,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M5.5 10.5L3.5 8.5",stroke:"currentColor",strokeWidth:1.4026,strokeLinecap:"round",strokeLinejoin:"round"}))),Wt=an(({title:e,titleId:t,...n})=>d.createElement("svg",{height:"1em",viewBox:"0 0 16 18",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?d.createElement("title",{id:t},e):null,d.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"}))),Yt=an(({title:e,titleId:t,...n})=>d.createElement("svg",{height:"1em",viewBox:"0 0 10 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?d.createElement("title",{id:t},e):null,d.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"}))),Xt=an(({title:e,titleId:t,...n})=>d.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?d.createElement("title",{id:t},e):null,d.createElement("path",{d:"M10.2852 24.0745L13.7139 18.0742",stroke:"currentColor",strokeWidth:1.5625}),d.createElement("path",{d:"M14.5742 24.0749L17.1457 19.7891",stroke:"currentColor",strokeWidth:1.5625}),d.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}),d.createElement("path",{d:"M4 15L5 13L7 12L5 11L4 9L3 11L1 12L3 13L4 15Z",stroke:"currentColor",strokeWidth:1.5625,strokeLinejoin:"round"}),d.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"}))),Jt=an(({title:e,titleId:t,...n})=>d.createElement("svg",{height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?d.createElement("title",{id:t},e):null,d.createElement("path",{d:"M4.75 9.25H1.25V12.75",stroke:"currentColor",strokeWidth:1,strokeLinecap:"square"}),d.createElement("path",{d:"M11.25 6.75H14.75V3.25",stroke:"currentColor",strokeWidth:1,strokeLinecap:"square"}),d.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}),d.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}))),Zt=an(({title:e,titleId:t,...n})=>d.createElement("svg",{height:"1em",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?d.createElement("title",{id:t},e):null,d.createElement("rect",{x:.6,y:.6,width:11.8,height:11.8,rx:5.9,stroke:"currentColor",strokeWidth:1.2}),d.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}))),en=an(({title:e,titleId:t,...n})=>d.createElement("svg",{height:"1em",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?d.createElement("title",{id:t},e):null,d.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"}))),tn=an(({title:e,titleId:t,...n})=>d.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?d.createElement("title",{id:t},e):null,d.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"}))),nn=an(({title:e,titleId:t,...n})=>d.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?d.createElement("title",{id:t},e):null,d.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}))),rn=an(({title:e,titleId:t,...n})=>d.createElement("svg",{height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?d.createElement("title",{id:t},e):null,d.createElement("rect",{width:16,height:16,rx:2,fill:"currentColor"}))),on=an(({title:e,titleId:t,...n})=>d.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?d.createElement("title",{id:t},e):null,d.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"}))),sn=an(({title:e,titleId:t,...n})=>d.createElement("svg",{height:"1em",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?d.createElement("title",{id:t},e):null,d.createElement("rect",{x:.6,y:.6,width:11.8,height:11.8,rx:5.9,stroke:"currentColor",strokeWidth:1.2}),d.createElement("rect",{x:5.5,y:5.5,width:2,height:2,rx:1,fill:"currentColor"})));function an(e){const t=e.name.replace("Svg","").replaceAll(/([A-Z])/g," $1").trimStart().toLowerCase()+" icon",n=n=>{const r=(0,m.c)(2);let i;return r[0]!==n?(i=(0,h.jsx)(e,{title:t,...n}),r[0]=n,r[1]=i):i=r[1],i};return n.displayName=e.name,n}function ln(...e){return t=>{const n=Object.create(null);for(const r of e)n[r]=t[r];return n}}function un(e){return"__"===e.name.slice(0,2)}function cn(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=cn(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function dn(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=cn(e))&&(r&&(r+=" "),r+=t);return r}const pn=(0,d.forwardRef)((e,t)=>{const n=(0,m.c)(6);let r,i;return n[0]!==e.className?(r=dn("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,h.jsx)("div",{...e,ref:t,className:r}),n[2]=e,n[3]=t,n[4]=r,n[5]=i):i=n[5],i});pn.displayName="Spinner";const fn={};function hn(e,t){"string"!=typeof t&&(t=hn.defaultChars);const n=function(e){let t=fn[e];if(t)return t;t=fn[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),s=parseInt(e.slice(r+10,r+12),16);if(128==(192&n)&&128==(192&i)&&128==(192&s)){let e=o<<18&1835008|n<<12&258048|i<<6&4032|63&s;e<65536||e>1114111?t+="����":(e-=65536,t+=String.fromCharCode(55296+(e>>10),56320+(1023&e))),r+=9;continue}}t+="�"}}return t})}hn.defaultChars=";/?:@&=+$,#",hn.componentChars="";const mn=hn,gn={};function yn(e,t,n){"string"!=typeof t&&(n=t,t=yn.defaultChars),void 0===n&&(n=!0);const r=function(e){let t=gn[e];if(t)return t;t=gn[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 s=e.charCodeAt(t);if(n&&37===s&&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(s<128)i+=r[s];else if(s>=55296&&s<=57343){if(s>=55296&&s<=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}yn.defaultChars=";/?:@&=+$,-_.!~*'()#",yn.componentChars="-_.!~*'()";const vn=yn;function bn(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 En(){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 Tn=/^([a-z0-9.+-]+:)/i,wn=/:[0-9]*$/,kn=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Sn=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),xn=["'"].concat(Sn),Cn=["%","/","?",";","#"].concat(xn),_n=["/","?","#"],Nn=/^[+a-z0-9A-Z_-]{0,63}$/,Dn=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,An={javascript:!0,"javascript:":!0},Ln={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};En.prototype.parse=function(e,t){let n,r,i,o=e;if(o=o.trim(),!t&&1===e.split("#").length){const e=kn.exec(o);if(e)return this.pathname=e[1],e[2]&&(this.search=e[2]),this}let s=Tn.exec(o);if(s&&(s=s[0],n=s.toLowerCase(),this.protocol=s,o=o.substr(s.length)),(t||s||o.match(/^\/\/[^@\/]+@[^@\/]+/))&&(i="//"===o.substr(0,2),!i||s&&An[s]||(o=o.substr(2),this.slashes=!0)),!An[s]&&(i||s&&!Ln[s])){let e,t,n=-1;for(let e=0;e<_n.length;e++)r=o.indexOf(_n[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<Cn.length;e++)r=o.indexOf(Cn[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 s="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!s){const e=this.hostname.split(/\./);for(let t=0,n=e.length;t<n;t++){const n=e[t];if(n&&!n.match(Nn)){let r="";for(let e=0,t=n.length;e<t;e++)n.charCodeAt(e)>127?r+="x":r+=n[e];if(!r.match(Nn)){const r=e.slice(0,t),i=e.slice(t+1),s=n.match(Dn);s&&(r.push(s[1]),i.unshift(s[2])),i.length&&(o=i.join(".")+o),this.hostname=r.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),s&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const a=o.indexOf("#");-1!==a&&(this.hash=o.substr(a),o=o.slice(0,a));const l=o.indexOf("?");return-1!==l&&(this.search=o.substr(l),o=o.slice(0,l)),o&&(this.pathname=o),Ln[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this},En.prototype.parseHost=function(e){let t=wn.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 In=function(e,t){if(e&&e instanceof En)return e;const n=new En;return n.parse(e,t),n},On=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]/,Rn=/[\$\+<->\^`\|~\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]/,Fn=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Pn=/[\0-\x1F\x7F-\x9F]/,Mn=/[\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]/,jn=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,Vn=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୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢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;怳Ādp໩໮uct;戏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ǣጓ\0጖y;䐎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Ā;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀ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Ā;e᜚᜜lƀ;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\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩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ↄⅪ←ٖ↛ǰ↉\0↎proø₞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;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\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\0⹻m;櫳;櫽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))),Kn=new Uint16Array("Ȁaglq\tɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var Un;const Bn=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]]),$n=null!==(Un=String.fromCodePoint)&&void 0!==Un?Un: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 qn,zn,Gn,Qn;function Hn(e){return e>=qn.ZERO&&e<=qn.NINE}function Wn(e){return e>=qn.UPPER_A&&e<=qn.UPPER_F||e>=qn.LOWER_A&&e<=qn.LOWER_F}function Yn(e){return e===qn.EQUALS||function(e){return e>=qn.UPPER_A&&e<=qn.UPPER_Z||e>=qn.LOWER_A&&e<=qn.LOWER_Z||Hn(e)}(e)}!function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"}(qn||(qn={})),function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"}(zn||(zn={})),function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"}(Gn||(Gn={})),function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"}(Qn||(Qn={}));class Xn{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=Gn.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Qn.Strict}startEntity(e){this.decodeMode=e,this.state=Gn.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case Gn.EntityStart:return e.charCodeAt(t)===qn.NUM?(this.state=Gn.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=Gn.NamedEntity,this.stateNamedEntity(e,t));case Gn.NumericStart:return this.stateNumericStart(e,t);case Gn.NumericDecimal:return this.stateNumericDecimal(e,t);case Gn.NumericHex:return this.stateNumericHex(e,t);case Gn.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===qn.LOWER_X?(this.state=Gn.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=Gn.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 r=e.charCodeAt(t);if(!Hn(r)&&!Wn(r))return this.addToNumericResult(e,n,t,16),this.emitNumericEntity(r,3);t+=1}return this.addToNumericResult(e,n,t,16),-1}stateNumericDecimal(e,t){const n=t;for(;t<e.length;){const r=e.charCodeAt(t);if(!Hn(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===qn.SEMI)this.consumed+=1;else if(this.decodeMode===Qn.Strict)return 0;return this.emitCodePoint(function(e){var t;return e>=55296&&e<=57343||e>1114111?65533:null!==(t=Bn.get(e))&&void 0!==t?t:e}(this.result),this.consumed),this.errors&&(e!==qn.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&zn.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){const o=e.charCodeAt(t);if(this.treeIndex=Zn(n,r,this.treeIndex+Math.max(1,i),o),this.treeIndex<0)return 0===this.result||this.decodeMode===Qn.Attribute&&(0===i||Yn(o))?0:this.emitNotTerminatedNamedEntity();if(r=n[this.treeIndex],i=(r&zn.VALUE_LENGTH)>>14,0!==i){if(o===qn.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==Qn.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;const{result:t,decodeTree:n}=this,r=(n[t]&zn.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]&~zn.VALUE_LENGTH:r[e+1],n),3===t&&this.emitCodePoint(r[e+2],n),n}end(){var e;switch(this.state){case Gn.NamedEntity:return 0===this.result||this.decodeMode===Qn.Attribute&&this.result!==this.treeIndex?0:this.emitNotTerminatedNamedEntity();case Gn.NumericDecimal:return this.emitNumericEntity(0,2);case Gn.NumericHex:return this.emitNumericEntity(0,3);case Gn.NumericStart:return null===(e=this.errors)||void 0===e||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Gn.EntityStart:return 0}}}function Jn(e){let t="";const n=new Xn(e,e=>t+=$n(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 s=n.write(e,o+1);if(s<0){i=o+n.end();break}i=o+s,o=0===s?i+1:i}const s=t+e.slice(i);return t="",s}}function Zn(e,t,n,r){const i=(t&zn.BRANCH_LENGTH)>>7,o=t&zn.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 s=n,a=s+i-1;for(;s<=a;){const t=s+a>>>1,n=e[t];if(n<r)s=t+1;else{if(!(n>r))return e[t+i];a=t-1}}return-1}const er=Jn(Vn);function tr(e,t=Qn.Legacy){return er(e,t)}function nr(e){for(let t=1;t<e.length;t++)e[t][0]+=e[t-1][0]+1;return e}Jn(Kn),new Map(nr([[9,"&Tab;"],[0,"&NewLine;"],[22,"&excl;"],[0,"&quot;"],[0,"&num;"],[0,"&dollar;"],[0,"&percnt;"],[0,"&amp;"],[0,"&apos;"],[0,"&lpar;"],[0,"&rpar;"],[0,"&ast;"],[0,"&plus;"],[0,"&comma;"],[1,"&period;"],[0,"&sol;"],[10,"&colon;"],[0,"&semi;"],[0,{v:"&lt;",n:8402,o:"&nvlt;"}],[0,{v:"&equals;",n:8421,o:"&bne;"}],[0,{v:"&gt;",n:8402,o:"&nvgt;"}],[0,"&quest;"],[0,"&commat;"],[26,"&lbrack;"],[0,"&bsol;"],[0,"&rbrack;"],[0,"&Hat;"],[0,"&lowbar;"],[0,"&DiacriticalGrave;"],[5,{n:106,o:"&fjlig;"}],[20,"&lbrace;"],[0,"&verbar;"],[0,"&rbrace;"],[34,"&nbsp;"],[0,"&iexcl;"],[0,"&cent;"],[0,"&pound;"],[0,"&curren;"],[0,"&yen;"],[0,"&brvbar;"],[0,"&sect;"],[0,"&die;"],[0,"&copy;"],[0,"&ordf;"],[0,"&laquo;"],[0,"&not;"],[0,"&shy;"],[0,"&circledR;"],[0,"&macr;"],[0,"&deg;"],[0,"&PlusMinus;"],[0,"&sup2;"],[0,"&sup3;"],[0,"&acute;"],[0,"&micro;"],[0,"&para;"],[0,"&centerdot;"],[0,"&cedil;"],[0,"&sup1;"],[0,"&ordm;"],[0,"&raquo;"],[0,"&frac14;"],[0,"&frac12;"],[0,"&frac34;"],[0,"&iquest;"],[0,"&Agrave;"],[0,"&Aacute;"],[0,"&Acirc;"],[0,"&Atilde;"],[0,"&Auml;"],[0,"&angst;"],[0,"&AElig;"],[0,"&Ccedil;"],[0,"&Egrave;"],[0,"&Eacute;"],[0,"&Ecirc;"],[0,"&Euml;"],[0,"&Igrave;"],[0,"&Iacute;"],[0,"&Icirc;"],[0,"&Iuml;"],[0,"&ETH;"],[0,"&Ntilde;"],[0,"&Ograve;"],[0,"&Oacute;"],[0,"&Ocirc;"],[0,"&Otilde;"],[0,"&Ouml;"],[0,"&times;"],[0,"&Oslash;"],[0,"&Ugrave;"],[0,"&Uacute;"],[0,"&Ucirc;"],[0,"&Uuml;"],[0,"&Yacute;"],[0,"&THORN;"],[0,"&szlig;"],[0,"&agrave;"],[0,"&aacute;"],[0,"&acirc;"],[0,"&atilde;"],[0,"&auml;"],[0,"&aring;"],[0,"&aelig;"],[0,"&ccedil;"],[0,"&egrave;"],[0,"&eacute;"],[0,"&ecirc;"],[0,"&euml;"],[0,"&igrave;"],[0,"&iacute;"],[0,"&icirc;"],[0,"&iuml;"],[0,"&eth;"],[0,"&ntilde;"],[0,"&ograve;"],[0,"&oacute;"],[0,"&ocirc;"],[0,"&otilde;"],[0,"&ouml;"],[0,"&div;"],[0,"&oslash;"],[0,"&ugrave;"],[0,"&uacute;"],[0,"&ucirc;"],[0,"&uuml;"],[0,"&yacute;"],[0,"&thorn;"],[0,"&yuml;"],[0,"&Amacr;"],[0,"&amacr;"],[0,"&Abreve;"],[0,"&abreve;"],[0,"&Aogon;"],[0,"&aogon;"],[0,"&Cacute;"],[0,"&cacute;"],[0,"&Ccirc;"],[0,"&ccirc;"],[0,"&Cdot;"],[0,"&cdot;"],[0,"&Ccaron;"],[0,"&ccaron;"],[0,"&Dcaron;"],[0,"&dcaron;"],[0,"&Dstrok;"],[0,"&dstrok;"],[0,"&Emacr;"],[0,"&emacr;"],[2,"&Edot;"],[0,"&edot;"],[0,"&Eogon;"],[0,"&eogon;"],[0,"&Ecaron;"],[0,"&ecaron;"],[0,"&Gcirc;"],[0,"&gcirc;"],[0,"&Gbreve;"],[0,"&gbreve;"],[0,"&Gdot;"],[0,"&gdot;"],[0,"&Gcedil;"],[1,"&Hcirc;"],[0,"&hcirc;"],[0,"&Hstrok;"],[0,"&hstrok;"],[0,"&Itilde;"],[0,"&itilde;"],[0,"&Imacr;"],[0,"&imacr;"],[2,"&Iogon;"],[0,"&iogon;"],[0,"&Idot;"],[0,"&imath;"],[0,"&IJlig;"],[0,"&ijlig;"],[0,"&Jcirc;"],[0,"&jcirc;"],[0,"&Kcedil;"],[0,"&kcedil;"],[0,"&kgreen;"],[0,"&Lacute;"],[0,"&lacute;"],[0,"&Lcedil;"],[0,"&lcedil;"],[0,"&Lcaron;"],[0,"&lcaron;"],[0,"&Lmidot;"],[0,"&lmidot;"],[0,"&Lstrok;"],[0,"&lstrok;"],[0,"&Nacute;"],[0,"&nacute;"],[0,"&Ncedil;"],[0,"&ncedil;"],[0,"&Ncaron;"],[0,"&ncaron;"],[0,"&napos;"],[0,"&ENG;"],[0,"&eng;"],[0,"&Omacr;"],[0,"&omacr;"],[2,"&Odblac;"],[0,"&odblac;"],[0,"&OElig;"],[0,"&oelig;"],[0,"&Racute;"],[0,"&racute;"],[0,"&Rcedil;"],[0,"&rcedil;"],[0,"&Rcaron;"],[0,"&rcaron;"],[0,"&Sacute;"],[0,"&sacute;"],[0,"&Scirc;"],[0,"&scirc;"],[0,"&Scedil;"],[0,"&scedil;"],[0,"&Scaron;"],[0,"&scaron;"],[0,"&Tcedil;"],[0,"&tcedil;"],[0,"&Tcaron;"],[0,"&tcaron;"],[0,"&Tstrok;"],[0,"&tstrok;"],[0,"&Utilde;"],[0,"&utilde;"],[0,"&Umacr;"],[0,"&umacr;"],[0,"&Ubreve;"],[0,"&ubreve;"],[0,"&Uring;"],[0,"&uring;"],[0,"&Udblac;"],[0,"&udblac;"],[0,"&Uogon;"],[0,"&uogon;"],[0,"&Wcirc;"],[0,"&wcirc;"],[0,"&Ycirc;"],[0,"&ycirc;"],[0,"&Yuml;"],[0,"&Zacute;"],[0,"&zacute;"],[0,"&Zdot;"],[0,"&zdot;"],[0,"&Zcaron;"],[0,"&zcaron;"],[19,"&fnof;"],[34,"&imped;"],[63,"&gacute;"],[65,"&jmath;"],[142,"&circ;"],[0,"&caron;"],[16,"&breve;"],[0,"&DiacriticalDot;"],[0,"&ring;"],[0,"&ogon;"],[0,"&DiacriticalTilde;"],[0,"&dblac;"],[51,"&DownBreve;"],[127,"&Alpha;"],[0,"&Beta;"],[0,"&Gamma;"],[0,"&Delta;"],[0,"&Epsilon;"],[0,"&Zeta;"],[0,"&Eta;"],[0,"&Theta;"],[0,"&Iota;"],[0,"&Kappa;"],[0,"&Lambda;"],[0,"&Mu;"],[0,"&Nu;"],[0,"&Xi;"],[0,"&Omicron;"],[0,"&Pi;"],[0,"&Rho;"],[1,"&Sigma;"],[0,"&Tau;"],[0,"&Upsilon;"],[0,"&Phi;"],[0,"&Chi;"],[0,"&Psi;"],[0,"&ohm;"],[7,"&alpha;"],[0,"&beta;"],[0,"&gamma;"],[0,"&delta;"],[0,"&epsi;"],[0,"&zeta;"],[0,"&eta;"],[0,"&theta;"],[0,"&iota;"],[0,"&kappa;"],[0,"&lambda;"],[0,"&mu;"],[0,"&nu;"],[0,"&xi;"],[0,"&omicron;"],[0,"&pi;"],[0,"&rho;"],[0,"&sigmaf;"],[0,"&sigma;"],[0,"&tau;"],[0,"&upsi;"],[0,"&phi;"],[0,"&chi;"],[0,"&psi;"],[0,"&omega;"],[7,"&thetasym;"],[0,"&Upsi;"],[2,"&phiv;"],[0,"&piv;"],[5,"&Gammad;"],[0,"&digamma;"],[18,"&kappav;"],[0,"&rhov;"],[3,"&epsiv;"],[0,"&backepsilon;"],[10,"&IOcy;"],[0,"&DJcy;"],[0,"&GJcy;"],[0,"&Jukcy;"],[0,"&DScy;"],[0,"&Iukcy;"],[0,"&YIcy;"],[0,"&Jsercy;"],[0,"&LJcy;"],[0,"&NJcy;"],[0,"&TSHcy;"],[0,"&KJcy;"],[1,"&Ubrcy;"],[0,"&DZcy;"],[0,"&Acy;"],[0,"&Bcy;"],[0,"&Vcy;"],[0,"&Gcy;"],[0,"&Dcy;"],[0,"&IEcy;"],[0,"&ZHcy;"],[0,"&Zcy;"],[0,"&Icy;"],[0,"&Jcy;"],[0,"&Kcy;"],[0,"&Lcy;"],[0,"&Mcy;"],[0,"&Ncy;"],[0,"&Ocy;"],[0,"&Pcy;"],[0,"&Rcy;"],[0,"&Scy;"],[0,"&Tcy;"],[0,"&Ucy;"],[0,"&Fcy;"],[0,"&KHcy;"],[0,"&TScy;"],[0,"&CHcy;"],[0,"&SHcy;"],[0,"&SHCHcy;"],[0,"&HARDcy;"],[0,"&Ycy;"],[0,"&SOFTcy;"],[0,"&Ecy;"],[0,"&YUcy;"],[0,"&YAcy;"],[0,"&acy;"],[0,"&bcy;"],[0,"&vcy;"],[0,"&gcy;"],[0,"&dcy;"],[0,"&iecy;"],[0,"&zhcy;"],[0,"&zcy;"],[0,"&icy;"],[0,"&jcy;"],[0,"&kcy;"],[0,"&lcy;"],[0,"&mcy;"],[0,"&ncy;"],[0,"&ocy;"],[0,"&pcy;"],[0,"&rcy;"],[0,"&scy;"],[0,"&tcy;"],[0,"&ucy;"],[0,"&fcy;"],[0,"&khcy;"],[0,"&tscy;"],[0,"&chcy;"],[0,"&shcy;"],[0,"&shchcy;"],[0,"&hardcy;"],[0,"&ycy;"],[0,"&softcy;"],[0,"&ecy;"],[0,"&yucy;"],[0,"&yacy;"],[1,"&iocy;"],[0,"&djcy;"],[0,"&gjcy;"],[0,"&jukcy;"],[0,"&dscy;"],[0,"&iukcy;"],[0,"&yicy;"],[0,"&jsercy;"],[0,"&ljcy;"],[0,"&njcy;"],[0,"&tshcy;"],[0,"&kjcy;"],[1,"&ubrcy;"],[0,"&dzcy;"],[7074,"&ensp;"],[0,"&emsp;"],[0,"&emsp13;"],[0,"&emsp14;"],[1,"&numsp;"],[0,"&puncsp;"],[0,"&ThinSpace;"],[0,"&hairsp;"],[0,"&NegativeMediumSpace;"],[0,"&zwnj;"],[0,"&zwj;"],[0,"&lrm;"],[0,"&rlm;"],[0,"&dash;"],[2,"&ndash;"],[0,"&mdash;"],[0,"&horbar;"],[0,"&Verbar;"],[1,"&lsquo;"],[0,"&CloseCurlyQuote;"],[0,"&lsquor;"],[1,"&ldquo;"],[0,"&CloseCurlyDoubleQuote;"],[0,"&bdquo;"],[1,"&dagger;"],[0,"&Dagger;"],[0,"&bull;"],[2,"&nldr;"],[0,"&hellip;"],[9,"&permil;"],[0,"&pertenk;"],[0,"&prime;"],[0,"&Prime;"],[0,"&tprime;"],[0,"&backprime;"],[3,"&lsaquo;"],[0,"&rsaquo;"],[3,"&oline;"],[2,"&caret;"],[1,"&hybull;"],[0,"&frasl;"],[10,"&bsemi;"],[7,"&qprime;"],[7,{v:"&MediumSpace;",n:8202,o:"&ThickSpace;"}],[0,"&NoBreak;"],[0,"&af;"],[0,"&InvisibleTimes;"],[0,"&ic;"],[72,"&euro;"],[46,"&tdot;"],[0,"&DotDot;"],[37,"&complexes;"],[2,"&incare;"],[4,"&gscr;"],[0,"&hamilt;"],[0,"&Hfr;"],[0,"&Hopf;"],[0,"&planckh;"],[0,"&hbar;"],[0,"&imagline;"],[0,"&Ifr;"],[0,"&lagran;"],[0,"&ell;"],[1,"&naturals;"],[0,"&numero;"],[0,"&copysr;"],[0,"&weierp;"],[0,"&Popf;"],[0,"&Qopf;"],[0,"&realine;"],[0,"&real;"],[0,"&reals;"],[0,"&rx;"],[3,"&trade;"],[1,"&integers;"],[2,"&mho;"],[0,"&zeetrf;"],[0,"&iiota;"],[2,"&bernou;"],[0,"&Cayleys;"],[1,"&escr;"],[0,"&Escr;"],[0,"&Fouriertrf;"],[1,"&Mellintrf;"],[0,"&order;"],[0,"&alefsym;"],[0,"&beth;"],[0,"&gimel;"],[0,"&daleth;"],[12,"&CapitalDifferentialD;"],[0,"&dd;"],[0,"&ee;"],[0,"&ii;"],[10,"&frac13;"],[0,"&frac23;"],[0,"&frac15;"],[0,"&frac25;"],[0,"&frac35;"],[0,"&frac45;"],[0,"&frac16;"],[0,"&frac56;"],[0,"&frac18;"],[0,"&frac38;"],[0,"&frac58;"],[0,"&frac78;"],[49,"&larr;"],[0,"&ShortUpArrow;"],[0,"&rarr;"],[0,"&darr;"],[0,"&harr;"],[0,"&updownarrow;"],[0,"&nwarr;"],[0,"&nearr;"],[0,"&LowerRightArrow;"],[0,"&LowerLeftArrow;"],[0,"&nlarr;"],[0,"&nrarr;"],[1,{v:"&rarrw;",n:824,o:"&nrarrw;"}],[0,"&Larr;"],[0,"&Uarr;"],[0,"&Rarr;"],[0,"&Darr;"],[0,"&larrtl;"],[0,"&rarrtl;"],[0,"&LeftTeeArrow;"],[0,"&mapstoup;"],[0,"&map;"],[0,"&DownTeeArrow;"],[1,"&hookleftarrow;"],[0,"&hookrightarrow;"],[0,"&larrlp;"],[0,"&looparrowright;"],[0,"&harrw;"],[0,"&nharr;"],[1,"&lsh;"],[0,"&rsh;"],[0,"&ldsh;"],[0,"&rdsh;"],[1,"&crarr;"],[0,"&cularr;"],[0,"&curarr;"],[2,"&circlearrowleft;"],[0,"&circlearrowright;"],[0,"&leftharpoonup;"],[0,"&DownLeftVector;"],[0,"&RightUpVector;"],[0,"&LeftUpVector;"],[0,"&rharu;"],[0,"&DownRightVector;"],[0,"&dharr;"],[0,"&dharl;"],[0,"&RightArrowLeftArrow;"],[0,"&udarr;"],[0,"&LeftArrowRightArrow;"],[0,"&leftleftarrows;"],[0,"&upuparrows;"],[0,"&rightrightarrows;"],[0,"&ddarr;"],[0,"&leftrightharpoons;"],[0,"&Equilibrium;"],[0,"&nlArr;"],[0,"&nhArr;"],[0,"&nrArr;"],[0,"&DoubleLeftArrow;"],[0,"&DoubleUpArrow;"],[0,"&DoubleRightArrow;"],[0,"&dArr;"],[0,"&DoubleLeftRightArrow;"],[0,"&DoubleUpDownArrow;"],[0,"&nwArr;"],[0,"&neArr;"],[0,"&seArr;"],[0,"&swArr;"],[0,"&lAarr;"],[0,"&rAarr;"],[1,"&zigrarr;"],[6,"&larrb;"],[0,"&rarrb;"],[15,"&DownArrowUpArrow;"],[7,"&loarr;"],[0,"&roarr;"],[0,"&hoarr;"],[0,"&forall;"],[0,"&comp;"],[0,{v:"&part;",n:824,o:"&npart;"}],[0,"&exist;"],[0,"&nexist;"],[0,"&empty;"],[1,"&Del;"],[0,"&Element;"],[0,"&NotElement;"],[1,"&ni;"],[0,"&notni;"],[2,"&prod;"],[0,"&coprod;"],[0,"&sum;"],[0,"&minus;"],[0,"&MinusPlus;"],[0,"&dotplus;"],[1,"&Backslash;"],[0,"&lowast;"],[0,"&compfn;"],[1,"&radic;"],[2,"&prop;"],[0,"&infin;"],[0,"&angrt;"],[0,{v:"&ang;",n:8402,o:"&nang;"}],[0,"&angmsd;"],[0,"&angsph;"],[0,"&mid;"],[0,"&nmid;"],[0,"&DoubleVerticalBar;"],[0,"&NotDoubleVerticalBar;"],[0,"&and;"],[0,"&or;"],[0,{v:"&cap;",n:65024,o:"&caps;"}],[0,{v:"&cup;",n:65024,o:"&cups;"}],[0,"&int;"],[0,"&Int;"],[0,"&iiint;"],[0,"&conint;"],[0,"&Conint;"],[0,"&Cconint;"],[0,"&cwint;"],[0,"&ClockwiseContourIntegral;"],[0,"&awconint;"],[0,"&there4;"],[0,"&becaus;"],[0,"&ratio;"],[0,"&Colon;"],[0,"&dotminus;"],[1,"&mDDot;"],[0,"&homtht;"],[0,{v:"&sim;",n:8402,o:"&nvsim;"}],[0,{v:"&backsim;",n:817,o:"&race;"}],[0,{v:"&ac;",n:819,o:"&acE;"}],[0,"&acd;"],[0,"&VerticalTilde;"],[0,"&NotTilde;"],[0,{v:"&eqsim;",n:824,o:"&nesim;"}],[0,"&sime;"],[0,"&NotTildeEqual;"],[0,"&cong;"],[0,"&simne;"],[0,"&ncong;"],[0,"&ap;"],[0,"&nap;"],[0,"&ape;"],[0,{v:"&apid;",n:824,o:"&napid;"}],[0,"&backcong;"],[0,{v:"&asympeq;",n:8402,o:"&nvap;"}],[0,{v:"&bump;",n:824,o:"&nbump;"}],[0,{v:"&bumpe;",n:824,o:"&nbumpe;"}],[0,{v:"&doteq;",n:824,o:"&nedot;"}],[0,"&doteqdot;"],[0,"&efDot;"],[0,"&erDot;"],[0,"&Assign;"],[0,"&ecolon;"],[0,"&ecir;"],[0,"&circeq;"],[1,"&wedgeq;"],[0,"&veeeq;"],[1,"&triangleq;"],[2,"&equest;"],[0,"&ne;"],[0,{v:"&Congruent;",n:8421,o:"&bnequiv;"}],[0,"&nequiv;"],[1,{v:"&le;",n:8402,o:"&nvle;"}],[0,{v:"&ge;",n:8402,o:"&nvge;"}],[0,{v:"&lE;",n:824,o:"&nlE;"}],[0,{v:"&gE;",n:824,o:"&ngE;"}],[0,{v:"&lnE;",n:65024,o:"&lvertneqq;"}],[0,{v:"&gnE;",n:65024,o:"&gvertneqq;"}],[0,{v:"&ll;",n:new Map(nr([[824,"&nLtv;"],[7577,"&nLt;"]]))}],[0,{v:"&gg;",n:new Map(nr([[824,"&nGtv;"],[7577,"&nGt;"]]))}],[0,"&between;"],[0,"&NotCupCap;"],[0,"&nless;"],[0,"&ngt;"],[0,"&nle;"],[0,"&nge;"],[0,"&lesssim;"],[0,"&GreaterTilde;"],[0,"&nlsim;"],[0,"&ngsim;"],[0,"&LessGreater;"],[0,"&gl;"],[0,"&NotLessGreater;"],[0,"&NotGreaterLess;"],[0,"&pr;"],[0,"&sc;"],[0,"&prcue;"],[0,"&sccue;"],[0,"&PrecedesTilde;"],[0,{v:"&scsim;",n:824,o:"&NotSucceedsTilde;"}],[0,"&NotPrecedes;"],[0,"&NotSucceeds;"],[0,{v:"&sub;",n:8402,o:"&NotSubset;"}],[0,{v:"&sup;",n:8402,o:"&NotSuperset;"}],[0,"&nsub;"],[0,"&nsup;"],[0,"&sube;"],[0,"&supe;"],[0,"&NotSubsetEqual;"],[0,"&NotSupersetEqual;"],[0,{v:"&subne;",n:65024,o:"&varsubsetneq;"}],[0,{v:"&supne;",n:65024,o:"&varsupsetneq;"}],[1,"&cupdot;"],[0,"&UnionPlus;"],[0,{v:"&sqsub;",n:824,o:"&NotSquareSubset;"}],[0,{v:"&sqsup;",n:824,o:"&NotSquareSuperset;"}],[0,"&sqsube;"],[0,"&sqsupe;"],[0,{v:"&sqcap;",n:65024,o:"&sqcaps;"}],[0,{v:"&sqcup;",n:65024,o:"&sqcups;"}],[0,"&CirclePlus;"],[0,"&CircleMinus;"],[0,"&CircleTimes;"],[0,"&osol;"],[0,"&CircleDot;"],[0,"&circledcirc;"],[0,"&circledast;"],[1,"&circleddash;"],[0,"&boxplus;"],[0,"&boxminus;"],[0,"&boxtimes;"],[0,"&dotsquare;"],[0,"&RightTee;"],[0,"&dashv;"],[0,"&DownTee;"],[0,"&bot;"],[1,"&models;"],[0,"&DoubleRightTee;"],[0,"&Vdash;"],[0,"&Vvdash;"],[0,"&VDash;"],[0,"&nvdash;"],[0,"&nvDash;"],[0,"&nVdash;"],[0,"&nVDash;"],[0,"&prurel;"],[1,"&LeftTriangle;"],[0,"&RightTriangle;"],[0,{v:"&LeftTriangleEqual;",n:8402,o:"&nvltrie;"}],[0,{v:"&RightTriangleEqual;",n:8402,o:"&nvrtrie;"}],[0,"&origof;"],[0,"&imof;"],[0,"&multimap;"],[0,"&hercon;"],[0,"&intcal;"],[0,"&veebar;"],[1,"&barvee;"],[0,"&angrtvb;"],[0,"&lrtri;"],[0,"&bigwedge;"],[0,"&bigvee;"],[0,"&bigcap;"],[0,"&bigcup;"],[0,"&diam;"],[0,"&sdot;"],[0,"&sstarf;"],[0,"&divideontimes;"],[0,"&bowtie;"],[0,"&ltimes;"],[0,"&rtimes;"],[0,"&leftthreetimes;"],[0,"&rightthreetimes;"],[0,"&backsimeq;"],[0,"&curlyvee;"],[0,"&curlywedge;"],[0,"&Sub;"],[0,"&Sup;"],[0,"&Cap;"],[0,"&Cup;"],[0,"&fork;"],[0,"&epar;"],[0,"&lessdot;"],[0,"&gtdot;"],[0,{v:"&Ll;",n:824,o:"&nLl;"}],[0,{v:"&Gg;",n:824,o:"&nGg;"}],[0,{v:"&leg;",n:65024,o:"&lesg;"}],[0,{v:"&gel;",n:65024,o:"&gesl;"}],[2,"&cuepr;"],[0,"&cuesc;"],[0,"&NotPrecedesSlantEqual;"],[0,"&NotSucceedsSlantEqual;"],[0,"&NotSquareSubsetEqual;"],[0,"&NotSquareSupersetEqual;"],[2,"&lnsim;"],[0,"&gnsim;"],[0,"&precnsim;"],[0,"&scnsim;"],[0,"&nltri;"],[0,"&NotRightTriangle;"],[0,"&nltrie;"],[0,"&NotRightTriangleEqual;"],[0,"&vellip;"],[0,"&ctdot;"],[0,"&utdot;"],[0,"&dtdot;"],[0,"&disin;"],[0,"&isinsv;"],[0,"&isins;"],[0,{v:"&isindot;",n:824,o:"&notindot;"}],[0,"&notinvc;"],[0,"&notinvb;"],[1,{v:"&isinE;",n:824,o:"&notinE;"}],[0,"&nisd;"],[0,"&xnis;"],[0,"&nis;"],[0,"&notnivc;"],[0,"&notnivb;"],[6,"&barwed;"],[0,"&Barwed;"],[1,"&lceil;"],[0,"&rceil;"],[0,"&LeftFloor;"],[0,"&rfloor;"],[0,"&drcrop;"],[0,"&dlcrop;"],[0,"&urcrop;"],[0,"&ulcrop;"],[0,"&bnot;"],[1,"&profline;"],[0,"&profsurf;"],[1,"&telrec;"],[0,"&target;"],[5,"&ulcorn;"],[0,"&urcorn;"],[0,"&dlcorn;"],[0,"&drcorn;"],[2,"&frown;"],[0,"&smile;"],[9,"&cylcty;"],[0,"&profalar;"],[7,"&topbot;"],[6,"&ovbar;"],[1,"&solbar;"],[60,"&angzarr;"],[51,"&lmoustache;"],[0,"&rmoustache;"],[2,"&OverBracket;"],[0,"&bbrk;"],[0,"&bbrktbrk;"],[37,"&OverParenthesis;"],[0,"&UnderParenthesis;"],[0,"&OverBrace;"],[0,"&UnderBrace;"],[2,"&trpezium;"],[4,"&elinters;"],[59,"&blank;"],[164,"&circledS;"],[55,"&boxh;"],[1,"&boxv;"],[9,"&boxdr;"],[3,"&boxdl;"],[3,"&boxur;"],[3,"&boxul;"],[3,"&boxvr;"],[7,"&boxvl;"],[7,"&boxhd;"],[7,"&boxhu;"],[7,"&boxvh;"],[19,"&boxH;"],[0,"&boxV;"],[0,"&boxdR;"],[0,"&boxDr;"],[0,"&boxDR;"],[0,"&boxdL;"],[0,"&boxDl;"],[0,"&boxDL;"],[0,"&boxuR;"],[0,"&boxUr;"],[0,"&boxUR;"],[0,"&boxuL;"],[0,"&boxUl;"],[0,"&boxUL;"],[0,"&boxvR;"],[0,"&boxVr;"],[0,"&boxVR;"],[0,"&boxvL;"],[0,"&boxVl;"],[0,"&boxVL;"],[0,"&boxHd;"],[0,"&boxhD;"],[0,"&boxHD;"],[0,"&boxHu;"],[0,"&boxhU;"],[0,"&boxHU;"],[0,"&boxvH;"],[0,"&boxVh;"],[0,"&boxVH;"],[19,"&uhblk;"],[3,"&lhblk;"],[3,"&block;"],[8,"&blk14;"],[0,"&blk12;"],[0,"&blk34;"],[13,"&square;"],[8,"&blacksquare;"],[0,"&EmptyVerySmallSquare;"],[1,"&rect;"],[0,"&marker;"],[2,"&fltns;"],[1,"&bigtriangleup;"],[0,"&blacktriangle;"],[0,"&triangle;"],[2,"&blacktriangleright;"],[0,"&rtri;"],[3,"&bigtriangledown;"],[0,"&blacktriangledown;"],[0,"&dtri;"],[2,"&blacktriangleleft;"],[0,"&ltri;"],[6,"&loz;"],[0,"&cir;"],[32,"&tridot;"],[2,"&bigcirc;"],[8,"&ultri;"],[0,"&urtri;"],[0,"&lltri;"],[0,"&EmptySmallSquare;"],[0,"&FilledSmallSquare;"],[8,"&bigstar;"],[0,"&star;"],[7,"&phone;"],[49,"&female;"],[1,"&male;"],[29,"&spades;"],[2,"&clubs;"],[1,"&hearts;"],[0,"&diamondsuit;"],[3,"&sung;"],[2,"&flat;"],[0,"&natural;"],[0,"&sharp;"],[163,"&check;"],[3,"&cross;"],[8,"&malt;"],[21,"&sext;"],[33,"&VerticalSeparator;"],[25,"&lbbrk;"],[0,"&rbbrk;"],[84,"&bsolhsub;"],[0,"&suphsol;"],[28,"&LeftDoubleBracket;"],[0,"&RightDoubleBracket;"],[0,"&lang;"],[0,"&rang;"],[0,"&Lang;"],[0,"&Rang;"],[0,"&loang;"],[0,"&roang;"],[7,"&longleftarrow;"],[0,"&longrightarrow;"],[0,"&longleftrightarrow;"],[0,"&DoubleLongLeftArrow;"],[0,"&DoubleLongRightArrow;"],[0,"&DoubleLongLeftRightArrow;"],[1,"&longmapsto;"],[2,"&dzigrarr;"],[258,"&nvlArr;"],[0,"&nvrArr;"],[0,"&nvHarr;"],[0,"&Map;"],[6,"&lbarr;"],[0,"&bkarow;"],[0,"&lBarr;"],[0,"&dbkarow;"],[0,"&drbkarow;"],[0,"&DDotrahd;"],[0,"&UpArrowBar;"],[0,"&DownArrowBar;"],[2,"&Rarrtl;"],[2,"&latail;"],[0,"&ratail;"],[0,"&lAtail;"],[0,"&rAtail;"],[0,"&larrfs;"],[0,"&rarrfs;"],[0,"&larrbfs;"],[0,"&rarrbfs;"],[2,"&nwarhk;"],[0,"&nearhk;"],[0,"&hksearow;"],[0,"&hkswarow;"],[0,"&nwnear;"],[0,"&nesear;"],[0,"&seswar;"],[0,"&swnwar;"],[8,{v:"&rarrc;",n:824,o:"&nrarrc;"}],[1,"&cudarrr;"],[0,"&ldca;"],[0,"&rdca;"],[0,"&cudarrl;"],[0,"&larrpl;"],[2,"&curarrm;"],[0,"&cularrp;"],[7,"&rarrpl;"],[2,"&harrcir;"],[0,"&Uarrocir;"],[0,"&lurdshar;"],[0,"&ldrushar;"],[2,"&LeftRightVector;"],[0,"&RightUpDownVector;"],[0,"&DownLeftRightVector;"],[0,"&LeftUpDownVector;"],[0,"&LeftVectorBar;"],[0,"&RightVectorBar;"],[0,"&RightUpVectorBar;"],[0,"&RightDownVectorBar;"],[0,"&DownLeftVectorBar;"],[0,"&DownRightVectorBar;"],[0,"&LeftUpVectorBar;"],[0,"&LeftDownVectorBar;"],[0,"&LeftTeeVector;"],[0,"&RightTeeVector;"],[0,"&RightUpTeeVector;"],[0,"&RightDownTeeVector;"],[0,"&DownLeftTeeVector;"],[0,"&DownRightTeeVector;"],[0,"&LeftUpTeeVector;"],[0,"&LeftDownTeeVector;"],[0,"&lHar;"],[0,"&uHar;"],[0,"&rHar;"],[0,"&dHar;"],[0,"&luruhar;"],[0,"&ldrdhar;"],[0,"&ruluhar;"],[0,"&rdldhar;"],[0,"&lharul;"],[0,"&llhard;"],[0,"&rharul;"],[0,"&lrhard;"],[0,"&udhar;"],[0,"&duhar;"],[0,"&RoundImplies;"],[0,"&erarr;"],[0,"&simrarr;"],[0,"&larrsim;"],[0,"&rarrsim;"],[0,"&rarrap;"],[0,"&ltlarr;"],[1,"&gtrarr;"],[0,"&subrarr;"],[1,"&suplarr;"],[0,"&lfisht;"],[0,"&rfisht;"],[0,"&ufisht;"],[0,"&dfisht;"],[5,"&lopar;"],[0,"&ropar;"],[4,"&lbrke;"],[0,"&rbrke;"],[0,"&lbrkslu;"],[0,"&rbrksld;"],[0,"&lbrksld;"],[0,"&rbrkslu;"],[0,"&langd;"],[0,"&rangd;"],[0,"&lparlt;"],[0,"&rpargt;"],[0,"&gtlPar;"],[0,"&ltrPar;"],[3,"&vzigzag;"],[1,"&vangrt;"],[0,"&angrtvbd;"],[6,"&ange;"],[0,"&range;"],[0,"&dwangle;"],[0,"&uwangle;"],[0,"&angmsdaa;"],[0,"&angmsdab;"],[0,"&angmsdac;"],[0,"&angmsdad;"],[0,"&angmsdae;"],[0,"&angmsdaf;"],[0,"&angmsdag;"],[0,"&angmsdah;"],[0,"&bemptyv;"],[0,"&demptyv;"],[0,"&cemptyv;"],[0,"&raemptyv;"],[0,"&laemptyv;"],[0,"&ohbar;"],[0,"&omid;"],[0,"&opar;"],[1,"&operp;"],[1,"&olcross;"],[0,"&odsold;"],[1,"&olcir;"],[0,"&ofcir;"],[0,"&olt;"],[0,"&ogt;"],[0,"&cirscir;"],[0,"&cirE;"],[0,"&solb;"],[0,"&bsolb;"],[3,"&boxbox;"],[3,"&trisb;"],[0,"&rtriltri;"],[0,{v:"&LeftTriangleBar;",n:824,o:"&NotLeftTriangleBar;"}],[0,{v:"&RightTriangleBar;",n:824,o:"&NotRightTriangleBar;"}],[11,"&iinfin;"],[0,"&infintie;"],[0,"&nvinfin;"],[4,"&eparsl;"],[0,"&smeparsl;"],[0,"&eqvparsl;"],[5,"&blacklozenge;"],[8,"&RuleDelayed;"],[1,"&dsol;"],[9,"&bigodot;"],[0,"&bigoplus;"],[0,"&bigotimes;"],[1,"&biguplus;"],[1,"&bigsqcup;"],[5,"&iiiint;"],[0,"&fpartint;"],[2,"&cirfnint;"],[0,"&awint;"],[0,"&rppolint;"],[0,"&scpolint;"],[0,"&npolint;"],[0,"&pointint;"],[0,"&quatint;"],[0,"&intlarhk;"],[10,"&pluscir;"],[0,"&plusacir;"],[0,"&simplus;"],[0,"&plusdu;"],[0,"&plussim;"],[0,"&plustwo;"],[1,"&mcomma;"],[0,"&minusdu;"],[2,"&loplus;"],[0,"&roplus;"],[0,"&Cross;"],[0,"&timesd;"],[0,"&timesbar;"],[1,"&smashp;"],[0,"&lotimes;"],[0,"&rotimes;"],[0,"&otimesas;"],[0,"&Otimes;"],[0,"&odiv;"],[0,"&triplus;"],[0,"&triminus;"],[0,"&tritime;"],[0,"&intprod;"],[2,"&amalg;"],[0,"&capdot;"],[1,"&ncup;"],[0,"&ncap;"],[0,"&capand;"],[0,"&cupor;"],[0,"&cupcap;"],[0,"&capcup;"],[0,"&cupbrcap;"],[0,"&capbrcup;"],[0,"&cupcup;"],[0,"&capcap;"],[0,"&ccups;"],[0,"&ccaps;"],[2,"&ccupssm;"],[2,"&And;"],[0,"&Or;"],[0,"&andand;"],[0,"&oror;"],[0,"&orslope;"],[0,"&andslope;"],[1,"&andv;"],[0,"&orv;"],[0,"&andd;"],[0,"&ord;"],[1,"&wedbar;"],[6,"&sdote;"],[3,"&simdot;"],[2,{v:"&congdot;",n:824,o:"&ncongdot;"}],[0,"&easter;"],[0,"&apacir;"],[0,{v:"&apE;",n:824,o:"&napE;"}],[0,"&eplus;"],[0,"&pluse;"],[0,"&Esim;"],[0,"&Colone;"],[0,"&Equal;"],[1,"&ddotseq;"],[0,"&equivDD;"],[0,"&ltcir;"],[0,"&gtcir;"],[0,"&ltquest;"],[0,"&gtquest;"],[0,{v:"&leqslant;",n:824,o:"&nleqslant;"}],[0,{v:"&geqslant;",n:824,o:"&ngeqslant;"}],[0,"&lesdot;"],[0,"&gesdot;"],[0,"&lesdoto;"],[0,"&gesdoto;"],[0,"&lesdotor;"],[0,"&gesdotol;"],[0,"&lap;"],[0,"&gap;"],[0,"&lne;"],[0,"&gne;"],[0,"&lnap;"],[0,"&gnap;"],[0,"&lEg;"],[0,"&gEl;"],[0,"&lsime;"],[0,"&gsime;"],[0,"&lsimg;"],[0,"&gsiml;"],[0,"&lgE;"],[0,"&glE;"],[0,"&lesges;"],[0,"&gesles;"],[0,"&els;"],[0,"&egs;"],[0,"&elsdot;"],[0,"&egsdot;"],[0,"&el;"],[0,"&eg;"],[2,"&siml;"],[0,"&simg;"],[0,"&simlE;"],[0,"&simgE;"],[0,{v:"&LessLess;",n:824,o:"&NotNestedLessLess;"}],[0,{v:"&GreaterGreater;",n:824,o:"&NotNestedGreaterGreater;"}],[1,"&glj;"],[0,"&gla;"],[0,"&ltcc;"],[0,"&gtcc;"],[0,"&lescc;"],[0,"&gescc;"],[0,"&smt;"],[0,"&lat;"],[0,{v:"&smte;",n:65024,o:"&smtes;"}],[0,{v:"&late;",n:65024,o:"&lates;"}],[0,"&bumpE;"],[0,{v:"&PrecedesEqual;",n:824,o:"&NotPrecedesEqual;"}],[0,{v:"&sce;",n:824,o:"&NotSucceedsEqual;"}],[2,"&prE;"],[0,"&scE;"],[0,"&precneqq;"],[0,"&scnE;"],[0,"&prap;"],[0,"&scap;"],[0,"&precnapprox;"],[0,"&scnap;"],[0,"&Pr;"],[0,"&Sc;"],[0,"&subdot;"],[0,"&supdot;"],[0,"&subplus;"],[0,"&supplus;"],[0,"&submult;"],[0,"&supmult;"],[0,"&subedot;"],[0,"&supedot;"],[0,{v:"&subE;",n:824,o:"&nsubE;"}],[0,{v:"&supE;",n:824,o:"&nsupE;"}],[0,"&subsim;"],[0,"&supsim;"],[2,{v:"&subnE;",n:65024,o:"&varsubsetneqq;"}],[0,{v:"&supnE;",n:65024,o:"&varsupsetneqq;"}],[2,"&csub;"],[0,"&csup;"],[0,"&csube;"],[0,"&csupe;"],[0,"&subsup;"],[0,"&supsub;"],[0,"&subsub;"],[0,"&supsup;"],[0,"&suphsub;"],[0,"&supdsub;"],[0,"&forkv;"],[0,"&topfork;"],[0,"&mlcp;"],[8,"&Dashv;"],[1,"&Vdashl;"],[0,"&Barv;"],[0,"&vBar;"],[0,"&vBarv;"],[1,"&Vbar;"],[0,"&Not;"],[0,"&bNot;"],[0,"&rnmid;"],[0,"&cirmid;"],[0,"&midcir;"],[0,"&topcir;"],[0,"&nhpar;"],[0,"&parsim;"],[9,{v:"&parsl;",n:8421,o:"&nparsl;"}],[44343,{n:new Map(nr([[56476,"&Ascr;"],[1,"&Cscr;"],[0,"&Dscr;"],[2,"&Gscr;"],[2,"&Jscr;"],[0,"&Kscr;"],[2,"&Nscr;"],[0,"&Oscr;"],[0,"&Pscr;"],[0,"&Qscr;"],[1,"&Sscr;"],[0,"&Tscr;"],[0,"&Uscr;"],[0,"&Vscr;"],[0,"&Wscr;"],[0,"&Xscr;"],[0,"&Yscr;"],[0,"&Zscr;"],[0,"&ascr;"],[0,"&bscr;"],[0,"&cscr;"],[0,"&dscr;"],[1,"&fscr;"],[1,"&hscr;"],[0,"&iscr;"],[0,"&jscr;"],[0,"&kscr;"],[0,"&lscr;"],[0,"&mscr;"],[0,"&nscr;"],[1,"&pscr;"],[0,"&qscr;"],[0,"&rscr;"],[0,"&sscr;"],[0,"&tscr;"],[0,"&uscr;"],[0,"&vscr;"],[0,"&wscr;"],[0,"&xscr;"],[0,"&yscr;"],[0,"&zscr;"],[52,"&Afr;"],[0,"&Bfr;"],[1,"&Dfr;"],[0,"&Efr;"],[0,"&Ffr;"],[0,"&Gfr;"],[2,"&Jfr;"],[0,"&Kfr;"],[0,"&Lfr;"],[0,"&Mfr;"],[0,"&Nfr;"],[0,"&Ofr;"],[0,"&Pfr;"],[0,"&Qfr;"],[1,"&Sfr;"],[0,"&Tfr;"],[0,"&Ufr;"],[0,"&Vfr;"],[0,"&Wfr;"],[0,"&Xfr;"],[0,"&Yfr;"],[1,"&afr;"],[0,"&bfr;"],[0,"&cfr;"],[0,"&dfr;"],[0,"&efr;"],[0,"&ffr;"],[0,"&gfr;"],[0,"&hfr;"],[0,"&ifr;"],[0,"&jfr;"],[0,"&kfr;"],[0,"&lfr;"],[0,"&mfr;"],[0,"&nfr;"],[0,"&ofr;"],[0,"&pfr;"],[0,"&qfr;"],[0,"&rfr;"],[0,"&sfr;"],[0,"&tfr;"],[0,"&ufr;"],[0,"&vfr;"],[0,"&wfr;"],[0,"&xfr;"],[0,"&yfr;"],[0,"&zfr;"],[0,"&Aopf;"],[0,"&Bopf;"],[1,"&Dopf;"],[0,"&Eopf;"],[0,"&Fopf;"],[0,"&Gopf;"],[1,"&Iopf;"],[0,"&Jopf;"],[0,"&Kopf;"],[0,"&Lopf;"],[0,"&Mopf;"],[1,"&Oopf;"],[3,"&Sopf;"],[0,"&Topf;"],[0,"&Uopf;"],[0,"&Vopf;"],[0,"&Wopf;"],[0,"&Xopf;"],[0,"&Yopf;"],[1,"&aopf;"],[0,"&bopf;"],[0,"&copf;"],[0,"&dopf;"],[0,"&eopf;"],[0,"&fopf;"],[0,"&gopf;"],[0,"&hopf;"],[0,"&iopf;"],[0,"&jopf;"],[0,"&kopf;"],[0,"&lopf;"],[0,"&mopf;"],[0,"&nopf;"],[0,"&oopf;"],[0,"&popf;"],[0,"&qopf;"],[0,"&ropf;"],[0,"&sopf;"],[0,"&topf;"],[0,"&uopf;"],[0,"&vopf;"],[0,"&wopf;"],[0,"&xopf;"],[0,"&yopf;"],[0,"&zopf;"]]))}],[8906,"&fflig;"],[0,"&filig;"],[0,"&fllig;"],[0,"&ffilig;"],[0,"&ffllig;"]]));const rr=new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]);function ir(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 or,sr;function ar(e){return"[object String]"===function(e){return Object.prototype.toString.call(e)}(e)}String.prototype.codePointAt,ir(/[&<>'"]/g,rr),ir(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]])),ir(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]])),function(e){e[e.XML=0]="XML",e[e.HTML=1]="HTML"}(or||(or={})),function(e){e[e.UTF8=0]="UTF8",e[e.ASCII=1]="ASCII",e[e.Extensive=2]="Extensive",e[e.Attribute=3]="Attribute",e[e.Text=4]="Text"}(sr||(sr={}));const lr=Object.prototype.hasOwnProperty;function ur(e,t){return lr.call(e,t)}function cr(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 dr(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function pr(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 fr(e){if(e>65535){const t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}const hr=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,mr=new RegExp(hr.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),gr=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function yr(e){return e.indexOf("\\")<0?e:e.replace(hr,"$1")}function vr(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(mr,function(e,t,n){return t||function(e,t){if(35===t.charCodeAt(0)&&gr.test(t)){const n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return pr(n)?fr(n):e}const n=tr(e);return n!==e?n:e}(e,n)})}const br=/[&<>"]/,Er=/[&<>"]/g,Tr={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function wr(e){return Tr[e]}function kr(e){return br.test(e)?e.replace(Er,wr):e}const Sr=/[.?*+^$[\]\\(){}|-]/g;function xr(e){return e.replace(Sr,"\\$&")}function Cr(e){switch(e){case 9:case 32:return!0}return!1}function _r(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 Nr(e){return On.test(e)||Rn.test(e)}function Dr(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 Ar(e){return e=e.trim().replace(/\s+/g," "),"Ṿ"==="ẞ".toLowerCase()&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}const Lr={mdurl:a,ucmicro:l};function Ir(e,t,n){let r,i,o,s;const a=e.posMax,l=e.pos;for(e.pos=t+1,r=1;e.pos<a;){if(o=e.src.charCodeAt(e.pos),93===o&&(r--,0===r)){i=!0;break}if(s=e.pos,e.md.inline.skipToken(e),91===o)if(s===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 Or(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=vr(e.slice(t+1,i)),o.ok=!0,o;92===r&&i+1<n?i+=2:i++}return o}let s=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&&(s++,s>32))return o;if(41===r){if(0===s)break;s--}i++}return t===i||0!==s||(o.str=vr(e.slice(t,i)),o.pos=i,o.ok=!0),o}function Rr(e,t,n,r){let i,o=t;const s={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(r)s.str=r.str,s.marker=r.marker;else{if(o>=n)return s;let r=e.charCodeAt(o);if(34!==r&&39!==r&&40!==r)return s;t++,o++,40===r&&(r=41),s.marker=r}for(;o<n;){if(i=e.charCodeAt(o),i===s.marker)return s.pos=o+1,s.str+=vr(e.slice(t,o)),s.ok=!0,s;if(40===i&&41===s.marker)return s;92===i&&o+1<n&&o++,o++}return s.can_continue=!0,s.str+=vr(e.slice(t,o)),s}const Fr={};function Pr(){this.rules=cr({},Fr)}Fr.code_inline=function(e,t,n,r,i){const o=e[t];return"<code"+i.renderAttrs(o)+">"+kr(o.content)+"</code>"},Fr.code_block=function(e,t,n,r,i){const o=e[t];return"<pre"+i.renderAttrs(o)+"><code>"+kr(e[t].content)+"</code></pre>\n"},Fr.fence=function(e,t,n,r,i){const o=e[t],s=o.info?vr(o.info).trim():"";let a,l="",u="";if(s){const e=s.split(/(\s+)/g);l=e[0],u=e.slice(2).join("")}if(a=n.highlight&&n.highlight(o.content,l,u)||kr(o.content),0===a.indexOf("<pre"))return a+"\n";if(s){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)}>${a}</code></pre>\n`}return`<pre><code${i.renderAttrs(o)}>${a}</code></pre>\n`},Fr.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)},Fr.hardbreak=function(e,t,n){return n.xhtmlOut?"<br />\n":"<br>\n"},Fr.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?"<br />\n":"<br>\n":"\n"},Fr.text=function(e,t){return kr(e[t].content)},Fr.html_block=function(e,t){return e[t].content},Fr.html_inline=function(e,t){return e[t].content},Pr.prototype.renderAttrs=function(e){let t,n,r;if(!e.attrs)return"";for(r="",t=0,n=e.attrs.length;t<n;t++)r+=" "+kr(e.attrs[t][0])+'="'+kr(e.attrs[t][1])+'"';return r},Pr.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},Pr.prototype.renderInline=function(e,t,n){let r="";const i=this.rules;for(let o=0,s=e.length;o<s;o++){const s=e[o].type;void 0!==i[s]?r+=i[s](e,o,t,n,this):r+=this.renderToken(e,o,t)}return r},Pr.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},Pr.prototype.render=function(e,t,n){let r="";const i=this.rules;for(let o=0,s=e.length;o<s;o++){const s=e[o].type;"inline"===s?r+=this.renderInline(e[o].children,t,n):void 0!==i[s]?r+=i[s](e,o,t,n,this):r+=this.renderToken(e,o,t,n)}return r};const Mr=Pr;function jr(){this.__rules__=[],this.__cache__=null}jr.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1},jr.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))})})},jr.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},jr.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},jr.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},jr.prototype.push=function(e,t,n){const r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null},jr.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},jr.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(e){e.enabled=!1}),this.enable(e,t)},jr.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},jr.prototype.getRules=function(e){return null===this.__cache__&&this.__compile__(),this.__cache__[e]||[]};const Vr=jr;function Kr(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}Kr.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},Kr.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},Kr.prototype.attrSet=function(e,t){const n=this.attrIndex(e),r=[e,t];n<0?this.attrPush(r):this.attrs[n]=r},Kr.prototype.attrGet=function(e){const t=this.attrIndex(e);let n=null;return t>=0&&(n=this.attrs[t][1]),n},Kr.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 Ur=Kr;function Br(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}Br.prototype.Token=Ur;const $r=Br,qr=/\r\n?|\n/g,zr=/\0/g;function Gr(e){return/^<a[>\s]/i.test(e)}function Qr(e){return/^<\/a\s*>/i.test(e)}const Hr=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,Wr=/\((c|tm|r)\)/i,Yr=/\((c|tm|r)\)/gi,Xr={c:"©",r:"®",tm:"™"};function Jr(e,t){return Xr[t.toLowerCase()]}function Zr(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(Yr,Jr)),"link_open"===r.type&&"auto"===r.info&&t--,"link_close"===r.type&&"auto"===r.info&&t++}}function ei(e){let t=0;for(let n=e.length-1;n>=0;n--){const r=e[n];"text"!==r.type||t||Hr.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 ti=/['"]/,ni=/['"]/g;function ri(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}function ii(e,t){let n;const r=[];for(let i=0;i<e.length;i++){const o=e[i],s=e[i].level;for(n=r.length-1;n>=0&&!(r[n].level<=s);n--);if(r.length=n+1,"text"!==o.type)continue;let a=o.content,l=0,u=a.length;e:for(;l<u;){ni.lastIndex=l;const c=ni.exec(a);if(!c)break;let d=!0,p=!0;l=c.index+1;const f="'"===c[0];let h=32;if(c.index-1>=0)h=a.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=a.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=Dr(h)||Nr(String.fromCharCode(h)),y=Dr(m)||Nr(String.fromCharCode(m)),v=_r(h),b=_r(m);if(b?d=!1:y&&(v||g||(d=!1)),v?p=!1:g&&(b||y||(p=!1)),34===m&&'"'===c[0]&&h>=48&&h<=57&&(p=d=!1),d&&p&&(d=g,p=y),d||p){if(p)for(n=r.length-1;n>=0;n--){let d=r[n];if(r[n].level<s)break;if(d.single===f&&r[n].level===s){let s,p;d=r[n],f?(s=t.md.options.quotes[2],p=t.md.options.quotes[3]):(s=t.md.options.quotes[0],p=t.md.options.quotes[1]),o.content=ri(o.content,c.index,p),e[d.token].content=ri(e[d.token].content,d.pos,s),l+=p.length-1,d.token===i&&(l+=s.length-1),a=o.content,u=a.length,r.length=n;continue e}}d?r.push({token:i,pos:c.index,single:f,level:s}):p&&f&&(o.content=ri(o.content,c.index,"’"))}else f&&(o.content=ri(o.content,c.index,"’"))}}}const oi=[["normalize",function(e){let t;t=e.src.replace(qr,"\n"),t=t.replace(zr,"�"),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;if(e.md.options.linkify)for(let n=0,r=t.length;n<r;n++){if("inline"!==t[n].type||!e.md.linkify.pretest(t[n].content))continue;let r=t[n].children,i=0;for(let o=r.length-1;o>=0;o--){const s=r[o];if("link_close"!==s.type){if("html_inline"===s.type&&(Gr(s.content)&&i>0&&i--,Qr(s.content)&&i++),!(i>0)&&"text"===s.type&&e.md.linkify.test(s.content)){const i=s.content;let a=e.md.linkify.match(i);const l=[];let u=s.level,c=0;a.length>0&&0===a[0].index&&o>0&&"text_special"===r[o-1].type&&(a=a.slice(1));for(let t=0;t<a.length;t++){const n=a[t].url,r=e.md.normalizeLink(n);if(!e.md.validateLink(r))continue;let o=a[t].text;o=a[t].schema?"mailto:"!==a[t].schema||/^mailto:/i.test(o)?e.md.normalizeLinkText(o):e.md.normalizeLinkText("mailto:"+o).replace(/^mailto:/,""):e.md.normalizeLinkText("http://"+o).replace(/^http:\/\//,"");const s=a[t].index;if(s>c){const t=new e.Token("text","",0);t.content=i.slice(c,s),t.level=u,l.push(t)}const d=new e.Token("link_open","a",1);d.attrs=[["href",r]],d.level=u++,d.markup="linkify",d.info="auto",l.push(d);const p=new e.Token("text","",0);p.content=o,p.level=u,l.push(p);const f=new e.Token("link_close","a",-1);f.level=--u,f.markup="linkify",f.info="auto",l.push(f),c=a[t].lastIndex}if(c<i.length){const t=new e.Token("text","",0);t.content=i.slice(c),t.level=u,l.push(t)}t[n].children=r=dr(r,o,l)}}else for(o--;r[o].level!==s.level&&"link_open"!==r[o].type;)o--}}}],["replacements",function(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&(Wr.test(e.tokens[t].content)&&Zr(e.tokens[t].children),Hr.test(e.tokens[t].content)&&ei(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&&ti.test(e.tokens[t].content)&&ii(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 si(){this.ruler=new Vr;for(let e=0;e<oi.length;e++)this.ruler.push(oi[e][0],oi[e][1])}si.prototype.process=function(e){const t=this.ruler.getRules("");for(let n=0,r=t.length;n<r;n++)t[n](e)},si.prototype.State=$r;const ai=si;function li(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,s=!1;t<o;t++){const a=i.charCodeAt(t);if(!s){if(Cr(a)){n++,9===a?r+=4-r%4:r++;continue}s=!0}10!==a&&t!==o-1||(10!==a&&t++,this.bMarks.push(e),this.eMarks.push(t),this.tShift.push(n),this.sCount.push(r),this.bsCount.push(0),s=!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}li.prototype.push=function(e,t,n){const r=new Ur(e,t,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r},li.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},li.prototype.skipEmptyLines=function(e){for(let t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},li.prototype.skipSpaces=function(e){for(let t=this.src.length;e<t&&Cr(this.src.charCodeAt(e));e++);return e},li.prototype.skipSpacesBack=function(e,t){if(e<=t)return e;for(;e>t;)if(!Cr(this.src.charCodeAt(--e)))return e+1;return e},li.prototype.skipChars=function(e,t){for(let n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e},li.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},li.prototype.getLines=function(e,t,n,r){if(e>=t)return"";const i=new Array(t-e);for(let o=0,s=e;s<t;s++,o++){let e=0;const a=this.bMarks[s];let l,u=a;for(l=s+1<t||r?this.eMarks[s]+1:this.eMarks[s];u<l&&e<n;){const t=this.src.charCodeAt(u);if(Cr(t))9===t?e+=4-(e+this.bsCount[s])%4:e++;else{if(!(u-a<this.tShift[s]))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("")},li.prototype.Token=Ur;const ui=li;function ci(e,t){const n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.slice(n,r)}function di(e){const t=[],n=e.length;let r=0,i=e.charCodeAt(r),o=!1,s=0,a="";for(;r<n;)124===i&&(o?(a+=e.substring(s,r-1),s=r):(t.push(a+e.substring(s,r)),a="",s=r+1)),o=92===i,r++,i=e.charCodeAt(r);return t.push(a+e.substring(s)),t}function pi(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&&!Cr(e.src.charCodeAt(r))?-1:r}function fi(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),!Cr(o))?-1:i}const hi="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",mi="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",gi=new RegExp("^(?:"+hi+"|"+mi+"|\x3c!---?>|\x3c!--(?:[^-]|-[^-]|--[^>])*--\x3e|<[?][\\s\\S]*?[?]>|<![A-Za-z][^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"),yi=new RegExp("^(?:"+hi+"|"+mi+")"),vi=[[/^<(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(yi.source+"\\s*$"),/^$/,!1]],bi=[["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 s=e.src.charCodeAt(o++);if(124!==s&&45!==s&&58!==s)return!1;if(o>=e.eMarks[i])return!1;const a=e.src.charCodeAt(o++);if(124!==a&&45!==a&&58!==a&&!Cr(a))return!1;if(45===s&&Cr(a))return!1;for(;o<e.eMarks[i];){const t=e.src.charCodeAt(o);if(124!==t&&45!==t&&58!==t&&!Cr(t))return!1;o++}let l=ci(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=ci(e,t).trim(),-1===l.indexOf("|"))return!1;if(e.sCount[t]-e.blkIndent>=4)return!1;u=di(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 p=e.parentType;e.parentType="table";const f=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=f.length;t<o;t++)if(f[t](e,i,n,!0)){r=!0;break}if(r)break;if(l=ci(e,i).trim(),!l)break;if(e.sCount[i]-e.blkIndent>=4)break;if(u=di(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=p,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 s=e.src.charCodeAt(i);if(126!==s&&96!==s)return!1;let a=i;i=e.skipChars(i,s);let l=i-a;if(l<3)return!1;const u=e.src.slice(a,i),c=e.src.slice(i,o);if(96===s&&c.indexOf(String.fromCharCode(s))>=0)return!1;if(r)return!0;let d=t,p=!1;for(;!(d++,d>=n||(i=a=e.bMarks[d]+e.tShift[d],o=e.eMarks[d],i<o&&e.sCount[d]<e.blkIndent));)if(e.src.charCodeAt(i)===s&&!(e.sCount[d]-e.blkIndent>=4||(i=e.skipChars(i,s),i-a<l||(i=e.skipSpaces(i),i<o)))){p=!0;break}l=e.sCount[t],e.line=d+(p?1:0);const f=e.push("fence","code",0);return f.info=c,f.content=e.getLines(t+1,d,l,!0),f.markup=u,f.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 s=e.lineMax;if(e.sCount[t]-e.blkIndent>=4)return!1;if(62!==e.src.charCodeAt(i))return!1;if(r)return!0;const a=[],l=[],u=[],c=[],d=e.md.block.ruler.getRules("blockquote"),p=e.parentType;e.parentType="blockquote";let f,h=!1;for(f=t;f<n;f++){const t=e.sCount[f]<e.blkIndent;if(i=e.bMarks[f]+e.tShift[f],o=e.eMarks[f],i>=o)break;if(62===e.src.charCodeAt(i++)&&!t){let t,n,r=e.sCount[f]+1;32===e.src.charCodeAt(i)?(i++,r++,n=!1,t=!0):9===e.src.charCodeAt(i)?(t=!0,(e.bsCount[f]+r)%4==3?(i++,r++,n=!1):n=!0):t=!1;let s=r;for(a.push(e.bMarks[f]),e.bMarks[f]=i;i<o;){const t=e.src.charCodeAt(i);if(!Cr(t))break;9===t?s+=4-(s+e.bsCount[f]+(n?1:0))%4:s++,i++}h=i>=o,l.push(e.bsCount[f]),e.bsCount[f]=e.sCount[f]+1+(t?1:0),u.push(e.sCount[f]),e.sCount[f]=s-r,c.push(e.tShift[f]),e.tShift[f]=i-e.bMarks[f];continue}if(h)break;let r=!1;for(let t=0,i=d.length;t<i;t++)if(d[t](e,f,n,!0)){r=!0;break}if(r){e.lineMax=f,0!==e.blkIndent&&(a.push(e.bMarks[f]),l.push(e.bsCount[f]),c.push(e.tShift[f]),u.push(e.sCount[f]),e.sCount[f]-=e.blkIndent);break}a.push(e.bMarks[f]),l.push(e.bsCount[f]),c.push(e.tShift[f]),u.push(e.sCount[f]),e.sCount[f]=-1}const m=e.blkIndent;e.blkIndent=0;const g=e.push("blockquote_open","blockquote",1);g.markup=">";const y=[t,0];g.map=y,e.md.block.tokenize(e,t,f),e.push("blockquote_close","blockquote",-1).markup=">",e.lineMax=s,e.parentType=p,y[1]=e.line;for(let n=0;n<c.length;n++)e.bMarks[n+t]=a[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 s=e.src.charCodeAt(o++);if(42!==s&&45!==s&&95!==s)return!1;let a=1;for(;o<i;){const t=e.src.charCodeAt(o++);if(t!==s&&!Cr(t))return!1;t===s&&a++}if(a<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(a+1).join(String.fromCharCode(s)),!0},["paragraph","reference","blockquote","list"]],["list",function(e,t,n,r){let i,o,s,a,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,p,f=!1;if(r&&"paragraph"===e.parentType&&e.sCount[l]>=e.blkIndent&&(f=!0),(p=fi(e,l))>=0){if(c=!0,s=e.bMarks[l]+e.tShift[l],d=Number(e.src.slice(s,p-1)),f&&1!==d)return!1}else{if(!((p=pi(e,l))>=0))return!1;c=!1}if(f&&e.skipSpaces(p)>=e.eMarks[l])return!1;if(r)return!0;const h=e.src.charCodeAt(p-1),m=e.tokens.length;c?(a=e.push("ordered_list_open","ol",1),1!==d&&(a.attrs=[["start",d]])):a=e.push("bullet_list_open","ul",1);const g=[l,0];a.map=g,a.markup=String.fromCharCode(h);let y=!1;const v=e.md.block.ruler.getRules("list"),b=e.parentType;for(e.parentType="list";l<n;){o=p,i=e.eMarks[l];const t=e.sCount[l]+p-(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 f;f=d>=i?1:r-t,f>4&&(f=1);const m=t+f;a=e.push("list_item_open","li",1),a.markup=String.fromCharCode(h);const g=[l,0];a.map=g,c&&(a.info=e.src.slice(s,p-1));const b=e.tight,E=e.tShift[l],T=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&&!y||(u=!1),y=e.line-l>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=w,e.tShift[l]=E,e.sCount[l]=T,e.tight=b,a=e.push("list_item_close","li",-1),a.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=v.length;t<r;t++)if(v[t](e,l,n,!0)){k=!0;break}if(k)break;if(c){if(p=fi(e,l),p<0)break;s=e.bMarks[l]+e.tShift[l]}else if(p=pi(e,l),p<0)break;if(h!==e.src.charCodeAt(p-1))break}return a=c?e.push("ordered_list_close","ol",-1):e.push("bullet_list_close","ul",-1),a.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],s=t+1;if(e.sCount[t]-e.blkIndent>=4)return!1;if(91!==e.src.charCodeAt(i))return!1;function a(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,s=r.length;i<s;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=a(s);null!==e&&(l+=e,o=l.length,s++)}else if(92===e&&(i++,i<o&&10===l.charCodeAt(i))){const e=a(s);null!==e&&(l+=e,o=l.length,s++)}}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=a(s);null!==e&&(l+=e,o=l.length,s++)}else if(!Cr(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 p=i,f=s,h=i;for(;i<o;i++){const e=l.charCodeAt(i);if(10===e){const e=a(s);null!==e&&(l+=e,o=l.length,s++)}else if(!Cr(e))break}let m,g=e.md.helpers.parseLinkTitle(l,i,o);for(;g.can_continue;){const t=a(s);if(null===t)break;l+=t,i=o,o=l.length,s++,g=e.md.helpers.parseLinkTitle(l,i,o,g)}for(i<o&&h!==i&&g.ok?(m=g.str,i=g.pos):(m="",i=p,s=f);i<o&&Cr(l.charCodeAt(i));)i++;if(i<o&&10!==l.charCodeAt(i)&&m)for(m="",i=p,s=f;i<o&&Cr(l.charCodeAt(i));)i++;if(i<o&&10!==l.charCodeAt(i))return!1;const y=Ar(l.slice(1,u));return!!y&&(r||(void 0===e.env.references&&(e.env.references={}),void 0===e.env.references[y]&&(e.env.references[y]={title:m,href:d}),e.line=s),!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 s=e.src.slice(i,o),a=0;for(;a<vi.length&&!vi[a][0].test(s);a++);if(a===vi.length)return!1;if(r)return vi[a][2];let l=t+1;if(!vi[a][1].test(s))for(;l<n&&!(e.sCount[l]<e.blkIndent);l++)if(i=e.bMarks[l]+e.tShift[l],o=e.eMarks[l],s=e.src.slice(i,o),vi[a][1].test(s)){0!==s.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 s=e.src.charCodeAt(i);if(35!==s||i>=o)return!1;let a=1;for(s=e.src.charCodeAt(++i);35===s&&i<o&&a<=6;)a++,s=e.src.charCodeAt(++i);if(a>6||i<o&&!Cr(s))return!1;if(r)return!0;o=e.skipSpacesBack(o,i);const l=e.skipCharsBack(o,35,i);l>i&&Cr(e.src.charCodeAt(l-1))&&(o=l),e.line=t+1;const u=e.push("heading_open","h"+String(a),1);u.markup="########".slice(0,a),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(a),-1).markup="########".slice(0,a),!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,s=0,a=t+1;for(;a<n&&!e.isEmpty(a);a++){if(e.sCount[a]-e.blkIndent>3)continue;if(e.sCount[a]>=e.blkIndent){let t=e.bMarks[a]+e.tShift[a];const n=e.eMarks[a];if(t<n&&(o=e.src.charCodeAt(t),(45===o||61===o)&&(t=e.skipChars(t,o),t=e.skipSpaces(t),t>=n))){s=61===o?1:2;break}}if(e.sCount[a]<0)continue;let t=!1;for(let i=0,o=r.length;i<o;i++)if(r[i](e,a,n,!0)){t=!0;break}if(t)break}if(!s)return!1;const l=e.getLines(t,a,e.blkIndent,!1).trim();e.line=a+1;const u=e.push("heading_open","h"+String(s),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(s),-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,s=r.length;i<s;i++)if(r[i](e,o,n,!0)){t=!0;break}if(t)break}const s=e.getLines(t,o,e.blkIndent,!1).trim();e.line=o,e.push("paragraph_open","p",1).map=[t,e.line];const a=e.push("inline","",0);return a.content=s,a.map=[t,e.line],a.children=[],e.push("paragraph_close","p",-1),e.parentType=i,!0}]];function Ei(){this.ruler=new Vr;for(let e=0;e<bi.length;e++)this.ruler.push(bi[e][0],bi[e][1],{alt:(bi[e][2]||[]).slice()})}Ei.prototype.tokenize=function(e,t,n){const r=this.ruler.getRules(""),i=r.length,o=e.md.options.maxNesting;let s=t,a=!1;for(;s<n&&(e.line=s=e.skipEmptyLines(s),!(s>=n))&&!(e.sCount[s]<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,s,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=!a,e.isEmpty(e.line-1)&&(a=!0),s=e.line,s<n&&e.isEmpty(s)&&(a=!0,s++,e.line=s)}},Ei.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)},Ei.prototype.State=ui;const Ti=Ei;function wi(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}wi.prototype.pushPending=function(){const e=new Ur("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},wi.prototype.push=function(e,t,n){this.pending&&this.pushPending();const r=new Ur(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},wi.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 s=o-e,a=o<n?this.src.charCodeAt(o):32,l=Dr(i)||Nr(String.fromCharCode(i)),u=Dr(a)||Nr(String.fromCharCode(a)),c=_r(i),d=_r(a),p=!d&&(!u||c||l),f=!c&&(!l||d||u);return{can_open:p&&(t||!f||l),can_close:f&&(t||!p||u),length:s}},wi.prototype.Token=Ur;const ki=wi;function Si(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 xi=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i,Ci=[];for(let e=0;e<256;e++)Ci.push(0);function _i(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 s=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[s.token],n.type="s_close",n.tag="s",n.nesting=-1,n.markup="~~",n.content="","text"===e.tokens[s.token-1].type&&"~"===e.tokens[s.token-1].content&&r.push(s.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){Ci[e.charCodeAt(0)]=1});const Ni={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 s=String.fromCharCode(r);if(o<2)return!1;let a;o%2&&(a=e.push("text","",0),a.content=s,o--);for(let t=0;t<o;t+=2)a=e.push("text","",0),a.content=s+s,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;_i(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&_i(e,t[r].delimiters)}};function Di(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,s=String.fromCharCode(r.marker),a=e.tokens[r.token];a.type=o?"strong_open":"em_open",a.tag=o?"strong":"em",a.nesting=1,a.markup=o?s+s:s,a.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?s+s:s,l.content="",o&&(e.tokens[t[n-1].token].content="",e.tokens[t[r.end+1].token].content="",n--)}}const Ai={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;Di(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&Di(e,t[r].delimiters)}},Li=/^([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])?)*)$/,Ii=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/,Oi=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,Ri=/^&([a-z][a-z0-9]{1,31});/i;function Fi(e){const t={},n=e.length;if(!n)return;let r=0,i=-2;const o=[];for(let s=0;s<n;s++){const n=e[s];if(o.push(0),e[r].marker===n.marker&&i===n.token-1||(r=s),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 a=t[n.marker][(n.open?3:0)+n.length%3];let l=r-o[r]-1,u=l;for(;l>a;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[s]=s-l+r,o[l]=r,n.open=!1,t.end=s,t.close=!1,u=-1,i=-2;break}}}-1!==u&&(t[n.marker][(n.open?3:0)+(n.length||0)%3]=u)}}const Pi=[["text",function(e,t){let n=e.pos;for(;n<e.posMax&&!Si(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(xi);if(!r)return!1;const i=r[1],o=e.md.linkify.matchAtStart(e.src.slice(n-i.length));if(!o)return!1;let s=o.url;if(s.length<=i.length)return!1;let a=s.length;for(;a>0&&42===s.charCodeAt(a-1);)a--;a!==s.length&&(s=s.slice(0,a));const l=e.md.normalizeLink(s);if(!e.md.validateLink(l))return!1;if(!t){e.pending=e.pending.slice(0,-i.length);const t=e.push("link_open","a",1);t.attrs=[["href",l]],t.markup="linkify",t.info="auto",e.push("text","",0).content=e.md.normalizeLinkText(s);const n=e.push("link_close","a",-1);n.markup="linkify",n.info="auto"}return e.pos+=s.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&&Cr(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),Cr(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 s="\\"+o;if(!t){const t=e.push("text_special","",0);i<256&&0!==Ci[i]?t.content=o:t.content=s,t.markup=s,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),s=o.length;if(e.backticksScanned&&(e.backticks[s]||0)<=r)return t||(e.pending+=o),e.pos+=s,!0;let a,l=n;for(;-1!==(a=e.src.indexOf("`",l));){for(l=a+1;l<i&&96===e.src.charCodeAt(l);)l++;const r=l-a;if(r===s){if(!t){const t=e.push("code_inline","code",0);t.markup=o,t.content=e.src.slice(n,a).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=l,!0}e.backticks[r]=a}return e.backticksScanned=!0,t||(e.pending+=o),e.pos+=s,!0}],["strikethrough",Ni.tokenize],["emphasis",Ai.tokenize],["link",function(e,t){let n,r,i,o,s="",a="",l=e.pos,u=!0;if(91!==e.src.charCodeAt(e.pos))return!1;const c=e.pos,d=e.posMax,p=e.pos+1,f=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(f<0)return!1;let h=f+1;if(h<d&&40===e.src.charCodeAt(h)){for(u=!1,h++;h<d&&(n=e.src.charCodeAt(h),Cr(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(s=e.md.normalizeLink(i.str),e.md.validateLink(s)?h=i.pos:s="",l=h;h<d&&(n=e.src.charCodeAt(h),Cr(n)||10===n);h++);if(i=e.md.helpers.parseLinkTitle(e.src,h,e.posMax),h<d&&l!==h&&i.ok)for(a=i.str,h=i.pos;h<d&&(n=e.src.charCodeAt(h),Cr(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=f+1):h=f+1,r||(r=e.src.slice(p,f)),o=e.env.references[Ar(r)],!o)return e.pos=c,!1;s=o.href,a=o.title}if(!t){e.pos=p,e.posMax=f;const t=[["href",s]];e.push("link_open","a",1).attrs=t,a&&t.push(["title",a]),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,s,a,l,u,c="";const d=e.pos,p=e.posMax;if(33!==e.src.charCodeAt(e.pos))return!1;if(91!==e.src.charCodeAt(e.pos+1))return!1;const f=e.pos+2,h=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(h<0)return!1;if(o=h+1,o<p&&40===e.src.charCodeAt(o)){for(o++;o<p&&(n=e.src.charCodeAt(o),Cr(n)||10===n);o++);if(o>=p)return!1;for(u=o,a=e.md.helpers.parseLinkDestination(e.src,o,e.posMax),a.ok&&(c=e.md.normalizeLink(a.str),e.md.validateLink(c)?o=a.pos:c=""),u=o;o<p&&(n=e.src.charCodeAt(o),Cr(n)||10===n);o++);if(a=e.md.helpers.parseLinkTitle(e.src,o,e.posMax),o<p&&u!==o&&a.ok)for(l=a.str,o=a.pos;o<p&&(n=e.src.charCodeAt(o),Cr(n)||10===n);o++);else l="";if(o>=p||41!==e.src.charCodeAt(o))return e.pos=d,!1;o++}else{if(void 0===e.env.references)return!1;if(o<p&&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(f,h)),s=e.env.references[Ar(i)],!s)return e.pos=d,!1;c=s.href,l=s.title}if(!t){r=e.src.slice(f,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=p,!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(Ii.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(Li.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(gi);if(!o)return!1;if(!t){const t=e.push("html_inline","",0);t.content=o[0],s=t.content,/^<a[>\s]/i.test(s)&&e.linkLevel++,function(e){return/^<\/a\s*>/i.test(e)}(t.content)&&e.linkLevel--}var s;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(Oi);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=pr(t)?fr(t):fr(65533),n.markup=r[0],n.info="entity"}return e.pos+=r[0].length,!0}}else{const r=e.src.slice(n).match(Ri);if(r){const n=tr(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}]],Mi=[["balance_pairs",function(e){const t=e.tokens_meta,n=e.tokens_meta.length;Fi(e.delimiters);for(let e=0;e<n;e++)t[e]&&t[e].delimiters&&Fi(t[e].delimiters)}],["strikethrough",Ni.postProcess],["emphasis",Ai.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 ji(){this.ruler=new Vr;for(let e=0;e<Pi.length;e++)this.ruler.push(Pi[e][0],Pi[e][1]);this.ruler2=new Vr;for(let e=0;e<Mi.length;e++)this.ruler2.push(Mi[e][0],Mi[e][1])}ji.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 s=!1;if(e.level<i){for(let i=0;i<r;i++)if(e.level++,s=n[i](e,!0),e.level--,s){if(t>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;s||e.pos++,o[t]=e.pos},ji.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 s=!1;if(e.level<i)for(let r=0;r<n;r++)if(s=t[r](e,!1),s){if(o>=e.pos)throw new Error("inline rule didn't increment state.pos");break}if(s){if(e.pos>=r)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},ji.prototype.parse=function(e,t,n,r){const i=new this.State(e,t,n,r);this.tokenize(i);const o=this.ruler2.getRules(""),s=o.length;for(let e=0;e<s;e++)o[e](i)},ji.prototype.State=ki;const Vi=ji;function Ki(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){t&&Object.keys(t).forEach(function(n){e[n]=t[n]})}),e}function Ui(e){return Object.prototype.toString.call(e)}function Bi(e){return"[object Function]"===Ui(e)}function $i(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const qi={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1},zi={"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}}},Gi="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function Qi(e){const t=e.re=function(e){const t={};e=e||{},t.src_Any=Fn.source,t.src_Cc=Pn.source,t.src_Z=jn.source,t.src_P=On.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]"===Ui(n))return"[object RegExp]"!==Ui(n.validate)?Bi(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(Bi(n.normalize)?r.normalize=n.normalize:n.normalize?o(t,n):r.normalize=function(e,t){t.normalize(e)});!function(e){return"[object String]"===Ui(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 s=Object.keys(e.__compiled__).filter(function(t){return t.length>0&&e.__compiled__[t]}).map($i).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+s+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+s+")","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 Hi(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 Wi(e,t){const n=new Hi(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function Yi(e,t){if(!(this instanceof Yi))return new Yi(e,t);var n;t||(n=e,Object.keys(n||{}).reduce(function(e,t){return e||qi.hasOwnProperty(t)},!1)&&(t=e,e={})),this.__opts__=Ki({},qi,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=Ki({},zi,e),this.__compiled__={},this.__tlds__=Gi,this.__tlds_replaced__=!1,this.re={},Qi(this)}Yi.prototype.add=function(e,t){return this.__schemas__[e]=t,Qi(this),this},Yi.prototype.set=function(e){return this.__opts__=Ki(this.__opts__,e),this},Yi.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;let t,n,r,i,o,s,a,l,u;if(this.re.schema_test.test(e))for(a=this.re.schema_search,a.lastIndex=0;null!==(t=a.exec(e));)if(i=this.testSchemaAt(e,t[2],a.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,s=r.index+r[0].length,(this.__index__<0||o<this.__index__||o===this.__index__&&s>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=s))),this.__index__>=0},Yi.prototype.pretest=function(e){return this.re.pretest.test(e)},Yi.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},Yi.prototype.match=function(e){const t=[];let n=0;this.__index__>=0&&this.__text_cache__===e&&(t.push(Wi(this,n)),n=this.__last_index__);let r=n?e.slice(n):e;for(;this.test(r);)t.push(Wi(this,n)),r=r.slice(this.__last_index__),n+=this.__last_index__;return t.length?t:null},Yi.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,Wi(this,0)):null},Yi.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(),Qi(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,Qi(this),this)},Yi.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},Yi.prototype.onCompile=function(){};const Xi=Yi,Ji=2147483647,Zi=36,eo=/^xn--/,to=/[^\0-\x7F]/,no=/[\x2E\u3002\uFF0E\uFF61]/g,ro={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},io=Math.floor,oo=String.fromCharCode;function so(e){throw new RangeError(ro[e])}function ao(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(no,".")).split("."),t).join(".");return r+i}function lo(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 uo=function(e){return e>=48&&e<58?e-48+26:e>=65&&e<91?e-65:e>=97&&e<123?e-97:Zi},co=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},po=function(e,t,n){let r=0;for(e=n?io(e/700):e>>1,e+=io(e/t);e>455;r+=Zi)e=io(e/35);return io(r+36*e/(e+38))},fo=function(e){const t=[],n=e.length;let r=0,i=128,o=72,s=e.lastIndexOf("-");s<0&&(s=0);for(let n=0;n<s;++n)e.charCodeAt(n)>=128&&so("not-basic"),t.push(e.charCodeAt(n));for(let a=s>0?s+1:0;a<n;){const s=r;for(let t=1,i=Zi;;i+=Zi){a>=n&&so("invalid-input");const s=uo(e.charCodeAt(a++));s>=Zi&&so("invalid-input"),s>io((Ji-r)/t)&&so("overflow"),r+=s*t;const l=i<=o?1:i>=o+26?26:i-o;if(s<l)break;const u=Zi-l;t>io(Ji/u)&&so("overflow"),t*=u}const l=t.length+1;o=po(r-s,l,0==s),io(r/l)>Ji-i&&so("overflow"),i+=io(r/l),r%=l,t.splice(r++,0,i)}return String.fromCodePoint(...t)},ho=function(e){const t=[],n=(e=lo(e)).length;let r=128,i=0,o=72;for(const n of e)n<128&&t.push(oo(n));const s=t.length;let a=s;for(s&&t.push("-");a<n;){let n=Ji;for(const t of e)t>=r&&t<n&&(n=t);const l=a+1;n-r>io((Ji-i)/l)&&so("overflow"),i+=(n-r)*l,r=n;for(const n of e)if(n<r&&++i>Ji&&so("overflow"),n===r){let e=i;for(let n=Zi;;n+=Zi){const r=n<=o?1:n>=o+26?26:n-o;if(e<r)break;const i=e-r,s=Zi-r;t.push(oo(co(r+i%s,0))),e=io(i/s)}t.push(oo(co(e,0))),o=po(i,l,a===s),i=0,++a}++i,++r}return t.join("")},mo=function(e){return ao(e,function(e){return to.test(e)?"xn--"+ho(e):e})},go=function(e){return ao(e,function(e){return eo.test(e)?fo(e.slice(4).toLowerCase()):e})},yo={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"]}}}},vo=/^(vbscript|javascript|file|data):/,bo=/^data:image\/(gif|png|jpeg|webp);/;function Eo(e){const t=e.trim().toLowerCase();return!vo.test(t)||bo.test(t)}const To=["http:","https:","mailto:"];function wo(e){const t=In(e,!0);if(t.hostname&&(!t.protocol||To.indexOf(t.protocol)>=0))try{t.hostname=mo(t.hostname)}catch(e){}return vn(bn(t))}function ko(e){const t=In(e,!0);if(t.hostname&&(!t.protocol||To.indexOf(t.protocol)>=0))try{t.hostname=go(t.hostname)}catch(e){}return mn(bn(t),mn.defaultChars+"%")}function So(e,t){if(!(this instanceof So))return new So(e,t);t||ar(e)||(t=e||{},e="default"),this.inline=new Vi,this.block=new Ti,this.core=new ai,this.renderer=new Mr,this.linkify=new Xi,this.validateLink=Eo,this.normalizeLink=wo,this.normalizeLinkText=ko,this.utils=u,this.helpers=cr({},c),this.options={},this.configure(e),t&&this.set(t)}So.prototype.set=function(e){return cr(this.options,e),this},So.prototype.configure=function(e){const t=this;if(ar(e)){const t=e;if(!(e=yo[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},So.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},So.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},So.prototype.use=function(e){const t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},So.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},So.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},So.prototype.parseInline=function(e,t){const n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},So.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};const xo=new So({breaks:!1,linkify:!0}),Co=(0,d.forwardRef)((e,t)=>{const n=(0,m.c)(18);let r,i,o,s;n[0]!==e?(({children:r,onlyShowFirstChild:i,type:s,...o}=e),n[0]=e,n[1]=r,n[2]=i,n[3]=o,n[4]=s):(r=n[1],i=n[2],o=n[3],s=n[4]);const a=`graphiql-markdown-${s}`,l=i&&"graphiql-markdown-preview";let u,c,d,p;return n[5]!==o.className||n[6]!==a||n[7]!==l?(u=dn(a,l,o.className),n[5]=o.className,n[6]=a,n[7]=l,n[8]=u):u=n[8],n[9]!==r?(c=xo.render(r),n[9]=r,n[10]=c):c=n[10],n[11]!==c?(d={__html:c},n[11]=c,n[12]=d):d=n[12],n[13]!==o||n[14]!==t||n[15]!==u||n[16]!==d?(p=(0,h.jsx)("div",{...o,ref:t,className:u,dangerouslySetInnerHTML:d}),n[13]=o,n[14]=t,n[15]=u,n[16]=d,n[17]=p):p=n[17],p});Co.displayName="MarkdownContent";const _o=(0,d.forwardRef)((e,t)=>{const n=(0,m.c)(6);let r,i;return n[0]!==e.className?(r=dn("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,h.jsx)("button",{...e,ref:t,className:r}),n[2]=e,n[3]=t,n[4]=r,n[5]=i):i=n[5],i});_o.displayName="UnStyledButton";const No=(0,d.forwardRef)((e,t)=>{const n=(0,m.c)(7);let r,i;return n[0]!==e.className||n[1]!==e.state?(r=dn("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,h.jsx)("button",{...e,ref:t,className:r}),n[3]=e,n[4]=t,n[5]=r,n[6]=i):i=n[6],i});No.displayName="Button";var Do=s(39709);const Ao=e=>{const t=(0,m.c)(12),{field:n}=e;if(!("defaultValue"in n)||void 0===n.defaultValue)return null;const r=n.defaultValue,i=n.type;let o,s,a,l,u,c;if(t[0]!==n.defaultValue||t[1]!==n.type){l=Symbol.for("react.early_return_sentinel");{const e=(0,Do.astFromValue)(r,i);e?(a=" = ",o="graphiql-doc-explorer-default-value",s=(e=>e?(0,J.print)(e):"")(e)):l=null}t[0]=n.defaultValue,t[1]=n.type,t[2]=o,t[3]=s,t[4]=a,t[5]=l}else o=t[2],s=t[3],a=t[4],l=t[5];return l!==Symbol.for("react.early_return_sentinel")?l:(t[6]!==o||t[7]!==s?(u=(0,h.jsx)("span",{className:o,children:s}),t[6]=o,t[7]=s,t[8]=u):u=t[8],t[9]!==a||t[10]!==u?(c=(0,h.jsxs)(h.Fragment,{children:[a,u]}),t[9]=a,t[10]=u,t[11]=c):c=t[11],c)};function Lo(e,t){return(0,g.isNonNullType)(e)?(0,h.jsxs)(h.Fragment,{children:[Lo(e.ofType,t),"!"]}):(0,g.isListType)(e)?(0,h.jsxs)(h.Fragment,{children:["[",Lo(e.ofType,t),"]"]}):t(e)}const Io=e=>{const t=(0,m.c)(5),{type:n}=e,{push:r}=qp();let i,o;return t[0]!==r?(i=e=>(0,h.jsx)("a",{className:"graphiql-doc-explorer-type-name",onClick:t=>{t.preventDefault(),r({name:e.name,def:e})},href:"#",children:e.name}),t[0]=r,t[1]=i):i=t[1],t[2]!==i||t[3]!==n?(o=Lo(n,i),t[2]=i,t[3]=n,t[4]=o):o=t[4],o},Oo=e=>{const t=(0,m.c)(19),{arg:n,showDefaultValue:r,inline:i}=e;let o,s,a,l;t[0]!==n.name?(o=(0,h.jsx)("span",{className:"graphiql-doc-explorer-argument-name",children:n.name}),t[0]=n.name,t[1]=o):o=t[1],t[2]!==n.type?(s=(0,h.jsx)(Io,{type:n.type}),t[2]=n.type,t[3]=s):s=t[3],t[4]!==n||t[5]!==r?(a=!1!==r&&(0,h.jsx)(Ao,{field:n}),t[4]=n,t[5]=r,t[6]=a):a=t[6],t[7]!==o||t[8]!==s||t[9]!==a?(l=(0,h.jsxs)("span",{children:[o,": ",s,a]}),t[7]=o,t[8]=s,t[9]=a,t[10]=l):l=t[10];const u=l;if(i)return u;let c,d,p;return t[11]!==n.description?(c=n.description?(0,h.jsx)(Co,{type:"description",children:n.description}):null,t[11]=n.description,t[12]=c):c=t[12],t[13]!==n.deprecationReason?(d=n.deprecationReason?(0,h.jsxs)("div",{className:"graphiql-doc-explorer-argument-deprecation",children:[(0,h.jsx)("div",{className:"graphiql-doc-explorer-argument-deprecation-label",children:"Deprecated"}),(0,h.jsx)(Co,{type:"deprecation",children:n.deprecationReason})]}):null,t[13]=n.deprecationReason,t[14]=d):d=t[14],t[15]!==u||t[16]!==c||t[17]!==d?(p=(0,h.jsxs)("div",{className:"graphiql-doc-explorer-argument",children:[u,c,d]}),t[15]=u,t[16]=c,t[17]=d,t[18]=p):p=t[18],p},Ro=e=>{const t=(0,m.c)(3);let n;return t[0]!==e.children||t[1]!==e.preview?(n=e.children?(0,h.jsxs)("div",{className:"graphiql-doc-explorer-deprecation",children:[(0,h.jsx)("div",{className:"graphiql-doc-explorer-deprecation-label",children:"Deprecated"}),(0,h.jsx)(Co,{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},Fo=e=>{const t=(0,m.c)(2),{directive:n}=e;let r;return t[0]!==n.name.value?(r=(0,h.jsxs)("span",{className:"graphiql-doc-explorer-directive",children:["@",n.name.value]}),t[0]=n.name.value,t[1]=r):r=t[1],r},Po=e=>{const t=(0,m.c)(10),{title:n,children:r}=e,i=Mo[n];let o,s,a,l;return t[0]!==i?(o=(0,h.jsx)(i,{}),t[0]=i,t[1]=o):o=t[1],t[2]!==o||t[3]!==n?(s=(0,h.jsxs)("div",{className:"graphiql-doc-explorer-section-title",children:[o,n]}),t[2]=o,t[3]=n,t[4]=s):s=t[4],t[5]!==r?(a=(0,h.jsx)("div",{className:"graphiql-doc-explorer-section-content",children:r}),t[5]=r,t[6]=a):a=t[6],t[7]!==s||t[8]!==a?(l=(0,h.jsxs)("div",{children:[s,a]}),t[7]=s,t[8]=a,t[9]=l):l=t[9],l},Mo={Arguments:Dt,"Deprecated Arguments":Ft,"Deprecated Enum Values":Pt,"Deprecated Fields":Mt,Directives:jt,"Enum Values":Ut,Fields:Bt,Implements:qt,Implementations:sn,"Possible Types":sn,"Root Types":Zt,Type:sn,"All Schema Types":sn},jo=e=>{const t=(0,m.c)(15),{field:n}=e;let r,i,o,s,a,l;return t[0]!==n.description?(r=n.description?(0,h.jsx)(Co,{type:"description",children:n.description}):null,t[0]=n.description,t[1]=r):r=t[1],t[2]!==n.deprecationReason?(i=(0,h.jsx)(Ro,{preview:!1,children:n.deprecationReason}),t[2]=n.deprecationReason,t[3]=i):i=t[3],t[4]!==n.type?(o=(0,h.jsx)(Po,{title:"Type",children:(0,h.jsx)(Io,{type:n.type})}),t[4]=n.type,t[5]=o):o=t[5],t[6]!==n?(s=(0,h.jsx)(Vo,{field:n}),a=(0,h.jsx)(Ko,{field:n}),t[6]=n,t[7]=s,t[8]=a):(s=t[7],a=t[8]),t[9]!==r||t[10]!==i||t[11]!==o||t[12]!==s||t[13]!==a?(l=(0,h.jsxs)(h.Fragment,{children:[r,i,o,s,a]}),t[9]=r,t[10]=i,t[11]=o,t[12]=s,t[13]=a,t[14]=l):l=t[14],l},Vo=e=>{const t=(0,m.c)(12),{field:n}=e,[r,i]=(0,d.useState)(!1);let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=()=>{i(!0)},t[0]=o):o=t[0];const s=o;if(!("args"in n))return null;let a,l,u,c,p;if(t[1]!==n.args){a=[],l=[];for(const e of n.args)e.deprecationReason?l.push(e):a.push(e);u=a.length>0?(0,h.jsx)(Po,{title:"Arguments",children:a.map(Uo)}):null,t[1]=n.args,t[2]=a,t[3]=l,t[4]=u}else a=t[2],l=t[3],u=t[4];return t[5]!==a.length||t[6]!==l||t[7]!==r?(c=l.length>0?r||0===a.length?(0,h.jsx)(Po,{title:"Deprecated Arguments",children:l.map(Bo)}):(0,h.jsx)(No,{type:"button",onClick:s,children:"Show Deprecated Arguments"}):null,t[5]=a.length,t[6]=l,t[7]=r,t[8]=c):c=t[8],t[9]!==u||t[10]!==c?(p=(0,h.jsxs)(h.Fragment,{children:[u,c]}),t[9]=u,t[10]=c,t[11]=p):p=t[11],p},Ko=e=>{var t;const n=(0,m.c)(4),{field:r}=e,i=null==(t=r.astNode)?void 0:t.directives;if(!(null==i?void 0:i.length))return null;let o,s;return n[0]!==i?(o=i.map($o),n[0]=i,n[1]=o):o=n[1],n[2]!==o?(s=(0,h.jsx)(Po,{title:"Directives",children:o}),n[2]=o,n[3]=s):s=n[3],s};function Uo(e){return(0,h.jsx)(Oo,{arg:e},e.name)}function Bo(e){return(0,h.jsx)(Oo,{arg:e},e.name)}function $o(e){return(0,h.jsx)("div",{children:(0,h.jsx)(Fo,{directive:e})},e.name.value)}const qo=e=>{const t=(0,m.c)(43),{schema:n}=e;let r;t[0]!==n?(r=n.getQueryType(),t[0]=n,t[1]=r):r=t[1];const i=r;let o;t[2]!==n?(o=n.getMutationType(),t[2]=n,t[3]=o):o=t[3];const s=o;let a;t[4]!==n?(a=n.getSubscriptionType(),t[4]=n,t[5]=a):a=t[5];const l=a;let u,c,d,p,f,g,y,v;if(t[6]!==s||t[7]!==i||t[8]!==n||t[9]!==l){const e=n.getTypeMap(),r=null==i?void 0:i.name,o=null==s?void 0:s.name,a=null==l?void 0:l.name;let m;t[15]!==a||t[16]!==r||t[17]!==o?(m=[r,o,a],t[15]=a,t[16]=r,t[17]=o,t[18]=m):m=t[18];const g=m,y=n.description||"A GraphQL schema provides a root type for each kind of operation.";let v,b,E,T;t[19]!==y?(p=(0,h.jsx)(Co,{type:"description",children:y}),t[19]=y,t[20]=p):p=t[20],t[21]!==i?(v=i?(0,h.jsxs)("div",{children:[(0,h.jsx)("span",{className:"graphiql-doc-explorer-root-type",children:"query"}),": ",(0,h.jsx)(Io,{type:i})]}):null,t[21]=i,t[22]=v):v=t[22],t[23]!==s?(b=s&&(0,h.jsxs)("div",{children:[(0,h.jsx)("span",{className:"graphiql-doc-explorer-root-type",children:"mutation"}),": ",(0,h.jsx)(Io,{type:s})]}),t[23]=s,t[24]=b):b=t[24],t[25]!==l?(E=l&&(0,h.jsxs)("div",{children:[(0,h.jsx)("span",{className:"graphiql-doc-explorer-root-type",children:"subscription"}),": ",(0,h.jsx)(Io,{type:l})]}),t[25]=l,t[26]=E):E=t[26],t[27]!==v||t[28]!==b||t[29]!==E?(f=(0,h.jsxs)(Po,{title:"Root Types",children:[v,b,E]}),t[27]=v,t[28]=b,t[29]=E,t[30]=f):f=t[30],u=Po,d="All Schema Types",t[31]!==g?(T=e=>g.includes(e.name)||e.name.startsWith("__")?null:(0,h.jsx)("div",{children:(0,h.jsx)(Io,{type:e})},e.name),t[31]=g,t[32]=T):T=t[32],c=Object.values(e).map(T),t[6]=s,t[7]=i,t[8]=n,t[9]=l,t[10]=u,t[11]=c,t[12]=d,t[13]=p,t[14]=f}else u=t[10],c=t[11],d=t[12],p=t[13],f=t[14];return t[33]!==c?(g=(0,h.jsx)("div",{children:c}),t[33]=c,t[34]=g):g=t[34],t[35]!==u||t[36]!==d||t[37]!==g?(y=(0,h.jsx)(u,{title:d,children:g}),t[35]=u,t[36]=d,t[37]=g,t[38]=y):y=t[38],t[39]!==p||t[40]!==f||t[41]!==y?(v=(0,h.jsxs)(h.Fragment,{children:[p,f,y]}),t[39]=p,t[40]=f,t[41]=y,t[42]=v):v=t[42],v},zo="undefined"!=typeof document?d.useLayoutEffect:()=>{};var Go;const Qo=null!==(Go=d.useInsertionEffect)&&void 0!==Go?Go:zo;const Ho=e=>{var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document},Wo=e=>e&&"window"in e&&e.window===e?e:Ho(e).defaultView||window;"undefined"!=typeof Element&&Element.prototype;const Yo=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"];function Xo(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function Jo(e){let t=(0,d.useRef)({isFocused:!1,observer:null});zo(()=>{const e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}},[]);let n=function(e){const t=(0,d.useRef)(null);return Qo(()=>{t.current=e},[e]),(0,d.useCallback)((...e)=>{const n=t.current;return null==n?void 0:n(...e)},[])}(t=>{null==e||e(t)});return(0,d.useCallback)(e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=!0;let r=e.target,i=e=>{if(t.current.isFocused=!1,r.disabled){let t=Xo(e);n(t)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};r.addEventListener("focusout",i,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&r.disabled){var e;null===(e=t.current.observer)||void 0===e||e.disconnect();let n=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent("blur",{relatedTarget:n})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:n}))}}),t.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]})}},[n])}Yo.join(":not([hidden]),"),Yo.push('[tabindex]:not([tabindex="-1"]):not([disabled])'),Yo.join(':not([hidden]):not([tabindex="-1"]),');function Zo(e){var t;if("undefined"==typeof window||null==window.navigator)return!1;let n=null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands;return Array.isArray(n)&&n.some(t=>e.test(t.brand))||e.test(window.navigator.userAgent)}function es(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function ts(e){let t=null;return()=>(null==t&&(t=e()),t)}const ns=ts(function(){return es(/^Mac/i)}),rs=ts(function(){return es(/^iPhone/i)}),is=ts(function(){return es(/^iPad/i)||ns()&&navigator.maxTouchPoints>1}),os=ts(function(){return rs()||is()}),ss=(ts(function(){return ns()||os()}),ts(function(){return Zo(/AppleWebKit/i)&&!ss()}),ts(function(){return Zo(/Chrome/i)})),as=ts(function(){return Zo(/Android/i)});ts(function(){return Zo(/Firefox/i)});String(Math.round(1e10*Math.random()));Boolean("undefined"!=typeof window&&window.document&&window.document.createElement);new WeakMap;d.useId;let ls=null,us=new Set,cs=new Map,ds=!1,ps=!1;const fs={Tab:!0,Escape:!0};function hs(e,t){for(let n of us)n(e,t)}function ms(e){ds=!0,function(e){return!(e.metaKey||!ns()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&(ls="keyboard",hs("keyboard",e))}function gs(e){ls="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(ds=!0,hs("pointer",e))}function ys(e){var t;(""===(t=e).pointerType&&t.isTrusted||(as()&&t.pointerType?"click"===t.type&&1===t.buttons:0===t.detail&&!t.pointerType))&&(ds=!0,ls="virtual")}function vs(e){e.target!==window&&e.target!==document&&e.isTrusted&&(ds||ps||(ls="virtual",hs("virtual",e)),ds=!1,ps=!1)}function bs(){ds=!1,ps=!0}function Es(e){if("undefined"==typeof window||"undefined"==typeof document||cs.get(Wo(e)))return;const t=Wo(e),n=Ho(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){ds=!0,r.apply(this,arguments)},n.addEventListener("keydown",ms,!0),n.addEventListener("keyup",ms,!0),n.addEventListener("click",ys,!0),t.addEventListener("focus",vs,!0),t.addEventListener("blur",bs,!1),"undefined"!=typeof PointerEvent&&(n.addEventListener("pointerdown",gs,!0),n.addEventListener("pointermove",gs,!0),n.addEventListener("pointerup",gs,!0)),t.addEventListener("beforeunload",()=>{Ts(e)},{once:!0}),cs.set(t,{focus:r})}const Ts=(e,t)=>{const n=Wo(e),r=Ho(e);t&&r.removeEventListener("DOMContentLoaded",t),cs.has(n)&&(n.HTMLElement.prototype.focus=cs.get(n).focus,r.removeEventListener("keydown",ms,!0),r.removeEventListener("keyup",ms,!0),r.removeEventListener("click",ys,!0),n.removeEventListener("focus",vs,!0),n.removeEventListener("blur",bs,!1),"undefined"!=typeof PointerEvent&&(r.removeEventListener("pointerdown",gs,!0),r.removeEventListener("pointermove",gs,!0),r.removeEventListener("pointerup",gs,!0)),cs.delete(n))};function ws(){return"pointer"!==ls}"undefined"!=typeof document&&function(e){const t=Ho(e);let n;"loading"!==t.readyState?Es(e):(n=()=>{Es(e)},t.addEventListener("DOMContentLoaded",n))}();const ks=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Ss(e,t){return!(!t||!e)&&e.contains(t)}const xs=(e=document)=>e.activeElement;function Cs(e){return e.target}function _s(){let e=(0,d.useRef)(new Map),t=(0,d.useCallback)((t,n,r,i)=>{let o=(null==i?void 0:i.once)?(...t)=>{e.current.delete(r),r(...t)}:r;e.current.set(r,{type:n,eventTarget:t,fn:o,options:i}),t.addEventListener(n,o,i)},[]),n=(0,d.useCallback)((t,n,r,i)=>{var o;let s=(null===(o=e.current.get(r))||void 0===o?void 0:o.fn)||r;t.removeEventListener(n,s,i),e.current.delete(r)},[]),r=(0,d.useCallback)(()=>{e.current.forEach((e,t)=>{n(e.eventTarget,e.type,t,e.options)})},[n]);return(0,d.useEffect)(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function Ns(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,o=(0,d.useRef)({isFocusWithin:!1}),{addGlobalListener:s,removeAllGlobalListeners:a}=_s(),l=(0,d.useCallback)(e=>{e.currentTarget.contains(e.target)&&o.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(o.current.isFocusWithin=!1,a(),n&&n(e),i&&i(!1))},[n,i,o,a]),u=Jo(l),c=(0,d.useCallback)(e=>{if(!e.currentTarget.contains(e.target))return;const t=Ho(e.target),n=xs(t);if(!o.current.isFocusWithin&&n===Cs(e.nativeEvent)){r&&r(e),i&&i(!0),o.current.isFocusWithin=!0,u(e);let n=e.currentTarget;s(t,"focus",e=>{if(o.current.isFocusWithin&&!Ss(n,e.target)){let r=new t.defaultView.FocusEvent("blur",{relatedTarget:e.target});!function(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}(r,n);let i=Xo(r);l(i)}},{capture:!0})}},[r,i,u,s,l]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:c,onBlur:l}}}function Ds(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=(0,d.useRef)({isFocused:!1,isFocusVisible:t||ws()}),[o,s]=(0,d.useState)(!1),[a,l]=(0,d.useState)(()=>i.current.isFocused&&i.current.isFocusVisible),u=(0,d.useCallback)(()=>l(i.current.isFocused&&i.current.isFocusVisible),[]),c=(0,d.useCallback)(e=>{i.current.isFocused=e,s(e),u()},[u]);var p,f,h;p=e=>{i.current.isFocusVisible=e,u()},f=[],h={isTextInput:n},Es(),(0,d.useEffect)(()=>{let e=(e,t)=>{(function(e,t,n){let r=Ho(null==n?void 0:n.target);const i="undefined"!=typeof window?Wo(null==n?void 0:n.target).HTMLInputElement:HTMLInputElement,o="undefined"!=typeof window?Wo(null==n?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,s="undefined"!=typeof window?Wo(null==n?void 0:n.target).HTMLElement:HTMLElement,a="undefined"!=typeof window?Wo(null==n?void 0:n.target).KeyboardEvent:KeyboardEvent;return!((e=e||r.activeElement instanceof i&&!ks.has(r.activeElement.type)||r.activeElement instanceof o||r.activeElement instanceof s&&r.activeElement.isContentEditable)&&"keyboard"===t&&n instanceof a&&!fs[n.key])})(!!(null==h?void 0:h.isTextInput),e,t)&&p(ws())};return us.add(e),()=>{us.delete(e)}},f);let{focusProps:m}=function(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const o=(0,d.useCallback)(e=>{if(e.target===e.currentTarget)return r&&r(e),i&&i(!1),!0},[r,i]),s=Jo(o),a=(0,d.useCallback)(e=>{const t=Ho(e.target),r=t?xs(t):xs();e.target===e.currentTarget&&r===Cs(e.nativeEvent)&&(n&&n(e),i&&i(!0),s(e))},[i,n,s]);return{focusProps:{onFocus:!t&&(n||i||r)?a:void 0,onBlur:t||!r&&!i?void 0:o}}}({isDisabled:r,onFocusChange:c}),{focusWithinProps:g}=Ns({isDisabled:!r,onFocusWithinChange:c});return{isFocused:o,isFocusVisible:a,focusProps:r?g:m}}let As=!1,Ls=0;function Is(e){"touch"===e.pointerType&&(As=!0,setTimeout(()=>{As=!1},50))}function Os(){if("undefined"!=typeof document)return 0===Ls&&"undefined"!=typeof PointerEvent&&document.addEventListener("pointerup",Is),Ls++,()=>{Ls--,Ls>0||"undefined"!=typeof PointerEvent&&document.removeEventListener("pointerup",Is)}}function Rs(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[o,s]=(0,d.useState)(!1),a=(0,d.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,d.useEffect)(Os,[]);let{addGlobalListener:l,removeAllGlobalListeners:u}=_s(),{hoverProps:c,triggerHoverEnd:p}=(0,d.useMemo)(()=>{let e=(e,t)=>{let i=a.target;a.pointerType="",a.target=null,"touch"!==t&&a.isHovered&&i&&(a.isHovered=!1,u(),r&&r({type:"hoverend",target:i,pointerType:t}),n&&n(!1),s(!1))},o={};return"undefined"!=typeof PointerEvent&&(o.onPointerEnter=r=>{As&&"mouse"===r.pointerType||((r,o)=>{if(a.pointerType=o,i||"touch"===o||a.isHovered||!r.currentTarget.contains(r.target))return;a.isHovered=!0;let u=r.currentTarget;a.target=u,l(Ho(r.target),"pointerover",t=>{a.isHovered&&a.target&&!Ss(a.target,t.target)&&e(0,t.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:u,pointerType:o}),n&&n(!0),s(!0)})(r,r.pointerType)},o.onPointerLeave=t=>{!i&&t.currentTarget.contains(t.target)&&e(0,t.pointerType)}),{hoverProps:o,triggerHoverEnd:e}},[t,n,r,i,a,l,u]);return(0,d.useEffect)(()=>{i&&p({currentTarget:a.target},a.pointerType)},[i]),{hoverProps:c,isHovered:o}}var Fs=s(43144);function Ps(e,t,n){let r,i=n.initialDeps??[];function o(){var o,s,a,l;let u;n.key&&(null==(o=n.debug)?void 0:o.call(n))&&(u=Date.now());const c=e(),d=c.length!==i.length||c.some((e,t)=>i[t]!==e);if(!d)return r;let p;if(i=c,n.key&&(null==(s=n.debug)?void 0:s.call(n))&&(p=Date.now()),r=t(...c),n.key&&(null==(a=n.debug)?void 0:a.call(n))){const e=Math.round(100*(Date.now()-u))/100,t=Math.round(100*(Date.now()-p))/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}return o.updateDeps=e=>{i=e},o}function Ms(e,t){if(void 0===e)throw new Error("Unexpected undefined"+(t?`: ${t}`:""));return e}const js=(e,t,n)=>{let r;return function(...i){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,i),n)}},Vs=e=>{const{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},Ks=e=>e,Us=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},Bs=(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(Vs(n)),!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(Vs(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(r):r()});return o.observe(n,{box:"border-box"}),()=>{o.unobserve(n)}},$s={passive:!0},qs="undefined"==typeof window||"onscrollend"in window,zs=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;let i=0;const o=e.options.useScrollendEvent&&qs?()=>{}:js(r,()=>{t(i,!1)},e.options.isScrollingResetDelay),s=r=>()=>{const{horizontal:s,isRtl:a}=e.options;i=s?n.scrollLeft*(a?-1:1):n.scrollTop,o(),t(i,r)},a=s(!0),l=s(!1);l(),n.addEventListener("scroll",a,$s);const u=e.options.useScrollendEvent&&qs;return u&&n.addEventListener("scrollend",l,$s),()=>{n.removeEventListener("scroll",a),u&&n.removeEventListener("scrollend",l)}},Gs=(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 e[n.options.horizontal?"offsetWidth":"offsetHeight"]},Qs=(e,{adjustments:t=0,behavior:n},r)=>{var i,o;const s=e+t;null==(o=null==(i=r.scrollElement)?void 0:i.scrollTo)||o.call(i,{[r.options.horizontal?"left":"top"]:s,behavior:n})};class Hs{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,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:Ks,rangeExtractor:Us,onChange:()=>{},measureElement:Gs,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...e}},this.notify=e=>{var t,n;null==(n=(t=this.options).onChange)||n.call(t,this,e)},this.maybeNotify=Ps(()=>(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=Ps(()=>[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=Ps(()=>[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 s=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const a=this.measurementsCache.slice(0,s);for(let i=s;i<e;i++){const e=r(i),s=1===this.options.lanes?a[i-1]:this.getFurthestMeasurement(a,i),l=s?s.end+this.options.gap:t+n,u=o.get(e),c="number"==typeof u?u:this.options.estimateSize(i),d=l+c,p=s?s.lane:i%this.options.lanes;a[i]={index:i,start:l,size:c,end:d,key:e,lane:p}}return this.measurementsCache=a,a},{key:!1,debug:()=>this.options.debug}),this.calculateRange=Ps(()=>[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;if(e.length<=r)return{startIndex:0,endIndex:i};let o=Ws(0,i,t=>e[t].start,n),s=o;if(1===r)for(;s<i&&e[s].end<n+t;)s++;else if(r>1){const a=Array(r).fill(0);for(;s<i&&a.some(e=>e<n+t);){const t=e[s];a[t.lane]=t.end,s++}const l=Array(r).fill(n+t);for(;o>=0&&l.some(e=>e>=n);){const t=e[o];l[t.lane]=t.start,o--}o=Math.max(0,o-o%r),s=Math.min(i,s+(r-1-s%r))}return{startIndex:o,endIndex:s}}({measurements:e,outerSize:t,scrollOffset:n,lanes:r}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=Ps(()=>{let e=null,t=null;const n=this.calculateRange();return n&&(e=n.startIndex,t=n.endIndex),this.maybeNotify.updateDeps([this.isScrolling,e,t]),[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=Ps(()=>[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 Ms(t[Ws(0,t.length-1,e=>Ms(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.getTotalSize()+this.options.scrollMargin-r;return Math.max(Math.min(o,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.scrollToOffset=(e,{align:t="start",behavior:n}={})=>{"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}={})=>{"smooth"===n&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),e=Math.max(0,Math.min(e,this.options.count-1));let r=0;const i=t=>{if(!this.targetWindow)return;const r=this.getOffsetForIndex(e,t);if(!r)return void console.warn("Failed to get offset for index:",e);const[i,s]=r;this._scrollToOffset(i,{adjustments:void 0,behavior:n}),this.targetWindow.requestAnimationFrame(()=>{const t=this.getScrollOffset(),n=this.getOffsetForIndex(e,s);n?((e,t)=>Math.abs(e-t)<1.01)(n[0],t)||o(s):console.warn("Failed to get offset for index:",e)})},o=t=>{this.targetWindow&&(r++,r<10?this.targetWindow.requestAnimationFrame(()=>i(t)):console.warn(`Failed to scroll to index ${e} after 10 attempts.`))};i(t)},this.scrollBy=(e,{behavior:t}={})=>{"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;if(0===t.length)n=this.options.paddingStart;else if(1===this.options.lanes)n=(null==(e=t[t.length-1])?void 0:e.end)??0;else{const e=Array(this.options.lanes).fill(null);let r=t.length-1;for(;r>=0&&e.some(e=>null===e);){const n=t[r];null===e[n.lane]&&(e[n.lane]=n.end),r--}n=Math.max(...e.filter(e=>null!==e))}return 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 Ws=(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},Ys="undefined"!=typeof document?d.useLayoutEffect:d.useEffect;var Xs=Object.defineProperty,Js=(e,t,n)=>(((e,t,n)=>{t in e?Xs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);let Zs=new class{constructor(){Js(this,"current",this.detect()),Js(this,"handoffState","pending"),Js(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}};function ea(e){var t;return Zs.isServer?null:null==e?document:null!=(t=null==e?void 0:e.ownerDocument)?t:document}function ta(e){var t,n;return null!=(n=null==(t=function(e){var t,n;return Zs.isServer?null:null==e?document:null!=(n=null==(t=null==e?void 0:e.getRootNode)?void 0:t.call(e))?n:document}(e))?void 0:t.activeElement)?n:null}function na(e){return ta(e)===e}function ra(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch(e=>setTimeout(()=>{throw e}))}function ia(){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 ra(()=>{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=ia();return e(t),this.add(()=>t.dispose())},add:t=>(e.includes(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 oa(){let[e]=(0,d.useState)(ia);return(0,d.useEffect)(()=>()=>e.dispose(),[e]),e}let sa=(e,t)=>{Zs.isServer?(0,d.useEffect)(e,t):(0,d.useLayoutEffect)(e,t)};function aa(e){let t=(0,d.useRef)(e);return sa(()=>{t.current=e},[e]),t}let la=function(e){let t=aa(e);return d.useCallback((...e)=>t.current(...e),[t])};function ua(e,t){return null!==e&&null!==t&&"object"==typeof e&&"object"==typeof t&&"id"in e&&"id"in t?e.id===t.id:e===t}function ca(e=ua){return(0,d.useCallback)((t,n)=>{if("string"==typeof e){let r=e;return(null==t?void 0:t[r])===(null==n?void 0:n[r])}return e(t,n)},[e])}function da(e){if(null===e)return{width:0,height:0};let{width:t,height:n}=e.getBoundingClientRect();return{width:t,height:n}}function pa(e,t,n=!1){let[r,i]=(0,d.useState)(()=>da(t));return sa(()=>{if(!t||!e)return;let n=ia();return n.requestAnimationFrame(function e(){n.requestAnimationFrame(e),i(e=>{let n=da(t);return n.width===e.width&&n.height===e.height?e:n})}),()=>{n.dispose()}},[t,e]),n?{width:`${r.width}px`,height:`${r.height}px`}:r}var fa=(e=>(e[e.Left=0]="Left",e[e.Right=2]="Right",e))(fa||{});function ha(e){return"object"==typeof e&&null!==e&&"nodeType"in e}function ma(e){return ha(e)&&"tagName"in e}function ga(e){return ma(e)&&"accessKey"in e}function ya(e){return ma(e)&&"tabIndex"in e}function va(e){return ma(e)&&"style"in e}function ba(e){return ga(e)&&"INPUT"===e.nodeName}function Ea(e){return ga(e)&&"LABEL"===e.nodeName}function Ta(e){return ga(e)&&"FIELDSET"===e.nodeName}function wa(e){return ga(e)&&"LEGEND"===e.nodeName}function ka(e){return!!ma(e)&&e.matches('a[href],audio[controls],button,details,embed,iframe,img[usemap],input:not([type="hidden"]),label,select,textarea,video[controls]')}function Sa(e){let t=e.parentElement,n=null;for(;t&&!Ta(t);)wa(t)&&(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(wa(t))return!1;t=t.previousElementSibling}return!0}(n))&&r}class xa extends Map{constructor(e){super(),this.factory=e}get(e){let t=super.get(e);return void 0===t&&(t=this.factory(e),this.set(e,t)),t}}var Ca,_a,Na,Da=Object.defineProperty,Aa=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},La=(e,t,n)=>(Aa(e,t,"read from private field"),n?n.call(e):t.get(e)),Ia=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},Oa=(e,t,n,r)=>(Aa(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);class Ra{constructor(e){Ia(this,Ca,{}),Ia(this,_a,new xa(()=>new Set)),Ia(this,Na,new Set),((e,t,n)=>{((e,t,n)=>{t in e?Da(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n)})(this,"disposables",ia()),Oa(this,Ca,e),Zs.isServer&&this.disposables.microTask(()=>{this.dispose()})}dispose(){this.disposables.dispose()}get state(){return La(this,Ca)}subscribe(e,t){if(Zs.isServer)return()=>{};let n={selector:e,callback:t,current:e(La(this,Ca))};return La(this,Na).add(n),this.disposables.add(()=>{La(this,Na).delete(n)})}on(e,t){return Zs.isServer?()=>{}:(La(this,_a).get(e).add(t),this.disposables.add(()=>{La(this,_a).get(e).delete(t)}))}send(e){let t=this.reduce(La(this,Ca),e);if(t!==La(this,Ca)){Oa(this,Ca,t);for(let e of La(this,Na)){let t=e.selector(La(this,Ca));Fa(e.current,t)||(e.current=t,e.callback(t))}for(let t of La(this,_a).get(e.type))t(La(this,Ca),e)}}}function Fa(e,t){return!!Object.is(e,t)||"object"==typeof e&&null!==e&&"object"==typeof t&&null!==t&&(Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&Pa(e[Symbol.iterator](),t[Symbol.iterator]()):e instanceof Map&&t instanceof Map||e instanceof Set&&t instanceof Set?e.size===t.size&&Pa(e.entries(),t.entries()):!(!Ma(e)||!Ma(t))&&Pa(Object.entries(e)[Symbol.iterator](),Object.entries(t)[Symbol.iterator]()))}function Pa(e,t){for(;;){let n=e.next(),r=t.next();if(n.done&&r.done)return!0;if(n.done||r.done||!Object.is(n.value,r.value))return!1}}function Ma(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;let t=Object.getPrototypeOf(e);return null===t||null===Object.getPrototypeOf(t)}function ja(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,ja),r}Ca=new WeakMap,_a=new WeakMap,Na=new WeakMap;var Va=Object.defineProperty,Ka=(e,t,n)=>(((e,t,n)=>{t in e?Va(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n),Ua=(e=>(e[e.Push=0]="Push",e[e.Pop=1]="Pop",e))(Ua||{});let Ba={0(e,t){let n=t.id,r=e.stack,i=e.stack.indexOf(n);if(-1!==i){let t=e.stack.slice();return t.splice(i,1),t.push(n),r=t,{...e,stack:r}}return{...e,stack:[...e.stack,n]}},1(e,t){let n=t.id,r=e.stack.indexOf(n);if(-1===r)return e;let i=e.stack.slice();return i.splice(r,1),{...e,stack:i}}};class $a extends Ra{constructor(){super(...arguments),Ka(this,"actions",{push:e=>this.send({type:0,id:e}),pop:e=>this.send({type:1,id:e})}),Ka(this,"selectors",{isTop:(e,t)=>e.stack[e.stack.length-1]===t,inStack:(e,t)=>e.stack.includes(t)})}static new(){return new $a({stack:[]})}reduce(e,t){return ja(t.type,Ba,e,t)}}const qa=new xa(()=>$a.new());var za=s(95919);function Ga(e,t,n=Fa){return(0,za.useSyncExternalStoreWithSelector)(la(t=>e.subscribe(Qa,t)),la(()=>e.state),la(()=>e.state),la(t),n)}function Qa(e){return e}function Ha(e,t){let n=(0,d.useId)(),r=qa.get(t),[i,o]=Ga(r,(0,d.useCallback)(e=>[r.selectors.isTop(e,n),r.selectors.inStack(e,n)],[r,n]));return sa(()=>{if(e)return r.actions.push(n),()=>r.actions.pop(n)},[r,e,n]),!!e&&(!o||i)}let Wa=new Map,Ya=new Map;function Xa(e){var t;let n=null!=(t=Ya.get(e))?t:0;return Ya.set(e,n+1),0!==n||(Wa.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0),()=>function(e){var t;let n=null!=(t=Ya.get(e))?t:1;if(1===n?Ya.delete(e):Ya.set(e,n-1),1!==n)return;let r=Wa.get(e);r&&(null===r["aria-hidden"]?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r["aria-hidden"]),e.inert=r.inert,Wa.delete(e))}(e)}let Ja=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","details>summary","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");["[data-autofocus]"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var Za,el=((Za=el||{})[Za.First=1]="First",Za[Za.Previous=2]="Previous",Za[Za.Next=4]="Next",Za[Za.Last=8]="Last",Za[Za.WrapAround=16]="WrapAround",Za[Za.NoScroll=32]="NoScroll",Za[Za.AutoFocus=64]="AutoFocus",Za),tl=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(tl||{}),nl=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(nl||{}),rl=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(rl||{});var il=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(il||{});function ol(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function sl(){return ol()||/Android/gi.test(window.navigator.userAgent)}function al(e,t,n,r){let i=aa(n);(0,d.useEffect)(()=>{if(e)return document.addEventListener(t,n,r),()=>document.removeEventListener(t,n,r);function n(e){i.current(e)}},[e,t,r])}function ll(e,t,n){let r=aa(n),i=(0,d.useCallback)(function(e,n){if(e.defaultPrevented)return;let i=n(e);if(null===i||!i.getRootNode().contains(i)||!i.isConnected)return;let o=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(t);for(let t of o)if(null!==t&&(t.contains(i)||e.composed&&e.composedPath().includes(t)))return;return!function(e,t=0){var n;return e!==(null==(n=ea(e))?void 0:n.body)&&ja(t,{0:()=>e.matches(Ja),1(){let t=e;for(;null!==t;){if(t.matches(Ja))return!0;t=t.parentElement}return!1}})}(i,rl.Loose)&&-1!==i.tabIndex&&e.preventDefault(),r.current(e,i)},[r,t]),o=(0,d.useRef)(null);al(e,"pointerdown",e=>{var t,n;sl()||(o.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)},!0),al(e,"pointerup",e=>{if(sl()||!o.current)return;let t=o.current;return o.current=null,i(e,()=>t)},!0);let s=(0,d.useRef)({x:0,y:0});al(e,"touchstart",e=>{s.current.x=e.touches[0].clientX,s.current.y=e.touches[0].clientY},!0),al(e,"touchend",e=>{let t=e.changedTouches[0].clientX,n=e.changedTouches[0].clientY;if(!(Math.abs(t-s.current.x)>=30||Math.abs(n-s.current.y)>=30))return i(e,()=>ya(e.target)?e.target:null)},!0),function(e,t,n,r){let o=aa(e=>i(e,()=>function(e){return ga(e)&&"IFRAME"===e.nodeName}(window.document.activeElement)?window.document.activeElement:null));(0,d.useEffect)(()=>{if(e)return window.addEventListener(t,n,r),()=>window.removeEventListener(t,n,r);function n(e){o.current(e)}},[e,t,r])}(e,"blur",0,!0)}function ul(...e){return(0,d.useMemo)(()=>ea(...e),[...e])}"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(",");var cl,dl=((cl=dl||{})[cl.Ignore=0]="Ignore",cl[cl.Select=1]="Select",cl[cl.Close=2]="Close",cl);const pl={Ignore:{kind:0},Select:e=>({kind:1,target:e}),Close:{kind:2}};function fl(e){let t=(0,d.useRef)({value:"",selectionStart:null,selectionEnd:null});return function(e,n,r,i){let o=aa(e=>{let n=e.target;ba(n)&&(t.current={value:n.value,selectionStart:n.selectionStart,selectionEnd:n.selectionEnd})});(0,d.useEffect)(()=>{function t(e){o.current(e)}return(e=null!=e?e:window).addEventListener(n,t,i),()=>e.removeEventListener(n,t,i)},[e,n,i])}(e,"blur"),la(()=>{if(!na(e)&&ba(e)&&e.isConnected){if(e.focus({preventScroll:!0}),e.value!==t.current.value)e.setSelectionRange(e.value.length,e.value.length);else{let{selectionStart:n,selectionEnd:r}=t.current;null!==n&&null!==r&&e.setSelectionRange(n,r)}t.current={value:"",selectionStart:null,selectionEnd:null}}})}function hl(e,t){return(0,d.useMemo)(()=>{var n;if(e.type)return e.type;let r=null!=(n=e.as)?n:"button";return"string"==typeof r&&"button"===r.toLowerCase()||"BUTTON"===(null==t?void 0:t.tagName)&&!t.hasAttribute("type")?"button":void 0},[e.type,e.as,t])}function ml(){let e;return{before({doc:t}){var n;let r=t.documentElement,i=null!=(n=t.defaultView)?n:window;e=Math.max(0,i.innerWidth-r.clientWidth)},after({doc:t,d:n}){let r=t.documentElement,i=Math.max(0,r.clientWidth-r.offsetWidth),o=Math.max(0,e-i);n.style(r,"paddingRight",`${o}px`)}}}function gl(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let yl=function(e,t){let n=new Map,r=new Set;return{getSnapshot:()=>n,subscribe:e=>(r.add(e),()=>r.delete(e)),dispatch(e,...i){let o=t[e].call(n,...i);o&&(n=o,r.forEach(e=>e()))}}}(0,{PUSH(e,t){var n;let r=null!=(n=this.get(e))?n:{doc:e,count:0,d:ia(),meta:new Set,computedMeta:{}};return r.count++,r.meta.add(t),r.computedMeta=gl(r.meta),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t),n.computedMeta=gl(n.meta)),this},SCROLL_PREVENT(e){let t={doc:e.doc,d:e.d,meta:()=>e.computedMeta},n=[ol()?{before({doc:e,d:t,meta:n}){function r(e){for(let t of n().containers)for(let n of t())if(n.contains(e))return!0;return!1}t.microTask(()=>{var n;if("auto"!==window.getComputedStyle(e.documentElement).scrollBehavior){let n=ia();n.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>n.dispose()))}let i=null!=(n=window.scrollY)?n:window.pageYOffset,o=null;t.addEventListener(e,"click",t=>{if(ya(t.target))try{let n=t.target.closest("a");if(!n)return;let{hash:i}=new URL(n.href),s=e.querySelector(i);ya(s)&&!r(s)&&(o=s)}catch{}},!0),t.group(n=>{t.addEventListener(e,"touchstart",e=>{if(n.dispose(),ya(e.target)&&va(e.target))if(r(e.target)){let t=e.target;for(;t.parentElement&&r(t.parentElement);)t=t.parentElement;n.style(t,"overscrollBehavior","contain")}else n.style(e.target,"touchAction","none")})}),t.addEventListener(e,"touchmove",e=>{if(ya(e.target)){if(ba(e.target))return;if(r(e.target)){let t=e.target;for(;t.parentElement&&""!==t.dataset.headlessuiPortal&&!(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth);)t=t.parentElement;""===t.dataset.headlessuiPortal&&e.preventDefault()}else e.preventDefault()}},{passive:!1}),t.add(()=>{var e;let t=null!=(e=window.scrollY)?e:window.pageYOffset;i!==t&&window.scrollTo(0,i),o&&o.isConnected&&(o.scrollIntoView({block:"nearest"}),o=null)})})}}:{},ml(),{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}];n.forEach(({before:e})=>null==e?void 0:e(t)),n.forEach(({after:e})=>null==e?void 0:e(t))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});function vl(e){return(0,d.useMemo)(()=>e,Object.values(e))}yl.subscribe(()=>{let e=yl.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let e="hidden"===t.get(n.doc),r=0!==n.count;(r&&!e||!r&&e)&&yl.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),0===n.count&&yl.dispatch("TEARDOWN",n)}});let bl=Symbol();function El(...e){let t=(0,d.useRef)(e);(0,d.useEffect)(()=>{t.current=e},[e]);let n=la(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[bl]))?void 0:n}function Tl(e){return[e.screenX,e.screenY]}var wl,kl;"undefined"!=typeof process&&"undefined"!=typeof globalThis&&"undefined"!=typeof Element&&"test"===(null==(wl=null==process?void 0:process.env)?void 0:wl.NODE_ENV)&&void 0===(null==(kl=null==Element?void 0:Element.prototype)?void 0:kl.getAnimations)&&(Element.prototype.getAnimations=function(){return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.","Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.","","Example usage:","```js","import { mockAnimationsApi } from 'jsdom-testing-mocks'","mockAnimationsApi()","```"].join("\n")),[]});var Sl=(e=>(e[e.None=0]="None",e[e.Closed=1]="Closed",e[e.Enter=2]="Enter",e[e.Leave=4]="Leave",e))(Sl||{});function xl(e){let t={};for(let n in e)!0===e[n]&&(t[`data-${n}`]="");return t}function Cl(e,t){let n=(0,d.useRef)([]),r=la(e);(0,d.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])}let _l=(0,d.createContext)(void 0);function Nl(){return(0,d.useContext)(_l)}function Dl(){return"undefined"!=typeof window}function Al(e){return Ol(e)?(e.nodeName||"").toLowerCase():"#document"}function Ll(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Il(e){var t;return null==(t=(Ol(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Ol(e){return!!Dl()&&(e instanceof Node||e instanceof Ll(e).Node)}function Rl(e){return!!Dl()&&(e instanceof Element||e instanceof Ll(e).Element)}function Fl(e){return!!Dl()&&(e instanceof HTMLElement||e instanceof Ll(e).HTMLElement)}function Pl(e){return!(!Dl()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Ll(e).ShadowRoot)}const Ml=new Set(["inline","contents"]);function jl(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Yl(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Ml.has(i)}const Vl=new Set(["table","td","th"]);function Kl(e){return Vl.has(Al(e))}const Ul=[":popover-open",":modal"];function Bl(e){return Ul.some(t=>{try{return e.matches(t)}catch(e){return!1}})}const $l=["transform","translate","scale","rotate","perspective"],ql=["transform","translate","scale","rotate","perspective","filter"],zl=["paint","layout","strict","content"];function Gl(e){const t=Ql(),n=Rl(e)?Yl(e):e;return $l.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||ql.some(e=>(n.willChange||"").includes(e))||zl.some(e=>(n.contain||"").includes(e))}function Ql(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const Hl=new Set(["html","body","#document"]);function Wl(e){return Hl.has(Al(e))}function Yl(e){return Ll(e).getComputedStyle(e)}function Xl(e){return Rl(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Jl(e){if("html"===Al(e))return e;const t=e.assignedSlot||e.parentNode||Pl(e)&&e.host||Il(e);return Pl(t)?t.host:t}function Zl(e){const t=Jl(e);return Wl(t)?e.ownerDocument?e.ownerDocument.body:e.body:Fl(t)&&jl(t)?t:Zl(t)}function eu(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const i=Zl(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),s=Ll(i);if(o){const e=tu(s);return t.concat(s,s.visualViewport||[],jl(i)?i:[],e&&n?eu(e):[])}return t.concat(i,eu(i,[],n))}function tu(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const nu=["top","right","bottom","left"],ru=Math.min,iu=Math.max,ou=Math.round,su=Math.floor,au=e=>({x:e,y:e}),lu={left:"right",right:"left",bottom:"top",top:"bottom"},uu={start:"end",end:"start"};function cu(e,t,n){return iu(e,ru(t,n))}function du(e,t){return"function"==typeof e?e(t):e}function pu(e){return e.split("-")[0]}function fu(e){return e.split("-")[1]}function hu(e){return"x"===e?"y":"x"}function mu(e){return"y"===e?"height":"width"}const gu=new Set(["top","bottom"]);function yu(e){return gu.has(pu(e))?"y":"x"}function vu(e){return hu(yu(e))}function bu(e){return e.replace(/start|end/g,e=>uu[e])}const Eu=["left","right"],Tu=["right","left"],wu=["top","bottom"],ku=["bottom","top"];function Su(e){return e.replace(/left|right|bottom|top/g,e=>lu[e])}function xu(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 Cu(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}}var _u="undefined"==typeof Element;function Nu(e,t,n){let{reference:r,floating:i}=e;const o=yu(t),s=vu(t),a=mu(s),l=pu(t),u="y"===o,c=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,p=r[a]/2-i[a]/2;let f;switch(l){case"top":f={x:c,y:r.y-i.height};break;case"bottom":f={x:c,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:d};break;case"left":f={x:r.x-i.width,y:d};break;default:f={x:r.x,y:r.y}}switch(fu(t)){case"start":f[s]-=p*(n&&u?-1:1);break;case"end":f[s]+=p*(n&&u?-1:1)}return f}async function Du(e,t){var n;void 0===t&&(t={});const{x:r,y:i,platform:o,rects:s,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:p=!1,padding:f=0}=du(t,e),h=xu(f),m=a[p?"floating"===d?"reference":"floating":d],g=Cu(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(a.floating)),boundary:u,rootBoundary:c,strategy:l})),y="floating"===d?{x:r,y:i,width:s.floating.width,height:s.floating.height}:s.reference,v=await(null==o.getOffsetParent?void 0:o.getOffsetParent(a.floating)),b=await(null==o.isElement?void 0:o.isElement(v))&&await(null==o.getScale?void 0:o.getScale(v))||{x:1,y:1},E=Cu(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:v,strategy:l}):y);return{top:(g.top-E.top+h.top)/b.y,bottom:(E.bottom-g.bottom+h.bottom)/b.y,left:(g.left-E.left+h.left)/b.x,right:(E.right-g.right+h.right)/b.x}}function Au(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Lu(e){return nu.some(t=>e[t]>=0)}_u||Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,!_u&&Element.prototype.getRootNode;const Iu=new Set(["left","top"]);function Ou(e){const t=Yl(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Fl(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,a=ou(n)!==o||ou(r)!==s;return a&&(n=o,r=s),{width:n,height:r,$:a}}function Ru(e){return Rl(e)?e:e.contextElement}function Fu(e){const t=Ru(e);if(!Fl(t))return au(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=Ou(t);let s=(o?ou(n.width):n.width)/r,a=(o?ou(n.height):n.height)/i;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const Pu=au(0);function Mu(e){const t=Ll(e);return Ql()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Pu}function ju(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const i=e.getBoundingClientRect(),o=Ru(e);let s=au(1);t&&(r?Rl(r)&&(s=Fu(r)):s=Fu(e));const a=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Ll(e))&&t}(o,n,r)?Mu(o):au(0);let l=(i.left+a.x)/s.x,u=(i.top+a.y)/s.y,c=i.width/s.x,d=i.height/s.y;if(o){const e=Ll(o),t=r&&Rl(r)?Ll(r):r;let n=e,i=tu(n);for(;i&&r&&t!==n;){const e=Fu(i),t=i.getBoundingClientRect(),r=Yl(i),o=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,s=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,u*=e.y,c*=e.x,d*=e.y,l+=o,u+=s,n=Ll(i),i=tu(n)}}return Cu({width:c,height:d,x:l,y:u})}function Vu(e,t){const n=Xl(e).scrollLeft;return t?t.left+n:ju(Il(e)).left+n}function Ku(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Vu(e,n),y:n.top+t.scrollTop}}const Uu=new Set(["absolute","fixed"]);function Bu(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Ll(e),r=Il(e),i=n.visualViewport;let o=r.clientWidth,s=r.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;const e=Ql();(!e||e&&"fixed"===t)&&(a=i.offsetLeft,l=i.offsetTop)}const u=Vu(r);if(u<=0){const e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,s=Math.abs(r.clientWidth-t.clientWidth-i);s<=25&&(o-=s)}else u<=25&&(o+=u);return{width:o,height:s,x:a,y:l}}(e,n);else if("document"===t)r=function(e){const t=Il(e),n=Xl(e),r=e.ownerDocument.body,i=iu(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=iu(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Vu(e);const a=-n.scrollTop;return"rtl"===Yl(r).direction&&(s+=iu(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:s,y:a}}(Il(e));else if(Rl(t))r=function(e,t){const n=ju(e,!0,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=Fl(e)?Fu(e):au(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=Mu(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Cu(r)}function $u(e,t){const n=Jl(e);return!(n===t||!Rl(n)||Wl(n))&&("fixed"===Yl(n).position||$u(n,t))}function qu(e,t,n){const r=Fl(t),i=Il(t),o="fixed"===n,s=ju(e,!0,o,t);let a={scrollLeft:0,scrollTop:0};const l=au(0);function u(){l.x=Vu(i)}if(r||!r&&!o)if(("body"!==Al(t)||jl(i))&&(a=Xl(t)),r){const e=ju(t,!0,o,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else i&&u();o&&!r&&i&&u();const c=!i||r||o?au(0):Ku(i,a);return{x:s.left+a.scrollLeft-l.x-c.x,y:s.top+a.scrollTop-l.y-c.y,width:s.width,height:s.height}}function zu(e){return"static"===Yl(e).position}function Gu(e,t){if(!Fl(e)||"fixed"===Yl(e).position)return null;if(t)return t(e);let n=e.offsetParent;return Il(e)===n&&(n=n.ownerDocument.body),n}function Qu(e,t){const n=Ll(e);if(Bl(e))return n;if(!Fl(e)){let t=Jl(e);for(;t&&!Wl(t);){if(Rl(t)&&!zu(t))return t;t=Jl(t)}return n}let r=Gu(e,t);for(;r&&Kl(r)&&zu(r);)r=Gu(r,t);return r&&Wl(r)&&zu(r)&&!Gl(r)?n:r||function(e){let t=Jl(e);for(;Fl(t)&&!Wl(t);){if(Gl(t))return t;if(Bl(t))return null;t=Jl(t)}return null}(e)||n}const Hu={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o="fixed"===i,s=Il(r),a=!!t&&Bl(t.floating);if(r===s||a&&o)return n;let l={scrollLeft:0,scrollTop:0},u=au(1);const c=au(0),d=Fl(r);if((d||!d&&!o)&&(("body"!==Al(r)||jl(s))&&(l=Xl(r)),Fl(r))){const e=ju(r);u=Fu(r),c.x=e.x+r.clientLeft,c.y=e.y+r.clientTop}const p=!s||d||o?au(0):Ku(s,l);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x+p.x,y:n.y*u.y-l.scrollTop*u.y+c.y+p.y}},getDocumentElement:Il,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[..."clippingAncestors"===n?Bl(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=eu(e,[],!1).filter(e=>Rl(e)&&"body"!==Al(e)),i=null;const o="fixed"===Yl(e).position;let s=o?Jl(e):e;for(;Rl(s)&&!Wl(s);){const t=Yl(s),n=Gl(s);n||"fixed"!==t.position||(i=null),(o?!n&&!i:!n&&"static"===t.position&&i&&Uu.has(i.position)||jl(s)&&!n&&$u(e,s))?r=r.filter(e=>e!==s):i=t,s=Jl(s)}return t.set(e,r),r}(t,this._c):[].concat(n),r],s=o[0],a=o.reduce((e,n)=>{const r=Bu(t,n,i);return e.top=iu(r.top,e.top),e.right=ru(r.right,e.right),e.bottom=ru(r.bottom,e.bottom),e.left=iu(r.left,e.left),e},Bu(t,s,i));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:Qu,getElementRects:async function(e){const t=this.getOffsetParent||Qu,n=this.getDimensions,r=await n(e.floating);return{reference:qu(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}=Ou(e);return{width:t,height:n}},getScale:Fu,isElement:Rl,isRTL:function(e){return"rtl"===Yl(e).direction}};function Wu(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Yu(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,u=Ru(e),c=i||o?[...u?eu(u):[],...eu(t)]:[];c.forEach(e=>{i&&e.addEventListener("scroll",n,{passive:!0}),o&&e.addEventListener("resize",n)});const d=u&&a?function(e,t){let n,r=null;const i=Il(e);function o(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function s(a,l){void 0===a&&(a=!1),void 0===l&&(l=1),o();const u=e.getBoundingClientRect(),{left:c,top:d,width:p,height:f}=u;if(a||t(),!p||!f)return;const h={rootMargin:-su(d)+"px "+-su(i.clientWidth-(c+p))+"px "+-su(i.clientHeight-(d+f))+"px "+-su(c)+"px",threshold:iu(0,ru(1,l))||1};let m=!0;function g(t){const r=t[0].intersectionRatio;if(r!==l){if(!m)return s();r?s(!1,r):n=setTimeout(()=>{s(!1,1e-7)},1e3)}1!==r||Wu(u,e.getBoundingClientRect())||s(),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 p,f=-1,h=null;s&&(h=new ResizeObserver(e=>{let[r]=e;r&&r.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),n()}),u&&!l&&h.observe(u),h.observe(t));let m=l?ju(e):null;return l&&function t(){const r=ju(e);m&&!Wu(m,r)&&n(),m=r,p=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(p)}}const Xu=Du,Ju=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:s,middlewareData:a}=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)),s=pu(n),a=fu(n),l="y"===yu(n),u=Iu.has(s)?-1:1,c=o&&l?-1:1,d=du(t,e);let{mainAxis:p,crossAxis:f,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&"number"==typeof h&&(f="end"===a?-1*h:h),l?{x:f*c,y:p*u}:{x:p*u,y:f*c}}(t,e);return s===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:s}}}}},Zu=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:s=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=du(e,t),u={x:n,y:r},c=await Du(t,l),d=yu(pu(i)),p=hu(d);let f=u[p],h=u[d];if(o){const e="y"===p?"bottom":"right";f=cu(f+c["y"===p?"top":"left"],f,f-c[e])}if(s){const e="y"===d?"bottom":"right";h=cu(h+c["y"===d?"top":"left"],h,h-c[e])}const m=a.fn({...t,[p]:f,[d]:h});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[p]:o,[d]:s}}}}}},ec=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:s,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...g}=du(e,t);if(null!=(n=o.arrow)&&n.alignmentOffset)return{};const y=pu(i),v=yu(a),b=pu(a)===a,E=await(null==l.isRTL?void 0:l.isRTL(u.floating)),T=p||(b||!m?[Su(a)]:function(e){const t=Su(e);return[bu(e),t,bu(t)]}(a)),w="none"!==h;!p&&w&&T.push(...function(e,t,n,r){const i=fu(e);let o=function(e,t,n){switch(e){case"top":case"bottom":return n?t?Tu:Eu:t?Eu:Tu;case"left":case"right":return t?wu:ku;default:return[]}}(pu(e),"start"===n,r);return i&&(o=o.map(e=>e+"-"+i),t&&(o=o.concat(o.map(bu)))),o}(a,m,h,E));const k=[a,...T],S=await Du(t,g),x=[];let C=(null==(r=o.flip)?void 0:r.overflows)||[];if(c&&x.push(S[y]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=fu(e),i=vu(e),o=mu(i);let s="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=Su(s)),[s,Su(s)]}(i,s,E);x.push(S[e[0]],S[e[1]])}if(C=[...C,{placement:i,overflows:x}],!x.every(e=>e<=0)){var _,N;const e=((null==(_=o.flip)?void 0:_.index)||0)+1,t=k[e];if(t&&("alignment"!==d||v===yu(t)||C.every(e=>yu(e.placement)!==v||e.overflows[0]>0)))return{data:{index:e,overflows:C},reset:{placement:t}};let n=null==(N=C.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:N.placement;if(!n)switch(f){case"bestFit":{var D;const e=null==(D=C.filter(e=>{if(w){const t=yu(e.placement);return t===v||"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=a}if(i!==n)return{reset:{placement:n}}}return{}}}},tc=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:o,platform:s,elements:a}=t,{apply:l=()=>{},...u}=du(e,t),c=await Du(t,u),d=pu(i),p=fu(i),f="y"===yu(i),{width:h,height:m}=o.floating;let g,y;"top"===d||"bottom"===d?(g=d,y=p===(await(null==s.isRTL?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(y=d,g="end"===p?"top":"bottom");const v=m-c.top-c.bottom,b=h-c.left-c.right,E=ru(m-c[g],v),T=ru(h-c[y],b),w=!t.middlewareData.shift;let k=E,S=T;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(S=b),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(k=v),w&&!p){const e=iu(c.left,0),t=iu(c.right,0),n=iu(c.top,0),r=iu(c.bottom,0);f?S=h-2*(0!==e||0!==t?e+t:iu(c.left,c.right)):k=m-2*(0!==n||0!==r?n+r:iu(c.top,c.bottom))}await l({...t,availableWidth:S,availableHeight:k});const x=await s.getDimensions(a.floating);return h!==x.width||m!==x.height?{reset:{rects:!0}}:{}}}},nc=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...i}=du(e,t);switch(r){case"referenceHidden":{const e=Au(await Du(t,{...i,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Lu(e)}}}case"escaped":{const e=Au(await Du(t,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Lu(e)}}}default:return{}}}}},rc=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:s,elements:a,middlewareData:l}=t,{element:u,padding:c=0}=du(e,t)||{};if(null==u)return{};const d=xu(c),p={x:n,y:r},f=vu(i),h=mu(f),m=await s.getDimensions(u),g="y"===f,y=g?"top":"left",v=g?"bottom":"right",b=g?"clientHeight":"clientWidth",E=o.reference[h]+o.reference[f]-p[f]-o.floating[h],T=p[f]-o.reference[f],w=await(null==s.getOffsetParent?void 0:s.getOffsetParent(u));let k=w?w[b]:0;k&&await(null==s.isElement?void 0:s.isElement(w))||(k=a.floating[b]||o.floating[h]);const S=E/2-T/2,x=k/2-m[h]/2-1,C=ru(d[y],x),_=ru(d[v],x),N=C,D=k-m[h]-_,A=k/2-m[h]/2+S,L=cu(N,A,D),I=!l.arrow&&null!=fu(i)&&A!==L&&o.reference[h]/2-(A<N?C:_)-m[h]/2<0,O=I?A<N?A-N:A-D:0;return{[f]:p[f]+O,data:{[f]:L,centerOffset:A-L-O,...I&&{alignmentOffset:O}},reset:I}}}),ic=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:o,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=du(e,t),c={x:n,y:r},d=yu(i),p=hu(d);let f=c[p],h=c[d];const m=du(a,t),g="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const e="y"===p?"height":"width",t=o.reference[p]-o.floating[e]+g.mainAxis,n=o.reference[p]+o.reference[e]-g.mainAxis;f<t?f=t:f>n&&(f=n)}if(u){var y,v;const e="y"===p?"width":"height",t=Iu.has(pu(i)),n=o.reference[d]-o.floating[e]+(t&&(null==(y=s.offset)?void 0:y[d])||0)+(t?0:g.crossAxis),r=o.reference[d]+o.reference[e]+(t?0:(null==(v=s.offset)?void 0:v[d])||0)-(t?g.crossAxis:0);h<n?h=n:h>r&&(h=r)}return{[p]:f,[d]:h}}}},oc=(e,t,n)=>{const r=new Map,i={platform:Hu,...n},o={...i.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:s}=n,a=o.filter(Boolean),l=await(null==s.isRTL?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:d}=Nu(u,r,l),p=r,f={},h=0;for(let n=0;n<a.length;n++){const{name:o,fn:m}=a[n],{x:g,y,data:v,reset:b}=await m({x:c,y:d,initialPlacement:r,placement:p,strategy:i,middlewareData:f,rects:u,platform:s,elements:{reference:e,floating:t}});c=null!=g?g:c,d=null!=y?y:d,f={...f,[o]:{...f[o],...v}},b&&h<=50&&(h++,"object"==typeof b&&(b.placement&&(p=b.placement),b.rects&&(u=!0===b.rects?await s.getElementRects({reference:e,floating:t,strategy:i}):b.rects),({x:c,y:d}=Nu(u,p,l))),n=-1)}return{x:c,y:d,placement:p,strategy:i,middlewareData:f}})(e,t,{...i,platform:o})};var sc="undefined"!=typeof document?d.useLayoutEffect:function(){};function ac(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(!ac(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||ac(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function lc(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function uc(e,t){const n=lc(e);return Math.round(t*n)/n}function cc(e){const t=d.useRef(e);return sc(()=>{t.current=e}),t}function dc(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:s}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[c,p]=d.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,h]=d.useState(r);ac(f,r)||h(r);const[m,g]=d.useState(null),[y,v]=d.useState(null),b=d.useCallback(e=>{e!==k.current&&(k.current=e,g(e))},[]),E=d.useCallback(e=>{e!==S.current&&(S.current=e,v(e))},[]),T=o||m,w=s||y,k=d.useRef(null),S=d.useRef(null),x=d.useRef(c),C=null!=l,_=cc(l),N=cc(i),D=cc(u),A=d.useCallback(()=>{if(!k.current||!S.current)return;const e={placement:t,strategy:n,middleware:f};N.current&&(e.platform=N.current),oc(k.current,S.current,e).then(e=>{const t={...e,isPositioned:!1!==D.current};L.current&&!ac(x.current,t)&&(x.current=t,Fs.flushSync(()=>{p(t)}))})},[f,t,n,N,D]);sc(()=>{!1===u&&x.current.isPositioned&&(x.current.isPositioned=!1,p(e=>({...e,isPositioned:!1})))},[u]);const L=d.useRef(!1);sc(()=>(L.current=!0,()=>{L.current=!1}),[]),sc(()=>{if(T&&(k.current=T),w&&(S.current=w),T&&w){if(_.current)return _.current(T,w,A);A()}},[T,w,A,_,C]);const I=d.useMemo(()=>({reference:k,floating:S,setReference:b,setFloating:E}),[b,E]),O=d.useMemo(()=>({reference:T,floating:w}),[T,w]),R=d.useMemo(()=>{const e={position:n,left:0,top:0};if(!O.floating)return e;const t=uc(O.floating,c.x),r=uc(O.floating,c.y);return a?{...e,transform:"translate("+t+"px, "+r+"px)",...lc(O.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,a,O.floating,c.x,c.y]);return d.useMemo(()=>({...c,update:A,refs:I,elements:O,floatingStyles:R}),[c,A,I,O,R])}const pc=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?rc({element:n.current,padding:r}).fn(t):{}:n?rc({element:n,padding:r}).fn(t):{};var i}}),fc=(e,t)=>({...Ju(e),options:[e,t]}),hc=(e,t)=>({...Zu(e),options:[e,t]}),mc=(e,t)=>({...ic(e),options:[e,t]}),gc=(e,t)=>({...ec(e),options:[e,t]}),yc=(e,t)=>({...tc(e),options:[e,t]}),vc=(e,t)=>({...nc(e),options:[e,t]}),bc=(e,t)=>({...pc(e),options:[e,t]}),Ec={...p},Tc=Ec.useInsertionEffect||(e=>e());function wc(e){const t=d.useRef(()=>{});return Tc(()=>{t.current=e}),d.useCallback(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)},[])}var kc="undefined"!=typeof document?d.useLayoutEffect:d.useEffect;let Sc=!1,xc=0;const Cc=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+xc++,_c=Ec.useId||function(){const[e,t]=d.useState(()=>Sc?Cc():void 0);return kc(()=>{null==e&&t(Cc())},[]),d.useEffect(()=>{Sc=!0},[]),e};const Nc=d.createContext(null),Dc=d.createContext(null),Ac="data-floating-ui-focusable";function Lc(e){void 0===e&&(e={});const{nodeId:t}=e,n=function(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=_c(),o=d.useRef({}),[s]=d.useState(()=>function(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach(e=>e(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter(e=>e!==n))||[])}}}()),a=null!=((null==(h=d.useContext(Nc))?void 0:h.id)||null),[l,u]=d.useState(r.reference),c=wc((e,t,r)=>{o.current.openEvent=e?t:void 0,s.emit("openchange",{open:e,event:t,reason:r,nested:a}),null==n||n(e,t,r)}),p=d.useMemo(()=>({setPositionReference:u}),[]),f=d.useMemo(()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference}),[l,r.reference,r.floating]);var h;return d.useMemo(()=>({dataRef:o,open:t,onOpenChange:c,elements:f,events:s,floatingId:i,refs:p}),[t,c,f,s,i,p])}({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[o,s]=d.useState(null),[a,l]=d.useState(null),u=(null==i?void 0:i.domReference)||o,c=d.useRef(null),p=d.useContext(Dc);kc(()=>{u&&(c.current=u)},[u]);const f=dc({...e,elements:{...i,...a&&{reference:a}}}),h=d.useCallback(e=>{const t=Rl(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;l(t),f.refs.setReference(t)},[f.refs]),m=d.useCallback(e=>{(Rl(e)||null===e)&&(c.current=e,s(e)),(Rl(f.refs.reference.current)||null===f.refs.reference.current||null!==e&&!Rl(e))&&f.refs.setReference(e)},[f.refs]),g=d.useMemo(()=>({...f.refs,setReference:m,setPositionReference:h,domReference:c}),[f.refs,m,h]),y=d.useMemo(()=>({...f.elements,domReference:u}),[f.elements,u]),v=d.useMemo(()=>({...f,...r,refs:g,elements:y,nodeId:t}),[f,g,y,t,r]);return kc(()=>{r.dataRef.current.floatingContext=v;const e=null==p?void 0:p.nodesRef.current.find(e=>e.id===t);e&&(e.context=v)}),d.useMemo(()=>({...f,context:v,refs:g,elements:y}),[f,g,y,v])}const Ic="active",Oc="selected";function Rc(e,t,n){const r=new Map,i="item"===n;let o=e;if(i&&e){const{[Ic]:t,[Oc]:n,...r}=e;o=r}return{..."floating"===n&&{tabIndex:-1,[Ac]:""},...o,...t.map(t=>{const r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r}).concat(e).reduce((e,t)=>t?(Object.entries(t).forEach(t=>{let[n,o]=t;var s;i&&[Ic,Oc].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof o&&(null==(s=r.get(n))||s.push(o),e[n]=function(){for(var e,t=arguments.length,i=new Array(t),o=0;o<t;o++)i[o]=arguments[o];return null==(e=r.get(n))?void 0:e.map(e=>e(...i)).find(e=>void 0!==e)})):e[n]=o)}),e):e,{})}}function Fc(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}let Pc=(0,d.createContext)({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});Pc.displayName="FloatingContext";let Mc=(0,d.createContext)(null);function jc(e=null){!1===e&&(e=null),"string"==typeof e&&(e={to:e});let t=(0,d.useContext)(Mc),n=(0,d.useMemo)(()=>e,[JSON.stringify(e,(e,t)=>{var n;return null!=(n=null==t?void 0:t.outerHTML)?n:t})]);sa(()=>{null==t||t(null!=n?n:null)},[t,n]);let r=(0,d.useContext)(Pc);return(0,d.useMemo)(()=>[r.setFloating,e?r.styles:{}],[r.setFloating,e,r.styles])}function Vc({children:e,enabled:t=!0}){let[n,r]=(0,d.useState)(null),[i,o]=(0,d.useState)(0),s=(0,d.useRef)(null),[a,l]=(0,d.useState)(null);!function(e){sa(()=>{if(!e)return;let t=new MutationObserver(()=>{let t=window.getComputedStyle(e).maxHeight,n=parseFloat(t);if(isNaN(n))return;let r=parseInt(t);isNaN(r)||n!==r&&(e.style.maxHeight=`${Math.ceil(n)}px`)});return t.observe(e,{attributes:!0,attributeFilter:["style"]}),()=>{t.disconnect()}},[e])}(a);let u=t&&null!==n&&null!==a,{to:c="bottom",gap:p=0,offset:f=0,padding:h=0,inner:m}=function(e,t){var n,r,i;let o=Kc(null!=(n=null==e?void 0:e.gap)?n:"var(--anchor-gap, 0)",t),s=Kc(null!=(r=null==e?void 0:e.offset)?r:"var(--anchor-offset, 0)",t),a=Kc(null!=(i=null==e?void 0:e.padding)?i:"var(--anchor-padding, 0)",t);return{...e,gap:o,offset:s,padding:a}}(n,a),[g,y="center"]=c.split(" ");sa(()=>{u&&o(0)},[u]);let{refs:v,floatingStyles:b,context:E}=Lc({open:u,placement:"selection"===g?"center"===y?"bottom":`bottom-${y}`:"center"===y?`${g}`:`${g}-${y}`,strategy:"absolute",transform:!1,middleware:[fc({mainAxis:"selection"===g?0:p,crossAxis:f}),hc({padding:h}),"selection"!==g&&gc({padding:h}),"selection"===g&&m?(k={...m,padding:h,overflowRef:s,offset:i,minItemsVisible:4,referenceOverflowThreshold:h,onFallbackChange(e){var t,n;if(!e)return;let r=E.elements.floating;if(!r)return;let i=parseFloat(getComputedStyle(r).scrollPaddingBottom)||0,s=Math.min(4,r.childElementCount),a=0,l=0;for(let e of null!=(n=null==(t=E.elements.floating)?void 0:t.childNodes)?n:[])if(ga(e)){let t=e.offsetTop,n=t+e.clientHeight+i,o=r.scrollTop,u=o+r.clientHeight;if(!(t>=o&&n<=u)){l=Math.max(0,Math.min(n,u)-Math.max(t,o)),a=e.clientHeight;break}s--}s>=1&&o(e=>{let t=a*s-l+i;return e>=t?e:t})}},{name:"inner",options:k,async fn(e){const{listRef:t,overflowRef:n,onFallbackChange:r,offset:i=0,index:o=0,minItemsVisible:s=4,referenceOverflowThreshold:a=0,scrollRef:l,...u}=du(k,e),{rects:c,elements:{floating:d}}=e,p=t.current[o],f=(null==l?void 0:l.current)||d,h=d.clientTop||f.clientTop,m=0!==d.clientTop,g=0!==f.clientTop,y=d===f;if(!p)return{};const v={...e,...await fc(-p.offsetTop-d.clientTop-c.reference.height/2-p.offsetHeight/2-i).fn(e)},b=await Xu(Fc(v,f.scrollHeight+h+d.clientTop),u),E=await Xu(v,{...u,elementContext:"reference"}),T=iu(0,b.top),w=v.y+T,S=(f.scrollHeight>f.clientHeight?e=>e:ou)(iu(0,f.scrollHeight+(m&&y||g?2*h:0)-T-iu(0,b.bottom)));if(f.style.maxHeight=S+"px",f.scrollTop=T,r){const e=f.offsetHeight<p.offsetHeight*ru(s,t.current.length)-1||E.top>=-a||E.bottom>=-a;Fs.flushSync(()=>r(e))}return n&&(n.current=await Xu(Fc({...v,y:w},f.offsetHeight+h+d.clientTop),u)),{y:w}}}):null,yc({padding:h,apply({availableWidth:e,availableHeight:t,elements:n}){Object.assign(n.floating.style,{overflow:"auto",maxWidth:`${e}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${t}px)`})}})].filter(Boolean),whileElementsMounted:Yu}),[T=g,w=y]=E.placement.split("-");var k;"selection"===g&&(T="selection");let S=(0,d.useMemo)(()=>({anchor:[T,w].filter(Boolean).join(" ")}),[T,w]),x=function(e,t){const{open:n,elements:r}=e,{enabled:i=!0,overflowRef:o,scrollRef:s,onChange:a}=t,l=wc(a),u=d.useRef(!1),c=d.useRef(null),p=d.useRef(null);d.useEffect(()=>{if(!i)return;function e(e){if(e.ctrlKey||!t||null==o.current)return;const n=e.deltaY,r=o.current.top>=-.5,i=o.current.bottom>=-.5,s=t.scrollHeight-t.clientHeight,a=n<0?-1:1,u=n<0?"max":"min";t.scrollHeight<=t.clientHeight||(!r&&n>0||!i&&n<0?(e.preventDefault(),Fs.flushSync(()=>{l(e=>e+Math[u](n,s*a))})):/firefox/i.test(function(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:n}=e;return t+"/"+n}).join(" "):navigator.userAgent}())&&(t.scrollTop+=n))}const t=(null==s?void 0:s.current)||r.floating;return n&&t?(t.addEventListener("wheel",e),requestAnimationFrame(()=>{c.current=t.scrollTop,null!=o.current&&(p.current={...o.current})}),()=>{c.current=null,p.current=null,t.removeEventListener("wheel",e)}):void 0},[i,n,r.floating,o,s,l]);const f=d.useMemo(()=>({onKeyDown(){u.current=!0},onWheel(){u.current=!1},onPointerMove(){u.current=!1},onScroll(){const e=(null==s?void 0:s.current)||r.floating;if(o.current&&e&&u.current){if(null!==c.current){const t=e.scrollTop-c.current;(o.current.bottom<-.5&&t<-1||o.current.top<-.5&&t>1)&&Fs.flushSync(()=>l(e=>e+t))}requestAnimationFrame(()=>{c.current=e.scrollTop})}}}),[r.floating,l,o,s]);return d.useMemo(()=>i?{floating:f}:{},[i,f])}(E,{overflowRef:s,onChange:o}),{getReferenceProps:C,getFloatingProps:_}=function(e){void 0===e&&(e=[]);const t=e.map(e=>null==e?void 0:e.reference),n=e.map(e=>null==e?void 0:e.floating),r=e.map(e=>null==e?void 0:e.item),i=d.useCallback(t=>Rc(t,e,"reference"),t),o=d.useCallback(t=>Rc(t,e,"floating"),n),s=d.useCallback(t=>Rc(t,e,"item"),r);return d.useMemo(()=>({getReferenceProps:i,getFloatingProps:o,getItemProps:s}),[i,o,s])}([x]),N=la(e=>{l(e),v.setFloating(e)});return d.createElement(Mc.Provider,{value:r},d.createElement(Pc.Provider,{value:{setFloating:N,setReference:v.setReference,styles:b,getReferenceProps:C,getFloatingProps:_,slot:S}},e))}function Kc(e,t,n=void 0){let r=oa(),i=la((e,t)=>{if(null==e)return[n,null];if("number"==typeof e)return[e,null];if("string"==typeof e){if(!t)return[n,null];let i=Bc(e,t);return[i,n=>{let o=Uc(e);{let s=o.map(e=>window.getComputedStyle(t).getPropertyValue(e));r.requestAnimationFrame(function a(){r.nextFrame(a);let l=!1;for(let[e,n]of o.entries()){let r=window.getComputedStyle(t).getPropertyValue(n);if(s[e]!==r){s[e]=r,l=!0;break}}if(!l)return;let u=Bc(e,t);i!==u&&(n(u),i=u)})}return r.dispose}]}return[n,null]}),o=(0,d.useMemo)(()=>i(e,t)[0],[e,t]),[s=o,a]=(0,d.useState)();return sa(()=>{let[n,r]=i(e,t);if(a(n),r)return r(a)},[e,t]),s}function Uc(e){let t=/var\((.*)\)/.exec(e);if(t){let e=t[1].indexOf(",");if(-1===e)return[t[1]];let n=t[1].slice(0,e).trim(),r=t[1].slice(e+1).trim();return r?[n,...Uc(r)]:[n]}return[]}function Bc(e,t){let n=document.createElement("div");t.appendChild(n),n.style.setProperty("margin-top","0px","important"),n.style.setProperty("margin-top",e,"important");let r=parseFloat(window.getComputedStyle(n).marginTop)||0;return t.removeChild(n),r}function $c(e={},t=null,n=[]){for(let[r,i]of Object.entries(e))zc(n,qc(t,r),i);return n}function qc(e,t){return e?e+"["+t+"]":t}function zc(e,t,n){if(Array.isArray(n))for(let[r,i]of n.entries())zc(e,qc(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,""]):function(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;let t=Object.getPrototypeOf(e);return null===t||null===Object.getPrototypeOf(t)}(n)&&!(0,d.isValidElement)(n)&&$c(n,t,e)}function Gc(...e){return Array.from(new Set(e.flatMap(e=>"string"==typeof e?e.split(" "):[]))).filter(Boolean).join(" ")}Mc.displayName="PlacementContext";var Qc=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Qc||{}),Hc=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Hc||{});function Wc(){let e=function(){let e=(0,d.useRef)([]),t=(0,d.useCallback)(t=>{for(let n of e.current)null!=n&&("function"==typeof n?n(t):n.current=t)},[]);return(...n)=>{if(!n.every(e=>null==e))return e.current=n,t}}();return(0,d.useCallback)(t=>function({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:o=!0,name:s,mergeRefs:a}){a=null!=a?a:Xc;let l=Jc(t,e);if(o)return Yc(l,n,r,s,a);let u=null!=i?i:0;if(2&u){let{static:e=!1,...t}=l;if(e)return Yc(t,n,r,s,a)}if(1&u){let{unmount:e=!0,...t}=l;return ja(e?0:1,{0:()=>null,1:()=>Yc({...t,hidden:!0,style:{display:"none"}},n,r,s,a)})}return Yc(l,n,r,s,a)}({mergeRefs:e,...t}),[e])}function Yc(e,t={},n,r,i){let{as:o=n,children:s,refName:a="ref",...l}=nd(e,["unmount","static"]),u=void 0!==e.ref?{[a]:e.ref}:{},c="function"==typeof s?s(t):s;"className"in l&&l.className&&"function"==typeof l.className&&(l.className=l.className(t)),l["aria-labelledby"]&&l["aria-labelledby"]===l.id&&(l["aria-labelledby"]=void 0);let p={};if(t){let e=!1,n=[];for(let[r,i]of Object.entries(t))"boolean"==typeof i&&(e=!0),!0===i&&n.push(r.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`));if(e){p["data-headlessui-state"]=n.join(" ");for(let e of n)p[`data-${e}`]=""}}if(id(o)&&(Object.keys(td(l)).length>0||Object.keys(td(p)).length>0)){if(!(!(0,d.isValidElement)(c)||Array.isArray(c)&&c.length>1||function(e){return id(e.type)}(c))){let e=c.props,t=null==e?void 0:e.className,n="function"==typeof t?(...e)=>Gc(t(...e),l.className):Gc(t,l.className),r=n?{className:n}:{},o=Jc(c.props,td(nd(l,["ref"])));for(let e in p)e in o&&delete p[e];return(0,d.cloneElement)(c,Object.assign({},o,p,u,{ref:i(rd(c),u.ref)},r))}if(Object.keys(td(l)).length>0)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(td(l)).concat(Object.keys(td(p))).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"))}return(0,d.createElement)(o,Object.assign({},nd(l,["ref"]),!id(o)&&u,!id(o)&&p),c)}function Xc(...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 Jc(...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"])for(let e in n)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(e)&&(n[e]=[e=>{var t;return null==(t=null==e?void 0:e.preventDefault)?void 0:t.call(e)}]);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 Zc(...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];for(let e in n)Object.assign(t,{[e](...t){let r=n[e];for(let e of r)null==e||e(...t)}});return t}function ed(e){var t;return Object.assign((0,d.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function td(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function nd(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}function rd(e){return d.version.split(".")[0]>="19"?e.props.ref:e.ref}function id(e){return e===d.Fragment||e===Symbol.for("react.fragment")}var od=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(od||{});let sd=ed(function(e,t){var n;let{features:r=1,...i}=e,o={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"}}};return Wc()({ourProps:o,theirProps:i,slot:{},defaultTag:"span",name:"Hidden"})}),ad=(0,d.createContext)(null);function ld({children:e}){let t=(0,d.useContext)(ad);if(!t)return d.createElement(d.Fragment,null,e);let{target:n}=t;return n?(0,Fs.createPortal)(d.createElement(d.Fragment,null,e),n):null}function ud({data:e,form:t,disabled:n,onReset:r,overrides:i}){let[o,s]=(0,d.useState)(null),a=oa();return(0,d.useEffect)(()=>{if(r&&o)return a.addEventListener(o,"reset",r)},[o,t,r]),d.createElement(ld,null,d.createElement(cd,{setForm:s,formId:t}),$c(e).map(([e,r])=>d.createElement(sd,{features:od.Hidden,...td({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:t,disabled:n,name:e,value:r,...i})})))}function cd({setForm:e,formId:t}){return(0,d.useEffect)(()=>{if(t){let n=document.getElementById(t);n&&e(n)}},[e,t]),t?null:d.createElement(sd,{features:od.Hidden,as:"input",type:"hidden",hidden:!0,readOnly:!0,ref:t=>{if(!t)return;let n=t.closest("form");n&&e(n)}})}const dd=d.forwardRef(function({children:e,freeze:t},n){let r=pd(t,e);return(0,d.isValidElement)(r)?(0,d.cloneElement)(r,{ref:n}):d.createElement(d.Fragment,null,r)});function pd(e,t){let[n,r]=(0,d.useState)(t);return!e&&n!==t&&r(t),e?n:t}let fd=(0,d.createContext)(void 0);function hd(){return(0,d.useContext)(fd)}let md=(0,d.createContext)(null);md.displayName="OpenClosedContext";var gd=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(gd||{});function yd({value:e,children:t}){return d.createElement(md.Provider,{value:e},t)}let vd=[];!function(){function e(){"loading"!==document.readyState&&((()=>{function e(e){if(!ya(e.target)||e.target===document.body||vd[0]===e.target)return;let t=e.target;t=t.closest(Ja),vd.unshift(null!=t?t:e.target),vd=vd.filter(e=>null!=e&&e.isConnected),vd.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 bd=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(bd||{});function Ed(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:-1===i&&(i=n.length);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)}}let Td=(0,d.createContext)(null);function wd(){let e=(0,d.useContext)(Td);if(null===e){let e=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,wd),e}return e}Td.displayName="DescriptionContext";let kd=ed(function(e,t){let n=(0,d.useId)(),r=Nl(),{id:i=`headlessui-description-${n}`,...o}=e,s=wd(),a=El(t);sa(()=>s.register(i),[i,s.register]);let l=vl({...s.slot,disabled:r||!1}),u={ref:a,...s.props,id:i};return Wc()({ourProps:u,theirProps:o,slot:l,defaultTag:"p",name:s.name||"Description"})});Object.assign(kd,{});var Sd=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(Sd||{});let xd=(0,d.createContext)(null);function Cd(){let e=(0,d.useContext)(xd);if(null===e){let e=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,Cd),e}return e}function _d(e){var t,n,r;let i=null!=(n=null==(t=(0,d.useContext)(xd))?void 0:t.value)?n:void 0;return(null!=(r=null==e?void 0:e.length)?r:0)>0?[i,...e].filter(Boolean).join(" "):i}xd.displayName="LabelContext";let Nd=ed(function(e,t){var n;let r=(0,d.useId)(),i=Cd(),o=hd(),s=Nl(),{id:a=`headlessui-label-${r}`,htmlFor:l=(null!=o?o:null==(n=i.props)?void 0:n.htmlFor),passive:u=!1,...c}=e,p=El(t);sa(()=>i.register(a),[a,i.register]);let f=la(e=>{let t=e.currentTarget;if((e.target===e.currentTarget||!ka(e.target))&&(Ea(t)&&e.preventDefault(),i.props&&"onClick"in i.props&&"function"==typeof i.props.onClick&&i.props.onClick(e),Ea(t))){let e=document.getElementById(t.htmlFor);if(e){let t=e.getAttribute("disabled");if("true"===t||""===t)return;let n=e.getAttribute("aria-disabled");if("true"===n||""===n)return;(ba(e)&&("file"===e.type||"radio"===e.type||"checkbox"===e.type)||"radio"===e.role||"checkbox"===e.role||"switch"===e.role)&&e.click(),e.focus({preventScroll:!0})}}}),h=vl({...i.slot,disabled:s||!1}),m={ref:p,...i.props,id:a,htmlFor:l,onClick:f};return u&&("onClick"in m&&(delete m.htmlFor,delete m.onClick),"onClick"in c&&delete c.onClick),Wc()({ourProps:m,theirProps:c,slot:h,defaultTag:l?"label":"div",name:i.name||"Label"})}),Dd=Object.assign(Nd,{});function Ad(e){let t=la(e),n=(0,d.useRef)(!1);(0,d.useEffect)(()=>(n.current=!1,()=>{n.current=!0,ra(()=>{n.current&&t()})}),[t])}let Ld=(0,d.createContext)(!1);let Id=d.Fragment,Od=ed(function(e,t){let{ownerDocument:n=null,...r}=e,i=(0,d.useRef)(null),o=El(function(e,t=!0){return Object.assign(e,{[bl]:t})}(e=>{i.current=e}),t),s=ul(i.current),a=function(e){let t=(0,d.useContext)(Ld),n=(0,d.useContext)(Fd),[r,i]=(0,d.useState)(()=>{var r;if(!t&&null!==n)return null!=(r=n.current)?r:null;if(Zs.isServer)return null;let i=null==e?void 0:e.getElementById("headlessui-portal-root");if(i)return i;if(null===e)return null;let o=e.createElement("div");return o.setAttribute("id","headlessui-portal-root"),e.body.appendChild(o)});return(0,d.useEffect)(()=>{null!==r&&(null!=e&&e.body.contains(r)||null==e||e.body.appendChild(r))},[r,e]),(0,d.useEffect)(()=>{t||null!==n&&i(n.current)},[n,i,t]),r}(null!=n?n:s),l=(0,d.useContext)(Pd),u=oa(),c=Wc();return Ad(()=>{var e;a&&a.childNodes.length<=0&&(null==(e=a.parentElement)||e.removeChild(a))}),a?(0,Fs.createPortal)(d.createElement("div",{"data-headlessui-portal":"",ref:e=>{u.dispose(),l&&e&&u.add(l.register(e))}},c({ourProps:{ref:o},theirProps:r,slot:{},defaultTag:Id,name:"Portal"})),a):null}),Rd=d.Fragment,Fd=(0,d.createContext)(null),Pd=(0,d.createContext)(null),Md=ed(function(e,t){let n=El(t),{enabled:r=!0,ownerDocument:i,...o}=e,s=Wc();return r?d.createElement(Od,{...o,ownerDocument:i,ref:n}):s({ourProps:{ref:n},theirProps:o,slot:{},defaultTag:Id,name:"Portal"})}),jd=ed(function(e,t){let{target:n,...r}=e,i={ref:El(t)},o=Wc();return d.createElement(Fd.Provider,{value:n},o({ourProps:i,theirProps:r,defaultTag:Rd,name:"Popover.Group"}))}),Vd=Object.assign(Md,{Group:jd});const Kd={Idle:{kind:"Idle"},Tracked:e=>({kind:"Tracked",position:e}),Moved:{kind:"Moved"}};function Ud(e){let t=e.getBoundingClientRect();return`${t.x},${t.y}`}var Bd=Object.defineProperty,$d=(e,t,n)=>(((e,t,n)=>{t in e?Bd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n),qd=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(qd||{}),zd=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(zd||{}),Gd=(e=>(e[e.Pointer=0]="Pointer",e[e.Focus=1]="Focus",e[e.Other=2]="Other",e))(Gd||{}),Qd=(e=>(e[e.OpenCombobox=0]="OpenCombobox",e[e.CloseCombobox=1]="CloseCombobox",e[e.GoToOption=2]="GoToOption",e[e.SetTyping=3]="SetTyping",e[e.RegisterOption=4]="RegisterOption",e[e.UnregisterOption=5]="UnregisterOption",e[e.DefaultToFirstOption=6]="DefaultToFirstOption",e[e.SetActivationTrigger=7]="SetActivationTrigger",e[e.UpdateVirtualConfiguration=8]="UpdateVirtualConfiguration",e[e.SetInputElement=9]="SetInputElement",e[e.SetButtonElement=10]="SetButtonElement",e[e.SetOptionsElement=11]="SetOptionsElement",e[e.MarkInputAsMoved=12]="MarkInputAsMoved",e))(Qd||{});function Hd(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 Wd={1(e){var t;if(null!=(t=e.dataRef.current)&&t.disabled||1===e.comboboxState)return e;let n=e.inputElement?Kd.Tracked(Ud(e.inputElement)):e.inputPositionState;return{...e,activeOptionIndex:null,comboboxState:1,isTyping:!1,activationTrigger:2,inputPositionState:n,__demoMode:!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,__demoMode:!1,inputPositionState:Kd.Idle}}return{...e,comboboxState:0,inputPositionState:Kd.Idle,__demoMode:!1}},3:(e,t)=>e.isTyping===t.isTyping?e:{...e,isTyping:t.isTyping},2(e,t){var n,r,i,o;if(null!=(n=e.dataRef.current)&&n.disabled||e.optionsElement&&(null==(r=e.dataRef.current)||!r.optionsPropsRef.current.static)&&1===e.comboboxState)return e;if(e.virtual){let{options:n,disabled:r}=e.virtual,o=t.focus===bd.Specific?t.idx:Ed(t,{resolveItems:()=>n,resolveActiveIndex:()=>{var t,i;return null!=(i=null!=(t=e.activeOptionIndex)?t:n.findIndex(e=>!r(e)))?i:null},resolveDisabled:r,resolveId(){throw new Error("Function not implemented.")}}),s=null!=(i=t.trigger)?i:2;return e.activeOptionIndex===o&&e.activationTrigger===s?e:{...e,activeOptionIndex:o,activationTrigger:s,isTyping:!1,__demoMode:!1}}let s=Hd(e);if(null===s.activeOptionIndex){let e=s.options.findIndex(e=>!e.dataRef.current.disabled);-1!==e&&(s.activeOptionIndex=e)}let a=t.focus===bd.Specific?t.idx:Ed(t,{resolveItems:()=>s.options,resolveActiveIndex:()=>s.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled}),l=null!=(o=t.trigger)?o:2;return e.activeOptionIndex===a&&e.activationTrigger===l?e:{...e,...s,isTyping:!1,activeOptionIndex:a,activationTrigger:l,__demoMode:!1}},4:(e,t)=>{var n,r,i,o;if(null!=(n=e.dataRef.current)&&n.virtual)return{...e,options:[...e.options,t.payload]};let s=t.payload,a=Hd(e,e=>(e.push(s),e));null===e.activeOptionIndex&&null!=(i=(r=e.dataRef.current).isSelected)&&i.call(r,t.payload.dataRef.current.value)&&(a.activeOptionIndex=a.options.indexOf(s));let l={...e,...a,activationTrigger:2};return null!=(o=e.dataRef.current)&&o.__demoMode&&void 0===e.dataRef.current.value&&(l.activeOptionIndex=0),l},5:(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=Hd(e,e=>{let n=e.findIndex(e=>e.id===t.id);return-1!==n&&e.splice(n,1),e});return{...e,...r,activationTrigger:2}},6:(e,t)=>e.defaultToFirstOption===t.value?e:{...e,defaultToFirstOption:t.value},7:(e,t)=>e.activationTrigger===t.trigger?e:{...e,activationTrigger:t.trigger},8:(e,t)=>{var n,r;if(null===e.virtual)return{...e,virtual:{options:t.options,disabled:null!=(n=t.disabled)?n:()=>!1}};if(e.virtual.options===t.options&&e.virtual.disabled===t.disabled)return e;let i=e.activeOptionIndex;if(null!==e.activeOptionIndex){let n=t.options.indexOf(e.virtual.options[e.activeOptionIndex]);i=-1!==n?n:null}return{...e,activeOptionIndex:i,virtual:{options:t.options,disabled:null!=(r=t.disabled)?r:()=>!1}}},9:(e,t)=>e.inputElement===t.element?e:{...e,inputElement:t.element},10:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},11:(e,t)=>e.optionsElement===t.element?e:{...e,optionsElement:t.element},12:e=>"Tracked"!==e.inputPositionState.kind?e:{...e,inputPositionState:Kd.Moved}};class Yd extends Ra{constructor(e){super(e),$d(this,"actions",{onChange:e=>{let{onChange:t,compare:n,mode:r,value:i}=this.state.dataRef.current;return ja(r,{0:()=>null==t?void 0:t(e),1:()=>{let r=i.slice(),o=r.findIndex(t=>n(t,e));return-1===o?r.push(e):r.splice(o,1),null==t?void 0:t(r)}})},registerOption:(e,t)=>(this.send({type:4,payload:{id:e,dataRef:t}}),()=>{this.state.activeOptionIndex===this.state.dataRef.current.calculateIndex(t.current.value)&&this.send({type:6,value:!0}),this.send({type:5,id:e})}),goToOption:(e,t)=>(this.send({type:6,value:!1}),this.send({type:2,...e,trigger:t})),setIsTyping:e=>{this.send({type:3,isTyping:e})},closeCombobox:()=>{var e,t;this.send({type:1}),this.send({type:6,value:!1}),null==(t=(e=this.state.dataRef.current).onClose)||t.call(e)},openCombobox:()=>{this.send({type:0}),this.send({type:6,value:!0})},setActivationTrigger:e=>{this.send({type:7,trigger:e})},selectActiveOption:()=>{let e=this.selectors.activeOptionIndex(this.state);if(null!==e){if(this.actions.setIsTyping(!1),this.state.virtual)this.actions.onChange(this.state.virtual.options[e]);else{let{dataRef:t}=this.state.options[e];this.actions.onChange(t.current.value)}this.actions.goToOption({focus:bd.Specific,idx:e})}},setInputElement:e=>{this.send({type:9,element:e})},setButtonElement:e=>{this.send({type:10,element:e})},setOptionsElement:e=>{this.send({type:11,element:e})}}),$d(this,"selectors",{activeDescendantId:e=>{var t,n;let r=this.selectors.activeOptionIndex(e);if(null!==r)return e.virtual?null==(n=e.options.find(t=>!t.dataRef.current.disabled&&e.dataRef.current.compare(t.dataRef.current.value,e.virtual.options[r])))?void 0:n.id:null==(t=e.options[r])?void 0:t.id},activeOptionIndex:e=>{if(e.defaultToFirstOption&&null===e.activeOptionIndex&&(e.virtual?e.virtual.options.length>0:e.options.length>0)){if(e.virtual){let{options:t,disabled:n}=e.virtual,r=t.findIndex(e=>{var t;return!(null!=(t=null==n?void 0:n(e))&&t)});if(-1!==r)return r}let t=e.options.findIndex(e=>!e.dataRef.current.disabled);if(-1!==t)return t}return e.activeOptionIndex},activeOption:e=>{var t,n;let r=this.selectors.activeOptionIndex(e);return null===r?null:e.virtual?e.virtual.options[null!=r?r:0]:null!=(n=null==(t=e.options[r])?void 0:t.dataRef.current.value)?n:null},isActive:(e,t,n)=>{var r;let i=this.selectors.activeOptionIndex(e);return null!==i&&(e.virtual?i===e.dataRef.current.calculateIndex(t):(null==(r=e.options[i])?void 0:r.id)===n)},shouldScrollIntoView:(e,t,n)=>!(e.virtual||e.__demoMode||0!==e.comboboxState||0===e.activationTrigger||!this.selectors.isActive(e,t,n)),didInputMove:e=>"Moved"===e.inputPositionState.kind});{let e=this.state.id,t=qa.get(null);this.disposables.add(t.on(Ua.Push,n=>{!t.selectors.isTop(n,e)&&0===this.state.comboboxState&&this.actions.closeCombobox()})),this.on(0,()=>t.actions.push(e)),this.on(1,()=>t.actions.pop(e))}this.disposables.group(e=>{this.on(1,t=>{t.inputElement&&(e.dispose(),e.add(function(e,t,n){let r=ia();if("Tracked"===t.kind){let i=function(){o!==Ud(e)&&(r.dispose(),n())},{position:o}=t,s=new ResizeObserver(i);s.observe(e),r.add(()=>s.disconnect()),r.addEventListener(window,"scroll",i,{passive:!0}),r.addEventListener(window,"resize",i)}return()=>r.dispose()}(t.inputElement,t.inputPositionState,()=>{this.send({type:12})})))})})}static new({id:e,virtual:t=null,__demoMode:n=!1}){var r;return new Yd({id:e,dataRef:{current:{}},comboboxState:n?0:1,isTyping:!1,options:[],virtual:t?{options:t.options,disabled:null!=(r=t.disabled)?r:()=>!1}:null,activeOptionIndex:null,activationTrigger:2,inputElement:null,buttonElement:null,optionsElement:null,__demoMode:n,inputPositionState:Kd.Idle})}reduce(e,t){return ja(t.type,Wd,e,t)}}const Xd=(0,d.createContext)(null);function Jd(e){let t=(0,d.useContext)(Xd);if(null===t){let t=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Zd),t}return t}function Zd({id:e,virtual:t=null,__demoMode:n=!1}){let r=(0,d.useMemo)(()=>Yd.new({id:e,virtual:t,__demoMode:n}),[]);return Ad(()=>r.dispose()),r}let ep=(0,d.createContext)(null);function tp(e){let t=(0,d.useContext)(ep);if(null===t){let t=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,tp),t}return t}ep.displayName="ComboboxDataContext";let np=(0,d.createContext)(null);function rp(e){let t=Jd("VirtualProvider"),n=tp("VirtualProvider"),{options:r}=n.virtual,i=Ga(t,e=>e.optionsElement),[o,s]=(0,d.useMemo)(()=>{let e=i;if(!e)return[0,0];let t=window.getComputedStyle(e);return[parseFloat(t.paddingBlockStart||t.paddingTop),parseFloat(t.paddingBlockEnd||t.paddingBottom)]},[i]),a=function(e){return function(e){const t=d.useReducer(()=>({}),{})[1],n={...e,onChange:(n,r)=>{var i;r?(0,Fs.flushSync)(t):t(),null==(i=e.onChange)||i.call(e,n,r)}},[r]=d.useState(()=>new Hs(n));return r.setOptions(n),Ys(()=>r._didMount(),[]),Ys(()=>r._willUpdate()),r}({observeElementRect:Bs,observeElementOffset:zs,scrollToFn:Qs,...e})}({enabled:0!==r.length,scrollPaddingStart:o,scrollPaddingEnd:s,count:r.length,estimateSize:()=>40,getScrollElement:()=>t.state.optionsElement,overscan:12}),[l,u]=(0,d.useState)(0);sa(()=>{u(e=>e+1)},[r]);let c=a.getVirtualItems(),p=Ga(t,e=>e.activationTrigger===Gd.Pointer),f=Ga(t,t.selectors.activeOptionIndex);return 0===c.length?null:d.createElement(np.Provider,{value:a},d.createElement("div",{style:{position:"relative",width:"100%",height:`${a.getTotalSize()}px`},ref:e=>{e&&(p||null!==f&&r.length>f&&a.scrollToIndex(f))}},c.map(t=>{var n;return d.createElement(d.Fragment,{key:t.key},d.cloneElement(null==(n=e.children)?void 0:n.call(e,{...e.slot,option:r[t.index]}),{key:`${l}-${t.key}`,"data-index":t.index,"aria-setsize":r.length,"aria-posinset":t.index+1,style:{position:"absolute",top:0,left:0,transform:`translateY(${t.start}px)`,overflowAnchor:"none"}}))})))}let ip=d.Fragment,op=Qc.RenderStrategy|Qc.Static,sp=ed(function(e,t){let n=(0,d.useId)(),r=Nl(),{value:i,defaultValue:o,onChange:s,form:a,name:l,by:u,invalid:c=!1,disabled:p=r||!1,onClose:f,__demoMode:h=!1,multiple:m=!1,immediate:g=!1,virtual:y=null,nullable:v,...b}=e,E=function(e){let[t]=(0,d.useState)(e);return t}(o),[T=(m?[]:void 0),w]=function(e,t,n){let[r,i]=(0,d.useState)(n),o=void 0!==e,s=(0,d.useRef)(o),a=(0,d.useRef)(!1),l=(0,d.useRef)(!1);return!o||s.current||a.current?!o&&s.current&&!l.current&&(l.current=!0,s.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.")):(a.current=!0,s.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,la(e=>(o||(0,Fs.flushSync)(()=>i(e)),null==t?void 0:t(e)))]}(i,s,E),k=Zd({id:n,virtual:y,__demoMode:h}),S=(0,d.useRef)({static:!1,hold:!1}),x=ca(u),C=la(e=>y?null===u?y.options.indexOf(e):y.options.findIndex(t=>x(t,e)):k.state.options.findIndex(t=>x(t.dataRef.current.value,e))),_=(0,d.useCallback)(e=>ja(A.mode,{[zd.Multi]:()=>T.some(t=>x(t,e)),[zd.Single]:()=>x(T,e)}),[T]),N=Ga(k,e=>e.virtual),D=la(()=>null==f?void 0:f()),A=(0,d.useMemo)(()=>({__demoMode:h,immediate:g,optionsPropsRef:S,value:T,defaultValue:E,disabled:p,invalid:c,mode:m?zd.Multi:zd.Single,virtual:y?N:null,onChange:w,isSelected:_,calculateIndex:C,compare:x,onClose:D}),[h,g,S,T,E,p,c,m,y,N,w,_,C,x,D]);sa(()=>{var e;y&&k.send({type:Qd.UpdateVirtualConfiguration,options:y.options,disabled:null!=(e=y.disabled)?e:null})},[y,null==y?void 0:y.options,null==y?void 0:y.disabled]),sa(()=>{k.state.dataRef.current=A},[A]);let[L,I,O,R]=Ga(k,e=>[e.comboboxState,e.buttonElement,e.inputElement,e.optionsElement]),F=qa.get(null),P=Ga(F,(0,d.useCallback)(e=>F.selectors.isTop(e,n),[F,n]));ll(P,[I,O,R],()=>k.actions.closeCombobox());let M=Ga(k,k.selectors.activeOptionIndex),j=Ga(k,k.selectors.activeOption),V=vl({open:L===qd.Open,disabled:p,invalid:c,activeIndex:M,activeOption:j,value:T}),[K,U]=function({inherit:e=!1}={}){let t=_d(),[n,r]=(0,d.useState)([]),i=e?[t,...n].filter(Boolean):n;return[i.length>0?i.join(" "):void 0,(0,d.useMemo)(()=>function(e){let t=la(e=>(r(t=>[...t,e]),()=>r(t=>{let n=t.slice(),r=n.indexOf(e);return-1!==r&&n.splice(r,1),n}))),n=(0,d.useMemo)(()=>({register:t,slot:e.slot,name:e.name,props:e.props,value:e.value}),[t,e.slot,e.name,e.props,e.value]);return d.createElement(xd.Provider,{value:n},e.children)},[r])]}(),B=null===t?{}:{ref:t},$=(0,d.useCallback)(()=>{if(void 0!==E)return null==w?void 0:w(E)},[w,E]),q=Wc();return d.createElement(U,{value:K,props:{htmlFor:null==O?void 0:O.id},slot:{open:L===qd.Open,disabled:p}},d.createElement(Vc,null,d.createElement(ep.Provider,{value:A},d.createElement(Xd.Provider,{value:k},d.createElement(yd,{value:ja(L,{[qd.Open]:gd.Open,[qd.Closed]:gd.Closed})},null!=l&&d.createElement(ud,{disabled:p,data:null!=T?{[l]:T}:{},form:a,onReset:$}),q({ourProps:B,theirProps:b,slot:V,defaultTag:ip,name:"Combobox"}))))))}),ap=ed(function(e,t){let n=Jd("Combobox.Button"),r=tp("Combobox.Button"),[i,o]=(0,d.useState)(null),s=El(t,o,n.actions.setButtonElement),a=(0,d.useId)(),{id:l=`headlessui-combobox-button-${a}`,disabled:u=r.disabled||!1,autoFocus:c=!1,...p}=e,[f,h,m]=Ga(n,e=>[e.comboboxState,e.inputElement,e.optionsElement]),g=fl(h);!function(e,{trigger:t,action:n,close:r,select:i}){let o=(0,d.useRef)(null),s=(0,d.useRef)(null),a=(0,d.useRef)(null);al(e&&null!==t,"pointerdown",e=>{ha(null==e?void 0:e.target)&&null!=t&&t.contains(e.target)&&(s.current=e.x,a.current=e.y,o.current=e.timeStamp)}),al(e&&null!==t,"pointerup",e=>{var t,l;let u=o.current;if(null===u||(o.current=null,!ya(e.target))||Math.abs(e.x-(null!=(t=s.current)?t:e.x))<5&&Math.abs(e.y-(null!=(l=a.current)?l:e.y))<5)return;let c=n(e);switch(c.kind){case 0:return;case 1:e.timeStamp-u>200&&(i(c.target),r());break;case 2:r()}},{capture:!0})}(f===qd.Open,{trigger:i,action:(0,d.useCallback)(e=>{if(null!=i&&i.contains(e.target))return pl.Ignore;if(null!=h&&h.contains(e.target))return pl.Ignore;let t=e.target.closest('[role="option"]:not([data-disabled])');return ga(t)?pl.Select(t):null!=m&&m.contains(e.target)?pl.Ignore:pl.Close},[i,h,m]),close:n.actions.closeCombobox,select:n.actions.selectActiveOption});let y=la(e=>{switch(e.key){case Sd.Space:case Sd.Enter:return e.preventDefault(),e.stopPropagation(),n.state.comboboxState===qd.Closed&&(0,Fs.flushSync)(()=>n.actions.openCombobox()),void g();case Sd.ArrowDown:return e.preventDefault(),e.stopPropagation(),n.state.comboboxState===qd.Closed&&((0,Fs.flushSync)(()=>n.actions.openCombobox()),n.state.dataRef.current.value||n.actions.goToOption({focus:bd.First})),void g();case Sd.ArrowUp:return e.preventDefault(),e.stopPropagation(),n.state.comboboxState===qd.Closed&&((0,Fs.flushSync)(()=>n.actions.openCombobox()),n.state.dataRef.current.value||n.actions.goToOption({focus:bd.Last})),void g();case Sd.Escape:if(n.state.comboboxState!==qd.Open)return;return e.preventDefault(),n.state.optionsElement&&!r.optionsPropsRef.current.static&&e.stopPropagation(),(0,Fs.flushSync)(()=>n.actions.closeCombobox()),void g();default:return}}),v=function(e){let t=(0,d.useRef)(null),n=la(n=>{t.current=n.pointerType,!Sa(n.currentTarget)&&"mouse"===n.pointerType&&n.button===fa.Left&&(n.preventDefault(),e())}),r=la(n=>{"mouse"!==t.current&&(Sa(n.currentTarget)||e())});return{onPointerDown:n,onClick:r}}(()=>{n.state.comboboxState===qd.Open?n.actions.closeCombobox():n.actions.openCombobox(),g()}),b=_d([l]),{isFocusVisible:E,focusProps:T}=Ds({autoFocus:c}),{isHovered:w,hoverProps:k}=Rs({isDisabled:u}),{pressed:S,pressProps:x}=function({disabled:e=!1}={}){let t=(0,d.useRef)(null),[n,r]=(0,d.useState)(!1),i=oa(),o=la(()=>{t.current=null,r(!1),i.dispose()}),s=la(e=>{if(i.dispose(),null===t.current){t.current=e.currentTarget,r(!0);{let n=ea(e.currentTarget);i.addEventListener(n,"pointerup",o,!1),i.addEventListener(n,"pointermove",e=>{if(t.current){let n=function(e){let t=e.width/2,n=e.height/2;return{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}(e);r(function(e,t){return!(!e||!t||e.right<t.left||e.left>t.right||e.bottom<t.top||e.top>t.bottom)}(n,t.current.getBoundingClientRect()))}},!1),i.addEventListener(n,"pointercancel",o,!1)}}});return{pressed:n,pressProps:e?{}:{onPointerDown:s,onPointerUp:o,onClick:o}}}({disabled:u}),C=vl({open:f===qd.Open,active:S||f===qd.Open,disabled:u,invalid:r.invalid,value:r.value,hover:w,focus:E}),_=Zc({ref:s,id:l,type:hl(e,i),tabIndex:-1,"aria-haspopup":"listbox","aria-controls":null==m?void 0:m.id,"aria-expanded":f===qd.Open,"aria-labelledby":b,disabled:u||void 0,autoFocus:c,onKeyDown:y},v,T,k,x);return Wc()({ourProps:_,theirProps:p,slot:C,defaultTag:"button",name:"Combobox.Button"})}),lp=ed(function(e,t){var n,r;let i=Jd("Combobox.Input"),o=tp("Combobox.Input"),s=(0,d.useId)(),a=hd(),{id:l=a||`headlessui-combobox-input-${s}`,onChange:u,displayValue:c,disabled:p=o.disabled||!1,autoFocus:f=!1,type:h="text",...m}=e,g=(0,d.useRef)(null),y=El(g,t,(0,d.useContext)(Pc).setReference,i.actions.setInputElement),[v,b]=Ga(i,e=>[e.comboboxState,e.isTyping]),E=oa(),T=la(()=>{i.actions.onChange(null),i.state.optionsElement&&(i.state.optionsElement.scrollTop=0),i.actions.goToOption({focus:bd.Nothing})}),w=(0,d.useMemo)(()=>{var e;return"function"==typeof c&&void 0!==o.value?null!=(e=c(o.value))?e:"":"string"==typeof o.value?o.value:""},[o.value,c]);Cl(([e,t],[n,r])=>{if(i.state.isTyping)return;let o=g.current;o&&((r===qd.Open&&t===qd.Closed||e!==n)&&(o.value=e),requestAnimationFrame(()=>{if(i.state.isTyping||!o||na(o))return;let{selectionStart:e,selectionEnd:t}=o;0===Math.abs((null!=t?t:0)-(null!=e?e:0))&&0===e&&o.setSelectionRange(o.value.length,o.value.length)}))},[w,v,b]),Cl(([e],[t])=>{if(e===qd.Open&&t===qd.Closed){if(i.state.isTyping)return;let e=g.current;if(!e)return;let t=e.value,{selectionStart:n,selectionEnd:r,selectionDirection:o}=e;e.value="",e.value=t,null!==o?e.setSelectionRange(n,r,o):e.setSelectionRange(n,r)}},[v]);let k=(0,d.useRef)(!1),S=la(()=>{k.current=!0}),x=la(()=>{E.nextFrame(()=>{k.current=!1})}),C=la(e=>{switch(i.actions.setIsTyping(!0),e.key){case Sd.Enter:if(i.state.comboboxState!==qd.Open||k.current)return;if(e.preventDefault(),e.stopPropagation(),null===i.selectors.activeOptionIndex(i.state))return void i.actions.closeCombobox();i.actions.selectActiveOption(),o.mode===zd.Single&&i.actions.closeCombobox();break;case Sd.ArrowDown:return e.preventDefault(),e.stopPropagation(),ja(i.state.comboboxState,{[qd.Open]:()=>i.actions.goToOption({focus:bd.Next}),[qd.Closed]:()=>i.actions.openCombobox()});case Sd.ArrowUp:return e.preventDefault(),e.stopPropagation(),ja(i.state.comboboxState,{[qd.Open]:()=>i.actions.goToOption({focus:bd.Previous}),[qd.Closed]:()=>{(0,Fs.flushSync)(()=>i.actions.openCombobox()),o.value||i.actions.goToOption({focus:bd.Last})}});case Sd.Home:if(i.state.comboboxState===qd.Closed||e.shiftKey)break;return e.preventDefault(),e.stopPropagation(),i.actions.goToOption({focus:bd.First});case Sd.PageUp:return e.preventDefault(),e.stopPropagation(),i.actions.goToOption({focus:bd.First});case Sd.End:if(i.state.comboboxState===qd.Closed||e.shiftKey)break;return e.preventDefault(),e.stopPropagation(),i.actions.goToOption({focus:bd.Last});case Sd.PageDown:return e.preventDefault(),e.stopPropagation(),i.actions.goToOption({focus:bd.Last});case Sd.Escape:return i.state.comboboxState!==qd.Open?void 0:(e.preventDefault(),i.state.optionsElement&&!o.optionsPropsRef.current.static&&e.stopPropagation(),o.mode===zd.Single&&null===o.value&&T(),i.actions.closeCombobox());case Sd.Tab:if(i.actions.setIsTyping(!1),i.state.comboboxState!==qd.Open)return;o.mode===zd.Single&&i.state.activationTrigger!==Gd.Focus&&i.actions.selectActiveOption(),i.actions.closeCombobox()}}),_=la(e=>{null==u||u(e),o.mode===zd.Single&&""===e.target.value&&T(),i.actions.openCombobox()}),N=la(e=>{var t,n,r;let s=null!=(t=e.relatedTarget)?t:vd.find(t=>t!==e.currentTarget);if(!(null!=(n=i.state.optionsElement)&&n.contains(s)||null!=(r=i.state.buttonElement)&&r.contains(s)||i.state.comboboxState!==qd.Open))return e.preventDefault(),o.mode===zd.Single&&null===o.value&&T(),i.actions.closeCombobox()}),D=la(e=>{var t,n,r;let s=null!=(t=e.relatedTarget)?t:vd.find(t=>t!==e.currentTarget);null!=(n=i.state.buttonElement)&&n.contains(s)||null!=(r=i.state.optionsElement)&&r.contains(s)||o.disabled||o.immediate&&i.state.comboboxState!==qd.Open&&E.microTask(()=>{(0,Fs.flushSync)(()=>i.actions.openCombobox()),i.actions.setActivationTrigger(Gd.Focus)})}),A=_d(),L=function(){var e,t;return null!=(t=null==(e=(0,d.useContext)(Td))?void 0:e.value)?t:void 0}(),{isFocused:I,focusProps:O}=Ds({autoFocus:f}),{isHovered:R,hoverProps:F}=Rs({isDisabled:p}),P=Ga(i,e=>e.optionsElement),M=vl({open:v===qd.Open,disabled:p,invalid:o.invalid,hover:R,focus:I,autofocus:f}),j=Zc({ref:y,id:l,role:"combobox",type:h,"aria-controls":null==P?void 0:P.id,"aria-expanded":v===qd.Open,"aria-activedescendant":Ga(i,i.selectors.activeDescendantId),"aria-labelledby":A,"aria-describedby":L,"aria-autocomplete":"list",defaultValue:null!=(r=null!=(n=e.defaultValue)?n:void 0!==o.defaultValue?null==c?void 0:c(o.defaultValue):null)?r:o.defaultValue,disabled:p||void 0,autoFocus:f,onCompositionStart:S,onCompositionEnd:x,onKeyDown:C,onChange:_,onFocus:D,onBlur:N},O,F);return Wc()({ourProps:j,theirProps:m,slot:M,defaultTag:"input",name:"Combobox.Input"})}),up=Dd,cp=ed(function(e,t){var n,r,i;let o=(0,d.useId)(),{id:s=`headlessui-combobox-options-${o}`,hold:a=!1,anchor:l,portal:u=!1,modal:c=!0,transition:p=!1,...f}=e,h=Jd("Combobox.Options"),m=tp("Combobox.Options"),g=function(e){return(0,d.useMemo)(()=>e?"string"==typeof e?{to:e}:e:null,[e])}(l);g&&(u=!0);let[y,v]=jc(g),[b,E]=(0,d.useState)(null),T=function(){let{getFloatingProps:e,slot:t}=(0,d.useContext)(Pc);return(0,d.useCallback)((...n)=>Object.assign({},e(...n),{"data-anchor":t.anchor}),[e,t])}(),w=El(t,g?y:null,h.actions.setOptionsElement,E),[k,S,x,C,_]=Ga(h,e=>[e.comboboxState,e.inputElement,e.buttonElement,e.optionsElement,e.activationTrigger]),N=ul(S||x),D=ul(C),A=(0,d.useContext)(md),[L,I]=function(e,t,n,r){let[i,o]=(0,d.useState)(n),{hasFlag:s,addFlag:a,removeFlag:l}=function(e=0){let[t,n]=(0,d.useState)(e),r=(0,d.useCallback)(e=>n(e),[]),i=(0,d.useCallback)(e=>n(t=>t|e),[]),o=(0,d.useCallback)(e=>(t&e)===e,[t]),s=(0,d.useCallback)(e=>n(t=>t&~e),[]),a=(0,d.useCallback)(e=>n(t=>t^e),[]);return{flags:t,setFlag:r,addFlag:i,hasFlag:o,removeFlag:s,toggleFlag:a}}(e&&i?3:0),u=(0,d.useRef)(!1),c=(0,d.useRef)(!1),p=oa();return sa(()=>{var i;if(e)return n&&o(!0),t?(null==(i=null==r?void 0:r.start)||i.call(r,n),function(e,{prepare:t,run:n,done:r,inFlight:i}){let o=ia();return function(e,{inFlight:t,prepare:n}){if(null!=t&&t.current)return void n();let r=e.style.transition;e.style.transition="none",n(),e.offsetHeight,e.style.transition=r}(e,{prepare:t,inFlight:i}),o.nextFrame(()=>{n(),o.requestAnimationFrame(()=>{o.add(function(e,t){var n,r;let i=ia();if(!e)return i.dispose;let o=!1;i.add(()=>{o=!0});let s=null!=(r=null==(n=e.getAnimations)?void 0:n.call(e).filter(e=>e instanceof CSSTransition))?r:[];return 0===s.length?(t(),i.dispose):(Promise.allSettled(s.map(e=>e.finished)).then(()=>{o||t()}),i.dispose)}(e,r))})}),o.dispose}(t,{inFlight:u,prepare(){c.current?c.current=!1:c.current=u.current,u.current=!0,!c.current&&(n?(a(3),l(4)):(a(4),l(2)))},run(){c.current?n?(l(3),a(4)):(l(4),a(3)):n?l(1):a(1)},done(){var e;c.current&&function(e){var t,n;return(null!=(n=null==(t=e.getAnimations)?void 0:t.call(e))?n:[]).some(e=>e instanceof CSSTransition&&"finished"!==e.playState)}(t)||(u.current=!1,l(7),n||o(!1),null==(e=null==r?void 0:r.end)||e.call(r,n))}})):void(n&&a(3))},[e,n,t,p]),e?[i,{closed:s(1),enter:s(2),leave:s(4),transition:s(2)||s(4)}]:[n,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}(p,b,null!==A?(A&gd.Open)===gd.Open:k===qd.Open);!function(e,t,n){let r=aa(e=>{let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&n()});(0,d.useEffect)(()=>{if(!e)return;let n=null===t?null:ga(t)?t:t.current;if(!n)return;let i=ia();if("undefined"!=typeof ResizeObserver){let e=new ResizeObserver(()=>r.current(n));e.observe(n),i.add(()=>e.disconnect())}if("undefined"!=typeof IntersectionObserver){let e=new IntersectionObserver(()=>r.current(n));e.observe(n),i.add(()=>e.disconnect())}return()=>i.dispose()},[t,r,e])}(L,S,h.actions.closeCombobox),function(e,t,n=()=>[document.body]){!function(e,t,n=()=>({containers:[]})){let r=function(e){return(0,d.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot)}(yl),i=t?r.get(t):void 0,o=!!i&&i.count>0;sa(()=>{if(t&&e)return yl.dispatch("PUSH",t,n),()=>yl.dispatch("POP",t,n)},[e,t])}(Ha(e,"scroll-lock"),t,e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],n]}})}(!m.__demoMode&&c&&k===qd.Open,D),function(e,{allowed:t,disallowed:n}={}){let r=Ha(e,"inert-others");sa(()=>{var e,i;if(!r)return;let o=ia();for(let t of null!=(e=null==n?void 0:n())?e:[])t&&o.add(Xa(t));let s=null!=(i=null==t?void 0:t())?i:[];for(let e of s){if(!e)continue;let t=ea(e);if(!t)continue;let n=e.parentElement;for(;n&&n!==t.body;){for(let e of n.children)s.some(t=>e.contains(t))||o.add(Xa(e));n=n.parentElement}}return o.dispose},[r,t,n])}(!m.__demoMode&&c&&k===qd.Open,{allowed:(0,d.useCallback)(()=>[S,x,C],[S,x,C])});let O=!Ga(h,h.selectors.didInputMove)&&L;sa(()=>{var t;m.optionsPropsRef.current.static=null!=(t=e.static)&&t},[m.optionsPropsRef,e.static]),sa(()=>{m.optionsPropsRef.current.hold=a},[m.optionsPropsRef,a]),function(e,{container:t,accept:n,walk:r}){let i=(0,d.useRef)(n),o=(0,d.useRef)(r);(0,d.useEffect)(()=>{i.current=n,o.current=r},[n,r]),sa(()=>{if(!t||!e)return;let n=ea(t);if(!n)return;let r=i.current,s=o.current,a=Object.assign(e=>r(e),{acceptNode:r}),l=n.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,a,!1);for(;l.nextNode();)s(l.currentNode)},[t,e,i,o])}(k===qd.Open,{container:C,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 R=_d([null==x?void 0:x.id]),F=vl({open:k===qd.Open,option:void 0}),P=la(()=>{h.actions.setActivationTrigger(Gd.Pointer)}),M=la(e=>{e.preventDefault(),h.actions.setActivationTrigger(Gd.Pointer)}),j=Zc(g?T():{},{"aria-labelledby":R,role:"listbox","aria-multiselectable":m.mode===zd.Multi||void 0,id:s,ref:w,style:{...f.style,...v,"--input-width":pa(L,S,!0).width,"--button-width":pa(L,x,!0).width},onWheel:_===Gd.Pointer?void 0:P,onMouseDown:M,...xl(I)}),V=L&&k===qd.Closed&&!e.static,K=pd(V,null==(n=m.virtual)?void 0:n.options),U=pd(V,m.value),B=(0,d.useCallback)(e=>m.compare(U,e),[m.compare,U]),$=(0,d.useMemo)(()=>{if(!m.virtual)return m;if(void 0===K)throw new Error("Missing `options` in virtual mode");return K!==m.virtual.options?{...m,virtual:{...m.virtual,options:K}}:m},[m,K,null==(r=m.virtual)?void 0:r.options]);m.virtual&&Object.assign(f,{children:d.createElement(ep.Provider,{value:$},d.createElement(rp,{slot:F},f.children))});let q=Wc(),z=(0,d.useMemo)(()=>m.mode===zd.Multi?m:{...m,isSelected:B},[m,B]);return d.createElement(Vd,{enabled:!!u&&(e.static||L),ownerDocument:N},d.createElement(ep.Provider,{value:z},q({ourProps:j,theirProps:{...f,children:d.createElement(dd,{freeze:V},"function"==typeof f.children?null==(i=f.children)?void 0:i.call(f,F):f.children)},slot:F,defaultTag:"div",features:op,visible:O,name:"Combobox.Options"})))}),dp=ed(function(e,t){var n,r,i;let o=tp("Combobox.Option"),s=Jd("Combobox.Option"),a=(0,d.useId)(),{id:l=`headlessui-combobox-option-${a}`,value:u,disabled:c=null!=(i=null==(r=null==(n=o.virtual)?void 0:n.disabled)?void 0:r.call(n,u))&&i,order:p=null,...f}=e,[h]=Ga(s,e=>[e.inputElement]),m=fl(h),g=Ga(s,(0,d.useCallback)(e=>s.selectors.isActive(e,u,l),[u,l])),y=o.isSelected(u),v=(0,d.useRef)(null),b=aa({disabled:c,value:u,domRef:v,order:p}),E=(0,d.useContext)(np),T=El(t,v,E?E.measureElement:null),w=la(()=>{s.actions.setIsTyping(!1),s.actions.onChange(u)});sa(()=>s.actions.registerOption(l,b),[b,l]);let k=Ga(s,(0,d.useCallback)(e=>s.selectors.shouldScrollIntoView(e,u,l),[u,l]));sa(()=>{if(k)return ia().requestAnimationFrame(()=>{var e,t;null==(t=null==(e=v.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})},[k,v]);let S=la(e=>{e.preventDefault(),e.button===fa.Left&&(c||(w(),sl()||requestAnimationFrame(()=>m()),o.mode===zd.Single&&s.actions.closeCombobox()))}),x=la(()=>{if(c)return s.actions.goToOption({focus:bd.Nothing});let e=o.calculateIndex(u);s.actions.goToOption({focus:bd.Specific,idx:e})}),C=function(){let e=(0,d.useRef)([-1,-1]);return{wasMoved(t){let n=Tl(t);return(e.current[0]!==n[0]||e.current[1]!==n[1])&&(e.current=n,!0)},update(t){e.current=Tl(t)}}}(),_=la(e=>C.update(e)),N=la(e=>{if(!C.wasMoved(e)||c||g&&s.state.activationTrigger===Gd.Pointer)return;let t=o.calculateIndex(u);s.actions.goToOption({focus:bd.Specific,idx:t},Gd.Pointer)}),D=la(e=>{C.wasMoved(e)&&(c||g&&(o.optionsPropsRef.current.hold||s.state.activationTrigger===Gd.Pointer&&s.actions.goToOption({focus:bd.Nothing})))}),A=vl({active:g,focus:g,selected:y,disabled:c}),L={id:l,ref:T,role:"option",tabIndex:!0===c?void 0:-1,"aria-disabled":!0===c||void 0,"aria-selected":y,disabled:void 0,onMouseDown:S,onFocus:x,onPointerEnter:_,onMouseEnter:_,onPointerMove:N,onMouseMove:N,onPointerLeave:D,onMouseLeave:D};return Wc()({ourProps:L,theirProps:f,slot:A,defaultTag:"div",name:"Combobox.Option"})}),pp=Object.assign(sp,{Input:lp,Button:ap,Label:up,Options:cp,Option:dp});const fp=()=>{const e=(0,m.c)(32),t=$p(),{push:n}=qp(),r=(0,d.useRef)(null),i=function(){const e=(0,m.c)(5),t=$p(),n=xt(hp);let r;e[0]!==t?(r=t.at(-1),e[0]=t,e[1]=r):r=e[1];const i=r;let o;return e[2]!==i||e[3]!==n?(o=e=>{const t={within:[],types:[],fields:[]};if(!n)return t;const r=i.def,o=n.getTypeMap();let s=Object.keys(o);r&&(s=s.filter(e=>e!==r.name),s.unshift(r.name));for(const n of s){if(t.within.length+t.types.length+t.fields.length>=100)break;const i=o[n];if(r!==i&&mp(n,e)&&t.types.push({type:i}),!(0,g.isObjectType)(i)&&!(0,g.isInterfaceType)(i)&&!(0,g.isInputObjectType)(i))continue;const s=i.getFields();for(const n in s){const o=s[n];let a;if(!mp(n,e)){if(!("args"in o))continue;if(a=o.args.filter(t=>mp(t.name,e)),0===a.length)continue}t[r===i?"within":"fields"].push(...a?a.map(e=>({type:i,field:o,argument:e})):[{type:i,field:o}])}}return t},e[2]=i,e[3]=n,e[4]=o):o=e[4],o}(),[o,s]=(0,d.useState)("");let a;e[0]!==i||e[1]!==o?(a=()=>i(o),e[0]=i,e[1]=o,e[2]=a):a=e[2];const[l,u]=(0,d.useState)(a);let c;e[3]!==i?(c=Ye(200,e=>{u(i(e))}),e[3]=i,e[4]=c):c=e[4];const p=c,[f]=(0,d.useState)(r),y=f.current===document.activeElement;let v,b,E,T,w;if(e[5]!==p||e[6]!==o?(v=()=>{p(o)},b=[p,o],e[5]=p,e[6]=o,e[7]=v,e[8]=b):(v=e[7],b=e[8]),(0,d.useEffect)(v,b),e[9]!==t||e[10]!==n){let r;E=t.at(-1),e[14]!==n?(r=e=>{e&&n("field"in e?{name:e.field.name,def:e.field}:{name:e.type.name,def:e.type})},e[14]=n,e[15]=r):r=e[15],T=r,w=1===t.length||(0,g.isObjectType)(E.def)||(0,g.isInterfaceType)(E.def)||(0,g.isInputObjectType)(E.def),e[9]=t,e[10]=n,e[11]=E,e[12]=T,e[13]=w}else E=e[11],T=e[12],w=e[13];if(!w)return null;const k=y?void 0:"idle",S=`Search ${E.name}...`;let x,C,_,N,D,A,L;return e[16]===Symbol.for("react.memo_cache_sentinel")?(x=()=>{r.current.focus()},C=(0,h.jsx)(Gt,{}),e[16]=x,e[17]=C):(x=e[16],C=e[17]),e[18]===Symbol.for("react.memo_cache_sentinel")?(N=e=>s(e.target.value),_=me(me(ge.searchInDocs.key).replaceAll("-"," ")),e[18]=_,e[19]=N):(_=e[18],N=e[19]),e[20]!==o||e[21]!==_?(D=(0,h.jsxs)("div",{className:"graphiql-doc-explorer-search-input",onClick:x,children:[C,(0,h.jsx)(lp,{autoComplete:"off",onChange:N,placeholder:_,ref:r,value:o,"data-cy":"doc-explorer-input"})]}),e[20]=o,e[21]=_,e[22]=D):D=e[22],e[23]!==y||e[24]!==l?(A=y&&(0,h.jsxs)(cp,{"data-cy":"doc-explorer-list",children:[l.within.length+l.types.length+l.fields.length===0?(0,h.jsx)("div",{className:"graphiql-doc-explorer-search-empty",children:"No results found"}):l.within.map(vp),l.within.length>0&&l.types.length+l.fields.length>0?(0,h.jsx)("div",{className:"graphiql-doc-explorer-search-divider",children:"Other results"}):null,l.types.map(bp),l.fields.map(Ep)]}),e[23]=y,e[24]=l,e[25]=A):A=e[25],e[26]!==T||e[27]!==D||e[28]!==A||e[29]!==k||e[30]!==S?(L=(0,h.jsxs)(pp,{as:"div",className:"graphiql-doc-explorer-search",onChange:T,"data-state":k,"aria-label":S,children:[D,A]}),e[26]=T,e[27]=D,e[28]=A,e[29]=k,e[30]=S,e[31]=L):L=e[31],L};function hp(e){return e.schema}function mp(e,t){try{const n=t.replaceAll(/[^_0-9A-Za-z]/g,e=>"\\"+e);return new RegExp(n,"i").test(e)}catch{return e.toLowerCase().includes(t.toLowerCase())}}const gp=e=>{const t=(0,m.c)(2),{type:n}=e;let r;return t[0]!==n.name?(r=(0,h.jsx)("span",{className:"graphiql-doc-explorer-search-type",children:n.name}),t[0]=n.name,t[1]=r):r=t[1],r},yp=e=>{const t=(0,m.c)(7),{field:n,argument:r}=e;let i,o,s;return t[0]!==n.name?(i=(0,h.jsx)("span",{className:"graphiql-doc-explorer-search-field",children:n.name}),t[0]=n.name,t[1]=i):i=t[1],t[2]!==r?(o=r?(0,h.jsxs)(h.Fragment,{children:["(",(0,h.jsx)("span",{className:"graphiql-doc-explorer-search-argument",children:r.name}),":"," ",Lo(r.type,Tp),")"]}):null,t[2]=r,t[3]=o):o=t[3],t[4]!==i||t[5]!==o?(s=(0,h.jsxs)(h.Fragment,{children:[i,o]}),t[4]=i,t[5]=o,t[6]=s):s=t[6],s};function vp(e,t){return(0,h.jsx)(dp,{value:e,"data-cy":"doc-explorer-option",children:(0,h.jsx)(yp,{field:e.field,argument:e.argument})},`within-${t}`)}function bp(e,t){return(0,h.jsx)(dp,{value:e,"data-cy":"doc-explorer-option",children:(0,h.jsx)(gp,{type:e.type})},`type-${t}`)}function Ep(e,t){return(0,h.jsxs)(dp,{value:e,"data-cy":"doc-explorer-option",children:[(0,h.jsx)(gp,{type:e.type}),".",(0,h.jsx)(yp,{field:e.field,argument:e.argument})]},`field-${t}`)}function Tp(e){return(0,h.jsx)(gp,{type:e})}const wp=e=>{const t=(0,m.c)(6),{field:n}=e,{push:r}=qp();let i,o;return t[0]!==n||t[1]!==r?(i=e=>{e.preventDefault(),r({name:n.name,def:n})},t[0]=n,t[1]=r,t[2]=i):i=t[2],t[3]!==n.name||t[4]!==i?(o=(0,h.jsx)("a",{className:"graphiql-doc-explorer-field-name",onClick:i,href:"#",children:n.name}),t[3]=n.name,t[4]=i,t[5]=o):o=t[5],o},kp=e=>{const t=(0,m.c)(2),{type:n}=e;let r;return t[0]!==n?(r=(0,g.isNamedType)(n)?(0,h.jsxs)(h.Fragment,{children:[n.description?(0,h.jsx)(Co,{type:"description",children:n.description}):null,(0,h.jsx)(Sp,{type:n}),(0,h.jsx)(xp,{type:n}),(0,h.jsx)(_p,{type:n}),(0,h.jsx)(Dp,{type:n})]}):null,t[0]=n,t[1]=r):r=t[1],r},Sp=e=>{const t=(0,m.c)(5),{type:n}=e;if(!(0,g.isObjectType)(n))return null;let r;t[0]!==n?(r=n.getInterfaces(),t[0]=n,t[1]=r):r=t[1];const i=r;let o;return t[2]!==i.length||t[3]!==n?(o=i.length>0?(0,h.jsx)(Po,{title:"Implements",children:n.getInterfaces().map(Ap)}):null,t[2]=i.length,t[3]=n,t[4]=o):o=t[4],o},xp=e=>{const t=(0,m.c)(12),{type:n}=e,[r,i]=(0,d.useState)(!1);let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=()=>{i(!0)},t[0]=o):o=t[0];const s=o;if(!(0,g.isObjectType)(n)&&!(0,g.isInterfaceType)(n)&&!(0,g.isInputObjectType)(n))return null;let a,l,u,c,p;if(t[1]!==n){const e=n.getFields();l=[],a=[];for(const t of Object.keys(e).map(t=>e[t]))t.deprecationReason?a.push(t):l.push(t);u=l.length>0?(0,h.jsx)(Po,{title:"Fields",children:l.map(Lp)}):null,t[1]=n,t[2]=a,t[3]=l,t[4]=u}else a=t[2],l=t[3],u=t[4];return t[5]!==a||t[6]!==l.length||t[7]!==r?(c=a.length>0?r||0===l.length?(0,h.jsx)(Po,{title:"Deprecated Fields",children:a.map(Ip)}):(0,h.jsx)(No,{type:"button",onClick:s,children:"Show Deprecated Fields"}):null,t[5]=a,t[6]=l.length,t[7]=r,t[8]=c):c=t[8],t[9]!==u||t[10]!==c?(p=(0,h.jsxs)(h.Fragment,{children:[u,c]}),t[9]=u,t[10]=c,t[11]=p):p=t[11],p},Cp=e=>{const t=(0,m.c)(22),{field:n}=e;let r,i,o,s,a,l,u,c,d;if(t[0]!==n){const e="args"in n?n.args.filter(Op):[];o="graphiql-doc-explorer-item",r=(0,h.jsx)(wp,{field:n}),i=e.length>0?(0,h.jsxs)(h.Fragment,{children:["(",(0,h.jsx)("span",{children:e.map(t=>1===e.length?(0,h.jsx)(Oo,{arg:t,inline:!0},t.name):(0,h.jsx)("div",{className:"graphiql-doc-explorer-argument-multiple",children:(0,h.jsx)(Oo,{arg:t,inline:!0})},t.name))}),")"]}):null,t[0]=n,t[1]=r,t[2]=i,t[3]=o}else r=t[1],i=t[2],o=t[3];return t[4]!==n.type?(s=(0,h.jsx)(Io,{type:n.type}),t[4]=n.type,t[5]=s):s=t[5],t[6]!==n?(a=(0,h.jsx)(Ao,{field:n}),t[6]=n,t[7]=a):a=t[7],t[8]!==r||t[9]!==i||t[10]!==s||t[11]!==a?(l=(0,h.jsxs)("div",{children:[r,i,": ",s,a]}),t[8]=r,t[9]=i,t[10]=s,t[11]=a,t[12]=l):l=t[12],t[13]!==n.description?(u=n.description?(0,h.jsx)(Co,{type:"description",onlyShowFirstChild:!0,children:n.description}):null,t[13]=n.description,t[14]=u):u=t[14],t[15]!==n.deprecationReason?(c=(0,h.jsx)(Ro,{children:n.deprecationReason}),t[15]=n.deprecationReason,t[16]=c):c=t[16],t[17]!==o||t[18]!==l||t[19]!==u||t[20]!==c?(d=(0,h.jsxs)("div",{className:o,children:[l,u,c]}),t[17]=o,t[18]=l,t[19]=u,t[20]=c,t[21]=d):d=t[21],d},_p=e=>{const t=(0,m.c)(12),{type:n}=e,[r,i]=(0,d.useState)(!1);let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=()=>{i(!0)},t[0]=o):o=t[0];const s=o;if(!(0,g.isEnumType)(n))return null;let a,l,u,c,p;if(t[1]!==n){u=[],a=[];for(const e of n.getValues())e.deprecationReason?a.push(e):u.push(e);l=u.length>0&&(0,h.jsx)(Po,{title:"Enum Values",children:u.map(Rp)}),t[1]=n,t[2]=a,t[3]=l,t[4]=u}else a=t[2],l=t[3],u=t[4];return t[5]!==a||t[6]!==r||t[7]!==u.length?(c=a.length>0&&(r||!u.length?(0,h.jsx)(Po,{title:"Deprecated Enum Values",children:a.map(Fp)}):(0,h.jsx)(No,{type:"button",onClick:s,children:"Show Deprecated Values"})),t[5]=a,t[6]=r,t[7]=u.length,t[8]=c):c=t[8],t[9]!==l||t[10]!==c?(p=(0,h.jsxs)(h.Fragment,{children:[l,c]}),t[9]=l,t[10]=c,t[11]=p):p=t[11],p},Np=e=>{const t=(0,m.c)(10),{value:n}=e;let r,i,o,s;return t[0]!==n.name?(r=(0,h.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,h.jsx)(Co,{type:"description",children:n.description}),t[2]=n.description,t[3]=i):i=t[3],t[4]!==n.deprecationReason?(o=n.deprecationReason&&(0,h.jsx)(Co,{type:"deprecation",children:n.deprecationReason}),t[4]=n.deprecationReason,t[5]=o):o=t[5],t[6]!==r||t[7]!==i||t[8]!==o?(s=(0,h.jsxs)("div",{className:"graphiql-doc-explorer-item",children:[r,i,o]}),t[6]=r,t[7]=i,t[8]=o,t[9]=s):s=t[9],s},Dp=e=>{const t=(0,m.c)(6),{type:n}=e,r=xt(Pp);if(!r||!(0,g.isAbstractType)(n))return null;const i=(0,g.isInterfaceType)(n)?"Implementations":"Possible Types";let o,s;return t[0]!==r||t[1]!==n?(o=r.getPossibleTypes(n).map(Mp),t[0]=r,t[1]=n,t[2]=o):o=t[2],t[3]!==i||t[4]!==o?(s=(0,h.jsx)(Po,{title:i,children:o}),t[3]=i,t[4]=o,t[5]=s):s=t[5],s};function Ap(e){return(0,h.jsx)("div",{children:(0,h.jsx)(Io,{type:e})},e.name)}function Lp(e){return(0,h.jsx)(Cp,{field:e},e.name)}function Ip(e){return(0,h.jsx)(Cp,{field:e},e.name)}function Op(e){return!e.deprecationReason}function Rp(e){return(0,h.jsx)(Np,{value:e},e.name)}function Fp(e){return(0,h.jsx)(Np,{value:e},e.name)}function Pp(e){return e.schema}function Mp(e){return(0,h.jsx)("div",{children:(0,h.jsx)(Io,{type:e})},e.name)}const jp={title:"Documentation Explorer",icon:function(){return xt(e=>e.visiblePlugin)===jp?(0,h.jsx)(Vt,{}):(0,h.jsx)(Kt,{})},content:()=>{const e=(0,m.c)(39);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=ln("fetchError","isIntrospecting","schema","validationErrors"),e[0]=t):t=e[0];const{fetchError:n,isIntrospecting:r,schema:i,validationErrors:o}=xt(t),s=$p(),{pop:a}=qp();let l,u,c,d,p,f,y,v,b,E;if(e[1]!==s||e[2]!==n||e[3]!==r||e[4]!==i||e[5]!==o){if(u=s.at(-1),l=null,n){let t;e[8]===Symbol.for("react.memo_cache_sentinel")?(t=(0,h.jsx)("div",{className:"graphiql-doc-explorer-error",children:"Error fetching schema"}),e[8]=t):t=e[8],l=t}else if(o[0]){let t;e[9]!==o[0].message?(t=(0,h.jsxs)("div",{className:"graphiql-doc-explorer-error",children:["Schema is invalid: ",o[0].message]}),e[9]=o[0].message,e[10]=t):t=e[10],l=t}else if(r){let t;e[11]===Symbol.for("react.memo_cache_sentinel")?(t=(0,h.jsx)(pn,{}),e[11]=t):t=e[11],l=t}else if(i){if(1===s.length){let t;e[13]!==i?(t=(0,h.jsx)(qo,{schema:i}),e[13]=i,e[14]=t):t=e[14],l=t}else if((0,g.isType)(u.def)){let t;e[15]!==u.def?(t=(0,h.jsx)(kp,{type:u.def}),e[15]=u.def,e[16]=t):t=e[16],l=t}else if(u.def){let t;e[17]!==u.def?(t=(0,h.jsx)(jo,{field:u.def}),e[17]=u.def,e[18]=t):t=e[18],l=t}}else{let t;e[12]===Symbol.for("react.memo_cache_sentinel")?(t=(0,h.jsx)("div",{className:"graphiql-doc-explorer-error",children:"No GraphQL schema available"}),e[12]=t):t=e[12],l=t}e[1]=s,e[2]=n,e[3]=r,e[4]=i,e[5]=o,e[6]=l,e[7]=u}else l=e[6],u=e[7];if(s.length>1){let t;e[19]!==s?(t=s.at(-2),e[19]=s,e[20]=t):t=e[20],c=t.name}return e[21]!==a||e[22]!==c?(d=c&&(0,h.jsxs)("a",{href:"#",className:"graphiql-doc-explorer-back",onClick:e=>{e.preventDefault(),a()},"aria-label":`Go back to ${c}`,children:[(0,h.jsx)(Lt,{}),c]}),e[21]=a,e[22]=c,e[23]=d):d=e[23],e[24]!==u.name?(p=(0,h.jsx)("div",{className:"graphiql-doc-explorer-title",children:u.name}),e[24]=u.name,e[25]=p):p=e[25],e[26]!==d||e[27]!==p?(f=(0,h.jsxs)("div",{className:"graphiql-doc-explorer-header-content",children:[d,p]}),e[26]=d,e[27]=p,e[28]=f):f=e[28],e[29]!==u.name?(y=(0,h.jsx)(fp,{},u.name),e[29]=u.name,e[30]=y):y=e[30],e[31]!==f||e[32]!==y?(v=(0,h.jsxs)("div",{className:"graphiql-doc-explorer-header",children:[f,y]}),e[31]=f,e[32]=y,e[33]=v):v=e[33],e[34]!==l?(b=(0,h.jsx)("div",{className:"graphiql-doc-explorer-content",children:l}),e[34]=l,e[35]=b):b=e[35],e[36]!==v||e[37]!==b?(E=(0,h.jsxs)("section",{className:"graphiql-doc-explorer","aria-label":"Documentation Explorer",children:[v,b]}),e[36]=v,e[37]=b,e[38]=E):E=e[38],E}},Vp=[{name:"Docs"}],Kp=v((e,t)=>({explorerNavStack:Vp,actions:{push(t){e(e=>{const n=e.explorerNavStack;return{explorerNavStack:n.at(-1).def===t.def?n:[...n,t]}})},pop(){e(e=>{const t=e.explorerNavStack;return{explorerNavStack:t.length>1?t.slice(0,-1):t}})},reset(){e(e=>{const t=e.explorerNavStack;return{explorerNavStack:1===t.length?t:Vp}})},resolveSchemaReferenceToNavItem(e){if(!e)return;const{kind:n,typeInfo:r}=e,i=function(e,t){return"Field"===e&&t.fieldDef||"AliasedField"===e&&t.fieldDef?function(e){return{kind:"Field",schema:e.schema,field:e.fieldDef,type:un(e.fieldDef)?null:e.parentType}}(t):"Directive"===e&&t.directiveDef?function(e){return{kind:"Directive",schema:e.schema,directive:e.directiveDef}}(t):"Argument"===e&&t.argDef?function(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:un(e.fieldDef)?null:e.parentType}}(t):"EnumValue"===e&&t.enumValue?function(e){return{kind:"EnumValue",value:e.enumValue||void 0,type:e.inputType?(0,g.getNamedType)(e.inputType):void 0}}(t):"NamedType"===e&&t.type?function(e){return{kind:"Type",schema:e.schema,type:e.type}}(t):void 0}(n,r);if(!i)return;const{push:o}=t().actions;switch(i.kind){case"Type":o({name:i.type.name,def:i.type});break;case"Field":i.type&&o({name:i.type.name,def:i.type}),o({name:i.field.name,def:i.field});break;case"Argument":i.field&&o({name:i.field.name,def:i.field});break;case"EnumValue":i.type&&o({name:i.type.name,def:i.type})}},rebuildNavStackWithSchema(t){e(e=>{const n=e.explorerNavStack;if(1===n.length)return e;const r=[...Vp];let i=null;for(const e of n)if(e!==Vp[0])if(e.def)if((0,g.isNamedType)(e.def)){const n=t.getType(e.def.name);if(!n)break;r.push({name:e.name,def:n}),i=n}else{if(null===i)break;if((0,g.isObjectType)(i)||(0,g.isInputObjectType)(i)){const t=i.getFields()[e.name];if(!t)break;r.push({name:e.name,def:t})}else{if((0,g.isScalarType)(i)||(0,g.isEnumType)(i)||(0,g.isInterfaceType)(i)||(0,g.isUnionType)(i))break;{const t=i;if(!t.args.some(t=>t.name===e.name))break;r.push({name:e.name,def:t})}}}else i=null,r.push(e);return{explorerNavStack:r}})}}})),Up=e=>{const t=(0,m.c)(9),{children:n}=e;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=ln("schema","validationErrors","schemaReference"),t[0]=r):r=t[0];const{schema:i,validationErrors:o,schemaReference:s}=xt(r);let a,l,u,c,p;return t[1]!==s?(a=()=>{const{resolveSchemaReferenceToNavItem:e}=Kp.getState().actions;e(s)},l=[s],t[1]=s,t[2]=a,t[3]=l):(a=t[2],l=t[3]),(0,d.useEffect)(a,l),t[4]!==i||t[5]!==o?(u=()=>{const{reset:e,rebuildNavStackWithSchema:t}=Kp.getState().actions;null==i||o.length>0?e():t(i)},c=[i,o],t[4]=i,t[5]=o,t[6]=u,t[7]=c):(u=t[6],c=t[7]),(0,d.useEffect)(u,c),t[8]===Symbol.for("react.memo_cache_sentinel")?(p=[],t[8]=p):p=t[8],(0,d.useEffect)(Gp,p),n},Bp=Qe(Kp),$p=()=>Bp(Qp),qp=()=>Bp(Hp);function zp(){const e=document.querySelector(".graphiql-doc-explorer-search-input");null==e||e.click()}function Gp(){const e=function(e){if(!e.altKey||!e[he?"metaKey":"ctrlKey"]||"KeyK"!==e.code)return;const t=document.querySelector('.graphiql-sidebar button[aria-label="Show Documentation Explorer"]');null==t||t.click(),requestAnimationFrame(zp)};return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}}function Qp(e){return e.explorerNavStack}function Hp(e){return e.actions}var Wp=s(12833);const Yp=({title:e,titleId:t,...n})=>d.createElement("svg",{width:5,height:8,viewBox:"0 0 5 8",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?d.createElement("title",{id:t},e):null,d.createElement("path",{d:"M0.910453 6.86965L3.88955 3.89061C4.09782 3.68233 4.09782 3.34465 3.88955 3.13637L0.910453 0.157278C0.574475 -0.178701 0 0.0592511 0 0.534408V6.49259C0 6.96768 0.574475 7.20565 0.910453 6.86965Z"})),Xp=({title:e,titleId:t,...n})=>d.createElement("svg",{width:15,height:15,viewBox:"0 0 15 15",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",fill:"none","aria-labelledby":t,...n},e?d.createElement("title",{id:t},e):null,d.createElement("circle",{cx:7.5,cy:7.5,r:6,strokeWidth:2})),Jp=({title:e,titleId:t,...n})=>d.createElement("svg",{width:15,height:15,viewBox:"0 0 15 15",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-labelledby":t,...n},e?d.createElement("title",{id:t},e):null,d.createElement("circle",{cx:7.5,cy:7.5,r:7.5}),d.createElement("path",{d:"M4.64641 7.00106L6.8801 9.23256L10.5017 5.61325",stroke:"white",strokeWidth:1.5})),Zp={keyword:"hsl(var(--color-primary))",def:"hsl(var(--color-tertiary))",property:"hsl(var(--color-info))",qualifier:"hsl(var(--color-secondary))",attribute:"hsl(var(--color-tertiary))",number:"hsl(var(--color-success))",string:"hsl(var(--color-warning))",builtin:"hsl(var(--color-success))",string2:"hsl(var(--color-secondary))",variable:"hsl(var(--color-secondary))",atom:"hsl(var(--color-tertiary))"},ef=(0,h.jsx)(Yp,{style:{width:"var(--px-16)",transform:"rotate(90deg)"}}),tf=(0,h.jsx)(Yp,{style:{width:"var(--px-16)"}}),nf=(0,h.jsx)(Xp,{style:{marginRight:"var(--px-4)"}}),rf=(0,h.jsx)(Jp,{style:{fill:"hsl(var(--color-info))",marginRight:"var(--px-4)"}}),of={buttonStyle:{cursor:"pointer",fontSize:"2em",lineHeight:0},explorerActionsStyle:{paddingTop:"var(--px-16)"},actionButtonStyle:{}},sf=e=>{const{setOperationName:t,run:n}=Ct(),r=xt(e=>e.schema),i=(0,d.useCallback)(e=>{e&&t(e),n()},[n,t]),[o,s]=function(e){const t=(0,m.c)(12),[n,r]=e;let i;t[0]!==n?(i={pending:null,last:n},t[0]=n,t[1]=i):i=t[1];const o=(0,d.useRef)(i),[s,a]=(0,d.useState)(n);let l,u,c;t[2]!==s||t[3]!==r||t[4]!==n?(l=()=>{if(o.current.last!==n)if(o.current.last=n,null!==o.current.pending){if(o.current.pending===n)return o.current.pending=null,void(n!==s&&(o.current.pending=s,r(s)));o.current.pending=null,a(n)}else a(n)},u=[n,s,r],t[2]=s,t[3]=r,t[4]=n,t[5]=l,t[6]=u):(l=t[5],u=t[6]),(0,d.useEffect)(l,u),t[7]!==r?(c=e=>{a(e),null===o.current.pending&&o.current.last!==e&&(o.current.pending=e,r(e))},t[7]=r,t[8]=c):c=t[8];const p=c;let f;return t[9]!==p||t[10]!==s?(f=[s,p],t[9]=p,t[10]=s,t[11]=f):f=t[11],f}((e=>{const t=(0,m.c)(12);let n;t[0]!==e?(n=t=>t[`${e}Editor`],t[0]=e,t[1]=n):n=t[1];const r=xt(n),[i,o]=(0,d.useState)("");let s;t[2]!==r?(s=null==r?void 0:r.getModel(),t[2]=r,t[3]=s):s=t[3];const a=s;let l,u,c;t[4]!==a?(l=()=>{if(!a)return;const e=function(){o(a.getValue())},t=a.onDidChangeContent(e);return e(),()=>{t.dispose()}},u=[a],t[4]=a,t[5]=l,t[6]=u):(l=t[5],u=t[6]),(0,d.useEffect)(l,u),t[7]!==a?(c=function(e){a.setValue(e)},t[7]=a,t[8]=c):c=t[8];const p=c;let f;return t[9]!==p||t[10]!==i?(f=[i,p],t[9]=p,t[10]=i,t[11]=f):f=t[11],f})("query"));return(0,h.jsx)(Wp.Explorer,{schema:r,onRunOperation:i,explorerIsOpen:!0,colors:Zp,arrowOpen:ef,arrowClosed:tf,checkboxUnchecked:nf,checkboxChecked:rf,styles:of,query:o,onEdit:s,...e})};function af(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function lf(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function uf(...e){return t=>{let n=!1;const r=e.map(e=>{const r=lf(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():lf(e[t],null)}}}}function cf(...e){return d.useCallback(uf(...e),e)}function df(e,t=[]){let n=[];const r=()=>{const t=n.map(e=>d.createContext(e));return function(n){const r=n?.[e]||t;return d.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){const i=d.createContext(r),o=n.length;n=[...n,r];const s=t=>{const{scope:n,children:r,...s}=t,a=n?.[e]?.[o]||i,l=d.useMemo(()=>s,Object.values(s));return(0,h.jsx)(a.Provider,{value:l,children:r})};return s.displayName=t+"Provider",[s,function(n,s){const a=s?.[e]?.[o]||i,l=d.useContext(a);if(l)return l;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},pf(r,...t)]}function pf(...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 d.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}function ff(e){const t=hf(e),n=d.forwardRef((e,n)=>{const{children:r,...i}=e,o=d.Children.toArray(r),s=o.find(gf);if(s){const e=s.props.children,r=o.map(t=>t===s?d.Children.count(e)>1?d.Children.only(null):d.isValidElement(e)?e.props.children:null:t);return(0,h.jsx)(t,{...i,ref:n,children:d.isValidElement(e)?d.cloneElement(e,void 0,r):null})}return(0,h.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function hf(e){const t=d.forwardRef((e,t)=>{const{children:n,...r}=e;if(d.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)=>{const t=o(...e);return i(...e),t}: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!==d.Fragment&&(i.ref=t?uf(t,e):e),d.cloneElement(n,i)}return d.Children.count(n)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}"undefined"==typeof window||!window.document||window.document.createElement;var mf=Symbol("radix.slottable");function gf(e){return d.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===mf}var yf=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{const n=ff(`Primitive.${t}`),r=d.forwardRef((e,r)=>{const{asChild:i,...o}=e,s=i?n:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,h.jsx)(s,{...o,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function vf(e,t){e&&Fs.flushSync(()=>e.dispatchEvent(t))}function bf(e){const t=d.useRef(e);return d.useEffect(()=>{t.current=e}),d.useMemo(()=>(...e)=>t.current?.(...e),[])}var Ef,Tf="dismissableLayer.update",wf=d.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),kf=d.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:o,onInteractOutside:s,onDismiss:a,...l}=e,u=d.useContext(wf),[c,p]=d.useState(null),f=c?.ownerDocument??globalThis?.document,[,m]=d.useState({}),g=cf(t,e=>p(e)),y=Array.from(u.layers),[v]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),b=y.indexOf(v),E=c?y.indexOf(c):-1,T=u.layersWithOutsidePointerEventsDisabled.size>0,w=E>=b,k=function(e,t=globalThis?.document){const n=bf(e),r=d.useRef(!1),i=d.useRef(()=>{});return d.useEffect(()=>{const e=e=>{if(e.target&&!r.current){let r=function(){Cf("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=[...u.branches].some(e=>e.contains(t));w&&!n&&(i?.(e),s?.(e),e.defaultPrevented||a?.())},f),S=function(e,t=globalThis?.document){const n=bf(e),r=d.useRef(!1);return d.useEffect(()=>{const e=e=>{e.target&&!r.current&&Cf("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;[...u.branches].some(e=>e.contains(t))||(o?.(e),s?.(e),e.defaultPrevented||a?.())},f);return function(e,t=globalThis?.document){const n=bf(e);d.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=>{E===u.layers.size-1&&(r?.(e),!e.defaultPrevented&&a&&(e.preventDefault(),a()))},f),d.useEffect(()=>{if(c)return n&&(0===u.layersWithOutsidePointerEventsDisabled.size&&(Ef=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),xf(),()=>{n&&1===u.layersWithOutsidePointerEventsDisabled.size&&(f.body.style.pointerEvents=Ef)}},[c,f,n,u]),d.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),xf())},[c,u]),d.useEffect(()=>{const e=()=>m({});return document.addEventListener(Tf,e),()=>document.removeEventListener(Tf,e)},[]),(0,h.jsx)(yf.div,{...l,ref:g,style:{pointerEvents:T?w?"auto":"none":void 0,...e.style},onFocusCapture:af(e.onFocusCapture,S.onFocusCapture),onBlurCapture:af(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:af(e.onPointerDownCapture,k.onPointerDownCapture)})});kf.displayName="DismissableLayer";var Sf=d.forwardRef((e,t)=>{const n=d.useContext(wf),r=d.useRef(null),i=cf(t,r);return d.useEffect(()=>{const e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,h.jsx)(yf.div,{...e,ref:i})});function xf(){const e=new CustomEvent(Tf);document.dispatchEvent(e)}function Cf(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?vf(i,o):i.dispatchEvent(o)}Sf.displayName="DismissableLayerBranch";var _f=globalThis?.document?d.useLayoutEffect:()=>{},Nf=p[" useId ".trim().toString()]||(()=>{}),Df=0;function Af(e){const[t,n]=d.useState(Nf());return _f(()=>{e||n(e=>e??String(Df++))},[e]),e||(t?`radix-${t}`:"")}var Lf=d.forwardRef((e,t)=>{const{children:n,width:r=10,height:i=5,...o}=e;return(0,h.jsx)(yf.svg,{...o,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,h.jsx)("polygon",{points:"0,0 30,0 15,10"})})});Lf.displayName="Arrow";var If=Lf,Of="Popper",[Rf,Ff]=df(Of),[Pf,Mf]=Rf(Of),jf=e=>{const{__scopePopper:t,children:n}=e,[r,i]=d.useState(null);return(0,h.jsx)(Pf,{scope:t,anchor:r,onAnchorChange:i,children:n})};jf.displayName=Of;var Vf="PopperAnchor",Kf=d.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,o=Mf(Vf,n),s=d.useRef(null),a=cf(t,s),l=d.useRef(null);return d.useEffect(()=>{const e=l.current;l.current=r?.current||s.current,e!==l.current&&o.onAnchorChange(l.current)}),r?null:(0,h.jsx)(yf.div,{...i,ref:a})});Kf.displayName=Vf;var Uf="PopperContent",[Bf,$f]=Rf(Uf),qf=d.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:i=0,align:o="center",alignOffset:s=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:c=0,sticky:p="partial",hideWhenDetached:f=!1,updatePositionStrategy:m="optimized",onPlaced:g,...y}=e,v=Mf(Uf,n),[b,E]=d.useState(null),T=cf(t,e=>E(e)),[w,k]=d.useState(null),S=function(e){const[t,n]=d.useState(void 0);return _f(()=>{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),x=S?.width??0,C=S?.height??0,_=r+("center"!==o?"-"+o:""),N="number"==typeof c?c:{top:0,right:0,bottom:0,left:0,...c},D=Array.isArray(u)?u:[u],A=D.length>0,L={padding:N,boundary:D.filter(Hf),altBoundary:A},{refs:I,floatingStyles:O,placement:R,isPositioned:F,middlewareData:P}=dc({strategy:"fixed",placement:_,whileElementsMounted:(...e)=>Yu(...e,{animationFrame:"always"===m}),elements:{reference:v.anchor},middleware:[fc({mainAxis:i+C,alignmentAxis:s}),l&&hc({mainAxis:!0,crossAxis:!1,limiter:"partial"===p?mc():void 0,...L}),l&&gc({...L}),yc({...L,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:i,height:o}=t.reference,s=e.floating.style;s.setProperty("--radix-popper-available-width",`${n}px`),s.setProperty("--radix-popper-available-height",`${r}px`),s.setProperty("--radix-popper-anchor-width",`${i}px`),s.setProperty("--radix-popper-anchor-height",`${o}px`)}}),w&&bc({element:w,padding:a}),Wf({arrowWidth:x,arrowHeight:C}),f&&vc({strategy:"referenceHidden",...L})]}),[M,j]=Yf(R),V=bf(g);_f(()=>{F&&V?.()},[F,V]);const K=P.arrow?.x,U=P.arrow?.y,B=0!==P.arrow?.centerOffset,[$,q]=d.useState();return _f(()=>{b&&q(window.getComputedStyle(b).zIndex)},[b]),(0,h.jsx)("div",{ref:I.setFloating,"data-radix-popper-content-wrapper":"",style:{...O,transform:F?O.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:$,"--radix-popper-transform-origin":[P.transformOrigin?.x,P.transformOrigin?.y].join(" "),...P.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,h.jsx)(Bf,{scope:n,placedSide:M,onArrowChange:k,arrowX:K,arrowY:U,shouldHideArrow:B,children:(0,h.jsx)(yf.div,{"data-side":M,"data-align":j,...y,ref:T,style:{...y.style,animation:F?void 0:"none"}})})})});qf.displayName=Uf;var zf="PopperArrow",Gf={top:"bottom",right:"left",bottom:"top",left:"right"},Qf=d.forwardRef(function(e,t){const{__scopePopper:n,...r}=e,i=$f(zf,n),o=Gf[i.placedSide];return(0,h.jsx)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]: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,h.jsx)(If,{...r,ref:t,style:{...r.style,display:"block"}})})});function Hf(e){return null!==e}Qf.displayName=zf;var Wf=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:i}=t,o=0!==i.arrow?.centerOffset,s=o?0:e.arrowWidth,a=o?0:e.arrowHeight,[l,u]=Yf(n),c={start:"0%",center:"50%",end:"100%"}[u],d=(i.arrow?.x??0)+s/2,p=(i.arrow?.y??0)+a/2;let f="",h="";return"bottom"===l?(f=o?c:`${d}px`,h=-a+"px"):"top"===l?(f=o?c:`${d}px`,h=`${r.floating.height+a}px`):"right"===l?(f=-a+"px",h=o?c:`${p}px`):"left"===l&&(f=`${r.floating.width+a}px`,h=o?c:`${p}px`),{data:{x:f,y:h}}}});function Yf(e){const[t,n="center"]=e.split("-");return[t,n]}var Xf=jf,Jf=Kf,Zf=qf,eh=Qf,th=d.forwardRef((e,t)=>{const{container:n,...r}=e,[i,o]=d.useState(!1);_f(()=>o(!0),[]);const s=n||i&&globalThis?.document?.body;return s?Fs.createPortal((0,h.jsx)(yf.div,{...r,ref:t}),s):null});th.displayName="Portal";var nh=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=d.useState(),r=d.useRef(null),i=d.useRef(e),o=d.useRef("none"),s=e?"mounted":"unmounted",[a,l]=function(e,t){return d.useReducer((e,n)=>t[e][n]??e,e)}(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return d.useEffect(()=>{const e=rh(r.current);o.current="mounted"===a?e:"none"},[a]),_f(()=>{const t=r.current,n=i.current;if(n!==e){const r=o.current,s=rh(t);l(e?"MOUNT":"none"===s||"none"===t?.display?"UNMOUNT":n&&r!==s?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,l]),_f(()=>{if(t){let e;const n=t.ownerDocument.defaultView??window,s=o=>{const s=rh(r.current).includes(CSS.escape(o.animationName));if(o.target===t&&s&&(l("ANIMATION_END"),!i.current)){const r=t.style.animationFillMode;t.style.animationFillMode="forwards",e=n.setTimeout(()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=r)})}},a=e=>{e.target===t&&(o.current=rh(r.current))};return t.addEventListener("animationstart",a),t.addEventListener("animationcancel",s),t.addEventListener("animationend",s),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",a),t.removeEventListener("animationcancel",s),t.removeEventListener("animationend",s)}}l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:d.useCallback(e=>{r.current=e?getComputedStyle(e):null,n(e)},[])}}(t),i="function"==typeof n?n({present:r.isPresent}):d.Children.only(n),o=cf(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?d.cloneElement(i,{ref:o}):null};function rh(e){return e?.animationName||"none"}nh.displayName="Presence",p[" useEffectEvent ".trim().toString()],p[" useInsertionEffect ".trim().toString()];var ih=p[" useInsertionEffect ".trim().toString()]||_f;function oh({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[i,o,s]=function({defaultProp:e,onChange:t}){const[n,r]=d.useState(e),i=d.useRef(n),o=d.useRef(t);return ih(()=>{o.current=t},[t]),d.useEffect(()=>{i.current!==n&&(o.current?.(n),i.current=n)},[n,i]),[n,r,o]}({defaultProp:t,onChange:n}),a=void 0!==e,l=a?e:i;{const t=d.useRef(void 0!==e);d.useEffect(()=>{const e=t.current;if(e!==a){const t=e?"controlled":"uncontrolled",n=a?"controlled":"uncontrolled";console.warn(`${r} is changing from ${t} to ${n}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=a},[a,r])}const u=d.useCallback(t=>{if(a){const n=function(e){return"function"==typeof e}(t)?t(e):t;n!==e&&s.current?.(n)}else o(t)},[a,e,o,s]);return[l,u]}Symbol("RADIX:SYNC_STATE");var sh=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),ah=d.forwardRef((e,t)=>(0,h.jsx)(yf.span,{...e,ref:t,style:{...sh,...e.style}}));ah.displayName="VisuallyHidden";var lh=ah,[uh,ch]=df("Tooltip",[Ff]),dh=Ff(),ph="TooltipProvider",fh=700,hh="tooltip.open",[mh,gh]=uh(ph),yh=e=>{const{__scopeTooltip:t,delayDuration:n=fh,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:o}=e,s=d.useRef(!0),a=d.useRef(!1),l=d.useRef(0);return d.useEffect(()=>{const e=l.current;return()=>window.clearTimeout(e)},[]),(0,h.jsx)(mh,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:d.useCallback(()=>{window.clearTimeout(l.current),s.current=!1},[]),onClose:d.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>s.current=!0,r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:d.useCallback(e=>{a.current=e},[]),disableHoverableContent:i,children:o})};yh.displayName=ph;var vh="Tooltip",[bh,Eh]=uh(vh),Th=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:o,disableHoverableContent:s,delayDuration:a}=e,l=gh(vh,e.__scopeTooltip),u=dh(t),[c,p]=d.useState(null),f=Af(),m=d.useRef(0),g=s??l.disableHoverableContent,y=a??l.delayDuration,v=d.useRef(!1),[b,E]=oh({prop:r,defaultProp:i??!1,onChange:e=>{e?(l.onOpen(),document.dispatchEvent(new CustomEvent(hh))):l.onClose(),o?.(e)},caller:vh}),T=d.useMemo(()=>b?v.current?"delayed-open":"instant-open":"closed",[b]),w=d.useCallback(()=>{window.clearTimeout(m.current),m.current=0,v.current=!1,E(!0)},[E]),k=d.useCallback(()=>{window.clearTimeout(m.current),m.current=0,E(!1)},[E]),S=d.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>{v.current=!0,E(!0),m.current=0},y)},[y,E]);return d.useEffect(()=>()=>{m.current&&(window.clearTimeout(m.current),m.current=0)},[]),(0,h.jsx)(Xf,{...u,children:(0,h.jsx)(bh,{scope:t,contentId:f,open:b,stateAttribute:T,trigger:c,onTriggerChange:p,onTriggerEnter:d.useCallback(()=>{l.isOpenDelayedRef.current?S():w()},[l.isOpenDelayedRef,S,w]),onTriggerLeave:d.useCallback(()=>{g?k():(window.clearTimeout(m.current),m.current=0)},[k,g]),onOpen:w,onClose:k,disableHoverableContent:g,children:n})})};Th.displayName=vh;var wh="TooltipTrigger",kh=d.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=Eh(wh,n),o=gh(wh,n),s=dh(n),a=cf(t,d.useRef(null),i.onTriggerChange),l=d.useRef(!1),u=d.useRef(!1),c=d.useCallback(()=>l.current=!1,[]);return d.useEffect(()=>()=>document.removeEventListener("pointerup",c),[c]),(0,h.jsx)(Jf,{asChild:!0,...s,children:(0,h.jsx)(yf.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:a,onPointerMove:af(e.onPointerMove,e=>{"touch"!==e.pointerType&&(u.current||o.isPointerInTransitRef.current||(i.onTriggerEnter(),u.current=!0))}),onPointerLeave:af(e.onPointerLeave,()=>{i.onTriggerLeave(),u.current=!1}),onPointerDown:af(e.onPointerDown,()=>{i.open&&i.onClose(),l.current=!0,document.addEventListener("pointerup",c,{once:!0})}),onFocus:af(e.onFocus,()=>{l.current||i.onOpen()}),onBlur:af(e.onBlur,i.onClose),onClick:af(e.onClick,i.onClose)})})});kh.displayName=wh;var Sh="TooltipPortal",[xh,Ch]=uh(Sh,{forceMount:void 0}),_h=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,o=Eh(Sh,t);return(0,h.jsx)(xh,{scope:t,forceMount:n,children:(0,h.jsx)(nh,{present:n||o.open,children:(0,h.jsx)(th,{asChild:!0,container:i,children:r})})})};_h.displayName=Sh;var Nh="TooltipContent",Dh=d.forwardRef((e,t)=>{const n=Ch(Nh,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...o}=e,s=Eh(Nh,e.__scopeTooltip);return(0,h.jsx)(nh,{present:r||s.open,children:s.disableHoverableContent?(0,h.jsx)(Rh,{side:i,...o,ref:t}):(0,h.jsx)(Ah,{side:i,...o,ref:t})})}),Ah=d.forwardRef((e,t)=>{const n=Eh(Nh,e.__scopeTooltip),r=gh(Nh,e.__scopeTooltip),i=d.useRef(null),o=cf(t,i),[s,a]=d.useState(null),{trigger:l,onClose:u}=n,c=i.current,{onPointerInTransitChange:p}=r,f=d.useCallback(()=>{a(null),p(!1)},[p]),m=d.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())]);a(o),p(!0)},[p]);return d.useEffect(()=>()=>f(),[f]),d.useEffect(()=>{if(l&&c){const e=e=>m(e,c),t=e=>m(e,l);return l.addEventListener("pointerleave",e),c.addEventListener("pointerleave",t),()=>{l.removeEventListener("pointerleave",e),c.removeEventListener("pointerleave",t)}}},[l,c,m,f]),d.useEffect(()=>{if(s){const e=e=>{const t=e.target,n={x:e.clientX,y:e.clientY},r=l?.contains(t)||c?.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 s=t[e],a=t[o],l=s.x,u=s.y,c=a.x,d=a.y;u>r!=d>r&&n<(c-l)*(r-u)/(d-u)+l&&(i=!i)}return i}(n,s);r?f():i&&(f(),u())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[l,c,s,u,f]),(0,h.jsx)(Rh,{...e,ref:o})}),[Lh,Ih]=uh(vh,{isInside:!1}),Oh=function(e){const t=({children:e})=>(0,h.jsx)(h.Fragment,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=mf,t}("TooltipContent"),Rh=d.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:o,onPointerDownOutside:s,...a}=e,l=Eh(Nh,n),u=dh(n),{onClose:c}=l;return d.useEffect(()=>(document.addEventListener(hh,c),()=>document.removeEventListener(hh,c)),[c]),d.useEffect(()=>{if(l.trigger){const e=e=>{const t=e.target;t?.contains(l.trigger)&&c()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[l.trigger,c]),(0,h.jsx)(kf,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:c,children:(0,h.jsxs)(Zf,{"data-state":l.stateAttribute,...u,...a,ref:t,style:{...a.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,h.jsx)(Oh,{children:r}),(0,h.jsx)(Lh,{scope:n,isInside:!0,children:(0,h.jsx)(lh,{id:l.contentId,role:"tooltip",children:i||r})})]})})});Dh.displayName=Nh;var Fh="TooltipArrow",Ph=d.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=dh(n);return Ih(Fh,n).isInside?null:(0,h.jsx)(eh,{...i,...r,ref:t})});Ph.displayName=Fh;var Mh=yh,jh=Th,Vh=kh,Kh=_h,Uh=Dh;const Bh=Object.assign(e=>{const t=(0,m.c)(10),{children:n,align:r,side:i,sideOffset:o,label:s}=e,a=void 0===r?"start":r,l=void 0===i?"bottom":i,u=void 0===o?5:o;let c,d,p;return t[0]!==n?(c=(0,h.jsx)(Vh,{asChild:!0,children:n}),t[0]=n,t[1]=c):c=t[1],t[2]!==a||t[3]!==s||t[4]!==l||t[5]!==u?(d=(0,h.jsx)(Kh,{children:(0,h.jsx)(Uh,{className:"graphiql-tooltip",align:a,side:l,sideOffset:u,children:s})}),t[2]=a,t[3]=s,t[4]=l,t[5]=u,t[6]=d):d=t[6],t[7]!==c||t[8]!==d?(p=(0,h.jsxs)(jh,{children:[c,d]}),t[7]=c,t[8]=d,t[9]=p):p=t[9],p},{Provider:Mh}),$h=v((e,t)=>({historyStorage:null,actions:{addToHistory(n){const{historyStorage:r}=t();null==r||r.updateHistory(n),e({})},editLabel(n,r){const{historyStorage:i}=t();null==i||i.editLabel(n,r),e({})},toggleFavorite(n){const{historyStorage:r}=t();null==r||r.toggleFavorite(n),e({})},setActive:e=>e,deleteFromHistory(n,r){const{historyStorage:i}=t();null==i||i.deleteHistory(n,r),e({})}}})),qh=e=>{const t=(0,m.c)(11),{maxHistoryLength:n,children:r}=e,i=void 0===n?20:n;let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=ln("isFetching","tabs","activeTabIndex","storage"),t[0]=o):o=t[0];const{isFetching:s,tabs:a,activeTabIndex:l,storage:u}=xt(o),c=a[l];let p;t[1]!==i||t[2]!==u?(p=new ue(u,i),t[1]=i,t[2]=u,t[3]=p):p=t[3];const f=p;let h,g,y,v;return t[4]!==f?(h=()=>{$h.setState({historyStorage:f})},g=[f],t[4]=f,t[5]=h,t[6]=g):(h=t[5],g=t[6]),(0,d.useEffect)(h,g),t[7]!==c||t[8]!==s?(y=()=>{if(!s)return;const{addToHistory:e}=$h.getState().actions;e({query:c.query??void 0,variables:c.variables??void 0,headers:c.headers??void 0,operationName:c.operationName??void 0})},v=[s,c],t[7]=c,t[8]=s,t[9]=y,t[10]=v):(y=t[9],v=t[10]),(0,d.useEffect)(y,v),r},zh=Qe($h),Gh=[],Qh=()=>zh(Wh);function Hh(e){var t;return(null==(t=e.historyStorage)?void 0:t.queries)??Gh}function Wh(e){return e.actions}const Yh=e=>{const t=(0,m.c)(39),{editLabel:n,toggleFavorite:r,deleteFromHistory:i,setActive:o}=Qh();let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s=ln("headerEditor","queryEditor","variableEditor"),t[0]=s):s=t[0];const{headerEditor:a,queryEditor:l,variableEditor:u}=xt(s),c=(0,d.useRef)(null),p=(0,d.useRef)(null),[f,g]=(0,d.useState)(!1);let y,v,b;var E;t[1]!==f?(y=()=>{var e;f&&(null==(e=c.current)||e.focus())},v=[f],t[1]=f,t[2]=y,t[3]=v):(y=t[2],v=t[3]),(0,d.useEffect)(y,v),t[4]!==e.item.label||t[5]!==e.item.operationName||t[6]!==e.item.query?(b=e.item.label||e.item.operationName||(null==(E=e.item.query)?void 0:E.split("\n").map(e=>e.replace(/#(.*)/,"")).join(" ").replaceAll("{"," { ").replaceAll("}"," } ").replaceAll(/[\s]{2,}/g," ")),t[4]=e.item.label,t[5]=e.item.operationName,t[6]=e.item.query,t[7]=b):b=t[7];const T=b;let w;t[8]!==n||t[9]!==e.item?(w=()=>{var t;g(!1);const{index:r,...i}=e.item;n({...i,label:null==(t=c.current)?void 0:t.value},r)},t[8]=n,t[9]=e.item,t[10]=w):w=t[10];const k=w;let S;t[11]===Symbol.for("react.memo_cache_sentinel")?(S=()=>{g(!1)},t[11]=S):S=t[11];const x=S;let C;t[12]===Symbol.for("react.memo_cache_sentinel")?(C=e=>{e.stopPropagation(),g(!0)},t[12]=C):C=t[12];const _=C;let N;t[13]!==a||t[14]!==e.item||t[15]!==l||t[16]!==o||t[17]!==u?(N=()=>{const{query:t,variables:n,headers:r}=e.item;null==l||l.setValue(t??""),null==u||u.setValue(n??""),null==a||a.setValue(r??""),o(e.item)},t[13]=a,t[14]=e.item,t[15]=l,t[16]=o,t[17]=u,t[18]=N):N=t[18];const D=N;let A;t[19]!==i||t[20]!==e.item?(A=t=>{t.stopPropagation(),i(e.item)},t[19]=i,t[20]=e.item,t[21]=A):A=t[21];const L=A;let I;t[22]!==e.item||t[23]!==r?(I=t=>{t.stopPropagation(),r(e.item)},t[22]=e.item,t[23]=r,t[24]=I):I=t[24];const O=I,R=f&&"editable";let F,P,M;return t[25]!==R?(F=dn("graphiql-history-item",R),t[25]=R,t[26]=F):F=t[26],t[27]!==T||t[28]!==n||t[29]!==L||t[30]!==D||t[31]!==k||t[32]!==O||t[33]!==f||t[34]!==e.item?(P=f?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("input",{type:"text",defaultValue:e.item.label,ref:c,onKeyDown:t=>{"Esc"===t.key?g(!1):"Enter"===t.key&&(g(!1),n({...e.item,label:t.currentTarget.value}))},placeholder:"Type a label"}),(0,h.jsx)(_o,{type:"button",ref:p,onClick:k,children:"Save"}),(0,h.jsx)(_o,{type:"button",ref:p,onClick:x,children:(0,h.jsx)(Ot,{})})]}):(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(Bh,{label:"Set active",children:(0,h.jsx)(_o,{type:"button",className:"graphiql-history-item-label",onClick:D,"aria-label":"Set active",children:T})}),(0,h.jsx)(Bh,{label:"Edit label",children:(0,h.jsx)(_o,{type:"button",className:"graphiql-history-item-action",onClick:_,"aria-label":"Edit label",children:(0,h.jsx)(Ht,{"aria-hidden":"true"})})}),(0,h.jsx)(Bh,{label:e.item.favorite?"Remove favorite":"Add favorite",children:(0,h.jsx)(_o,{type:"button",className:"graphiql-history-item-action",onClick:O,"aria-label":e.item.favorite?"Remove favorite":"Add favorite",children:e.item.favorite?(0,h.jsx)(tn,{"aria-hidden":"true"}):(0,h.jsx)(nn,{"aria-hidden":"true"})})}),(0,h.jsx)(Bh,{label:"Delete from history",children:(0,h.jsx)(_o,{type:"button",className:"graphiql-history-item-action",onClick:L,"aria-label":"Delete from history",children:(0,h.jsx)(on,{"aria-hidden":"true"})})})]}),t[27]=T,t[28]=n,t[29]=L,t[30]=D,t[31]=k,t[32]=O,t[33]=f,t[34]=e.item,t[35]=P):P=t[35],t[36]!==F||t[37]!==P?(M=(0,h.jsx)("li",{className:F,children:P}),t[36]=F,t[37]=P,t[38]=M):M=t[38],M};function Xh(e,t){return{...e,index:t}}function Jh(e){return e.favorite}function Zh(e){return!e.favorite}function em(e){return(0,h.jsx)(Yh,{item:e},e.index)}function tm(e){return(0,h.jsx)(Yh,{item:e},e.index)}const nm={title:"History",icon:$t,content:()=>{const e=(0,m.c)(13),t=zh(Hh),{deleteFromHistory:n}=Qh();let r;r=t.slice().map(Xh).reverse();const i=r.filter(Jh);i.length&&(r=r.filter(Zh));const[o,s]=(0,d.useState)(null);let a,l;e[0]!==o?(a=()=>{o&&setTimeout(()=>{s(null)},2e3)},l=[o],e[0]=o,e[1]=a,e[2]=l):(a=e[1],l=e[2]),(0,d.useEffect)(a,l);const u=Boolean(i.length),c=Boolean(r.length),p=(o||c)&&(0,h.jsx)(No,{type:"button",state:o||void 0,disabled:!r.length,onClick:()=>{try{!function(e,t){for(const n of e)t(n,!0)}(r,n),s("success")}catch{s("error")}},children:{success:"Cleared",error:"Failed to Clear"}[o]||"Clear"});let f;e[3]!==p?(f=(0,h.jsxs)("div",{className:"graphiql-history-header",children:["History",p]}),e[3]=p,e[4]=f):f=e[4];const g=u&&(0,h.jsx)("ul",{className:"graphiql-history-items",children:i.map(em)});let y;e[5]!==u||e[6]!==c?(y=u&&c&&(0,h.jsx)("div",{className:"graphiql-history-item-spacer"}),e[5]=u,e[6]=c,e[7]=y):y=e[7];const v=c&&(0,h.jsx)("ul",{className:"graphiql-history-items",children:r.map(tm)});let b;return e[8]!==f||e[9]!==g||e[10]!==y||e[11]!==v?(b=(0,h.jsxs)("section",{"aria-label":"History",className:"graphiql-history",children:[f,g,y,v]}),e[8]=f,e[9]=g,e[10]=y,e[11]=v,e[12]=b):b=e[12],b}},rm=(0,d.forwardRef)((e,t)=>{const n=(0,m.c)(19);let r,i,o;n[0]!==e?(({label:r,onClick:i,...o}=e),n[0]=e,n[1]=r,n[2]=i,n[3]=o):(r=n[1],i=n[2],o=n[3]);const[s,a]=(0,d.useState)(null);let l;n[4]!==i?(l=e=>{try{i&&i(e),a(null)}catch(e){a(e instanceof Error?e:new Error(`Toolbar button click failed: ${e}`))}},n[4]=i,n[5]=l):l=n[5];const u=l,c=s&&"error";let p;n[6]!==o.className||n[7]!==c?(p=dn("graphiql-toolbar-button",c,o.className),n[6]=o.className,n[7]=c,n[8]=p):p=n[8];const f=s?s.message:r,g=s?"true":o["aria-invalid"];let y,v;return n[9]!==u||n[10]!==o||n[11]!==t||n[12]!==p||n[13]!==f||n[14]!==g?(y=(0,h.jsx)(_o,{...o,ref:t,type:"button",className:p,onClick:u,"aria-label":f,"aria-invalid":g}),n[9]=u,n[10]=o,n[11]=t,n[12]=p,n[13]=f,n[14]=g,n[15]=y):y=n[15],n[16]!==r||n[17]!==y?(v=(0,h.jsx)(Bh,{label:r,children:y}),n[16]=r,n[17]=y,n[18]=v):v=n[18],v});function im(e){const t=e+"CollectionProvider",[n,r]=df(t),[i,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=e=>{const{scope:t,children:n}=e,r=d.useRef(null),o=d.useRef(new Map).current;return(0,h.jsx)(i,{scope:t,itemMap:o,collectionRef:r,children:n})};s.displayName=t;const a=e+"CollectionSlot",l=ff(a),u=d.forwardRef((e,t)=>{const{scope:n,children:r}=e,i=cf(t,o(a,n).collectionRef);return(0,h.jsx)(l,{ref:i,children:r})});u.displayName=a;const c=e+"CollectionItemSlot",p="data-radix-collection-item",f=ff(c),m=d.forwardRef((e,t)=>{const{scope:n,children:r,...i}=e,s=d.useRef(null),a=cf(t,s),l=o(c,n);return d.useEffect(()=>(l.itemMap.set(s,{ref:s,...i}),()=>{l.itemMap.delete(s)})),(0,h.jsx)(f,{[p]:"",ref:a,children:r})});return m.displayName=c,[{Provider:s,Slot:u,ItemSlot:m},function(t){const n=o(e+"CollectionConsumer",t),r=d.useCallback(()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${p}]`)),r=Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current));return r},[n.collectionRef,n.itemMap]);return r},r]}rm.displayName="ToolbarButton";Map;var om=d.createContext(void 0);function sm(e){const t=d.useContext(om);return e||t||"ltr"}var am=0;function lm(){d.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??um()),document.body.insertAdjacentElement("beforeend",e[1]??um()),am++,()=>{1===am&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),am--}},[])}function um(){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 cm="focusScope.autoFocusOnMount",dm="focusScope.autoFocusOnUnmount",pm={bubbles:!1,cancelable:!0},fm=d.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...s}=e,[a,l]=d.useState(null),u=bf(i),c=bf(o),p=d.useRef(null),f=cf(t,e=>l(e)),m=d.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;d.useEffect(()=>{if(r){let e=function(e){if(m.paused||!a)return;const t=e.target;a.contains(t)?p.current=t:ym(p.current,{select:!0})},t=function(e){if(m.paused||!a)return;const t=e.relatedTarget;null!==t&&(a.contains(t)||ym(p.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&ym(a)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return a&&r.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[r,a,m.paused]),d.useEffect(()=>{if(a){vm.add(m);const e=document.activeElement;if(!a.contains(e)){const t=new CustomEvent(cm,pm);a.addEventListener(cm,u),a.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(ym(r,{select:t}),document.activeElement!==n)return}(hm(a).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&ym(a))}return()=>{a.removeEventListener(cm,u),setTimeout(()=>{const t=new CustomEvent(dm,pm);a.addEventListener(dm,c),a.dispatchEvent(t),t.defaultPrevented||ym(e??document.body,{select:!0}),a.removeEventListener(dm,c),vm.remove(m)},0)}}},[a,u,c,m]);const g=d.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=hm(e);return[mm(t,e),mm(t.reverse(),e)]}(t);r&&o?e.shiftKey||i!==o?e.shiftKey&&i===r&&(e.preventDefault(),n&&ym(o,{select:!0})):(e.preventDefault(),n&&ym(r,{select:!0})):i===t&&e.preventDefault()}},[n,r,m.paused]);return(0,h.jsx)(yf.div,{tabIndex:-1,...s,ref:f,onKeyDown:g})});function hm(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 mm(e,t){for(const n of e)if(!gm(n,{upTo:t}))return n}function gm(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 ym(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()}}fm.displayName="FocusScope";var vm=function(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=bm(e,t),e.unshift(t)},remove(t){e=bm(e,t),e[0]?.resume()}}}();function bm(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}var Em="rovingFocusGroup.onEntryFocus",Tm={bubbles:!1,cancelable:!0},wm="RovingFocusGroup",[km,Sm,xm]=im(wm),[Cm,_m]=df(wm,[xm]),[Nm,Dm]=Cm(wm),Am=d.forwardRef((e,t)=>(0,h.jsx)(km.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,h.jsx)(km.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,h.jsx)(Lm,{...e,ref:t})})}));Am.displayName=wm;var Lm=d.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:o,currentTabStopId:s,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:l,onEntryFocus:u,preventScrollOnEntryFocus:c=!1,...p}=e,f=d.useRef(null),m=cf(t,f),g=sm(o),[y,v]=oh({prop:s,defaultProp:a??null,onChange:l,caller:wm}),[b,E]=d.useState(!1),T=bf(u),w=Sm(n),k=d.useRef(!1),[S,x]=d.useState(0);return d.useEffect(()=>{const e=f.current;if(e)return e.addEventListener(Em,T),()=>e.removeEventListener(Em,T)},[T]),(0,h.jsx)(Nm,{scope:n,orientation:r,dir:g,loop:i,currentTabStopId:y,onItemFocus:d.useCallback(e=>v(e),[v]),onItemShiftTab:d.useCallback(()=>E(!0),[]),onFocusableItemAdd:d.useCallback(()=>x(e=>e+1),[]),onFocusableItemRemove:d.useCallback(()=>x(e=>e-1),[]),children:(0,h.jsx)(yf.div,{tabIndex:b||0===S?-1:0,"data-orientation":r,...p,ref:m,style:{outline:"none",...e.style},onMouseDown:af(e.onMouseDown,()=>{k.current=!0}),onFocus:af(e.onFocus,e=>{const t=!k.current;if(e.target===e.currentTarget&&t&&!b){const t=new CustomEvent(Em,Tm);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=w().filter(e=>e.focusable);Fm([e.find(e=>e.active),e.find(e=>e.id===y),...e].filter(Boolean).map(e=>e.ref.current),c)}}k.current=!1}),onBlur:af(e.onBlur,()=>E(!1))})})}),Im="RovingFocusGroupItem",Om=d.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:o,children:s,...a}=e,l=Af(),u=o||l,c=Dm(Im,n),p=c.currentTabStopId===u,f=Sm(n),{onFocusableItemAdd:m,onFocusableItemRemove:g,currentTabStopId:y}=c;return d.useEffect(()=>{if(r)return m(),()=>g()},[r,m,g]),(0,h.jsx)(km.ItemSlot,{scope:n,id:u,focusable:r,active:i,children:(0,h.jsx)(yf.span,{tabIndex:p?0:-1,"data-orientation":c.orientation,...a,ref:t,onMouseDown:af(e.onMouseDown,e=>{r?c.onItemFocus(u):e.preventDefault()}),onFocus:af(e.onFocus,()=>c.onItemFocus(u)),onKeyDown:af(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void c.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:Rm[r]}(e,c.orientation,c.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let i=f().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=c.loop?(r=o+1,(n=i).map((e,t)=>n[(r+t)%n.length])):i.slice(o+1)}setTimeout(()=>Fm(i))}var n,r}),children:"function"==typeof s?s({isCurrentTabStop:p,hasTabStop:null!=y}):s})})});Om.displayName=Im;var Rm={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Fm(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 Pm=Am,Mm=Om,jm=new WeakMap,Vm=new WeakMap,Km={},Um=0,Bm=function(e){return e&&(e.host||Bm(e.parentNode))},$m=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], script"))),function(e,t,n,r){var i=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=Bm(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]);Km[n]||(Km[n]=new WeakMap);var o=Km[n],s=[],a=new Set,l=new Set(i),u=function(e){e&&!a.has(e)&&(a.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(a.has(e))c(e);else try{var t=e.getAttribute(r),i=null!==t&&"false"!==t,l=(jm.get(e)||0)+1,u=(o.get(e)||0)+1;jm.set(e,l),o.set(e,u),s.push(e),1===l&&i&&Vm.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),a.clear(),Um++,function(){s.forEach(function(e){var t=jm.get(e)-1,i=o.get(e)-1;jm.set(e,t),o.set(e,i),t||(Vm.has(e)||e.removeAttribute(r),Vm.delete(e)),i||e.removeAttribute(n)}),--Um||(jm=new WeakMap,jm=new WeakMap,Vm=new WeakMap,Km={})}}(r,i,n,"aria-hidden")):function(){return null}},qm=function(){return qm=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},qm.apply(this,arguments)};function zm(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}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var Gm="right-scroll-bar-position",Qm="width-before-scroll-bar";function Hm(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var Wm="undefined"!=typeof window?d.useLayoutEffect:d.useEffect,Ym=new WeakMap;function Xm(e){return e}var Jm=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=Xm);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)},s=function(){return Promise.resolve().then(o)};s(),n={push:function(e){t.push(e),s()},filter:function(e){return t=t.filter(e),n}}}}}(null);return t.options=qm({async:!0,ssr:!1},e),t}(),Zm=function(){},eg=d.forwardRef(function(e,t){var n=d.useRef(null),r=d.useState({onScrollCapture:Zm,onWheelCapture:Zm,onTouchMoveCapture:Zm}),i=r[0],o=r[1],s=e.forwardProps,a=e.children,l=e.className,u=e.removeScrollBar,c=e.enabled,p=e.shards,f=e.sideCar,h=e.noRelative,m=e.noIsolation,g=e.inert,y=e.allowPinchZoom,v=e.as,b=void 0===v?"div":v,E=e.gapMode,T=zm(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=f,k=function(e,t){var n,r,i,o=(n=t||null,r=function(t){return e.forEach(function(e){return Hm(e,t)})},(i=(0,d.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 Wm(function(){var t=Ym.get(o);if(t){var n=new Set(t),r=new Set(e),i=o.current;n.forEach(function(e){r.has(e)||Hm(e,null)}),r.forEach(function(e){n.has(e)||Hm(e,i)})}Ym.set(o,e)},[e]),o}([n,t]),S=qm(qm({},T),i);return d.createElement(d.Fragment,null,c&&d.createElement(w,{sideCar:Jm,removeScrollBar:u,shards:p,noRelative:h,noIsolation:m,inert:g,setCallbacks:o,allowPinchZoom:!!y,lockRef:n,gapMode:E}),s?d.cloneElement(d.Children.only(a),qm(qm({},S),{ref:k})):d.createElement(b,qm({},S,{className:l,ref:k}),a))});eg.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},eg.classNames={fullWidth:Qm,zeroRight:Gm};var tg=function(e){var t=e.sideCar,n=zm(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 d.createElement(r,qm({},n))};tg.isSideCarExport=!0;var ng=function(){var e=0,t=null;return{add:function(n){var r,i;0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=s.nc;return t&&e.setAttribute("nonce",t),e}())&&(i=n,(r=t).styleSheet?r.styleSheet.cssText=i:r.appendChild(document.createTextNode(i)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},rg=function(){var e,t=(e=ng(),function(t,n){d.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}},ig={left:0,top:0,right:0,gap:0},og=function(e){return parseInt(e||"",10)||0},sg=rg(),ag="data-scroll-locked",lg=function(e,t,n,r){var i=e.left,o=e.top,s=e.right,a=e.gap;return void 0===n&&(n="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(r,";\n   padding-right: ").concat(a,"px ").concat(r,";\n  }\n  body[").concat(ag,"] {\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(s,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(a,"px ").concat(r,";\n    "),"padding"===n&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(Gm," {\n    right: ").concat(a,"px ").concat(r,";\n  }\n  \n  .").concat(Qm," {\n    margin-right: ").concat(a,"px ").concat(r,";\n  }\n  \n  .").concat(Gm," .").concat(Gm," {\n    right: 0 ").concat(r,";\n  }\n  \n  .").concat(Qm," .").concat(Qm," {\n    margin-right: 0 ").concat(r,";\n  }\n  \n  body[").concat(ag,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(a,"px;\n  }\n")},ug=function(){var e=parseInt(document.body.getAttribute(ag)||"0",10);return isFinite(e)?e:0},cg=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=void 0===r?"margin":r;d.useEffect(function(){return document.body.setAttribute(ag,(ug()+1).toString()),function(){var e=ug()-1;e<=0?document.body.removeAttribute(ag):document.body.setAttribute(ag,e.toString())}},[]);var o=d.useMemo(function(){return function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return ig;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[og(n),og(r),og(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 d.createElement(sg,{styles:lg(o,!t,i,n?"":"!important")})},dg=!1;if("undefined"!=typeof window)try{var pg=Object.defineProperty({},"passive",{get:function(){return dg=!0,!0}});window.addEventListener("test",pg,pg),window.removeEventListener("test",pg,pg)}catch(e){dg=!1}var fg=!!dg&&{passive:!1},hg=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])},mg=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),gg(e,r)){var i=yg(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},gg=function(e,t){return"v"===e?function(e){return hg(e,"overflowY")}(t):function(e){return hg(e,"overflowX")}(t)},yg=function(e,t){return"v"===e?function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]}(t):function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t)},vg=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},bg=function(e){return[e.deltaX,e.deltaY]},Eg=function(e){return e&&"current"in e?e.current:e},Tg=function(e){return"\n  .block-interactivity-".concat(e," {pointer-events: none;}\n  .allow-interactivity-").concat(e," {pointer-events: all;}\n")},wg=0,kg=[];function Sg(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const xg=(Cg=function(e){var t=d.useRef([]),n=d.useRef([0,0]),r=d.useRef(),i=d.useState(wg++)[0],o=d.useState(rg)[0],s=d.useRef(e);d.useEffect(function(){s.current=e},[e]),d.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=function(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))}([e.lockRef.current],(e.shards||[]).map(Eg),!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 a=d.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!s.current.allowPinchZoom;var i,o=vg(e),a=n.current,l="deltaX"in e?e.deltaX:a[0]-o[0],u="deltaY"in e?e.deltaY:a[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 p=mg(d,c);if(!p)return!0;if(p?i=d:(i="v"===d?"h":"v",p=mg(d,c)),!p)return!1;if(!r.current&&"changedTouches"in e&&(l||u)&&(r.current=i),!i)return!0;var f=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,s=n.target,a=t.contains(s),l=!1,u=o>0,c=0,d=0;do{if(!s)break;var p=yg(e,s),f=p[0],h=p[1]-p[2]-i*f;(f||h)&&gg(e,s)&&(c+=h,d+=f);var m=s.parentNode;s=m&&m.nodeType===Node.DOCUMENT_FRAGMENT_NODE?m.host:m}while(!a&&s!==document.body||a&&(t.contains(s)||t===s));return(u&&(Math.abs(c)<1||!1)||!u&&(Math.abs(d)<1||!1))&&(l=!0),l}(f,t,e,"h"===f?l:u)},[]),l=d.useCallback(function(e){var n=e;if(kg.length&&kg[kg.length-1]===o){var r="deltaY"in n?bg(n):vg(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&function(e,t){return e[0]===t[0]&&e[1]===t[1]}(e.delta,r)})[0];if(i&&i.should)n.cancelable&&n.preventDefault();else if(!i){var l=(s.current.shards||[]).map(Eg).filter(Boolean).filter(function(e){return e.contains(n.target)});(l.length>0?a(n,l[0]):!s.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),u=d.useCallback(function(e,n,r,i){var o={name:e,delta:n,target:r,should:i,shadowParent:Sg(r)};t.current.push(o),setTimeout(function(){t.current=t.current.filter(function(e){return e!==o})},1)},[]),c=d.useCallback(function(e){n.current=vg(e),r.current=void 0},[]),p=d.useCallback(function(t){u(t.type,bg(t),t.target,a(t,e.lockRef.current))},[]),f=d.useCallback(function(t){u(t.type,vg(t),t.target,a(t,e.lockRef.current))},[]);d.useEffect(function(){return kg.push(o),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:f}),document.addEventListener("wheel",l,fg),document.addEventListener("touchmove",l,fg),document.addEventListener("touchstart",c,fg),function(){kg=kg.filter(function(e){return e!==o}),document.removeEventListener("wheel",l,fg),document.removeEventListener("touchmove",l,fg),document.removeEventListener("touchstart",c,fg)}},[]);var h=e.removeScrollBar,m=e.inert;return d.createElement(d.Fragment,null,m?d.createElement(o,{styles:Tg(i)}):null,h?d.createElement(cg,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},Jm.useMedium(Cg),tg);var Cg,_g=d.forwardRef(function(e,t){return d.createElement(eg,qm({},e,{ref:t,sideCar:xg}))});_g.classNames=eg.classNames;const Ng=_g;var Dg=["Enter"," "],Ag=["ArrowUp","PageDown","End"],Lg=["ArrowDown","PageUp","Home",...Ag],Ig={ltr:[...Dg,"ArrowRight"],rtl:[...Dg,"ArrowLeft"]},Og={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Rg="Menu",[Fg,Pg,Mg]=im(Rg),[jg,Vg]=df(Rg,[Mg,Ff,_m]),Kg=Ff(),Ug=_m(),[Bg,$g]=jg(Rg),[qg,zg]=jg(Rg),Gg=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:o,modal:s=!0}=e,a=Kg(t),[l,u]=d.useState(null),c=d.useRef(!1),p=bf(o),f=sm(i);return d.useEffect(()=>{const e=()=>{c.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>c.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,h.jsx)(Xf,{...a,children:(0,h.jsx)(Bg,{scope:t,open:n,onOpenChange:p,content:l,onContentChange:u,children:(0,h.jsx)(qg,{scope:t,onClose:d.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:c,dir:f,modal:s,children:r})})})};Gg.displayName=Rg;var Qg=d.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,i=Kg(n);return(0,h.jsx)(Jf,{...i,...r,ref:t})});Qg.displayName="MenuAnchor";var Hg="MenuPortal",[Wg,Yg]=jg(Hg,{forceMount:void 0}),Xg=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:i}=e,o=$g(Hg,t);return(0,h.jsx)(Wg,{scope:t,forceMount:n,children:(0,h.jsx)(nh,{present:n||o.open,children:(0,h.jsx)(th,{asChild:!0,container:i,children:r})})})};Xg.displayName=Hg;var Jg="MenuContent",[Zg,ey]=jg(Jg),ty=d.forwardRef((e,t)=>{const n=Yg(Jg,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,o=$g(Jg,e.__scopeMenu),s=zg(Jg,e.__scopeMenu);return(0,h.jsx)(Fg.Provider,{scope:e.__scopeMenu,children:(0,h.jsx)(nh,{present:r||o.open,children:(0,h.jsx)(Fg.Slot,{scope:e.__scopeMenu,children:s.modal?(0,h.jsx)(ny,{...i,ref:t}):(0,h.jsx)(ry,{...i,ref:t})})})})}),ny=d.forwardRef((e,t)=>{const n=$g(Jg,e.__scopeMenu),r=d.useRef(null),i=cf(t,r);return d.useEffect(()=>{const e=r.current;if(e)return $m(e)},[]),(0,h.jsx)(oy,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:af(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),ry=d.forwardRef((e,t)=>{const n=$g(Jg,e.__scopeMenu);return(0,h.jsx)(oy,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),iy=ff("MenuContent.ScrollLock"),oy=d.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:o,onCloseAutoFocus:s,disableOutsidePointerEvents:a,onEntryFocus:l,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:p,onInteractOutside:f,onDismiss:m,disableOutsideScroll:g,...y}=e,v=$g(Jg,n),b=zg(Jg,n),E=Kg(n),T=Ug(n),w=Pg(n),[k,S]=d.useState(null),x=d.useRef(null),C=cf(t,x,v.onContentChange),_=d.useRef(0),N=d.useRef(""),D=d.useRef(0),A=d.useRef(null),L=d.useRef("right"),I=d.useRef(0),O=g?Ng:d.Fragment,R=g?{as:iy,allowPinchZoom:!0}:void 0;d.useEffect(()=>()=>window.clearTimeout(_.current),[]),lm();const F=d.useCallback(e=>L.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 s=t[e],a=t[o],l=s.x,u=s.y,c=a.x,d=a.y;u>r!=d>r&&n<(c-l)*(r-u)/(d-u)+l&&(i=!i)}return i}({x:e.clientX,y:e.clientY},t)}(e,A.current?.area),[]);return(0,h.jsx)(Zg,{scope:n,searchRef:N,onItemEnter:d.useCallback(e=>{F(e)&&e.preventDefault()},[F]),onItemLeave:d.useCallback(e=>{F(e)||(x.current?.focus(),S(null))},[F]),onTriggerLeave:d.useCallback(e=>{F(e)&&e.preventDefault()},[F]),pointerGraceTimerRef:D,onPointerGraceIntentChange:d.useCallback(e=>{A.current=e},[]),children:(0,h.jsx)(O,{...R,children:(0,h.jsx)(fm,{asChild:!0,trapped:i,onMountAutoFocus:af(o,e=>{e.preventDefault(),x.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:(0,h.jsx)(kf,{asChild:!0,disableOutsidePointerEvents:a,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:p,onInteractOutside:f,onDismiss:m,children:(0,h.jsx)(Pm,{asChild:!0,...T,dir:b.dir,orientation:"vertical",loop:r,currentTabStopId:k,onCurrentTabStopIdChange:S,onEntryFocus:af(l,e=>{b.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,h.jsx)(Zf,{role:"menu","aria-orientation":"vertical","data-state":Iy(v.open),"data-radix-menu-content":"",dir:b.dir,...E,...y,ref:C,style:{outline:"none",...y.style},onKeyDown:af(y.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=N.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=(s=e,a=Math.max(i,0),s.map((e,t)=>s[(a+t)%s.length]));var s,a;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),s=n.find(e=>e.textValue===o)?.ref.current;!function e(t){N.current=t,window.clearTimeout(_.current),""!==t&&(_.current=window.setTimeout(()=>e(""),1e3))}(t),s&&setTimeout(()=>s.focus())})(e.key));const i=x.current;if(e.target!==i)return;if(!Lg.includes(e.key))return;e.preventDefault();const o=w().filter(e=>!e.disabled).map(e=>e.ref.current);Ag.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:af(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(_.current),N.current="")}),onPointerMove:af(e.onPointerMove,Fy(e=>{const t=e.target,n=I.current!==e.clientX;if(e.currentTarget.contains(t)&&n){const t=e.clientX>I.current?"right":"left";L.current=t,I.current=e.clientX}}))})})})})})})});ty.displayName=Jg;var sy=d.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return(0,h.jsx)(yf.div,{role:"group",...r,ref:t})});sy.displayName="MenuGroup";var ay=d.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return(0,h.jsx)(yf.div,{...r,ref:t})});ay.displayName="MenuLabel";var ly="MenuItem",uy="menu.itemSelect",cy=d.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...i}=e,o=d.useRef(null),s=zg(ly,e.__scopeMenu),a=ey(ly,e.__scopeMenu),l=cf(t,o),u=d.useRef(!1);return(0,h.jsx)(dy,{...i,ref:l,disabled:n,onClick:af(e.onClick,()=>{const e=o.current;if(!n&&e){const t=new CustomEvent(uy,{bubbles:!0,cancelable:!0});e.addEventListener(uy,e=>r?.(e),{once:!0}),vf(e,t),t.defaultPrevented?u.current=!1:s.onClose()}}),onPointerDown:t=>{e.onPointerDown?.(t),u.current=!0},onPointerUp:af(e.onPointerUp,e=>{u.current||e.currentTarget?.click()}),onKeyDown:af(e.onKeyDown,e=>{const t=""!==a.searchRef.current;n||t&&" "===e.key||Dg.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});cy.displayName=ly;var dy=d.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:i,...o}=e,s=ey(ly,n),a=Ug(n),l=d.useRef(null),u=cf(t,l),[c,p]=d.useState(!1),[f,m]=d.useState("");return d.useEffect(()=>{const e=l.current;e&&m((e.textContent??"").trim())},[o.children]),(0,h.jsx)(Fg.ItemSlot,{scope:n,disabled:r,textValue:i??f,children:(0,h.jsx)(Mm,{asChild:!0,...a,focusable:!r,children:(0,h.jsx)(yf.div,{role:"menuitem","data-highlighted":c?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...o,ref:u,onPointerMove:af(e.onPointerMove,Fy(e=>{r?s.onItemLeave(e):(s.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:af(e.onPointerLeave,Fy(e=>s.onItemLeave(e))),onFocus:af(e.onFocus,()=>p(!0)),onBlur:af(e.onBlur,()=>p(!1))})})})}),py=d.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...i}=e;return(0,h.jsx)(Ey,{scope:e.__scopeMenu,checked:n,children:(0,h.jsx)(cy,{role:"menuitemcheckbox","aria-checked":Oy(n)?"mixed":n,...i,ref:t,"data-state":Ry(n),onSelect:af(i.onSelect,()=>r?.(!!Oy(n)||!n),{checkForDefaultPrevented:!1})})})});py.displayName="MenuCheckboxItem";var fy="MenuRadioGroup",[hy,my]=jg(fy,{value:void 0,onValueChange:()=>{}}),gy=d.forwardRef((e,t)=>{const{value:n,onValueChange:r,...i}=e,o=bf(r);return(0,h.jsx)(hy,{scope:e.__scopeMenu,value:n,onValueChange:o,children:(0,h.jsx)(sy,{...i,ref:t})})});gy.displayName=fy;var yy="MenuRadioItem",vy=d.forwardRef((e,t)=>{const{value:n,...r}=e,i=my(yy,e.__scopeMenu),o=n===i.value;return(0,h.jsx)(Ey,{scope:e.__scopeMenu,checked:o,children:(0,h.jsx)(cy,{role:"menuitemradio","aria-checked":o,...r,ref:t,"data-state":Ry(o),onSelect:af(r.onSelect,()=>i.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});vy.displayName=yy;var by="MenuItemIndicator",[Ey,Ty]=jg(by,{checked:!1}),wy=d.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...i}=e,o=Ty(by,n);return(0,h.jsx)(nh,{present:r||Oy(o.checked)||!0===o.checked,children:(0,h.jsx)(yf.span,{...i,ref:t,"data-state":Ry(o.checked)})})});wy.displayName=by;var ky=d.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return(0,h.jsx)(yf.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});ky.displayName="MenuSeparator";var Sy=d.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,i=Kg(n);return(0,h.jsx)(eh,{...i,...r,ref:t})});Sy.displayName="MenuArrow";var xy="MenuSub",[Cy,_y]=jg(xy),Ny="MenuSubTrigger",Dy=d.forwardRef((e,t)=>{const n=$g(Ny,e.__scopeMenu),r=zg(Ny,e.__scopeMenu),i=_y(Ny,e.__scopeMenu),o=ey(Ny,e.__scopeMenu),s=d.useRef(null),{pointerGraceTimerRef:a,onPointerGraceIntentChange:l}=o,u={__scopeMenu:e.__scopeMenu},c=d.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return d.useEffect(()=>c,[c]),d.useEffect(()=>{const e=a.current;return()=>{window.clearTimeout(e),l(null)}},[a,l]),(0,h.jsx)(Qg,{asChild:!0,...u,children:(0,h.jsx)(dy,{id:i.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":i.contentId,"data-state":Iy(n.open),...e,ref:uf(t,i.onTriggerChange),onClick:t=>{e.onClick?.(t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:af(e.onPointerMove,Fy(t=>{o.onItemEnter(t),t.defaultPrevented||e.disabled||n.open||s.current||(o.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{n.onOpenChange(!0),c()},100))})),onPointerLeave:af(e.onPointerLeave,Fy(e=>{c();const t=n.content?.getBoundingClientRect();if(t){const r=n.content?.dataset.side,i="right"===r,s=i?-5:5,l=t[i?"left":"right"],u=t[i?"right":"left"];o.onPointerGraceIntentChange({area:[{x:e.clientX+s,y:e.clientY},{x:l,y:t.top},{x:u,y:t.top},{x:u,y:t.bottom},{x:l,y:t.bottom}],side:r}),window.clearTimeout(a.current),a.current=window.setTimeout(()=>o.onPointerGraceIntentChange(null),300)}else{if(o.onTriggerLeave(e),e.defaultPrevented)return;o.onPointerGraceIntentChange(null)}})),onKeyDown:af(e.onKeyDown,t=>{const i=""!==o.searchRef.current;e.disabled||i&&" "===t.key||Ig[r.dir].includes(t.key)&&(n.onOpenChange(!0),n.content?.focus(),t.preventDefault())})})})});Dy.displayName=Ny;var Ay="MenuSubContent",Ly=d.forwardRef((e,t)=>{const n=Yg(Jg,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,o=$g(Jg,e.__scopeMenu),s=zg(Jg,e.__scopeMenu),a=_y(Ay,e.__scopeMenu),l=d.useRef(null),u=cf(t,l);return(0,h.jsx)(Fg.Provider,{scope:e.__scopeMenu,children:(0,h.jsx)(nh,{present:r||o.open,children:(0,h.jsx)(Fg.Slot,{scope:e.__scopeMenu,children:(0,h.jsx)(oy,{id:a.contentId,"aria-labelledby":a.triggerId,...i,ref:u,align:"start",side:"rtl"===s.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{s.isUsingKeyboardRef.current&&l.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:af(e.onFocusOutside,e=>{e.target!==a.trigger&&o.onOpenChange(!1)}),onEscapeKeyDown:af(e.onEscapeKeyDown,e=>{s.onClose(),e.preventDefault()}),onKeyDown:af(e.onKeyDown,e=>{const t=e.currentTarget.contains(e.target),n=Og[s.dir].includes(e.key);t&&n&&(o.onOpenChange(!1),a.trigger?.focus(),e.preventDefault())})})})})})});function Iy(e){return e?"open":"closed"}function Oy(e){return"indeterminate"===e}function Ry(e){return Oy(e)?"indeterminate":e?"checked":"unchecked"}function Fy(e){return t=>"mouse"===t.pointerType?e(t):void 0}Ly.displayName=Ay;var Py=Gg,My=Qg,jy=Xg,Vy=ty,Ky=sy,Uy=ay,By=cy,$y=py,qy=gy,zy=vy,Gy=wy,Qy=ky,Hy=Sy,Wy=Dy,Yy=Ly,Xy="DropdownMenu",[Jy,Zy]=df(Xy,[Vg]),ev=Vg(),[tv,nv]=Jy(Xy),rv=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:o,onOpenChange:s,modal:a=!0}=e,l=ev(t),u=d.useRef(null),[c,p]=oh({prop:i,defaultProp:o??!1,onChange:s,caller:Xy});return(0,h.jsx)(tv,{scope:t,triggerId:Af(),triggerRef:u,contentId:Af(),open:c,onOpenChange:p,onOpenToggle:d.useCallback(()=>p(e=>!e),[p]),modal:a,children:(0,h.jsx)(Py,{...l,open:c,onOpenChange:p,dir:r,modal:a,children:n})})};rv.displayName=Xy;var iv="DropdownMenuTrigger",ov=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,o=nv(iv,n),s=ev(n);return(0,h.jsx)(My,{asChild:!0,...s,children:(0,h.jsx)(yf.button,{type:"button",id:o.triggerId,"aria-haspopup":"menu","aria-expanded":o.open,"aria-controls":o.open?o.contentId:void 0,"data-state":o.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...i,ref:uf(t,o.triggerRef),onPointerDown:af(e.onPointerDown,e=>{r||0!==e.button||!1!==e.ctrlKey||(o.onOpenToggle(),o.open||e.preventDefault())}),onKeyDown:af(e.onKeyDown,e=>{r||(["Enter"," "].includes(e.key)&&o.onOpenToggle(),"ArrowDown"===e.key&&o.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});ov.displayName=iv;var sv=e=>{const{__scopeDropdownMenu:t,...n}=e,r=ev(t);return(0,h.jsx)(jy,{...r,...n})};sv.displayName="DropdownMenuPortal";var av="DropdownMenuContent",lv=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=nv(av,n),o=ev(n),s=d.useRef(!1);return(0,h.jsx)(Vy,{id:i.contentId,"aria-labelledby":i.triggerId,...o,...r,ref:t,onCloseAutoFocus:af(e.onCloseAutoFocus,e=>{s.current||i.triggerRef.current?.focus(),s.current=!1,e.preventDefault()}),onInteractOutside:af(e.onInteractOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;i.modal&&!r||(s.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)"}})});lv.displayName=av;var uv=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=ev(n);return(0,h.jsx)(Ky,{...i,...r,ref:t})});uv.displayName="DropdownMenuGroup";var cv=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=ev(n);return(0,h.jsx)(Uy,{...i,...r,ref:t})});cv.displayName="DropdownMenuLabel";var dv=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=ev(n);return(0,h.jsx)(By,{...i,...r,ref:t})});dv.displayName="DropdownMenuItem";var pv=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=ev(n);return(0,h.jsx)($y,{...i,...r,ref:t})});pv.displayName="DropdownMenuCheckboxItem";var fv=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=ev(n);return(0,h.jsx)(qy,{...i,...r,ref:t})});fv.displayName="DropdownMenuRadioGroup";var hv=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=ev(n);return(0,h.jsx)(zy,{...i,...r,ref:t})});hv.displayName="DropdownMenuRadioItem";var mv=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=ev(n);return(0,h.jsx)(Gy,{...i,...r,ref:t})});mv.displayName="DropdownMenuItemIndicator";var gv=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=ev(n);return(0,h.jsx)(Qy,{...i,...r,ref:t})});gv.displayName="DropdownMenuSeparator";var yv=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=ev(n);return(0,h.jsx)(Hy,{...i,...r,ref:t})});yv.displayName="DropdownMenuArrow";var vv=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=ev(n);return(0,h.jsx)(Wy,{...i,...r,ref:t})});vv.displayName="DropdownMenuSubTrigger";var bv=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=ev(n);return(0,h.jsx)(Yy,{...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)"}})});bv.displayName="DropdownMenuSubContent";var Ev=rv,Tv=ov,wv=sv,kv=lv,Sv=dv;const xv=(0,d.forwardRef)((e,t)=>{const n=(0,m.c)(6);let r,i;return n[0]!==e.className?(r=dn("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,h.jsx)(Tv,{asChild:!0,children:(0,h.jsx)("button",{...e,ref:t,className:r})}),n[2]=e,n[3]=t,n[4]=r,n[5]=i):i=n[5],i});xv.displayName="DropdownMenuButton";const Cv=Object.assign(Ev,{Button:xv,Item:e=>{const t=(0,m.c)(10);let n,r,i,o,s;return t[0]!==e?(({className:r,children:n,...i}=e),t[0]=e,t[1]=n,t[2]=r,t[3]=i):(n=t[1],r=t[2],i=t[3]),t[4]!==r?(o=dn("graphiql-dropdown-item",r),t[4]=r,t[5]=o):o=t[5],t[6]!==n||t[7]!==i||t[8]!==o?(s=(0,h.jsx)(Sv,{className:o,...i,children:n}),t[6]=n,t[7]=i,t[8]=o,t[9]=s):s=t[9],s},Content:e=>{const t=(0,m.c)(14);let n,r,i,o,s;t[0]!==e?(({children:n,align:o,sideOffset:s,className:r,...i}=e),t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=s):(n=t[1],r=t[2],i=t[3],o=t[4],s=t[5]);const a=void 0===o?"start":o,l=void 0===s?5:s;let u,c;return t[6]!==r?(u=dn("graphiql-dropdown-content",r),t[6]=r,t[7]=u):u=t[7],t[8]!==a||t[9]!==n||t[10]!==i||t[11]!==l||t[12]!==u?(c=(0,h.jsx)(wv,{children:(0,h.jsx)(kv,{align:a,sideOffset:l,className:u,...i,children:n})}),t[8]=a,t[9]=n,t[10]=i,t[11]=l,t[12]=u,t[13]=c):c=t[13],c}}),_v=Object.assign(e=>{const t=(0,m.c)(12);let n,r,i,o,s,a;return t[0]!==e?(({button:n,children:r,...i}=e),t[0]=e,t[1]=n,t[2]=r,t[3]=i):(n=t[1],r=t[2],i=t[3]),t[4]!==n?(o=(0,h.jsx)(Tv,{asChild:!0,children:n}),t[4]=n,t[5]=o):o=t[5],t[6]!==r?(s=(0,h.jsx)(Cv.Content,{children:r}),t[6]=r,t[7]=s):s=t[7],t[8]!==i||t[9]!==o||t[10]!==s?(a=(0,h.jsxs)(Cv,{...i,children:[o,s]}),t[8]=i,t[9]=o,t[10]=s,t[11]=a):a=t[11],a},{Item:Cv.Item});function Nv(e){const t=(0,m.c)(26),{defaultSizeRelation:n,direction:r,initiallyHidden:i,onHiddenElementChange:o,sizeThresholdFirst:s,sizeThresholdSecond:a,storageKey:l}=e,u=void 0===n?1:n,c=void 0===s?100:s,p=void 0===a?100:a,f=xt(Dv);let h;t[0]!==i||t[1]!==f||t[2]!==l?(h=()=>{const e=l&&f.get(l);return e===Av||"first"===i?"first":e===Lv||"second"===i?"second":null},t[0]=i,t[1]=f,t[2]=l,t[3]=h):h=t[3];const[g,y]=(0,d.useState)(h),v=(0,d.useRef)(null),b=(0,d.useRef)(null),E=(0,d.useRef)(null),T=(0,d.useRef)(`${u}`);let w,k,S,x,C,_,N;return t[4]!==f||t[5]!==l?(w=()=>{const e=l&&f.get(l)||T.current;v.current&&(v.current.style.flex=e===Av||e===Lv?T.current:e),E.current&&(E.current.style.flex="1")},t[4]=f,t[5]=l,t[6]=w):w=t[6],t[7]!==r||t[8]!==f||t[9]!==l?(k=[r,f,l],t[7]=r,t[8]=f,t[9]=l,t[10]=k):k=t[10],(0,d.useEffect)(w,k),t[11]!==g||t[12]!==f||t[13]!==l?(S=()=>{const e=function(e){if(e.style.left="-1000px",e.style.position="absolute",e.style.opacity="0",!v.current)return;const t=parseFloat(v.current.style.flex);(!Number.isFinite(t)||t<1)&&(v.current.style.flex="1")},t=function(e){if(e.style.left="",e.style.position="",e.style.opacity="",!l)return;const t=f.get(l);v.current&&t!==Av&&t!==Lv&&(v.current.style.flex=t||T.current)};for(const n of["first","second"]){const r=("first"===n?v:E).current;r&&(n===g?e(r):t(r))}},x=[g,f,l],t[11]=g,t[12]=f,t[13]=l,t[14]=S,t[15]=x):(S=t[14],x=t[15]),(0,d.useEffect)(S,x),t[16]!==r||t[17]!==o||t[18]!==c||t[19]!==p||t[20]!==f||t[21]!==l?(_=()=>{if(!b.current||!v.current||!E.current)return;const e=Ye(500,e=>{l&&f.set(l,e)}),t=function(e){y(t=>e===t?t:(null==o||o(e),e))},n=b.current,i=v.current,s=i.parentElement,a="horizontal"===r,u=a?"clientX":"clientY",d=a?"left":"top",h=a?"right":"bottom",m=a?"clientWidth":"clientHeight",g=function(r){if(r.target!==r.currentTarget)return;r.preventDefault();const o=r[u]-n.getBoundingClientRect()[d],a=function(r){if(0===r.buttons)return l();const a=s.getBoundingClientRect(),f=r[u]-a[d]-o,g=a[h]-r[u]+o-n[m];if(f<c)t("first"),e(Av);else if(g<p)t("second"),e(Lv);else{t(null);const n=""+f/g;i.style.flex=n,e(n)}};function l(){document.removeEventListener("mousemove",a),document.removeEventListener("mouseup",l)}document.addEventListener("mousemove",a),document.addEventListener("mouseup",l)};n.addEventListener("mousedown",g);const w=function(){v.current&&(v.current.style.flex=T.current),e(T.current),t(null)};return n.addEventListener("dblclick",w),()=>{n.removeEventListener("mousedown",g),n.removeEventListener("dblclick",w)}},C=[r,o,c,p,f,l],t[16]=r,t[17]=o,t[18]=c,t[19]=p,t[20]=f,t[21]=l,t[22]=C,t[23]=_):(C=t[22],_=t[23]),(0,d.useEffect)(_,C),t[24]!==g?(N={dragBarRef:b,hiddenElement:g,firstRef:v,setHiddenElement:y,secondRef:E},t[24]=g,t[25]=N):N=t[25],N}function Dv(e){return e.storage}const Av="hide-first",Lv="hide-second";var Iv=s(68172),Ov=s(5839);const Rv=e=>{var t;const n=e.currentTarget;n===document.activeElement&&"Enter"===e.code&&(e.preventDefault(),null==(t=n.querySelector("textarea"))||t.focus())};function Fv({uri:e,value:t}){const{monaco:n}=He.getState();if(!n)throw new Error("Monaco editor is not initialized");const r=Ov.URI.file(e),i=n.editor.getModel(r),o=r.path.split(".").at(-1);return i??n.editor.createModel(t,o,r)}function Pv(e,t){const{model:n}=t;if(!n)throw new Error("options.model is required");const r=n.uri.path.split(".").at(-1),{monaco:i}=He.getState();if(!i)throw new Error("Monaco editor is not initialized");return i.editor.create(e.current,{language:r,automaticLayout:!0,fontSize:15,minimap:{enabled:!1},tabSize:2,renderLineHighlight:"none",stickyScroll:{enabled:!1},overviewRulerLanes:0,scrollbar:{verticalScrollbarSize:10},scrollBeyondLastLine:!1,fontFamily:'"Fira Code"',fontLigatures:!0,lineNumbersMinChars:2,tabIndex:-1,...t})}function Mv(e){return()=>{for(const t of e)t.dispose()}}const jv=e=>{const t=(0,m.c)(53);let n,r,i;t[0]!==e?(({onClickReference:n,onEdit:r,...i}=e),t[0]=e,t[1]=n,t[2]=r,t[3]=i):(n=t[1],r=t[2],i=t[3]);const{setOperationName:o,setEditor:s,updateActiveTabValues:a,setVisiblePlugin:l,setSchemaReference:u,run:c,setOperationFacts:p,copyQuery:f,prettifyEditors:g,mergeQuery:y}=Ct();let v;t[4]===Symbol.for("react.memo_cache_sentinel")?(v=ln("initialQuery","schema","referencePlugin","operations","operationName","externalFragments","uriInstanceId","storage","monacoTheme"),t[4]=v):v=t[4];const{initialQuery:b,schema:E,referencePlugin:T,operations:w,operationName:k,externalFragments:S,uriInstanceId:x,storage:C,monacoTheme:_}=xt(v),N=(0,d.useRef)(null),D=(0,d.useRef)(null);let A,L,I;t[5]!==n?(A=()=>{D.current=n},L=[n],t[5]=n,t[6]=A,t[7]=L):(A=t[6],L=t[7]),(0,d.useEffect)(A,L),t[8]!==k||t[9]!==w||t[10]!==E||t[11]!==p?(I=function(e){const t=(0,pt.getOperationFacts)(E,e.getValue()),n=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]}(w,k,null==t?void 0:t.operations);return p({documentAST:null==t?void 0:t.documentAST,operationName:n,operations:null==t?void 0:t.operations}),t?{...t,operationName:n}:null},t[8]=k,t[9]=w,t[10]=E,t[11]=p,t[12]=I):I=t[12];const O=I,R=(0,d.useRef)(null);let F,P;t[13]!==k||t[14]!==w||t[15]!==c||t[16]!==o?(F=()=>{R.current=e=>{var t;if(!w)return void c();const n=e.getPosition(),r=e.getModel().getOffsetAt(n);let i;for(const e of w)e.loc&&e.loc.start<=r&&e.loc.end>=r&&(i=null==(t=e.name)?void 0:t.value);i&&i!==k&&o(i),c()}},P=[k,w,c,o],t[13]=k,t[14]=w,t[15]=c,t[16]=o,t[17]=F,t[18]=P):(F=t[17],P=t[18]),(0,d.useEffect)(F,P);const{monacoGraphQL:M,monaco:j}=We();let V,K,U,B,$,q;return t[19]!==f||t[20]!==O||t[21]!==b||t[22]!==y||t[23]!==j||t[24]!==M||t[25]!==_||t[26]!==r||t[27]!==k||t[28]!==g||t[29]!==s||t[30]!==o||t[31]!==C||t[32]!==a||t[33]!==x?(V=()=>{if(!j||!M)return;const e=Ov.URI.file(`${x}operation.graphql`),t=Ov.URI.file(`${x}${De}`),{validateVariablesJSON:n}=Le;n[e.toString()]=[t.toString()],M.setDiagnosticSettings(Le);const i=Fv({uri:e.path.replace("/",""),value:b}),l=Pv(N,{model:i,theme:_});s({queryEditor:l});const u=Ye(100,()=>{const e=l.getValue();C.set(be,e);const t=O(l);null==r||r(e,null==t?void 0:t.documentAST),(null==t?void 0:t.operationName)&&k!==t.operationName&&o(t.operationName),a({query:e,operationName:(null==t?void 0:t.operationName)??null})});return O(l),Mv([i.onDidChangeContent(u),l.addAction({..._e,run:(...e)=>{const t=e;return R.current(...t)}}),l.addAction({...Ne,run:f}),l.addAction({...xe,run:g}),l.addAction({...Ce,run:y}),l,i])},t[19]=f,t[20]=O,t[21]=b,t[22]=y,t[23]=j,t[24]=M,t[25]=_,t[26]=r,t[27]=k,t[28]=g,t[29]=s,t[30]=o,t[31]=C,t[32]=a,t[33]=x,t[34]=V):V=t[34],t[35]!==j||t[36]!==M?(K=[j,M],t[35]=j,t[36]=M,t[37]=K):K=t[37],(0,d.useEffect)(V,K),t[38]!==S||t[39]!==j||t[40]!==M||t[41]!==T||t[42]!==E||t[43]!==u||t[44]!==l||t[45]!==x?(B=()=>{if(!E||!j||!M)return;if(M.setSchemaConfig([{uri:`${x}schema.graphql`,schema:E}]),M.setExternalFragmentDefinitions([...S.values()]),!T)return;let e;e=null;const t=[j.languages.registerDefinitionProvider("graphql",{provideDefinition(t,n,r){const i=(0,Iv.toGraphQLPosition)(n),o=(0,pt.getContextAtPosition)(t.getValue(),i,E);if(!o)return;const{typeInfo:s,token:a}=o,{kind:l,step:u}=a.state;if("Field"===l&&0===u&&s.fieldDef||"AliasedField"===l&&2===u&&s.fieldDef||"ObjectField"===l&&0===u&&s.fieldDef||"Directive"===l&&1===u&&s.directiveDef||"Variable"===l&&s.type||"Argument"===l&&0===u&&s.argDef||"EnumValue"===l&&s.enumValue&&"description"in s.enumValue||"NamedType"===l&&s.type&&"description"in s.type){e={kind:l,typeInfo:s};const{lineNumber:r,column:i}=n,o=new yt.Range(r,i,r,i);return[{uri:t.uri,range:o}]}e=null}}),j.languages.registerReferenceProvider("graphql",{provideReferences(t,n,r,i){var o;const{lineNumber:s,column:a}=n;if(!e)return;l(T),u(e),null==(o=D.current)||o.call(D,e);const c=new yt.Range(s,a,s,a);return[{uri:t.uri,range:c}]}})];return Mv(t)},U=[E,T,u,l,S,x,M,j],t[38]=S,t[39]=j,t[40]=M,t[41]=T,t[42]=E,t[43]=u,t[44]=l,t[45]=x,t[46]=U,t[47]=B):(U=t[46],B=t[47]),(0,d.useEffect)(B,U),t[48]!==i.className?($=dn("graphiql-editor",i.className),t[48]=i.className,t[49]=$):$=t[49],t[50]!==i||t[51]!==$?(q=(0,h.jsx)("div",{ref:N,tabIndex:0,onKeyDown:Rv,...i,className:$}),t[50]=i,t[51]=$,t[52]=q):q=t[52],q},Vv=()=>{const e=(0,m.c)(18),{setOperationName:t,run:n,stop:r}=Ct();let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=ln("operations","operationName","isFetching","overrideOperationName"),e[0]=i):i=e[0];const{operations:o,operationName:s,isFetching:a,overrideOperationName:l}=xt(i);let u;e[1]!==o?(u=void 0===o?[]:o,e[1]=o,e[2]=u):u=e[2];const c=u,d=xt(Kv),p=c.length>1&&"string"!=typeof l,f=a||d,g=`${f?"Stop":"Execute"} query (${me(ge.runQuery.key,"Cmd")})`;let y,v;e[3]!==f?(y=f?(0,h.jsx)(rn,{}):(0,h.jsx)(Wt,{}),e[3]=f,e[4]=y):y=e[4],e[5]!==g||e[6]!==y?(v={type:"button",className:"graphiql-execute-button",children:y,"aria-label":g},e[5]=g,e[6]=y,e[7]=v):v=e[7];const b=v;let E;return e[8]!==b||e[9]!==p||e[10]!==f||e[11]!==g||e[12]!==s||e[13]!==c||e[14]!==n||e[15]!==t||e[16]!==r?(E=p&&!f?(0,h.jsxs)(Cv,{children:[(0,h.jsx)(Bh,{label:g,children:(0,h.jsx)(Cv.Button,{...b})}),(0,h.jsx)(Cv.Content,{children:c.map((e,r)=>{const i=e.name?e.name.value:`<Unnamed ${e.operation}>`;return(0,h.jsx)(Cv.Item,{onSelect:()=>{var r;const i=null==(r=e.name)?void 0:r.value;i&&i!==s&&t(i),n()},children:i},`${i}-${r}`)})})]}):(0,h.jsx)(Bh,{label:g,children:(0,h.jsx)("button",{...b,onClick:f?r:n})}),e[8]=b,e[9]=p,e[10]=f,e[11]=g,e[12]=s,e[13]=c,e[14]=n,e[15]=t,e[16]=r,e[17]=E):E=e[17],E};function Kv(e){return Boolean(e.subscription)}const Uv=e=>{const t=(0,m.c)(19);let n,r;t[0]!==e?(({onEdit:n,...r}=e),t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);const{setEditor:i,run:o,prettifyEditors:s,mergeQuery:a}=Ct();let l;t[3]===Symbol.for("react.memo_cache_sentinel")?(l=ln("initialVariables","uriInstanceId"),t[3]=l):l=t[3];const{initialVariables:u,uriInstanceId:c}=xt(l),p=(0,d.useRef)(null),f=We(Bv);let g,y,v,b;return Xe(n,Ee,"variables"),t[4]!==u||t[5]!==a||t[6]!==f||t[7]!==s||t[8]!==o||t[9]!==i||t[10]!==c?(g=()=>{if(!f)return;const e=Fv({uri:`${c}${De}`,value:u}),t=Pv(p,{model:e});return i({variableEditor:t}),Mv([t.addAction({..._e,run:o}),t.addAction({...xe,run:s}),t.addAction({...Ce,run:a}),t,e])},t[4]=u,t[5]=a,t[6]=f,t[7]=s,t[8]=o,t[9]=i,t[10]=c,t[11]=g):g=t[11],t[12]!==f?(y=[f],t[12]=f,t[13]=y):y=t[13],(0,d.useEffect)(g,y),t[14]!==r.className?(v=dn("graphiql-editor",r.className),t[14]=r.className,t[15]=v):v=t[15],t[16]!==r||t[17]!==v?(b=(0,h.jsx)("div",{ref:p,tabIndex:0,onKeyDown:Rv,...r,className:v}),t[16]=r,t[17]=v,t[18]=b):b=t[18],b};function Bv(e){return e.monaco}const $v=e=>{const t=(0,m.c)(19);let n,r;t[0]!==e?(({onEdit:n,...r}=e),t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);const{setEditor:i,run:o,prettifyEditors:s,mergeQuery:a}=Ct();let l;t[3]===Symbol.for("react.memo_cache_sentinel")?(l=ln("initialHeaders","shouldPersistHeaders","uriInstanceId"),t[3]=l):l=t[3];const{initialHeaders:u,shouldPersistHeaders:c,uriInstanceId:p}=xt(l),f=(0,d.useRef)(null),g=We(qv);let y,v,b,E;return Xe(n,c?ye:null,"headers"),t[4]!==u||t[5]!==a||t[6]!==g||t[7]!==s||t[8]!==o||t[9]!==i||t[10]!==p?(y=()=>{if(!g)return;const e=Fv({uri:`${p}request-headers.json`,value:u}),t=Pv(f,{model:e});return i({headerEditor:t}),Mv([t.addAction({..._e,run:o}),t.addAction({...xe,run:s}),t.addAction({...Ce,run:a}),t,e])},t[4]=u,t[5]=a,t[6]=g,t[7]=s,t[8]=o,t[9]=i,t[10]=p,t[11]=y):y=t[11],t[12]!==g?(v=[g],t[12]=g,t[13]=v):v=t[13],(0,d.useEffect)(y,v),t[14]!==r.className?(b=dn("graphiql-editor",r.className),t[14]=r.className,t[15]=b):b=t[15],t[16]!==r||t[17]!==b?(E=(0,h.jsx)("div",{ref:f,tabIndex:0,onKeyDown:Rv,...r,className:b}),t[16]=r,t[17]=b,t[18]=E):E=t[18],E};function qv(e){return e.monaco}const zv=e=>Boolean(e&&e.getVelocity),Gv=(0,d.createContext)(null),Qv=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Hv=(()=>new Set(Qv))(),Wv=e=>180*e/Math.PI,Yv=e=>{const t=Wv(Math.atan2(e[1],e[0]));return Jv(t)},Xv={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Yv,rotateZ:Yv,skewX:e=>Wv(Math.atan(e[1])),skewY:e=>Wv(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Jv=e=>((e%=360)<0&&(e+=360),e),Zv=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),eb=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),tb={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Zv,scaleY:eb,scale:e=>(Zv(e)+eb(e))/2,rotateX:e=>Jv(Wv(Math.atan2(e[6],e[5]))),rotateY:e=>Jv(Wv(Math.atan2(-e[2],e[0]))),rotateZ:Yv,rotate:Yv,skewX:e=>Wv(Math.atan(e[4])),skewY:e=>Wv(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function nb(e){return e.includes("scale")?1:0}function rb(e,t){if(!e||"none"===e)return nb(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=tb,i=n;else{const t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Xv,i=t}if(!i)return nb(t);const o=r[t],s=i[1].split(",").map(ib);return"function"==typeof o?o(s):s[o]}function ib(e){return parseFloat(e.trim())}const ob=e=>t=>"string"==typeof t&&t.startsWith(e),sb=ob("--"),ab=ob("var(--"),lb=e=>!!ab(e)&&ub.test(e.split("/*")[0].trim()),ub=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function cb({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}const db=(e,t,n)=>e+(t-e)*n;function pb(e){return void 0===e||1===e}function fb({scale:e,scaleX:t,scaleY:n}){return!pb(e)||!pb(t)||!pb(n)}function hb(e){return fb(e)||mb(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function mb(e){return gb(e.x)||gb(e.y)}function gb(e){return e&&"0%"!==e}function yb(e,t,n){return n+t*(e-n)}function vb(e,t,n,r,i){return void 0!==i&&(e=yb(e,i,r)),yb(e,n,r)+t}function bb(e,t=0,n=1,r,i){e.min=vb(e.min,t,n,r,i),e.max=vb(e.max,t,n,r,i)}function Eb(e,{x:t,y:n}){bb(e.x,t.translate,t.scale,t.originPoint),bb(e.y,n.translate,n.scale,n.originPoint)}const Tb=.999999999999,wb=1.0000000000001;function kb(e,t){e.min=e.min+t,e.max=e.max+t}function Sb(e,t,n,r,i=.5){bb(e,t,n,db(e.min,e.max,i),r)}function xb(e,t){Sb(e.x,t.x,t.scaleX,t.scale,t.originX),Sb(e.y,t.y,t.scaleY,t.scale,t.originY)}function Cb(e,t){return cb(function(e,t){if(!t)return e;const 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))}const _b=new Set(["width","height","top","left","right","bottom",...Qv]),Nb=(e,t,n)=>n>t?t:n<e?e:n,Db={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},Ab={...Db,transform:e=>Nb(0,1,e)},Lb={...Db,default:1},Ib=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),Ob=Ib("deg"),Rb=Ib("%"),Fb=Ib("px"),Pb=Ib("vh"),Mb=Ib("vw"),jb=(()=>({...Rb,parse:e=>Rb.parse(e)/100,transform:e=>Rb.transform(100*e)}))(),Vb=e=>t=>t.test(e),Kb=[Db,Fb,Rb,Ob,Mb,Pb,{test:e=>"auto"===e,parse:e=>e}],Ub=e=>Kb.find(Vb(e)),Bb=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),$b=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function qb(e,t,n=1){const[r,i]=function(e){const t=$b.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const e=o.trim();return Bb(e)?parseFloat(e):e}return lb(i)?qb(i,t,n+1):i}const zb=e=>e===Db||e===Fb,Gb=new Set(["x","y","z"]),Qb=Qv.filter(e=>!Gb.has(e)),Hb={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>rb(t,"x"),y:(e,{transform:t})=>rb(t,"y")};Hb.translateX=Hb.x,Hb.translateY=Hb.y;const Wb=e=>e,Yb={},Xb=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],Jb={value:null,addProjectionMetrics:null};function Zb(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,s=Xb.reduce((e,n)=>(e[n]=function(e,t){let n=new Set,r=new Set,i=!1,o=!1;const s=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1},l=0;function u(t){s.has(t)&&(c.schedule(t),e()),l++,t(a)}const c={schedule:(e,t=!1,o=!1)=>{const a=o&&i?n:r;return t&&s.add(e),a.has(e)||a.add(e),e},cancel:e=>{r.delete(e),s.delete(e)},process:e=>{a=e,i?o=!0:(i=!0,[n,r]=[r,n],n.forEach(u),t&&Jb.value&&Jb.value.frameloop[t].push(l),l=0,n.clear(),i=!1,o&&(o=!1,c.process(e)))}};return c}(o,t?n:void 0),e),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:c,update:d,preRender:p,render:f,postRender:h}=s,m=()=>{const o=Yb.useManualTiming?i.timestamp:performance.now();n=!1,Yb.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,40),1)),i.timestamp=o,i.isProcessing=!0,a.process(i),l.process(i),u.process(i),c.process(i),d.process(i),p.process(i),f.process(i),h.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(m))};return{schedule:Xb.reduce((t,o)=>{const a=s[o];return t[o]=(t,o=!1,s=!1)=>(n||(n=!0,r=!0,i.isProcessing||e(m)),a.schedule(t,o,s)),t},{}),cancel:e=>{for(let t=0;t<Xb.length;t++)s[Xb[t]].cancel(e)},state:i,steps:s}}const{schedule:eE,cancel:tE,state:nE,steps:rE}=Zb("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:Wb,!0),iE=new Set;let oE=!1,sE=!1,aE=!1;function lE(){if(sE){const e=Array.from(iE).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{const t=function(e){const t=[];return Qb.forEach(n=>{const r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();const t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}sE=!1,oE=!1,iE.forEach(e=>e.complete(aE)),iE.clear()}function uE(){iE.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(sE=!0)})}class cE{constructor(e,t,n,r,i,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(iE.add(this),oE||(oE=!0,eE.read(uE),eE.resolveKeyframes(lE))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(null===e[0]){const i=r?.get(),o=e[e.length-1];if(void 0!==i)e[0]=i;else if(n&&t){const r=n.readValue(t,o);null!=r&&(e[0]=r)}void 0===e[0]&&(e[0]=o),r&&void 0===i&&r.set(e[0])}!function(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),iE.delete(this)}cancel(){"scheduled"===this.state&&(iE.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}const dE=e=>/^0[^.\s]+$/u.test(e);function pE(e){return"number"==typeof e?0===e:null===e||"none"===e||"0"===e||dE(e)}const fE=e=>Math.round(1e5*e)/1e5,hE=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,mE=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,gE=(e,t)=>n=>Boolean("string"==typeof n&&mE.test(n)&&n.startsWith(e)||t&&!function(e){return null==e}(n)&&Object.prototype.hasOwnProperty.call(n,t)),yE=(e,t,n)=>r=>{if("string"!=typeof r)return r;const[i,o,s,a]=r.match(hE);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:void 0!==a?parseFloat(a):1}},vE={...Db,transform:e=>Math.round((e=>Nb(0,255,e))(e))},bE={test:gE("rgb","red"),parse:yE("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+vE.transform(e)+", "+vE.transform(t)+", "+vE.transform(n)+", "+fE(Ab.transform(r))+")"},EE={test:gE("#"),parse:function(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),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:bE.transform},TE={test:gE("hsl","hue"),parse:yE("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Rb.transform(fE(t))+", "+Rb.transform(fE(n))+", "+fE(Ab.transform(r))+")"},wE={test:e=>bE.test(e)||EE.test(e)||TE.test(e),parse:e=>bE.test(e)?bE.parse(e):TE.test(e)?TE.parse(e):EE.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?bE.transform(e):TE.transform(e),getAnimatableNone:e=>{const t=wE.parse(e);return t.alpha=0,wE.transform(t)}},kE=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,SE="number",xE="color",CE=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function _E(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const s=t.replace(CE,e=>(wE.test(e)?(r.color.push(o),i.push(xE),n.push(wE.parse(e))):e.startsWith("var(")?(r.var.push(o),i.push("var"),n.push(e)):(r.number.push(o),i.push(SE),n.push(parseFloat(e))),++o,"${}")).split("${}");return{values:n,split:s,indexes:r,types:i}}function NE(e){return _E(e).values}function DE(e){const{split:t,types:n}=_E(e),r=t.length;return e=>{let i="";for(let o=0;o<r;o++)if(i+=t[o],void 0!==e[o]){const t=n[o];i+=t===SE?fE(e[o]):t===xE?wE.transform(e[o]):e[o]}return i}}const AE=e=>"number"==typeof e?0:wE.test(e)?wE.getAnimatableNone(e):e,LE={test:function(e){return isNaN(e)&&"string"==typeof e&&(e.match(hE)?.length||0)+(e.match(kE)?.length||0)>0},parse:NE,createTransformer:DE,getAnimatableNone:function(e){const t=NE(e);return DE(e)(t.map(AE))}},IE=new Set(["brightness","contrast","saturate","opacity"]);function OE(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(hE)||[];if(!r)return e;const i=n.replace(r,"");let o=IE.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const RE=/\b([a-z-]*)\(.*?\)/gu,FE={...LE,getAnimatableNone:e=>{const t=e.match(RE);return t?t.map(OE).join(" "):e}},PE={...Db,transform:Math.round},ME={borderWidth:Fb,borderTopWidth:Fb,borderRightWidth:Fb,borderBottomWidth:Fb,borderLeftWidth:Fb,borderRadius:Fb,radius:Fb,borderTopLeftRadius:Fb,borderTopRightRadius:Fb,borderBottomRightRadius:Fb,borderBottomLeftRadius:Fb,width:Fb,maxWidth:Fb,height:Fb,maxHeight:Fb,top:Fb,right:Fb,bottom:Fb,left:Fb,padding:Fb,paddingTop:Fb,paddingRight:Fb,paddingBottom:Fb,paddingLeft:Fb,margin:Fb,marginTop:Fb,marginRight:Fb,marginBottom:Fb,marginLeft:Fb,backgroundPositionX:Fb,backgroundPositionY:Fb,rotate:Ob,rotateX:Ob,rotateY:Ob,rotateZ:Ob,scale:Lb,scaleX:Lb,scaleY:Lb,scaleZ:Lb,skew:Ob,skewX:Ob,skewY:Ob,distance:Fb,translateX:Fb,translateY:Fb,translateZ:Fb,x:Fb,y:Fb,z:Fb,perspective:Fb,transformPerspective:Fb,opacity:Ab,originX:jb,originY:jb,originZ:Fb,zIndex:PE,fillOpacity:Ab,strokeOpacity:Ab,numOctaves:PE},jE={...ME,color:wE,backgroundColor:wE,outlineColor:wE,fill:wE,stroke:wE,borderColor:wE,borderTopColor:wE,borderRightColor:wE,borderBottomColor:wE,borderLeftColor:wE,filter:FE,WebkitFilter:FE},VE=e=>jE[e];function KE(e,t){let n=VE(e);return n!==FE&&(n=LE),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const UE=new Set(["auto","none","0"]);class BE extends cE{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if("string"==typeof r&&(r=r.trim(),lb(r))){const i=qb(r,t.current);void 0!==i&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!_b.has(n)||2!==e.length)return;const[r,i]=e,o=Ub(r),s=Ub(i);if(o!==s)if(zb(o)&&zb(s))for(let t=0;t<e.length;t++){const n=e[t];"string"==typeof n&&(e[t]=parseFloat(n))}else Hb[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(null===e[t]||pE(e[t]))&&n.push(t);n.length&&function(e,t,n){let r,i=0;for(;i<e.length&&!r;){const t=e[i];"string"==typeof t&&!UE.has(t)&&_E(t).values.length&&(r=e[i]),i++}if(r&&n)for(const i of t)e[i]=KE(n,r)}(e,n,t)}measureInitialState(){const{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Hb[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;const r=t[t.length-1];void 0!==r&&e.getValue(n,r).jump(r,!1)}measureEndState(){const{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;const r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);const i=n.length-1,o=n[i];n[i]=Hb[t](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==o&&void 0===this.finalKeyframe&&(this.finalKeyframe=o),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}}let $E;function qE(){$E=void 0}const zE={now:()=>(void 0===$E&&zE.set(nE.isProcessing||Yb.useManualTiming?nE.timestamp:performance.now()),$E),set:e=>{$E=e,queueMicrotask(qE)}};function GE(e,t){-1===e.indexOf(t)&&e.push(t)}function QE(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class HE{constructor(){this.subscriptions=[]}add(e){return GE(this.subscriptions,e),()=>QE(this.subscriptions,e)}notify(e,t,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){const r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function WE(e,t){return t?e*(1e3/t):0}const YE={current:void 0};class XE{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{const t=zE.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){var t;this.current=e,this.updatedAt=zE.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=(t=this.current,!isNaN(parseFloat(t))))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new HE);const n=this.events[e].add(t);return"change"===e?()=>{n(),eE.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return YE.current&&YE.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const e=zE.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;const t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return WE(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function JE(e,t){return new XE(e,t)}const ZE=[...Kb,wE,LE],{schedule:eT,cancel:tT}=Zb(queueMicrotask,!1),nT={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},rT={};for(const e in nT)rT[e]={isEnabled:t=>nT[e].some(e=>!!t[e])};const iT=()=>({x:{min:0,max:0},y:{min:0,max:0}}),oT="undefined"!=typeof window,sT={current:null},aT={current:!1},lT=new WeakMap;function uT(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function cT(e){return"string"==typeof e||Array.isArray(e)}const dT=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],pT=["initial",...dT];function fT(e){return uT(e.animate)||pT.some(t=>cT(e[t]))}function hT(e){return Boolean(fT(e)||e.variants)}function mT(e){const t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function gT(e,t,n,r){if("function"==typeof t){const[i,o]=mT(r);t=t(void 0!==n?n:e.custom,i,o)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){const[i,o]=mT(r);t=t(void 0!==n?n:e.custom,i,o)}return t}const yT=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class vT{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,blockInitialAnimation:i,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=cE,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const e=zE.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,eE.render(this.render,!1,!0))};const{latestValues:a,renderState:l}=o;this.latestValues=a,this.baseTarget={...a},this.initialValues=t.initial?{...a}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=s,this.blockInitialAnimation=Boolean(i),this.isControllingVariants=fT(t),this.isVariantNode=hT(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:u,...c}=this.scrapeMotionValuesFromProps(t,{},this);for(const e in c){const t=c[e];void 0!==a[e]&&zv(t)&&t.set(a[e])}}mount(e){this.current=e,lT.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),aT.current||function(){if(aT.current=!0,oT)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>sT.current=e.matches;e.addEventListener("change",t),t()}else sT.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||sT.current),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),tE(this.notifyUpdate),tE(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const n=Hv.has(e);n&&this.onBindTransform&&this.onBindTransform();const r=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&eE.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i(),t.owner&&t.stop()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in rT){const t=rT[e];if(!t)continue;const{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){const t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<yT.length;t++){const n=yT[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const r=e["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(e,t,n){for(const r in t){const i=t[r],o=n[r];if(zv(i))e.addValue(r,i);else if(zv(o))e.addValue(r,JE(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const t=e.getValue(r);!0===t.liveStyle?t.jump(i):t.hasAnimated||t.set(i)}else{const t=e.getStaticValue(r);e.addValue(r,JE(void 0!==t?t:i,{owner:e}))}}for(const r in n)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){const n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=JE(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=void 0===this.latestValues[e]&&this.current?this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];return null!=n&&("string"==typeof n&&(Bb(n)||dE(n))?n=parseFloat(n):(r=n,!ZE.find(Vb(r))&&LE.test(t)&&(n=KE(e,t))),this.setBaseTarget(e,zv(n)?n.get():n)),zv(n)?n.get():n;var r}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){const{initial:t}=this.props;let n;if("string"==typeof t||"object"==typeof t){const r=gT(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&void 0!==n)return n;const r=this.getBaseTargetFromProps(this.props,e);return void 0===r||zv(r)?void 0!==this.initialValues[e]&&void 0===n?void 0:this.baseTarget[e]:r}on(e,t){return this.events[e]||(this.events[e]=new HE),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){eT.render(this.render)}}class bT extends vT{constructor(){super(...arguments),this.KeyframeResolver=BE}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;zv(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}const ET=(e,t)=>t&&"number"==typeof e?t.transform(e):e,TT={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},wT=Qv.length;function kT(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let s=!1,a=!1;for(const e in t){const n=t[e];if(Hv.has(e))s=!0;else if(sb(e))i[e]=n;else{const t=ET(n,ME[e]);e.startsWith("origin")?(a=!0,o[e]=t):r[e]=t}}if(t.transform||(s||n?r.transform=function(e,t,n){let r="",i=!0;for(let o=0;o<wT;o++){const s=Qv[o],a=e[s];if(void 0===a)continue;let l=!0;if(l="number"==typeof a?a===(s.startsWith("scale")?1:0):0===parseFloat(a),!l||n){const e=ET(a,ME[s]);l||(i=!1,r+=`${TT[s]||s}(${e}) `),n&&(t[s]=e)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:e="50%",originY:t="50%",originZ:n=0}=o;r.transformOrigin=`${e} ${t} ${n}`}}function ST(e,{style:t,vars:n},r,i){const o=e.style;let s;for(s in t)o[s]=t[s];for(s in i?.applyProjectionStyles(o,r),n)o.setProperty(s,n[s])}const xT={};function CT(e,{layout:t,layoutId:n}){return Hv.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!xT[e]||"opacity"===e)}function _T(e,t,n){const{style:r}=e,i={};for(const o in r)(zv(r[o])||t.style&&zv(t.style[o])||CT(o,e)||void 0!==n?.getValue(o)?.liveStyle)&&(i[o]=r[o]);return i}class NT extends bT{constructor(){super(...arguments),this.type="html",this.renderInstance=ST}readValueFromInstance(e,t){if(Hv.has(t))return this.projection?.isProjecting?nb(t):((e,t)=>{const{transform:n="none"}=getComputedStyle(e);return rb(n,t)})(e,t);{const r=(n=e,window.getComputedStyle(n)),i=(sb(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof i?i.trim():i}var n}measureInstanceViewportBox(e,{transformPagePoint:t}){return Cb(e,t)}build(e,t,n){kT(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return _T(e,t,n)}}const DT=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),AT={offset:"stroke-dashoffset",array:"stroke-dasharray"},LT={offset:"strokeDashoffset",array:"strokeDasharray"};function IT(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:o=1,pathOffset:s=0,...a},l,u,c){if(kT(e,a,u),l)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:d,style:p}=e;d.transform&&(p.transform=d.transform,delete d.transform),(p.transform||d.transformOrigin)&&(p.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),p.transform&&(p.transformBox=c?.transformBox??"fill-box",delete d.transformBox),void 0!==t&&(d.x=t),void 0!==n&&(d.y=n),void 0!==r&&(d.scale=r),void 0!==i&&function(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?AT:LT;e[o.offset]=Fb.transform(-r);const s=Fb.transform(t),a=Fb.transform(n);e[o.array]=`${s} ${a}`}(d,i,o,s,!1)}const OT=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),RT=e=>"string"==typeof e&&"svg"===e.toLowerCase();function FT(e,t,n){const r=_T(e,t,n);for(const n in e)(zv(e[n])||zv(t[n]))&&(r[-1!==Qv.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]);return r}class PT extends bT{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=iT}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(Hv.has(t)){const e=VE(t);return e&&e.default||0}return t=OT.has(t)?t:DT(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return FT(e,t,n)}build(e,t,n){IT(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){!function(e,t,n,r){ST(e,t,void 0,r);for(const n in t.attrs)e.setAttribute(OT.has(n)?n:DT(n),t.attrs[n])}(e,t,0,r)}mount(e){this.isSVGTag=RT(e.tagName),super.mount(e)}}const MT=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function jT(e){return"string"==typeof e&&!e.includes("-")&&!!(MT.indexOf(e)>-1||/[A-Z]/u.test(e))}const VT=(e,t)=>jT(e)?new PT(t):new NT(t,{allowProjection:e!==d.Fragment}),KT=(0,d.createContext)({}),UT=(0,d.createContext)({strict:!1}),BT=(0,d.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),$T=(0,d.createContext)({});function qT(e){return Array.isArray(e)?e.join(" "):e}function zT(e,t,n){for(const r in t)zv(t[r])||CT(r,n)||(e[r]=t[r])}function GT(e,t){const n={},r=function(e,t){const n={};return zT(n,e.style||{},e),Object.assign(n,function({transformTemplate:e},t){return(0,d.useMemo)(()=>{const n={style:{},transform:{},transformOrigin:{},vars:{}};return kT(n,t,e),Object.assign({},n.vars,n.style)},[t])}(e,t)),n}(e,t);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}function QT(e,t,n,r){const i=(0,d.useMemo)(()=>{const n={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return IT(n,t,RT(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){const t={};zT(t,e.style,e),i.style={...t,...i.style}}return i}const HT=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function WT(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||HT.has(e)}let YT=e=>!WT(e);try{"function"==typeof(XT=require("@emotion/is-prop-valid").default)&&(YT=e=>e.startsWith("on")?!WT(e):XT(e))}catch{}var XT;function JT(e,t,n,{latestValues:r},i,o=!1){const s=(jT(e)?QT:GT)(t,r,i,e),a=function(e,t,n){const r={};for(const i in e)"values"===i&&"object"==typeof e.values||(YT(i)||!0===n&&WT(i)||!t&&!WT(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}(t,"string"==typeof e,o),l=e!==d.Fragment?{...a,...s,ref:n}:{},{children:u}=t,c=(0,d.useMemo)(()=>zv(u)?u.get():u,[u]);return(0,d.createElement)(e,{...l,children:c})}const ZT=(0,d.createContext)(null);function ew(e){const t=(0,d.useRef)(null);return null===t.current&&(t.current=e()),t.current}function tw(e){return zv(e)?e.get():e}function nw(e,t,n,r){const i={},o=r(e,{});for(const e in o)i[e]=tw(o[e]);let{initial:s,animate:a}=e;const l=fT(e),u=hT(e);t&&u&&!l&&!1!==e.inherit&&(void 0===s&&(s=t.initial),void 0===a&&(a=t.animate));let c=!!n&&!1===n.initial;c=c||!1===s;const d=c?a:s;if(d&&"boolean"!=typeof d&&!uT(d)){const t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){const r=gT(e,t[n]);if(r){const{transitionEnd:e,transition:t,...n}=r;for(const e in n){let t=n[e];Array.isArray(t)&&(t=t[c?t.length-1:0]),null!==t&&(i[e]=t)}for(const t in e)i[t]=e[t]}}}return i}const rw=e=>(t,n)=>{const r=(0,d.useContext)($T),i=(0,d.useContext)(ZT),o=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:nw(n,r,i,e),renderState:t()}}(e,t,r,i);return n?o():ew(o)},iw=rw({scrapeMotionValuesFromProps:_T,createRenderState:()=>({style:{},transform:{},transformOrigin:{},vars:{}})}),ow=rw({scrapeMotionValuesFromProps:FT,createRenderState:()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}})}),sw=Symbol.for("motionComponentSymbol");function aw(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function lw(e,t,n){return(0,d.useCallback)(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&("function"==typeof n?n(r):aw(n)&&(n.current=r))},[t])}const uw="data-"+DT("framerAppearId"),cw=(0,d.createContext)({}),dw=oT?d.useLayoutEffect:d.useEffect;function pw(e,t,n,r,i){const{visualElement:o}=(0,d.useContext)($T),s=(0,d.useContext)(UT),a=(0,d.useContext)(ZT),l=(0,d.useContext)(BT).reducedMotion,u=(0,d.useRef)(null);r=r||s.renderer,!u.current&&r&&(u.current=r(e,{visualState:t,parent:o,props:n,presenceContext:a,blockInitialAnimation:!!a&&!1===a.initial,reducedMotionConfig:l}));const c=u.current,p=(0,d.useContext)(cw);!c||c.projection||!i||"html"!==c.type&&"svg"!==c.type||function(e,t,n,r){const{layoutId:i,layout:o,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutCrossfade:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:fw(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:Boolean(s)||a&&aw(a),visualElement:e,animationType:"string"==typeof o?o:"both",initialPromotionConfig:r,crossfade:c,layoutScroll:l,layoutRoot:u})}(u.current,n,i,p);const f=(0,d.useRef)(!1);(0,d.useInsertionEffect)(()=>{c&&f.current&&c.update(n,a)});const h=n[uw],m=(0,d.useRef)(Boolean(h)&&!window.MotionHandoffIsComplete?.(h)&&window.MotionHasOptimisedAnimation?.(h));return dw(()=>{c&&(f.current=!0,window.MotionIsMounted=!0,c.updateFeatures(),c.scheduleRenderMicrotask(),m.current&&c.animationState&&c.animationState.animateChanges())}),(0,d.useEffect)(()=>{c&&(!m.current&&c.animationState&&c.animationState.animateChanges(),m.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(h)}),m.current=!1),c.enteringChildren=void 0)}),c}function fw(e){if(e)return!1!==e.options.allowProjection?e.projection:fw(e.parent)}function hw(e,{forwardMotionProps:t=!1}={},n,r){n&&function(e){for(const t in e)rT[t]={...rT[t],...e[t]}}(n);const i=jT(e)?ow:iw;function o(n,o){let s;const a={...(0,d.useContext)(BT),...n,layoutId:mw(n)},{isStatic:l}=a,u=function(e){const{initial:t,animate:n}=function(e,t){if(fT(e)){const{initial:t,animate:n}=e;return{initial:!1===t||cT(t)?t:void 0,animate:cT(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,d.useContext)($T));return(0,d.useMemo)(()=>({initial:t,animate:n}),[qT(t),qT(n)])}(n),c=i(n,l);if(!l&&oT){(0,d.useContext)(UT).strict;const t=function(e){const{drag:t,layout:n}=rT;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(a);s=t.MeasureLayout,u.visualElement=pw(e,c,a,r,t.ProjectionNode)}return(0,h.jsxs)($T.Provider,{value:u,children:[s&&u.visualElement?(0,h.jsx)(s,{visualElement:u.visualElement,...a}):null,JT(e,n,lw(c,u.visualElement,o),c,l,t)]})}o.displayName=`motion.${"string"==typeof e?e:`create(${e.displayName??e.name??""})`}`;const s=(0,d.forwardRef)(o);return s[sw]=e,s}function mw({layoutId:e}){const t=(0,d.useContext)(KT).id;return t&&void 0!==e?t+"-"+e:e}function gw(e,t){if("undefined"==typeof Proxy)return hw;const n=new Map,r=(n,r)=>hw(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,o)=>"create"===o?r:(n.has(o)||n.set(o,hw(o,void 0,e,t)),n.get(o))})}function yw(e,t,n){const r=e.getProps();return gT(r,t,void 0!==n?n:r.custom,e)}function vw(e,t){return e?.[t]??e?.default??e}const bw=e=>Array.isArray(e);function Ew(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,JE(n))}function Tw(e){return bw(e)?e[e.length-1]||0:e}function ww(e,t){const n=e.getValue("willChange");if(r=n,Boolean(zv(r)&&r.add))return n.add(t);if(!n&&Yb.WillChange){const n=new Yb.WillChange("auto");e.addValue("willChange",n),n.add(t)}var r}function kw(e){return e.props[uw]}function Sw(e){e.duration=0,e.type="keyframes"}const xw=(e,t)=>n=>t(e(n)),Cw=(...e)=>e.reduce(xw),_w=e=>1e3*e,Nw=e=>e/1e3,Dw={layout:0,mainThread:0,waapi:0};function Aw(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 Lw(e,t){return n=>n>0?t:e}const Iw=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Ow=[EE,bE,TE];function Rw(e){const t=(n=e,Ow.find(e=>e.test(n)));var n;if(Boolean(t),!Boolean(t))return!1;let r=t.parse(e);return t===TE&&(r=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let i=0,o=0,s=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,a=2*n-r;i=Aw(a,r,e+1/3),o=Aw(a,r,e),s=Aw(a,r,e-1/3)}else i=o=s=n;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*s),alpha:r}}(r)),r}const Fw=(e,t)=>{const n=Rw(e),r=Rw(t);if(!n||!r)return Lw(e,t);const i={...n};return e=>(i.red=Iw(n.red,r.red,e),i.green=Iw(n.green,r.green,e),i.blue=Iw(n.blue,r.blue,e),i.alpha=db(n.alpha,r.alpha,e),bE.transform(i))},Pw=new Set(["none","hidden"]);function Mw(e,t){return n=>db(e,t,n)}function jw(e){return"number"==typeof e?Mw:"string"==typeof e?lb(e)?Lw:wE.test(e)?Fw:Uw:Array.isArray(e)?Vw:"object"==typeof e?wE.test(e)?Fw:Kw:Lw}function Vw(e,t){const n=[...e],r=n.length,i=e.map((e,n)=>jw(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function Kw(e,t){const n={...e,...t},r={};for(const i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=jw(e[i])(e[i],t[i]));return e=>{for(const t in r)n[t]=r[t](e);return n}}const Uw=(e,t)=>{const n=LE.createTransformer(t),r=_E(e),i=_E(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Pw.has(e)&&!i.values.length||Pw.has(t)&&!r.values.length?function(e,t){return Pw.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}(e,t):Cw(Vw(function(e,t){const n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const o=t.types[i],s=e.indexes[o][r[o]],a=e.values[s]??0;n[i]=a,r[o]++}return n}(r,i),i.values),n):Lw(e,t)};function Bw(e,t,n){return"number"==typeof e&&"number"==typeof t&&"number"==typeof n?db(e,t,n):jw(e)(e,t)}const $w=e=>{const t=({timestamp:t})=>e(t);return{start:(e=!0)=>eE.update(t,e),stop:()=>tE(t),now:()=>nE.isProcessing?nE.timestamp:zE.now()}},qw=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(1e4*e(t/(i-1)))/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},zw=2e4;function Gw(e){let t=0,n=e.next(t);for(;!n.done&&t<zw;)t+=50,n=e.next(t);return t>=zw?1/0:t}function Qw(e,t,n){const r=Math.max(t-5,0);return WE(n-e(r),t-r)}const Hw=.01,Ww=2,Yw=.005,Xw=.5;const Jw=12;function Zw(e,t){return e*Math.sqrt(1-t*t)}const ek=["duration","bounce"],tk=["stiffness","damping","mass"];function nk(e,t){return t.some(t=>void 0!==e[t])}function rk(e=.3,t=.3){const n="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],a={done:!1,value:o},{stiffness:l,damping:u,mass:c,duration:d,velocity:p,isResolvedFromDuration:f}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!nk(e,tk)&&nk(e,ek))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(1.2*n),i=r*r,o=2*Nb(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:1,stiffness:i,damping:o}}else{const n=function({duration:e=800,bounce:t=.3,velocity:n=0,mass:r=1}){let i,o;_w(10);let s=1-t;s=Nb(.05,1,s),e=Nb(.01,10,Nw(e)),s<1?(i=t=>{const r=t*s,i=r*e;return.001-(r-n)/Zw(t,s)*Math.exp(-i)},o=t=>{const r=t*s*e,o=r*n+n,a=Math.pow(s,2)*Math.pow(t,2)*e,l=Math.exp(-r),u=Zw(Math.pow(t,2),s);return(.001-i(t)>0?-1:1)*((o-a)*l)/u}):(i=t=>Math.exp(-t*e)*((t-n)*e+1)-.001,o=t=>Math.exp(-t*e)*(e*e*(n-t)));const a=function(e,t,n){let r=n;for(let n=1;n<Jw;n++)r-=e(r)/t(r);return r}(i,o,5/e);if(e=_w(e),isNaN(a))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(a,2)*r;return{stiffness:t,damping:2*s*Math.sqrt(r*t),duration:e}}}(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}({...n,velocity:-Nw(n.velocity||0)}),h=p||0,m=u/(2*Math.sqrt(l*c)),g=s-o,y=Nw(Math.sqrt(l/c)),v=Math.abs(g)<5;let b;if(r||(r=v?Hw:Ww),i||(i=v?Yw:Xw),m<1){const e=Zw(y,m);b=t=>{const n=Math.exp(-m*y*t);return s-n*((h+m*y*g)/e*Math.sin(e*t)+g*Math.cos(e*t))}}else if(1===m)b=e=>s-Math.exp(-y*e)*(g+(h+y*g)*e);else{const e=y*Math.sqrt(m*m-1);b=t=>{const n=Math.exp(-m*y*t),r=Math.min(e*t,300);return s-n*((h+m*y*g)*Math.sinh(r)+e*g*Math.cosh(r))/e}}const E={calculatedDuration:f&&d||null,next:e=>{const t=b(e);if(f)a.done=e>=d;else{let n=0===e?h:0;m<1&&(n=0===e?_w(h):Qw(b,e,t));const o=Math.abs(n)<=r,l=Math.abs(s-t)<=i;a.done=o&&l}return a.value=a.done?s:t,a},toString:()=>{const e=Math.min(Gw(E),zw),t=qw(t=>E.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return E}function ik({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],p={done:!1,value:d},f=e=>void 0===a?l:void 0===l||Math.abs(a-e)<Math.abs(l-e)?a:l;let h=n*t;const m=d+h,g=void 0===s?m:s(m);g!==m&&(h=g-d);const y=e=>-h*Math.exp(-e/r),v=e=>g+y(e),b=e=>{const t=y(e),n=v(e);p.done=Math.abs(t)<=u,p.value=p.done?g:n};let E,T;const w=e=>{var t;t=p.value,(void 0!==a&&t<a||void 0!==l&&t>l)&&(E=e,T=rk({keyframes:[p.value,f(p.value)],velocity:Qw(v,e,p.value),damping:i,stiffness:o,restDelta:u,restSpeed:c}))};return w(0),{calculatedDuration:null,next:e=>{let t=!1;return T||void 0!==E||(t=!0,b(e),w(e)),void 0!==E&&e>=E?T.next(e-E):(!t&&b(e),p)}}}rk.applyToOptions=e=>{const t=function(e,t=100){const n=rk({...e,keyframes:[0,t]}),r=Math.min(Gw(n),zw);return{type:"keyframes",ease:e=>n.next(r*e).value/t,duration:Nw(r)}}(e,100);return e.ease=t.ease,e.duration=_w(t.duration),e.type="keyframes",e};const ok=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function sk(e,t,n,r){if(e===t&&n===r)return Wb;return i=>0===i||1===i?i:ok(function(e,t,n,r,i){let o,s,a=0;do{s=t+(n-t)/2,o=ok(s,r,i)-e,o>0?n=s:t=s}while(Math.abs(o)>1e-7&&++a<12);return s}(i,0,1,e,n),t,r)}const ak=sk(.42,0,1,1),lk=sk(0,0,.58,1),uk=sk(.42,0,.58,1),ck=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,dk=e=>t=>1-e(1-t),pk=sk(.33,1.53,.69,.99),fk=dk(pk),hk=ck(fk),mk=e=>(e*=2)<1?.5*fk(e):.5*(2-Math.pow(2,-10*(e-1))),gk=e=>1-Math.sin(Math.acos(e)),yk=dk(gk),vk=ck(gk),bk=e=>Array.isArray(e)&&"number"==typeof e[0],Ek={linear:Wb,easeIn:ak,easeInOut:uk,easeOut:lk,circIn:gk,circInOut:vk,circOut:yk,backIn:fk,backInOut:hk,backOut:pk,anticipate:mk},Tk=e=>{if(bk(e)){e.length;const[t,n,r,i]=e;return sk(t,n,r,i)}return"string"==typeof e?Ek[e]:e},wk=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r};function kk(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(t.length,1===o)return()=>t[0];if(2===o&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=function(e,t,n){const r=[],i=n||Yb.mix||Bw,o=e.length-1;for(let n=0;n<o;n++){let o=i(e[n],e[n+1]);if(t){const e=Array.isArray(t)?t[n]||Wb:t;o=Cw(e,o)}r.push(o)}return r}(t,r,i),l=a.length,u=n=>{if(s&&n<e[0])return t[0];let r=0;if(l>1)for(;r<e.length-2&&!(n<e[r+1]);r++);const i=wk(e[r],e[r+1],n);return a[r](i)};return n?t=>u(Nb(e[0],e[o-1],t)):u}function Sk({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=(e=>Array.isArray(e)&&"number"!=typeof e[0])(r)?r.map(Tk):Tk(r),o={done:!1,value:t[0]},s=function(e,t){return e.map(e=>e*t)}(n&&n.length===t.length?n:function(e){const t=[0];return function(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=wk(0,t,r);e.push(db(n,1,i))}}(t,e.length-1),t}(t),e),a=kk(s,t,{ease:Array.isArray(i)?i:(l=t,u=i,l.map(()=>u||uk).splice(0,l.length-1))});var l,u;return{calculatedDuration:e,next:t=>(o.value=a(t),o.done=t>=e,o)}}const xk=e=>null!==e;function Ck(e,{repeat:t,repeatType:n="loop"},r,i=1){const o=e.filter(xk),s=i<0||t&&"loop"!==n&&t%2==1?0:o.length-1;return s&&void 0!==r?r:o[s]}const _k={decay:ik,inertia:ik,tween:Sk,keyframes:Sk,spring:rk};function Nk(e){"string"==typeof e.type&&(e.type=_k[e.type])}class Dk{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}}const Ak=e=>e/100;class Lk extends Dk{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:e}=this.options;e&&e.updatedAt!==zE.now()&&this.tick(zE.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},Dw.mainThread++,this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause()}initAnimation(){const{options:e}=this;Nk(e);const{type:t=Sk,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:o=0}=e;let{keyframes:s}=e;const a=t||Sk;a!==Sk&&"number"!=typeof s[0]&&(this.mixKeyframes=Cw(Ak,Bw(s[0],s[1])),s=[0,100]);const l=a({...e,keyframes:s});"mirror"===i&&(this.mirroredGenerator=a({...e,keyframes:[...s].reverse(),velocity:-o})),null===l.calculatedDuration&&(l.calculatedDuration=Gw(l));const{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=l}updateTime(e){const t=Math.round(e-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){const{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:o,resolvedDuration:s,calculatedDuration:a}=this;if(null===this.startTime)return n.next(0);const{delay:l=0,keyframes:u,repeat:c,repeatType:d,repeatDelay:p,type:f,onUpdate:h,finalKeyframe:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);const g=this.currentTime-l*(this.playbackSpeed>=0?1:-1),y=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=r);let v=this.currentTime,b=n;if(c){const e=Math.min(this.currentTime,r)/s;let t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,t=Math.min(t,c+1),Boolean(t%2)&&("reverse"===d?(n=1-n,p&&(n-=p/s)):"mirror"===d&&(b=o)),v=Nb(0,1,n)*s}const E=y?{done:!1,value:u[0]}:b.next(v);i&&(E.value=i(E.value));let{done:T}=E;y||null===a||(T=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);const w=null===this.holdTime&&("finished"===this.state||"running"===this.state&&T);return w&&f!==ik&&(E.value=Ck(u,this.options,m,this.speed)),h&&h(E.value),w&&this.finish(),E}then(e,t){return this.finished.then(e,t)}get duration(){return Nw(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+Nw(e)}get time(){return Nw(this.currentTime)}set time(e){e=_w(e),this.currentTime=e,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(zE.now());const t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=Nw(this.currentTime))}play(){if(this.isStopped)return;const{driver:e=$w,startTime:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),this.options.onPlay?.();const n=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=n):null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime||(this.startTime=t??n),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(zE.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,Dw.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}function Ik(e){let t;return()=>(void 0===t&&(t=e()),t)}const Ok=Ik(()=>void 0!==window.ScrollTimeline),Rk={};function Fk(e,t){const n=Ik(e);return()=>Rk[t]??n()}const Pk=Fk(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing"),Mk=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,jk={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Mk([0,.65,.55,1]),circOut:Mk([.55,0,1,.45]),backIn:Mk([.31,.01,.66,-.59]),backOut:Mk([.33,1.53,.69,.99])};function Vk(e,t){return e?"function"==typeof e?Pk()?qw(e,t):"ease-out":bk(e)?Mk(e):Array.isArray(e)?e.map(e=>Vk(e,t)||jk.easeOut):jk[e]:void 0}function Kk(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:s="loop",ease:a="easeOut",times:l}={},u=void 0){const c={[t]:n};l&&(c.offset=l);const d=Vk(a,i);Array.isArray(d)&&(c.easing=d),Jb.value&&Dw.waapi++;const p={delay:r,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:o+1,direction:"reverse"===s?"alternate":"normal"};u&&(p.pseudoElement=u);const f=e.animate(c,p);return Jb.value&&f.finished.finally(()=>{Dw.waapi--}),f}function Uk(e){return"function"==typeof e&&"applyToOptions"in e}class Bk extends Dk{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,!e)return;const{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:o=!1,finalKeyframe:s,onComplete:a}=e;this.isPseudoElement=Boolean(i),this.allowFlatten=o,this.options=e,e.type;const l=function({type:e,...t}){return Uk(e)&&Pk()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}(e);this.animation=Kk(t,n,r,l,i),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const e=Ck(r,this.options,s,this.speed);this.updateMotionValue?this.updateMotionValue(e):function(e,t,n){(e=>e.startsWith("--"))(t)?e.style.setProperty(t,n):e.style[t]=n}(t,n,e),this.animation.cancel()}a?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(e){}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;"idle"!==e&&"finished"!==e&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const e=this.animation.effect?.getComputedTiming?.().duration||0;return Nw(Number(e))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+Nw(e)}get time(){return Nw(Number(this.animation.currentTime)||0)}set time(e){this.finishedTime=null,this.animation.currentTime=_w(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(e){this.animation.startTime=e}attachTimeline({timeline:e,observe:t}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&Ok()?(this.animation.timeline=e,Wb):t(this)}}const $k={anticipate:mk,backInOut:hk,circInOut:vk};class qk extends Bk{constructor(e){var t;"string"==typeof(t=e).ease&&t.ease in $k&&(t.ease=$k[t.ease]),Nk(e),super(e),e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:t,onUpdate:n,onComplete:r,element:i,...o}=this.options;if(!t)return;if(void 0!==e)return void t.set(e);const s=new Lk({...o,autoplay:!1}),a=_w(this.finishedTime??this.time);t.setWithVelocity(s.sample(a-10).value,s.sample(a).value,10),s.stop()}}const zk=(e,t)=>!("zIndex"===t||"number"!=typeof e&&!Array.isArray(e)&&("string"!=typeof e||!LE.test(e)&&"0"!==e||e.startsWith("url("))),Gk=new Set(["opacity","clipPath","filter","transform"]),Qk=Ik(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class Hk extends Dk{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o="loop",keyframes:s,name:a,motionValue:l,element:u,...c}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=zE.now();const d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:o,name:a,motionValue:l,element:u,...c},p=u?.KeyframeResolver||cE;this.keyframeResolver=new p(s,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),a,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;const{name:i,type:o,velocity:s,delay:a,isHandoff:l,onUpdate:u}=n;this.resolvedAt=zE.now(),function(e,t,n,r){const i=e[0];if(null===i)return!1;if("display"===t||"visibility"===t)return!0;const o=e[e.length-1],s=zk(i,t),a=zk(o,t);return!(!s||!a)&&(function(e){const t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}(e)||("spring"===n||Uk(n))&&r)}(e,i,o,s)||(!Yb.instantAnimations&&a||u?.(Ck(e,n,t)),e[0]=e[e.length-1],Sw(n),n.repeat=0);const c={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},d=!l&&function(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:o,type:s}=e,a=t?.owner?.current;if(!(a instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:u}=t.owner.getProps();return Qk()&&n&&Gk.has(n)&&("transform"!==n||!u)&&!l&&!r&&"mirror"!==i&&0!==o&&"inertia"!==s}(c)?new qk({...c,element:c.motionValue.owner.current}):new Lk(c);d.finished.then(()=>this.notifyFinished()).catch(Wb),this.pendingTimeline&&(this.stopTimeline=d.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=d}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),aE=!0,uE(),lE(),aE=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const Wk=e=>null!==e,Yk={type:"spring",stiffness:500,damping:25,restSpeed:10},Xk={type:"keyframes",duration:.8},Jk={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Zk=(e,t,n,r={},i,o)=>s=>{const a=vw(r,e)||{},l=a.delay||r.delay||0;let{elapsed:u=0}=r;u-=_w(l);const c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:e=>{t.set(e),a.onUpdate&&a.onUpdate(e)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:o?void 0:i};(function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length})(a)||Object.assign(c,((e,{keyframes:t})=>t.length>2?Xk:Hv.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:Yk:Jk)(e,c)),c.duration&&(c.duration=_w(c.duration)),c.repeatDelay&&(c.repeatDelay=_w(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let d=!1;if((!1===c.type||0===c.duration&&!c.repeatDelay)&&(Sw(c),0===c.delay&&(d=!0)),(Yb.instantAnimations||Yb.skipAnimations)&&(d=!0,Sw(c),c.delay=0),c.allowFlatten=!a.type&&!a.ease,d&&!o&&void 0!==t.get()){const e=function(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(Wk),o=t&&"loop"!==n&&t%2==1?0:i.length-1;return o&&void 0!==r?r:i[o]}(c.keyframes,a);if(void 0!==e)return void eE.update(()=>{c.onUpdate(e),c.onComplete()})}return a.isSync?new Lk(c):new Hk(c)};function eS({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}function tS(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:s,...a}=t;r&&(o=r);const l=[],u=i&&e.animationState&&e.animationState.getState()[i];for(const t in a){const r=e.getValue(t,e.latestValues[t]??null),i=a[t];if(void 0===i||u&&eS(u,t))continue;const s={delay:n,...vw(o||{},t)},c=r.get();if(void 0!==c&&!r.isAnimating&&!Array.isArray(i)&&i===c&&!s.velocity)continue;let d=!1;if(window.MotionHandoffAnimation){const n=kw(e);if(n){const e=window.MotionHandoffAnimation(n,t,eE);null!==e&&(s.startTime=e,d=!0)}}ww(e,t),r.start(Zk(t,r,i,e.shouldReduceMotion&&_b.has(t)?{type:!1}:s,e,d));const p=r.animation;p&&l.push(p)}return s&&Promise.all(l).then(()=>{eE.update(()=>{s&&function(e,t){const n=yw(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const t in o)Ew(e,t,Tw(o[t]))}(e,s)})}),l}function nS(e,t,n,r=0,i=1){const o=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),s=e.size,a=(s-1)*r;return"function"==typeof n?n(o,s):1===i?o*r:a-o*r}function rS(e,t,n={}){const r=yw(e,t,"exit"===n.type?e.presenceContext?.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(tS(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(r=0)=>{const{delayChildren:o=0,staggerChildren:s,staggerDirection:a}=i;return function(e,t,n=0,r=0,i=0,o=1,s){const a=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),a.push(rS(l,t,{...s,delay:n+("function"==typeof r?0:r)+nS(e.variantChildren,l,r,i,o)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}(e,t,r,o,s,a,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[e,t]="beforeChildren"===a?[o,s]:[s,o];return e().then(()=>t())}return Promise.all([o(),s(n.delay)])}function iS(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const oS=pT.length;function sS(e){if(!e)return;if(!e.isControllingVariants){const t=e.parent&&sS(e.parent)||{};return void 0!==e.props.initial&&(t.initial=e.props.initial),t}const t={};for(let n=0;n<oS;n++){const r=pT[n],i=e.props[r];(cT(i)||!1===i)&&(t[r]=i)}return t}const aS=[...dT].reverse(),lS=dT.length;function uS(e){let t=function(e){return t=>Promise.all(t.map(({animation:t,options:n})=>function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t)){const i=t.map(t=>rS(e,t,n));r=Promise.all(i)}else if("string"==typeof t)r=rS(e,t,n);else{const i="function"==typeof t?yw(e,t,n.custom):t;r=Promise.all(tS(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}(e,t,n)))}(e),n=pS(),r=!0;const i=t=>(n,r)=>{const i=yw(e,r,"exit"===t?e.presenceContext?.custom:void 0);if(i){const{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function o(o){const{props:s}=e,a=sS(e.parent)||{},l=[],u=new Set;let c={},d=1/0;for(let t=0;t<lS;t++){const p=aS[t],f=n[p],h=void 0!==s[p]?s[p]:a[p],m=cT(h),g=p===o?f.isActive:null;!1===g&&(d=t);let y=h===a[p]&&h!==s[p]&&m;if(y&&r&&e.manuallyAnimateOnMount&&(y=!1),f.protectedKeys={...c},!f.isActive&&null===g||!h&&!f.prevProp||uT(h)||"boolean"==typeof h)continue;const v=cS(f.prevProp,h);let b=v||p===o&&f.isActive&&!y&&m||t>d&&m,E=!1;const T=Array.isArray(h)?h:[h];let w=T.reduce(i(p),{});!1===g&&(w={});const{prevResolvedValues:k={}}=f,S={...k,...w},x=t=>{b=!0,u.has(t)&&(E=!0,u.delete(t)),f.needsAnimating[t]=!0;const n=e.getValue(t);n&&(n.liveStyle=!1)};for(const e in S){const t=w[e],n=k[e];if(c.hasOwnProperty(e))continue;let r=!1;r=bw(t)&&bw(n)?!iS(t,n):t!==n,r?null!=t?x(e):u.add(e):void 0!==t&&u.has(e)?x(e):f.protectedKeys[e]=!0}f.prevProp=h,f.prevResolvedValues=w,f.isActive&&(c={...c,...w}),r&&e.blockInitialAnimation&&(b=!1);const C=y&&v;b&&(!C||E)&&l.push(...T.map(t=>{const n={type:p};if("string"==typeof t&&r&&!C&&e.manuallyAnimateOnMount&&e.parent){const{parent:r}=e,i=yw(r,t);if(r.enteringChildren&&i){const{delayChildren:t}=i.transition||{};n.delay=nS(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(u.size){const t={};if("boolean"!=typeof s.initial){const n=yw(e,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(t.transition=n.transition)}u.forEach(n=>{const r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),l.push({animation:t})}let p=Boolean(l.length);return!r||!1!==s.initial&&s.initial!==s.animate||e.manuallyAnimateOnMount||(p=!1),r=!1,p?t(l):Promise.resolve()}return{animateChanges:o,setActive:function(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;const i=o(t);for(const e in n)n[e].protectedKeys={};return i},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=pS()}}}function cS(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!iS(t,e)}function dS(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function pS(){return{animate:dS(!0),whileInView:dS(),whileHover:dS(),whileTap:dS(),whileDrag:dS(),whileFocus:dS(),exit:dS()}}class fS{constructor(e){this.isMounted=!1,this.node=e}update(){}}let hS=0;const mS={animation:{Feature:class extends fS{constructor(e){super(e),e.animationState||(e.animationState=uS(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();uT(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends fS{constructor(){super(...arguments),this.id=hS++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;const r=this.node.animationState.setActive("exit",!e);t&&!e&&r.then(()=>{t(this.id)})}mount(){const{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}}},gS={x:!1,y:!1};function yS(){return gS.x||gS.y}function vS(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const bS=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function ES(e){return{point:{x:e.pageX,y:e.pageY}}}function TS(e,t,n,r){return vS(e,t,(e=>t=>bS(t)&&e(t,ES(t)))(n),r)}function wS(e){return e.max-e.min}function kS(e,t,n,r=.5){e.origin=r,e.originPoint=db(t.min,t.max,e.origin),e.scale=wS(n)/wS(t),e.translate=db(n.min,n.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function SS(e,t,n,r){kS(e.x,t.x,n.x,r?r.originX:void 0),kS(e.y,t.y,n.y,r?r.originY:void 0)}function xS(e,t,n){e.min=n.min+t.min,e.max=e.min+wS(t)}function CS(e,t,n){e.min=t.min-n.min,e.max=e.min+wS(t)}function _S(e,t,n){CS(e.x,t.x,n.x),CS(e.y,t.y,n.y)}function NS(e){return[e("x"),e("y")]}const DS=({current:e})=>e?e.ownerDocument.defaultView:null,AS=(e,t)=>Math.abs(e-t);class LS{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:o=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const e=RS(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=AS(e.x,t.x),r=AS(e.y,t.y);return Math.sqrt(n**2+r**2)}(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;const{point:r}=e,{timestamp:i}=nE;this.history.push({...r,timestamp:i});const{onStart:o,onMove:s}=this.handlers;t||(o&&o(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),s&&s(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=IS(t,this.transformPagePoint),eE.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();const{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if(this.dragSnapToOrigin&&i&&i(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const o=RS("pointercancel"===e.type?this.lastMoveEventInfo:IS(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,o),r&&r(e,o)},!bS(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=o,this.contextWindow=r||window;const s=IS(ES(e),this.transformPagePoint),{point:a}=s,{timestamp:l}=nE;this.history=[{...a,timestamp:l}];const{onSessionStart:u}=t;u&&u(e,RS(s,this.history)),this.removeListeners=Cw(TS(this.contextWindow,"pointermove",this.handlePointerMove),TS(this.contextWindow,"pointerup",this.handlePointerUp),TS(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),tE(this.updatePoint)}}function IS(e,t){return t?{point:t(e.point)}:e}function OS(e,t){return{x:e.x-t.x,y:e.y-t.y}}function RS({point:e},t){return{point:e,delta:OS(e,PS(t)),offset:OS(e,FS(t)),velocity:MS(t,.1)}}function FS(e){return e[0]}function PS(e){return e[e.length-1]}function MS(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=PS(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>_w(t)));)n--;if(!r)return{x:0,y:0};const o=Nw(i.timestamp-r.timestamp);if(0===o)return{x:0,y:0};const s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function jS(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 VS(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}const KS=.35;function US(e,t,n){return{min:BS(e,t),max:BS(e,n)}}function BS(e,t){return"number"==typeof e?e:e[t]||0}const $S=new WeakMap;class qS{constructor(e){this.openDragLock=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.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){const{presenceContext:r}=this.visualElement;if(r&&!1===r.isPresent)return;const{dragSnapToOrigin:i}=this.getProps();this.panSession=new LS(e,{onSessionStart:e=>{const{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(ES(e).point)},onStart:(e,t)=>{const{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===(o=n)||"y"===o?gS[o]?null:(gS[o]=!0,()=>{gS[o]=!1}):gS.x||gS.y?null:(gS.x=gS.y=!0,()=>{gS.x=gS.y=!1}),!this.openDragLock))return;var o;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),NS(e=>{let t=this.getAxisMotionValue(e).get()||0;if(Rb.test(t)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[e];r&&(t=wS(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&eE.postRender(()=>i(e,t)),ww(this.visualElement,"transform");const{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},onMove:(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;const{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:o}=this.getProps();if(!n&&!this.openDragLock)return;const{offset:s}=t;if(r&&null===this.currentDirection)return this.currentDirection=function(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(s),void(null!==this.currentDirection&&i&&i(this.currentDirection));this.updateAxis("x",t.point,s),this.updateAxis("y",t.point,s),this.visualElement.render(),o&&o(e,t)},onSessionEnd:(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},resumeAnimation:()=>NS(e=>"paused"===this.getAnimationState(e)&&this.getAxisMotionValue(e).animation?.play())},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:i,distanceThreshold:n,contextWindow:DS(this.visualElement)})}stop(e,t){const n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;const{velocity:o}=r;this.startAnimation(o);const{onDragEnd:s}=this.getProps();s&&eE.postRender(()=>s(n,r))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){const{drag:r}=this.getProps();if(!n||!zS(e,r,this.currentDirection))return;const i=this.getAxisMotionValue(e);let o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=function(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?db(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?db(n,e,r.max):Math.min(e,n)),e}(o,this.constraints[e],this.elastic[e])),i.set(o)}resolveConstraints(){const{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&aw(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!n)&&function(e,{top:t,left:n,bottom:r,right:i}){return{x:jS(e.x,n,i),y:jS(e.y,t,r)}}(n.layoutBox,e),this.elastic=function(e=KS){return!1===e?e=0:!0===e&&(e=KS),{x:US(e,"left","right"),y:US(e,"top","bottom")}}(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&NS(e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){const n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!aw(e))return!1;const n=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const i=function(e,t,n){const r=Cb(e,n),{scroll:i}=t;return i&&(kb(r.x,i.offset.x),kb(r.y,i.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let o=function(e,t){return{x:VS(e.x,t.x),y:VS(e.y,t.y)}}(r.layout.layoutBox,i);if(t){const e=t(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(o));this.hasMutatedConstraints=!!e,e&&(o=cb(e))}return o}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:s}=this.getProps(),a=this.constraints||{},l=NS(s=>{if(!zS(s,t,this.currentDirection))return;let l=a&&a[s]||{};o&&(l={min:0,max:0});const u=r?200:1e6,c=r?40:1e7,d={type:"inertia",velocity:n?e[s]:0,bounceStiffness:u,bounceDamping:c,timeConstant:750,restDelta:1,restSpeed:10,...i,...l};return this.startAxisValueAnimation(s,d)});return Promise.all(l).then(s)}startAxisValueAnimation(e,t){const n=this.getAxisMotionValue(e);return ww(this.visualElement,e),n.start(Zk(e,n,0,t,this.visualElement,!1))}stopAnimation(){NS(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){NS(e=>this.getAxisMotionValue(e).animation?.pause())}getAnimationState(e){return this.getAxisMotionValue(e).animation?.state}getAxisMotionValue(e){const t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps();return n[t]||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){NS(t=>{const{drag:n}=this.getProps();if(!zS(t,n,this.currentDirection))return;const{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){const{min:n,max:o}=r.layout.layoutBox[t];i.set(e[t]-db(n,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!aw(t)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};NS(e=>{const t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){const n=t.get();r[e]=function(e,t){let n=.5;const r=wS(e),i=wS(t);return i>r?n=wk(t.min,t.max-r,e.min):r>i&&(n=wk(e.min,e.max-i,t.min)),Nb(0,1,n)}({min:n,max:n},this.constraints[e])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),NS(t=>{if(!zS(t,e,null))return;const n=this.getAxisMotionValue(t),{min:i,max:o}=this.constraints[t];n.set(db(i,o,r[t]))})}addListeners(){if(!this.visualElement.current)return;$S.set(this.visualElement,this);const e=TS(this.visualElement.current,"pointerdown",e=>{const{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),t=()=>{const{dragConstraints:e}=this.getProps();aw(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),eE.read(t);const i=vS(window,"resize",()=>this.scalePositionWithinConstraints()),o=n.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(NS(t=>{const n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{i(),e(),r(),o&&o()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:o=KS,dragMomentum:s=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:o,dragMomentum:s}}}function zS(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}const GS=e=>(t,n)=>{e&&eE.postRender(()=>e(t,n))},QS={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function HS(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const WS={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!Fb.test(e))return e;e=parseFloat(e)}return`${HS(e,t.target.x)}% ${HS(e,t.target.y)}%`}},YS={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=LE.parse(e);if(i.length>5)return r;const o=LE.createTransformer(e),s="number"!=typeof i[0]?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;i[0+s]/=a,i[1+s]/=l;const u=db(a,l,.5);return"number"==typeof i[2+s]&&(i[2+s]/=u),"number"==typeof i[3+s]&&(i[3+s]/=u),o(i)}};let XS=!1;class JS extends d.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;!function(e){for(const t in e)xT[t]=e[t],sb(t)&&(xT[t].isCSSVariable=!0)}(ex),i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),XS&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),QS.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:o}=n;return o?(o.isPresent=i,XS=!0,r||e.layoutDependency!==t||void 0===t||e.isPresent!==i?o.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?o.promote():o.relegate()||eE.postRender(()=>{const e=o.getStack();e&&e.members.length||this.safeToRemove()})),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),eT.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;XS=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function ZS(e){const[t,n]=function(e=!0){const t=(0,d.useContext)(ZT);if(null===t)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,o=(0,d.useId)();(0,d.useEffect)(()=>{if(e)return i(o)},[e]);const s=(0,d.useCallback)(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,s]:[!0]}(),r=(0,d.useContext)(KT);return(0,h.jsx)(JS,{...e,layoutGroup:r,switchLayoutGroup:(0,d.useContext)(cw),isPresent:t,safeToRemove:n})}const ex={borderRadius:{...WS,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:WS,borderTopRightRadius:WS,borderBottomLeftRadius:WS,borderBottomRightRadius:WS,boxShadow:YS};function tx(e){return"object"==typeof e&&null!==e}function nx(e){return tx(e)&&"ownerSVGElement"in e}const rx=(e,t)=>e.depth-t.depth;class ix{constructor(){this.children=[],this.isDirty=!1}add(e){GE(this.children,e),this.isDirty=!0}remove(e){QE(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(rx),this.isDirty=!1,this.children.forEach(e)}}const ox=["TopLeft","TopRight","BottomLeft","BottomRight"],sx=ox.length,ax=e=>"string"==typeof e?parseFloat(e):e,lx=e=>"number"==typeof e||Fb.test(e);function ux(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const cx=px(0,.5,yk),dx=px(.5,.95,Wb);function px(e,t,n){return r=>r<e?0:r>t?1:n(wk(e,t,r))}function fx(e,t){e.min=t.min,e.max=t.max}function hx(e,t){fx(e.x,t.x),fx(e.y,t.y)}function mx(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function gx(e,t,n,r,i){return e=yb(e-=t,1/n,r),void 0!==i&&(e=yb(e,1/i,r)),e}function yx(e,t,[n,r,i],o,s){!function(e,t=0,n=1,r=.5,i,o=e,s=e){if(Rb.test(t)&&(t=parseFloat(t),t=db(s.min,s.max,t/100)-s.min),"number"!=typeof t)return;let a=db(o.min,o.max,r);e===o&&(a-=t),e.min=gx(e.min,t,n,a,i),e.max=gx(e.max,t,n,a,i)}(e,t[n],t[r],t[i],t.scale,o,s)}const vx=["x","scaleX","originX"],bx=["y","scaleY","originY"];function Ex(e,t,n,r){yx(e.x,t,vx,n?n.x:void 0,r?r.x:void 0),yx(e.y,t,bx,n?n.y:void 0,r?r.y:void 0)}function Tx(e){return 0===e.translate&&1===e.scale}function wx(e){return Tx(e.x)&&Tx(e.y)}function kx(e,t){return e.min===t.min&&e.max===t.max}function Sx(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function xx(e,t){return Sx(e.x,t.x)&&Sx(e.y,t.y)}function Cx(e){return wS(e.x)/wS(e.y)}function _x(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class Nx{constructor(){this.members=[]}add(e){GE(this.members,e),e.scheduleRender()}remove(e){if(QE(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){const t=this.members.findIndex(t=>e===t);if(0===t)return!1;let n;for(let e=t;e>=0;e--){const t=this.members[e];if(!1!==t.isPresent){n=t;break}}return!!n&&(this.promote(n),!0)}promote(e,t){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:r}=e.options;!1===r&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const Dx={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},Ax=["","X","Y","Z"];let Lx=0;function Ix(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Ox(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=kw(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",eE,!(t||r))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Ox(r)}function Rx({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=Lx++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Jb.value&&(Dx.nodes=Dx.calculatedTargetDeltas=Dx.calculatedProjections=0),this.nodes.forEach(Mx),this.nodes.forEach(qx),this.nodes.forEach(zx),this.nodes.forEach(jx),Jb.addProjectionMetrics&&Jb.addProjectionMetrics(Dx)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new ix)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new HE),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){const n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;var n;this.isSVG=nx(t)&&!(nx(n=t)&&"svg"===n.tagName),this.instance=t;const{layoutId:r,layout:i,visualElement:o}=this.options;if(o&&!o.current&&o.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(i||r)&&(this.isLayoutDirty=!0),e){let n,r=0;const i=()=>this.root.updateBlockedByResize=!1;eE.read(()=>{r=window.innerWidth}),e(t,()=>{const e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){const n=zE.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(tE(r),e(o-t))};return eE.setup(r,!0),()=>tE(r)}(i,250),QS.hasAnimatedSinceResize&&(QS.hasAnimatedSinceResize=!1,this.nodes.forEach($x)))})}r&&this.root.registerSharedNode(r,this),!1!==this.options.animate&&o&&(r||i)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const i=this.options.transition||o.getDefaultTransition()||Xx,{onLayoutAnimationStart:s,onLayoutAnimationComplete:a}=o.getProps(),l=!this.targetLayout||!xx(this.targetLayout,r),u=!t&&n;if(this.options.layoutRoot||this.resumeFrom||u||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const t={...vw(i,"layout"),onPlay:s,onComplete:a};(o.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,u)}else t||$x(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),tE(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Gx),this.animationId++)}getTransformTemplate(){const{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Ox(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){const t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}const{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;const r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(Kx);if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(Ux);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Bx),this.nodes.forEach(Fx),this.nodes.forEach(Px)):this.nodes.forEach(Ux),this.clearAllSnapshots();const e=zE.now();nE.delta=Nb(0,1e3/60,e-nE.timestamp),nE.timestamp=e,nE.isProcessing=!0,rE.update.process(nE),rE.preRender.process(nE),rE.render.process(nE),nE.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,eT.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Vx),this.sharedNodes.forEach(Qx)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,eE.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){eE.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||wS(this.snapshot.measuredBox.x)||wS(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();const e=this.layout;this.layout=this.measure(!1),this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=Boolean(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){const t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;const e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!wx(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,o=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||hb(this.latestValues)||o)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){const t=this.measurePageBox();let n=this.removeElementScroll(t);var r;return e&&(n=this.removeTransform(n)),eC((r=n).x),eC(r.y),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:e}=this.options;if(!e)return{x:{min:0,max:0},y:{min:0,max:0}};const t=e.measureViewportBox();if(!this.scroll?.wasRoot&&!this.path.some(nC)){const{scroll:e}=this.root;e&&(kb(t.x,e.offset.x),kb(t.y,e.offset.y))}return t}removeElementScroll(e){const t={x:{min:0,max:0},y:{min:0,max:0}};if(hx(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){const r=this.path[n],{scroll:i,options:o}=r;r!==this.root&&i&&o.layoutScroll&&(i.wasRoot&&hx(t,e),kb(t.x,i.offset.x),kb(t.y,i.offset.y))}return t}applyTransform(e,t=!1){const n={x:{min:0,max:0},y:{min:0,max:0}};hx(n,e);for(let e=0;e<this.path.length;e++){const r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&xb(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),hb(r.latestValues)&&xb(n,r.latestValues)}return hb(this.latestValues)&&xb(n,this.latestValues),n}removeTransform(e){const t={x:{min:0,max:0},y:{min:0,max:0}};hx(t,e);for(let e=0;e<this.path.length;e++){const n=this.path[e];if(!n.instance)continue;if(!hb(n.latestValues))continue;fb(n.latestValues)&&n.updateSnapshot();const r=iT();hx(r,n.measurePageBox()),Ex(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return hb(this.latestValues)&&Ex(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){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}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==nE.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){const t=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=t.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=t.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=t.isSharedProjectionDirty);const n=Boolean(this.resumingFrom)||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:r,layoutId:i}=this.options;if(this.layout&&(r||i)){if(this.resolvedRelativeTargetAt=nE.timestamp,!this.targetDelta&&!this.relativeTarget){const e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},_S(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),hx(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var o,s,a;if(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&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),o=this.target,s=this.relativeTarget,a=this.relativeParent.target,xS(o.x,s.x,a.x),xS(o.y,s.y,a.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):hx(this.target,this.layout.layoutBox),Eb(this.target,this.targetDelta)):hx(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const e=this.getClosestProjectingParent();e&&Boolean(e.resumingFrom)===Boolean(this.resumingFrom)&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},_S(this.relativeTargetOrigin,this.target,e.target),hx(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Jb.value&&Dx.calculatedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!fb(this.parent.latestValues)&&!mb(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){const e=this.getLead(),t=Boolean(this.resumingFrom)||this!==e;let n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===nE.timestamp&&(n=!1),n)return;const{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!r&&!i)return;hx(this.layoutCorrected,this.layout.layoutBox);const o=this.treeScale.x,s=this.treeScale.y;!function(e,t,n,r=!1){const i=n.length;if(!i)return;let o,s;t.x=t.y=1;for(let a=0;a<i;a++){o=n[a],s=o.projectionDelta;const{visualElement:i}=o.options;i&&i.props.style&&"contents"===i.props.style.display||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&xb(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,Eb(e,s)),r&&hb(o.latestValues)&&xb(e,o.latestValues))}t.x<wb&&t.x>Tb&&(t.x=1),t.y<wb&&t.y>Tb&&(t.y=1)}(this.layoutCorrected,this.treeScale,this.path,t),!e.layout||e.target||1===this.treeScale.x&&1===this.treeScale.y||(e.target=e.layout.layoutBox,e.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}});const{target:a}=e;a?(this.projectionDelta&&this.prevProjectionDelta?(mx(this.prevProjectionDelta.x,this.projectionDelta.x),mx(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),SS(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===o&&this.treeScale.y===s&&_x(this.projectionDelta.x,this.prevProjectionDelta.x)&&_x(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a)),Jb.value&&Dx.calculatedProjections++):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){const e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},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}}}setAnimationOrigin(e,t=!1){const n=this.snapshot,r=n?n.latestValues:{},i={...this.latestValues},o={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;const s={x:{min:0,max:0},y:{min:0,max:0}},a=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,c=Boolean(a&&!u&&!0===this.options.crossfade&&!this.path.some(Yx));let d;this.animationProgress=0,this.mixTargetDelta=t=>{const n=t/1e3;Hx(o.x,e.x,n),Hx(o.y,e.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(_S(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox),function(e,t,n,r){Wx(e.x,t.x,n.x,r),Wx(e.y,t.y,n.y,r)}(this.relativeTarget,this.relativeTargetOrigin,s,n),d&&function(e,t){return kx(e.x,t.x)&&kx(e.y,t.y)}(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||(d={x:{min:0,max:0},y:{min:0,max:0}}),hx(d,this.relativeTarget)),a&&(this.animationValues=i,function(e,t,n,r,i,o){i?(e.opacity=db(0,n.opacity??1,cx(r)),e.opacityExit=db(t.opacity??1,0,dx(r))):o&&(e.opacity=db(t.opacity??1,n.opacity??1,r));for(let i=0;i<sx;i++){const o=`border${ox[i]}Radius`;let s=ux(t,o),a=ux(n,o);void 0===s&&void 0===a||(s||(s=0),a||(a=0),0===s||0===a||lx(s)===lx(a)?(e[o]=Math.max(db(ax(s),ax(a),r),0),(Rb.test(a)||Rb.test(s))&&(e[o]+="%")):e[o]=a)}(t.rotate||n.rotate)&&(e.rotate=db(t.rotate||0,n.rotate||0,r))}(i,r,this.latestValues,n,c,u)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(tE(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=eE.update(()=>{QS.hasAnimatedSinceResize=!0,Dw.layout++,this.motionValue||(this.motionValue=JE(0)),this.currentAnimation=function(e,t,n){const r=zv(e)?e:JE(e);return r.start(Zk("",r,[0,1e3],n)),r.animation}(this.motionValue,0,{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{Dw.layout--},onComplete:()=>{Dw.layout--,e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const e=this.getLead();let{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&tC(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const t=wS(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const r=wS(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}hx(t,n),xb(t,i),SS(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Nx),this.sharedNodes.get(e).add(t);const n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){const{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){const{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){const r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;const r={};n.z&&Ix("z",e,r,this.animationValues);for(let t=0;t<Ax.length;t++)Ix(`rotate${Ax[t]}`,e,r,this.animationValues),Ix(`skew${Ax[t]}`,e,r,this.animationValues);e.render();for(const t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible)return void(e.visibility="hidden");const n=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,e.visibility="",e.opacity="",e.pointerEvents=tw(t?.pointerEvents)||"",void(e.transform=n?n(this.latestValues,""):"none");const r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target)return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=tw(t?.pointerEvents)||""),void(this.hasProjected&&!hb(this.latestValues)&&(e.transform=n?n({},""):"none",this.hasProjected=!1));e.visibility="";const i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let o=function(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,s=n?.z||0;if((i||o||s)&&(r=`translate3d(${i}px, ${o}px, ${s}px) `),1===t.x&&1===t.y||(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:e,rotate:t,rotateX:i,rotateY:o,skewX:s,skewY:a}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotateX(${i}deg) `),o&&(r+=`rotateY(${o}deg) `),s&&(r+=`skewX(${s}deg) `),a&&(r+=`skewY(${a}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return 1===a&&1===l||(r+=`scale(${a}, ${l})`),r||"none"}(this.projectionDeltaWithTransform,this.treeScale,i);n&&(o=n(i,o)),e.transform=o;const{x:s,y:a}=this.projectionDelta;e.transformOrigin=`${100*s.origin}% ${100*a.origin}% 0`,r.animationValues?e.opacity=r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:e.opacity=r===this?void 0!==i.opacity?i.opacity:"":void 0!==i.opacityExit?i.opacityExit:0;for(const t in xT){if(void 0===i[t])continue;const{correct:n,applyTo:s,isCSSVariable:a}=xT[t],l="none"===o?i[t]:n(i[t],r);if(s){const t=s.length;for(let n=0;n<t;n++)e[s[n]]=l}else a?this.options.visualElement.renderState.vars[t]=l:e[t]=l}this.options.layoutId&&(e.pointerEvents=r===this?tw(t?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(Kx),this.root.sharedNodes.clear()}}}function Fx(e){e.updateLayout()}function Px(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,o=t.source!==e.layout.source;"size"===i?NS(e=>{const r=o?t.measuredBox[e]:t.layoutBox[e],i=wS(r);r.min=n[e].min,r.max=r.min+i}):tC(i,t.layoutBox,n)&&NS(r=>{const i=o?t.measuredBox[r]:t.layoutBox[r],s=wS(n[r]);i.max=i.min+s,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+s)});const s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};SS(s,n,t.layoutBox);const a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};o?SS(a,e.applyTransform(r,!0),t.measuredBox):SS(a,n,t.layoutBox);const l=!wx(s);let u=!1;if(!e.resumeFrom){const r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){const{snapshot:i,layout:o}=r;if(i&&o){const s={x:{min:0,max:0},y:{min:0,max:0}};_S(s,t.layoutBox,i.layoutBox);const a={x:{min:0,max:0},y:{min:0,max:0}};_S(a,n,o.layoutBox),xx(s,a)||(u=!0),r.options.layoutRoot&&(e.relativeTarget=a,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:a,layoutDelta:s,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function Mx(e){Jb.value&&Dx.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function jx(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Vx(e){e.clearSnapshot()}function Kx(e){e.clearMeasurements()}function Ux(e){e.isLayoutDirty=!1}function Bx(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function $x(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function qx(e){e.resolveTargetDelta()}function zx(e){e.calcProjection()}function Gx(e){e.resetSkewAndRotation()}function Qx(e){e.removeLeadSnapshot()}function Hx(e,t,n){e.translate=db(t.translate,0,n),e.scale=db(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Wx(e,t,n,r){e.min=db(t.min,n.min,r),e.max=db(t.max,n.max,r)}function Yx(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const Xx={duration:.45,ease:[.4,0,.1,1]},Jx=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Zx=Jx("applewebkit/")&&!Jx("chrome/")?Math.round:Wb;function eC(e){e.min=Zx(e.min),e.max=Zx(e.max)}function tC(e,t,n){return"position"===e||"preserve-aspect"===e&&(r=Cx(t),i=Cx(n),!(Math.abs(r-i)<=.2));var r,i}function nC(e){return e!==e.root&&e.scroll?.wasRoot}const rC=Rx({attachResizeListener:(e,t)=>vS(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),iC={current:void 0},oC=Rx({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!iC.current){const e=new rC({});e.mount(window),e.setOptions({layoutScroll:!0}),iC.current=e}return iC.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),sC={pan:{Feature:class extends fS{constructor(){super(...arguments),this.removePointerDownListener=Wb}onPointerDown(e){this.session=new LS(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:DS(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:GS(e),onStart:GS(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&eE.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=TS(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends fS{constructor(e){super(e),this.removeGroupControls=Wb,this.removeListeners=Wb,this.controls=new qS(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Wb}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:oC,MeasureLayout:ZS}};function aC(e,t){const n=function(e){if(e instanceof EventTarget)return[e];if("string"==typeof e){let t=document;const n=t.querySelectorAll(e);return n?Array.from(n):[]}return Array.from(e)}(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function lC(e){return!("touch"===e.pointerType||yS())}function uC(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover","Start"===n);const i=r["onHover"+n];i&&eE.postRender(()=>i(t,ES(t)))}const cC=(e,t)=>!!t&&(e===t||cC(e,t.parentElement)),dC=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),pC=new WeakSet;function fC(e){return t=>{"Enter"===t.key&&e(t)}}function hC(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function mC(e){return bS(e)&&!yS()}function gC(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap","Start"===n);const i=r["onTap"+("End"===n?"":n)];i&&eE.postRender(()=>i(t,ES(t)))}const yC=new WeakMap,vC=new WeakMap,bC=e=>{const t=yC.get(e.target);t&&t(e)},EC=e=>{e.forEach(bC)};const TC={some:0,all:1},wC={inView:{Feature:class extends fS{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r="some",once:i}=e,o={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:TC[r]};return function(e,t,n){const r=function({root:e,...t}){const n=e||document;vC.has(n)||vC.set(n,{});const r=vC.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(EC,{root:e,...t})),r[i]}(t);return yC.set(e,n),r.observe(e),()=>{yC.delete(e),r.unobserve(e)}}(this.node.current,o,e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,i&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),o=t?n:r;o&&o(e)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends fS{mount(){const{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){const[r,i,o]=aC(e,n),s=e=>{const r=e.currentTarget;if(!mC(e))return;pC.add(r);const o=t(r,e),s=(e,t)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),pC.has(r)&&pC.delete(r),mC(e)&&"function"==typeof o&&o(e,{success:t})},a=e=>{s(e,r===window||r===document||n.useGlobalTarget||cC(r,e.target))},l=e=>{s(e,!1)};window.addEventListener("pointerup",a,i),window.addEventListener("pointercancel",l,i)};return r.forEach(e=>{var t;(n.useGlobalTarget?window:e).addEventListener("pointerdown",s,i),tx(t=e)&&"offsetHeight"in t&&(e.addEventListener("focus",e=>((e,t)=>{const n=e.currentTarget;if(!n)return;const r=fC(()=>{if(pC.has(n))return;hC(n,"down");const e=fC(()=>{hC(n,"up")});n.addEventListener("keyup",e,t),n.addEventListener("blur",()=>hC(n,"cancel"),t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)})(e,i)),function(e){return dC.has(e.tagName)||-1!==e.tabIndex}(e)||e.hasAttribute("tabindex")||(e.tabIndex=0))}),o}(e,(e,t)=>(gC(this.node,t,"Start"),(e,{success:t})=>gC(this.node,e,t?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends fS{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Cw(vS(this.node.current,"focus",()=>this.onFocus()),vS(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends fS{mount(){const{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){const[r,i,o]=aC(e,n),s=e=>{if(!lC(e))return;const{target:n}=e,r=t(n,e);if("function"!=typeof r||!n)return;const o=e=>{lC(e)&&(r(e),n.removeEventListener("pointerleave",o))};n.addEventListener("pointerleave",o,i)};return r.forEach(e=>{e.addEventListener("pointerenter",s,i)}),o}(e,(e,t)=>(uC(this.node,t,"Start"),e=>uC(this.node,e,"End"))))}unmount(){}}}},kC=gw({...mS,...wC,...sC,layout:{ProjectionNode:oC,MeasureLayout:ZS}},VT);function SC(e){const t=ew(()=>JE(e)),{isStatic:n}=(0,d.useContext)(BT);if(n){const[,n]=(0,d.useState)(e);(0,d.useEffect)(()=>t.on("change",n),[])}return t}function xC(e,t){const n=SC(t()),r=()=>n.set(t());return r(),dw(()=>{const t=()=>eE.preRender(r,!1,!0),n=e.map(e=>e.on("change",t));return()=>{n.forEach(e=>e()),tE(r)}}),n}function CC(e,t){const n=ew(()=>[]);return xC(e,()=>{n.length=0;const r=e.length;for(let t=0;t<r;t++)n[t]=e[t].get();return t(n)})}function _C(e,t=0){return zv(e)?e:SC(t)}function NC({children:e,style:t={},value:n,as:r="li",onDrag:i,layout:o=!0,...s},a){const l=ew(()=>kC[r]),u=(0,d.useContext)(Gv),c={x:_C(t.x),y:_C(t.y)},p=function(e,t,n,r){if("function"==typeof e)return function(e){YE.current=[],e();const t=xC(YE.current,e);return YE.current=void 0,t}(e);const i="function"==typeof t?t:function(...e){const t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=kk(e[1+n],e[2+n],e[3+n]);return t?i(r):i}(t,n,r);return Array.isArray(e)?CC(e,i):CC([e],([e])=>i(e))}([c.x,c.y],([e,t])=>e||t?1:"unset");Boolean(u);const{axis:f,registerItem:m,updateOrder:g}=u;return(0,h.jsx)(l,{drag:f,...s,dragSnapToOrigin:!0,style:{...t,x:c.x,y:c.y,zIndex:p},layout:o,onDrag:(e,t)=>{const{velocity:r}=t;r[f]&&g(n,c[f].get(),r[f]),i&&i(e,t)},onLayoutMeasure:e=>m(n,e),ref:a,ignoreStrict:!0,children:e})}const DC=(0,d.forwardRef)(NC);function AC({children:e,as:t="ul",axis:n="y",onReorder:r,values:i,...o},s){const a=ew(()=>kC[t]),l=[],u=(0,d.useRef)(!1);Boolean(i);const c={axis:n,registerItem:(e,t)=>{const r=l.findIndex(t=>e===t.value);-1!==r?l[r].layout=t[n]:l.push({value:e,layout:t[n]}),l.sort(OC)},updateOrder:(e,t,n)=>{if(u.current)return;const o=function(e,t,n,r){if(!r)return e;const i=e.findIndex(e=>e.value===t);if(-1===i)return e;const o=r>0?1:-1,s=e[i+o];if(!s)return e;const a=e[i],l=s.layout,u=db(l.min,l.max,.5);return 1===o&&a.layout.max+n>u||-1===o&&a.layout.min+n<u?function([...e],t,n){const r=t<0?e.length+t:t;if(r>=0&&r<e.length){const r=n<0?e.length+n:n,[i]=e.splice(t,1);e.splice(r,0,i)}return e}(e,i,i+o):e}(l,e,t,n);l!==o&&(u.current=!0,r(o.map(IC).filter(e=>-1!==i.indexOf(e))))}};return(0,d.useEffect)(()=>{u.current=!1}),(0,h.jsx)(a,{...o,ref:s,ignoreStrict:!0,children:(0,h.jsx)(Gv.Provider,{value:c,children:e})})}const LC=(0,d.forwardRef)(AC);function IC(e){return e.value}function OC(e,t){return e.layout.min-t.layout.min}const RC=(0,d.forwardRef)((e,t)=>{const n=(0,m.c)(16);let r,i,o,s,a;n[0]!==e?(({isActive:o,value:a,children:r,className:i,...s}=e),n[0]=e,n[1]=r,n[2]=i,n[3]=o,n[4]=s,n[5]=a):(r=n[1],i=n[2],o=n[3],s=n[4],a=n[5]);const l=o&&"graphiql-tab-active";let u,c;return n[6]!==i||n[7]!==l?(u=dn("graphiql-tab",l,i),n[6]=i,n[7]=l,n[8]=u):u=n[8],n[9]!==r||n[10]!==o||n[11]!==s||n[12]!==t||n[13]!==u||n[14]!==a?(c=(0,h.jsx)(DC,{...s,ref:t,value:a,"aria-selected":o,dragElastic:!1,role:"tab",className:u,children:r}),n[9]=r,n[10]=o,n[11]=s,n[12]=t,n[13]=u,n[14]=a,n[15]=c):c=n[15],c});RC.displayName="Tab";const FC=(0,d.forwardRef)((e,t)=>{const n=(0,m.c)(11);let r,i,o,s,a;return n[0]!==e?(({children:r,className:i,...o}=e),n[0]=e,n[1]=r,n[2]=i,n[3]=o):(r=n[1],i=n[2],o=n[3]),n[4]!==i?(s=dn("graphiql-tab-button",i),n[4]=i,n[5]=s):s=n[5],n[6]!==r||n[7]!==o||n[8]!==t||n[9]!==s?(a=(0,h.jsx)(_o,{...o,ref:t,type:"button",className:s,children:r}),n[6]=r,n[7]=o,n[8]=t,n[9]=s,n[10]=a):a=n[10],a});FC.displayName="Tab.Button";const PC=(0,d.forwardRef)((e,t)=>{const n=(0,m.c)(7);let r,i,o;return n[0]!==e.className?(r=dn("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,h.jsx)(Ot,{}),n[2]=i):i=n[2],n[3]!==e||n[4]!==t||n[5]!==r?(o=(0,h.jsx)(_o,{"aria-label":"Close Tab",...e,ref:t,type:"button",className:r,children:i}),n[3]=e,n[4]=t,n[5]=r,n[6]=o):o=n[6],o});PC.displayName="Tab.Close";const MC=Object.assign(RC,{Button:FC,Close:PC}),jC=(0,d.forwardRef)((e,t)=>{const n=(0,m.c)(15);let r,i,o,s,a,l,u;return n[0]!==e?(({values:a,onReorder:o,children:r,className:i,...s}=e),n[0]=e,n[1]=r,n[2]=i,n[3]=o,n[4]=s,n[5]=a):(r=n[1],i=n[2],o=n[3],s=n[4],a=n[5]),n[6]!==i?(l=dn("graphiql-tabs",i),n[6]=i,n[7]=l):l=n[7],n[8]!==r||n[9]!==o||n[10]!==s||n[11]!==t||n[12]!==l||n[13]!==a?(u=(0,h.jsx)(LC,{...s,ref:t,values:a,onReorder:o,axis:"x",role:"tablist",className:l,children:r}),n[8]=r,n[9]=o,n[10]=s,n[11]=t,n[12]=l,n[13]=a,n[14]=u):u=n[14],u});jC.displayName="Tabs";const VC=Object.assign(e=>{var t;const n=(0,m.c)(14),{path:r}=e;let i;n[0]===Symbol.for("react.memo_cache_sentinel")?(i={width:null,height:null},n[0]=i):i=n[0];const[o,s]=(0,d.useState)(i),{width:a,height:l}=o,[u,c]=(0,d.useState)(null),p=(0,d.useRef)(null),f=null==(t=KC(r))?void 0:t.href;let g,y,v,b,E,T;return n[1]!==f?(g=()=>{if(!f)return s({width:null,height:null}),void c(null);fetch(f,{method:"HEAD"}).then(e=>{c(e.headers.get("Content-Type"))}).catch(()=>{c(null)})},y=[f],n[1]=f,n[2]=g,n[3]=y):(g=n[2],y=n[3]),(0,d.useEffect)(g,y),n[4]===Symbol.for("react.memo_cache_sentinel")?(v=()=>{s({width:p.current.naturalWidth,height:p.current.naturalHeight})},n[4]=v):v=n[4],n[5]!==f?(b=(0,h.jsx)("img",{alt:"",onLoad:v,ref:p,src:f}),n[5]=f,n[6]=b):b=n[6],n[7]!==l||n[8]!==u||n[9]!==a?(E=null!==a&&null!==l&&(0,h.jsxs)("div",{children:[a,"x",l,u&&" "+u]}),n[7]=l,n[8]=u,n[9]=a,n[10]=E):E=n[10],n[11]!==b||n[12]!==E?(T=(0,h.jsxs)("div",{children:[b,E]}),n[11]=b,n[12]=E,n[13]=T):T=n[13],T},{shouldRender(e){const t=KC(e);return!!t&&/\.(bmp|gif|jpe?g|png|svg|webp)$/.test(t.pathname)}});function KC(e){const t=e.slice(1).trim();try{return new URL(t,location.protocol+"//"+location.host)}catch{}}const UC=e=>{const t=(0,m.c)(22);let n,r;t[0]!==e?(({responseTooltip:n,...r}=e),t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);const{setEditor:i,run:o}=Ct();let s;t[3]===Symbol.for("react.memo_cache_sentinel")?(s=ln("fetchError","validationErrors","responseEditor","uriInstanceId"),t[3]=s):s=t[3];const{fetchError:a,validationErrors:l,responseEditor:u,uriInstanceId:c}=xt(s),p=(0,d.useRef)(null),g=We(BC);let y,v,b,E,T,w;return t[4]!==a||t[5]!==u||t[6]!==l?(y=()=>{a&&(null==u||u.setValue(a)),l.length&&(null==u||u.setValue(H(l)))},v=[u,a,l],t[4]=a,t[5]=u,t[6]=l,t[7]=y,t[8]=v):(y=t[7],v=t[8]),(0,d.useEffect)(y,v),t[9]!==n||t[10]!==g||t[11]!==o||t[12]!==i||t[13]!==c?(b=()=>{if(!g)return;const e=Fv({uri:`${c}response.json`,value:""}),t=Pv(p,{model:e,readOnly:!0,lineNumbers:"off",wordWrap:"on",contextmenu:!1});let r,s;i({responseEditor:t});const a=e.getLanguageId();return Mv([g.languages.registerHoverProvider(a,{provideHover:(t,i)=>{if(t.uri!==e.uri)return null;const o=t.getWordAtPosition(i);if(!(null==o?void 0:o.word.startsWith("/")))return null;if(!VC.shouldRender(o.word))return null;const a=`hover-${i.lineNumber}-${i.column}`;return s&&clearTimeout(s),s=setTimeout(()=>{const e=document.querySelector(`[data-id="${a}"]`);e&&(null==r||r.unmount(),r=(0,f.createRoot)(e),r.render((0,h.jsxs)(h.Fragment,{children:[n&&(0,h.jsx)(n,{position:i,word:o}),(0,h.jsx)(VC,{path:o.word})]})))},500),{range:new yt.Range(i.lineNumber,o.startColumn,i.lineNumber,o.endColumn),contents:[{value:`<div data-id="${a}">Loading...</div>`,supportHtml:!0}]}}}),t.addAction({..._e,run:o}),t,e])},t[9]=n,t[10]=g,t[11]=o,t[12]=i,t[13]=c,t[14]=b):b=t[14],t[15]!==g?(E=[g],t[15]=g,t[16]=E):E=t[16],(0,d.useEffect)(b,E),t[17]!==r.className?(T=dn("result-window",r.className),t[17]=r.className,t[18]=T):T=t[18],t[19]!==r||t[20]!==T?(w=(0,h.jsx)("section",{ref:p,"aria-label":"Result Window","aria-live":"polite","aria-atomic":"true",tabIndex:0,onKeyDown:Rv,...r,className:T}),t[19]=r,t[20]=T,t[21]=w):w=t[21],w};function BC(e){return e.monaco}const $C=e=>{const t=(0,m.c)(4),{prettify:n,copy:r,merge:i}=e;let o;return t[0]!==r||t[1]!==i||t[2]!==n?(o=(0,h.jsxs)(h.Fragment,{children:[n,i,r]}),t[0]=r,t[1]=i,t[2]=n,t[3]=o):o=t[3],o},qC=(0,h.jsxs)("a",{className:"graphiql-logo-link",href:"https://github.com/graphql/graphiql",target:"_blank",rel:"noreferrer",children:["Graph",(0,h.jsx)("em",{children:"i"}),"QL"]});var zC="Dialog",[GC,QC]=df(zC),[HC,WC]=GC(zC),YC=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:o,modal:s=!0}=e,a=d.useRef(null),l=d.useRef(null),[u,c]=oh({prop:r,defaultProp:i??!1,onChange:o,caller:zC});return(0,h.jsx)(HC,{scope:t,triggerRef:a,contentRef:l,contentId:Af(),titleId:Af(),descriptionId:Af(),open:u,onOpenChange:c,onOpenToggle:d.useCallback(()=>c(e=>!e),[c]),modal:s,children:n})};YC.displayName=zC;var XC="DialogTrigger",JC=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=WC(XC,n),o=cf(t,i.triggerRef);return(0,h.jsx)(yf.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":v_(i.open),...r,ref:o,onClick:af(e.onClick,i.onOpenToggle)})});JC.displayName=XC;var ZC="DialogPortal",[e_,t_]=GC(ZC,{forceMount:void 0}),n_=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:i}=e,o=WC(ZC,t);return(0,h.jsx)(e_,{scope:t,forceMount:n,children:d.Children.map(r,e=>(0,h.jsx)(nh,{present:n||o.open,children:(0,h.jsx)(th,{asChild:!0,container:i,children:e})}))})};n_.displayName=ZC;var r_="DialogOverlay",i_=d.forwardRef((e,t)=>{const n=t_(r_,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=WC(r_,e.__scopeDialog);return o.modal?(0,h.jsx)(nh,{present:r||o.open,children:(0,h.jsx)(s_,{...i,ref:t})}):null});i_.displayName=r_;var o_=ff("DialogOverlay.RemoveScroll"),s_=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=WC(r_,n);return(0,h.jsx)(Ng,{as:o_,allowPinchZoom:!0,shards:[i.contentRef],children:(0,h.jsx)(yf.div,{"data-state":v_(i.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),a_="DialogContent",l_=d.forwardRef((e,t)=>{const n=t_(a_,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=WC(a_,e.__scopeDialog);return(0,h.jsx)(nh,{present:r||o.open,children:o.modal?(0,h.jsx)(u_,{...i,ref:t}):(0,h.jsx)(c_,{...i,ref:t})})});l_.displayName=a_;var u_=d.forwardRef((e,t)=>{const n=WC(a_,e.__scopeDialog),r=d.useRef(null),i=cf(t,n.contentRef,r);return d.useEffect(()=>{const e=r.current;if(e)return $m(e)},[]),(0,h.jsx)(d_,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:af(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:af(e.onPointerDownOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:af(e.onFocusOutside,e=>e.preventDefault())})}),c_=d.forwardRef((e,t)=>{const n=WC(a_,e.__scopeDialog),r=d.useRef(!1),i=d.useRef(!1);return(0,h.jsx)(d_,{...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,s=n.triggerRef.current?.contains(o);s&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})}),d_=d.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,...s}=e,a=WC(a_,n),l=d.useRef(null),u=cf(t,l);return lm(),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(fm,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:o,children:(0,h.jsx)(kf,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":v_(a.open),...s,ref:u,onDismiss:()=>a.onOpenChange(!1)})}),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(w_,{titleId:a.titleId}),(0,h.jsx)(k_,{contentRef:l,descriptionId:a.descriptionId})]})]})}),p_="DialogTitle",f_=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=WC(p_,n);return(0,h.jsx)(yf.h2,{id:i.titleId,...r,ref:t})});f_.displayName=p_;var h_="DialogDescription",m_=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=WC(h_,n);return(0,h.jsx)(yf.p,{id:i.descriptionId,...r,ref:t})});m_.displayName=h_;var g_="DialogClose",y_=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=WC(g_,n);return(0,h.jsx)(yf.button,{type:"button",...r,ref:t,onClick:af(e.onClick,()=>i.onOpenChange(!1))})});function v_(e){return e?"open":"closed"}y_.displayName=g_;var b_="DialogTitleWarning",[E_,T_]=function(e,t){const n=d.createContext(t),r=e=>{const{children:t,...r}=e,i=d.useMemo(()=>r,Object.values(r));return(0,h.jsx)(n.Provider,{value:i,children:t})};return r.displayName=e+"Provider",[r,function(r){const i=d.useContext(n);if(i)return i;if(void 0!==t)return t;throw new Error(`\`${r}\` must be used within \`${e}\``)}]}(b_,{contentName:a_,titleName:p_,docsSlug:"dialog"}),w_=({titleId:e})=>{const t=T_(b_),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 d.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},k_=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${T_("DialogDescriptionWarning").contentName}}.`;return d.useEffect(()=>{const r=e.current?.getAttribute("aria-describedby");t&&r&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},S_=YC,x_=JC,C_=n_,__=i_,N_=l_,D_=f_,A_=m_,L_=y_,I_=Symbol.for("react.lazy"),O_=p[" use ".trim().toString()];function R_(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===I_&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t;var t}function F_(e){const t=d.forwardRef((e,t)=>{let{children:n,...r}=e;if(R_(n)&&"function"==typeof O_&&(n=O_(n._payload)),d.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)=>{const t=o(...e);return i(...e),t}: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!==d.Fragment&&(i.ref=t?uf(t,e):e),d.cloneElement(n,i)}return d.Children.count(n)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var P_=Symbol("radix.slottable");function M_(e){return d.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===P_}var j_=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{const n=function(e){const t=F_(e),n=d.forwardRef((e,n)=>{let{children:r,...i}=e;R_(r)&&"function"==typeof O_&&(r=O_(r._payload));const o=d.Children.toArray(r),s=o.find(M_);if(s){const e=s.props.children,r=o.map(t=>t===s?d.Children.count(e)>1?d.Children.only(null):d.isValidElement(e)?e.props.children:null:t);return(0,h.jsx)(t,{...i,ref:n,children:d.isValidElement(e)?d.cloneElement(e,void 0,r):null})}return(0,h.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}(`Primitive.${t}`),r=d.forwardRef((e,r)=>{const{asChild:i,...o}=e,s=i?n:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,h.jsx)(s,{...o,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),V_=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),K_=d.forwardRef((e,t)=>(0,h.jsx)(j_.span,{...e,ref:t,style:{...V_,...e.style}}));K_.displayName="VisuallyHidden";var U_=K_;const B_=(0,d.forwardRef)((e,t)=>{const n=(0,m.c)(8);let r,i,o,s;return n[0]!==e.className?(r=dn("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,h.jsx)(U_,{children:"Close dialog"}),o=(0,h.jsx)(Ot,{}),n[2]=i,n[3]=o):(i=n[2],o=n[3]),n[4]!==e||n[5]!==t||n[6]!==r?(s=(0,h.jsx)(L_,{asChild:!0,children:(0,h.jsxs)(_o,{...e,ref:t,type:"button",className:r,children:[i,o]})}),n[4]=e,n[5]=t,n[6]=r,n[7]=s):s=n[7],s});B_.displayName="Dialog.Close";const $_=Object.assign(e=>{const t=(0,m.c)(9);let n,r,i,o,s;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,h.jsx)(__,{className:"graphiql-dialog-overlay"}),t[3]=i):i=t[3],t[4]!==n?(o=(0,h.jsxs)(C_,{children:[i,(0,h.jsx)(N_,{className:"graphiql-dialog",children:n})]}),t[4]=n,t[5]=o):o=t[5],t[6]!==r||t[7]!==o?(s=(0,h.jsx)(S_,{...r,children:o}),t[6]=r,t[7]=o,t[8]=s):s=t[8],s},{Close:B_,Title:D_,Trigger:x_,Description:A_}),q_=(0,d.forwardRef)((e,t)=>{const n=(0,m.c)(6);let r,i;return n[0]!==e.className?(r=dn("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,h.jsx)("div",{...e,ref:t,className:r}),n[2]=e,n[3]=t,n[4]=r,n[5]=i):i=n[5],i});q_.displayName="ButtonGroup";const z_=Object.entries({"Execute query":me(ge.runQuery.key),"Open the Command Palette (you must have focus in the editor)":"F1","Prettify editors":ge.prettify.key,"Copy query":ge.copyQuery.key,"Re-fetch schema using introspection":ge.refetchSchema.key,"Search in documentation":me(ge.searchInDocs.key),"Search in editor":me(ge.searchInEditor.key),"Merge fragments definitions into operation definition":ge.mergeFragments.key}),G_=()=>{const e=(0,m.c)(5);let t,n,r,i,o;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,h.jsxs)("table",{className:"graphiql-table",children:[(0,h.jsx)("thead",{children:(0,h.jsxs)("tr",{children:[(0,h.jsx)("th",{children:"Short Key"}),(0,h.jsx)("th",{children:"Function"})]})}),(0,h.jsx)("tbody",{children:z_.map(H_)})]}),e[0]=t):t=e[0],e[1]===Symbol.for("react.memo_cache_sentinel")?(n=(0,h.jsx)("em",{children:"i"}),e[1]=n):n=e[1],e[2]===Symbol.for("react.memo_cache_sentinel")?(r=(0,h.jsx)("a",{href:"https://code.visualstudio.com/docs/reference/default-keybindings",target:"_blank",rel:"noreferrer",children:"Monaco editor shortcuts"}),e[2]=r):r=e[2],e[3]===Symbol.for("react.memo_cache_sentinel")?(i=(0,h.jsx)("a",{href:"https://code.visualstudio.com/shortcuts/keyboard-shortcuts-macos.pdf",target:"_blank",rel:"noreferrer",children:"macOS"}),e[3]=i):i=e[3],e[4]===Symbol.for("react.memo_cache_sentinel")?(o=(0,h.jsxs)("div",{children:[t,(0,h.jsxs)("p",{children:["This Graph",n,"QL editor uses"," ",r,", with keybindings similar to VS Code. See the full list of shortcuts for"," ",i," ","or"," ",(0,h.jsx)("a",{href:"https://code.visualstudio.com/shortcuts/keyboard-shortcuts-windows.pdf",target:"_blank",rel:"noreferrer",children:"Windows"}),"."]})]}),e[4]=o):o=e[4],o};function Q_(e,t,n){return(0,h.jsxs)(d.Fragment,{children:[(0,h.jsx)("code",{className:"graphiql-key",children:e}),t!==n.length-1&&" + "]},e)}function H_(e){const[t,n]=e;return(0,h.jsxs)("tr",{children:[(0,h.jsx)("td",{children:n.split("-").map(Q_)}),(0,h.jsx)("td",{children:t})]},t)}const W_={refetchSchema:`Re-fetch GraphQL schema (${ge.refetchSchema.key})`,shortCutDialog:"Open short keys dialog",settingsDialogs:"Open settings dialog"},Y_=["light","dark","system"],X_=e=>{const t=(0,m.c)(72),{forcedTheme:n,showPersistHeadersSettings:r,setHiddenElement:i}=e,o=n&&Y_.includes(n)?n:void 0,{setShouldPersistHeaders:s,introspect:a,setVisiblePlugin:l,setTheme:u}=Ct();let c;t[0]===Symbol.for("react.memo_cache_sentinel")?(c=ln("shouldPersistHeaders","isIntrospecting","visiblePlugin","plugins","theme","storage"),t[0]=c):c=t[0];const{shouldPersistHeaders:p,isIntrospecting:f,visiblePlugin:g,plugins:y,theme:v,storage:b}=xt(c);let E,T;t[1]!==o||t[2]!==u?(E=()=>{"system"===o?u(null):"light"!==o&&"dark"!==o||u(o)},T=[o,u],t[1]=o,t[2]=u,t[3]=E,t[4]=T):(E=t[3],T=t[4]),(0,d.useEffect)(E,T);const[w,k]=(0,d.useState)(null),[S,x]=(0,d.useState)();let C,_,N;t[5]===Symbol.for("react.memo_cache_sentinel")?(C=()=>{const e=function(e){(he?e.metaKey:e.ctrlKey)&&","===e.key&&(e.preventDefault(),k(J_))};return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}},_=[],t[5]=C,t[6]=_):(C=t[5],_=t[6]),(0,d.useEffect)(C,_),t[7]===Symbol.for("react.memo_cache_sentinel")?(N=function(e){e||k(null)},t[7]=N):N=t[7];const D=N;let A;t[8]===Symbol.for("react.memo_cache_sentinel")?(A=function(e){e||(k(null),x(void 0))},t[8]=A):A=t[8];const L=A;let I;t[9]!==b?(I=function(){try{b.clear(),x("success")}catch{x("error")}},t[9]=b,t[10]=I):I=t[10];const O=I;let R;t[11]!==s?(R=e=>{s("true"===e.currentTarget.dataset.value)},t[11]=s,t[12]=R):R=t[12];const F=R;let P;t[13]!==u?(P=e=>{const t=e.currentTarget.dataset.theme;u(t||null)},t[13]=u,t[14]=P):P=t[14];const M=P;let j;t[15]===Symbol.for("react.memo_cache_sentinel")?(j=e=>{k(e.currentTarget.dataset.value)},t[15]=j):j=t[15];const V=j;let K;t[16]!==y||t[17]!==i||t[18]!==l||t[19]!==g?(K=e=>{const t=Number(e.currentTarget.dataset.index),n=y.find((e,n)=>t===n);n===g?(l(null),i("first")):(l(n),i(null))},t[16]=y,t[17]=i,t[18]=l,t[19]=g,t[20]=K):K=t[20];const U=K;let B,$;if(t[21]!==U||t[22]!==y||t[23]!==g){let e;t[25]!==U||t[26]!==g?(e=(e,t)=>{const n=e===g,r=`${n?"Hide":"Show"} ${e.title}`;return(0,h.jsx)(Bh,{label:r,children:(0,h.jsx)(_o,{type:"button",className:dn(n&&"active"),onClick:U,"data-index":t,"aria-label":r,children:(0,h.jsx)(e.icon,{"aria-hidden":"true"})})},e.title)},t[25]=U,t[26]=g,t[27]=e):e=t[27],B=y.map(e),t[21]=U,t[22]=y,t[23]=g,t[24]=B}else B=t[24];t[28]===Symbol.for("react.memo_cache_sentinel")?($={marginTop:"auto"},t[28]=$):$=t[28];const q=f&&"graphiql-spin";let z,G,Q,H,W;t[29]!==q?(z=dn(q),t[29]=q,t[30]=z):z=t[30],t[31]!==z?(G=(0,h.jsx)(Jt,{className:z,"aria-hidden":"true"}),t[31]=z,t[32]=G):G=t[32],t[33]!==a||t[34]!==f||t[35]!==G?(Q=(0,h.jsx)(Bh,{label:W_.refetchSchema,children:(0,h.jsx)(_o,{type:"button",disabled:f,onClick:a,"aria-label":W_.refetchSchema,style:$,children:G})}),t[33]=a,t[34]=f,t[35]=G,t[36]=Q):Q=t[36],t[37]===Symbol.for("react.memo_cache_sentinel")?(H=(0,h.jsx)(Bh,{label:W_.shortCutDialog,children:(0,h.jsx)(_o,{type:"button","data-value":"short-keys",onClick:V,"aria-label":W_.shortCutDialog,children:(0,h.jsx)(zt,{"aria-hidden":"true"})})}),t[37]=H):H=t[37],t[38]===Symbol.for("react.memo_cache_sentinel")?(W=(0,h.jsx)(Bh,{label:W_.settingsDialogs,children:(0,h.jsx)(_o,{type:"button","data-value":"settings",onClick:V,"aria-label":W_.settingsDialogs,children:(0,h.jsx)(en,{"aria-hidden":"true"})})}),t[38]=W):W=t[38];const Y="short-keys"===w;let X,J,Z,ee;t[39]===Symbol.for("react.memo_cache_sentinel")?(X=(0,h.jsx)($_.Title,{className:"graphiql-dialog-title",children:"Short Keys"}),t[39]=X):X=t[39],t[40]===Symbol.for("react.memo_cache_sentinel")?(J=(0,h.jsxs)("div",{className:"graphiql-dialog-header",children:[X,(0,h.jsx)(U_,{children:(0,h.jsx)($_.Description,{children:"This modal provides a list of available keyboard shortcuts and their functions."})}),(0,h.jsx)($_.Close,{})]}),t[40]=J):J=t[40],t[41]===Symbol.for("react.memo_cache_sentinel")?(Z=(0,h.jsx)("div",{className:"graphiql-dialog-section",children:(0,h.jsx)(G_,{})}),t[41]=Z):Z=t[41],t[42]!==Y?(ee=(0,h.jsxs)($_,{open:Y,onOpenChange:D,children:[J,Z]}),t[42]=Y,t[43]=ee):ee=t[43];const te="settings"===w;let ne,re,ie,oe,se;t[44]===Symbol.for("react.memo_cache_sentinel")?(ne=(0,h.jsx)($_.Title,{className:"graphiql-dialog-title",children:"Settings"}),t[44]=ne):ne=t[44],t[45]===Symbol.for("react.memo_cache_sentinel")?(re=(0,h.jsxs)("div",{className:"graphiql-dialog-header",children:[ne,(0,h.jsx)(U_,{children:(0,h.jsx)($_.Description,{children:"This modal lets you adjust header persistence, interface theme, and clear local storage."})}),(0,h.jsx)($_.Close,{})]}),t[45]=re):re=t[45],t[46]!==F||t[47]!==p||t[48]!==r?(ie=r?(0,h.jsxs)("div",{className:"graphiql-dialog-section",children:[(0,h.jsxs)("div",{children:[(0,h.jsx)("div",{className:"graphiql-dialog-section-title",children:"Persist headers"}),(0,h.jsxs)("div",{className:"graphiql-dialog-section-caption",children:["Save headers upon reloading."," ",(0,h.jsx)("span",{className:"graphiql-warning-text",children:"Only enable if you trust this device."})]})]}),(0,h.jsxs)(q_,{children:[(0,h.jsx)(No,{type:"button",id:"enable-persist-headers",className:dn(p&&"active"),"data-value":"true",onClick:F,children:"On"}),(0,h.jsx)(No,{type:"button",id:"disable-persist-headers",className:dn(!p&&"active"),onClick:F,children:"Off"})]})]}):null,t[46]=F,t[47]=p,t[48]=r,t[49]=ie):ie=t[49],t[50]!==o||t[51]!==M||t[52]!==v?(oe=!o&&(0,h.jsxs)("div",{className:"graphiql-dialog-section",children:[(0,h.jsxs)("div",{children:[(0,h.jsx)("div",{className:"graphiql-dialog-section-title",children:"Theme"}),(0,h.jsx)("div",{className:"graphiql-dialog-section-caption",children:"Adjust how the interface appears."})]}),(0,h.jsxs)(q_,{children:[(0,h.jsx)(No,{type:"button",className:dn(null===v&&"active"),onClick:M,children:"System"}),(0,h.jsx)(No,{type:"button",className:dn("light"===v&&"active"),"data-theme":"light",onClick:M,children:"Light"}),(0,h.jsx)(No,{type:"button",className:dn("dark"===v&&"active"),"data-theme":"dark",onClick:M,children:"Dark"})]})]}),t[50]=o,t[51]=M,t[52]=v,t[53]=oe):oe=t[53],t[54]===Symbol.for("react.memo_cache_sentinel")?(se=(0,h.jsxs)("div",{children:[(0,h.jsx)("div",{className:"graphiql-dialog-section-title",children:"Clear storage"}),(0,h.jsx)("div",{className:"graphiql-dialog-section-caption",children:"Remove all locally stored data and start fresh."})]}),t[54]=se):se=t[54];const ae="success"===S;let le,ue,ce,de;return t[55]!==S?(le={success:"Cleared data",error:"Failed"}[S]||"Clear data",t[55]=S,t[56]=le):le=t[56],t[57]!==S||t[58]!==O||t[59]!==ae||t[60]!==le?(ue=(0,h.jsxs)("div",{className:"graphiql-dialog-section",children:[se,(0,h.jsx)(No,{type:"button",state:S,disabled:ae,onClick:O,children:le})]}),t[57]=S,t[58]=O,t[59]=ae,t[60]=le,t[61]=ue):ue=t[61],t[62]!==te||t[63]!==ie||t[64]!==oe||t[65]!==ue?(ce=(0,h.jsxs)($_,{open:te,onOpenChange:L,children:[re,ie,oe,ue]}),t[62]=te,t[63]=ie,t[64]=oe,t[65]=ue,t[66]=ce):ce=t[66],t[67]!==B||t[68]!==Q||t[69]!==ee||t[70]!==ce?(de=(0,h.jsxs)("div",{className:"graphiql-sidebar",children:[B,Q,H,W,ee,ce]}),t[67]=B,t[68]=Q,t[69]=ee,t[70]=ce,t[71]=de):de=t[71],de};function J_(e){return"settings"===e?null:"settings"}const Z_="graphiql-session-tab-",eN="New tab",tN=e=>{const t=(0,m.c)(147),{forcedTheme:n,isHeadersEditorEnabled:r,defaultEditorToolsVisibility:i,children:o,confirmCloseTab:s,className:a,onEditQuery:l,onEditVariables:u,onEditHeaders:c,responseTooltip:p,showPersistHeadersSettings:f}=e,g=void 0===r||r,{addTab:y,moveTab:v,closeTab:b,changeTab:E,setVisiblePlugin:T}=Ct();let w;t[0]===Symbol.for("react.memo_cache_sentinel")?(w=ln("initialVariables","initialHeaders","tabs","activeTabIndex","isFetching","visiblePlugin"),t[0]=w):w=t[0];const{initialVariables:k,initialHeaders:S,tabs:x,activeTabIndex:C,isFetching:_,visiblePlugin:N}=xt(w),D=We(rN),A=null==N?void 0:N.content,L=N?void 0:"first";let I;t[1]!==T||t[2]!==L?(I={defaultSizeRelation:.3333333333333333,direction:"horizontal",initiallyHidden:L,onHiddenElementChange(e){"first"===e&&T(null)},sizeThresholdSecond:200,storageKey:"docExplorerFlex"},t[1]=T,t[2]=L,t[3]=I):I=t[3];const O=Nv(I);let R;t[4]===Symbol.for("react.memo_cache_sentinel")?(R={direction:"horizontal",storageKey:"editorFlex"},t[4]=R):R=t[4];const F=Nv(R);let P,M,j;t[5]!==S||t[6]!==k?(P=e=>{if("variables"!==e&&"headers"!==e)return"boolean"==typeof e?e?void 0:"second":k||S?void 0:"second"},t[5]=S,t[6]=k,t[7]=P):P=t[7],t[8]!==i||t[9]!==P?(M=P(i),t[8]=i,t[9]=P,t[10]=M):M=t[10],t[11]!==M?(j={defaultSizeRelation:3,direction:"vertical",initiallyHidden:M,sizeThresholdSecond:60,storageKey:"secondaryEditorFlex"},t[11]=M,t[12]=j):j=t[12];const V=Nv(j);let K;t[13]!==i||t[14]!==S||t[15]!==k||t[16]!==g?(K=()=>"variables"===i||"headers"===i?i:!k&&S&&g?"headers":"variables",t[13]=i,t[14]=S,t[15]=k,t[16]=g,t[17]=K):K=t[17];const[U,B]=(0,d.useState)(K);let $;if(t[18]!==o){let e,n;t[20]===Symbol.for("react.memo_cache_sentinel")?(e=(0,h.jsx)(nN.Logo,{}),n=(0,h.jsx)(nN.Toolbar,{}),t[20]=e,t[21]=n):(e=t[20],n=t[21]),$=d.Children.toArray(o).reduce(iN,{logo:e,toolbar:n,children:[]}),t[18]=o,t[19]=$}else $=t[19];const{logo:q,toolbar:z,footer:G,children:Q}=$;let H;t[22]!==O?(H=function(){"first"===O.hiddenElement&&O.setHiddenElement(null)},t[22]=O,t[23]=H):H=t[23];const W=H;let Y;t[24]!==V?(Y=e=>{"second"===V.hiddenElement&&V.setHiddenElement(null);const t=e.currentTarget.dataset.name;B(t)},t[24]=V,t[25]=Y):Y=t[25];const X=Y;let J;t[26]!==V?(J=()=>{V.setHiddenElement("second"===V.hiddenElement?null:"second")},t[26]=V,t[27]=J):J=t[27];const Z=J;let ee;t[28]!==b||t[29]!==s?(ee=async e=>{const t=e.currentTarget.previousSibling,n=Number(t.id.replace(Z_,""));(!s||await s(n))&&b(n)},t[28]=b,t[29]=s,t[30]=ee):ee=t[30];const te=ee;let ne;t[31]!==E?(ne=e=>{const t=Number(e.currentTarget.id.replace(Z_,""));E(t)},t[31]=E,t[32]=ne):ne=t[32];const re=ne,ie=("second"===V.hiddenElement?"Show":"Hide")+" editor tools",oe="second"===V.hiddenElement?It:At,se=F.firstRef;let ae,le,ue,ce;t[33]!==D||t[34]!==W||t[35]!==l?(ae=D?(0,h.jsx)(jv,{onClickReference:W,onEdit:l}):(0,h.jsx)(pn,{}),t[33]=D,t[34]=W,t[35]=l,t[36]=ae):ae=t[36],t[37]===Symbol.for("react.memo_cache_sentinel")?(le=(0,h.jsx)(Vv,{}),t[37]=le):le=t[37],t[38]!==z?(ue=(0,h.jsxs)("div",{className:"graphiql-toolbar",role:"toolbar","aria-label":"Editor Commands",children:[le,z]}),t[38]=z,t[39]=ue):ue=t[39],t[40]!==V.firstRef||t[41]!==ae||t[42]!==ue?(ce=(0,h.jsxs)("section",{className:"graphiql-query-editor","aria-label":"Operation Editor",ref:V.firstRef,children:[ae,ue]}),t[40]=V.firstRef,t[41]=ae,t[42]=ue,t[43]=ce):ce=t[43];const de=V.dragBarRef,pe="variables"===U&&"second"!==V.hiddenElement&&"active";let fe,he,me,ge,ye,ve,be;t[44]!==pe?(fe=dn(pe),t[44]=pe,t[45]=fe):fe=t[45],t[46]!==X||t[47]!==fe?(he=(0,h.jsx)(_o,{type:"button",className:fe,onClick:X,"data-name":"variables",children:"Variables"}),t[46]=X,t[47]=fe,t[48]=he):he=t[48],t[49]!==U||t[50]!==V.hiddenElement||t[51]!==X||t[52]!==g?(me=g&&(0,h.jsx)(_o,{type:"button",className:dn("headers"===U&&"second"!==V.hiddenElement&&"active"),onClick:X,"data-name":"headers",children:"Headers"}),t[49]=U,t[50]=V.hiddenElement,t[51]=X,t[52]=g,t[53]=me):me=t[53],t[54]!==oe?(ge=(0,h.jsx)(oe,{className:"graphiql-chevron-icon","aria-hidden":"true"}),t[54]=oe,t[55]=ge):ge=t[55],t[56]!==ie||t[57]!==ge||t[58]!==Z?(ye=(0,h.jsx)(_o,{type:"button",onClick:Z,"aria-label":ie,className:"graphiql-toggle-editor-tools",children:ge}),t[56]=ie,t[57]=ge,t[58]=Z,t[59]=ye):ye=t[59],t[60]!==ie||t[61]!==ye?(ve=(0,h.jsx)(Bh,{label:ie,children:ye}),t[60]=ie,t[61]=ye,t[62]=ve):ve=t[62],t[63]!==V.dragBarRef||t[64]!==he||t[65]!==me||t[66]!==ve?(be=(0,h.jsxs)("div",{ref:de,className:"graphiql-editor-tools",children:[he,me,ve]}),t[63]=V.dragBarRef,t[64]=he,t[65]=me,t[66]=ve,t[67]=be):be=t[67];const Ee="variables"===U?"Variables":"Headers",Te="variables"===U?"":"hidden";let we,ke,Se,xe;t[68]!==u||t[69]!==Te?(we=(0,h.jsx)(Uv,{className:Te,onEdit:u}),t[68]=u,t[69]=Te,t[70]=we):we=t[70],t[71]!==U||t[72]!==g||t[73]!==c?(ke=g&&(0,h.jsx)($v,{className:"headers"===U?"":"hidden",onEdit:c}),t[71]=U,t[72]=g,t[73]=c,t[74]=ke):ke=t[74],t[75]!==V.secondRef||t[76]!==Ee||t[77]!==we||t[78]!==ke?(Se=(0,h.jsxs)("section",{className:"graphiql-editor-tool","aria-label":Ee,ref:V.secondRef,children:[we,ke]}),t[75]=V.secondRef,t[76]=Ee,t[77]=we,t[78]=ke,t[79]=Se):Se=t[79],t[80]!==F.firstRef||t[81]!==ce||t[82]!==be||t[83]!==Se?(xe=(0,h.jsxs)("div",{className:"graphiql-editors",ref:se,children:[ce,be,Se]}),t[80]=F.firstRef,t[81]=ce,t[82]=be,t[83]=Se,t[84]=xe):xe=t[84];const Ce=xe,_e=(0,d.useRef)(null);let Ne,De,Ae,Le,Ie,Oe;t[85]!==a?(Ne=dn("graphiql-container",a),t[85]=a,t[86]=Ne):Ne=t[86],t[87]!==n||t[88]!==O.setHiddenElement||t[89]!==f?(De=(0,h.jsx)(X_,{forcedTheme:n,showPersistHeadersSettings:f,setHiddenElement:O.setHiddenElement}),t[87]=n,t[88]=O.setHiddenElement,t[89]=f,t[90]=De):De=t[90],t[91]===Symbol.for("react.memo_cache_sentinel")?(Ae={minWidth:"200px"},t[91]=Ae):Ae=t[91],t[92]!==A?(Le=A&&(0,h.jsx)(A,{}),t[92]=A,t[93]=Le):Le=t[93],t[94]!==O.firstRef||t[95]!==Le?(Ie=(0,h.jsx)("div",{ref:O.firstRef,className:"graphiql-plugin",style:Ae,children:Le}),t[94]=O.firstRef,t[95]=Le,t[96]=Ie):Ie=t[96],t[97]!==O.dragBarRef||t[98]!==N?(Oe=N&&(0,h.jsx)("div",{className:"graphiql-horizontal-drag-bar",ref:O.dragBarRef}),t[97]=O.dragBarRef,t[98]=N,t[99]=Oe):Oe=t[99];const Re=O.secondRef;let Fe,Pe,Me,je,Ve;t[100]!==C||t[101]!==re||t[102]!==te||t[103]!==x?(Fe=x.map((e,t,n)=>(0,h.jsxs)(MC,{dragConstraints:_e,value:e,isActive:t===C,children:[(0,h.jsx)(MC.Button,{"aria-controls":"graphiql-session",id:`graphiql-session-tab-${t}`,title:e.title,onClick:re,children:e.title}),n.length>1&&(0,h.jsx)(MC.Close,{onClick:te})]},e.id)),t[100]=C,t[101]=re,t[102]=te,t[103]=x,t[104]=Fe):Fe=t[104],t[105]!==v||t[106]!==Fe||t[107]!==x?(Pe=(0,h.jsx)(jC,{ref:_e,values:x,onReorder:v,"aria-label":"Select active operation",className:"no-scrollbar",children:Fe}),t[105]=v,t[106]=Fe,t[107]=x,t[108]=Pe):Pe=t[108],t[109]===Symbol.for("react.memo_cache_sentinel")?(Me=(0,h.jsx)(Yt,{"aria-hidden":"true"}),t[109]=Me):Me=t[109],t[110]!==y?(je=(0,h.jsx)(Bh,{label:eN,children:(0,h.jsx)(_o,{type:"button",className:"graphiql-tab-add",onClick:y,"aria-label":eN,children:Me})}),t[110]=y,t[111]=je):je=t[111],t[112]!==q||t[113]!==Pe||t[114]!==je?(Ve=(0,h.jsxs)("div",{className:"graphiql-session-header",children:[Pe,je,q]}),t[112]=q,t[113]=Pe,t[114]=je,t[115]=Ve):Ve=t[115];const Ke=`${Z_}${C}`;let Ue,Be,$e,qe,ze,Ge,Qe,He,Ye;return t[116]!==F.dragBarRef?(Ue=(0,h.jsx)("div",{className:"graphiql-horizontal-drag-bar",ref:F.dragBarRef}),t[116]=F.dragBarRef,t[117]=Ue):Ue=t[117],t[118]!==_?(Be=_&&(0,h.jsx)(pn,{}),t[118]=_,t[119]=Be):Be=t[119],t[120]!==p?($e=(0,h.jsx)(UC,{responseTooltip:p}),t[120]=p,t[121]=$e):$e=t[121],t[122]!==F.secondRef||t[123]!==G||t[124]!==Be||t[125]!==$e?(qe=(0,h.jsxs)("div",{className:"graphiql-response",ref:F.secondRef,children:[Be,$e,G]}),t[122]=F.secondRef,t[123]=G,t[124]=Be,t[125]=$e,t[126]=qe):qe=t[126],t[127]!==Ce||t[128]!==Ke||t[129]!==Ue||t[130]!==qe?(ze=(0,h.jsxs)("div",{role:"tabpanel",id:"graphiql-session","aria-labelledby":Ke,children:[Ce,Ue,qe]}),t[127]=Ce,t[128]=Ke,t[129]=Ue,t[130]=qe,t[131]=ze):ze=t[131],t[132]!==O.secondRef||t[133]!==Ve||t[134]!==ze?(Ge=(0,h.jsxs)("div",{ref:Re,className:"graphiql-sessions",children:[Ve,ze]}),t[132]=O.secondRef,t[133]=Ve,t[134]=ze,t[135]=Ge):Ge=t[135],t[136]!==Ie||t[137]!==Oe||t[138]!==Ge?(Qe=(0,h.jsxs)("div",{className:"graphiql-main",children:[Ie,Oe,Ge]}),t[136]=Ie,t[137]=Oe,t[138]=Ge,t[139]=Qe):Qe=t[139],t[140]!==Ne||t[141]!==De||t[142]!==Qe?(He=(0,h.jsxs)("div",{className:Ne,children:[De,Qe]}),t[140]=Ne,t[141]=De,t[142]=Qe,t[143]=He):He=t[143],t[144]!==Q||t[145]!==He?(Ye=(0,h.jsxs)(Bh.Provider,{children:[He,Q]}),t[144]=Q,t[145]=He,t[146]=Ye):Ye=t[146],Ye},nN=Object.assign(e=>{var t,n;const r=(0,m.c)(54);let i,o,s,a,l,u,c,p,f,g,y,v,b,E,T,w;r[0]!==e?(({maxHistoryLength:c,plugins:E,referencePlugin:T,onEditQuery:f,onEditVariables:g,onEditHeaders:p,responseTooltip:v,defaultEditorToolsVisibility:a,isHeadersEditorEnabled:u,showPersistHeadersSettings:b,forcedTheme:l,confirmCloseTab:s,className:o,children:i,...y}=e),r[0]=e,r[1]=i,r[2]=o,r[3]=s,r[4]=a,r[5]=l,r[6]=u,r[7]=c,r[8]=p,r[9]=f,r[10]=g,r[11]=y,r[12]=v,r[13]=b,r[14]=E,r[15]=T):(i=r[1],o=r[2],s=r[3],a=r[4],l=r[5],u=r[6],c=r[7],p=r[8],f=r[9],g=r[10],y=r[11],v=r[12],b=r[13],E=r[14],T=r[15]),r[16]!==E?(w=void 0===E?[nm]:E,r[16]=E,r[17]=w):w=r[17];const k=w,S=void 0===T?jp:T;if(null==(t=y.toolbar)?void 0:t.additionalContent)throw new TypeError("The `toolbar.additionalContent` prop has been removed. Use render props on `GraphiQL.Toolbar` component instead.");if(null==(n=y.toolbar)?void 0:n.additionalComponent)throw new TypeError("The `toolbar.additionalComponent` prop has been removed. Use render props on `GraphiQL.Toolbar` component instead.");if(y.keyMap)throw new TypeError("`keyMap` was removed. To use Vim or Emacs keybindings in Monaco, you can use community plugins. Monaco Vim: https://github.com/brijeshb42/monaco-vim. Monaco Emacs: https://github.com/aioutecism/monaco-emacs");if(y.readOnly)throw new TypeError("The `readOnly` prop has been removed.");const x=b??!1!==y.shouldPersistHeaders;let C;r[18]!==o||r[19]!==s||r[20]!==a||r[21]!==l||r[22]!==u||r[23]!==p||r[24]!==f||r[25]!==g||r[26]!==v||r[27]!==x?(C={showPersistHeadersSettings:x,onEditQuery:f,onEditVariables:g,onEditHeaders:p,responseTooltip:v,defaultEditorToolsVisibility:a,isHeadersEditorEnabled:u,forcedTheme:l,confirmCloseTab:s,className:o},r[18]=o,r[19]=s,r[20]=a,r[21]=l,r[22]=u,r[23]=p,r[24]=f,r[25]=g,r[26]=v,r[27]=x,r[28]=C):C=r[28];const _=C;let N;r[29]!==k?(N=k.includes(nm),r[29]=k,r[30]=N):N=r[30];const D=N,A=D?qh:d.Fragment,L=S===jp?Up:d.Fragment;let I,O,R,F,P,M,j;return r[31]!==S?(I=S?[S]:[],r[31]=S,r[32]=I):I=r[32],r[33]!==k||r[34]!==I?(O=[...I,...k],r[33]=k,r[34]=I,r[35]=O):O=r[35],r[36]!==D||r[37]!==c?(R=D&&{maxHistoryLength:c},r[36]=D,r[37]=c,r[38]=R):R=r[38],r[39]!==i||r[40]!==_?(F=(0,h.jsx)(tN,{..._,children:i}),r[39]=i,r[40]=_,r[41]=F):F=r[41],r[42]!==L||r[43]!==F?(P=(0,h.jsx)(L,{children:F}),r[42]=L,r[43]=F,r[44]=P):P=r[44],r[45]!==A||r[46]!==P||r[47]!==R?(M=(0,h.jsx)(A,{...R,children:P}),r[45]=A,r[46]=P,r[47]=R,r[48]=M):M=r[48],r[49]!==y||r[50]!==S||r[51]!==M||r[52]!==O?(j=(0,h.jsx)(kt,{plugins:O,referencePlugin:S,...y,children:M}),r[49]=y,r[50]=S,r[51]=M,r[52]=O,r[53]=j):j=r[53],j},{Logo:e=>{const t=(0,m.c)(2),{children:n}=e,r=void 0===n?qC:n;let i;return t[0]!==r?(i=(0,h.jsx)("div",{className:"graphiql-logo",children:r}),t[0]=r,t[1]=i):i=t[1],i},Toolbar:e=>{const t=(0,m.c)(14),{children:n}=e,r=void 0===n?$C:n,i="function"==typeof r,{copyQuery:o,prettifyEditors:s,mergeQuery:a}=Ct();if(!i)return r;let l,u;t[0]===Symbol.for("react.memo_cache_sentinel")?(l=(0,h.jsx)(Xt,{className:"graphiql-toolbar-icon","aria-hidden":"true"}),t[0]=l):l=t[0],t[1]!==s?(u=(0,h.jsx)(rm,{onClick:s,label:`Prettify query (${ge.prettify.key})`,children:l}),t[1]=s,t[2]=u):u=t[2];const c=u;let d,p;t[3]===Symbol.for("react.memo_cache_sentinel")?(d=(0,h.jsx)(Qt,{className:"graphiql-toolbar-icon","aria-hidden":"true"}),t[3]=d):d=t[3],t[4]!==a?(p=(0,h.jsx)(rm,{onClick:a,label:`Merge fragments into query (${ge.mergeFragments.key})`,children:d}),t[4]=a,t[5]=p):p=t[5];const f=p;let g,y;t[6]===Symbol.for("react.memo_cache_sentinel")?(g=(0,h.jsx)(Rt,{className:"graphiql-toolbar-icon","aria-hidden":"true"}),t[6]=g):g=t[6],t[7]!==o?(y=(0,h.jsx)(rm,{onClick:o,label:`Copy query (${ge.copyQuery.key})`,children:g}),t[7]=o,t[8]=y):y=t[8];const v=y;let b;return t[9]!==r||t[10]!==v||t[11]!==f||t[12]!==c?(b=r({prettify:c,copy:v,merge:f}),t[9]=r,t[10]=v,t[11]=f,t[12]=c,t[13]=b):b=t[13],b},Footer:e=>{const t=(0,m.c)(2),{children:n}=e;let r;return t[0]!==n?(r=(0,h.jsx)("div",{className:"graphiql-footer",children:n}),t[0]=n,t[1]=r):r=t[1],r}});function rN(e){return Boolean(e.monaco)}function iN(e,t){e:switch(function(e){if(e&&"object"==typeof e&&"type"in e&&"function"==typeof e.type)return e.type}(t)){case nN.Logo:e.logo=t;break e;case nN.Toolbar:e.toolbar=t;break e;case nN.Footer:e.footer=t;break e;default:e.children.push(t)}return e}const oN=({error:e,onClose:t})=>(0,h.jsxs)("div",{className:"errorPopup",children:[(0,h.jsx)("button",{className:"errorPopupClose",onClick:t,children:"🗙"}),(0,h.jsx)("div",{className:"errorPopupError",children:String(e)})]}),sN=()=>(0,h.jsxs)("div",{className:"ruru-footer",children:["Community-funded OSS 🙏"," ",(0,h.jsx)("a",{title:"All our projects are supported by the community, please sponsor ongoing development",href:"https://graphile.org/sponsor/",target:"new",children:"please sponsor"})," ","💖"]}),aN=(0,d.createContext)({explainHelpers:{showExplain:!1,explainSize:0,explainAtBottom:!0,setExplainSize:()=>{},setExplainAtBottom:()=>{},setShowExplain:()=>{}},explain:!0,setExplain:()=>{},explainResults:null});var lN=s(85187);const uN={onError:""},cN={explain:"Ruru:explain",explainSize:"Ruru:explainSize",explainIsOpen:"Ruru:explainIsOpen",explainAtBottom:"Ruru:explainAtBottom",explorerIsOpen:"graphiql:explorerIsOpen",verbose:"Ruru:verbose",condensed:"Ruru:condensed",onError:"Ruru:onError"},dN=e=>e+1,pN=()=>{const e="undefined"!=typeof window?window.localStorage:null,[t,n]=(0,d.useState)(0),[r]=(0,d.useState)(Object.create(null));return(0,d.useMemo)(()=>e?{_revision:t,get(t){const n=e.getItem(cN[t]);return"null"===n||"undefined"===n?(e.removeItem(cN[t]),null):n??uN[t]??null},set(t,r){e.setItem(cN[t],r),n(dN)},toggle(e){const t=this.get(e);t||null==t&&"condensed"===e?this.set(e,""):this.set(e,"true")}}:{_revision:t,get:e=>r[e]??uN[e]??null,set(e,t){r[e]=t},toggle(e){r[e]=r[e]?"":"true"}},[e,t,r])},fN=e=>"object"==typeof e&&e&&"string"==typeof e.type&&"string"==typeof e.title;function hN(e){return e.startsWith("/")?`ws${"https:"===window.location.protocol?"s":""}://${window.location.host}${e}`:/^https?:\/\//.test(e)?`ws${e.substring(4)}`:e}function mN(e,t,n){const r=e[t];delete e[t],n||Object.defineProperty(e,t,{value:r,enumerable:!1})}const gN=(e,t={})=>{const n=pN(),[r,i]=(0,d.useState)(null),o=e.endpoint??"/graphql",s=o.startsWith("/")?("undefined"!=typeof window?window.location.origin:"")+o:o,a=e.subscriptionEndpoint?hN(e.subscriptionEndpoint):e.endpoint?hN(e.endpoint):void 0,[l,u]=(0,d.useState)(null);(0,d.useEffect)(()=>{s&&i(null)},[s]);const c=t.explain&&(!e.debugTools||e.debugTools.includes("explain")),p=!!t.verbose,f=(0,d.useMemo)(()=>(...e)=>{const t=fetch(...e);return t.then(e=>{const t=e.headers.get("X-GraphQL-Event-Stream");if("string"==typeof t){const e=new URL(t,s);i(e.toString())}},()=>{}),t},[s]),h=(0,d.useMemo)(()=>{const e=Object.create(null);return c&&(e["X-PostGraphile-Explain"]="on",e["X-GraphQL-Explain"]="plan,sql"),{url:s,headers:e,wsConnectionParams:e,fetch:f,subscriptionUrl:a}},[c,s,a,f]),m=(0,d.useMemo)(()=>e.fetcher??z(h),[h,e.fetcher]),g=(0,d.useMemo)(()=>{const e=(t,n=!1)=>{if(null==t)return t;if(Array.isArray(t))return t.map(t=>e(t,n));const r={...t,...t.extensions?{extensions:{...t.extensions}}:null},i=r.explain;if(r.extensions?.explain){const e=r.extensions.explain;"object"==typeof e&&(e=>e&&Array.isArray(e.operations)&&e.operations.every(fN))(e)?setTimeout(()=>{u(e)},100):console.warn("The response had `extensions.explain` set, but in an incompatible format."),p||(1===Object.keys(r.extensions).length?mN(r,"extensions",n):mN(r.extensions,"explain",n))}else i&&setTimeout(()=>{u({operations:i.map((e,t)=>({type:"sql",title:`Legacy explain ${t+1}`,query:e.query,explain:e.plan}))})},100);return r};return async function(...t){const[r,...i]=t,o=n.get("onError"),s=[o?{...r,onError:o}:r,...i],a=await m(...s);if((e=>{try{if("IntrospectionQuery"===e.operationName)return!0;if(e.operationName)return!1;const t=(0,Y.parse)(e.query),n=(0,lN.getOperationAST)(t,e.operationName);return"IntrospectionQuery"===n?.name?.value}catch(e){return!1}})(s[0]))return a;if(setTimeout(()=>{u(null)},100),"subscribe"in a)return a;if(V(a)){const t=a[Symbol.asyncIterator]();return{throw:t.throw?.bind(t),return:t.return?.bind(t),next(...n){const r=t.next(...n);if(M(r))return r.then(({done:t,value:n})=>({done:t,value:e(n,!0)}),e=>e&&e.target&&e.target instanceof WebSocket?Promise.reject({message:"WebSocket connection terminated unexpectedly (server restart?)"}):Promise.reject(e));{const{done:t,value:n}=r;return{done:t,value:e(n,!0)}}},[Symbol.asyncIterator](){return this}}}return e(a)}},[m,n,p]);return{fetcher:g,explainResults:l,streamEndpoint:r}};function yN(){}const vN=(0,d.createContext)(null),bN={didCatch:!1,error:null};class EN extends d.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=bN}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(...e){const{error:t}=this.state;null!==t&&(this.props.onReset?.({args:e,reason:"imperative-api"}),this.setState(bN))}componentDidCatch(e,t){this.props.onError?.(e,t)}componentDidUpdate(e,t){const{didCatch:n}=this.state,{resetKeys:r}=this.props;n&&null!==t.error&&function(e=[],t=[]){return e.length!==t.length||e.some((e,n)=>!Object.is(e,t[n]))}(e.resetKeys,r)&&(this.props.onReset?.({next:r,prev:e.resetKeys,reason:"keys"}),this.setState(bN))}render(){const{children:e,fallbackRender:t,FallbackComponent:n,fallback:r}=this.props,{didCatch:i,error:o}=this.state;let s=e;if(i){const e={error:o,resetErrorBoundary:this.resetErrorBoundary};if("function"==typeof t)s=t(e);else if(n)s=(0,d.createElement)(n,e);else{if(void 0===r)throw o;s=r}}return(0,d.createElement)(vN.Provider,{value:{didCatch:i,error:o,resetErrorBoundary:this.resetErrorBoundary}},s)}}var TN=s(85808),wN=s(28957),kN=s(84143),SN=s(67274);function xN(e,t){const{trimDeprecated:n=!1,trimDescriptions:r=!1}=t,i=e.toConfig(),o=new Map;function s(e){if(!r)return e;const{description:t,...n}=e;return n}const a=e=>(0,g.isNonNullType)(e)?new g.GraphQLNonNull(a(e.ofType)):(0,g.isListType)(e)?new g.GraphQLList(a(e.ofType)):o.get(e.name)??e;function l(e){return e?o.get(e.name)??e:void 0}function u(e){return e?Object.fromEntries(Object.entries(e).filter(([e,t])=>!n||!t.deprecationReason).map(([e,t])=>[e,s(c(t))])):void 0}function c(e){const{type:t,...n}=e;return{...n,type:a(t)}}function d(e){const{args:t,...n}=e;return{...n,args:u(t)}}function p(e){const{fields:t,...r}=e;return{...r,fields:()=>function(e){const t=Object.create(null);for(const[r,i]of Object.entries(e))n&&null!=i.deprecationReason||(t[r]=s(c(d(i))));return t}(t)}}function f(e){const{interfaces:t,...n}=e;return{...n,interfaces:()=>t.map(e=>l(e))}}function h(e){switch(!0){case(0,g.isScalarType)(e):return new g.GraphQLScalarType(s(e.toConfig()));case(0,g.isEnumType)(e):{const t=e.toConfig(),r=Object.fromEntries(Object.entries(t.values).filter(([,e])=>!n||!e.deprecationReason).map(([e,t])=>[e,s(t)]));return new g.GraphQLEnumType(s({...t,values:r}))}case(0,g.isUnionType)(e):{const t=e.toConfig();return new g.GraphQLUnionType(s(s({...t,types:()=>t.types.map(e=>l(e))})))}case(0,g.isInterfaceType)(e):{const t=e.toConfig();return new g.GraphQLInterfaceType(s(p(f(t))))}case(0,g.isInputObjectType)(e):{const t=e.toConfig();return new g.GraphQLInputObjectType(s(function(e){const{fields:t,...r}=e;return{...r,fields:()=>function(e){const t=Object.create(null);for(const[r,i]of Object.entries(e))n&&null!=i.deprecationReason||(t[r]=s(c(i)));return t}(t)}}(t)))}case(0,g.isObjectType)(e):{const t=e.toConfig();return new g.GraphQLObjectType(s(p(f(t))))}default:return e}}for(const e of i.types)if(!o.has(e.name)&&!(0,wN.isIntrospectionType)(e))if((0,kN.isSpecifiedScalarType)(e))o.set(e.name,e);else{const t=h(e);o.set(e.name,t)}const m=i.directives.map(e=>(0,SN.isSpecifiedDirective)(e)?e:new SN.GraphQLDirective(s(d(e.toConfig()))));return new ce.GraphQLSchema(s({...i,types:Array.from(o.values()),directives:m,query:l(i.query),mutation:l(i.mutation),subscription:l(i.subscription)}))}function CN(e=!1){const[t,n]=(0,d.useState)(e),r=(0,d.useCallback)(e=>{n(e.target.checked)},[]),i=(0,d.useCallback)(()=>{n(e)},[e]);return(0,d.useMemo)(()=>({checked:t,setChecked:n,reset:i,changed:t!==e,attrs:{checked:t,onChange:r}}),[t,e,r,i])}const _N=()=>{const[e,t]=(0,d.useState)(null),n=CN(!1),r=CN(!0),i=CN(!0),o=n.changed||r.changed||i.changed,s=(0,d.useCallback)(()=>{n.reset(),r.reset(),i.reset()},[i,r,n]),a=xt(e=>e.schema),l=(0,d.useMemo)(()=>{if(!a)return null;let e=a;return r.checked&&i.checked||(e=xN(e,{trimDescriptions:!r.checked,trimDeprecated:!i.checked})),n.checked&&(e=(0,TN.lexicographicSortSchema)(e)),(0,TN.printSchema)(e)+"\n"},[a,r.checked,i.checked,n.checked]),u=(0,d.useCallback)(e=>{if(e.preventDefault(),t(null),!l)return void t(new Error("Schema is not available to be exported"));const o=["schema"];i.checked||o.push("no-deprecated"),r.checked||o.push("no-descriptions"),n.checked&&o.push("sorted"),function(e,t,n="application/graphql"){const r=new Blob([e],{type:n}),i=URL.createObjectURL(r),o=document.createElement("a");o.href=i,o.download=t,document.body.appendChild(o),o.click(),o.remove(),URL.revokeObjectURL(i)}(l,`${o.join(".")}.graphql`)},[i.checked,r.checked,l,n.checked]),c=(0,d.useCallback)(e=>{e.preventDefault(),t(null),l?navigator.clipboard.writeText(l).catch(e=>{t(new Error("Error copying text to clipboard",{cause:e}))}):t(new Error("Schema is not available to be copied"))},[l]);return(0,h.jsxs)("div",{children:[(0,h.jsxs)("form",{onSubmit:u,children:[(0,h.jsxs)("p",{children:[(0,h.jsxs)("label",{children:[(0,h.jsx)("input",{type:"checkbox",...n.attrs})," Sorted (lexicographically)"]}),(0,h.jsx)("br",{}),(0,h.jsxs)("label",{children:[(0,h.jsx)("input",{type:"checkbox",...r.attrs})," Include descriptions"]}),(0,h.jsx)("br",{}),(0,h.jsxs)("label",{children:[(0,h.jsx)("input",{type:"checkbox",...i.attrs})," Include deprecated"]})]}),e?(0,h.jsx)("p",{className:"error",children:e.message}):null,(0,h.jsxs)("div",{children:[(0,h.jsx)("button",{type:"submit",children:"Download"}),(0,h.jsx)("button",{type:"button",onClick:c,children:"Copy"}),(0,h.jsx)("button",{type:"button",disabled:!o,onClick:s,children:"Reset"})]})]}),(0,h.jsx)("pre",{style:{fontSize:"0.75rem"},children:(0,h.jsx)("code",{children:l})})," "]})},NN={title:"SDL",icon:Zt,content:()=>{const[e,t]=(0,d.useState)(0),n=(0,d.useCallback)(()=>{t(e=>e+1)},[]);return(0,h.jsxs)("div",{children:[(0,h.jsx)("div",{className:"graphiql-doc-explorer-header",children:(0,h.jsx)("div",{className:"graphiql-doc-explorer-title",children:"SDL"})}),(0,h.jsx)("p",{children:"The Schema Definition Language (SDL, aka Interface Definition Language - IDL) is the language used to describe the type system of a GraphQL schema. It can be useful for discussion, and also as input to tooling such as code generators."}),(0,h.jsx)("p",{children:"Below you will find the SDL for the current schema along with the ability to download it or copy it to your clipboard. You may customize the SDL output with the options below."}),(0,h.jsx)(EN,{fallbackRender:({error:e})=>(0,h.jsxs)("div",{children:[(0,h.jsx)("p",{children:e?.message??"Something went wrong"}),(0,h.jsx)("button",{onSubmit:n,children:"Retry"})]}),children:(0,h.jsx)("div",{className:"graphiql-doc-explorer-content",children:(0,h.jsx)(_N,{},e)})})]})}};function DN(){}const AN=({text:e,json:t,children:n})=>{const r=(0,d.useMemo)(()=>e??(void 0!==t?JSON.stringify(t):void 0),[e,t]),i=(0,d.useRef)(null),o=(0,d.useCallback)(()=>{const e=i.current;e&&(e.select(),e.setSelectionRange(0,99999),navigator.clipboard.writeText(e.value).then(null,DN))},[]);return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("textarea",{ref:e=>{i.current=e},value:r,readOnly:!0,style:{display:"none"}}),(0,h.jsx)("button",{onClick:o,children:n})]})},LN=({sql:e})=>{const[t,n]=(0,d.useState)(null),r=(0,d.useMemo)(()=>{const r=e.split("\n"),i=[],o=new Map;let s=0;const a=e=>{const r=[];let i=0;const a=/__([a-zA-Z0-9](_?[a-zA-Z0-9])*)(__|_[0-9]+(?![a-zA-Z0-9_]))/g;let l;for(;l=a.exec(e);){const u=l.index,c=a.lastIndex;u>i&&r.push((0,h.jsx)(h.Fragment,{children:e.substring(i,u)})),i=c;const[d]=l,p=o.get(d);if(p)r.push(p);else{const e=s++,i=(0,h.jsx)(ON,{n:e,highlit:e===t,setHighlitIndex:n,children:d});o.set(d,i),r.push(i)}}return i<e.length&&r.push((0,h.jsx)(h.Fragment,{children:e.substring(i)})),r};for(let e=0,t=r.length;e<t;e++){const t=a(r[e]);i.push((0,h.jsx)("code",{style:{display:"block",marginLeft:"1.8rem",textIndent:"-1.8rem"},children:t.map((e,t)=>(0,h.jsx)(d.Fragment,{children:e},t))},e))}return i},[e,t]);return(0,h.jsx)("pre",{className:"explain-sql",children:r})},IN=["#00bfff","#ffa500","#7fff00","#ff1493","#808000","#dda0dd","#ff0000","#4169e1","#3cb371","#a52a2a","#ff00ff"],ON=({n:e,highlit:t,setHighlitIndex:n,children:r})=>{const i=IN[e%IN.length],o=t?{color:i,borderRadius:"3px",fontWeight:"900",backgroundColor:"hsla(var(--color-primary),var(--alpha-background-medium))"}:{color:i},s=(0,d.useCallback)(()=>{n(e)},[n,e]),a=(0,d.useCallback)(()=>{n(null)},[n]);return(0,h.jsx)("strong",{style:o,onMouseEnter:s,onMouseLeave:a,children:r})},RN=(0,d.lazy)(()=>Promise.all([s.e(7367),s.e(8983)]).then(s.bind(s,78983))),FN=({plan:e})=>(0,h.jsx)(d.Suspense,{fallback:(0,h.jsx)("div",{children:"Mermaid hasn't (yet) loaded, so we cannot render plan diagrams"}),children:(0,h.jsx)(RN,{plan:e})}),PN=({explain:e,setExplain:t,helpers:n,results:r})=>(0,h.jsx)(h.Fragment,{children:r?0===r.operations.length?(0,h.jsx)("p",{children:"Empty explain results"}):(0,h.jsx)("div",{children:(0,h.jsx)(MN,{helpers:n,results:r})}):e?(0,h.jsx)("p",{children:"There are no explain results to display - perhaps you have not yet ran an operation against a server that supports this feature?"}):(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("p",{children:"WARNING: you've not enabled the 'explain' functionality"}),(0,h.jsx)("p",{children:(0,h.jsx)("button",{onClick:()=>t(!0),children:"Enable explain"})})]})}),MN=({results:e})=>{const[t,n]=(0,d.useState)(0);(0,d.useEffect)(()=>{n(0)},[e]);const r=e.operations[t],[i,o]=(0,d.useState)(!1),a=(0,d.useCallback)(()=>{o(!0)},[]),l=(0,d.useMemo)(()=>document.createElement("div"),[]);(0,d.useEffect)(()=>(document.body.appendChild(l),()=>{document.body.removeChild(l)}),[l]);const[u,c]=(0,d.useState)(!1),p=(0,d.useCallback)(()=>{r&&"plan"===r.type&&(c(!0),(async()=>{const e=await(jN??=s.e(7367).then(s.bind(s,67367))),{planToMermaid:t}=await(VN??=s.e(8982).then(s.t.bind(s,8982,19))),n=t(r.plan),{svg:i}=await e.default.render("id1",n),o=new File([i.replace(/<br>/g,"<br/>")],"grafast-plan.svg"),a=document.createElement("a");a.href=URL.createObjectURL(o),a.download=o.name,a.style.display="none",document.body.appendChild(a),a.click(),c(!1),setTimeout(()=>{URL.revokeObjectURL(a.href),a.parentNode.removeChild(a)},0)})().catch(e=>{alert(String(e))}))},[r]),f=(()=>{switch(r?.type){case"sql":return(0,h.jsxs)("div",{children:[r.explain?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)("h4",{children:["Result from SQL"," ",(0,h.jsx)("a",{href:"https://www.postgresql.org/docs/current/sql-explain.html",children:"EXPLAIN"})," ","on executed query:"]}),(0,h.jsx)("pre",{className:"explain-plan",children:(0,h.jsx)("code",{children:r.explain})}),(0,h.jsx)(AN,{text:r.explain,children:"Copy plan"})]}):null,(0,h.jsx)("h4",{children:"Executed SQL query:"}),(0,h.jsx)(LN,{sql:r.query}),(0,h.jsx)(AN,{text:r.query,children:"Copy SQL"})]});case"plan":return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(AN,{json:r.plan,children:"Copy plan JSON"}),(0,h.jsx)("button",{onClick:p,disabled:u,children:"Save Mermaid Diagram"}),(0,h.jsx)("div",{onClick:a,children:(0,h.jsx)(FN,{plan:r.plan})}),i?(0,Fs.createPortal)((0,h.jsxs)("div",{className:"explainExpandedContainer",children:[(0,h.jsx)("div",{className:"explainExpandedTitle",children:"Operation Plan"}),(0,h.jsx)("div",{className:"explainExpandedCloseContainer",children:(0,h.jsx)("button",{className:"explainExpandedCloseButton",onClick:()=>o(!1),children:"×"})}),(0,h.jsx)("div",{className:"explainExpandedMain",children:(0,h.jsx)(FN,{plan:r.plan})})]}),l):null]});case void 0:return(0,h.jsxs)("div",{children:["Explain result type '$",r.type,"' not yet supported."]});default:return(0,h.jsx)("div",{})}})();return(0,h.jsxs)("div",{children:[(0,h.jsx)("select",{value:String(t),onChange:e=>n(parseInt(e.target.value,10)),children:e.operations.map((e,t)=>(0,h.jsx)("option",{value:String(t),children:e.title},t))}),f]})};let jN,VN;const KN={title:"Explain",icon:Gt,content:()=>{const{explainHelpers:e,explain:t,explainResults:n,setExplain:r}=(0,d.useContext)(aN);return(0,h.jsxs)("div",{children:[(0,h.jsx)("div",{className:"graphiql-doc-explorer-header",children:(0,h.jsx)("div",{className:"graphiql-doc-explorer-title",children:"Explain"})}),(0,h.jsx)("div",{className:"graphiql-doc-explorer-content",children:(0,h.jsx)(PN,{explain:t,setExplain:r,helpers:e,results:n})})]})}},UN={width:"1.5rem",display:"inline-block"},BN=(0,h.jsx)("span",{style:UN,children:"✔"}),$N=(0,h.jsx)("span",{style:UN}),qN=(zN={showAttribution:!1},{title:"GraphiQL Explorer",icon:({title:e,titleId:t,...n})=>d.createElement("svg",{height:"1em",strokeWidth:1.5,viewBox:"0 0 24 24",stroke:"currentColor",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?d.createElement("title",{id:t},e):null,d.createElement("path",{d:"M18 6H20M22 6H20M20 6V4M20 6V8",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M21.4 20H2.6C2.26863 20 2 19.7314 2 19.4V11H21.4C21.7314 11 22 11.2686 22 11.6V19.4C22 19.7314 21.7314 20 21.4 20Z"}),d.createElement("path",{d:"M2 11V4.6C2 4.26863 2.26863 4 2.6 4H8.77805C8.92127 4 9.05977 4.05124 9.16852 4.14445L12.3315 6.85555C12.4402 6.94876 12.5787 7 12.722 7H14",strokeLinecap:"round",strokeLinejoin:"round"})),content:()=>(0,h.jsx)(sf,{...zN})});var zN;const GN=[jp,NN,nm,qN,KN],QN=e=>{const{inputValueDeprecation:t,schemaDescription:n,defaultQuery:r,showPersistHeadersSettings:i,fetcher:o,debugTools:s,query:a,variables:l,...u}=e,c=pN(),p="true"===c.get("explain"),f="true"===c.get("verbose"),m=(0,d.useCallback)(e=>{c.set("explain",e?"true":"")},[c]),{fetcher:g,explainResults:y,streamEndpoint:v}=gN(e,{explain:p,verbose:f}),[b,E]=(0,d.useState)(null),T=(e=>{const[t,n]=(0,d.useState)("true"===e.get("explainIsOpen")),[r,i]=(0,d.useState)(parseInt(e.get("explainSize")??"",10)||300),[o,s]=(0,d.useState)([null,"true"].includes(e.get("explainAtBottom"))),a=(0,d.useCallback)(t=>{n(t),t&&e.set("explain","true"),e.set("explainIsOpen",t?"true":"")},[e]),l=(0,d.useCallback)(t=>{s(t),e.set("explainAtBottom",t?"true":"")},[e]);return{showExplain:t,explainSize:r,explainAtBottom:o,setExplainSize:(0,d.useCallback)(t=>{i(t),e.set("explainSize",String(t))},[e]),setExplainAtBottom:l,setShowExplain:a}})(c),w=(0,d.useMemo)(()=>({explain:p,explainHelpers:T,explainResults:y,setExplain:m}),[p,T,y,m]);return(0,h.jsx)(kt,{...u,inputValueDeprecation:t??!0,schemaDescription:n??!0,fetcher:g,defaultQuery:r??'# Welcome to Ruru, our distribution of GraphiQL and related tooling to\n# inspect your GraphQL API.\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 starts\n# with a # are ignored.\n#\n# An example GraphQL query might look like:\n#\n#     {\n#       field(arg: "value") {\n#         subField\n#       }\n#     }\n#\n# Keyboard shortcuts:\n#\n#  Prettify Query:  Shift-Ctrl-P (or press the prettify button above)\n#\n#     Merge Query:  Shift-Ctrl-M (or press the merge button above)\n#\n#       Run Query:  Ctrl-Enter (or press the play button above)\n#\n#   Auto Complete:  Ctrl-Space (or just start typing)\n#\n',plugins:GN,children:(0,h.jsx)(aN.Provider,{value:w,children:(0,h.jsx)(qh,{maxHistoryLength:e.maxHistoryLength,children:(0,h.jsx)(Up,{children:(0,h.jsx)(HN,{...u,showPersistHeadersSettings:i??!0,storage:c,error:b,setError:E,streamEndpoint:v})})})})})},HN=e=>{const{storage:t,error:n,setError:r,streamEndpoint:i,...o}=e,a=(()=>{const{queryEditor:e,variableEditor:t,headerEditor:n}=xt(({queryEditor:e,variableEditor:t,headerEditor:n})=>({queryEditor:e,variableEditor:t,headerEditor:n})),{prettifyEditors:r}=Ct(),i=(0,d.useRef)({loaded:!1,prettier:null,plugins:[]}),o=(0,d.useCallback)(async()=>{const{prettier:o,plugins:s}=i.current;if(!(o&&s&&e&&t&&n))return r();for(const r of[e,t,n]){const i=r.getValue();if(null!=i){const a=r.getPosition(),l=r.getModel(),u=a&&l?l.getOffsetAt(a)??0:0,c=r===e?"graphql":r===t||r===n?"jsonc":"json",d=await o.formatWithCursor(i,{parser:c,plugins:s,cursorOffset:u});r.setValue(d.formatted),l&&d.cursorOffset>0&&r.setPosition(l.getPositionAt(d.cursorOffset))}}},[r,n,e,t]),a=(0,d.useCallback)(()=>{if(!1===i.current.loaded){const e=(async()=>{const[e,t,n,r]=await Promise.all([s.e(2408).then(s.bind(s,12408)),s.e(3242).then(s.bind(s,73242)),s.e(1914).then(s.bind(s,51914)),s.e(2541).then(s.bind(s,82541))]);i.current.prettier=e,i.current.plugins=[t.default,n,r],i.current.loaded=!0})();i.current.loaded=e,Promise.race([e,new Promise(e=>setTimeout(e,2e3))]).catch(yN).then(o).then(void 0,yN)}else o().then(void 0,yN)},[o]);return(0,d.useEffect)(()=>{const t=e?.addAction({id:"graphql-prettify",label:"Prettify Editors",contextMenuGroupId:"graphql",keybindings:ge.prettify.keybindings,run:a});return()=>t?.dispose()},[a,e]),a})(),{copyQuery:l,mergeQuery:u,introspect:c}=Ct();((e,t,n)=>{const{eventSourceInit:r}=e,[i,o]=(0,d.useState)(null),s=(0,d.useRef)(null);(0,d.useEffect)(()=>{s.current=n?new EventSource(n,r):null;const e=s.current;return()=>{e&&(e.close(),s.current!==e&&console.error("Logic error in EventSource handling in useGraphQLChangeStream"),s.current=null)}},[r,n]);const a=s.current;(0,d.useEffect)(()=>{if(a){a.readyState===a.CLOSED&&(console.warn("Ruru: EventSource is closed, reopening"),o(new Error("Ruru: EventSource is closed, reopening")));const e=()=>{console.log("Ruru: Listening for server sent events"),o(null),t()},n=e=>{console.error("Ruru: Failed to connect to event stream",e),o(new Error("Failed to connect to event stream"))};return a.addEventListener("change",t,!1),a.addEventListener("open",e,!1),a.addEventListener("error",n,!1),()=>{a.removeEventListener("change",t,!1),a.removeEventListener("open",e,!1),a.removeEventListener("error",n,!1)}}},[i,a,t,n])})(e,c,i);const p=""!==t.get("condensed");return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)(tN,{...o,className:`${o.className??""}${p?" condensed":""}`,children:[(0,h.jsx)(nN.Logo,{children:(0,h.jsx)("a",{href:"https://grafast.org/ruru",style:{textDecoration:"none"},target:"_blank",rel:"noreferrer",children:"Ruru"})}),(0,h.jsxs)(nN.Toolbar,{children:[(0,h.jsx)(rm,{onClick:a,label:"Prettify Query (Shift-Ctrl-P)",children:(0,h.jsx)(Xt,{className:"graphiql-toolbar-icon","aria-hidden":"true"})}),(0,h.jsx)(rm,{onSelect:u,label:"Merge Query (Shift-Ctrl-M)",children:(0,h.jsx)(Qt,{className:"graphiql-toolbar-icon","aria-hidden":"true"})}),(0,h.jsx)(rm,{onClick:l,label:"Copy query (Shift-Ctrl-C)",children:(0,h.jsx)(Rt,{className:"graphiql-toolbar-icon","aria-hidden":"true"})}),(0,h.jsxs)(_v,{button:(0,h.jsx)(rm,{label:"Options",children:(0,h.jsx)(en,{className:"graphiql-toolbar-icon","aria-hidden":"true"})}),children:[(0,h.jsx)(_v.Item,{title:"View the SQL statements that this query invokes",onSelect:()=>t.toggle("explain"),children:(0,h.jsxs)("span",{children:["true"===t.get("explain")?BN:$N,"Explain (if supported)"]})}),(0,h.jsx)(_v.Item,{title:"Don't hide explain from results",onSelect:()=>t.toggle("verbose"),children:(0,h.jsxs)("span",{children:["true"===t.get("verbose")?BN:$N,"Verbose"]})}),(0,h.jsx)(_v.Item,{title:"Condensed",onSelect:()=>t.toggle("condensed"),children:(0,h.jsxs)("span",{children:[""!==t.get("condensed")?BN:$N,"Condensed"]})}),(0,h.jsx)(_v.Item,{title:"Traditional GraphQL error handling",onSelect:()=>{"PROPAGATE"===t.get("onError")?t.set("onError",""):t.set("onError","PROPAGATE")},children:(0,h.jsxs)("span",{children:["PROPAGATE"===t.get("onError")?BN:$N,"onError: PROPAGATE"]})}),(0,h.jsx)(_v.Item,{title:"Client becomes responsible for error handling",onSelect:()=>t.set("onError","NULL"),children:(0,h.jsxs)("span",{children:["NULL"===t.get("onError")?BN:$N,"onError: NULL"]})}),(0,h.jsx)(_v.Item,{title:"Stop execution on the first error",onSelect:()=>t.set("onError","HALT"),children:(0,h.jsxs)("span",{children:["HALT"===t.get("onError")?BN:$N,"onError: HALT"]})})]})]}),(0,h.jsx)(nN.Footer,{children:(0,h.jsx)(sN,{})})]}),n?(0,h.jsx)(oN,{error:n,onClose:()=>r(null)}):null]})};export{p as React,QN as Ruru};export const createRoot=f.createRoot;
//# sourceMappingURL=ruru.js.map