(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1530],{85525:function(e,t,n){"use strict";n.d(t,{Ps:function(){return z}});var r,i=n(5163);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var a=n(11176);function s(e,t){for(var n,r=/\r\n|[\n\r]/g,i=1,o=t+1;(n=r.exec(e.body))&&n.index120){for(var f=Math.floor(l/80),m=l%80,g=[],v=0;v",EOF:"",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"}),E=n(75899),D=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"}),C=n(85717),j=function(){function e(e){var t=new _.WU(S.SOF,0,0,0,0,null);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}var t=e.prototype;return t.advance=function(){return this.lastToken=this.token,this.token=this.lookahead()},t.lookahead=function(){var e,t=this.token;if(t.kind!==S.EOF)do t=null!==(e=t.next)&&void 0!==e?e:t.next=function(e,t){for(var n=e.source,r=n.body,i=r.length,o=t.end;o31||9===o));return new _.WU(S.COMMENT,t,s,n,r,i,a.slice(t+1,s))}(n,o,s,l,t);case 36:return new _.WU(S.DOLLAR,o,o+1,s,l,t);case 38:return new _.WU(S.AMP,o,o+1,s,l,t);case 40:return new _.WU(S.PAREN_L,o,o+1,s,l,t);case 41:return new _.WU(S.PAREN_R,o,o+1,s,l,t);case 46:if(46===r.charCodeAt(o+1)&&46===r.charCodeAt(o+2))return new _.WU(S.SPREAD,o,o+3,s,l,t);break;case 58:return new _.WU(S.COLON,o,o+1,s,l,t);case 61:return new _.WU(S.EQUALS,o,o+1,s,l,t);case 64:return new _.WU(S.AT,o,o+1,s,l,t);case 91:return new _.WU(S.BRACKET_L,o,o+1,s,l,t);case 93:return new _.WU(S.BRACKET_R,o,o+1,s,l,t);case 123:return new _.WU(S.BRACE_L,o,o+1,s,l,t);case 124:return new _.WU(S.PIPE,o,o+1,s,l,t);case 125:return new _.WU(S.BRACE_R,o,o+1,s,l,t);case 34:if(34===r.charCodeAt(o+1)&&34===r.charCodeAt(o+2))return function(e,t,n,r,i,o){for(var a=e.body,s=t+3,l=s,u=0,c="";s=48&&l<=57)throw w(e,u,"Invalid number, unexpected digit after 0: ".concat(O(l),"."))}else u=T(e,u,l),l=s.charCodeAt(u);if(46===l&&(c=!0,l=s.charCodeAt(++u),u=T(e,u,l),l=s.charCodeAt(u)),(69===l||101===l)&&(c=!0,(43===(l=s.charCodeAt(++u))||45===l)&&(l=s.charCodeAt(++u)),u=T(e,u,l),l=s.charCodeAt(u)),46===l||95===(a=l)||a>=65&&a<=90||a>=97&&a<=122)throw w(e,u,"Invalid number, expected digit but got: ".concat(O(l),"."));return new _.WU(c?S.FLOAT:S.INT,t,u,r,i,o,s.slice(t,u))}(n,o,a,s,l,t);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return function(e,t,n,r,i){for(var o=e.body,a=o.length,s=t+1,l=0;s!==a&&!isNaN(l=o.charCodeAt(s))&&(95===l||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122);)++s;return new _.WU(S.NAME,t,s,n,r,i,o.slice(t,s))}(n,o,s,l,t)}throw w(n,o,a<32&&9!==a&&10!==a&&13!==a?"Cannot contain the invalid character ".concat(O(a),"."):39===a?"Unexpected single quote character ('), did you mean to use a double quote (\")?":"Cannot parse the unexpected character ".concat(O(a),"."))}var u=e.line,c=1+o-e.lineStart;return new _.WU(S.EOF,i,i,u,c,t)}(this,t);while(t.kind===S.COMMENT);return t},e}();function O(e){return isNaN(e)?S.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function T(e,t,n){var r=e.body,i=t,o=n;if(o>=48&&o<=57){do o=r.charCodeAt(++i);while(o>=48&&o<=57);return i}throw w(e,i,"Invalid number, expected digit but got: ".concat(O(o),"."))}function A(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}var P=function(){function e(e,t){var n=(0,E.T)(e)?e:new E.H(e);this._lexer=new j(n),this._options=t}var t=e.prototype;return t.parseName=function(){var e=this.expectToken(S.NAME);return{kind:x.NAME,value:e.value,loc:this.loc(e)}},t.parseDocument=function(){var e=this._lexer.token;return{kind:x.DOCUMENT,definitions:this.many(S.SOF,this.parseDefinition,S.EOF),loc:this.loc(e)}},t.parseDefinition=function(){if(this.peek(S.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else if(this.peek(S.BRACE_L))return this.parseOperationDefinition();else if(this.peekDescription())return this.parseTypeSystemDefinition();throw this.unexpected()},t.parseOperationDefinition=function(){var e,t=this._lexer.token;if(this.peek(S.BRACE_L))return{kind:x.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(t)};var n=this.parseOperationType();return this.peek(S.NAME)&&(e=this.parseName()),{kind:x.OPERATION_DEFINITION,operation:n,name:e,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}},t.parseOperationType=function(){var e=this.expectToken(S.NAME);switch(e.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(e)},t.parseVariableDefinitions=function(){return this.optionalMany(S.PAREN_L,this.parseVariableDefinition,S.PAREN_R)},t.parseVariableDefinition=function(){var e=this._lexer.token;return{kind:x.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(S.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(S.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(e)}},t.parseVariable=function(){var e=this._lexer.token;return this.expectToken(S.DOLLAR),{kind:x.VARIABLE,name:this.parseName(),loc:this.loc(e)}},t.parseSelectionSet=function(){var e=this._lexer.token;return{kind:x.SELECTION_SET,selections:this.many(S.BRACE_L,this.parseSelection,S.BRACE_R),loc:this.loc(e)}},t.parseSelection=function(){return this.peek(S.SPREAD)?this.parseFragment():this.parseField()},t.parseField=function(){var e,t,n=this._lexer.token,r=this.parseName();return this.expectOptionalToken(S.COLON)?(e=r,t=this.parseName()):t=r,{kind:x.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(S.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(n)}},t.parseArguments=function(e){var t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(S.PAREN_L,t,S.PAREN_R)},t.parseArgument=function(){var e=this._lexer.token,t=this.parseName();return this.expectToken(S.COLON),{kind:x.ARGUMENT,name:t,value:this.parseValueLiteral(!1),loc:this.loc(e)}},t.parseConstArgument=function(){var e=this._lexer.token;return{kind:x.ARGUMENT,name:this.parseName(),value:(this.expectToken(S.COLON),this.parseValueLiteral(!0)),loc:this.loc(e)}},t.parseFragment=function(){var e=this._lexer.token;this.expectToken(S.SPREAD);var t=this.expectOptionalKeyword("on");return!t&&this.peek(S.NAME)?{kind:x.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(e)}:{kind:x.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseFragmentDefinition=function(){var e,t=this._lexer.token;return(this.expectKeyword("fragment"),(null===(e=this._options)||void 0===e?void 0:e.experimentalFragmentVariables)===!0)?{kind:x.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}:{kind:x.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}},t.parseFragmentName=function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},t.parseValueLiteral=function(e){var t=this._lexer.token;switch(t.kind){case S.BRACKET_L:return this.parseList(e);case S.BRACE_L:return this.parseObject(e);case S.INT:return this._lexer.advance(),{kind:x.INT,value:t.value,loc:this.loc(t)};case S.FLOAT:return this._lexer.advance(),{kind:x.FLOAT,value:t.value,loc:this.loc(t)};case S.STRING:case S.BLOCK_STRING:return this.parseStringLiteral();case S.NAME:switch(this._lexer.advance(),t.value){case"true":return{kind:x.BOOLEAN,value:!0,loc:this.loc(t)};case"false":return{kind:x.BOOLEAN,value:!1,loc:this.loc(t)};case"null":return{kind:x.NULL,loc:this.loc(t)};default:return{kind:x.ENUM,value:t.value,loc:this.loc(t)}}case S.DOLLAR:if(!e)return this.parseVariable()}throw this.unexpected()},t.parseStringLiteral=function(){var e=this._lexer.token;return this._lexer.advance(),{kind:x.STRING,value:e.value,block:e.kind===S.BLOCK_STRING,loc:this.loc(e)}},t.parseList=function(e){var t=this,n=this._lexer.token;return{kind:x.LIST,values:this.any(S.BRACKET_L,function(){return t.parseValueLiteral(e)},S.BRACKET_R),loc:this.loc(n)}},t.parseObject=function(e){var t=this,n=this._lexer.token;return{kind:x.OBJECT,fields:this.any(S.BRACE_L,function(){return t.parseObjectField(e)},S.BRACE_R),loc:this.loc(n)}},t.parseObjectField=function(e){var t=this._lexer.token,n=this.parseName();return this.expectToken(S.COLON),{kind:x.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e),loc:this.loc(t)}},t.parseDirectives=function(e){for(var t=[];this.peek(S.AT);)t.push(this.parseDirective(e));return t},t.parseDirective=function(e){var t=this._lexer.token;return this.expectToken(S.AT),{kind:x.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e),loc:this.loc(t)}},t.parseTypeReference=function(){var e,t=this._lexer.token;return(this.expectOptionalToken(S.BRACKET_L)?(e=this.parseTypeReference(),this.expectToken(S.BRACKET_R),e={kind:x.LIST_TYPE,type:e,loc:this.loc(t)}):e=this.parseNamedType(),this.expectOptionalToken(S.BANG))?{kind:x.NON_NULL_TYPE,type:e,loc:this.loc(t)}:e},t.parseNamedType=function(){var e=this._lexer.token;return{kind:x.NAMED_TYPE,name:this.parseName(),loc:this.loc(e)}},t.parseTypeSystemDefinition=function(){var e=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(e.kind===S.NAME)switch(e.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()}throw this.unexpected(e)},t.peekDescription=function(){return this.peek(S.STRING)||this.peek(S.BLOCK_STRING)},t.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},t.parseSchemaDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");var n=this.parseDirectives(!0),r=this.many(S.BRACE_L,this.parseOperationTypeDefinition,S.BRACE_R);return{kind:x.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r,loc:this.loc(e)}},t.parseOperationTypeDefinition=function(){var e=this._lexer.token,t=this.parseOperationType();this.expectToken(S.COLON);var n=this.parseNamedType();return{kind:x.OPERATION_TYPE_DEFINITION,operation:t,type:n,loc:this.loc(e)}},t.parseScalarTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");var n=this.parseName(),r=this.parseDirectives(!0);return{kind:x.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r,loc:this.loc(e)}},t.parseObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");var n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:x.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o,loc:this.loc(e)}},t.parseImplementsInterfaces=function(){var e;if(!this.expectOptionalKeyword("implements"))return[];if((null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLImplementsInterfaces)===!0){var t=[];this.expectOptionalToken(S.AMP);do t.push(this.parseNamedType());while(this.expectOptionalToken(S.AMP)||this.peek(S.NAME));return t}return this.delimitedMany(S.AMP,this.parseNamedType)},t.parseFieldsDefinition=function(){var e;return(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLEmptyFields)===!0&&this.peek(S.BRACE_L)&&this._lexer.lookahead().kind===S.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(S.BRACE_L,this.parseFieldDefinition,S.BRACE_R)},t.parseFieldDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(S.COLON);var i=this.parseTypeReference(),o=this.parseDirectives(!0);return{kind:x.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:o,loc:this.loc(e)}},t.parseArgumentDefs=function(){return this.optionalMany(S.PAREN_L,this.parseInputValueDef,S.PAREN_R)},t.parseInputValueDef=function(){var e,t=this._lexer.token,n=this.parseDescription(),r=this.parseName();this.expectToken(S.COLON);var i=this.parseTypeReference();this.expectOptionalToken(S.EQUALS)&&(e=this.parseValueLiteral(!0));var o=this.parseDirectives(!0);return{kind:x.INPUT_VALUE_DEFINITION,description:n,name:r,type:i,defaultValue:e,directives:o,loc:this.loc(t)}},t.parseInterfaceTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");var n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:x.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o,loc:this.loc(e)}},t.parseUnionTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseUnionMemberTypes();return{kind:x.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i,loc:this.loc(e)}},t.parseUnionMemberTypes=function(){return this.expectOptionalToken(S.EQUALS)?this.delimitedMany(S.PIPE,this.parseNamedType):[]},t.parseEnumTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseEnumValuesDefinition();return{kind:x.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i,loc:this.loc(e)}},t.parseEnumValuesDefinition=function(){return this.optionalMany(S.BRACE_L,this.parseEnumValueDefinition,S.BRACE_R)},t.parseEnumValueDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseDirectives(!0);return{kind:x.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r,loc:this.loc(e)}},t.parseInputObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseInputFieldsDefinition();return{kind:x.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i,loc:this.loc(e)}},t.parseInputFieldsDefinition=function(){return this.optionalMany(S.BRACE_L,this.parseInputValueDef,S.BRACE_R)},t.parseTypeSystemExtension=function(){var e=this._lexer.lookahead();if(e.kind===S.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)},t.parseSchemaExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var t=this.parseDirectives(!0),n=this.optionalMany(S.BRACE_L,this.parseOperationTypeDefinition,S.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return{kind:x.SCHEMA_EXTENSION,directives:t,operationTypes:n,loc:this.loc(e)}},t.parseScalarTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var t=this.parseName(),n=this.parseDirectives(!0);if(0===n.length)throw this.unexpected();return{kind:x.SCALAR_TYPE_EXTENSION,name:t,directives:n,loc:this.loc(e)}},t.parseObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return{kind:x.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i,loc:this.loc(e)}},t.parseInterfaceTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return{kind:x.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i,loc:this.loc(e)}},t.parseUnionTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:x.UNION_TYPE_EXTENSION,name:t,directives:n,types:r,loc:this.loc(e)}},t.parseEnumTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:x.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r,loc:this.loc(e)}},t.parseInputObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:x.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r,loc:this.loc(e)}},t.parseDirectiveDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(S.AT);var n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var o=this.parseDirectiveLocations();return{kind:x.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:o,loc:this.loc(e)}},t.parseDirectiveLocations=function(){return this.delimitedMany(S.PIPE,this.parseDirectiveLocation)},t.parseDirectiveLocation=function(){var e=this._lexer.token,t=this.parseName();if(void 0!==D[t.value])return t;throw this.unexpected(e)},t.loc=function(e){var t;if((null===(t=this._options)||void 0===t?void 0:t.noLocation)!==!0)return new _.Ye(e,this._lexer.lastToken,this._lexer.source)},t.peek=function(e){return this._lexer.token.kind===e},t.expectToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t;throw w(this._lexer.source,t.start,"Expected ".concat(M(e),", found ").concat(R(t),"."))},t.expectOptionalToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t},t.expectKeyword=function(e){var t=this._lexer.token;if(t.kind===S.NAME&&t.value===e)this._lexer.advance();else throw w(this._lexer.source,t.start,'Expected "'.concat(e,'", found ').concat(R(t),"."))},t.expectOptionalKeyword=function(e){var t=this._lexer.token;return t.kind===S.NAME&&t.value===e&&(this._lexer.advance(),!0)},t.unexpected=function(e){var t=null!=e?e:this._lexer.token;return w(this._lexer.source,t.start,"Unexpected ".concat(R(t),"."))},t.any=function(e,t,n){this.expectToken(e);for(var r=[];!this.expectOptionalToken(n);)r.push(t.call(this));return r},t.optionalMany=function(e,t,n){if(this.expectOptionalToken(e)){var r=[];do r.push(t.call(this));while(!this.expectOptionalToken(n));return r}return[]},t.many=function(e,t,n){this.expectToken(e);var r=[];do r.push(t.call(this));while(!this.expectOptionalToken(n));return r},t.delimitedMany=function(e,t){this.expectOptionalToken(e);var n=[];do n.push(t.call(this));while(this.expectOptionalToken(e));return n},e}();function R(e){var t=e.value;return M(e.kind)+(null!=t?' "'.concat(t,'"'):"")}function M(e){return e===S.BANG||e===S.DOLLAR||e===S.AMP||e===S.PAREN_L||e===S.PAREN_R||e===S.SPREAD||e===S.COLON||e===S.EQUALS||e===S.AT||e===S.BRACKET_L||e===S.BRACKET_R||e===S.BRACE_L||e===S.PIPE||e===S.BRACE_R?'"'.concat(e,'"'):e}var F=new Map,N=new Map,I=!0,L=!1;function B(e){return e.replace(/[\s,]+/g," ").trim()}function z(e){for(var t=[],n=1;n{let t=typeof e;return"string"===t||"function"===t},s=e=>e.modelName||e.name,l=e=>"string"==typeof e?e:s(e);function u(e){return e?e.hasOwnProperty(o)?e[o]:s(e.constructor):"all"}function c(e,t,n){for(let r=n;re;class f{constructor(e,t,n=0){!function(e,t){if(Array.isArray(e.fields)&&!e.fields.length)throw Error("`rawRule.fields` cannot be an empty array. https://bit.ly/390miLa");if(e.fields&&!t.fieldMatcher)throw Error('You need to pass "fieldMatcher" option in order to restrict access by fields');if(e.conditions&&!t.conditionsMatcher)throw Error('You need to pass "conditionsMatcher" option in order to restrict access by conditions')}(e,t),this.action=t.resolveAction(e.action),this.subject=e.subject,this.inverted=!!e.inverted,this.conditions=e.conditions,this.reason=e.reason,this.fields=e.fields?i(e.fields):void 0,this.priority=n,this.t=t}i(){return this.conditions&&!this.o&&(this.o=this.t.conditionsMatcher(this.conditions)),this.o}get ast(){let e=this.i();return e?e.ast:void 0}matchesConditions(e){if(!this.conditions)return!0;if(!e||a(e))return!this.inverted;let t=this.i();return t(e)}matchesField(e){return!this.fields||(e?(this.fields&&!this.u&&(this.u=this.t.fieldMatcher(this.fields)),this.u(e)):!this.inverted)}}let m=(e,t)=>{let n={value:e,prev:t,next:null};return t&&(t.next=n),n},g=e=>{e.next&&(e.next.prev=e.prev),e.prev&&(e.prev.next=e.next),e.next=e.prev=null},v=()=>({rules:[],merged:!1}),y=()=>new Map,b=(e,t)=>{!e.h&&t.fields&&(e.h=!0)};class k{constructor(e=[],t={}){this.h=!1,this.l=new Map,this.p={conditionsMatcher:t.conditionsMatcher,fieldMatcher:t.fieldMatcher,resolveAction:t.resolveAction||p},this.g=t.detectSubjectType||u,this.$=e,this.m=this.A(e)}get rules(){return this.$}detectSubjectType(e){return a(e)?e:this.g(e)}update(e){let t={rules:e,ability:this,target:this};return this.M("update",t),this.$=e,this.m=this.A(e),this.M("updated",t),this}A(e){let t=new Map;for(let n=e.length-1;n>=0;n--){let r=e.length-n-1,o=new f(e[n],this.p,r),a=i(o.action),s=i(o.subject||"all");b(this,o);for(let e=0;ee.matchesField(n)):r}on(e,t){let n=this.l.get(e)||null,r=m(t,n);return this.l.set(e,r),()=>{r.next||r.prev||this.l.get(e)!==r?g(r):this.l.delete(e)}}M(e,t){let n=this.l.get(e)||null;for(;null!==n;){let e=n.prev;n.value(t),n=e}}}class w extends k{can(...e){let t=this.relevantRuleFor(...e);return!!t&&!t.inverted}relevantRuleFor(e,t,n){let r=this.detectSubjectType(t),i=this.rulesFor(e,r,n);for(let e=0,n=i.length;e{let t;return n=>(void 0===t&&(t=e.every(e=>-1===e.indexOf("*"))?null:function(e){let t=e.map(e=>e.replace(E,T).replace(D,O)),n=t.length>1?`(?:${t.join("|")})`:t[0];return RegExp(`^${n}$`)}(e)),null===t?-1!==e.indexOf(n):t.test(n))};class P extends w{constructor(e=[],t={}){super(e,Object.assign({conditionsMatcher:S,fieldMatcher:A},t))}}class R{constructor(e){this.j=e}because(e){return this.j.reason=e,this}}class M{constructor(e){this.rules=[],this.v=e,this.can=this.can.bind(this),this.cannot=this.cannot.bind(this),this.build=this.build.bind(this)}can(e,t,n,r){let i={action:e};return t&&(i.subject=t,Array.isArray(n)||"string"==typeof n?i.fields=n:void 0!==n&&(i.conditions=n),void 0!==r&&(i.conditions=r)),this.rules.push(i),new R(i)}cannot(e,t,n,r){let i=this.can(e,t,n,r);return i.j.inverted=!0,i}build(e){return new this.v(this.rules,e)}}let F=e=>`Cannot execute "${e.action}" on "${e.subjectType}"`,N=function(e){this.message=e};N.prototype=Object.create(Error.prototype);class I extends N{static setDefaultMessage(e){this._="string"==typeof e?()=>e:e}static from(e){return new this(e)}constructor(e){super(""),this.ability=e,"function"==typeof Error.captureStackTrace&&(this.name="ForbiddenError",Error.captureStackTrace(this,this.constructor))}setMessage(e){return this.message=e,this}throwUnlessCan(...e){let t=this.ability.relevantRuleFor(...e);if(t&&!t.inverted)return;this.action=e[0],this.subject=e[1],this.subjectType=l(this.ability.detectSubjectType(e[1])),this.field=e[2];let n=t?t.reason:"";throw this.message=this.message||n||this.constructor._(this),this}}I._=F;var L=Object.freeze({__proto__:null});t.Ability=P,t.AbilityBuilder=M,t.ForbiddenError=I,t.PureAbility=w,t.buildMongoQueryMatcher=(e,t,n)=>r.createFactory(Object.assign({},x,e),Object.assign({},_,t),n),t.createAliasResolver=function(e){return t=>(function(e,t){let n=i(t),r=0;for(;rn.build(t)):n.build(t)},t.detectSubjectType=u,t.fieldPatternMatcher=A,t.getDefaultErrorMessage=F,t.hkt=L,t.mongoQueryMatcher=S,t.subject=function(e,t){if(t){if(t.hasOwnProperty(o)){if(e!==t[o])throw Error(`Trying to cast object to subject type ${e} but previously it was casted to ${t[o]}`)}else Object.defineProperty(t,o,{value:e})}return t},t.wrapArray=i},17743:function(e){var t="undefined"!=typeof Element,n="function"==typeof Map,r="function"==typeof Set,i="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;e.exports=function(e,o){try{return function e(o,a){if(o===a)return!0;if(o&&a&&"object"==typeof o&&"object"==typeof a){var s,l,u,c;if(o.constructor!==a.constructor)return!1;if(Array.isArray(o)){if((s=o.length)!=a.length)return!1;for(l=s;0!=l--;)if(!e(o[l],a[l]))return!1;return!0}if(n&&o instanceof Map&&a instanceof Map){if(o.size!==a.size)return!1;for(c=o.entries();!(l=c.next()).done;)if(!a.has(l.value[0]))return!1;for(c=o.entries();!(l=c.next()).done;)if(!e(l.value[1],a.get(l.value[0])))return!1;return!0}if(r&&o instanceof Set&&a instanceof Set){if(o.size!==a.size)return!1;for(c=o.entries();!(l=c.next()).done;)if(!a.has(l.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(o)&&ArrayBuffer.isView(a)){if((s=o.length)!=a.length)return!1;for(l=s;0!=l--;)if(o[l]!==a[l])return!1;return!0}if(o.constructor===RegExp)return o.source===a.source&&o.flags===a.flags;if(o.valueOf!==Object.prototype.valueOf&&"function"==typeof o.valueOf&&"function"==typeof a.valueOf)return o.valueOf()===a.valueOf();if(o.toString!==Object.prototype.toString&&"function"==typeof o.toString&&"function"==typeof a.toString)return o.toString()===a.toString();if((s=(u=Object.keys(o)).length)!==Object.keys(a).length)return!1;for(l=s;0!=l--;)if(!Object.prototype.hasOwnProperty.call(a,u[l]))return!1;if(t&&o instanceof Element)return!1;for(l=s;0!=l--;)if(("_owner"!==u[l]&&"__v"!==u[l]&&"__o"!==u[l]||!o.$$typeof)&&!e(o[u[l]],a[u[l]]))return!1;return!0}return o!=o&&a!=a}(e,o)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}},3892:function(){"use strict";var e,t,n,r,i,o,a,s,l,u,c,d,h,p,f,m,g,v,y,b,k={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},w=console,x={};Object.keys(k).forEach(function(e){x[e]=w[e]});var _="Datadog Browser SDK:",S={debug:x.debug.bind(w,_),log:x.log.bind(w,_),info:x.info.bind(w,_),warn:x.warn.bind(w,_),error:x.error.bind(w,_)};function E(e,t){return function(){for(var n=[],r=0;r"}finally{r(),i(),o(),a()}}function Z(e){var t=e.toJSON;return t?(delete e.toJSON,function(){e.toJSON=t}):G}function K(e,t){return Object.keys(e).some(function(n){return e[n]===t})}function J(e){return 0===Object.keys(e).length}function X(e){var t=0,n=W(function(n){t=z(Y(n)),e()},200),r=n.throttled,i=n.cancel,o=function(){i(),t=0};return{updateCustomerData:function(e){J(e)?o():r(e)},resetCustomerData:o,getBytesCount:function(){return t},stop:function(){i()}}}function Q(e){return null===e?"null":Array.isArray(e)?"array":typeof e}function ee(e,t,n){if(void 0===n&&(n=function(){if("undefined"!=typeof WeakSet){var e=new WeakSet;return{hasAlreadyBeenSeen:function(t){var n=e.has(t);return n||e.add(t),n}}}var t=[];return{hasAlreadyBeenSeen:function(e){var n=t.indexOf(e)>=0;return n||t.push(e),n}}}()),void 0===t)return e;if("object"!=typeof t||null===t)return t;if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp){var r=t.flags||[t.global?"g":"",t.ignoreCase?"i":"",t.multiline?"m":"",t.sticky?"y":"",t.unicode?"u":""].join("");return new RegExp(t.source,r)}if(!n.hasAlreadyBeenSeen(t)){if(Array.isArray(t)){for(var i=Array.isArray(e)?e:[],o=0;ot){ei(t,"discarded",e);return}for(;o.length>0&&lt){ei(t,"truncated",e);break}u.target[d]=h}else for(var d in u.source)if(Object.prototype.hasOwnProperty.call(u.source,d)){var h=er(u.source[d],u.path,d,o,a);if(void 0!==h&&(l+=JSON.stringify(h).length+c+d.length+3,c=1),l>t){ei(t,"truncated",e);break}u.target[d]=h}}return r(),i(),s}function er(e,t,n,r,i){var o=function(e){if(e&&"function"==typeof e.toJSON)try{return e.toJSON()}catch(e){}return e}(e);if(!o||"object"!=typeof o)return"bigint"==typeof o?"[BigInt] ".concat(o.toString()):"function"==typeof o?"[Function] ".concat(o.name||"unknown"):"symbol"==typeof o?"[Symbol] ".concat(o.description||o.toString()):o;var a=function(e){try{if(e instanceof Event)return{isTrusted:e.isTrusted};var t=Object.prototype.toString.call(e).match(/\[object (.*)\]/);if(t&&t[1])return"[".concat(t[1],"]")}catch(e){}return"[Unserializable]"}(o);if("[Object]"!==a&&"[Array]"!==a&&"[Error]"!==a)return a;if(i.has(e))return"[Reference seen at ".concat(i.get(e),"]");var s=void 0!==n?"".concat(t,".").concat(n):t,l=Array.isArray(o)?[]:{};return i.set(e,s),r.push({source:o,target:l,path:s}),l}function ei(e,t,n){S.warn("The data provided has been ".concat(t," as it is over the limit of ").concat(e," characters:"),n)}var eo=function(){function e(e){this.onFirstSubscribe=e,this.observers=[]}return e.prototype.subscribe=function(e){var t=this;return!this.observers.length&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe(this)||void 0),this.observers.push(e),{unsubscribe:function(){t.observers=t.observers.filter(function(t){return e!==t}),!t.observers.length&&t.onLastUnsubscribe&&t.onLastUnsubscribe()}}},e.prototype.notify=function(e){this.observers.forEach(function(t){return t(e)})},e}();function ea(){for(var e=[],t=0;t eval")>-1,r=ek.exec(t[3]);return n&&r&&(t[3]=r[1],t[4]=r[2],t[5]=void 0),{args:t[2]?t[2].split(","):[],column:t[5]?+t[5]:void 0,func:t[1]||"?",line:t[4]?+t[4]:void 0,url:t[3]}}}(e);n&&(!n.func&&n.line&&(n.func="?"),t.push(n))}),{message:ew(e,"message"),name:ew(e,"name"),stack:t}}var ep="((?:file|https?|blob|chrome-extension|native|eval|webpack|snippet||\\w+\\.|\\/).*?)",ef="(?::(\\d+))",em=RegExp("^\\s*at (.*?) ?\\(".concat(ep).concat(ef,"?").concat(ef,"?\\)?\\s*$"),"i"),eg=new RegExp("\\((\\S*)".concat(ef).concat(ef,"\\)")),ev=RegExp("^\\s*at ?".concat(ep).concat(ef,"?").concat(ef,"??\\s*$"),"i"),ey=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,eb=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,ek=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function ew(e,t){if("object"==typeof e&&e&&t in e){var n=e[t];return"string"==typeof n?n:void 0}}var ex=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/,e_="No stack, consider using an instance of Error";function eS(e){var t=e.stackTrace,n=e.originalError,r=e.handlingStack,i=e.startClocks,o=e.nonErrorPrefix,a=e.source,s=e.handling,l=n instanceof Error,u=(null==t?void 0:t.message)&&(null==t?void 0:t.name)?t.message:l?"Empty message":"".concat(o," ").concat(Y(en(n))),c=void 0!==t&&(l||t.stack.length>0&&(t.stack.length>1||void 0!==t.stack[0].url))?eD(t):e_,d=l?ej(n,a):void 0,h=null==t?void 0:t.name,p=eE(n);return{startClocks:i,source:a,handling:s,handlingStack:r,originalError:n,type:h,message:u,stack:c,causes:d,fingerprint:p}}function eE(e){return e instanceof Error&&"dd_fingerprint"in e?String(e.dd_fingerprint):void 0}function eD(e){var t=eC(e);return e.stack.forEach(function(e){var n="?"===e.func?"":e.func,r=e.args&&e.args.length>0?"(".concat(e.args.join(", "),")"):"",i=e.line?":".concat(e.line):"",o=e.line&&e.column?":".concat(e.column):"";t+="\n at ".concat(n).concat(r," @ ").concat(e.url).concat(i).concat(o)}),t}function eC(e){return"".concat(e.name||"Error",": ").concat(e.message)}function ej(e,t){for(var n=e,r=[];(null==n?void 0:n.cause)instanceof Error&&r.length<10;){var i=eh(n.cause);r.push({message:n.cause.message,source:t,type:null==i?void 0:i.name,stack:i&&eD(i)}),n=n.cause}return r.length?r:void 0}(t=s||(s={})).PAGEHIDE="pagehide",t.FEATURE_FLAGS="feature_flags",t.RESOURCE_PAGE_STATES="resource_page_states",t.COLLECT_FLUSH_REASON="collect_flush_reason",t.ZERO_LCP_TELEMETRY="zero_lcp_telemetry",t.DISABLE_REPLAY_INLINE_CSS="disable_replay_inline_css",t.WRITABLE_RESOURCE_GRAPHQL="writable_resource_graphql",t.CUSTOM_VITALS="custom_vitals",t.TOLERANT_RESOURCE_TIMINGS="tolerant_resource_timings";var eO=new Set,eT="datadoghq.com",eA="pci.browser-intake-datadoghq.com";function eP(){return new Date().getTime()}function eR(){return performance.now()}function eM(){return{relative:eR(),timeStamp:eP()}}function eF(){return void 0===l&&(l=performance.timing.navigationStart),l}function eN(e,t){var n=window.__ddBrowserSdkExtensionCallback;n&&n({type:e,payload:t})}function eI(e){return 0!==e&&100*Math.random()<=e}function eL(e){return"number"==typeof e&&e>=0&&e<=100}var eB={log:"log",configuration:"configuration",usage:"usage"},ez=["https://www.datadoghq-browser-agent.com","https://www.datad0g-browser-agent.com","https://d3uc069fcn7uxw.cloudfront.net","https://d20xtzwzcl0ceb.cloudfront.net","http://localhost",""],eU=["ddog-gov.com"],eq={maxEventsPerPage:0,sentEventCount:0};function e$(e,t){P(k.debug,e,t),eV(I({type:eB.log,message:e,status:"debug"},t))}function eH(e,t){eV(I({type:eB.log,status:"error"},function(e){if(e instanceof Error){var t=eh(e);return{error:{kind:t.name,stack:eD((t.stack=t.stack.filter(function(e){return!e.url||ez.some(function(t){return N(e.url,t)})}),t))},message:t.message}}return{error:{stack:e_},message:"".concat("Uncaught"," ").concat(Y(e))}}(e),t))}function eV(e){u&&eq.sentEventCount=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},eK={debug:"debug",error:"error",info:"info",warn:"warn"},eJ={console:"console",http:"http"},eX=Object.keys(eK),eQ=function(){function e(e,t,n,r,i,o){void 0===r&&(r=eJ.http),void 0===i&&(i=eK.debug),void 0===o&&(o={}),this.handleLogStrategy=e,this.handlerType=r,this.level=i,this.contextManager=es(t),this.contextManager.setContext(o),n&&this.contextManager.setContextProperty("logger",{name:n})}return e.prototype.log=function(e,t,n,r){if(void 0===n&&(n=eK.info),null!=r){var i,o=eS({stackTrace:r instanceof Error?eh(r):void 0,originalError:r,nonErrorPrefix:"Provided",source:eY.LOGGER,handling:"handled",startClocks:eM()});i={stack:o.stack,kind:o.type,message:o.message,causes:o.causes}}var a=en(t),s=i?et({error:i},a):a;this.handleLogStrategy({message:en(e),context:s,status:n},this)},e.prototype.debug=function(e,t,n){this.log(e,t,eK.debug,n)},e.prototype.info=function(e,t,n){this.log(e,t,eK.info,n)},e.prototype.warn=function(e,t,n){this.log(e,t,eK.warn,n)},e.prototype.error=function(e,t,n){this.log(e,t,eK.error,n)},e.prototype.setContext=function(e){this.contextManager.setContext(e)},e.prototype.getContext=function(){return this.contextManager.getContext()},e.prototype.setContextProperty=function(e,t){this.contextManager.setContextProperty(e,t)},e.prototype.removeContextProperty=function(e){this.contextManager.removeContextProperty(e)},e.prototype.clearContext=function(){this.contextManager.clearContext()},e.prototype.setHandler=function(e){this.handlerType=e},e.prototype.getHandler=function(){return this.handlerType},e.prototype.setLevel=function(e){this.level=e},e.prototype.getLevel=function(){return this.level},eZ([O],e.prototype,"log",null),e}();function e0(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}var e1=function(){function e(){this.buffer=[]}return e.prototype.add=function(e){this.buffer.push(e)>500&&this.buffer.splice(0,1)},e.prototype.remove=function(e){e0(this.buffer,e)},e.prototype.drain=function(e){this.buffer.forEach(function(t){return t(e)}),this.buffer.length=0},e}();function e2(){var e=L().DatadogEventBridge;if(e)return{getCapabilities:function(){var t;return JSON.parse((null===(t=e.getCapabilities)||void 0===t?void 0:t.call(e))||"[]")},getPrivacyLevel:function(){var t;return null===(t=e.getPrivacyLevel)||void 0===t?void 0:t.call(e)},getAllowedWebViewHosts:function(){return JSON.parse(e.getAllowedWebViewHosts())},send:function(t,n,r){e.send(JSON.stringify({eventType:t,event:n,view:r?{id:r}:void 0}))}}}function e3(e){void 0===e&&(e=null===(t=L().location)||void 0===t?void 0:t.hostname);var t,n=e2();return!!n&&n.getAllowedWebViewHosts().some(function(t){var n,r;return e===t||(n=e,r=".".concat(t),n.slice(-r.length)===r)})}function e5(e){return e?(parseInt(e,10)^16*Math.random()>>parseInt(e,10)/4).toString(16):"".concat(1e7,"-").concat(1e3,"-").concat(4e3,"-").concat(8e3,"-").concat(1e11).replace(/[018]/g,e5)}var e4=/([\w-]+)\s*=\s*([^;]+)/g;function e6(e,t,n,r){var i=new Date;i.setTime(i.getTime()+n);var o="expires=".concat(i.toUTCString()),a=r&&r.crossSite?"none":"strict",s=r&&r.domain?";domain=".concat(r.domain):"",l=r&&r.secure?";secure":"",u=r&&r.partitioned?";partitioned":"";document.cookie="".concat(e,"=").concat(t,";").concat(o,";path=/;samesite=").concat(a).concat(s).concat(l).concat(u)}function e8(e){return function(e,t){for(e4.lastIndex=0;;){var n=e4.exec(e);if(n){if(n[1]===t)return n[2]}else break}}(document.cookie,e)}function e9(e){return d||(d=function(e){var t=new Map;for(e4.lastIndex=0;;){var n=e4.exec(e);if(n)t.set(n[1],n[2]);else break}return t}(document.cookie)),d.get(e)}function e7(e,t){e6(e,"",0,t)}var te="_dd_s",tt=/^([a-z]+)=([a-z0-9-]+)$/;function tn(e){e.expire=String(eP()+9e5)}function tr(e){return Object.keys(e).map(function(t){return[t,e[t]]}).map(function(e){var t=e[0],n=e[1];return"".concat(t,"=").concat(n)}).join("&")}function ti(e){var t={};return e&&(-1!==e.indexOf("&")||tt.test(e))&&e.split("&").forEach(function(e){var n=tt.exec(e);if(null!==n){var r=n[1],i=n[2];t[r]=i}}),t}function to(){return ti(e8(te))}function ta(e){localStorage.setItem(te,tr(e))}function ts(){return ti(localStorage.getItem(te))}function tl(){localStorage.removeItem(te)}var tu=[];function tc(e,t,n){void 0===n&&(n=0);var r,i,o=t.isLockEnabled,a=t.retrieveSession,s=t.persistSession,l=t.clearSession;if(p||(p=e),e!==p){tu.push(e);return}if(o&&n>=100){th(t);return}var u=a();if(o&&(u.lock||(i=e5(),u.lock=i,s(u),(u=a()).lock!==i))){td(e,t,n);return}var c=e.process(u);if(o&&(u=a()).lock!==i){td(e,t,n);return}if(c&&(J(c)?l():(tn(c),s(c))),o&&!(c&&J(c))){if((u=a()).lock!==i){td(e,t,n);return}delete u.lock,s(u),c=u}null===(r=e.after)||void 0===r||r.call(e,c||u),th(t)}function td(e,t,n){q(function(){tc(e,t,n+1)},10)}function th(e){p=void 0;var t=tu.shift();t&&tc(t,e)}function tp(e){return function(e,t){var n=function(){if(void 0===f)try{var e=new tf("http://test/path");f="http://test/path"===e.href}catch(e){f=!1}return f?tf:void 0}();if(n)try{return void 0!==t?new n(e,t):new n(e)}catch(n){throw Error("Failed to construct URL: ".concat(String(n)," ").concat(Y({url:e,base:t})))}if(void 0===t&&!/:/.test(e))throw Error("Invalid URL: '".concat(e,"'"));var r=document,i=r.createElement("a");if(void 0!==t){var o=(r=document.implementation.createHTMLDocument("")).createElement("base");o.href=t,r.head.appendChild(o),r.body.appendChild(i)}return i.href=e,i}(e,location.href).href}var tf=URL;function tm(e,t,n){var r=function(e,t){var n="/api/v2/".concat(t),r=e.proxy;if("string"==typeof r){var i=tp(r);return function(e){return"".concat(i,"?ddforward=").concat(encodeURIComponent("".concat(n,"?").concat(e)))}}if("function"==typeof r)return function(e){return r({path:n,parameters:e})};var o=function(e,t){var n=t.site,r=void 0===n?eT:n,i=t.internalAnalyticsSubdomain;if("logs"===e&&t.usePciIntake&&r===eT)return eA;if(i&&r===eT)return"".concat(i,".").concat(eT);if("dd0g-gov.com"===r)return"http-intake.logs.".concat(r);var o=r.split("."),a=o.pop();return"browser-intake-".concat(o.join("-"),".").concat(a)}(t,e);return function(e){return"https://".concat(o).concat(n,"?").concat(e)}}(e,t);return{build:function(i,o){var a,l,u,c,d,h,p,f;return r((l=e.clientToken,u=e.internalAnalyticsSubdomain,c=o.retry,d=o.flushReason,h=o.encoding,p=["sdk_version:".concat("5.16.0"),"api:".concat(i)].concat(n),d&&(a=s.COLLECT_FLUSH_REASON,eO.has(a))&&p.push("flush_reason:".concat(d)),c&&p.push("retry_count:".concat(c.count),"retry_after:".concat(c.lastFailureStatus)),f=["ddsource=browser","ddtags=".concat(encodeURIComponent(p.join(","))),"dd-api-key=".concat(l),"dd-evp-origin-version=".concat(encodeURIComponent("5.16.0")),"dd-evp-origin=browser","dd-request-id=".concat(e5())],h&&f.push("dd-evp-encoding=".concat(h)),"rum"===t&&f.push("batch_time=".concat(eP())),u&&f.reverse(),f.join("&")))},urlPrefix:r(""),trackType:t}}var tg=/[^a-z0-9_:./-]/;function tv(e,t){var n=200-e.length-1;(t.length>n||tg.test(t))&&S.warn("".concat(e," value doesn't meet tag requirements and will be sanitized"));var r=t.replace(/,/g,"_");return"".concat(e,":").concat(r)}var ty={intervention:"intervention",deprecation:"deprecation",cspViolation:"csp_violation"};function tb(e,t,n,r,i){return n?eD({name:e,message:t,stack:[{func:"?",url:n,line:null!=r?r:void 0,column:null!=i?i:void 0}]}):void 0}function tk(e,t,n){var r;if(void 0===e)return[];if(!("all"===e||Array.isArray(e)&&e.every(function(e){return R(t,e)}))){S.error("".concat(n,' should be "all" or an array with allowed values "').concat(t.join('", "'),'"'));return}return"all"===e?t:(r=new Set,e.forEach(function(e){return r.add(e)}),M(r))}var tw="logs",tx={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};function t_(){return!!(window._DATADOG_SYNTHETICS_INJECTS_RUM||e9("datadog-synthetics-injects-rum"))}var tS=1/0,tE=function(){function e(e,t){var n=this;this.expireDelay=e,this.maxEntries=t,this.entries=[],this.clearOldValuesInterval=H(function(){return n.clearOldValues()},6e4)}return e.prototype.add=function(e,t){var n=this,r={value:e,startTime:t,endTime:tS,remove:function(){e0(n.entries,r)},close:function(e){r.endTime=e}};return this.maxEntries&&this.entries.length>=this.maxEntries&&this.entries.pop(),this.entries.unshift(r),r},e.prototype.find=function(e){void 0===e&&(e=tS);for(var t=0,n=this.entries;t0&&this.entries[this.entries.length-1].endTimet.requestErrorResponseLengthLimit?"".concat(e.substring(0,t.requestErrorResponseLengthLimit),"..."):e}var tL=function(){function e(){this.callbacks={}}return e.prototype.notify=function(e,t){var n=this.callbacks[e];n&&n.forEach(function(e){return e(t)})},e.prototype.subscribe=function(e,t){var n=this;return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(t),{unsubscribe:function(){n.callbacks[e]=n.callbacks[e].filter(function(e){return t!==e})}}},e}(),tB=((b={})[eK.debug]=0,b[eK.info]=1,b[eK.warn]=2,b[eK.error]=3,b);function tz(e,t,n){var r=n.getHandler(),i=Array.isArray(r)?r:[r];return tB[e]>=tB[n.getLevel()]&&R(i,t)}var tU=function(){function e(e,t,n,r){var i=this;this.encoder=e,this.request=t,this.flushController=n,this.messageBytesLimit=r,this.upsertBuffer={},this.flushSubscription=this.flushController.flushObservable.subscribe(function(e){return i.flush(e)})}return e.prototype.add=function(e){this.addOrUpdate(e)},e.prototype.upsert=function(e,t){this.addOrUpdate(e,t)},e.prototype.stop=function(){this.flushSubscription.unsubscribe()},e.prototype.flush=function(e){var t,n=F(this.upsertBuffer).join("\n");this.upsertBuffer={};var r=(t=e.reason,R(F(tx),t)),i=r?this.request.sendOnExit:this.request.send;if(r&&this.encoder.isAsync){var o=this.encoder.finishSync();o.outputBytesCount&&i(tq(o,e));var a=[o.pendingData,n].filter(Boolean).join("\n");a&&i({data:a,bytesCount:z(a),flushReason:e.reason})}else n&&this.encoder.write(this.encoder.isEmpty?n:"\n".concat(n)),this.encoder.finish(function(t){i(tq(t,e))})},e.prototype.addOrUpdate=function(e,t){var n=Y(e),r=this.encoder.estimateEncodedBytesCount(n);if(r>=this.messageBytesLimit){S.warn("Discarded a message whose size was bigger than the maximum allowed size ".concat(this.messageBytesLimit,"KB."));return}this.hasMessageFor(t)&&this.remove(t),this.push(n,r,t)},e.prototype.push=function(e,t,n){var r=this;this.flushController.notifyBeforeAddMessage(t),void 0!==n?(this.upsertBuffer[n]=e,this.flushController.notifyAfterAddMessage()):this.encoder.write(this.encoder.isEmpty?e:"\n".concat(e),function(e){r.flushController.notifyAfterAddMessage(e-t)})},e.prototype.remove=function(e){var t=this.upsertBuffer[e];delete this.upsertBuffer[e];var n=this.encoder.estimateEncodedBytesCount(t);this.flushController.notifyAfterRemoveMessage(n)},e.prototype.hasMessageFor=function(e){return void 0!==e&&void 0!==this.upsertBuffer[e]},e}();function tq(e,t){return{data:"string"==typeof e.output?e.output:new Blob([e.output],{type:"text/plain"}),bytesCount:e.outputBytesCount,encoding:e.encoding,flushReason:t.reason}}function t$(e,t,n,r,i){0===t.transportStatus&&0===t.queuedPayloads.size()&&t.bandwidthMonitor.canHandle(e)?tH(e,t,n,{onSuccess:function(){return tV(0,t,n,r,i)},onFailure:function(){t.queuedPayloads.enqueue(e),function e(t,n,r,i){2===t.transportStatus&&q(function(){tH(t.queuedPayloads.first(),t,n,{onSuccess:function(){t.queuedPayloads.dequeue(),t.currentBackoffTime=1e3,tV(1,t,n,r,i)},onFailure:function(){t.currentBackoffTime=Math.min(6e4,2*t.currentBackoffTime),e(t,n,r,i)}})},t.currentBackoffTime)}(t,n,r,i)}}):t.queuedPayloads.enqueue(e)}function tH(e,t,n,r){var i=r.onSuccess,o=r.onFailure;t.bandwidthMonitor.add(e),n(e,function(n){t.bandwidthMonitor.remove(e),"opaque"!==n.type&&(0===n.status&&!navigator.onLine||408===n.status||429===n.status||n.status>=500)?(t.transportStatus=t.bandwidthMonitor.ongoingRequestCount>0?1:2,e.retry={count:e.retry?e.retry.count+1:1,lastFailureStatus:n.status},o()):(t.transportStatus=0,i())})}function tV(e,t,n,r,i){0===e&&t.queuedPayloads.isFull()&&!t.queueFullReported&&(i({message:"Reached max ".concat(r," events size queued for upload: ").concat(3,"MiB"),source:eY.AGENT,startClocks:eM()}),t.queueFullReported=!0);var o=t.queuedPayloads;for(t.queuedPayloads=tW();o.size()>0;)t$(o.dequeue(),t,n,r,i)}function tW(){var e=[];return{bytesCount:0,enqueue:function(t){this.isFull()||(e.push(t),this.bytesCount+=t.bytesCount)},first:function(){return e[0]},dequeue:function(){var t=e.shift();return t&&(this.bytesCount-=t.bytesCount),t},size:function(){return e.length},isFull:function(){return this.bytesCount>=3145728}}}var tG=!1;function tY(e,t,n,r){var i=new XMLHttpRequest;i.open("POST",t,!0),n instanceof Blob&&i.setRequestHeader("Content-Type",n.type),eu(e,i,["loadend"],function(){null==r||r({status:i.status})},{once:!0}),i.send(n)}function tZ(e,t,n,r,i,o){var a=l(e,t),s=n&&l(e,n);function l(e,t){var n,a,s,l=t.endpoint,u=t.encoder;return new tU(u,(n=e.batchBytesLimit,a={transportStatus:0,currentBackoffTime:1e3,bandwidthMonitor:{ongoingRequestCount:0,ongoingByteCount:0,canHandle:function(e){return 0===this.ongoingRequestCount||this.ongoingByteCount+e.bytesCount<=81920&&this.ongoingRequestCount<32},add:function(e){this.ongoingRequestCount+=1,this.ongoingByteCount+=e.bytesCount},remove:function(e){this.ongoingRequestCount-=1,this.ongoingByteCount-=e.bytesCount}},queuedPayloads:tW(),queueFullReported:!1},s=function(t,r){return function(e,t,n,r,i){if(function(){try{return window.Request&&"keepalive"in new Request("http://a")}catch(e){return!1}}()&&r.bytesCount=r&&h("bytes_limit"),d+=1,c+=e,void 0===t&&(t=q(function(){h("duration_limit")},i))},notifyAfterAddMessage:function(e){void 0===e&&(e=0),c+=e,d>=n?h("messages_limit"):c>=r&&h("bytes_limit")},notifyAfterRemoveMessage:function(e){c-=e,0==(d-=1)&&p()}}}({messagesLimit:e.batchMessagesLimit,bytesLimit:e.batchBytesLimit,durationLimit:e.flushTimeout,pageExitObservable:i,sessionExpireObservable:o}),e.messageBytesLimit)}return{flushObservable:a.flushController.flushObservable,add:function(e,t){void 0===t&&(t=!0),a.add(e),s&&t&&s.add(n.transformMessage?n.transformMessage(e):e)},upsert:function(e,t){a.upsert(e,t),s&&s.upsert(n.transformMessage?n.transformMessage(e):e,t)},stop:function(){a.stop(),null==s||s.stop()}}}function tK(){var e="",t=0;return{isAsync:!1,get isEmpty(){return!e},write:function(n,r){var i=z(n);t+=i,e+=n,r&&r(i)},finish:function(e){e(this.finishSync())},finishSync:function(){var n={output:e,outputBytesCount:t,rawBytesCount:t,pendingData:""};return e="",t=0,n},estimateEncodedBytesCount:function(e){return e.length}}}var tJ=function(e){var t,n,r,i=function(e){void 0===e&&(e=2);var t=new Map,n=!1;function r(r){if(void 0===r&&(r=0),!n&&0!==e){var i=2===e?3072:16384,o=r;t.forEach(function(e){o+=e.getBytesCount()}),o>i&&(S.warn("Customer data exceeds the recommended ".concat(i/1024,"KiB threshold. More details: https://docs.datadoghq.com/real_user_monitoring/browser/troubleshooting/#customer-data-exceeds-the-recommended-threshold-warning")),n=!0)}}return{createDetachedTracker:function(){var e=X(function(){return r(e.getBytesCount())});return e},getOrCreateTracker:function(e){return t.has(e)||t.set(e,X(r)),t.get(e)},setCompressionStatus:function(t){0===e&&(e=t,r())},getCompressionStatus:function(){return e},stop:function(){t.forEach(function(e){return e.stop()}),t.clear()}}}(),o=es(i.getOrCreateTracker(2)),a=es(i.getOrCreateTracker(1)),l={tryToInit:function(e){t||(t=e)},update:function(e){t=e,n.notify()},isGranted:function(){return t===el.GRANTED},observable:n=new eo};function u(){return{view:{referrer:document.referrer,url:window.location.href},context:o.getContext(),user:a.getContext()}}var c=function(e,t,n){var r,i,o=new e1,a=t.observable.subscribe(l);function l(){if(i&&r&&t.isGranted()){a.unsubscribe();var e=n(r,i);o.drain(e)}}return{init:function(e){if(!e){S.error("Missing configuration");return}if(e3()&&(e=I({},e,{clientToken:"empty"})),r=e,i){eG("DD_LOGS",e);return}var n=function(e){!0===e.usePciIntake&&e.site&&"datadoghq.com"!==e.site&&S.warn("PCI compliance for Logs is only available for Datadog organizations in the US1 site. Default intake will be used.");var t=function(e){var t,n,r,i,o,a,l,u,c,d,p,f,m,g,v;if(!e||!e.clientToken){S.error("Client Token is not configured, we will not send any data.");return}if(void 0!==e.sessionSampleRate&&!eL(e.sessionSampleRate)){S.error("Session Sample Rate should be a number between 0 and 100");return}if(void 0!==e.telemetrySampleRate&&!eL(e.telemetrySampleRate)){S.error("Telemetry Sample Rate should be a number between 0 and 100");return}if(void 0!==e.telemetryConfigurationSampleRate&&!eL(e.telemetryConfigurationSampleRate)){S.error("Telemetry Configuration Sample Rate should be a number between 0 and 100");return}if(void 0!==e.telemetryUsageSampleRate&&!eL(e.telemetryUsageSampleRate)){S.error("Telemetry Usage Sample Rate should be a number between 0 and 100");return}if(void 0!==e.trackingConsent&&!K(el,e.trackingConsent)){S.error('Tracking Consent should be either "granted" or "not-granted"');return}return Array.isArray(e.enableExperimentalFeatures)&&function(e){e.forEach(function(e){eO.add(e)})}(e.enableExperimentalFeatures.filter(function(e){return K(s,e)})),I({beforeSend:e.beforeSend&&E(e.beforeSend,"beforeSend threw an error:"),sessionStoreStrategyType:((g=!function(e){if(void 0===document.cookie||null===document.cookie)return!1;try{var t="dd_cookie_test_".concat(e5()),n="test";e6(t,n,6e4,e);var r=e8(t)===n;return e7(t,e),r}catch(e){return S.error(e),!1}}(((m={}).secure=!!e.useSecureSessionCookie||!!e.usePartitionedCrossSiteSessionCookie||!!e.useCrossSiteSessionCookie,m.crossSite=!!e.usePartitionedCrossSiteSessionCookie||!!e.useCrossSiteSessionCookie,m.partitioned=!!e.usePartitionedCrossSiteSessionCookie,e.trackSessionAcrossSubdomains&&(m.domain=function(){if(void 0===h){for(var e="dd_site_test_".concat(e5()),t=window.location.hostname.split("."),n=t.pop();t.length&&!e8(e);)e6(e,"test",1e3,{domain:n="".concat(t.pop(),".").concat(n)});e7(e,{domain:n}),h=n}return h}()),m))?void 0:{type:"Cookie",cookieOptions:m})||!e.allowFallbackToLocalStorage||(g=function(){try{var e=e5(),t="".concat("_dd_test_").concat(e);localStorage.setItem(t,e);var n=localStorage.getItem(t);return localStorage.removeItem(t),e===n?{type:"LocalStorage"}:void 0}catch(e){return}}()),g),sessionSampleRate:null!==(t=e.sessionSampleRate)&&void 0!==t?t:100,telemetrySampleRate:null!==(n=e.telemetrySampleRate)&&void 0!==n?n:20,telemetryConfigurationSampleRate:null!==(r=e.telemetryConfigurationSampleRate)&&void 0!==r?r:5,telemetryUsageSampleRate:null!==(i=e.telemetryUsageSampleRate)&&void 0!==i?i:5,service:e.service,silentMultipleInit:!!e.silentMultipleInit,allowUntrustedEvents:!!e.allowUntrustedEvents,trackingConsent:null!==(o=e.trackingConsent)&&void 0!==o?o:el.GRANTED,batchBytesLimit:16384,eventRateLimiterThreshold:3e3,maxTelemetryEventsPerPage:15,flushTimeout:3e4,batchMessagesLimit:50,messageBytesLimit:262144},(a=e.site||eT,l=e.env,u=e.service,c=e.version,d=e.datacenter,p=[],l&&p.push(tv("env",l)),u&&p.push(tv("service",u)),c&&p.push(tv("version",c)),d&&p.push(tv("datacenter",d)),v=F(f={logsEndpointBuilder:tm(e,"logs",p),rumEndpointBuilder:tm(e,"rum",p),sessionReplayEndpointBuilder:tm(e,"replay",p)}).map(function(e){return e.urlPrefix}),a===eT&&v.push("https://".concat(eA,"/")),I({isIntakeUrl:function(e){return v.some(function(t){return 0===e.indexOf(t)})},replica:function(e,t,n){if(e.replica){var r=I({},e,{site:eT,clientToken:e.replica.clientToken}),i={logsEndpointBuilder:tm(r,"logs",n),rumEndpointBuilder:tm(r,"rum",n)};return t.push.apply(t,F(i).map(function(e){return e.urlPrefix})),I({applicationId:e.replica.applicationId},i)}}(e,v,p),site:a},f)))}(e),n=tk(e.forwardConsoleLogs,F(k),"Forward Console Logs"),r=tk(e.forwardReports,F(ty),"Forward Reports");if(t&&n&&r)return e.forwardErrorsToLogs&&!R(n,k.error)&&n.push(k.error),I({forwardErrorsToLogs:!1!==e.forwardErrorsToLogs,forwardConsoleLogs:n,forwardReports:r,requestErrorResponseLengthLimit:32768},t)}(e);n&&(i=n,t.tryToInit(n.trackingConsent),l())},get initConfiguration(){return r},getInternalContext:G,handleLog:function(t,n,r,i){void 0===r&&(r=e()),void 0===i&&(i=eP()),o.add(function(e){return e.handleLog(t,n,r,i)})}}}(u,l,function(t,n){t.storeContextsAcrossPages&&(ed(n,o,tw,2),ed(n,a,tw,1));var r=e(t,n,u,l);return c=I({init:function(e){eG("DD_LOGS",e)},initConfiguration:t},r),r}),d={};return Object.defineProperty(r=I({version:"5.16.0",onReady:function(e){e()}},{logger:new eQ(function(){for(var e=[],t=0;t=500)&&("xhr"in r?d("string"==typeof(i=r.xhr).response?tI(i.response,e):i.response):r.response?(o=r.response,a=d,(s=function(e){try{return e.clone()}catch(e){return}}(o))&&s.body?window.TextDecoder?(l=s.body,u=e.requestErrorResponseLengthLimit,c=function(e,t){e?a("Unable to retrieve response: ".concat(e)):a(t)},function(e,t,n){var r=e.getReader(),i=[],o=0;function a(){if(r.cancel().catch(G),n.collectStreamBody){if(1===i.length)s=i[0];else{s=new Uint8Array(o);var e,a,s,l=0;i.forEach(function(e){s.set(e,l),l+=e.length})}e=s.slice(0,n.bytesLimit),a=s.length>n.bytesLimit}t(void 0,e,a)}(function e(){r.read().then(T(function(t){if(t.done){a();return}n.collectStreamBody&&i.push(t.value),(o+=t.value.length)>n.bytesLimit?a():e()}),T(function(e){return t(e)}))})()}(l,function(e,t,n){if(e)c(e);else{var r=new TextDecoder().decode(t);n&&(r+="..."),c(void 0,r)}},{bytesLimit:u,collectStreamBody:!0})):s.text().then(T(function(t){return a(tI(t,e))}),T(function(e){return a("Unable to retrieve response: ".concat(e))})):a()):r.error&&d(tI(eD(eh(r.error)),e)))}e.forwardErrorsToLogs&&((v||(v=new eo(function(t){var n=tR(XMLHttpRequest.prototype,"open",tF).stop,r=tR(XMLHttpRequest.prototype,"send",function(n){(function(e,t,n){var r=e.target,i=tM.get(r);if(i){i.state="start",i.startClocks=eM(),i.isAborted=!1,i.xhr=r;var o=!1,a=tR(r,"onreadystatechange",function(){r.readyState===XMLHttpRequest.DONE&&s()}).stop,s=function(){var e;l(),a(),o||(o=!0,i.state="complete",i.duration=(e=i.startClocks.timeStamp,eP()-e),i.status=r.status,n.notify(I({},i)))},l=eu(t,r,["loadend"],s,void 0).stop;n.notify(i)}})(n,e,t)}).stop,i=tR(XMLHttpRequest.prototype,"abort",tN).stop;return function(){n(),r(),i()}})),v).subscribe(function(e){"complete"===e.state&&n("xhr",e)}),(y||(y=new eo(function(e){if(window.fetch)return tR(window,"fetch",function(t){var n,r,i,o,a,s,l,u;return n=t.parameters,r=t.onPostCall,i=n[0],void 0===(a=(o=n[1])&&o.method)&&i instanceof Request&&(a=i.method),s=void 0!==a?String(a).toUpperCase():"GET",l=i instanceof Request?i.url:tp(String(i)),u={state:"start",init:o,input:i,method:s,startClocks:eM(),url:l},void(e.notify(u),n[0]=u.input,n[1]=u.init,r(function(t){return function(e,t,n){var r=function(t){n.state="resolve","stack"in t||t instanceof Error?(n.status=0,n.isAborted=t instanceof DOMException&&t.code===DOMException.ABORT_ERR,n.error=t):"status"in t&&(n.response=t,n.responseType=t.type,n.status=t.status,n.isAborted=!1),e.notify(n)};t.then(T(r),T(r))}(e,t,u)}))}).stop})),y).subscribe(function(e){"resolve"===e.state&&n("fetch",e)}))}(t,i),function(e,t){if(e.forwardErrorsToLogs){var n,r,i,o,a=new eo;(i=(n=r=function(e,t){var n=eS({stackTrace:e,originalError:t,startClocks:eM(),nonErrorPrefix:"Uncaught",source:eY.SOURCE,handling:"unhandled"});a.notify(n)},tR(window,"onerror",function(e){var t,r,i,o,a,s=e.parameters,l=s[0],u=s[1],c=s[2],d=s[3],h=s[4];n(a=h instanceof Error?eh(h):{name:("[object String]"===({}).toString.call(l)&&(r=(t=ex.exec(l))[1],i=t[2]),o={name:r,message:i}).name,message:o.message,stack:[{url:u,column:d,line:c}]},null!=h?h:l)})).stop,o=tR(window,"onunhandledrejection",function(e){var t=e.parameters[0].reason||"Empty reason";r(eh(t),t)}).stop,{stop:function(){i(),o()}}).stop,a.subscribe(function(e){t.notify(0,{rawLogsEvent:{message:e.message,date:e.startClocks.timeStamp,error:{kind:e.type,stack:e.stack,causes:e.causes},origin:eY.SOURCE,status:eK.error}})})}}(t,i),function(e,t){var n;(n=e.forwardConsoleLogs.map(function(e){return tT[e]||(tT[e]=new eo(function(t){var n=w[e];return w[e]=function(){for(var r=[],i=0;i=55296&&i<=56319?101:100,r.length<=o?r:"".concat(r.slice(0,o)).concat("...")),'"'):"no policy",n.sourceFile,n.lineNumber,n.columnNumber),originalReport:n}))},void 0).stop})),(S=b.filter(function(e){return e!==ty.cspViolation})).length&&_.push(new eo(function(e){if(window.ReportingObserver){var t=T(function(t,n){return t.forEach(function(t){var n,r;e.notify({type:n=t.type,subtype:(r=t.body).id,message:"".concat(n,": ").concat(r.message),originalReport:t,stack:tb(r.id,r.message,r.sourceFile,r.lineNumber,r.columnNumber)})})}),n=new window.ReportingObserver(t,{types:S,buffered:!0});return n.observe(),function(){n.disconnect()}}})),ea.apply(void 0,_)).subscribe(function(e){var t,n,r,o=e.message,a=tP[e.type];a===eK.error?r={kind:e.subtype,stack:e.stack}:e.stack&&(o+=" Found in ".concat((t=e.stack,null===(n=/@ (.+)/.exec(t))||void 0===n?void 0:n[1]))),i.notify(0,{rawLogsEvent:{date:eP(),message:o,origin:eY.REPORT,error:r,status:a}})}),E=eX.concat(["custom"]),D={},E.forEach(function(e){var n,r,i;D[e]=(n=t.eventRateLimiterThreshold,r=0,i=!1,{isLimitReached:function(){if(0===r&&q(function(){r=0},6e4),(r+=1)<=n||i)return i=!1,!1;if(r===n+1){i=!0;try{d({message:"Reached max number of ".concat(e,"s by minute: ").concat(n),source:eY.AGENT,startClocks:eM()})}finally{i=!1}}return!0}})}),i.subscribe(0,function(e){var r,o,a=e.rawLogsEvent,s=e.messageContext,l=e.savedCommonContext,u=e.domainContext,c=a.date-eF(),d=p.findTrackedSession(c);if(d){var h=(void 0===l?void 0:l)||n(),f=et({service:t.service,session_id:d.id,usr:J(h.user)?void 0:h.user,view:h.view},h.context,tO(c),a,void 0===s?void 0:s);(null===(r=t.beforeSend)||void 0===r?void 0:r.call(t,f,u))===!1||f.origin!==eY.AGENT&&(null!==(o=D[f.status])&&void 0!==o?o:D.custom).isLimitReached()||i.notify(1,f)}}),e3())!function(e){var t=e2();e.subscribe(1,function(e){t.send("log",e)})}(i);else{var m,g,b,_,S,E,D,C,j=(C=tZ(t,{endpoint:t.logsEndpointBuilder,encoder:tK()},t.replica&&{endpoint:t.replica.logsEndpointBuilder,encoder:tK()},d,h,p.expireObservable),i.subscribe(1,function(e){C.add(e)}),C).stop;l.push(function(){return j()})}return{handleLog:function(e,t,n,r){var o=et(t.getContext(),e.context);tz(e.status,eJ.console,t)&&function(e,t){x[e.status].call(w,e.message,t)}(e,o),tz(e.status,eJ.http,t)&&i.notify(0,{rawLogsEvent:{date:r||eP(),message:e.message,status:e.status,origin:eY.LOGGER},messageContext:o,savedCommonContext:n})},getInternalContext:function(e){var t=p.findTrackedSession(e);if(t)return{session_id:t.id}},stop:function(){l.forEach(function(e){return e()})}}});i=(n=L())[r="DD_LOGS"],n[r]=tJ,i&&i.q&&i.q.forEach(function(e){return E(e,"onReady callback threw an error:")()})},90824:function(e,t,n){"use strict";n.d(t,{AA:function(){return O},AK:function(){return d},F1:function(){return A},HD:function(){return m},IV:function(){return U},Kn:function(){return p},Le:function(){return w},P2:function(){return I},RR:function(){return j},Sm:function(){return P},U7:function(){return D},Vp:function(){return u},W6:function(){return k},WE:function(){return b},Wx:function(){return C},Xh:function(){return L},Y8:function(){return R},c4:function(){return F},cn:function(){return z},cx:function(){return S},jL:function(){return x},jv:function(){return M},kJ:function(){return f},mf:function(){return g},o8:function(){return h},pv:function(){return B},vP:function(){return q},xC:function(){return $},zO:function(){return _},zt:function(){return N}});var r,i,o,a="undefined",s=typeof window!==a,l=[{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:'\\"',close:'\\"'},{open:"\\'",close:"\\'"}],u=1e-7,c={cm:function(e){return 96*e/2.54},mm:function(e){return 96*e/254},in:function(e){return 96*e},pt:function(e){return 96*e/72},pc:function(e){return 96*e/6},"%":function(e,t){return e*t/100},vw:function(e,t){return void 0===t&&(t=window.innerWidth),e/100*t},vh:function(e,t){return void 0===t&&(t=window.innerHeight),e/100*t},vmax:function(e,t){return void 0===t&&(t=Math.max(window.innerWidth,window.innerHeight)),e/100*t},vmin:function(e,t){return void 0===t&&(t=Math.min(window.innerWidth,window.innerHeight)),e/100*t}};function d(e,t,n,r){return(e*r+t*n)/(n+r)}function h(e){return typeof e===a}function p(e){return e&&"object"==typeof e}function f(e){return Array.isArray(e)}function m(e){return"string"==typeof e}function g(e){return"function"==typeof e}function v(e,t,n){if(!e.ignore)return null;var r=t.slice(Math.max(n-3,0),n+3).join("");return new RegExp(e.ignore).exec(r)}function y(e,t){var n,r=m(t)?{separator:t}:t,i=r.separator,o=void 0===i?",":i,a=r.isSeparateFirst,s=r.isSeparateOnlyOpenClose,u=r.isSeparateOpenClose,c=void 0===u?s:u,d=r.openCloseCharacters,h=void 0===d?l:d,p=RegExp("(\\s*"+o+"\\s*|"+h.map(function(e){var t=e.open,n=e.close;return t===n?t:t+"|"+n}).join("|")+"|\\s+)","g"),f=e.split(p).filter(Boolean),g=f.length,y=[],b=[];function k(){return!!b.length&&(y.push(b.join("")),b=[],!0)}for(var w=0;w-1?e[r]:n}var D=(r=_(),(i=s&&(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame))?i.bind(window):function(e){var t=_();return window.setTimeout(function(){e(t-r)},1e3/60)}),C=(o=s&&(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame))?o.bind(window):function(e){clearTimeout(e)};function j(e){if(Object.keys)return Object.keys(e);var t=[];for(var n in t)t.push(n);return t}function O(e,t){var n=x(e),r=n.value,i=n.unit;if(p(t)){var o=t[i];if(o){if(g(o))return o(r);if(c[i])return c[i](r,o)}}else if("%"===i)return r*t/100;return c[i]?c[i](r):r}function T(e,t,n){return[[I(t[0],u),I(t[0]*e[1]/e[0],u)],[I(t[1]*e[0]/e[1],u),I(t[1],u)]].filter(function(e){return e.every(function(e,r){return n?e<=t[r]:e>=t[r]})})[0]||e}function A(e,t,n,r){if(!r)return e.map(function(e,r){return Math.max(t[r],Math.min(e,n[r]))});var i=e[0],o=e[1],a=T(e,t,!1),s=a[0],l=a[1],u=T(e,n,!0),c=u[0],d=u[1];return ic||o>d)&&(i=c,o=d),[i,o]}function P(e){for(var t=e.length,n=0,r=t-1;r>=0;--r)n+=e[r];return n}function R(e){for(var t=e.length,n=0,r=t-1;r>=0;--r)n+=e[r];return t?n/t:0}function M(e,t){var n=t[0]-e[0],r=Math.atan2(t[1]-e[1],n);return r>=0?r:r+2*Math.PI}function F(e){var t=[0,1].map(function(t){return R(e.map(function(e){return e[t]}))}),n=M(t,e[0]),r=M(t,e[1]);return nr&&r-n<-Math.PI?1:-1}function N(e,t){return Math.sqrt(Math.pow((t?t[0]:0)-e[0],2)+Math.pow((t?t[1]:0)-e[1],2))}function I(e,t){return t?Math.round(e/t)*t:e}function L(e,t){return e.forEach(function(n,r){e[r]=I(e[r],t)}),e}function B(e,t){return e.classList?e.classList.contains(t):!!e.className.match(RegExp("(\\s|^)"+t+"(\\s|$)"))}function z(e,t){e.classList?e.classList.add(t):e.className+=" "+t}function U(e,t){if(e.classList)e.classList.remove(t);else{var n=RegExp("(\\s|^)"+t+"(\\s|$)");e.className=e.className.replace(n," ")}}function q(e,t,n,r){e.addEventListener(t,n,r)}function $(e,t,n,r){e.removeEventListener(t,n,r)}},25161:function(e,t,n){"use strict";function r(e,t){for(var n=e.length,r=0;r0?m[w]+" "+x:s(x,/&\f/g,m[w])).trim())&&(d[k++]=_);return b(e,t,n,0===o?T:u,d,h,p)}function N(e,t,n,r){return b(e,t,n,A,c(e,0,r),c(e,r+1,-1),r)}var I=function(e,t,n){for(var r=0,i=0;r=i,i=x(),38===r&&12===i&&(t[n]=1),!_(i);)w();return c(y,e,g)},L=function(e,t){var n=-1,r=44;do switch(_(r)){case 0:38===r&&12===x()&&(t[n]=1),e[n]+=I(g-1,t,n);break;case 2:e[n]+=E(r);break;case 4:if(44===r){e[++n]=58===x()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=o(r)}while(r=w());return e},B=function(e,t){var n;return n=L(S(e),t),y="",n},z=new WeakMap,U=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||z.get(n))&&!r){z.set(e,!0);for(var i=[],o=B(t,i),a=n.props,s=0,l=0;s-1&&!e.return)switch(e.type){case A:e.return=function e(t,n){switch(45^u(t,0)?(((n<<2^u(t,0))<<2^u(t,1))<<2^u(t,2))<<2^u(t,3):0){case 5103:return j+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return j+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return j+t+C+t+D+t+t;case 6828:case 4268:return j+t+D+t+t;case 6165:return j+t+D+"flex-"+t+t;case 5187:return j+t+s(t,/(\w+).+(:[^]+)/,j+"box-$1$2"+D+"flex-$1$2")+t;case 5443:return j+t+D+"flex-item-"+s(t,/flex-|-self/,"")+t;case 4675:return j+t+D+"flex-line-pack"+s(t,/align-content|flex-|-self/,"")+t;case 5548:return j+t+D+s(t,"shrink","negative")+t;case 5292:return j+t+D+s(t,"basis","preferred-size")+t;case 6060:return j+"box-"+s(t,"-grow","")+j+t+D+s(t,"grow","positive")+t;case 4554:return j+s(t,/([^-])(transform)/g,"$1"+j+"$2")+t;case 6187:return s(s(s(t,/(zoom-|grab)/,j+"$1"),/(image-set)/,j+"$1"),t,"")+t;case 5495:case 3959:return s(t,/(image-set\([^]*)/,j+"$1$`$1");case 4968:return s(s(t,/(.+:)(flex-)?(.*)/,j+"box-pack:$3"+D+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+j+t+t;case 4095:case 3583:case 4068:case 2532:return s(t,/(.+)-inline(.+)/,j+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(d(t)-1-n>6)switch(u(t,n+1)){case 109:if(45!==u(t,n+4))break;case 102:return s(t,/(.+:)(.+)-([^]+)/,"$1"+j+"$2-$3$1"+C+(108==u(t,n+3)?"$3":"$2-$3"))+t;case 115:return~l(t,"stretch")?e(s(t,"stretch","fill-available"),n)+t:t}break;case 4949:if(115!==u(t,n+1))break;case 6444:switch(u(t,d(t)-3-(~l(t,"!important")&&10))){case 107:return s(t,":",":"+j)+t;case 101:return s(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+j+(45===u(t,14)?"inline-":"")+"box$3$1"+j+"$2$3$1"+D+"$2box$3")+t}break;case 5936:switch(u(t,n+11)){case 114:return j+t+D+s(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return j+t+D+s(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return j+t+D+s(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return j+t+D+t+t}return t}(e.value,e.length);break;case P:return R([k(e,{value:s(e.value,"@","@"+j)})],r);case T:if(e.length)return e.props.map(function(t){var n;switch(n=t,(n=/(::plac\w+|:read-\w+)/.exec(n))?n[0]:n){case":read-only":case":read-write":return R([k(e,{props:[s(t,/:(read-\w+)/,":"+C+"$1")]})],r);case"::placeholder":return R([k(e,{props:[s(t,/:(plac\w+)/,":"+j+"input-$1")]}),k(e,{props:[s(t,/:(plac\w+)/,":"+C+"$1")]}),k(e,{props:[s(t,/:(plac\w+)/,D+"input-$1")]})],r)}return""}).join("")}}],H=function(e){var t,n,i,a,m,k=e.key;if("css"===k){var D=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(D,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var C=e.stylisPlugins||$,j={},T=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+k+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n2||_(v)>3?"":" "}(M);break;case 92:V+=function(e,t){for(var n;--t&&w()&&!(v<48)&&!(v>102)&&(!(v>57)||!(v<65))&&(!(v>70)||!(v<97)););return n=g+(t<6&&32==x()&&32==w()),c(y,e,n)}(g-1,7);continue;case 47:switch(x()){case 42:case 47:h(b(C=function(e,t){for(;w();)if(e+v===57)break;else if(e+v===84&&47===x())break;return"/*"+c(y,t,g-1)+"*"+o(47===e?e:w())}(w(),g),n,r,O,o(v),c(C,2,-2),0),D);break;default:V+="/"}break;case 123*I:S[j++]=d(V)*B;case 125*I:case 59:case 0:switch(z){case 0:case 125:L=0;case 59+T:R>0&&d(V)-A&&h(R>32?N(V+";",i,r,A-1):N(s(V," ","")+";",i,r,A-2),D);break;case 59:V+=";";default:if(h(H=F(V,n,r,j,T,a,S,U,q=[],$=[],A),m),123===z){if(0===T)e(V,n,H,H,q,m,A,S,$);else switch(99===P&&110===u(V,3)?100:P){case 100:case 109:case 115:e(t,H,H,i&&h(F(t,H,H,0,0,a,S,U,a,q=[],A),$),a,$,A,S,i?q:$);break;default:e(V,H,H,H,[""],$,0,S,$)}}}j=T=R=0,I=B=1,U=V="",A=k;break;case 58:A=1+d(V),R=M;default:if(I<1){if(123==z)--I;else if(125==z&&0==I++&&125==(v=g>0?u(y,--g):0,f--,10===v&&(f=1,p--),v))continue}switch(V+=o(z),z*I){case 38:B=T>0?1:(V+="\f",-1);break;case 44:S[j++]=(d(V)-1)*B,B=1;break;case 64:45===x()&&(V+=E(w())),P=x(),T=A=d(U=V+=function(e){for(;!_(x());)w();return c(y,e,g)}(g)),z++;break;case 45:45===M&&2==d(V)&&(I=0)}}return m}("",null,null,null,[""],t=S(t=e),0,[0],t),y="",n),A)},I={key:k,sheet:new r({key:k,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:j,registered:{},insert:function(e,t,n,r){m=n,P(e?e+"{"+t.styles+"}":t.styles),r&&(I.inserted[t.name]=!0)}};return I.sheet.hydrate(T),I}},79003:function(e,t){"use strict";t.Z=function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))*1540483477+((t>>>16)*59797<<16),t^=t>>>24,n=(65535&t)*1540483477+((t>>>16)*59797<<16)^(65535&n)*1540483477+((n>>>16)*59797<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n^=255&e.charCodeAt(r),n=(65535&n)*1540483477+((n>>>16)*59797<<16)}return n^=n>>>13,(((n=(65535&n)*1540483477+((n>>>16)*59797<<16))^n>>>15)>>>0).toString(36)}},86894:function(e,t){"use strict";t.Z=function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}},94281:function(e,t,n){"use strict";n.d(t,{T:function(){return u},a:function(){return d},w:function(){return l}});var r=n(2784),i=n(75221);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t=Math.abs(e)},H=!0;try{var V=X("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");H=(null===(u=V.exec("a"))||void 0===u?void 0:u[0])==="a"}catch(e){H=!1}var W=I?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},G=L?String.fromCodePoint:function(){for(var e,t=[],n=0;no;){if((e=t[o++])>1114111)throw RangeError(e+" is not a valid code point");r+=e<65536?String.fromCharCode(e):String.fromCharCode(((e-=65536)>>10)+55296,e%1024+56320)}return r},Y=B?Object.fromEntries:function(e){for(var t={},n=0;n=r)){var i=e.charCodeAt(t);return i<55296||i>56319||t+1===r||(n=e.charCodeAt(t+1))<56320||n>57343?i:(i-55296<<10)+(n-56320)+65536}},K=U?function(e){return e.trimStart()}:function(e){return e.replace(M,"")},J=q?function(e){return e.trimEnd()}:function(e){return e.replace(F,"")};function X(e,t){return new RegExp(e,t)}if(H){var Q=X("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");c=function(e,t){var n;return Q.lastIndex=t,null!==(n=Q.exec(e)[1])&&void 0!==n?n:""}}else c=function(e,t){for(var n=[];;){var r,i=Z(e,t);if(void 0===i||en(i)||(r=i)>=33&&r<=35||36===r||r>=37&&r<=39||40===r||41===r||42===r||43===r||44===r||45===r||r>=46&&r<=47||r>=58&&r<=59||r>=60&&r<=62||r>=63&&r<=64||91===r||92===r||93===r||94===r||96===r||123===r||124===r||125===r||126===r||161===r||r>=162&&r<=165||166===r||167===r||169===r||171===r||172===r||174===r||176===r||177===r||182===r||187===r||191===r||215===r||247===r||r>=8208&&r<=8213||r>=8214&&r<=8215||8216===r||8217===r||8218===r||r>=8219&&r<=8220||8221===r||8222===r||8223===r||r>=8224&&r<=8231||r>=8240&&r<=8248||8249===r||8250===r||r>=8251&&r<=8254||r>=8257&&r<=8259||8260===r||8261===r||8262===r||r>=8263&&r<=8273||8274===r||8275===r||r>=8277&&r<=8286||r>=8592&&r<=8596||r>=8597&&r<=8601||r>=8602&&r<=8603||r>=8604&&r<=8607||8608===r||r>=8609&&r<=8610||8611===r||r>=8612&&r<=8613||8614===r||r>=8615&&r<=8621||8622===r||r>=8623&&r<=8653||r>=8654&&r<=8655||r>=8656&&r<=8657||8658===r||8659===r||8660===r||r>=8661&&r<=8691||r>=8692&&r<=8959||r>=8960&&r<=8967||8968===r||8969===r||8970===r||8971===r||r>=8972&&r<=8991||r>=8992&&r<=8993||r>=8994&&r<=9e3||9001===r||9002===r||r>=9003&&r<=9083||9084===r||r>=9085&&r<=9114||r>=9115&&r<=9139||r>=9140&&r<=9179||r>=9180&&r<=9185||r>=9186&&r<=9254||r>=9255&&r<=9279||r>=9280&&r<=9290||r>=9291&&r<=9311||r>=9472&&r<=9654||9655===r||r>=9656&&r<=9664||9665===r||r>=9666&&r<=9719||r>=9720&&r<=9727||r>=9728&&r<=9838||9839===r||r>=9840&&r<=10087||10088===r||10089===r||10090===r||10091===r||10092===r||10093===r||10094===r||10095===r||10096===r||10097===r||10098===r||10099===r||10100===r||10101===r||r>=10132&&r<=10175||r>=10176&&r<=10180||10181===r||10182===r||r>=10183&&r<=10213||10214===r||10215===r||10216===r||10217===r||10218===r||10219===r||10220===r||10221===r||10222===r||10223===r||r>=10224&&r<=10239||r>=10240&&r<=10495||r>=10496&&r<=10626||10627===r||10628===r||10629===r||10630===r||10631===r||10632===r||10633===r||10634===r||10635===r||10636===r||10637===r||10638===r||10639===r||10640===r||10641===r||10642===r||10643===r||10644===r||10645===r||10646===r||10647===r||10648===r||r>=10649&&r<=10711||10712===r||10713===r||10714===r||10715===r||r>=10716&&r<=10747||10748===r||10749===r||r>=10750&&r<=11007||r>=11008&&r<=11055||r>=11056&&r<=11076||r>=11077&&r<=11078||r>=11079&&r<=11084||r>=11085&&r<=11123||r>=11124&&r<=11125||r>=11126&&r<=11157||11158===r||r>=11159&&r<=11263||r>=11776&&r<=11777||11778===r||11779===r||11780===r||11781===r||r>=11782&&r<=11784||11785===r||11786===r||11787===r||11788===r||11789===r||r>=11790&&r<=11798||11799===r||r>=11800&&r<=11801||11802===r||11803===r||11804===r||11805===r||r>=11806&&r<=11807||11808===r||11809===r||11810===r||11811===r||11812===r||11813===r||11814===r||11815===r||11816===r||11817===r||r>=11818&&r<=11822||11823===r||r>=11824&&r<=11833||r>=11834&&r<=11835||r>=11836&&r<=11839||11840===r||11841===r||11842===r||r>=11843&&r<=11855||r>=11856&&r<=11857||11858===r||r>=11859&&r<=11903||r>=12289&&r<=12291||12296===r||12297===r||12298===r||12299===r||12300===r||12301===r||12302===r||12303===r||12304===r||12305===r||r>=12306&&r<=12307||12308===r||12309===r||12310===r||12311===r||12312===r||12313===r||12314===r||12315===r||12316===r||12317===r||r>=12318&&r<=12319||12320===r||12336===r||64830===r||64831===r||r>=65093&&r<=65094)break;n.push(i),t+=i>=65536?2:1}return G.apply(void 0,n)};var ee=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,n){for(var r=[];!this.isEOF();){var i=this.char();if(123===i){var o=this.parseArgument(e,n);if(o.err)return o;r.push(o.val)}else if(125===i&&e>0)break;else if(35===i&&("plural"===t||"selectordinal"===t)){var l=this.clonePosition();this.bump(),r.push({type:s.pound,location:N(l,this.clonePosition())})}else if(60!==i||this.ignoreTag||47!==this.peek()){if(60===i&&!this.ignoreTag&&et(this.peek()||0)){var o=this.parseTag(e,t);if(o.err)return o;r.push(o.val)}else{var o=this.parseLiteral(e,t);if(o.err)return o;r.push(o.val)}}else{if(!n)return this.error(a.UNMATCHED_CLOSING_TAG,N(this.clonePosition(),this.clonePosition()));break}}return{val:r,err:null}},e.prototype.parseTag=function(e,t){var n=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:s.literal,value:"<".concat(r,"/>"),location:N(n,this.clonePosition())},err:null};if(!this.bumpIf(">"))return this.error(a.INVALID_TAG,N(n,this.clonePosition()));var i=this.parseMessage(e+1,t,!0);if(i.err)return i;var o=i.val,l=this.clonePosition();if(!this.bumpIf(""))?{val:{type:s.tag,value:r,children:o,location:N(n,this.clonePosition())},err:null}:this.error(a.INVALID_TAG,N(l,this.clonePosition()))},e.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r="";;){var i=this.tryParseQuote(t);if(i){r+=i;continue}var o=this.tryParseUnquoted(e,t);if(o){r+=o;continue}var a=this.tryParseLeftAngleBracket();if(a){r+=a;continue}break}var l=N(n,this.clonePosition());return{val:{type:s.literal,value:r,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){var e;return this.isEOF()||60!==this.char()||!this.ignoreTag&&(et(e=this.peek()||0)||47===e)?null:(this.bump(),"<")},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(39===n){if(39===this.peek())t.push(39),this.bump();else{this.bump();break}}else t.push(n);this.bump()}return G.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();return 60===n||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&e>0?null:(this.bump(),G(n))},e.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(a.EXPECT_ARGUMENT_CLOSING_BRACE,N(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(a.EMPTY_ARGUMENT,N(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(a.MALFORMED_ARGUMENT,N(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(a.EXPECT_ARGUMENT_CLOSING_BRACE,N(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:s.argument,value:r,location:N(n,this.clonePosition())},err:null};case 44:if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(a.EXPECT_ARGUMENT_CLOSING_BRACE,N(n,this.clonePosition()));return this.parseArgumentOptions(e,t,r,n);default:return this.error(a.MALFORMED_ARGUMENT,N(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=c(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:N(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,n,r){var i,o=this.clonePosition(),u=this.parseIdentifierIfPossible().value,c=this.clonePosition();switch(u){case"":return this.error(a.EXPECT_ARGUMENT_TYPE,N(o,c));case"number":case"date":case"time":this.bumpSpace();var h=null;if(this.bumpIf(",")){this.bumpSpace();var p=this.clonePosition(),f=this.parseSimpleArgStyleIfPossible();if(f.err)return f;var m=J(f.val);if(0===m.length)return this.error(a.EXPECT_ARGUMENT_STYLE,N(this.clonePosition(),this.clonePosition()));h={style:m,styleLocation:N(p,this.clonePosition())}}var g=this.tryParseArgumentClose(r);if(g.err)return g;var v=N(r,this.clonePosition());if(h&&W(null==h?void 0:h.style,"::",0)){var y,b=K(h.style.slice(2));if("number"===u){var f=this.parseNumberSkeletonFromString(b,h.styleLocation);if(f.err)return f;return{val:{type:s.number,value:n,location:v,style:f.val},err:null}}if(0===b.length)return this.error(a.EXPECT_DATE_TIME_SKELETON,v);var k=b;this.locale&&(k=function(e,t){for(var n="",r=0;r>1),l=function(e){var t,n=e.hourCycle;if(void 0===n&&e.hourCycles&&e.hourCycles.length&&(n=e.hourCycles[0]),n)switch(n){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw Error("Invalid hourCycle")}var r=e.language;return"root"!==r&&(t=e.maximize().region),(R[t||""]||R[r||""]||R["".concat(r,"-001")]||R["001"])[0]}(t);for(("H"==l||"k"==l)&&(s=0);s-- >0;)n+="a";for(;a-- >0;)n=l+n}else"J"===i?n+="H":n+=i}return n}(b,this.locale));var m={type:l.dateTime,pattern:k,location:h.styleLocation,parsedOptions:this.shouldParseSkeletons?(y={},k.replace(S,function(e){var t=e.length;switch(e[0]){case"G":y.era=4===t?"long":5===t?"narrow":"short";break;case"y":y.year=2===t?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":y.month=["numeric","2-digit","short","long","narrow"][t-1];break;case"w":case"W":throw RangeError("`w/W` (week) patterns are not supported");case"d":y.day=["numeric","2-digit"][t-1];break;case"D":case"F":case"g":throw RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":y.weekday=4===t?"short":5===t?"narrow":"short";break;case"e":if(t<4)throw RangeError("`e..eee` (weekday) patterns are not supported");y.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw RangeError("`c..ccc` (weekday) patterns are not supported");y.weekday=["short","long","narrow","short"][t-4];break;case"a":y.hour12=!0;break;case"b":case"B":throw RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":y.hourCycle="h12",y.hour=["numeric","2-digit"][t-1];break;case"H":y.hourCycle="h23",y.hour=["numeric","2-digit"][t-1];break;case"K":y.hourCycle="h11",y.hour=["numeric","2-digit"][t-1];break;case"k":y.hourCycle="h24",y.hour=["numeric","2-digit"][t-1];break;case"j":case"J":case"C":throw RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":y.minute=["numeric","2-digit"][t-1];break;case"s":y.second=["numeric","2-digit"][t-1];break;case"S":case"A":throw RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":y.timeZoneName=t<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),y):{}};return{val:{type:"date"===u?s.date:s.time,value:n,location:v,style:m},err:null}}return{val:{type:"number"===u?s.number:"date"===u?s.date:s.time,value:n,location:v,style:null!==(i=null==h?void 0:h.style)&&void 0!==i?i:null},err:null};case"plural":case"selectordinal":case"select":var w=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(a.EXPECT_SELECT_ARGUMENT_OPTIONS,N(w,(0,d.pi)({},w)));this.bumpSpace();var x=this.parseIdentifierIfPossible(),_=0;if("select"!==u&&"offset"===x.value){if(!this.bumpIf(":"))return this.error(a.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,N(this.clonePosition(),this.clonePosition()));this.bumpSpace();var f=this.tryParseDecimalInteger(a.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,a.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(f.err)return f;this.bumpSpace(),x=this.parseIdentifierIfPossible(),_=f.val}var E=this.tryParsePluralOrSelectOptions(e,u,t,x);if(E.err)return E;var g=this.tryParseArgumentClose(r);if(g.err)return g;var D=N(r,this.clonePosition());if("select"===u)return{val:{type:s.select,value:n,options:Y(E.val),location:D},err:null};return{val:{type:s.plural,value:n,options:Y(E.val),offset:_,pluralType:"plural"===u?"cardinal":"ordinal",location:D},err:null};default:return this.error(a.INVALID_ARGUMENT_TYPE,N(o,c))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(a.EXPECT_ARGUMENT_CLOSING_BRACE,N(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(a.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,N(n,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=function(e){if(0===e.length)throw Error("Number skeleton cannot be empty");for(var t=e.split(E).filter(function(e){return e.length>0}),n=[],r=0;r1)throw RangeError("integer-width stems only accept a single optional option");r.options[0].replace(j,function(e,n,r,i,o,a){if(n)t.minimumIntegerDigits=r.length;else if(i&&o)throw Error("We currently do not support maximum integer digits");else if(a)throw Error("We currently do not support exact integer digits");return""});continue}if(O.test(r.stem)){t.minimumIntegerDigits=r.stem.length;continue}if(D.test(r.stem)){if(r.options.length>1)throw RangeError("Fraction-precision stems only accept a single optional option");r.stem.replace(D,function(e,n,r,i,o,a){return"*"===r?t.minimumFractionDigits=n.length:i&&"#"===i[0]?t.maximumFractionDigits=i.length:o&&a?(t.minimumFractionDigits=o.length,t.maximumFractionDigits=o.length+a.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),""});var i=r.options[0];"w"===i?t=(0,d.pi)((0,d.pi)({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=(0,d.pi)((0,d.pi)({},t),T(i)));continue}if(C.test(r.stem)){t=(0,d.pi)((0,d.pi)({},t),T(r.stem));continue}var o=A(r.stem);o&&(t=(0,d.pi)((0,d.pi)({},t),o));var a=function(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if("+!"===n?(t.signDisplay="always",e=e.slice(2)):"+?"===n&&(t.signDisplay="exceptZero",e=e.slice(2)),!O.test(e))throw Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(r.stem);a&&(t=(0,d.pi)((0,d.pi)({},t),a))}return t}(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){for(var i,o=!1,s=[],l=new Set,u=r.value,c=r.location;;){if(0===u.length){var d=this.clonePosition();if("select"!==t&&this.bumpIf("=")){var h=this.tryParseDecimalInteger(a.EXPECT_PLURAL_ARGUMENT_SELECTOR,a.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;c=N(d,this.clonePosition()),u=this.message.slice(d.offset,this.offset())}else break}if(l.has(u))return this.error("select"===t?a.DUPLICATE_SELECT_ARGUMENT_SELECTOR:a.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);"other"===u&&(o=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?a.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:a.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,N(this.clonePosition(),this.clonePosition()));var f=this.parseMessage(e+1,t,n);if(f.err)return f;var m=this.tryParseArgumentClose(p);if(m.err)return m;s.push([u,{value:f.val,location:N(p,this.clonePosition())}]),l.add(u),this.bumpSpace(),u=(i=this.parseIdentifierIfPossible()).value,c=i.location}return 0===s.length?this.error("select"===t?a.EXPECT_SELECT_ARGUMENT_SELECTOR:a.EXPECT_PLURAL_ARGUMENT_SELECTOR,N(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(a.MISSING_OTHER_CLAUSE,N(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var i=!1,o=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)i=!0,o=10*o+(a-48),this.bump();else break}var s=N(r,this.clonePosition());return i?$(o*=n)?{val:o,err:null}:this.error(t,s):this.error(e,s)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Z(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(W(this.message,e,this.offset())){for(var t=0;t=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&en(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),n=this.message.charCodeAt(t+(e>=65536?2:1));return null!=n?n:null},e}();function et(e){return e>=97&&e<=122||e>=65&&e<=90}function en(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function er(e,t){void 0===t&&(t={}),t=(0,d.pi)({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new ee(e,t).parse();if(n.err){var r=SyntaxError(a[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return(null==t?void 0:t.captureLocation)||function e(t){t.forEach(function(t){if(delete t.location,v(t)||y(t))for(var n in t.options)delete t.options[n].location,e(t.options[n].value);else f(t)&&w(t.style)?delete t.style.location:(m(t)||g(t))&&x(t.style)?delete t.style.location:k(t)&&e(t.children)})}(n.val),n.val}},40283:function(e,t,n){"use strict";n.d(t,{$6:function(){return h},OV:function(){return l},Qe:function(){return c},Rw:function(){return a},X9:function(){return d},bc:function(){return i},gb:function(){return u},wI:function(){return s}});var r,i,o=n(5163);(r=i||(i={})).FORMAT_ERROR="FORMAT_ERROR",r.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",r.INVALID_CONFIG="INVALID_CONFIG",r.MISSING_DATA="MISSING_DATA",r.MISSING_TRANSLATION="MISSING_TRANSLATION";var a=function(e){function t(n,r,i){var o=this,a=i?i instanceof Error?i:Error(String(i)):void 0;return(o=e.call(this,"[@formatjs/intl Error ".concat(n,"] ").concat(r,"\n").concat(a?"\n".concat(a.message,"\n").concat(a.stack):""))||this).code=n,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(o,t),o}return(0,o.ZT)(t,e),t}(Error),s=function(e){function t(t,n){return e.call(this,i.UNSUPPORTED_FORMATTER,t,n)||this}return(0,o.ZT)(t,e),t}(a),l=function(e){function t(t,n){return e.call(this,i.INVALID_CONFIG,t,n)||this}return(0,o.ZT)(t,e),t}(a),u=function(e){function t(t,n){return e.call(this,i.MISSING_DATA,t,n)||this}return(0,o.ZT)(t,e),t}(a),c=function(e){function t(t,n,r){return e.call(this,i.FORMAT_ERROR,"".concat(t,"\nLocale: ").concat(n,"\n"),r)||this}return(0,o.ZT)(t,e),t}(a),d=function(e){function t(t,n,r,i){var o=e.call(this,"".concat(t,"\nMessageID: ").concat(null==r?void 0:r.id,"\nDefault Message: ").concat(null==r?void 0:r.defaultMessage,"\nDescription: ").concat(null==r?void 0:r.description,"\n"),n,i)||this;return o.descriptor=r,o}return(0,o.ZT)(t,e),t}(c),h=function(e){function t(t,n){var r=e.call(this,i.MISSING_TRANSLATION,'Missing message: "'.concat(t.id,'" for locale "').concat(n,'", using ').concat(t.defaultMessage?"default message (".concat("string"==typeof t.defaultMessage?t.defaultMessage:t.defaultMessage.map(function(e){var t;return null!==(t=e.value)&&void 0!==t?t:JSON.stringify(e)}).join(),")"):"id"," as fallback."))||this;return r.descriptor=t,r}return(0,o.ZT)(t,e),t}(a)},32428:function(e,t,n){"use strict";n.d(t,{L6:function(){return s},Sn:function(){return u},TB:function(){return h},Z0:function(){return l},ax:function(){return d}});var r=n(5163),i=n(77481),o=n(75413),a=n(40283);function s(e,t,n){return void 0===n&&(n={}),t.reduce(function(t,r){return r in e?t[r]=e[r]:r in n&&(t[r]=n[r]),t},{})}var l={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:function(e){},onWarn:function(e){}};function u(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function c(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function d(e){void 0===e&&(e=u());var t=Intl.RelativeTimeFormat,n=Intl.ListFormat,a=Intl.DisplayNames,s=(0,o.Z)(function(){for(var e,t=[],n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n0||!Array.isArray(t)&&t?c({},e,t):{}}var y=a.forwardRef(function(e,t){var n,i,o,a,s,u,h,p,f,k,w,x,_,S,E,D,C,j,O,T=e.icon,A=e.mask,P=e.symbol,R=e.className,M=e.title,F=e.titleId,N=e.maskId,I=g(T),L=v("classes",[].concat(d((i=e.beat,o=e.fade,a=e.beatFade,s=e.bounce,u=e.shake,h=e.flash,p=e.spin,f=e.spinPulse,k=e.spinReverse,w=e.pulse,x=e.fixedWidth,_=e.inverse,S=e.border,E=e.listItem,D=e.flip,C=e.size,j=e.rotation,O=e.pull,Object.keys((c(n={"fa-beat":i,"fa-fade":o,"fa-beat-fade":a,"fa-bounce":s,"fa-shake":u,"fa-flash":h,"fa-spin":p,"fa-spin-reverse":k,"fa-spin-pulse":f,"fa-pulse":w,"fa-fw":x,"fa-inverse":_,"fa-border":S,"fa-li":E,"fa-flip":!0===D,"fa-flip-horizontal":"horizontal"===D||"both"===D,"fa-flip-vertical":"vertical"===D||"both"===D},"fa-".concat(C),null!=C),c(n,"fa-rotate-".concat(j),null!=j&&0!==j),c(n,"fa-pull-".concat(O),null!=O),c(n,"fa-swap-opacity",e.swapOpacity),n)).map(function(e){return n[e]?e:null}).filter(function(e){return e}))),d(R.split(" ")))),B=v("transform","string"==typeof e.transform?r.Qc.transform(e.transform):e.transform),z=v("mask",g(A)),U=(0,r.qv)(I,l(l(l(l({},L),B),z),{},{symbol:P,title:M,titleId:F,maskId:N}));if(!U)return!function(){if(!m&&console&&"function"==typeof console.error){var e;(e=console).error.apply(e,arguments)}}("Could not find icon",I),null;var q=U.abstract,$={ref:t};return Object.keys(e).forEach(function(t){y.defaultProps.hasOwnProperty(t)||($[t]=e[t])}),b(q[0],$)});y.displayName="FontAwesomeIcon",y.propTypes={beat:o().bool,border:o().bool,beatFade:o().bool,bounce:o().bool,className:o().string,fade:o().bool,flash:o().bool,mask:o().oneOfType([o().object,o().array,o().string]),maskId:o().string,fixedWidth:o().bool,inverse:o().bool,flip:o().oneOf([!0,!1,"horizontal","vertical","both"]),icon:o().oneOfType([o().object,o().array,o().string]),listItem:o().bool,pull:o().oneOf(["right","left"]),pulse:o().bool,rotation:o().oneOf([0,90,180,270]),shake:o().bool,size:o().oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:o().bool,spinPulse:o().bool,spinReverse:o().bool,symbol:o().oneOfType([o().bool,o().string]),title:o().string,titleId:o().string,transform:o().oneOfType([o().string,o().object]),swapOpacity:o().bool},y.defaultProps={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1};var b=(function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof n)return n;var i=(n.children||[]).map(function(n){return e(t,n)}),o=Object.keys(n.attributes||{}).reduce(function(e,t){var r=n.attributes[t];switch(t){case"class":e.attrs.className=r,delete n.attributes.class;break;case"style":e.attrs.style=r.split(";").map(function(e){return e.trim()}).filter(function(e){return e}).reduce(function(e,t){var n=t.indexOf(":"),r=p(t.slice(0,n)),i=t.slice(n+1).trim();return r.startsWith("webkit")?e[r.charAt(0).toUpperCase()+r.slice(1)]=i:e[r]=i,e},{});break;default:0===t.indexOf("aria-")||0===t.indexOf("data-")?e.attrs[t.toLowerCase()]=r:e.attrs[p(t)]=r}return e},{attrs:{}}),a=r.style,s=void 0===a?{}:a,u=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(r,f);return o.attrs.style=l(l({},o.attrs.style),s),t.apply(void 0,[n.tag,l(l({},o.attrs),u)].concat(d(i)))}).bind(null,a.createElement)},95374:function(e,t,n){"use strict";n.d(t,{ZP:function(){return l}});var r=n(17578),i=n(2784),o=n(41110);let{useSyncExternalStoreWithSelector:a}=o,s=e=>{let t="function"==typeof e?(0,r.Z)(e):e,n=(e,n)=>(function(e,t=e.getState,n){let r=a(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return(0,i.useDebugValue)(r),r})(t,e,n);return Object.assign(n,t),n};var l=e=>e?s(e):s},17578:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});let r=e=>{let t;let n=new Set,r=(e,r)=>{let i="function"==typeof e?e(t):e;if(i!==t){let e=t;t=(null!=r?r:"object"!=typeof i)?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},i=()=>t,o={setState:r,getState:i,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>n.clear()};return t=e(r,i,o),o},i=e=>e?r(e):r},80098:function(e,t,n){"use strict";function r(e){return e?(e.nodeName||"").toLowerCase():null}n.d(t,{Z:function(){return r}})},33189:function(e,t,n){"use strict";function r(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}n.d(t,{Z:function(){return r}})},48555:function(e,t,n){"use strict";n.d(t,{Re:function(){return o},Zq:function(){return a},kK:function(){return i}});var r=n(33189);function i(e){var t=(0,r.Z)(e).Element;return e instanceof t||e instanceof Element}function o(e){var t=(0,r.Z)(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function a(e){if("undefined"==typeof ShadowRoot)return!1;var t=(0,r.Z)(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}},51414:function(e,t,n){"use strict";var r=n(80098),i=n(48555);t.Z={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},o=t.attributes[e]||{},a=t.elements[e];(0,i.Re)(a)&&(0,r.Z)(a)&&(Object.assign(a.style,n),Object.keys(o).forEach(function(e){var t=o[e];!1===t?a.removeAttribute(e):a.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var o=t.elements[e],a=t.attributes[e]||{},s=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});(0,i.Re)(o)&&(0,r.Z)(o)&&(Object.assign(o.style,s),Object.keys(a).forEach(function(e){o.removeAttribute(e)}))})}},requires:["computeStyles"]}},62465:function(e,t,n){"use strict";n.d(t,{fi:function(){return ea}});var r,i,o,a,s,l=n(48555),u=Math.max,c=Math.min,d=Math.round;function h(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),r=1,i=1;if((0,l.Re)(e)&&t){var o=e.offsetHeight,a=e.offsetWidth;a>0&&(r=d(n.width)/a||1),o>0&&(i=d(n.height)/o||1)}return{width:n.width/r,height:n.height/i,top:n.top/i,right:n.right/r,bottom:n.bottom/i,left:n.left/r,x:n.left/r,y:n.top/i}}var p=n(33189);function f(e){var t=(0,p.Z)(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}var m=n(80098);function g(e){return(((0,l.kK)(e)?e.ownerDocument:e.document)||window.document).documentElement}function v(e){return h(g(e)).left+f(e).scrollLeft}function y(e){return(0,p.Z)(e).getComputedStyle(e)}function b(e){var t=y(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function k(e){var t=h(e),n=e.offsetWidth,r=e.offsetHeight;return 1>=Math.abs(t.width-n)&&(n=t.width),1>=Math.abs(t.height-r)&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function w(e){return"html"===(0,m.Z)(e)?e:e.assignedSlot||e.parentNode||((0,l.Zq)(e)?e.host:null)||g(e)}function x(e,t){void 0===t&&(t=[]);var n,r=function e(t){return["html","body","#document"].indexOf((0,m.Z)(t))>=0?t.ownerDocument.body:(0,l.Re)(t)&&b(t)?t:e(w(t))}(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=(0,p.Z)(r),a=i?[o].concat(o.visualViewport||[],b(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(x(w(a)))}function _(e){return(0,l.Re)(e)&&"fixed"!==y(e).position?e.offsetParent:null}function S(e){for(var t,n=(0,p.Z)(e),r=_(e);r&&(t=r,["table","td","th"].indexOf((0,m.Z)(t))>=0)&&"static"===y(r).position;)r=_(r);return r&&("html"===(0,m.Z)(r)||"body"===(0,m.Z)(r)&&"static"===y(r).position)?n:r||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&(0,l.Re)(e)&&"fixed"===y(e).position)return null;for(var n=w(e);(0,l.Re)(n)&&0>["html","body"].indexOf((0,m.Z)(n));){var r=y(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||n}var E="bottom",D="right",C="left",j="auto",O=["top",E,D,C],T="start",A="viewport",P="popper",R=O.reduce(function(e,t){return e.concat([t+"-"+T,t+"-end"])},[]),M=[].concat(O,[j]).reduce(function(e,t){return e.concat([t,t+"-"+T,t+"-end"])},[]),F=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"],N={placement:"bottom",modifiers:[],strategy:"absolute"};function I(){for(var e=arguments.length,t=Array(e),n=0;n=0?"x":"y"}function q(e){var t,n=e.reference,r=e.element,i=e.placement,o=i?B(i):null,a=i?z(i):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(o){case"top":t={x:s,y:n.y-r.height};break;case E:t={x:s,y:n.y+n.height};break;case D:t={x:n.x+n.width,y:l};break;case C:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var u=o?U(o):null;if(null!=u){var c="y"===u?"height":"width";switch(a){case T:t[u]=t[u]-(n[c]/2-r[c]/2);break;case"end":t[u]=t[u]+(n[c]/2-r[c]/2)}}return t}var $={top:"auto",right:"auto",bottom:"auto",left:"auto"};function H(e){var t,n,r,i,o,a=e.popper,s=e.popperRect,l=e.placement,u=e.variation,c=e.offsets,h=e.position,f=e.gpuAcceleration,m=e.adaptive,v=e.roundOffsets,b=e.isFixed,k=!0===v?(t=c.x,n=c.y,{x:d(t*(r=window.devicePixelRatio||1))/r||0,y:d(n*r)/r||0}):"function"==typeof v?v(c):c,w=k.x,x=void 0===w?0:w,_=k.y,j=void 0===_?0:_,O=c.hasOwnProperty("x"),T=c.hasOwnProperty("y"),A=C,P="top",R=window;if(m){var M=S(a),F="clientHeight",N="clientWidth";M===(0,p.Z)(a)&&"static"!==y(M=g(a)).position&&"absolute"===h&&(F="scrollHeight",N="scrollWidth"),("top"===l||(l===C||l===D)&&"end"===u)&&(P=E,j-=(b&&R.visualViewport?R.visualViewport.height:M[F])-s.height,j*=f?1:-1),(l===C||("top"===l||l===E)&&"end"===u)&&(A=D,x-=(b&&R.visualViewport?R.visualViewport.width:M[N])-s.width,x*=f?1:-1)}var I=Object.assign({position:h},m&&$);return f?Object.assign({},I,((o={})[P]=T?"0":"",o[A]=O?"0":"",o.transform=1>=(R.devicePixelRatio||1)?"translate("+x+"px, "+j+"px)":"translate3d("+x+"px, "+j+"px, 0)",o)):Object.assign({},I,((i={})[P]=T?j+"px":"",i[A]=O?x+"px":"",i.transform="",i))}var V=n(51414),W={left:"right",right:"left",bottom:"top",top:"bottom"};function G(e){return e.replace(/left|right|bottom|top/g,function(e){return W[e]})}var Y={start:"end",end:"start"};function Z(e){return e.replace(/start|end/g,function(e){return Y[e]})}function K(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&(0,l.Zq)(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function J(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function X(e,t){var n,r,i,o,a,s,c,d,m,b,k,w,x,_,S,E,D;return t===A?J((n=(0,p.Z)(e),r=g(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,c=0,i&&(o=i.width,a=i.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=i.offsetLeft,c=i.offsetTop)),{width:o,height:a,x:s+v(e),y:c})):(0,l.kK)(t)?((d=h(t)).top=d.top+t.clientTop,d.left=d.left+t.clientLeft,d.bottom=d.top+t.clientHeight,d.right=d.left+t.clientWidth,d.width=t.clientWidth,d.height=t.clientHeight,d.x=d.left,d.y=d.top,d):J((m=g(e),k=g(m),w=f(m),x=null==(b=m.ownerDocument)?void 0:b.body,_=u(k.scrollWidth,k.clientWidth,x?x.scrollWidth:0,x?x.clientWidth:0),S=u(k.scrollHeight,k.clientHeight,x?x.scrollHeight:0,x?x.clientHeight:0),E=-w.scrollLeft+v(m),D=-w.scrollTop,"rtl"===y(x||k).direction&&(E+=u(k.clientWidth,x?x.clientWidth:0)-_),{width:_,height:S,x:E,y:D}))}function Q(){return{top:0,right:0,bottom:0,left:0}}function ee(e){return Object.assign({},Q(),e)}function et(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}function en(e,t){void 0===t&&(t={});var n,r,i,o,a,s,d,p,f=t,v=f.placement,b=void 0===v?e.placement:v,k=f.boundary,_=f.rootBoundary,C=f.elementContext,j=void 0===C?P:C,T=f.altBoundary,R=f.padding,M=void 0===R?0:R,F=ee("number"!=typeof M?M:et(M,O)),N=e.rects.popper,I=e.elements[void 0!==T&&T?j===P?"reference":P:j],L=(n=(0,l.kK)(I)?I:I.contextElement||g(e.elements.popper),d=(s=[].concat("clippingParents"===(r=void 0===k?"clippingParents":k)?(i=x(w(n)),a=(o=["absolute","fixed"].indexOf(y(n).position)>=0)&&(0,l.Re)(n)?S(n):n,(0,l.kK)(a)?i.filter(function(e){return(0,l.kK)(e)&&K(e,a)&&"body"!==(0,m.Z)(e)&&(!o||"static"!==y(e).position)}):[]):[].concat(r),[void 0===_?A:_]))[0],(p=s.reduce(function(e,t){var r=X(n,t);return e.top=u(r.top,e.top),e.right=c(r.right,e.right),e.bottom=c(r.bottom,e.bottom),e.left=u(r.left,e.left),e},X(n,d))).width=p.right-p.left,p.height=p.bottom-p.top,p.x=p.left,p.y=p.top,p),B=h(e.elements.reference),z=q({reference:B,element:N,strategy:"absolute",placement:b}),U=J(Object.assign({},N,z)),$=j===P?U:B,H={top:L.top-$.top+F.top,bottom:$.bottom-L.bottom+F.bottom,left:L.left-$.left+F.left,right:$.right-L.right+F.right},V=e.modifiersData.offset;if(j===P&&V){var W=V[b];Object.keys(H).forEach(function(e){var t=[D,E].indexOf(e)>=0?1:-1,n=["top",E].indexOf(e)>=0?"y":"x";H[e]+=W[n]*t})}return H}function er(e,t,n){return u(e,c(t,n))}function ei(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function eo(e){return["top",D,E,C].some(function(t){return e[t]>=0})}var ea=(o=void 0===(i=(r={defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=void 0===i||i,a=r.resize,s=void 0===a||a,l=(0,p.Z)(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(e){e.addEventListener("scroll",n.update,L)}),s&&l.addEventListener("resize",n.update,L),function(){o&&u.forEach(function(e){e.removeEventListener("scroll",n.update,L)}),s&&l.removeEventListener("resize",n.update,L)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=q({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=n.adaptive,o=n.roundOffsets,a=void 0===o||o,s={placement:B(t.placement),variation:z(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:void 0===r||r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,H(Object.assign({},s,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:void 0===i||i,roundOffsets:a})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,H(Object.assign({},s,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},V.Z,{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=void 0===i?[0,0]:i,a=M.reduce(function(e,n){var r,i,a,s,l,u;return e[n]=(r=t.rects,a=[C,"top"].indexOf(i=B(n))>=0?-1:1,l=(s="function"==typeof o?o(Object.assign({},r,{placement:n})):o)[0],u=s[1],l=l||0,u=(u||0)*a,[C,D].indexOf(i)>=0?{x:u,y:l}:{x:l,y:u}),e},{}),s=a[t.placement],l=s.x,u=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0===a||a,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,h=n.altBoundary,p=n.flipVariations,f=void 0===p||p,m=n.allowedAutoPlacements,g=t.options.placement,v=B(g)===g,y=l||(v||!f?[G(g)]:function(e){if(B(e)===j)return[];var t=G(e);return[Z(e),t,Z(t)]}(g)),b=[g].concat(y).reduce(function(e,n){var r,i,o,a,s,l,h,p,g,v,y,b;return e.concat(B(n)===j?(i=(r={placement:n,boundary:c,rootBoundary:d,padding:u,flipVariations:f,allowedAutoPlacements:m}).placement,o=r.boundary,a=r.rootBoundary,s=r.padding,l=r.flipVariations,p=void 0===(h=r.allowedAutoPlacements)?M:h,0===(y=(v=(g=z(i))?l?R:R.filter(function(e){return z(e)===g}):O).filter(function(e){return p.indexOf(e)>=0})).length&&(y=v),Object.keys(b=y.reduce(function(e,n){return e[n]=en(t,{placement:n,boundary:o,rootBoundary:a,padding:s})[B(n)],e},{})).sort(function(e,t){return b[e]-b[t]})):n)},[]),k=t.rects.reference,w=t.rects.popper,x=new Map,_=!0,S=b[0],A=0;A=0,L=I?"width":"height",U=en(t,{placement:P,boundary:c,rootBoundary:d,altBoundary:h,padding:u}),q=I?N?D:C:N?E:"top";k[L]>w[L]&&(q=G(q));var $=G(q),H=[];if(o&&H.push(U[F]<=0),s&&H.push(U[q]<=0,U[$]<=0),H.every(function(e){return e})){S=P,_=!1;break}x.set(P,H)}if(_)for(var V=f?3:1,W=function(e){var t=b.find(function(t){var n=x.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return S=t,"break"},Y=V;Y>0&&"break"!==W(Y);Y--);t.placement!==S&&(t.modifiersData[r]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=n.altAxis,a=n.boundary,s=n.rootBoundary,l=n.altBoundary,d=n.padding,h=n.tether,p=void 0===h||h,f=n.tetherOffset,m=void 0===f?0:f,g=en(t,{boundary:a,rootBoundary:s,padding:d,altBoundary:l}),v=B(t.placement),y=z(t.placement),b=!y,w=U(v),x="x"===w?"y":"x",_=t.modifiersData.popperOffsets,j=t.rects.reference,O=t.rects.popper,A="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,P="number"==typeof A?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(_){if(void 0===i||i){var F,N="y"===w?"top":C,I="y"===w?E:D,L="y"===w?"height":"width",q=_[w],$=q+g[N],H=q-g[I],V=p?-O[L]/2:0,W=y===T?j[L]:O[L],G=y===T?-O[L]:-j[L],Y=t.elements.arrow,Z=p&&Y?k(Y):{width:0,height:0},K=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Q(),J=K[N],X=K[I],ee=er(0,j[L],Z[L]),et=b?j[L]/2-V-ee-J-P.mainAxis:W-ee-J-P.mainAxis,ei=b?-j[L]/2+V+ee+X+P.mainAxis:G+ee+X+P.mainAxis,eo=t.elements.arrow&&S(t.elements.arrow),ea=eo?"y"===w?eo.clientTop||0:eo.clientLeft||0:0,es=null!=(F=null==R?void 0:R[w])?F:0,el=q+et-es-ea,eu=q+ei-es,ec=er(p?c($,el):$,q,p?u(H,eu):H);_[w]=ec,M[w]=ec-q}if(void 0!==o&&o){var ed,eh,ep="x"===w?"top":C,ef="x"===w?E:D,em=_[x],eg="y"===x?"height":"width",ev=em+g[ep],ey=em-g[ef],eb=-1!==["top",C].indexOf(v),ek=null!=(eh=null==R?void 0:R[x])?eh:0,ew=eb?ev:em-j[eg]-O[eg]-ek+P.altAxis,ex=eb?em+j[eg]+O[eg]-ek-P.altAxis:ey,e_=p&&eb?(ed=er(ew,em,ex))>ex?ex:ed:er(p?ew:ev,em,p?ex:ey);_[x]=e_,M[x]=e_-em}t.modifiersData[r]=M}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n,r=e.state,i=e.name,o=e.options,a=r.elements.arrow,s=r.modifiersData.popperOffsets,l=B(r.placement),u=U(l),c=[C,D].indexOf(l)>=0?"height":"width";if(a&&s){var d=ee("number"!=typeof(t="function"==typeof(t=o.padding)?t(Object.assign({},r.rects,{placement:r.placement})):t)?t:et(t,O)),h=k(a),p="y"===u?"top":C,f="y"===u?E:D,m=r.rects.reference[c]+r.rects.reference[u]-s[u]-r.rects.popper[c],g=s[u]-r.rects.reference[u],v=S(a),y=v?"y"===u?v.clientHeight||0:v.clientWidth||0:0,b=d[p],w=y-h[c]-d[f],x=y/2-h[c]/2+(m/2-g/2),_=er(b,x,w);r.modifiersData[i]=((n={})[u]=_,n.centerOffset=_-x,n)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&K(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=en(t,{elementContext:"reference"}),s=en(t,{altBoundary:!0}),l=ei(a,r),u=ei(s,i,o),c=eo(l),d=eo(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}}]}).defaultModifiers)?[]:i,s=void 0===(a=r.defaultOptions)?N:a,function(e,t,n){void 0===n&&(n=s);var r,i={placement:"bottom",orderedModifiers:[],options:Object.assign({},N,s),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},a=[],u=!1,c={state:i,setOptions:function(n){var r,u,d,h,p,f="function"==typeof n?n(i.options):n;y(),i.options=Object.assign({},s,i.options,f),i.scrollParents={reference:(0,l.kK)(e)?x(e):e.contextElement?x(e.contextElement):[],popper:x(t)};var m=(u=Object.keys(r=[].concat(o,i.options.modifiers).reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{})).map(function(e){return r[e]}),d=new Map,h=new Set,p=[],u.forEach(function(e){d.set(e.name,e)}),u.forEach(function(e){h.has(e.name)||function e(t){h.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!h.has(t)){var n=d.get(t);n&&e(n)}}),p.push(t)}(e)}),F.reduce(function(e,t){return e.concat(p.filter(function(e){return e.phase===t}))},[]));return i.orderedModifiers=m.filter(function(e){return e.enabled}),i.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=e.effect;if("function"==typeof r){var o=r({state:i,name:t,instance:c,options:void 0===n?{}:n});a.push(o||function(){})}}),c.update()},forceUpdate:function(){if(!u){var e,t,n,r,o,a,s,y,w,x,_,E,D=i.elements,C=D.reference,j=D.popper;if(I(C,j)){i.rects={reference:(t=S(j),n="fixed"===i.options.strategy,r=(0,l.Re)(t),y=(0,l.Re)(t)&&(a=d((o=t.getBoundingClientRect()).width)/t.offsetWidth||1,s=d(o.height)/t.offsetHeight||1,1!==a||1!==s),w=g(t),x=h(C,y),_={scrollLeft:0,scrollTop:0},E={x:0,y:0},(r||!r&&!n)&&(("body"!==(0,m.Z)(t)||b(w))&&(_=(e=t)!==(0,p.Z)(e)&&(0,l.Re)(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:f(e)),(0,l.Re)(t)?(E=h(t,!0),E.x+=t.clientLeft,E.y+=t.clientTop):w&&(E.x=v(w))),{x:x.left+_.scrollLeft-E.x,y:x.top+_.scrollTop-E.y,width:x.width,height:x.height}),popper:k(j)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach(function(e){return i.modifiersData[e.name]=Object.assign({},e.data)});for(var O=0;O1?t-1:0),r=1;r3?t.i-4:t.i:Array.isArray(e)?1:d(e)?2:h(e)?3:0}function l(e,t){return 2===s(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function u(e,t,n){var r=s(e);2===r?e.set(t,n):3===r?(e.delete(t),e.add(n)):e[t]=n}function c(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function d(e){return L&&e instanceof Map}function h(e){return B&&e instanceof Set}function p(e){return e.o||e.t}function f(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=W(e);delete t[$];for(var n=V(t),r=0;r1&&(e.set=e.add=e.clear=e.delete=g),Object.freeze(e),t&&a(e,function(e,t){return m(t,!0)},!0)),e}function g(){r(2)}function v(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function y(e){var t=G[e];return t||r(18,e),t}function b(e,t){t&&(y("Patches"),e.u=[],e.s=[],e.v=t)}function k(e){w(e),e.p.forEach(_),e.p=null}function w(e){e===N&&(N=e.l)}function x(e){return N={p:[],l:N,h:e,m:!0,_:0}}function _(e){var t=e[$];0===t.i||1===t.i?t.j():t.O=!0}function S(e,t){t._=t.p.length;var n=t.p[0],i=void 0!==e&&e!==n;return t.h.g||y("ES5").S(t,e,i),i?(n[$].P&&(k(t),r(4)),o(e)&&(e=E(t,e),t.l||C(t,e)),t.u&&y("Patches").M(n[$].t,e,t.u,t.s)):e=E(t,n,[]),k(t),t.u&&t.v(t.u,t.s),e!==U?e:void 0}function E(e,t,n){if(v(t))return t;var r=t[$];if(!r)return a(t,function(i,o){return D(e,r,t,i,o,n)},!0),t;if(r.A!==e)return t;if(!r.P)return C(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=4===r.i||5===r.i?r.o=f(r.k):r.o;a(3===r.i?new Set(i):i,function(t,o){return D(e,r,i,t,o,n)}),C(e,i,!1),n&&e.u&&y("Patches").R(r,n,e.u,e.s)}return r.o}function D(e,t,n,r,a,s){if(i(a)){var c=E(e,a,s&&t&&3!==t.i&&!l(t.D,r)?s.concat(r):void 0);if(u(n,r,c),!i(c))return;e.m=!1}if(o(a)&&!v(a)){if(!e.h.F&&e._<1)return;E(e,a),t&&t.A.l||C(e,a)}}function C(e,t,n){void 0===n&&(n=!1),e.h.F&&e.m&&m(t,n)}function j(e,t){var n=e[$];return(n?p(n):e)[t]}function O(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function T(e){e.P||(e.P=!0,e.l&&T(e.l))}function A(e){e.o||(e.o=f(e.t))}function P(e,t,n){var r,i,o,a,s,l,u,c=d(t)?y("MapSet").N(t,n):h(t)?y("MapSet").T(t,n):e.g?(o=i={i:(r=Array.isArray(t))?1:0,A:n?n.A:N,P:!1,I:!1,D:{},l:n,t:t,k:null,o:null,j:null,C:!1},a=Y,r&&(o=[i],a=Z),l=(s=Proxy.revocable(o,a)).revoke,u=s.proxy,i.k=u,i.j=l,u):y("ES5").J(t,n);return(n?n.A:N).p.push(c),c}function R(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return f(e)}n.d(t,{xC:function(){return eh},oM:function(){return em}});var M,F,N,I="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),L="undefined"!=typeof Map,B="undefined"!=typeof Set,z="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,U=I?Symbol.for("immer-nothing"):((F={})["immer-nothing"]=!0,F),q=I?Symbol.for("immer-draftable"):"__$immer_draftable",$=I?Symbol.for("immer-state"):"__$immer_state",H=""+Object.prototype.constructor,V="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,W=Object.getOwnPropertyDescriptors||function(e){var t={};return V(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},G={},Y={get:function(e,t){if(t===$)return e;var n,r,i=p(e);if(!l(i,t))return(r=O(i,t))?"value"in r?r.value:null===(n=r.get)||void 0===n?void 0:n.call(e.k):void 0;var a=i[t];return e.I||!o(a)?a:a===j(e.t,t)?(A(e),e.o[t]=P(e.A.h,a,e)):a},has:function(e,t){return t in p(e)},ownKeys:function(e){return Reflect.ownKeys(p(e))},set:function(e,t,n){var r=O(p(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var i=j(p(e),t),o=null==i?void 0:i[$];if(o&&o.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(c(n,i)&&(void 0!==n||l(e.t,t)))return!0;A(e),T(e)}return e.o[t]===n&&"number"!=typeof n&&(void 0!==n||t in e.o)||(e.o[t]=n,e.D[t]=!0,!0)},deleteProperty:function(e,t){return void 0!==j(e.t,t)||t in e.t?(e.D[t]=!1,A(e),T(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=p(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){r(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){r(12)}},Z={};a(Y,function(e,t){Z[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Z.deleteProperty=function(e,t){return Z.set.call(this,e,t,void 0)},Z.set=function(e,t,n){return Y.set.call(this,e[0],t,n,e[0])};var K=new(function(){function e(e){var t=this;this.g=z,this.F=!0,this.produce=function(e,n,i){if("function"==typeof e&&"function"!=typeof n){var a,s=n;return n=e,function(e){var r=this;void 0===e&&(e=s);for(var i=arguments.length,o=Array(i>1?i-1:0),a=1;a1?r-1:0),o=1;o=0;n--){var n,r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));var o=y("Patches").$;return i(e)?o(e,t):this.produce(e,function(e){return o(e,t)})},e}()),J=K.produce;K.produceWithPatches.bind(K),K.setAutoFreeze.bind(K),K.setUseProxies.bind(K),K.applyPatches.bind(K),K.createDraft.bind(K),K.finishDraft.bind(K);var X=n(38726);function Q(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(i){return"function"==typeof i?i(n,r,e):t(i)}}}}var ee=Q();ee.withExtraArgument=Q,n(34406);var et=(M=function(e,t){return(M=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}M(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),en=function(e,t){for(var n=0,r=t.length,i=e.length;n=0;t--){var i=e[t][$];if(!i.P)switch(i.i){case 5:r(i)&&T(i);break;case 4:n(i)&&T(i)}}}function n(e){for(var t=e.t,n=e.k,r=V(n),i=r.length-1;i>=0;i--){var o=r[i];if(o!==$){var a=t[o];if(void 0===a&&!l(t,o))return!0;var s=n[o],u=s&&s[$];if(u?u.t!==a:!c(s,a))return!0}}var d=!!t[$];return r.length!==V(t).length+(d?0:1)}function r(e){var t=e.k;if(t.length!==e.t.length)return!0;var n=Object.getOwnPropertyDescriptor(t,t.length-1);if(n&&!n.get)return!0;for(var r=0;rr-o?(l[1]>s.top||rl[1])&&(u[1]=1),s.left>n-o?(l[0]>s.left||nl[0])&&(u[0]=1),clearTimeout(this._timer),(!!u[0]||!!u[1])&&this._continueDrag(a(a({},t),{direction:u,inputEvent:e,isDrag:!0}))},n.checkScroll=function(e){var t=this;if(this._isWait)return!1;var n=e.prevScrollPos,r=void 0===n?this._prevScrollPos:n,i=e.direction,o=e.throttleTime,a=void 0===o?0:o,s=e.inputEvent,l=e.isDrag,u=this._getScrollPosition(i||[0,0],e),c=u[0]-r[0],d=u[1]-r[1],h=i||[c?Math.abs(c)/c:0,d?Math.abs(d)/d:0];return this._prevScrollPos=u,(!!c||!!d)&&(this.trigger("move",{offsetX:h[0]?c:0,offsetY:h[1]?d:0,inputEvent:s}),a&&l&&(this._timer=window.setTimeout(function(){t._continueDrag(e)},a)),!0)},n.dragEnd=function(){clearTimeout(this._timer)},n._getScrollPosition=function(e,t){var n=t.container,r=t.getScrollPosition;return(void 0===r?function(e){var t=e.container;return t===document.body?[t.scrollLeft||document.documentElement.scrollLeft,t.scrollTop||document.documentElement.scrollTop]:[t.scrollLeft,t.scrollTop]}:r)({container:n,direction:e})},n._continueDrag=function(e){var t=this,n=e.container,r=e.direction,o=e.throttleTime,s=e.useScroll,l=e.isDrag,u=e.inputEvent;if(!l||!this._isWait){var c=(0,i.zO)(),d=Math.max(o+this._prevTime-c,0);if(d>0)return this._timer=window.setTimeout(function(){t._continueDrag(e)},d),!1;this._prevTime=c;var h=this._getScrollPosition(r,e);return this._prevScrollPos=h,l&&(this._isWait=!0),this.trigger("scroll",{container:n,direction:r,inputEvent:u}),this._isWait=!1,s||this.checkScroll(a(a({},e),{prevScrollPos:h,direction:r,inputEvent:u}))}},t}(r.Z);t.Z=s},23949:function(e,t,n){"use strict";var r=n(90824),i=function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n-1&&i.splice(o,1)}}else this._events[e]=[]}else this._events={};return this},t.once=function(e,t){var n=this;return t&&this._addEvent(e,t,{once:!0}),new Promise(function(t){n._addEvent(e,t,{once:!0})})},t.emit=function(e,t){var n=this;void 0===t&&(t={});var r=this._events[e];if(!e||!r)return!0;var i=!1;return t.eventType=e,t.stop=function(){i=!0},t.currentTarget=this,(function(){for(var e=0,t=0,n=arguments.length;t0&&!(0,x.s)()},function(){return(0,i.mG)(r,void 0,void 0,function(){var r;return(0,i.Jh)(this,function(i){switch(i.label){case 0:if(!(r=t.pop()))return[2];return[4,(0,M.a)(r,e)];case 1:return i.sent() instanceof _._||n.push(r),[2]}})})})];case 1:return o.sent(),n.map(function(e){return t.pushWithBackoff(e)}),[2,t]}})})}(n,t)];case 1:return o=a.sent(),e=!1,t.todo>0&&r(e,o,n,r),[2]}})})},5e3*Math.random())}var ew=function(e,t,n){n.getCalls(e).forEach(function(e){eD(t,e).catch(console.error)})},ex=ew.bind(void 0,"on"),e_=ew.bind(void 0,"setAnonymousId"),eS=function(e,t){t.toArray().forEach(function(t){setTimeout(function(){eD(e,t).catch(console.error)},0)})},eE=function(){function e(){this._value={}}return e.prototype.toArray=function(){var e;return(e=[]).concat.apply(e,Object.values(this._value))},e.prototype.getCalls=function(e){var t;return null!==(t=this._value[e])&&void 0!==t?t:[]},e.prototype.push=function(){for(var e=this,t=[],n=0;n0))return[3,2];return[4,n.e(4604).then(n.bind(n,27725)).then(function(t){return t.tsubMiddleware(e.middlewareSettings.routingRules)})];case 1:return p=E.sent(),[3,3];case 2:p=void 0,E.label=3;case 3:if(h=p,"test"===a().NODE_ENV||!(Object.keys(e.integrations).length>1))return[3,5];return[4,n.e(9464).then(n.bind(n,17761)).then(function(n){return n.ajsDestinations(e,t.integrations,r,h)})];case 4:return m=E.sent(),[3,6];case 5:m=[],E.label=6;case 6:if(f=m,!e.legacyVideoPluginsEnabled)return[3,8];return[4,n.e(8150).then(n.bind(n,83997)).then(function(e){return e.loadLegacyVideoPlugins(t)})];case 7:E.sent(),E.label=8;case 8:if(!(null===(u=r.plan)||void 0===u?void 0:u.track))return[3,10];return[4,n.e(7493).then(n.bind(n,63338)).then(function(t){var n;return t.schemaFilter(null===(n=r.plan)||void 0===n?void 0:n.track,e)})];case 9:return y=E.sent(),[3,11];case 10:y=void 0,E.label=11;case 11:return v=y,b=(0,er.o)(e,o),[4,(function(e,t,n,r,o){var a,l,u;return(0,i.mG)(this,void 0,void 0,function(){var c,d,h,p=this;return(0,i.Jh)(this,function(f){switch(f.label){case 0:return c=[],d=(0,s.Vl)(),h=null!==(l=null===(a=e.middlewareSettings)||void 0===a?void 0:a.routingRules)&&void 0!==l?l:[],[4,Promise.all((null!==(u=e.remotePlugins)&&void 0!==u?u:[]).map(function(e){return(0,i.mG)(p,void 0,void 0,function(){var a,s,l,u,p,f,m,g;return(0,i.Jh)(this,function(v){switch(v.label){case 0:if(!1===t.All&&!t[e.name]||!1===t[e.name])return[2];v.label=1;case 1:if(v.trys.push([1,12,,13]),!r)return[3,7];s=(a=e.url.split("/"))[a.length-2],l=e.url.replace(s,btoa(s).replace(/=/g,"")),v.label=2;case 2:return v.trys.push([2,4,,6]),[4,(0,ec.v)(l.replace("https://cdn.segment.com",d))];case 3:case 5:return v.sent(),[3,6];case 4:return v.sent(),[4,(0,ec.v)(e.url.replace("https://cdn.segment.com",d))];case 6:return[3,9];case 7:return[4,(0,ec.v)(e.url.replace("https://cdn.segment.com",d))];case 8:v.sent(),v.label=9;case 9:if(u=e.libraryName,"function"!=typeof window[u])return[3,11];return p=window[u],[4,(0,eu.O)(p((0,i.pi)((0,i.pi)({},e.settings),n[e.name])))];case 10:(function(e){if(!Array.isArray(e))throw Error("Not a valid list of plugins");var t=["load","isLoaded","name","version","type"];e.forEach(function(e){t.forEach(function(t){var n;if(void 0===e[t])throw Error("Plugin: ".concat(null!==(n=e.name)&&void 0!==n?n:"unknown"," missing required function ").concat(t))})})})(m=Array.isArray(f=v.sent())?f:[f]),g=h.filter(function(t){return t.destinationName===e.creationName}),m.forEach(function(t){var n=new eh(e.creationName,t);g.length&&o&&"destination"===t.type&&n.addMiddleware(o),c.push(n)}),v.label=11;case 11:return[3,13];case 12:return console.warn("Failed to load Remote Plugin",v.sent()),[3,13];case 13:return[2]}})})}))];case 1:return f.sent(),[2,c.filter(Boolean)]}})})})(e,t.integrations,b,o.obfuscate,h).catch(function(){return[]})];case 12:return k=E.sent(),w=(0,i.ev)((0,i.ev)((0,i.ev)([g,el],l,!0),f,!0),k,!0),v&&w.push(v),(null===(c=r.integrations)||void 0===c?void 0:c.All)===!1&&!r.integrations["Segment.io"]||r.integrations&&!1===r.integrations["Segment.io"]||w.push(function(e,t,n){var r,o,a,s,l=e.options.disableClientPersistence?new T.Z(e.queue.queue.maxAttempts,[]):new A.$(e.queue.queue.maxAttempts,"dest-Segment.io"),u=null!==(r=null==t?void 0:t.apiHost)&&void 0!==r?r:"api.segment.io/v1",c=null!==(o=null==t?void 0:t.protocol)&&void 0!==o?o:"https",d="".concat(c,"://").concat(u),h=(null===(a=null==t?void 0:t.deliveryStrategy)||void 0===a?void 0:a.strategy)==="batching"?function(e,t){var n,r,o,a=[],s=!1,l=null!==(n=null==t?void 0:t.size)&&void 0!==n?n:10,u=null!==(r=null==t?void 0:t.timeout)&&void 0!==r?r:5e3;function c(t){if(0!==t.length){var n,r=null===(n=t[0])||void 0===n?void 0:n.writeKey;return em("https://".concat(e,"/b"),{keepalive:s,headers:{"Content-Type":"text/plain"},method:"post",body:JSON.stringify({batch:t,writeKey:r})})}}function d(){return(0,i.mG)(this,void 0,void 0,function(){var e;return(0,i.Jh)(this,function(t){return a.length?(e=a,a=[],[2,c(e)]):[2]})})}return ef(function(){if(s=!0,a.length){var e,t;Promise.all((e=[],t=0,a.forEach(function(n){eg(e[t])>=64&&t++,e[t]?e[t].push(n):e[t]=[n]}),e).map(c)).catch(console.error)}}),{dispatch:function(e,t){return(0,i.mG)(this,void 0,void 0,function(){return(0,i.Jh)(this,function(e){return a.push(t),[2,a.length>=l||eg(a)>=450||s?d():void(o||(o=setTimeout(function(){o=void 0,d().catch(console.error)},u)))]})})}}}(u,null===(s=null==t?void 0:t.deliveryStrategy)||void 0===s?void 0:s.config):{dispatch:function(e,t){return ev(e,{headers:{"Content-Type":"text/plain"},method:"post",body:JSON.stringify(t)})}};function p(r){return(0,i.mG)(this,void 0,void 0,function(){var o,a;return(0,i.Jh)(this,function(i){if((0,x.s)())return l.push(r),ek(!1,l,f,ek),[2,r];if(o=r.event.type.charAt(0),a=(0,ep.D)(r.event).json(),"track"===r.event.type&&delete a.traits,"alias"===r.event.type){var s,u,c,p,m,g;s=a,g=e.user(),s.previousId=null!==(p=null!==(c=null!==(u=s.previousId)&&void 0!==u?u:s.from)&&void 0!==c?c:g.id())&&void 0!==p?p:g.anonymousId(),s.userId=null!==(m=s.userId)&&void 0!==m?m:s.to,delete s.from,delete s.to,a=s}return[2,h.dispatch("".concat(d,"/").concat(o),(0,ey.Fv)(e,a,t,n)).then(function(){return r}).catch(function(e){return("error"===e.type||"Failed to fetch"===e.message)&&(l.push(r),ek(!1,l,f,ek)),r})]})})}var f={name:"Segment.io",type:"after",version:"0.1.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},track:p,identify:p,page:p,alias:p,group:p};return f}(t,b["Segment.io"],e.integrations)),[4,t.register.apply(t,w)];case 13:if(_=E.sent(),!Object.entries(null!==(d=e.enabledMiddleware)&&void 0!==d?d:{}).some(function(e){return e[1]}))return[3,15];return[4,n.e(9214).then(n.bind(n,65212)).then(function(n){var r=n.remoteMiddlewares;return(0,i.mG)(S,void 0,void 0,function(){return(0,i.Jh)(this,function(n){switch(n.label){case 0:return[4,r(_,e,o.obfuscate)];case 1:return[2,Promise.all(n.sent().map(function(e){return t.addSourceMiddleware(e)}))]}})})})];case 14:E.sent(),E.label=15;case 15:return[2,_]}})})}(m,k,b,t,w)];case 4:if(S=j.sent(),E=null!==(p=window.location.search)&&void 0!==p?p:"",D=null!==(f=window.location.hash)&&void 0!==f?f:"",!(C=E.length?E:D.replace(/(?=#).*(?=\?)/,"")).includes("ajs_"))return[3,6];return[4,k.queryString(C).catch(console.error)];case 5:j.sent(),j.label=6;case 6:return k.initialized=!0,k.emit("initialize",e,t),t.initialPageview&&k.page().catch(console.error),[4,function(e,t){return(0,i.mG)(this,void 0,void 0,function(){return(0,i.Jh)(this,function(n){switch(n.label){case 0:return t.push.apply(t,eO()),[4,(0,i.mG)(void 0,void 0,void 0,function(){var n,r;return(0,i.Jh)(this,function(i){switch(i.label){case 0:n=0,r=t.getCalls("addSourceMiddleware"),i.label=1;case 1:if(!(n1){var e=this._logs.reduce(function(e,t){var n,r,i,o=(0,a.pi)((0,a.pi)({},t),{json:JSON.stringify(t.extras,null," "),extras:t.extras});delete o.time;var s=null!==(i=null===(r=t.time)||void 0===r?void 0:r.toISOString())&&void 0!==i?i:"";return e[s]&&(s="".concat(s,"-").concat(Math.random())),(0,a.pi)((0,a.pi)({},e),((n={})[s]=o,n))},{});console.table?console.table(e):console.log(e)}else this.logs.forEach(function(e){var t=e.level,n=e.message,r=e.extras;"info"===t||"debug"===t?console.log(n,null!=r?r:""):console[t](n,null!=r?r:"")});this._logs=[]},e}(),l=function(){function e(e){this.metrics=[],this.remoteMetrics=e}return e.prototype.increment=function(e,t,n){var r;void 0===t&&(t=1),this.metrics.push({metric:e,value:t,tags:null!=n?n:[],type:"counter",timestamp:Date.now()}),null===(r=this.remoteMetrics)||void 0===r||r.increment(e,null!=n?n:[])},e.prototype.gauge=function(e,t,n){this.metrics.push({metric:e,value:t,tags:null!=n?n:[],type:"gauge",timestamp:Date.now()})},e.prototype.flush=function(){var e=this.metrics.map(function(e){return(0,a.pi)((0,a.pi)({},e),{tags:e.tags.join(",")})});console.table?console.table(e):console.log(e),this.metrics=[]},e.prototype.serialize=function(){return this.metrics.map(function(e){return{m:e.metric,v:e.value,t:e.tags,k:({gauge:"g",counter:"c"})[e.type],e:e.timestamp}})},e}(),u=n(26528),c=n.n(u),d=n(38497),h=n(33356);function p(e){console.error("Error sending segment performance metrics",e)}var f=function(){function e(e){var t,n,r,i,o=this;if(this.host=null!==(t=null==e?void 0:e.host)&&void 0!==t?t:"api.segment.io/v1",this.sampleRate=null!==(n=null==e?void 0:e.sampleRate)&&void 0!==n?n:1,this.flushTimer=null!==(r=null==e?void 0:e.flushTimer)&&void 0!==r?r:3e4,this.maxQueueSize=null!==(i=null==e?void 0:e.maxQueueSize)&&void 0!==i?i:20,this.queue=[],this.sampleRate>0){var a=!1,s=function(){a||(a=!0,o.flush().catch(p),a=!1,setTimeout(s,o.flushTimer))};s()}}return e.prototype.increment=function(e,t){if(!(!e.includes("analytics_js.")||0===t.length||Math.random()>this.sampleRate)&&!(this.queue.length>=this.maxQueueSize)){var n=t.reduce(function(e,t){var n=t.split(":"),r=n[0],i=n[1];return e[r]=i,e},{});n.library="analytics.js","web"===(0,h.Bz)()?n.library_version="next-".concat(d.i):n.library_version="npm:next-".concat(d.i),this.queue.push({type:"Counter",metric:e,value:1,tags:n}),e.includes("error")&&this.flush().catch(p)}},e.prototype.flush=function(){return(0,a.mG)(this,void 0,void 0,function(){var e=this;return(0,a.Jh)(this,function(t){switch(t.label){case 0:if(this.queue.length<=0)return[2];return[4,this.send().catch(function(t){p(t),e.sampleRate=0})];case 1:return t.sent(),[2]}})})},e.prototype.send=function(){return(0,a.mG)(this,void 0,void 0,function(){var e,t,n;return(0,a.Jh)(this,function(r){return e={series:this.queue},this.queue=[],t={"Content-Type":"text/plain"},n="https://".concat(this.host,"/m"),[2,c()(n,{headers:t,body:JSON.stringify(e),method:"POST"})]})})},e}(),m=function(e){var t,n,r;this.retry=null===(t=e.retry)||void 0===t||t,this.type=null!==(n=e.type)&&void 0!==n?n:"plugin Error",this.reason=null!==(r=e.reason)&&void 0!==r?r:""},g=function(){function e(e,t){this.logger=new s,this.cancel=function(e){if(e)throw e;throw new m({reason:"Context Cancel"})},this._attempts=0,this._event=e,this._id=null!=t?t:(0,i.v4)(),this.stats=new l(r)}return e.initMetrics=function(e){r=new f(e)},e.system=function(){return new e({type:"track",event:"system"})},e.prototype.isSame=function(e){return e._id===this._id},e.prototype.log=function(e,t,n){this.logger.log(e,t,n)},Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"event",{get:function(){return this._event},set:function(e){this._event=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"attempts",{get:function(){return this._attempts},set:function(e){this._attempts=e},enumerable:!1,configurable:!0}),e.prototype.updateEvent=function(e,t){var n;if("integrations"===e.split(".")[0]){var r=e.split(".")[1];if((null===(n=this._event.integrations)||void 0===n?void 0:n[r])===!1)return this._event}return(0,o.N)(this._event,e,t),this._event},e.prototype.failedDelivery=function(){return this._failedDelivery},e.prototype.setFailedDelivery=function(e){this._failedDelivery=e},e.prototype.logs=function(){return this.logger.logs},e.prototype.flush=function(){this.logger.flush(),this.stats.flush()},e.prototype.toJSON=function(){return{id:this._id,event:this._event,logs:this.logger.logs,metrics:this.stats.metrics}},e}()},79677:function(e,t,n){"use strict";function r(){return"undefined"!=typeof window}function i(){return!r()}n.d(t,{j:function(){return r},s:function(){return i}})},87554:function(e,t,n){"use strict";function r(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(t){return e}}n.d(t,{a:function(){return r}})},37759:function(e,t,n){"use strict";n.d(t,{a:function(){return o},z:function(){return a}});var r=n(5163),i=n(61668);function o(e,t){var n="action"in t?t.action.name:t.name;e.log("debug","plugin",{plugin:n});var o=new Date().getTime(),a=t[e.event.type];return void 0===a?Promise.resolve(e):(function(e){return(0,r.mG)(this,void 0,void 0,function(){return(0,r.Jh)(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,e()];case 1:return[2,t.sent()];case 2:return[2,Promise.reject(t.sent())];case 3:return[2]}})})})(function(){return a.apply(t,[e])}).then(function(e){var t=new Date().getTime()-o;return e.stats.gauge("plugin_time",t,["plugin:".concat(n)]),e}).catch(function(t){if(t instanceof i.Y&&"middleware_cancellation"===t.type)throw t;return t instanceof i.Y?e.log("warn",t.type,{plugin:n,error:t}):(e.log("error","plugin Error",{plugin:n,error:t}),e.stats.increment("plugin_error",1,["plugin:".concat(n)])),t})}function a(e,t){return o(e,t).then(function(t){if(t instanceof i._)return t;e.log("debug","Context canceled"),e.stats.increment("context_canceled"),e.cancel(t)})}},24516:function(e,t,n){"use strict";n.d(t,{P:function(){return i}});var r=n(21805);function i(e){var t=function(e){try{return new URL(e)}catch(e){return}}(e);if(t)for(var n=function(e){var t=e.hostname.split("."),n=t[t.length-1],r=[];if(4===t.length&&parseInt(n,10)>0||t.length<=1)return r;for(var i=t.length-2;i>=0;--i)r.push(t.slice(i).join("."));return r}(t),i=0;ie.maxAttempts||e.includes(t))&&(e.queue.push(t),!0)});return this.queue=this.queue.sort(function(t,n){return e.getAttempts(t)-e.getAttempts(n)}),r},t.prototype.pushWithBackoff=function(e){var t,n,r,i,a,s=this;if(0===this.getAttempts(e))return this.push(e)[0];var l=this.updateAttempts(e);return!(l>this.maxAttempts||this.includes(e))&&(setTimeout(function(){s.queue.push(e),s.future=s.future.filter(function(t){return t.id!==e.id}),s.emit(o)},(t={attempt:l-1},n=Math.random()+1,r=t.minTimeout,Math.min(n*(void 0===r?500:r)*Math.pow(void 0===(i=t.factor)?2:i,t.attempt),void 0===(a=t.maxTimeout)?1/0:a))),this.future.push(e),!0)},t.prototype.getAttempts=function(e){var t;return null!==(t=this.seen[e.id])&&void 0!==t?t:0},t.prototype.updateAttempts=function(e){return this.seen[e.id]=this.getAttempts(e)+1,this.getAttempts(e)},t.prototype.includes=function(e){return this.queue.includes(e)||this.future.includes(e)||!!this.queue.find(function(t){return t.id===e.id})||!!this.future.find(function(t){return t.id===e.id})},t.prototype.pop=function(){return this.queue.shift()},Object.defineProperty(t.prototype,"length",{get:function(){return this.queue.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"todo",{get:function(){return this.queue.length+this.future.length},enumerable:!1,configurable:!0}),t}(i.Q)},46804:function(e,t,n){"use strict";n.d(t,{$:function(){return h}});var r=n(5163),i=n(98552),o=n(61668),a=n(79677),s={getItem:function(){},setItem:function(){},removeItem:function(){}};try{s=(0,a.j)()&&window.localStorage?window.localStorage:s}catch(e){console.warn("Unable to access localStorage",e)}function l(e){var t=s.getItem(e);return(t?JSON.parse(t):[]).map(function(e){return new o._(e.event,e.id)})}function u(e){var t=s.getItem(e);return t?JSON.parse(t):{}}function c(e){s.removeItem(e)}function d(e,t,n){void 0===n&&(n=0);var r="persisted-queue:v1:".concat(e,":lock"),i=s.getItem(r),o=i?JSON.parse(i):null,a=null===o||new Date().getTime()>o;if(a){s.setItem(r,JSON.stringify(new Date().getTime()+50)),t(),s.removeItem(r);return}!a&&n<3?setTimeout(function(){d(e,t,n+1)},50):console.error("Unable to retrieve lock")}var h=function(e){function t(t,n){var i=e.call(this,t,[])||this,o="persisted-queue:v1:".concat(n,":items"),a="persisted-queue:v1:".concat(n,":seen"),h=[],p={};return d(n,function(){try{h=l(o),p=u(a),c(o),c(a),i.queue=(0,r.ev)((0,r.ev)([],h,!0),i.queue,!0),i.seen=(0,r.pi)((0,r.pi)({},p),i.seen)}catch(e){console.error(e)}}),document.addEventListener("pagehide",function(){if(i.todo>0){var e=(0,r.ev)((0,r.ev)([],i.queue,!0),i.future,!0);try{d(n,function(){var t,n,c,d;t=l(o),n=(0,r.ev)((0,r.ev)([],e,!0),t,!0).reduce(function(e,t){var n;return(0,r.pi)((0,r.pi)({},e),((n={})[t.id]=t,n))},{}),s.setItem(o,JSON.stringify(Object.values(n))),c=i.seen,d=u(a),s.setItem(a,JSON.stringify((0,r.pi)((0,r.pi)({},d),c)))})}catch(e){console.error(e)}}}),i}return(0,r.ZT)(t,e),t}(i.Z)},25030:function(e,t,n){"use strict";n.d(t,{D:function(){return i}});var r=n(64122);function i(e,t){var n=new r.Facade(e,t);return"track"===e.type&&(n=new r.Track(e,t)),"identify"===e.type&&(n=new r.Identify(e,t)),"page"===e.type&&(n=new r.Page(e,t)),"alias"===e.type&&(n=new r.Alias(e,t)),"group"===e.type&&(n=new r.Group(e,t)),"screen"===e.type&&(n=new r.Screen(e,t)),Object.defineProperty(n,"obj",{value:e,writable:!0}),n}},18767:function(e,t,n){"use strict";n.r(t),n.d(t,{applyDestinationMiddleware:function(){return s},sourceMiddlewarePlugin:function(){return l}});var r=n(5163),i=n(61668),o=n(37624),a=n(25030);function s(e,t,n){return(0,r.mG)(this,void 0,void 0,function(){var i,s,l,u,c;return(0,r.Jh)(this,function(d){switch(d.label){case 0:i=(0,a.D)(t,{clone:!0,traverse:!1}).rawEvent(),s=0,l=n,d.label=1;case 1:if(!(s4){var o=r.substr(4);"campaign"===o&&(o="name"),e[o]=(0,a.a)(void 0===i?"":i)}return e},{}))),d=null!==(v=e.options.disableClientPersistence)&&void 0!==v&&v,h=o.Z.get("s:context.referrer"),p=function(e){var t={btid:"dataxu",urid:"millennial-media"};e.startsWith("?")&&(e=e.substring(1));for(var n=(e=e.replace(/\?/g,"&")).split("&"),r=0;r0&&(t._metadata={failedInitializations:_});var S=[],E=[];for(var D in c){var C=c[D];"Segment.io"===D&&S.push(D),"bundled"===C.bundlingStatus&&S.push(D),"unbundled"===C.bundlingStatus&&E.push(D)}for(var j=0,O=(null==n?void 0:n.unbundledIntegrations)||[];j-1&&(e.type="ios"),t.indexOf("android")>-1&&(e.type="android")),e},d.userAgent=c.proxy("context.userAgent"),d.timezone=c.proxy("context.timezone"),d.timestamp=c.field("timestamp"),d.channel=c.field("channel"),d.ip=c.proxy("context.ip"),d.userId=c.field("userId"),i.default(d)},60615:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Group=void 0;var i=r(n(91285)),o=r(n(64554)),a=r(n(55870)),s=n(39512);function l(e,t){s.Facade.call(this,e,t)}t.Group=l,i.default(l,s.Facade);var u=l.prototype;u.action=function(){return"group"},u.type=u.action,u.groupId=s.Facade.field("groupId"),u.created=function(){var e=this.proxy("traits.createdAt")||this.proxy("traits.created")||this.proxy("properties.createdAt")||this.proxy("properties.created");if(e)return a.default(e)},u.email=function(){var e=this.proxy("traits.email");if(e)return e;var t=this.groupId();if(o.default(t))return t},u.traits=function(e){var t=this.properties(),n=this.groupId();for(var r in e=e||{},n&&(t.id=n),e){var i=null==this[r]?this.proxy("traits."+r):this[r]();null!=i&&(t[e[r]]=i,delete t[r])}return t},u.name=s.Facade.proxy("traits.name"),u.industry=s.Facade.proxy("traits.industry"),u.employees=s.Facade.proxy("traits.employees"),u.properties=function(){return this.field("traits")||this.field("properties")||{}}},4705:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Identify=void 0;var i=n(39512),o=r(n(70325)),a=r(n(91285)),s=r(n(64554)),l=r(n(55870)),u=function(e){return e.trim()};function c(e,t){i.Facade.call(this,e,t)}t.Identify=c,a.default(c,i.Facade);var d=c.prototype;d.action=function(){return"identify"},d.type=d.action,d.traits=function(e){var t=this.field("traits")||{},n=this.userId();for(var r in e=e||{},n&&(t.id=n),e){var i=null==this[r]?this.proxy("traits."+r):this[r]();null!=i&&(t[e[r]]=i,r!==e[r]&&delete t[r])}return t},d.email=function(){var e=this.proxy("traits.email");if(e)return e;var t=this.userId();if(s.default(t))return t},d.created=function(){var e=this.proxy("traits.created")||this.proxy("traits.createdAt");if(e)return l.default(e)},d.companyCreated=function(){var e=this.proxy("traits.company.created")||this.proxy("traits.company.createdAt");if(e)return l.default(e)},d.companyName=function(){return this.proxy("traits.company.name")},d.name=function(){var e=this.proxy("traits.name");if("string"==typeof e)return u(e);var t=this.firstName(),n=this.lastName();if(t&&n)return u(t+" "+n)},d.firstName=function(){var e=this.proxy("traits.firstName");if("string"==typeof e)return u(e);var t=this.proxy("traits.name");if("string"==typeof t)return u(t).split(" ")[0]},d.lastName=function(){var e=this.proxy("traits.lastName");if("string"==typeof e)return u(e);var t=this.proxy("traits.name");if("string"==typeof t){var n=u(t).indexOf(" ");if(-1!==n)return u(t.substr(n+1))}},d.uid=function(){return this.userId()||this.username()||this.email()},d.description=function(){return this.proxy("traits.description")||this.proxy("traits.background")},d.age=function(){var e=this.birthday(),t=o.default(this.traits(),"age");return null!=t?t:e instanceof Date?new Date().getFullYear()-e.getFullYear():void 0},d.avatar=function(){var e=this.traits();return o.default(e,"avatar")||o.default(e,"photoUrl")||o.default(e,"avatarUrl")},d.position=function(){var e=this.traits();return o.default(e,"position")||o.default(e,"jobTitle")},d.username=i.Facade.proxy("traits.username"),d.website=i.Facade.one("traits.website"),d.websites=i.Facade.multi("traits.website"),d.phone=i.Facade.one("traits.phone"),d.phones=i.Facade.multi("traits.phone"),d.address=i.Facade.proxy("traits.address"),d.gender=i.Facade.proxy("traits.gender"),d.birthday=i.Facade.proxy("traits.birthday")},64122:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;nt.getRandomValues(new Uint8Array(1))[0]:()=>16*Math.random();return"10000000100040008000100000000000".replace(/[018]/g,e=>(e^(15&n())>>e/4).toString(16))}var l=n(7790),u=(0,a.R)(),c=["debug","info","warn","error","log","assert","trace"];function d(e){var t=(0,a.R)();if(!("console"in t))return e();var n=t.console,r={};c.forEach(e=>{var i=n[e]&&n[e].__sentry_original__;e in t.console&&i&&(r[e]=n[e],n[e]=i)});try{return e()}finally{Object.keys(r).forEach(e=>{n[e]=r[e]})}}function h(){let e=!1;var t={enable:()=>{e=!0},disable:()=>{e=!1}};return"undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?c.forEach(n=>{t[n]=(...t)=>{e&&d(()=>{u.console[n](`Sentry Logger [${n}]:`,...t)})}}):c.forEach(e=>{t[e]=()=>void 0}),t}r="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?(0,a.Y)("logger",h):h();var p=n(4266),f=Object.prototype.toString;function m(e){return"[object Object]"===f.call(e)}function g(e){return!!(e&&e.then&&"function"==typeof e.then)}(i=o||(o={}))[i.PENDING=0]="PENDING",i[i.RESOLVED=1]="RESOLVED",i[i.REJECTED=2]="REJECTED";class v{__init(){this._state=o.PENDING}__init2(){this._handlers=[]}constructor(e){v.prototype.__init.call(this),v.prototype.__init2.call(this),v.prototype.__init3.call(this),v.prototype.__init4.call(this),v.prototype.__init5.call(this),v.prototype.__init6.call(this);try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new v((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){r(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){r(e)}else r(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new v((t,n)=>{let r,i;return this.then(t=>{i=!1,r=t,e&&e()},t=>{i=!0,r=t,e&&e()}).then(()=>{if(i){n(r);return}t(r)})})}__init3(){this._resolve=e=>{this._setResult(o.RESOLVED,e)}}__init4(){this._reject=e=>{this._setResult(o.REJECTED,e)}}__init5(){this._setResult=(e,t)=>{if(this._state===o.PENDING){if(g(t)){t.then(this._resolve,this._reject);return}this._state=e,this._value=t,this._executeHandlers()}}}__init6(){this._executeHandlers=()=>{if(this._state!==o.PENDING){var e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(this._state===o.RESOLVED&&e[1](this._value),this._state===o.REJECTED&&e[2](this._value),e[0]=!0)})}}}}function y(e,t={}){if(!t.user||(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||(0,l.ph)(),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:s()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{var n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}class b{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}static clone(e){var t=new b;return e&&(t._breadcrumbs=[...e._breadcrumbs],t._tags={...e._tags},t._extra={...e._extra},t._contexts={...e._contexts},t._user=e._user,t._level=e._level,t._span=e._span,t._session=e._session,t._transactionName=e._transactionName,t._fingerprint=e._fingerprint,t._eventProcessors=[...e._eventProcessors],t._requestSession=e._requestSession,t._attachments=[...e._attachments]),t}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{},this._session&&y(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts={...this._contexts,[e]:t},this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){var e=this.getSpan();return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;if("function"==typeof e){var t=e(this);return t instanceof b?t:this}return e instanceof b?(this._tags={...this._tags,...e._tags},this._extra={...this._extra,...e._extra},this._contexts={...this._contexts,...e._contexts},e._user&&Object.keys(e._user).length&&(this._user=e._user),e._level&&(this._level=e._level),e._fingerprint&&(this._fingerprint=e._fingerprint),e._requestSession&&(this._requestSession=e._requestSession)):m(e)&&(this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this}addBreadcrumb(e,t){var n="number"==typeof t?Math.min(t,100):100;if(n<=0)return this;var r={timestamp:(0,l.yW)(),...e};return this._breadcrumbs=[...this._breadcrumbs,r].slice(-n),this._notifyScopeListeners(),this}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(e,t={}){if(this._extra&&Object.keys(this._extra).length&&(e.extra={...this._extra,...e.extra}),this._tags&&Object.keys(this._tags).length&&(e.tags={...this._tags,...e.tags}),this._user&&Object.keys(this._user).length&&(e.user={...this._user,...e.user}),this._contexts&&Object.keys(this._contexts).length&&(e.contexts={...this._contexts,...e.contexts}),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts={trace:this._span.getTraceContext(),...e.contexts};var n=this._span.transaction&&this._span.transaction.name;n&&(e.tags={transaction:n,...e.tags})}return this._applyFingerprint(e),e.breadcrumbs=[...e.breadcrumbs||[],...this._breadcrumbs],e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...this._sdkProcessingMetadata},this._notifyEventProcessors([...(0,a.Y)("globalEventProcessors",()=>[]),...this._eventProcessors],e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}_notifyEventProcessors(e,t,n,i=0){return new v((o,a)=>{var s=e[i];if(null===t||"function"!=typeof s)o(t);else{var l=s({...t},n);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.id&&null===l&&r.log(`Event processor "${s.id}" dropped event`),g(l)?l.then(t=>this._notifyEventProcessors(e,t,n,i+1).then(o)).then(null,a):this._notifyEventProcessors(e,l,n,i+1).then(o).then(null,a)}})}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}_applyFingerprint(e){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}}class k{__init(){this._stack=[{}]}constructor(e,t=new b,n=4){this._version=n,k.prototype.__init.call(this),this.getStackTop().scope=t,e&&this.bindClient(e)}isOlderThan(e){return this._version{i.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},o)}),n}captureMessage(e,t,n){var r=this._lastEventId=n&&n.event_id?n.event_id:s(),i=Error(e);return this._withClient((o,a)=>{o.captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r},a)}),r}captureEvent(e,t){var n=t&&t.event_id?t.event_id:s();return"transaction"!==e.type&&(this._lastEventId=n),this._withClient((r,i)=>{r.captureEvent(e,{...t,event_id:n},i)}),n}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){let{scope:n,client:r}=this.getStackTop();if(!n||!r)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:o=100}=r.getOptions&&r.getOptions()||{};if(!(o<=0)){var a={timestamp:(0,l.yW)(),...e},s=i?d(()=>i(a,t)):a;null!==s&&n.addBreadcrumb(s,o)}}setUser(e){var t=this.getScope();t&&t.setUser(e)}setTags(e){var t=this.getScope();t&&t.setTags(e)}setExtras(e){var t=this.getScope();t&&t.setExtras(e)}setTag(e,t){var n=this.getScope();n&&n.setTag(e,t)}setExtra(e,t){var n=this.getScope();n&&n.setExtra(e,t)}setContext(e,t){var n=this.getScope();n&&n.setContext(e,t)}configureScope(e){let{scope:t,client:n}=this.getStackTop();t&&n&&e(t)}run(e){var t=x(this);try{e(this)}finally{x(t)}}getIntegration(e){var t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){return this._callExtensionMethod("startTransaction",e,t)}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){var e,t=this.getStackTop(),n=t&&t.scope,r=n&&n.getSession();if(r){let t;t={},e?t={status:e}:"ok"===r.status&&(t={status:"exited"}),y(r,t)}this._sendSessionUpdate(),n&&n.setSession()}startSession(e){let{scope:t,client:n}=this.getStackTop(),{release:r,environment:i}=n&&n.getOptions()||{};var o,u,c,d=(0,a.R)();let{userAgent:h}=d.navigator||{};var p=(o={release:r,environment:i,...t&&{user:t.getUser()},...h&&{userAgent:h},...e},u=(0,l.ph)(),c={sid:s(),init:!0,timestamp:u,started:u,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>(function e(t,n){if(m(t)){var r=n.get(t);if(void 0!==r)return r;var i={};for(var o of(n.set(t,i),Object.keys(t)))void 0!==t[o]&&(i[o]=e(t[o],n));return i}if(Array.isArray(t)){var r=n.get(t);if(void 0!==r)return r;var i=[];return n.set(t,i),t.forEach(t=>{i.push(e(t,n))}),i}return t})({sid:`${c.sid}`,init:c.init,started:new Date(1e3*c.started).toISOString(),timestamp:new Date(1e3*c.timestamp).toISOString(),status:c.status,errors:c.errors,did:"number"==typeof c.did||"string"==typeof c.did?`${c.did}`:void 0,duration:c.duration,attrs:{release:c.release,environment:c.environment,ip_address:c.ipAddress,user_agent:c.userAgent}},new Map)},o&&y(c,o),c);if(t){var f=t.getSession&&t.getSession();f&&"ok"===f.status&&y(f,{status:"exited"}),this.endSession(),t.setSession(p)}return p}shouldSendDefaultPii(){var e=this.getClient(),t=e&&e.getOptions();return!!(t&&t.sendDefaultPii)}_sendSessionUpdate(){let{scope:e,client:t}=this.getStackTop();if(e){var n=e.getSession();n&&t&&t.captureSession&&t.captureSession(n)}}_withClient(e){let{scope:t,client:n}=this.getStackTop();n&&e(n,t)}_callExtensionMethod(e,...t){var n=w().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[e])return n.extensions[e].apply(this,t);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.warn(`Extension method ${e} couldn't be found, doing nothing.`)}}function w(){var e=(0,a.R)();return e.__SENTRY__=e.__SENTRY__||{extensions:{},hub:void 0},e}function x(e){var t=w(),n=S(t);return E(t,e),n}function _(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function S(e){return(0,a.Y)("hub",()=>new k,e)}function E(e,t){return!!e&&((e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0)}function D(e,t){var n;return(((!_(n=w())||S(n).isOlderThan(4))&&E(n,new k),(0,p.KV)())?function(e){try{var t=w().__SENTRY__,n=t&&t.extensions&&t.extensions.domain&&t.extensions.domain.active;if(!n)return S(e);if(!_(n)||S(n).isOlderThan(4)){var r=S(e).getStackTop();E(n,new k(r.client,b.clone(r.scope)))}return S(n)}catch(t){return S(e)}}(n):S(n)).captureException(e,{captureContext:t})}},65907:function(e,t,n){"use strict";n.d(t,{R:function(){return o},Y:function(){return a}});var r=n(4266),i={};function o(){return(0,r.KV)()?n.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:i}function a(e,t,n){var r=n||o(),i=r.__SENTRY__=r.__SENTRY__||{};return i[e]||(i[e]=t())}},4266:function(e,t,n){"use strict";n.d(t,{l$:function(){return o},KV:function(){return i}}),e=n.hmd(e);var r=n(34406);function i(){return!("undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call(void 0!==r?r:0)}function o(e,t){return e.require(t)}},7790:function(e,t,n){"use strict";n.d(t,{ph:function(){return u},yW:function(){return l}});var r=n(65907),i=n(4266);e=n.hmd(e);var o={nowSeconds:()=>Date.now()/1e3},a=(0,i.KV)()?function(){try{return(0,i.l$)(e,"perf_hooks").performance}catch(e){return}}():function(){let{performance:e}=(0,r.R)();if(e&&e.now)return{now:()=>e.now(),timeOrigin:Date.now()-e.now()}}(),s=void 0===a?o:{nowSeconds:()=>(a.timeOrigin+a.now())/1e3},l=o.nowSeconds.bind(o),u=s.nowSeconds.bind(s);(()=>{let{performance:e}=(0,r.R)();if(e&&e.now){var t=e.now(),n=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+t-n):36e5,o=e.timing&&e.timing.navigationStart,a="number"==typeof o?Math.abs(o+t-n):36e5;if(i<36e5||a<36e5)return i<=a?e.timeOrigin:void 0}})()},39961:function(e){e.exports=function(e){if("number"!=typeof e||isNaN(e))throw TypeError(`Expected a number, got ${typeof e}`);let t=e<0,n=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(t&&(e=-e),e<1)return`${(t?"-":"")+e} B`;let r=Math.min(Math.floor(Math.log(e)/Math.log(1024)),n.length-1);e=Number(e/Math.pow(1024,r));let i=n[r];return e>=10||e%1==0?`${(t?"-":"")+e.toFixed(0)} ${i}`:`${(t?"-":"")+e.toFixed(1)} ${i}`}},11987:function(e){e.exports=function(e){if("number"!=typeof e||isNaN(e))throw TypeError("Expected a number, got "+typeof e);var t=e<0,n=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(t&&(e=-e),e<1)return(t?"-":"")+e+" B";var r=Math.min(Math.floor(Math.log(e)/Math.log(1024)),n.length-1);e=Number(e/Math.pow(1024,r));var i=n[r];return e>=10||e%1==0?(t?"-":"")+e.toFixed(0)+" "+i:(t?"-":"")+e.toFixed(1)+" "+i}},27545:function(e,t,n){"use strict";n.d(t,{Z:function(){return P}});var r=n(2784),i=n(72779),o=n.n(i),a=n(59309),s=n(63739),l=n(32718),u=n.n(l),c=n(30733),d=n.n(c),h="__react_svg_text_measurement_id",p=d()(function(e,t){try{var n=document.getElementById(h);if(!n){var r=document.createElementNS("http://www.w3.org/2000/svg","svg");r.style.width="0",r.style.height="0",r.style.position="absolute",r.style.top="-100%",r.style.left="-100%",(n=document.createElementNS("http://www.w3.org/2000/svg","text")).setAttribute("id",h),r.appendChild(n),document.body.appendChild(r)}return Object.assign(n.style,t),n.textContent=e,n.getComputedTextLength()}catch(e){return null}},function(e,t){return e+"_"+JSON.stringify(t)}),f=["verticalAnchor","scaleToFit","angle","width","lineHeight","capHeight","children","style"];function m(e){return"number"==typeof e}function g(e){return"number"==typeof e&&Number.isFinite(e)||"string"==typeof e}var v=["dx","dy","textAnchor","innerRef","innerTextRef","verticalAnchor","angle","lineHeight","scaleToFit","capHeight","width"];function y(){return(y=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,v)),q=U.x,$=void 0===q?0:q,H=U.fontSize,V=(n=void 0===(t=e.verticalAnchor)?"end":t,o=void 0!==(i=e.scaleToFit)&&i,a=e.angle,s=e.width,c=void 0===(l=e.lineHeight)?"1em":l,h=void 0===(d=e.capHeight)?"0.71em":d,k=e.children,w=e.style,S=void 0===(_=(x=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,f)).x)?0:_,D=void 0===(E=x.y)?0:E,C=!g(S)||!g(D),O=(j=(0,r.useMemo)(function(){return{wordsWithWidth:(null==k?[]:k.toString().split(/(?:(?!\u00A0+)\s+)/)).map(function(e){return{word:e,wordWidth:p(e,w)||0}}),spaceWidth:p("\xa0",w)||0}},[k,w])).wordsWithWidth,T=j.spaceWidth,A=(0,r.useMemo)(function(){return C?[]:s||o?O.reduce(function(e,t){var n=t.word,r=t.wordWidth,i=e[e.length-1];return i&&(null==s||o||(i.width||0)+r+T0){var t=A[0].width||1,n="shrink-only"===o?Math.min(s/t,1):s/t,r=S-n*S,i=D-n*D;e.push("matrix("+n+", 0, 0, "+n+", "+r+", "+i+")")}return a&&e.push("rotate("+a+", "+S+", "+D+")"),e.length>0?e.join(" "):""},[C,S,D,s,o,A,a]),{wordsByLines:A,startDy:P,transform:R}),W=V.wordsByLines,G=V.startDy,Y=V.transform;return r.createElement("svg",{ref:I,x:void 0===M?0:M,y:void 0===F?0:F,fontSize:H,style:b},W.length>0?r.createElement("text",y({ref:L,transform:Y},U,{textAnchor:void 0===N?"start":N}),W.map(function(e,t){return r.createElement("tspan",{key:t,x:$,dy:0===t?G:z},e.words.join(" "))})):null)}var w=n(5544);function x(){return(x=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,T),j=null!=b?b:"tickFormat"in y?y.tickFormat():C,P=m===w.Z.left,R=m===w.Z.top,M=R||m===w.Z.bottom,F=function(e,t){if(void 0===t&&(t="center"),"start"!==t&&"bandwidth"in e){var n=e.bandwidth();return"center"===t&&(n/=2),e.round()&&(n=Math.round(n)),function(t){var r=e(t);return"number"==typeof r?r+n:r}}return e}(y),N=P||R?-1:1,I=y.range(),L=O({x:Number(I[0])+.5-v,y:0},M),B=O({x:Number(I[I.length-1])+.5+v,y:0},M),z=(null!=_?_:"ticks"in y?y.ticks(p):y.domain().filter(function(e,t,n){return null==p||n.length<=p||t%Math.round((n.length-1)/p)==0})).filter(function(e){return!c||0!==e&&"0"!==e}).map(function(e,t){return{value:e,index:t}}),U=z.map(function(e){var t=e.value,n=e.index,r=function(e){if(("function"==typeof e||"object"==typeof e&&e)&&"valueOf"in e){var t=e.valueOf();if("number"==typeof t)return t}return e}(F(t));return{value:t,index:n,from:O({x:r,y:0},M),to:O({x:r,y:x*N},M),formattedValue:j(t,n,z)}});return r.createElement(a.Z,{className:o()("visx-axis",i),top:void 0===S?0:S,left:void 0===d?0:d},n(A({},E,{axisFromPoint:L,axisToPoint:B,hideAxisLine:void 0!==s&&s,hideTicks:void 0!==l&&l,hideZero:c,horizontal:M,numTicks:p,orientation:m,rangePadding:v,scale:y,tickFormat:j,tickLength:x,tickPosition:F,tickSign:N,ticks:U})))}},70258:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(2784),i=n(72779),o=n.n(i),a=n(27545),s=n(5544),l=["axisClassName","labelOffset","tickLabelProps","tickLength"];function u(){return(u=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,l);return r.createElement(a.Z,u({axisClassName:o()("visx-axis-bottom",t),labelOffset:void 0===n?8:n,orientation:s.Z.bottom,tickLabelProps:void 0===i?c:i,tickLength:void 0===d?8:d},h))}},6802:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(2784),i=n(72779),o=n.n(i),a=n(27545),s=n(5544),l=["axisClassName","labelOffset","tickLabelProps","tickLength"];function u(){return(u=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,l);return r.createElement(a.Z,u({axisClassName:o()("visx-axis-left",t),labelOffset:void 0===n?36:n,orientation:s.Z.left,tickLabelProps:void 0===i?c:i,tickLength:void 0===d?8:d},h))}},5544:function(e,t){"use strict";t.Z={top:"top",left:"left",right:"right",bottom:"bottom"}},80237:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(19067);function i(){return(i=Object.assign||function(e){for(var t=1;t0?{x:e.changedTouches[0].clientX,y:e.changedTouches[0].clientY}:i({},o);if(e&&"clientX"in e)return{x:e.clientX,y:e.clientY};var t=null==e?void 0:e.target,n=t&&"getBoundingClientRect"in t?t.getBoundingClientRect():null;return n?{x:n.x+n.width/2,y:n.y+n.height/2}:i({},o)}(t),a=e&&(e instanceof SVGElement||"ownerSVGElement"in e)?e.ownerSVGElement:e,s=a&&"getScreenCTM"in a?a.getScreenCTM():null;if(a&&"createSVGPoint"in a&&s){var l=a.createSVGPoint();return l.x=n.x,l.y=n.y,l=l.matrixTransform(s.inverse()),new r.Z({x:l.x,y:l.y})}var u=e.getBoundingClientRect();return new r.Z({x:n.x-u.left-e.clientLeft,y:n.y-u.top-e.clientTop})}function s(e,t){if(e&&e instanceof Element&&t)return a(e,t);if(e&&(e instanceof Event||"nativeEvent"in e&&e.nativeEvent instanceof Event)){var n=e.target;if(n)return a(n,e)}return null}},59309:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(13980),i=n.n(r),o=n(2784),a=n(72779),s=n.n(a),l=["top","left","transform","className","children","innerRef"];function u(){return(u=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,l);return o.createElement("g",u({ref:c,className:s()("visx-group",i),transform:r||"translate("+(void 0===n?0:n)+", "+(void 0===t?0:t)+")"},d),a)}c.propTypes={top:i().number,left:i().number,transform:i().string,className:i().string,children:i().node,innerRef:i().oneOfType([i().string,i().func,i().object])}},71602:function(e,t,n){"use strict";n.r(t),n.d(t,{Group:function(){return r.Z}});var r=n(59309)},19067:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:function(){return i}});var i=function(){function e(e){var t=e.x,n=e.y;r(this,"x",0),r(this,"y",0),this.x=void 0===t?0:t,this.y=void 0===n?0:n}var t=e.prototype;return t.value=function(){return{x:this.x,y:this.y}},t.toArray=function(){return[this.x,this.y]},e}()},2574:function(e,t,n){"use strict";n.d(t,{Z:function(){return et}});var r,i,o,a=n(13980),s=n.n(a),l=n(54073),u=n.n(l),c=n(2784),d=[],h="ResizeObserver loop completed with undelivered notifications.",p=function(){var e;"function"==typeof ErrorEvent?e=new ErrorEvent("error",{message:h}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=h),window.dispatchEvent(e)};(r=i||(i={})).BORDER_BOX="border-box",r.CONTENT_BOX="content-box",r.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box";var f=function(e){return Object.freeze(e)},m=function(e,t){this.inlineSize=e,this.blockSize=t,f(this)},g=function(){function e(e,t,n,r){return this.x=e,this.y=t,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,f(this)}return e.prototype.toJSON=function(){return{x:this.x,y:this.y,top:this.top,right:this.right,bottom:this.bottom,left:this.left,width:this.width,height:this.height}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),v=function(e){return e instanceof SVGElement&&"getBBox"in e},y=function(e){if(v(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e.offsetWidth,o=e.offsetHeight;return!(i||o||e.getClientRects().length)},b=function(e){if(e instanceof Element)return!0;var t,n=null===(t=null==e?void 0:e.ownerDocument)||void 0===t?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},k=function(e){switch(e.tagName){case"INPUT":if("image"!==e.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},w="undefined"!=typeof window?window:{},x=new WeakMap,_=/auto|scroll/,S=/^tb|vertical/,E=/msie|trident/i.test(w.navigator&&w.navigator.userAgent),D=function(e){return parseFloat(e||"0")},C=function(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=!1),new m((n?t:e)||0,(n?e:t)||0)},j=f({devicePixelContentBoxSize:C(),borderBoxSize:C(),contentBoxSize:C(),contentRect:new g(0,0,0,0)}),O=function(e,t){if(void 0===t&&(t=!1),x.has(e)&&!t)return x.get(e);if(y(e))return x.set(e,j),j;var n=getComputedStyle(e),r=v(e)&&e.ownerSVGElement&&e.getBBox(),i=!E&&"border-box"===n.boxSizing,o=S.test(n.writingMode||""),a=!r&&_.test(n.overflowY||""),s=!r&&_.test(n.overflowX||""),l=r?0:D(n.paddingTop),u=r?0:D(n.paddingRight),c=r?0:D(n.paddingBottom),d=r?0:D(n.paddingLeft),h=r?0:D(n.borderTopWidth),p=r?0:D(n.borderRightWidth),m=r?0:D(n.borderBottomWidth),b=r?0:D(n.borderLeftWidth),k=d+u,w=l+c,O=b+p,T=h+m,A=s?e.offsetHeight-T-e.clientHeight:0,P=a?e.offsetWidth-O-e.clientWidth:0,R=r?r.width:D(n.width)-(i?k+O:0)-P,M=r?r.height:D(n.height)-(i?w+T:0)-A,F=R+k+P+O,N=M+w+A+T,I=f({devicePixelContentBoxSize:C(Math.round(R*devicePixelRatio),Math.round(M*devicePixelRatio),o),borderBoxSize:C(F,N,o),contentBoxSize:C(R,M,o),contentRect:new g(d,l,R,M)});return x.set(e,I),I},T=function(e,t,n){var r=O(e,n),o=r.borderBoxSize,a=r.contentBoxSize,s=r.devicePixelContentBoxSize;switch(t){case i.DEVICE_PIXEL_CONTENT_BOX:return s;case i.BORDER_BOX:return o;default:return a}},A=function(e){var t=O(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=f([t.borderBoxSize]),this.contentBoxSize=f([t.contentBoxSize]),this.devicePixelContentBoxSize=f([t.devicePixelContentBoxSize])},P=function(e){if(y(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},R=function(){var e=1/0,t=[];d.forEach(function(n){if(0!==n.activeTargets.length){var r=[];n.activeTargets.forEach(function(t){var n=new A(t.target),i=P(t.target);r.push(n),t.lastReportedSize=T(t.target,t.observedBox),ie?t.activeTargets.push(n):t.skippedTargets.push(n))})})},F=function(){var e=0;for(M(0);d.some(function(e){return e.activeTargets.length>0});)M(e=R());return d.some(function(e){return e.skippedTargets.length>0})&&p(),e>0},N=[],I=function(e){if(!o){var t=0,n=document.createTextNode("");new MutationObserver(function(){return N.splice(0).forEach(function(e){return e()})}).observe(n,{characterData:!0}),o=function(){n.textContent=""+(t?t--:t++)}}N.push(e),o()},L=function(e){I(function(){requestAnimationFrame(e)})},B=0,z={attributes:!0,characterData:!0,childList:!0,subtree:!0},U=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],q=function(e){return void 0===e&&(e=0),Date.now()+e},$=!1,H=new(function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(void 0===e&&(e=250),!$){$=!0;var n=q(e);L(function(){var r=!1;try{r=F()}finally{if($=!1,e=n-q(),!B)return;r?t.run(1e3):e>0?t.run(e):t.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,z)};document.body?t():w.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),U.forEach(function(t){return w.addEventListener(t,e.listener,!0)}))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),U.forEach(function(t){return w.removeEventListener(t,e.listener,!0)}),this.stopped=!0)},e}()),V=function(e){!B&&e>0&&H.start(),(B+=e)||H.stop()},W=function(){function e(e,t){this.target=e,this.observedBox=t||i.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e,t=T(this.target,this.observedBox,!0);return v(e=this.target)||k(e)||"inline"!==getComputedStyle(e).display||(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),G=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},Y=new WeakMap,Z=function(e,t){for(var n=0;nZ(r.observationTargets,t)&&(i&&d.push(r),r.observationTargets.push(new W(t,n&&n.box)),V(1),H.schedule())},e.unobserve=function(e,t){var n=Y.get(e),r=Z(n.observationTargets,t),i=1===n.observationTargets.length;r>=0&&(i&&d.splice(d.indexOf(n),1),n.observationTargets.splice(r,1),V(-1))},e.disconnect=function(e){var t=this,n=Y.get(e);n.observationTargets.slice().forEach(function(n){return t.unobserve(e,n.target)}),n.activeTargets.splice(0,n.activeTargets.length)},e}(),J=function(){function e(e){if(0==arguments.length)throw TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof e)throw TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");K.connect(this,e)}return e.prototype.observe=function(e,t){if(0==arguments.length)throw TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!b(e))throw TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");K.observe(this,e,t)},e.prototype.unobserve=function(e){if(0==arguments.length)throw TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!b(e))throw TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");K.unobserve(this,e)},e.prototype.disconnect=function(){K.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}(),X=["className","children","debounceTime","ignoreDimensions","parentSizeStyles","enableDebounceLeadingCall"];function Q(){return(Q=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,X),p=(0,c.useRef)(null),f=(0,c.useRef)(0),m=(0,c.useState)({width:0,height:0,top:0,left:0}),g=m[0],v=m[1],y=(0,c.useMemo)(function(){var e=Array.isArray(a)?a:[a];return u()(function(t){v(function(n){return Object.keys(n).filter(function(e){return n[e]!==t[e]}).every(function(t){return e.includes(t)})?n:t})},i,{leading:d})},[i,d,a]);return(0,c.useEffect)(function(){var e=new J(function(e){void 0===e&&(e=[]),e.forEach(function(e){var t=e.contentRect,n=t.left,r=t.top,i=t.width,o=t.height;f.current=window.requestAnimationFrame(function(){y({width:i,height:o,top:r,left:n})})})});return p.current&&e.observe(p.current),function(){window.cancelAnimationFrame(f.current),e.disconnect(),null!=y&&y.cancel&&y.cancel()}},[y]),c.createElement("div",Q({style:void 0===s?{width:"100%",height:"100%"}:s,ref:p,className:t},h),n(Q({},g,{ref:p.current,resize:y})))}et.propTypes={className:s().string,debounceTime:s().number,enableDebounceLeadingCall:s().bool,ignoreDimensions:s().oneOfType([s().any,s().arrayOf(s().any)]),children:s().func.isRequired}},72108:function(e,t,n){"use strict";function r(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function i(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function o(){}n.d(t,{Z:function(){return eQ}});var a="\\s*([+-]?\\d+)\\s*",s="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",l="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",u=/^#([0-9a-f]{3,8})$/,c=RegExp("^rgb\\("+[a,a,a]+"\\)$"),d=RegExp("^rgb\\("+[l,l,l]+"\\)$"),h=RegExp("^rgba\\("+[a,a,a,s]+"\\)$"),p=RegExp("^rgba\\("+[l,l,l,s]+"\\)$"),f=RegExp("^hsl\\("+[s,l,l]+"\\)$"),m=RegExp("^hsla\\("+[s,l,l,s]+"\\)$"),g={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function v(){return this.rgb().formatHex()}function y(){return this.rgb().formatRgb()}function b(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=u.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?k(t):3===n?new S(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?w(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?w(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=c.exec(e))?new S(t[1],t[2],t[3],1):(t=d.exec(e))?new S(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=h.exec(e))?w(t[1],t[2],t[3],t[4]):(t=p.exec(e))?w(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=f.exec(e))?j(t[1],t[2]/100,t[3]/100,1):(t=m.exec(e))?j(t[1],t[2]/100,t[3]/100,t[4]):g.hasOwnProperty(e)?k(g[e]):"transparent"===e?new S(NaN,NaN,NaN,0):null}function k(e){return new S(e>>16&255,e>>8&255,255&e,1)}function w(e,t,n,r){return r<=0&&(e=t=n=NaN),new S(e,t,n,r)}function x(e){return(e instanceof o||(e=b(e)),e)?(e=e.rgb(),new S(e.r,e.g,e.b,e.opacity)):new S}function _(e,t,n,r){return 1==arguments.length?x(e):new S(e,t,n,null==r?1:r)}function S(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function E(){return"#"+C(this.r)+C(this.g)+C(this.b)}function D(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function C(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function j(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new A(e,t,n,r)}function O(e){if(e instanceof A)return new A(e.h,e.s,e.l,e.opacity);if(e instanceof o||(e=b(e)),!e)return new A;if(e instanceof A)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),s=NaN,l=a-i,u=(a+i)/2;return l?(s=t===a?(n-r)/l+(n0&&u<1?0:s,new A(s,l,u,e.opacity)}function T(e,t,n,r){return 1==arguments.length?O(e):new A(e,t,n,null==r?1:r)}function A(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function P(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}r(o,b,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:v,formatHex:v,formatHsl:function(){return O(this).formatHsl()},formatRgb:y,toString:y}),r(S,_,i(o,{brighter:function(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new S(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new S(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:E,formatHex:E,formatRgb:D,toString:D})),r(A,T,i(o,{brighter:function(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new A(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new A(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new S(P(e>=240?e-240:e+120,i,r),P(e,i,r),P(e<120?e+240:e-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));var R=Math.PI/180,M=180/Math.PI,F=4/29,N=6/29,I=3*(6/29)*(6/29),L=6/29*(6/29)*(6/29);function B(e){if(e instanceof U)return new U(e.l,e.a,e.b,e.opacity);if(e instanceof G)return Y(e);e instanceof S||(e=x(e));var t,n,r=V(e.r),i=V(e.g),o=V(e.b),a=q((.2225045*r+.7168786*i+.0606169*o)/1);return r===i&&i===o?t=n=a:(t=q((.4360747*r+.3850649*i+.1430804*o)/.96422),n=q((.0139322*r+.0971045*i+.7141733*o)/.82521)),new U(116*a-16,500*(t-a),200*(a-n),e.opacity)}function z(e,t,n,r){return 1==arguments.length?B(e):new U(e,t,n,null==r?1:r)}function U(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function q(e){return e>L?Math.pow(e,1/3):e/I+F}function $(e){return e>N?e*e*e:I*(e-F)}function H(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function V(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function W(e,t,n,r){return 1==arguments.length?function(e){if(e instanceof G)return new G(e.h,e.c,e.l,e.opacity);if(e instanceof U||(e=B(e)),0===e.a&&0===e.b)return new G(NaN,0180||n<-180?n-360*Math.round(n/360):n):Z(isNaN(e)?t:e)}function X(e,t){var n=t-e;return n?K(e,n):Z(isNaN(e)?t:e)}function Q(e){return function(t,n){var r=e((t=W(t)).h,(n=W(n)).h),i=X(t.c,n.c),o=X(t.l,n.l),a=X(t.opacity,n.opacity);return function(e){return t.h=r(e),t.c=i(e),t.l=o(e),t.opacity=a(e),t+""}}}r(U,z,i(o,{brighter:function(e){return new U(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker:function(e){return new U(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb:function(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return t=.96422*$(t),e=1*$(e),n=.82521*$(n),new S(H(3.1338561*t-1.6168667*e-.4906146*n),H(-.9787684*t+1.9161415*e+.033454*n),H(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),r(G,W,i(o,{brighter:function(e){return new G(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker:function(e){return new G(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb:function(){return Y(this).rgb()}}));var ee=Q(J),et=Q(X);function en(e){return function(t,n){var r=e((t=T(t)).h,(n=T(n)).h),i=X(t.s,n.s),o=X(t.l,n.l),a=X(t.opacity,n.opacity);return function(e){return t.h=r(e),t.s=i(e),t.l=o(e),t.opacity=a(e),t+""}}}var er=en(J),ei=en(X),eo=-1.78277*.29227-.1347134789;function ea(e,t,n,r){return 1==arguments.length?function(e){if(e instanceof es)return new es(e.h,e.s,e.l,e.opacity);e instanceof S||(e=x(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(eo*r+-1.7884503806*t-3.5172982438*n)/(eo+-1.7884503806-3.5172982438),o=r-i,a=-((1.97294*(n-i)- -.29227*o)/.90649),s=Math.sqrt(a*a+o*o)/(1.97294*i*(1-i)),l=s?Math.atan2(a,o)*M-120:NaN;return new es(l<0?l+360:l,s,i,e.opacity)}(e):new es(e,t,n,null==r?1:r)}function es(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function el(e){return function t(n){function r(t,r){var i=e((t=ea(t)).h,(r=ea(r)).h),o=X(t.s,r.s),a=X(t.l,r.l),s=X(t.opacity,r.opacity);return function(e){return t.h=i(e),t.s=o(e),t.l=a(Math.pow(e,n)),t.opacity=s(e),t+""}}return n=+n,r.gamma=t,r}(1)}r(es,ea,i(o,{brighter:function(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new es(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new es(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*R,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new S(255*(t+n*(-.14861*r+1.78277*i)),255*(t+n*(-.29227*r+-.90649*i)),255*(t+n*(1.97294*r)),this.opacity)}}));var eu=el(J),ec=el(X);function ed(e,t,n,r,i){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*n+(1+3*e+3*o-3*a)*r+a*i)/6}var eh=function e(t){var n,r=1==(n=+(n=t))?X:function(e,t){var r,i,o;return t-e?(r=e,i=t,r=Math.pow(r,o=n),i=Math.pow(i,o)-r,o=1/o,function(e){return Math.pow(r+e*i,o)}):Z(isNaN(e)?t:e)};function i(e,t){var n=r((e=_(e)).r,(t=_(t)).r),i=r(e.g,t.g),o=r(e.b,t.b),a=X(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return i.gamma=e,i}(1);function ep(e){return function(t){var n,r,i=t.length,o=Array(i),a=Array(i),s=Array(i);for(n=0;n=1?(n=1,t-1):Math.floor(n*t),i=e[r],o=e[r+1],a=r>0?e[r-1]:2*i-o,s=r0))return s;do s.push(a=new Date(+n)),t(n,o),e(n);while(a=t)for(;e(t),!n(t);)t.setTime(t-1)},function(e,r){if(e>=e){if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}})},n&&(i.count=function(t,r){return em.setTime(+t),eg.setTime(+r),e(em),e(eg),Math.floor(n(em,eg))},i.every=function(e){return isFinite(e=Math.floor(e))&&e>0?e>1?i.filter(r?function(t){return r(t)%e==0}:function(t){return i.count(0,t)%e==0}):i:null}),i}let ey=864e5,eb=7*ey;var ek=ev(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/ey,e=>e.getDate()-1);ek.range;var ew=ev(function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds()-6e4*e.getMinutes())},function(e,t){e.setTime(+e+36e5*t)},function(e,t){return(t-e)/36e5},function(e){return e.getHours()});ew.range;var ex=ev(function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds())},function(e,t){e.setTime(+e+6e4*t)},function(e,t){return(t-e)/6e4},function(e){return e.getMinutes()});ex.range;var e_=ev(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});e_.range;var eS=ev(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+1e3*t)},function(e,t){return(t-e)/1e3},function(e){return e.getUTCSeconds()});function eE(e){return ev(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+7*t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/eb})}eS.range;var eD=eE(0),eC=eE(1),ej=eE(2),eO=eE(3),eT=eE(4),eA=eE(5),eP=eE(6);eD.range,eC.range,ej.range,eO.range,eT.range,eA.range,eP.range;var eR=ev(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});eR.every=function(e){return isFinite(e=Math.floor(e))&&e>0?ev(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)}):null},eR.range;var eM=ev(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/ey},function(e){return e.getUTCDate()-1});eM.range;var eF=ev(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+36e5*t)},function(e,t){return(t-e)/36e5},function(e){return e.getUTCHours()});eF.range;var eN=ev(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+6e4*t)},function(e,t){return(t-e)/6e4},function(e){return e.getUTCMinutes()});eN.range;var eI=ev(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});function eL(e){return ev(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+7*t)},function(e,t){return(t-e)/eb})}eI.range;var eB=eL(0),ez=eL(1),eU=eL(2),eq=eL(3),e$=eL(4),eH=eL(5),eV=eL(6);eB.range,ez.range,eU.range,eq.range,e$.range,eH.range,eV.range;var eW=ev(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});eW.every=function(e){return isFinite(e=Math.floor(e))&&e>0?ev(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)}):null},eW.range;var eG=new Date(Date.UTC(2020,1,2,3,4,5)),eY={day:ek,hour:ew,minute:ex,month:e_,second:eS,week:eD,year:eR},eZ={day:eM,hour:eF,minute:eN,month:eI,second:eS,week:eB,year:eW};function eK(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var eJ=["domain","nice","zero","interpolate","round","range","reverse","align","base","clamp","constant","exponent","padding","unknown"],eX={domain:function(e,t){t.domain&&e.domain(t.domain)},nice:function(e,t){if("nice"in t&&void 0!==t.nice&&"nice"in e){var n=t.nice;if("boolean"==typeof n)n&&e.nice();else if("number"==typeof n)e.nice(n);else{var r="2020-02-02 03:04"===e.tickFormat(1,"%Y-%m-%d %H:%M")(eG);if("string"==typeof n)e.nice(r?eZ[n]:eY[n]);else{var i=n.interval,o=n.step,a=(r?eZ[i]:eY[i]).every(o);null!=a&&e.nice(a)}}}},zero:function(e,t){if("zero"in t&&!0===t.zero){var n=e.domain(),r=n[0],i=n[1],o=i=0?(o>=s?10:o>=l?5:o>=u?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=s?10:o>=l?5:o>=u?2:1)}function d(e,t){return et?1:e>=t?0:NaN}function h(e){let t=e,n=e;function r(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;0>n(e[o],t)?r=o+1:i=o}return r}return 1===e.length&&(t=(t,n)=>e(t)-n,n=(t,n)=>d(e(t),n)),{left:r,center:function(e,n,i,o){null==i&&(i=0),null==o&&(o=e.length);let a=r(e,n,i,o-1);return a>i&&t(e[a-1],n)>-t(e[a],n)?a-1:a},right:function(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;n(e[o],t)>0?i=o:r=o+1}return r}}}let p=h(d),f=p.right;function m(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function g(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function v(){}p.left,h(function(e){return null===e?NaN:+e}).center;var y="\\s*([+-]?\\d+)\\s*",b="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",k="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",w=/^#([0-9a-f]{3,8})$/,x=RegExp("^rgb\\("+[y,y,y]+"\\)$"),_=RegExp("^rgb\\("+[k,k,k]+"\\)$"),S=RegExp("^rgba\\("+[y,y,y,b]+"\\)$"),E=RegExp("^rgba\\("+[k,k,k,b]+"\\)$"),D=RegExp("^hsl\\("+[b,k,k]+"\\)$"),C=RegExp("^hsla\\("+[b,k,k,b]+"\\)$"),j={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function O(){return this.rgb().formatHex()}function T(){return this.rgb().formatRgb()}function A(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=w.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?P(t):3===n?new F(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?R(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?R(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=x.exec(e))?new F(t[1],t[2],t[3],1):(t=_.exec(e))?new F(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=S.exec(e))?R(t[1],t[2],t[3],t[4]):(t=E.exec(e))?R(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=D.exec(e))?B(t[1],t[2]/100,t[3]/100,1):(t=C.exec(e))?B(t[1],t[2]/100,t[3]/100,t[4]):j.hasOwnProperty(e)?P(j[e]):"transparent"===e?new F(NaN,NaN,NaN,0):null}function P(e){return new F(e>>16&255,e>>8&255,255&e,1)}function R(e,t,n,r){return r<=0&&(e=t=n=NaN),new F(e,t,n,r)}function M(e,t,n,r){var i;return 1==arguments.length?((i=e)instanceof v||(i=A(i)),i)?(i=i.rgb(),new F(i.r,i.g,i.b,i.opacity)):new F:new F(e,t,n,null==r?1:r)}function F(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function N(){return"#"+L(this.r)+L(this.g)+L(this.b)}function I(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function L(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function B(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new U(e,t,n,r)}function z(e){if(e instanceof U)return new U(e.h,e.s,e.l,e.opacity);if(e instanceof v||(e=A(e)),!e)return new U;if(e instanceof U)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(a=t===o?(n-r)/s+(n0&&l<1?0:a,new U(a,s,l,e.opacity)}function U(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function q(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}function $(e,t,n,r,i){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*n+(1+3*e+3*o-3*a)*r+a*i)/6}m(v,A,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:O,formatHex:O,formatHsl:function(){return z(this).formatHsl()},formatRgb:T,toString:T}),m(F,M,g(v,{brighter:function(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new F(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new F(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:N,formatHex:N,formatRgb:I,toString:I})),m(U,function(e,t,n,r){return 1==arguments.length?z(e):new U(e,t,n,null==r?1:r)},g(v,{brighter:function(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new U(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new U(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new F(q(e>=240?e-240:e+120,i,r),q(e,i,r),q(e<120?e+240:e-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));var H=e=>()=>e;function V(e,t){var n=t-e;return n?function(t){return e+t*n}:H(isNaN(e)?t:e)}var W=function e(t){var n,r=1==(n=+(n=t))?V:function(e,t){var r,i,o;return t-e?(r=e,i=t,r=Math.pow(r,o=n),i=Math.pow(i,o)-r,o=1/o,function(e){return Math.pow(r+e*i,o)}):H(isNaN(e)?t:e)};function i(e,t){var n=r((e=M(e)).r,(t=M(t)).r),i=r(e.g,t.g),o=r(e.b,t.b),a=V(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return i.gamma=e,i}(1);function G(e){return function(t){var n,r,i=t.length,o=Array(i),a=Array(i),s=Array(i);for(n=0;n=1?(n=1,t-1):Math.floor(n*t),i=e[r],o=e[r+1],a=r>0?e[r-1]:2*i-o,s=r=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ea(e){var t;if(!(t=eo.exec(e)))throw Error("invalid format: "+e);return new es({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function es(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function el(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function eu(e){return(e=el(Math.abs(e)))?e[1]:NaN}function ec(e,t){var n=el(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+Array(i-r.length+2).join("0")}ea.prototype=es.prototype,es.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var ed={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>ec(100*e,t),r:ec,s:function(e,t){var n=el(e,t);if(!n)return e+"";var i=n[0],o=n[1],a=o-(r=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,s=i.length;return a===s?i:a>s?i+Array(a-s+1).join("0"):a>0?i.slice(0,a)+"."+i.slice(a):"0."+Array(1-a).join("0")+el(e,Math.max(0,t+a-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function eh(e){return e}var ep=Array.prototype.map,ef=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];o=(i=function(e){var t,n,i,o=void 0===e.grouping||void 0===e.thousands?eh:(t=ep.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var i=e.length,o=[],a=0,s=t[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(e.substring(i-=s,i+s)),!((l+=s+1)>r));)s=t[a=(a+1)%t.length];return o.reverse().join(n)}),a=void 0===e.currency?"":e.currency[0]+"",s=void 0===e.currency?"":e.currency[1]+"",l=void 0===e.decimal?".":e.decimal+"",u=void 0===e.numerals?eh:(i=ep.call(e.numerals,String),function(e){return e.replace(/[0-9]/g,function(e){return i[+e]})}),c=void 0===e.percent?"%":e.percent+"",d=void 0===e.minus?"−":e.minus+"",h=void 0===e.nan?"NaN":e.nan+"";function p(e){var t=(e=ea(e)).fill,n=e.align,i=e.sign,p=e.symbol,f=e.zero,m=e.width,g=e.comma,v=e.precision,y=e.trim,b=e.type;"n"===b?(g=!0,b="g"):ed[b]||(void 0===v&&(v=12),y=!0,b="g"),(f||"0"===t&&"="===n)&&(f=!0,t="0",n="=");var k="$"===p?a:"#"===p&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",w="$"===p?s:/[%p]/.test(b)?c:"",x=ed[b],_=/[defgprs%]/.test(b);function S(e){var a,s,c,p=k,S=w;if("c"===b)S=x(e)+S,e="";else{var E=(e=+e)<0||1/e<0;if(e=isNaN(e)?h:x(Math.abs(e),v),y&&(e=function(e){e:for(var t,n=e.length,r=1,i=-1;r0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),E&&0==+e&&"+"!==i&&(E=!1),p=(E?"("===i?i:d:"-"===i||"("===i?"":i)+p,S=("s"===b?ef[8+r/3]:"")+S+(E&&"("===i?")":""),_){for(a=-1,s=e.length;++a(c=e.charCodeAt(a))||c>57){S=(46===c?l+e.slice(a+1):e.slice(a))+S,e=e.slice(0,a);break}}}g&&!f&&(e=o(e,1/0));var D=p.length+e.length+S.length,C=D>1)+p+e+S+C.slice(D);break;default:e=C+p+e+S}return u(e)}return v=void 0===v?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),S.toString=function(){return e+""},S}return{format:p,formatPrefix:function(e,t){var n=p(((e=ea(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(eu(t)/3))),i=Math.pow(10,-r),o=ef[8+r/3];return function(e){return n(i*e)+o}}}}({thousands:",",grouping:[3],currency:["$",""]})).format,a=i.formatPrefix;var em=(0,n(72108).Z)("domain","range","reverse","clamp","interpolate","nice","round","zero");function eg(e){return em(function e(){var t,n=(function(){var e,t,n,r,i,o,a=Q,s=Q,l=function e(t,n){var r,i,o=typeof n;return null==n||"boolean"===o?H(n):("number"===o?Y:"string"===o?(i=A(n))?(n=i,W):function(e,t){var n,r,i,o,a,s=Z.lastIndex=K.lastIndex=0,l=-1,u=[],c=[];for(e+="",t+="";(i=Z.exec(e))&&(o=K.exec(t));)(a=o.index)>s&&(a=t.slice(s,a),u[l]?u[l]+=a:u[++l]=a),(i=i[0])===(o=o[0])?u[l]?u[l]+=o:u[++l]=o:(u[++l]=null,c.push({i:l,x:Y(i,o)})),s=K.lastIndex;return st&&(n=e,e=t,t=n),u=function(n){return Math.max(e,Math.min(t,n))}),r=l>2?er:en,i=o=null,d}function d(t){return null==t||isNaN(t=+t)?n:(i||(i=r(a.map(e),s,l)))(e(u(t)))}return d.invert=function(n){return u(t((o||(o=r(s,a.map(e),Y)))(n)))},d.domain=function(e){return arguments.length?(a=Array.from(e,X),c()):a.slice()},d.range=function(e){return arguments.length?(s=Array.from(e),c()):s.slice()},d.rangeRound=function(e){return s=Array.from(e),l=J,c()},d.clamp=function(e){return arguments.length?(u=!!e||ee,c()):u!==ee},d.interpolate=function(e){return arguments.length?(l=e,c()):l},d.unknown=function(e){return arguments.length?(n=e,d):n},function(n,r){return e=n,t=r,c()}})()(ee,ee);return n.copy=function(){return e().domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp()).unknown(n.unknown())},ei.o.apply(n,arguments),t=n.domain,n.ticks=function(e){var n=t();return function(e,t,n){var r,i,o,a,s=-1;if(n=+n,(e=+e)==(t=+t)&&n>0)return[e];if((r=t0){let n=Math.round(e/a),r=Math.round(t/a);for(n*at&&--r,o=Array(i=r-n+1);++st&&--r,o=Array(i=r-n+1);++s=s?d*=10:h>=l?d*=5:h>=u&&(d*=2),t0;){if((i=c(l,u,e))===r)return o[a]=l,o[s]=u,t(o);if(i>0)l=Math.floor(l/i)*i,u=Math.ceil(u/i)*i;else if(i<0)l=Math.ceil(l*i)/i,u=Math.floor(u*i)/i;else break;r=i}return n},n}(),e)}},14582:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(2784),i=n(72779),o=n.n(i),a=["className","innerRef"];function s(){return(s=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,a);return r.createElement("rect",s({ref:n,className:o()("visx-bar",t)},i))}},10897:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(2784),i=n(72779),o=n.n(i),a=["children","className","innerRef","x","y","width","height","radius","all","top","bottom","left","right","topLeft","topRight","bottomLeft","bottomRight"];function s(){return(s=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,a),B=(n=(t={x:S,y:E,width:D,height:C,radius:j,all:void 0!==O&&O,top:void 0!==T&&T,bottom:void 0!==A&&A,left:void 0!==P&&P,right:void 0!==R&&R,topLeft:void 0!==M&&M,topRight:void 0!==F&&F,bottomLeft:void 0!==N&&N,bottomRight:void 0!==I&&I}).all,i=t.bottom,l=t.bottomLeft,u=t.bottomRight,c=t.height,d=t.left,h=t.radius,p=t.right,f=t.top,m=t.topLeft,g=t.topRight,v=t.width,y=t.x,b=t.y,g=n||f||p||g,u=n||i||p||u,l=n||i||d||l,m=n||f||d||m,k=2*(h=Math.max(1,Math.min(h,Math.min(v,c)/2))),("M"+(y+h)+","+b+" h"+(v-k)+"\n "+(g?"a"+h+","+h+" 0 0 1 "+h+","+h:"h"+h+"v"+h)+"\n v"+(c-k)+"\n "+(u?"a"+h+","+h+" 0 0 1 "+-h+","+h:"v"+h+"h"+-h)+"\n h"+(k-v)+"\n "+(l?"a"+h+","+h+" 0 0 1 "+-h+","+-h:"h"+-h+"v"+-h)+"\n v"+(k-c)+"\n "+(m?"a"+h+","+h+" 0 0 1 "+h+","+-h:"v"+-h+"h"+h)+"\nz").split("\n").join(""));return w?r.createElement(r.Fragment,null,w({path:B})):r.createElement("path",s({ref:_,className:o()("visx-bar-rounded",x),d:B},L))}},63739:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(2784),i=n(72779),o=n.n(i),a=["from","to","fill","className","innerRef"];function s(){return(s=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,a),p=n.x===l.x||n.y===l.y;return r.createElement("line",s({ref:d,className:o()("visx-line",c),x1:n.x,y1:n.y,x2:l.x,y2:l.y,fill:void 0===u?"transparent":u,shapeRendering:p?"crispEdges":"auto"},h))}},27079:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(2784),i=n(72779),o=n.n(i),a=n(30401),s=["children","data","x","y","fill","className","curve","innerRef","defined"];function l(){return(l=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,s),v=(0,a.jv)({x:u,y:c,defined:void 0===m?function(){return!0}:m,curve:p});return t?r.createElement(r.Fragment,null,t({path:v})):r.createElement("path",l({ref:f,className:o()("visx-linepath",h),d:v(i)||"",fill:void 0===d?"transparent":d,strokeLinecap:"round"},g))}},30401:function(e,t,n){"use strict";n.d(t,{Nb:function(){return o},jv:function(){return a}});var r=n(38764),i=n(79767);function o(e){var t=void 0===e?{}:e,n=t.innerRadius,i=t.outerRadius,o=t.cornerRadius,a=t.startAngle,s=t.endAngle,l=t.padAngle,u=t.padRadius,c=(0,r.Z)();return null!=n&&(0,c.innerRadius)(n),null!=i&&(0,c.outerRadius)(i),null!=o&&(0,c.cornerRadius)(o),null!=a&&(0,c.startAngle)(a),null!=s&&(0,c.endAngle)(s),null!=l&&(0,c.padAngle)(l),null!=u&&(0,c.padRadius)(u),c}function a(e){var t=void 0===e?{}:e,n=t.x,r=t.y,o=t.defined,a=t.curve,s=(0,i.Z)();return n&&(0,s.x)(n),r&&(0,s.y)(r),o&&s.defined(o),a&&s.curve(a),s}},82756:function(e,t,n){"use strict";t.Z=function(e){var t=e.className,n=e.top,l=e.left,c=e.data,d=e.centroid,h=e.innerRadius,p=e.outerRadius,f=e.cornerRadius,m=e.startAngle,g=e.endAngle,v=e.padAngle,y=e.padRadius,b=e.pieSort,k=e.pieSortValues,w=e.pieValue,x=e.children,_=e.fill,S=void 0===_?"":_,E=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,s),D=(0,a.arc)({innerRadius:void 0===h?0:h,outerRadius:p,cornerRadius:f,padRadius:y}),C=(0,a.pie)({startAngle:m,endAngle:g,padAngle:v,value:w,sort:b,sortValues:k}),j=C(void 0===c?[]:c);return x?r.default.createElement(r.default.Fragment,null,x({arcs:j,path:D,pie:C})):r.default.createElement(o.Group,{className:"visx-pie-arcs-group",top:n,left:l},j.map(function(e,n){return r.default.createElement("g",{key:"pie-arc-"+n},r.default.createElement("path",u({className:(0,i.default)("visx-pie-arc",t),d:D(e)||"",fill:null==S||"string"==typeof S?S:S(e)},E)),null==d?void 0:d(D.centroid(e),e))}))};var r=l(n(2784)),i=l(n(72779)),o=n(71602),a=n(15601),s=["className","top","left","data","centroid","innerRadius","outerRadius","cornerRadius","startAngle","endAngle","padAngle","padRadius","pieSort","pieSortValues","pieValue","children","fill"];function l(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(t,i);return o({},e(n),{tooltipOpen:!0})}:{tooltipOpen:!0,tooltipLeft:e.tooltipLeft,tooltipTop:e.tooltipTop,tooltipData:e.tooltipData})},[a]),l=(0,r.useCallback)(function(){return a({tooltipOpen:!1,tooltipLeft:void 0,tooltipTop:void 0,tooltipData:void 0})},[a]);return{tooltipOpen:n.tooltipOpen,tooltipLeft:n.tooltipLeft,tooltipTop:n.tooltipTop,tooltipData:n.tooltipData,updateTooltip:a,showTooltip:s,hideTooltip:l}}},15448:function(e,t,n){"use strict";n.d(t,{Z:function(){return _}});var r,i,o,a=n(2784),s=n(28316);function l(){return(l=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,v);return a.createElement("div",y({className:g()("visx-tooltip",t),style:y({top:null==n||null==l?n:n+l,left:null==r||null==o?r:r+o},m&&{position:"absolute"},!p&&c)},k),d)}k.propTypes={children:f().node,className:f().string,left:f().number,offsetLeft:f().number,offsetTop:f().number,top:f().number,applyPositionStyle:f().bool,unstyled:f().bool};var w=["children","getRects","left","offsetLeft","offsetTop","parentRect","rect","style","top","unstyled"];function x(){return(x=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,w);if(c&&u){var v=void 0===r?0:r,y=void 0===p?0:p,_=!1,S=!1;if(u.width){var E=v+o+c.width-u.width,D=c.width-v-o;_=E>0&&E>D}else{var C=v+o+c.width-window.innerWidth,j=c.width-v-o;_=C>0&&C>j}if(u.height){var O=y+l+c.height-u.height,T=c.height-y-l;S=O>0&&O>T}else S=y+l+c.height>window.innerHeight;v=_?v-c.width-o:v+o,y=S?y-c.height-l:y+l,t="translate("+(v=Math.round(v))+"px, "+(y=Math.round(y))+"px)"}return a.createElement(k,x({style:x({left:0,top:0,transform:t},!m&&h)},g),n)},o=i=function(e){function t(t){var n;return d(u(n=e.call(this,t)||this),"node",void 0),n.state={rect:void 0,parentRect:void 0},n.getRects=n.getRects.bind(u(n)),n}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,c(t,e);var n=t.prototype;return n.componentDidMount=function(){var e=this;this.node=s.findDOMNode(this),this.setState(function(){return e.getRects()})},n.getRects=function(){if(!this.node)return this.state;var e=this.node,t=e.parentNode;return{rect:e.getBoundingClientRect?e.getBoundingClientRect():h,parentRect:null!=t&&t.getBoundingClientRect?t.getBoundingClientRect():h}},n.render=function(){return a.createElement(r,l({getRects:this.getRects},this.state,this.props))},t}(a.PureComponent),d(i,"displayName","withBoundingRects("+(r.displayName||"")+")"),o)},62139:function(e,t,n){"use strict";n.d(t,{g7:function(){return l}});var r=null,i={},o=1,a="@wry/context:Slot",s=Array,l=s[a]||function(){var e=function(){function e(){this.id=["slot",o++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return e.prototype.hasValue=function(){for(var e=r;e;e=e.parent)if(this.id in e.slots){var t=e.slots[this.id];if(t===i)break;return e!==r&&(r.slots[this.id]=t),!0}return r&&(r.slots[this.id]=i),!1},e.prototype.getValue=function(){if(this.hasValue())return r.slots[this.id]},e.prototype.withValue=function(e,t,n,i){var o,a=((o={__proto__:null})[this.id]=e,o),s=r;r={parent:s,slots:a};try{return t.apply(i,n)}finally{r=s}},e.bind=function(e){var t=r;return function(){var n=r;try{return r=t,e.apply(this,arguments)}finally{r=n}}},e.noContext=function(e,t,n){if(!r)return e.apply(n,t);var i=r;try{return r=null,e.apply(n,t)}finally{r=i}},e}();try{Object.defineProperty(s,a,{value:s[a]=e,enumerable:!1,writable:!1,configurable:!1})}finally{return e}}();l.bind,l.noContext},38229:function(e,t,n){"use strict";n.d(t,{D:function(){return l}});var r=Object.prototype,i=r.toString,o=r.hasOwnProperty,a=Function.prototype.toString,s=new Map;function l(e,t){try{return function e(t,n){if(t===n)return!0;var r=i.call(t);if(r!==i.call(n))return!1;switch(r){case"[object Array]":if(t.length!==n.length)break;case"[object Object]":if(h(t,n))return!0;var s=u(t),l=u(n),c=s.length;if(c!==l.length)break;for(var p=0;p=0)||_.indexOf(d,x)!==x}return!1}(e,t)}finally{s.clear()}}function u(e){return Object.keys(e).filter(c,e)}function c(e){return void 0!==this[e]}var d="{ [native code] }";function h(e,t){var n=s.get(e);if(n){if(n.has(t))return!0}else s.set(e,n=new Set);return n.add(t),!1}},3985:function(e,t,n){"use strict";n.d(t,{B:function(){return s}});var r=function(){return Object.create(null)},i=Array.prototype,o=i.forEach,a=i.slice,s=function(){function e(e,t){void 0===e&&(e=!0),void 0===t&&(t=r),this.weakness=e,this.makeData=t}return e.prototype.lookup=function(){for(var e=[],t=0;t=0&&u>0){for(r=[],o=n.length;c>=0&&!s;)c==l?(r.push(c),l=n.indexOf(e,c+1)):1==r.length?s=[r.pop(),u]:((i=r.pop())=0?l:u;r.length&&(s=[o,a])}return s}e.exports=t,t.range=r},95766:function(e,t){"use strict";t.byteLength=function(e){var t=l(e),n=t[0],r=t[1];return(n+r)*3/4-r},t.toByteArray=function(e){var t,n,o=l(e),a=o[0],s=o[1],u=new i((a+s)*3/4-s),c=0,d=s>0?a-4:a;for(n=0;n>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,u[c++]=255&t),1===s&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],a=0,s=r-i;a>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return o.join("")}(e,a,a+16383>s?s:a+16383));return 1===i?o.push(n[(t=e[r-1])>>2]+n[t<<4&63]+"=="):2===i&&o.push(n[(t=(e[r-2]<<8)+e[r-1])>>10]+n[t>>4&63]+n[t<<2&63]+"="),o.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a0)throw Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},48834:function(e,t,n){"use strict";/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */var r=n(95766),i=n(62333),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function a(e){if(e>2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,n){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return c(e)}return l(e,t,n)}function l(e,t,n){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!s.isEncoding(t))throw TypeError("Unknown encoding: "+t);var n=0|f(e,t),r=a(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(O(e,Uint8Array)){var t=new Uint8Array(e);return h(t.buffer,t.byteOffset,t.byteLength)}return d(e)}(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(O(e,ArrayBuffer)||e&&O(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(O(e,SharedArrayBuffer)||e&&O(e.buffer,SharedArrayBuffer)))return h(e,t,n);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return s.from(r,t,n);var i=function(e){if(s.isBuffer(e)){var t,n=0|p(e.length),r=a(n);return 0===r.length||e.copy(r,0,0,n),r}return void 0!==e.length?"number"!=typeof e.length||(t=e.length)!=t?a(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,n);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return u(e),a(e<0?0:0|p(e))}function d(e){for(var t=e.length<0?0:0|p(e.length),n=a(t),r=0;r=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function f(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||O(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return D(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return C(e).length;default:if(i)return r?-1:D(e).length;t=(""+t).toLowerCase(),i=!0}}function m(e,t,n){var i,o,a=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===n||n>this.length)&&(n=this.length),n<=0||(n>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),(o=n=+n)!=o&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return -1;n=e.length-1}else if(n<0){if(!i)return -1;n=0}if("string"==typeof t&&(t=s.from(t,r)),s.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,i);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,i);throw TypeError("val must be string, number or Buffer")}function y(e,t,n,r,i){var o,a=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return -1;a=2,s/=2,l/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(o=n;os&&(n=s-l),o=n;o>=0;o--){for(var d=!0,h=0;h239?4:u>223?3:u>191?2:1;if(i+d<=n)switch(d){case 1:u<128&&(c=u);break;case 2:(192&(o=e[i+1]))==128&&(l=(31&u)<<6|63&o)>127&&(c=l);break;case 3:o=e[i+1],a=e[i+2],(192&o)==128&&(192&a)==128&&(l=(15&u)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],(192&o)==128&&(192&a)==128&&(192&s)==128&&(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(c=l)}null===c?(c=65533,d=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var n="",r=0;rn)throw RangeError("Trying to access beyond buffer length")}function w(e,t,n,r,i,o){if(!s.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw RangeError("Index out of range")}function x(e,t,n,r,i,o){if(n+r>e.length||n<0)throw RangeError("Index out of range")}function _(e,t,n,r,o){return t=+t,n>>>=0,o||x(e,t,n,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,n,r,23,4),n+4}function S(e,t,n,r,o){return t=+t,n>>>=0,o||x(e,t,n,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,n,r,52,8),n+8}t.lW=s,t.h2=50,s.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,n){return l(e,t,n)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,n){return(u(e),e<=0)?a(e):void 0!==t?"string"==typeof n?a(e).fill(t,n):a(e).fill(t):a(e)},s.allocUnsafe=function(e){return c(e)},s.allocUnsafeSlow=function(e){return c(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(O(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),O(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);ir.length?s.from(o).copy(r,i):Uint8Array.prototype.set.call(r,o,i);else if(s.isBuffer(o))o.copy(r,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=o.length}return r},s.byteLength=f,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;tn&&(e+=" ... "),""},o&&(s.prototype[o]=s.prototype.inspect),s.prototype.compare=function(e,t,n,r,i){if(O(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return -1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var o=i-r,a=n-t,l=Math.min(o,a),u=this.slice(r,i),c=e.slice(t,n),d=0;d>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,o,a,s,l,u,c,d,h=this.length-t;if((void 0===n||n>h)&&(n=h),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var p=!1;;)switch(r){case"hex":return function(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;r>o/2&&(r=o/2);for(var a=0;a>8,i.push(n%256),i.push(r);return i}(e,this.length-c),this,c,d);default:if(p)throw TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),p=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t>>=0,t>>>=0,n||k(e,t,this.length);for(var r=this[e],i=1,o=0;++o>>=0,t>>>=0,n||k(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||k(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||k(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||k(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||k(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||k(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||k(e,t,this.length);for(var r=this[e],i=1,o=0;++o=(i*=128)&&(r-=Math.pow(2,8*t)),r},s.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||k(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},s.prototype.readInt8=function(e,t){return(e>>>=0,t||k(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||k(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt16BE=function(e,t){e>>>=0,t||k(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||k(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||k(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||k(e,4,this.length),i.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||k(e,4,this.length),i.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||k(e,8,this.length),i.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||k(e,8,this.length),i.read(this,e,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;w(this,e,t,n,i,0)}var o=1,a=0;for(this[t]=255&e;++a>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;w(this,e,t,n,i,0)}var o=n-1,a=1;for(this[t+o]=255&e;--o>=0&&(a*=256);)this[t+o]=e/a&255;return t+n},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);w(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);w(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeFloatLE=function(e,t,n){return _(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return _(this,e,t,!1,n)},s.prototype.writeDoubleLE=function(e,t,n){return S(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return S(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(!s.isBuffer(e))throw TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw RangeError("Index out of range");if(r<0)throw RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i55295&&n<57344){if(!i){if(n>56319||a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else if(n<1114112){if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}else throw Error("Invalid code point")}return o}function C(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(E,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function j(e,t,n,r){for(var i=0;i=t.length)&&!(i>=e.length);++i)t[i+n]=e[i];return i}function O(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var T=function(){for(var e="0123456789abcdef",t=Array(256),n=0;n<16;++n)for(var r=16*n,i=0;i<16;++i)t[r+i]=e[n]+e[i];return t}()},62680:function(e,t,n){"use strict";var r=n(67286),i=n(89429),o=i(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&o(e,".prototype.")>-1?i(n):n}},89429:function(e,t,n){"use strict";var r=n(4090),i=n(67286),o=i("%Function.prototype.apply%"),a=i("%Function.prototype.call%"),s=i("%Reflect.apply%",!0)||r.call(a,o),l=i("%Object.getOwnPropertyDescriptor%",!0),u=i("%Object.defineProperty%",!0),c=i("%Math.max%");if(u)try{u({},"a",{value:1})}catch(e){u=null}e.exports=function(e){var t=s(r,a,arguments);return l&&u&&l(t,"length").configurable&&u(t,"length",{value:1+c(0,e.length-(arguments.length-1))}),t};var d=function(){return s(r,o,arguments)};u?u(e.exports,"apply",{value:d}):e.exports.apply=d},72779:function(e,t){var n;/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t1e-6){if(Math.abs(d*l-u*c)>1e-6&&o){var p=r-a,f=i-s,m=l*l+u*u,g=Math.sqrt(m),v=Math.sqrt(h),y=o*Math.tan((n-Math.acos((m+h-(p*p+f*f))/(2*g*v)))/2),b=y/v,k=y/g;Math.abs(b-1)>1e-6&&(this._+="L"+(e+b*c)+","+(t+b*d)),this._+="A"+o+","+o+",0,0,"+ +(d*p>c*f)+","+(this._x1=e+k*l)+","+(this._y1=t+k*u)}else this._+="L"+(this._x1=e)+","+(this._y1=t)}},arc:function(e,t,o,a,s,l){e=+e,t=+t,o=+o,l=!!l;var u=o*Math.cos(a),c=o*Math.sin(a),d=e+u,h=t+c,p=1^l,f=l?a-s:s-a;if(o<0)throw Error("negative radius: "+o);null===this._x1?this._+="M"+d+","+h:(Math.abs(this._x1-d)>1e-6||Math.abs(this._y1-h)>1e-6)&&(this._+="L"+d+","+h),o&&(f<0&&(f=f%r+r),f>i?this._+="A"+o+","+o+",0,1,"+p+","+(e-u)+","+(t-c)+"A"+o+","+o+",0,1,"+p+","+(this._x1=d)+","+(this._y1=h):f>1e-6&&(this._+="A"+o+","+o+",0,"+ +(f>=n)+","+p+","+(this._x1=e+o*Math.cos(s))+","+(this._y1=t+o*Math.sin(s))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}},t.Z=a},22274:function(e,t,n){"use strict";function r(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}n.d(t,{o:function(){return r}})},38764:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(91672),i=n(33554),o=n(15);function a(e){return e.innerRadius}function s(e){return e.outerRadius}function l(e){return e.startAngle}function u(e){return e.endAngle}function c(e){return e&&e.padAngle}function d(e,t,n,r,i,a,s){var l=e-n,u=t-r,c=(s?a:-a)/(0,o._b)(l*l+u*u),d=c*u,h=-c*l,p=e+d,f=t+h,m=n+d,g=r+h,v=(p+m)/2,y=(f+g)/2,b=m-p,k=g-f,w=b*b+k*k,x=i-a,_=p*g-m*f,S=(k<0?-1:1)*(0,o._b)((0,o.Fp)(0,x*x*w-_*_)),E=(_*k-b*S)/w,D=(-_*b-k*S)/w,C=(_*k+b*S)/w,j=(-_*b+k*S)/w,O=E-v,T=D-y,A=C-v,P=j-y;return O*O+T*T>A*A+P*P&&(E=C,D=j),{cx:E,cy:D,x01:-d,y01:-h,x11:E*(i/x-1),y11:D*(i/x-1)}}function h(){var e=a,t=s,n=(0,i.Z)(0),h=null,p=l,f=u,m=c,g=null;function v(){var i,a,s=+e.apply(this,arguments),l=+t.apply(this,arguments),u=p.apply(this,arguments)-o.ou,c=f.apply(this,arguments)-o.ou,v=(0,o.Wn)(c-u),y=c>u;if(g||(g=i=(0,r.Z)()),lo.Ho){if(v>o.BZ-o.Ho)g.moveTo(l*(0,o.mC)(u),l*(0,o.O$)(u)),g.arc(0,0,l,u,c,!y),s>o.Ho&&(g.moveTo(s*(0,o.mC)(c),s*(0,o.O$)(c)),g.arc(0,0,s,c,u,y));else{var b,k,w=u,x=c,_=u,S=c,E=v,D=v,C=m.apply(this,arguments)/2,j=C>o.Ho&&(h?+h.apply(this,arguments):(0,o._b)(s*s+l*l)),O=(0,o.VV)((0,o.Wn)(l-s)/2,+n.apply(this,arguments)),T=O,A=O;if(j>o.Ho){var P=(0,o.ZR)(j/s*(0,o.O$)(C)),R=(0,o.ZR)(j/l*(0,o.O$)(C));(E-=2*P)>o.Ho?(P*=y?1:-1,_+=P,S-=P):(E=0,_=S=(u+c)/2),(D-=2*R)>o.Ho?(R*=y?1:-1,w+=R,x-=R):(D=0,w=x=(u+c)/2)}var M=l*(0,o.mC)(w),F=l*(0,o.O$)(w),N=s*(0,o.mC)(S),I=s*(0,o.O$)(S);if(O>o.Ho){var L,B=l*(0,o.mC)(x),z=l*(0,o.O$)(x),U=s*(0,o.mC)(_),q=s*(0,o.O$)(_);if(vo.Ho?A>o.Ho?(b=d(U,q,M,F,l,A,y),k=d(B,z,N,I,l,A,y),g.moveTo(b.cx+b.x01,b.cy+b.y01),Ao.Ho&&E>o.Ho?T>o.Ho?(b=d(N,I,B,z,s,-T,y),k=d(M,F,U,q,s,-T,y),g.lineTo(b.cx+b.x01,b.cy+b.y01),T=s;--l)h.point(v[l],y[l]);h.lineEnd(),h.areaEnd()}}g&&(v[a]=+e(p,a,o),y[a]=+n(p,a,o),h.point(t?+t(p,a,o):v[a],r?+r(p,a,o):y[a]))}if(f)return h=null,f+""||null}function f(){return(0,s.Z)().defined(u).curve(d).context(c)}return p.x=function(n){return arguments.length?(e="function"==typeof n?n:(0,o.Z)(+n),t=null,p):e},p.x0=function(t){return arguments.length?(e="function"==typeof t?t:(0,o.Z)(+t),p):e},p.x1=function(e){return arguments.length?(t=null==e?null:"function"==typeof e?e:(0,o.Z)(+e),p):t},p.y=function(e){return arguments.length?(n="function"==typeof e?e:(0,o.Z)(+e),r=null,p):n},p.y0=function(e){return arguments.length?(n="function"==typeof e?e:(0,o.Z)(+e),p):n},p.y1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:(0,o.Z)(+e),p):r},p.lineX0=p.lineY0=function(){return f().x(e).y(n)},p.lineY1=function(){return f().x(e).y(r)},p.lineX1=function(){return f().x(t).y(n)},p.defined=function(e){return arguments.length?(u="function"==typeof e?e:(0,o.Z)(!!e),p):u},p.curve=function(e){return arguments.length?(d=e,null!=c&&(h=d(c)),p):d},p.context=function(e){return arguments.length?(null==e?c=h=null:h=d(c=e),p):c},p}function c(e,t){return te?1:t>=e?0:NaN}function d(e){return e}var h=n(15);function p(){var e=d,t=c,n=null,r=(0,o.Z)(0),i=(0,o.Z)(h.BZ),a=(0,o.Z)(0);function s(o){var s,l,u,c,d,p=o.length,f=0,m=Array(p),g=Array(p),v=+r.apply(this,arguments),y=Math.min(h.BZ,Math.max(-h.BZ,i.apply(this,arguments)-v)),b=Math.min(Math.abs(y)/p,a.apply(this,arguments)),k=b*(y<0?-1:1);for(s=0;s0&&(f+=d);for(null!=t?m.sort(function(e,n){return t(g[e],g[n])}):null!=n&&m.sort(function(e,t){return n(o[e],o[t])}),s=0,u=f?(y-p*k)/f:0;s0?d*u:0)+k,g[l]={data:o[l],index:s,value:d,startAngle:v,endAngle:c,padAngle:b};return g}return s.value=function(t){return arguments.length?(e="function"==typeof t?t:(0,o.Z)(+t),s):e},s.sortValues=function(e){return arguments.length?(t=e,n=null,s):t},s.sort=function(e){return arguments.length?(n=e,t=null,s):n},s.startAngle=function(e){return arguments.length?(r="function"==typeof e?e:(0,o.Z)(+e),s):r},s.endAngle=function(e){return arguments.length?(i="function"==typeof e?e:(0,o.Z)(+e),s):i},s.padAngle=function(e){return arguments.length?(a="function"==typeof e?e:(0,o.Z)(+e),s):a},s}var f=g(a.Z);function m(e){this._curve=e}function g(e){function t(t){return new m(e(t))}return t._curve=e,t}function v(e){var t=e.curve;return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(e){return arguments.length?t(g(e)):t()._curve},e}function y(){return v((0,s.Z)().curve(f))}function b(){var e=u().curve(f),t=e.curve,n=e.lineX0,r=e.lineX1,i=e.lineY0,o=e.lineY1;return e.angle=e.x,delete e.x,e.startAngle=e.x0,delete e.x0,e.endAngle=e.x1,delete e.x1,e.radius=e.y,delete e.y,e.innerRadius=e.y0,delete e.y0,e.outerRadius=e.y1,delete e.y1,e.lineStartAngle=function(){return v(n())},delete e.lineX0,e.lineEndAngle=function(){return v(r())},delete e.lineX1,e.lineInnerRadius=function(){return v(i())},delete e.lineY0,e.lineOuterRadius=function(){return v(o())},delete e.lineY1,e.curve=function(e){return arguments.length?t(g(e)):t()._curve},e}function k(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]}m.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),-(t*Math.cos(e)))}};var w=Array.prototype.slice;function x(e){return e.source}function _(e){return e.target}function S(e){var t=x,n=_,r=l.x,a=l.y,s=null;function u(){var o,l=w.call(arguments),u=t.apply(this,l),c=n.apply(this,l);if(s||(s=o=(0,i.Z)()),e(s,+r.apply(this,(l[0]=u,l)),+a.apply(this,l),+r.apply(this,(l[0]=c,l)),+a.apply(this,l)),o)return s=null,o+""||null}return u.source=function(e){return arguments.length?(t=e,u):t},u.target=function(e){return arguments.length?(n=e,u):n},u.x=function(e){return arguments.length?(r="function"==typeof e?e:(0,o.Z)(+e),u):r},u.y=function(e){return arguments.length?(a="function"==typeof e?e:(0,o.Z)(+e),u):a},u.context=function(e){return arguments.length?(s=null==e?null:e,u):s},u}function E(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,i,r,i)}function D(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t,n=(n+i)/2,r,n,r,i)}function C(e,t,n,r,i){var o=k(t,n),a=k(t,n=(n+i)/2),s=k(r,n),l=k(r,i);e.moveTo(o[0],o[1]),e.bezierCurveTo(a[0],a[1],s[0],s[1],l[0],l[1])}function j(){return S(E)}function O(){return S(D)}function T(){var e=S(C);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e}var A={draw:function(e,t){var n=Math.sqrt(t/h.pi);e.moveTo(n,0),e.arc(0,0,n,0,h.BZ)}},P={draw:function(e,t){var n=Math.sqrt(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},R=Math.sqrt(1/3),M=2*R,F={draw:function(e,t){var n=Math.sqrt(t/M),r=n*R;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},N=Math.sin(h.pi/10)/Math.sin(7*h.pi/10),I=Math.sin(h.BZ/10)*N,L=-Math.cos(h.BZ/10)*N,B={draw:function(e,t){var n=Math.sqrt(.8908130915292852*t),r=I*n,i=L*n;e.moveTo(0,-n),e.lineTo(r,i);for(var o=1;o<5;++o){var a=h.BZ*o/5,s=Math.cos(a),l=Math.sin(a);e.lineTo(l*n,-s*n),e.lineTo(s*r-l*i,l*r+s*i)}e.closePath()}},z={draw:function(e,t){var n=Math.sqrt(t),r=-n/2;e.rect(r,r,n,n)}},U=Math.sqrt(3),q={draw:function(e,t){var n=-Math.sqrt(t/(3*U));e.moveTo(0,2*n),e.lineTo(-U*n,-n),e.lineTo(U*n,-n),e.closePath()}},$=Math.sqrt(3)/2,H=1/Math.sqrt(12),V=(H/2+1)*3,W={draw:function(e,t){var n=Math.sqrt(t/V),r=n/2,i=n*H,o=n*H+n,a=-r;e.moveTo(r,i),e.lineTo(r,o),e.lineTo(a,o),e.lineTo(-.5*r-$*i,$*r+-.5*i),e.lineTo(-.5*r-$*o,$*r+-.5*o),e.lineTo(-.5*a-$*o,$*a+-.5*o),e.lineTo(-.5*r+$*i,-.5*i-$*r),e.lineTo(-.5*r+$*o,-.5*o-$*r),e.lineTo(-.5*a+$*o,-.5*o-$*a),e.closePath()}},G=[A,P,F,z,B,q,W];function Y(){var e=(0,o.Z)(A),t=(0,o.Z)(64),n=null;function r(){var r;if(n||(n=r=(0,i.Z)()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),r)return n=null,r+""||null}return r.type=function(t){return arguments.length?(e="function"==typeof t?t:(0,o.Z)(t),r):e},r.size=function(e){return arguments.length?(t="function"==typeof e?e:(0,o.Z)(+e),r):t},r.context=function(e){return arguments.length?(n=null==e?null:e,r):n},r}function Z(){}function K(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function J(e){this._context=e}function X(e){return new J(e)}function Q(e){this._context=e}function ee(e){return new Q(e)}function et(e){this._context=e}function en(e){return new et(e)}function er(e,t){this._basis=new J(e),this._beta=t}J.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:K(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:K(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},Q.prototype={areaStart:Z,areaEnd:Z,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:K(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},et.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:K(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},er.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r,i=e[0],o=t[0],a=e[n]-i,s=t[n]-o,l=-1;++l<=n;)r=l/n,this._basis.point(this._beta*e[l]+(1-this._beta)*(i+r*a),this._beta*t[l]+(1-this._beta)*(o+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var ei=function e(t){function n(e){return 1===t?new J(e):new er(e,t)}return n.beta=function(t){return e(+t)},n}(.85);function eo(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function ea(e,t){this._context=e,this._k=(1-t)/6}ea.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:eo(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:eo(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var es=function e(t){function n(e){return new ea(e,t)}return n.tension=function(t){return e(+t)},n}(0);function el(e,t){this._context=e,this._k=(1-t)/6}el.prototype={areaStart:Z,areaEnd:Z,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:eo(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var eu=function e(t){function n(e){return new el(e,t)}return n.tension=function(t){return e(+t)},n}(0);function ec(e,t){this._context=e,this._k=(1-t)/6}ec.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:eo(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var ed=function e(t){function n(e){return new ec(e,t)}return n.tension=function(t){return e(+t)},n}(0);function eh(e,t,n){var r=e._x1,i=e._y1,o=e._x2,a=e._y2;if(e._l01_a>h.Ho){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>h.Ho){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,c=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*u+e._x1*e._l23_2a-t*e._l12_2a)/c,a=(a*u+e._y1*e._l23_2a-n*e._l12_2a)/c}e._context.bezierCurveTo(r,i,o,a,e._x2,e._y2)}function ep(e,t){this._context=e,this._alpha=t}ep.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:eh(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var ef=function e(t){function n(e){return t?new ep(e,t):new ea(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function em(e,t){this._context=e,this._alpha=t}em.prototype={areaStart:Z,areaEnd:Z,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:eh(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var eg=function e(t){function n(e){return t?new em(e,t):new el(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function ev(e,t){this._context=e,this._alpha=t}ev.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:eh(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var ey=function e(t){function n(e){return t?new ev(e,t):new ec(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function eb(e){this._context=e}function ek(e){return new eb(e)}function ew(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0);return((o<0?-1:1)+(a<0?-1:1))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs((o*i+a*r)/(r+i)))||0}function ex(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function e_(e,t,n){var r=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-r)/3;e._context.bezierCurveTo(r+s,i+s*t,o-s,a-s*n,o,a)}function eS(e){this._context=e}function eE(e){this._context=new eD(e)}function eD(e){this._context=e}function eC(e){return new eS(e)}function ej(e){return new eE(e)}function eO(e){this._context=e}function eT(e){var t,n,r=e.length-1,i=Array(r),o=Array(r),a=Array(r);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(t=0,o[r-1]=(e[r]+i[r-1])/2;t1)for(var n,r,i,o=1,a=e[t[0]],s=a.length;o=0;)n[t]=t;return n}function eL(e,t){return e[t]}function eB(){var e=(0,o.Z)([]),t=eI,n=eN,r=eL;function i(i){var o,a,s=e.apply(this,arguments),l=i.length,u=s.length,c=Array(u);for(o=0;o0){for(var n,r,i,o=0,a=e[0].length;o0)for(var n,r,i,o,a,s,l=0,u=e[t[0]].length;l0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=a,r[0]=a+=i):(r[0]=0,r[1]=i)}function eq(e,t){if((n=e.length)>0){for(var n,r=0,i=e[t[0]],o=i.length;r0&&(r=(n=e[t[0]]).length)>0){for(var n,r,i,o=0,a=1;ao&&(o=t,r=n);return r}function eW(e){var t=e.map(eG);return eI(e).sort(function(e,n){return t[e]-t[n]})}function eG(e){for(var t,n=0,r=-1,i=e.length;++r=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}}},79767:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(91672),i=n(33554),o=n(20651),a=n(11053);function s(){var e=a.x,t=a.y,n=(0,i.Z)(!0),s=null,l=o.Z,u=null;function c(i){var o,a,c,d=i.length,h=!1;for(null==s&&(u=l(c=(0,r.Z)())),o=0;o<=d;++o)!(o1?0:e<-1?d:Math.acos(e)}function m(e){return e>=1?h:e<=-1?-h:Math.asin(e)}},11053:function(e,t,n){"use strict";function r(e){return e[0]}function i(e){return e[1]}n.d(t,{x:function(){return r},y:function(){return i}})},82107:function(e,t,n){"use strict";function r(e){return function(e,t){if(null==e)throw TypeError("assign requires that input parameter not be null or undefined");for(var n in t=t||{})t.hasOwnProperty(n)&&(e[n]=t[n]);return e}({},e)}n.d(t,{Z:function(){return r}})},1645:function(e,t,n){"use strict";function r(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}n.d(t,{Z:function(){return r}})},19785:function(e,t,n){"use strict";function r(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}n.d(t,{Z:function(){return r}})},52329:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(42765),i=n(66700),o=n(19785);function a(e,t){(0,o.Z)(1,arguments);var n=t||{},a=n.locale,s=a&&a.options&&a.options.weekStartsOn,l=null==s?0:(0,r.Z)(s),u=null==n.weekStartsOn?l:(0,r.Z)(n.weekStartsOn);if(!(u>=0&&u<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");var c=(0,i.Z)(e),d=c.getUTCDay();return c.setUTCDate(c.getUTCDate()-((d0?1:a}},41033:function(e,t,n){"use strict";n.d(t,{Z:function(){return A}});var r=n(66700),i=n(19785),o=n(57907),a=n(89248);function s(e,t){for(var n=Math.abs(e).toString();n.length0?n:1-n;return s("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):s(n+1,2)},d:function(e,t){return s(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return s(e.getUTCHours()%12||12,t.length)},H:function(e,t){return s(e.getUTCHours(),t.length)},m:function(e,t){return s(e.getUTCMinutes(),t.length)},s:function(e,t){return s(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length;return s(Math.floor(e.getUTCMilliseconds()*Math.pow(10,n-3)),t.length)}};function u(e){(0,i.Z)(1,arguments);var t=(0,r.Z)(e),n=t.getUTCDay();return t.setUTCDate(t.getUTCDate()-((n<1?7:0)+n-1)),t.setUTCHours(0,0,0,0),t}function c(e){(0,i.Z)(1,arguments);var t=(0,r.Z)(e),n=t.getUTCFullYear(),o=new Date(0);o.setUTCFullYear(n+1,0,4),o.setUTCHours(0,0,0,0);var a=u(o),s=new Date(0);s.setUTCFullYear(n,0,4),s.setUTCHours(0,0,0,0);var l=u(s);return t.getTime()>=a.getTime()?n+1:t.getTime()>=l.getTime()?n:n-1}var d=n(52329),h=n(42765);function p(e,t){(0,i.Z)(1,arguments);var n=(0,r.Z)(e,t),o=n.getUTCFullYear(),a=t||{},s=a.locale,l=s&&s.options&&s.options.firstWeekContainsDate,u=null==l?1:(0,h.Z)(l),c=null==a.firstWeekContainsDate?u:(0,h.Z)(a.firstWeekContainsDate);if(!(c>=1&&c<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=new Date(0);p.setUTCFullYear(o+1,0,c),p.setUTCHours(0,0,0,0);var f=(0,d.Z)(p,t),m=new Date(0);m.setUTCFullYear(o,0,c),m.setUTCHours(0,0,0,0);var g=(0,d.Z)(m,t);return n.getTime()>=f.getTime()?o+1:n.getTime()>=g.getTime()?o:o-1}var f={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"};function m(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=r%60;return 0===o?n+String(i):n+String(i)+(t||"")+s(o,2)}function g(e,t){return e%60==0?(e>0?"-":"+")+s(Math.abs(e)/60,2):v(e,t)}function v(e,t){var n=e>0?"-":"+",r=Math.abs(e);return n+s(Math.floor(r/60),2)+(t||"")+s(r%60,2)}var y={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return l.y(e,t)},Y:function(e,t,n,r){var i=p(e,r),o=i>0?i:1-i;return"YY"===t?s(o%100,2):"Yo"===t?n.ordinalNumber(o,{unit:"year"}):s(o,t.length)},R:function(e,t){return s(c(e),t.length)},u:function(e,t){return s(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return s(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return s(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return l.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return s(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,o){var a=function(e,t){(0,i.Z)(1,arguments);var n=(0,r.Z)(e);return Math.round(((0,d.Z)(n,t).getTime()-(function(e,t){(0,i.Z)(1,arguments);var n=t||{},r=n.locale,o=r&&r.options&&r.options.firstWeekContainsDate,a=null==o?1:(0,h.Z)(o),s=null==n.firstWeekContainsDate?a:(0,h.Z)(n.firstWeekContainsDate),l=p(e,t),u=new Date(0);return u.setUTCFullYear(l,0,s),u.setUTCHours(0,0,0,0),(0,d.Z)(u,t)})(n,t).getTime())/6048e5)+1}(e,o);return"wo"===t?n.ordinalNumber(a,{unit:"week"}):s(a,t.length)},I:function(e,t,n){var o=function(e){(0,i.Z)(1,arguments);var t=(0,r.Z)(e);return Math.round((u(t).getTime()-(function(e){(0,i.Z)(1,arguments);var t=c(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),u(n)})(t).getTime())/6048e5)+1}(e);return"Io"===t?n.ordinalNumber(o,{unit:"week"}):s(o,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):l.d(e,t)},D:function(e,t,n){var o=function(e){(0,i.Z)(1,arguments);var t=(0,r.Z)(e),n=t.getTime();return t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0),Math.floor((n-t.getTime())/864e5)+1}(e);return"Do"===t?n.ordinalNumber(o,{unit:"dayOfYear"}):s(o,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var i=e.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return s(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var i=e.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return s(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),i=0===r?7:r;switch(t){case"i":return String(i);case"ii":return s(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,i=e.getUTCHours();switch(r=12===i?f.noon:0===i?f.midnight:i/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,i=e.getUTCHours();switch(r=i>=17?f.evening:i>=12?f.afternoon:i>=4?f.morning:f.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return l.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):l.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):s(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return(0===r&&(r=24),"ko"===t)?n.ordinalNumber(r,{unit:"hour"}):s(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):l.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):l.s(e,t)},S:function(e,t){return l.S(e,t)},X:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();if(0===i)return"Z";switch(t){case"X":return g(i);case"XXXX":case"XX":return v(i);default:return v(i,":")}},x:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return g(i);case"xxxx":case"xx":return v(i);default:return v(i,":")}},O:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+m(i,":");default:return"GMT"+v(i,":")}},z:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+m(i,":");default:return"GMT"+v(i,":")}},t:function(e,t,n,r){return s(Math.floor((r._originalDate||e).getTime()/1e3),t.length)},T:function(e,t,n,r){return s((r._originalDate||e).getTime(),t.length)}};function b(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}}function k(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}}var w={p:k,P:function(e,t){var n,r=e.match(/(P+)(p+)?/),i=r[1],o=r[2];if(!o)return b(e,t);switch(i){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",b(i,t)).replace("{{time}}",k(o,t))}},x=n(1645),_=["D","DD"],S=["YY","YYYY"];function E(e,t,n){if("YYYY"===e)throw RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("YY"===e)throw RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("D"===e)throw RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("DD"===e)throw RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"))}var D=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,C=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,j=/^'([^]*?)'?$/,O=/''/g,T=/[a-zA-Z]/;function A(e,t,n){(0,i.Z)(2,arguments);var s=String(t),l=n||{},u=l.locale||o.Z,c=u.options&&u.options.firstWeekContainsDate,d=null==c?1:(0,h.Z)(c),p=null==l.firstWeekContainsDate?d:(0,h.Z)(l.firstWeekContainsDate);if(!(p>=1&&p<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var f=u.options&&u.options.weekStartsOn,m=null==f?0:(0,h.Z)(f),g=null==l.weekStartsOn?m:(0,h.Z)(l.weekStartsOn);if(!(g>=0&&g<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!u.localize)throw RangeError("locale must contain localize property");if(!u.formatLong)throw RangeError("locale must contain formatLong property");var v=(0,r.Z)(e);if(!function(e){return(0,i.Z)(1,arguments),!isNaN((0,r.Z)(e))}(v))throw RangeError("Invalid time value");var b=(0,x.Z)(v),k=(0,a.Z)(v,b),A={firstWeekContainsDate:p,weekStartsOn:g,locale:u,_originalDate:v};return s.match(C).map(function(e){var t=e[0];return"p"===t||"P"===t?(0,w[t])(e,u.formatLong,A):e}).join("").match(D).map(function(n){if("''"===n)return"'";var r=n[0];if("'"===r)return n.match(j)[1].replace(O,"'");var i=y[r];if(i)return l.useAdditionalWeekYearTokens||-1===S.indexOf(n)||E(n,t,e),l.useAdditionalDayOfYearTokens||-1===_.indexOf(n)||E(n,t,e),i(k,n,u.localize,A);if(r.match(T))throw RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");return n}).join("")}},96740:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(2463),i=n(66700),o=n(19785),a=n(57907),s=n(82107),l=n(1645);function u(e,t){var n,u,c,d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,o.Z)(2,arguments);var h=d.locale||a.Z;if(!h.formatDistance)throw RangeError("locale must contain formatDistance property");var p=(0,r.Z)(e,t);if(isNaN(p))throw RangeError("Invalid time value");var f=(0,s.Z)(d);f.addSuffix=!!d.addSuffix,f.comparison=p,p>0?(n=(0,i.Z)(t),u=(0,i.Z)(e)):(n=(0,i.Z)(e),u=(0,i.Z)(t));var m=function(e,t){(0,o.Z)(2,arguments);var n=function(e,t){(0,o.Z)(2,arguments);var n=(0,i.Z)(e),r=(0,i.Z)(t);return n.getTime()-r.getTime()}(e,t)/1e3;return n>0?Math.floor(n):Math.ceil(n)}(u,n),g=Math.round((m-((0,l.Z)(u)-(0,l.Z)(n))/1e3)/60);if(g<2){if(d.includeSeconds){if(m<5)return h.formatDistance("lessThanXSeconds",5,f);if(m<10)return h.formatDistance("lessThanXSeconds",10,f);if(m<20)return h.formatDistance("lessThanXSeconds",20,f);if(m<40)return h.formatDistance("halfAMinute",null,f);else if(m<60)return h.formatDistance("lessThanXMinutes",1,f);else return h.formatDistance("xMinutes",1,f)}return 0===g?h.formatDistance("lessThanXMinutes",1,f):h.formatDistance("xMinutes",g,f)}if(g<45)return h.formatDistance("xMinutes",g,f);if(g<90)return h.formatDistance("aboutXHours",1,f);if(g<1440){var v=Math.round(g/60);return h.formatDistance("aboutXHours",v,f)}if(g<2520)return h.formatDistance("xDays",1,f);if(g<43200){var y=Math.round(g/1440);return h.formatDistance("xDays",y,f)}if(g<86400)return c=Math.round(g/43200),h.formatDistance("aboutXMonths",c,f);if((c=function(e,t){(0,o.Z)(2,arguments);var n,a=(0,i.Z)(e),s=(0,i.Z)(t),l=(0,r.Z)(a,s),u=Math.abs(function(e,t){(0,o.Z)(2,arguments);var n=(0,i.Z)(e),r=(0,i.Z)(t);return 12*(n.getFullYear()-r.getFullYear())+(n.getMonth()-r.getMonth())}(a,s));if(u<1)n=0;else{1===a.getMonth()&&a.getDate()>27&&a.setDate(30),a.setMonth(a.getMonth()-l*u);var c=(0,r.Z)(a,s)===-l;(function(e){(0,o.Z)(1,arguments);var t=(0,i.Z)(e);return(function(e){(0,o.Z)(1,arguments);var t=(0,i.Z)(e);return t.setHours(23,59,59,999),t})(t).getTime()===(function(e){(0,o.Z)(1,arguments);var t=(0,i.Z)(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t})(t).getTime()})((0,i.Z)(e))&&1===u&&1===(0,r.Z)(e,s)&&(c=!1),n=l*(u-Number(c))}return 0===n?0:n}(u,n))<12){var b=Math.round(g/43200);return h.formatDistance("xMonths",b,f)}var k=c%12,w=Math.floor(c/12);return k<3?h.formatDistance("aboutXYears",w,f):k<9?h.formatDistance("overXYears",w,f):h.formatDistance("almostXYears",w+1,f)}},98541:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(1645),i=n(2463),o=n(66700),a=n(82107),s=n(57907),l=n(19785);function u(e,t){return(0,l.Z)(1,arguments),function(e,t){var n,u,c,d,h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,l.Z)(2,arguments);var p=h.locale||s.Z;if(!p.formatDistance)throw RangeError("locale must contain localize.formatDistance property");var f=(0,i.Z)(e,t);if(isNaN(f))throw RangeError("Invalid time value");var m=(0,a.Z)(h);m.addSuffix=!!h.addSuffix,m.comparison=f,f>0?(n=(0,o.Z)(t),u=(0,o.Z)(e)):(n=(0,o.Z)(e),u=(0,o.Z)(t));var g=null==h.roundingMethod?"round":String(h.roundingMethod);if("floor"===g)c=Math.floor;else if("ceil"===g)c=Math.ceil;else if("round"===g)c=Math.round;else throw RangeError("roundingMethod must be 'floor', 'ceil' or 'round'");var v=u.getTime()-n.getTime(),y=v/6e4,b=(v-((0,r.Z)(u)-(0,r.Z)(n)))/6e4;if("second"===(d=null==h.unit?y<1?"second":y<60?"minute":y<1440?"hour":b<43200?"day":b<525600?"month":"year":String(h.unit))){var k=c(v/1e3);return p.formatDistance("xSeconds",k,m)}if("minute"===d){var w=c(y);return p.formatDistance("xMinutes",w,m)}if("hour"===d){var x=c(y/60);return p.formatDistance("xHours",x,m)}if("day"===d){var _=c(b/1440);return p.formatDistance("xDays",_,m)}if("month"===d){var S=c(b/43200);return 12===S&&"month"!==h.unit?p.formatDistance("xYears",1,m):p.formatDistance("xMonths",S,m)}if("year"===d){var E=c(b/525600);return p.formatDistance("xYears",E,m)}throw RangeError("unit must be 'second', 'minute', 'hour', 'day', 'month' or 'year'")}(e,Date.now(),t)}},56421:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(1645),i=n(10405),o=n(19785),a=n(41033),s=n(57907),l=n(89248),u=n(66700);function c(e,t,n){(0,o.Z)(2,arguments);var c=(0,u.Z)(e),d=(0,u.Z)(t),h=n||{},p=h.locale,f=void 0===p?s.Z:p,m=h.weekStartsOn,g=void 0===m?0:m;if(!f.localize)throw RangeError("locale must contain localize property");if(!f.formatLong)throw RangeError("locale must contain formatLong property");if(!f.formatRelative)throw RangeError("locale must contain formatRelative property");var v=function(e,t){(0,o.Z)(2,arguments);var n=(0,i.Z)(e),a=(0,i.Z)(t);return Math.round((n.getTime()-(0,r.Z)(n)-(a.getTime()-(0,r.Z)(a)))/864e5)}(c,d);if(isNaN(v))throw RangeError("Invalid time value");var y=(0,l.Z)(c,(0,r.Z)(c)),b=(0,l.Z)(d,(0,r.Z)(d)),k=f.formatRelative(v<-6?"other":v<-1?"lastWeek":v<0?"yesterday":v<1?"today":v<2?"tomorrow":v<7?"nextWeek":"other",y,b,{locale:f,weekStartsOn:g});return(0,a.Z)(c,k,{locale:f,weekStartsOn:g})}},82276:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(10405),i=n(19785);function o(e,t){(0,i.Z)(2,arguments);var n=(0,r.Z)(e),o=(0,r.Z)(t);return n.getTime()===o.getTime()}},82236:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(82276),i=n(19785);function o(e){return(0,i.Z)(1,arguments),(0,r.Z)(e,Date.now())}},21668:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(82276),i=n(47699),o=n(19785);function a(e){return(0,o.Z)(1,arguments),(0,r.Z)(e,(0,i.Z)(Date.now(),1))}},95569:function(e,t,n){"use strict";function r(e){return function(t){var n=t||{},r=n.width?String(n.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}n.d(t,{Z:function(){return r}})},75100:function(e,t,n){"use strict";function r(e){return function(t,n){var r,i=n||{};if("formatting"===(i.context?String(i.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,a=i.width?String(i.width):o;r=e.formattingValues[a]||e.formattingValues[o]}else{var s=e.defaultWidth,l=i.width?String(i.width):e.defaultWidth;r=e.values[l]||e.values[s]}return r[e.argumentCallback?e.argumentCallback(t):t]}}n.d(t,{Z:function(){return r}})},87204:function(e,t,n){"use strict";function r(e){return function(t,n){var r,i=String(t),o=n||{},a=o.width,s=a&&e.matchPatterns[a]||e.matchPatterns[e.defaultMatchWidth],l=i.match(s);if(!l)return null;var u=l[0],c=a&&e.parsePatterns[a]||e.parsePatterns[e.defaultParseWidth];return r="[object Array]"===Object.prototype.toString.call(c)?function(e,t){for(var n=0;n20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:(0,s.Z)({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:(0,s.Z)({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:(0,s.Z)({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:(0,s.Z)({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:(0,s.Z)({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},u=n(13701),c=n(87204),d={code:"en-US",formatDistance:function(e,t,n){var i;return(n=n||{},i="string"==typeof r[e]?r[e]:1===t?r[e].one:r[e].other.replace("{{count}}",t),n.addSuffix)?n.comparison>0?"in "+i:i+" ago":i},formatLong:o,formatRelative:function(e,t,n,r){return a[e]},localize:l,match:{ordinalNumber:(0,u.Z)({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,c.Z)({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:(0,c.Z)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,c.Z)({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,c.Z)({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:(0,c.Z)({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}}},90535:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r={lessThanXSeconds:{one:"menos de un segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos de un minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"alrededor de 1 hora",other:"alrededor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 d\xeda",other:"{{count}} d\xedas"},aboutXWeeks:{one:"alrededor de 1 semana",other:"alrededor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"alrededor de 1 mes",other:"alrededor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"alrededor de 1 a\xf1o",other:"alrededor de {{count}} a\xf1os"},xYears:{one:"1 a\xf1o",other:"{{count}} a\xf1os"},overXYears:{one:"m\xe1s de 1 a\xf1o",other:"m\xe1s de {{count}} a\xf1os"},almostXYears:{one:"casi 1 a\xf1o",other:"casi {{count}} a\xf1os"}},i=n(95569),o={date:(0,i.Z)({formats:{full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:(0,i.Z)({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,i.Z)({formats:{full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},a={lastWeek:"'el' eeee 'pasado a la' LT",yesterday:"'ayer a la' p",today:"'hoy a la' p",tomorrow:"'ma\xf1ana a la' p",nextWeek:"eeee 'a la' p",other:"P"},s={lastWeek:"'el' eeee 'pasado a las' p",yesterday:"'ayer a las' p",today:"'hoy a las' p",tomorrow:"'ma\xf1ana a las' p",nextWeek:"eeee 'a las' p",other:"P"},l=n(75100),u={ordinalNumber:function(e){return Number(e)+"\xba"},era:(0,l.Z)({values:{narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","despu\xe9s de cristo"]},defaultWidth:"wide"}),quarter:(0,l.Z)({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1\xba trimestre","2\xba trimestre","3\xba trimestre","4\xba trimestre"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:(0,l.Z)({values:{narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],wide:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},defaultWidth:"wide"}),day:(0,l.Z)({values:{narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","mi","ju","vi","sa"],abbreviated:["dom","lun","mar","mi\xe9","jue","vie","s\xe1b"],wide:["domingo","lunes","martes","mi\xe9rcoles","jueves","viernes","s\xe1bado"]},defaultWidth:"wide"}),dayPeriod:(0,l.Z)({values:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"ma\xf1ana",afternoon:"tarde",evening:"tarde",night:"noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"ma\xf1ana",afternoon:"tarde",evening:"tarde",night:"noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"ma\xf1ana",afternoon:"tarde",evening:"tarde",night:"noche"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"de la ma\xf1ana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"de la ma\xf1ana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"de la ma\xf1ana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"}},defaultFormattingWidth:"wide"})},c=n(13701),d=n(87204),h={code:"es",formatDistance:function(e,t,n){var i;return(n=n||{},i="string"==typeof r[e]?r[e]:1===t?r[e].one:r[e].other.replace("{{count}}",t),n.addSuffix)?n.comparison>0?"en "+i:"hace "+i:i},formatLong:o,formatRelative:function(e,t,n,r){return 1!==t.getUTCHours()?s[e]:a[e]},localize:u,match:{ordinalNumber:(0,c.Z)({matchPattern:/^(\d+)(º)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,d.Z)({matchPatterns:{narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes de la era com[uú]n)/i,/^(despu[eé]s de cristo|era com[uú]n)/i]},defaultParseWidth:"any"}),quarter:(0,d.Z)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,d.Z)({matchPatterns:{narrow:/^[efmajsond]/i,abbreviated:/^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,wide:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^e/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^en/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i]},defaultParseWidth:"any"}),day:(0,d.Z)({matchPatterns:{narrow:/^[dlmjvs]/i,short:/^(do|lu|ma|mi|ju|vi|sa)/i,abbreviated:/^(dom|lun|mar|mie|jue|vie|sab)/i,wide:/^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^mi/i,/^ju/i,/^vi/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:(0,d.Z)({matchPatterns:{narrow:/^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,any:/^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañana/i,afternoon:/tarde/i,evening:/tarde/i,night:/noche/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:1}}},9283:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r={lessThanXSeconds:{one:"moins d’une seconde",other:"moins de {{count}} secondes"},xSeconds:{one:"1 seconde",other:"{{count}} secondes"},halfAMinute:"30 secondes",lessThanXMinutes:{one:"moins d’une minute",other:"moins de {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"environ 1 heure",other:"environ {{count}} heures"},xHours:{one:"1 heure",other:"{{count}} heures"},xDays:{one:"1 jour",other:"{{count}} jours"},aboutXWeeks:{one:"environ 1 semaine",other:"environ {{count}} semaines"},xWeeks:{one:"1 semaine",other:"{{count}} semaines"},aboutXMonths:{one:"environ 1 mois",other:"environ {{count}} mois"},xMonths:{one:"1 mois",other:"{{count}} mois"},aboutXYears:{one:"environ 1 an",other:"environ {{count}} ans"},xYears:{one:"1 an",other:"{{count}} ans"},overXYears:{one:"plus d’un an",other:"plus de {{count}} ans"},almostXYears:{one:"presqu’un an",other:"presque {{count}} ans"}},i=n(95569),o={date:(0,i.Z)({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:(0,i.Z)({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,i.Z)({formats:{full:"{{date}} '\xe0' {{time}}",long:"{{date}} '\xe0' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},a={lastWeek:"eeee 'dernier \xe0' p",yesterday:"'hier \xe0' p",today:"'aujourd’hui \xe0' p",tomorrow:"'demain \xe0' p'",nextWeek:"eeee 'prochain \xe0' p",other:"P"},s=n(75100),l={ordinalNumber:function(e,t){var n=Number(e),r=String((t||{}).unit);return 0===n?n:n+("year"===r||"hour"===r||"week"===r?1===n?"\xe8re":"\xe8me":1===n?"er":"\xe8me")},era:(0,s.Z)({values:{narrow:["av. J.-C","ap. J.-C"],abbreviated:["av. J.-C","ap. J.-C"],wide:["avant J\xe9sus-Christ","apr\xe8s J\xe9sus-Christ"]},defaultWidth:"wide"}),quarter:(0,s.Z)({values:{narrow:["T1","T2","T3","T4"],abbreviated:["1er trim.","2\xe8me trim.","3\xe8me trim.","4\xe8me trim."],wide:["1er trimestre","2\xe8me trimestre","3\xe8me trimestre","4\xe8me trimestre"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:(0,s.Z)({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["janv.","f\xe9vr.","mars","avr.","mai","juin","juil.","ao\xfbt","sept.","oct.","nov.","d\xe9c."],wide:["janvier","f\xe9vrier","mars","avril","mai","juin","juillet","ao\xfbt","septembre","octobre","novembre","d\xe9cembre"]},defaultWidth:"wide"}),day:(0,s.Z)({values:{narrow:["D","L","M","M","J","V","S"],short:["di","lu","ma","me","je","ve","sa"],abbreviated:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],wide:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},defaultWidth:"wide"}),dayPeriod:(0,s.Z)({values:{narrow:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"mat.",afternoon:"ap.m.",evening:"soir",night:"mat."},abbreviated:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"matin",afternoon:"apr\xe8s-midi",evening:"soir",night:"matin"},wide:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"du matin",afternoon:"de l’apr\xe8s-midi",evening:"du soir",night:"du matin"}},defaultWidth:"wide"})},u=n(13701),c=n(87204),d={code:"fr",formatDistance:function(e,t,n){var i;return(n=n||{},i="string"==typeof r[e]?r[e]:1===t?r[e].one:r[e].other.replace("{{count}}",t),n.addSuffix)?n.comparison>0?"dans "+i:"il y a "+i:i},formatLong:o,formatRelative:function(e,t,n,r){return a[e]},localize:l,match:{ordinalNumber:(0,u.Z)({matchPattern:/^(\d+)(ième|ère|ème|er|e)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,c.Z)({matchPatterns:{narrow:/^(av\.J\.C|ap\.J\.C|ap\.J\.-C)/i,abbreviated:/^(av\.J\.-C|av\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i,wide:/^(avant Jésus-Christ|après Jésus-Christ)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^av/i,/^ap/i]},defaultParseWidth:"any"}),quarter:(0,c.Z)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^t[1234]/i,wide:/^[1234](er|ème|e)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,c.Z)({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(janv|févr|mars|avr|mai|juin|juill|juil|août|sept|oct|nov|déc)\.?/i,wide:/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^av/i,/^ma/i,/^juin/i,/^juil/i,/^ao/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,c.Z)({matchPatterns:{narrow:/^[lmjvsd]/i,short:/^(di|lu|ma|me|je|ve|sa)/i,abbreviated:/^(dim|lun|mar|mer|jeu|ven|sam)\.?/i,wide:/^(dimanche|lundi|mardi|mercredi|jeudi|vendredi|samedi)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^di/i,/^lu/i,/^ma/i,/^me/i,/^je/i,/^ve/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:(0,c.Z)({matchPatterns:{narrow:/^(a|p|minuit|midi|mat\.?|ap\.?m\.?|soir|nuit)/i,any:/^([ap]\.?\s?m\.?|du matin|de l'après[-\s]midi|du soir|de la nuit)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^min/i,noon:/^mid/i,morning:/mat/i,afternoon:/ap/i,evening:/soir/i,night:/nuit/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}}},48053:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r={lessThanXSeconds:{one:"1秒未満",other:"{{count}}秒未満",oneWithSuffix:"約1秒",otherWithSuffix:"約{{count}}秒"},xSeconds:{one:"1秒",other:"{{count}}秒"},halfAMinute:"30秒",lessThanXMinutes:{one:"1分未満",other:"{{count}}分未満",oneWithSuffix:"約1分",otherWithSuffix:"約{{count}}分"},xMinutes:{one:"1分",other:"{{count}}分"},aboutXHours:{one:"約1時間",other:"約{{count}}時間"},xHours:{one:"1時間",other:"{{count}}時間"},xDays:{one:"1日",other:"{{count}}日"},aboutXWeeks:{one:"約1週間",other:"約{{count}}週間"},xWeeks:{one:"1週間",other:"{{count}}週間"},aboutXMonths:{one:"約1か月",other:"約{{count}}か月"},xMonths:{one:"1か月",other:"{{count}}か月"},aboutXYears:{one:"約1年",other:"約{{count}}年"},xYears:{one:"1年",other:"{{count}}年"},overXYears:{one:"1年以上",other:"{{count}}年以上"},almostXYears:{one:"1年近く",other:"{{count}}年近く"}},i=n(95569),o={date:(0,i.Z)({formats:{full:"y年M月d日EEEE",long:"y年M月d日",medium:"y/MM/dd",short:"y/MM/dd"},defaultWidth:"full"}),time:(0,i.Z)({formats:{full:"H時mm分ss秒 zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:(0,i.Z)({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},a={lastWeek:"先週のeeeeのp",yesterday:"昨日のp",today:"今日のp",tomorrow:"明日のp",nextWeek:"翌週のeeeeのp",other:"P"},s=n(75100),l={ordinalNumber:function(e,t){var n=Number(e),r=String((t||{}).unit);return"date"===r?n+"日":"year"===r?n+"年":n},era:(0,s.Z)({values:{narrow:["BC","AC"],abbreviated:["紀元前","西暦"],wide:["紀元前","西暦"]},defaultWidth:"wide"}),quarter:(0,s.Z)({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["第1四半期","第2四半期","第3四半期","第4四半期"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:(0,s.Z)({values:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"]},defaultWidth:"wide"}),day:(0,s.Z)({values:{narrow:["日","月","火","水","木","金","土"],short:["日","月","火","水","木","金","土"],abbreviated:["日","月","火","水","木","金","土"],wide:["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"]},defaultWidth:"wide"}),dayPeriod:(0,s.Z)({values:{narrow:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},abbreviated:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},wide:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"}},defaultWidth:"wide",formattingValues:{narrow:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},abbreviated:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},wide:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"}},defaultFormattingWidth:"wide"})},u=n(13701),c=n(87204),d={code:"ja",formatDistance:function(e,t,n){var i;return(n=n||{},i="string"==typeof r[e]?r[e]:1===t?n.addSuffix&&r[e].oneWithSuffix?r[e].oneWithSuffix:r[e].one:n.addSuffix&&r[e].otherWithSuffix?r[e].otherWithSuffix.replace("{{count}}",t):r[e].other.replace("{{count}}",t),n.addSuffix)?n.comparison>0?i+"後":i+"前":i},formatLong:o,formatRelative:function(e,t,n,r){return a[e]},localize:l,match:{ordinalNumber:(0,u.Z)({matchPattern:/^第?\d+(日)?(年)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,c.Z)({matchPatterns:{narrow:/^(B\.?C\.?|A\.?D\.?)/i,abbreviated:/^(紀元[前後]|西暦)/i,wide:/^(紀元[前後]|西暦)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^B/i,/^A/i],any:[/^(紀元前)/i,/^(西暦|紀元後)/i]},defaultParseWidth:"any"}),quarter:(0,c.Z)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^Q[1234]/i,wide:/^第[1234一二三四1234]四半期/i},defaultMatchWidth:"wide",parsePatterns:{any:[/(1|一|1)/i,/(2|二|2)/i,/(3|三|3)/i,/(4|四|4)/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,c.Z)({matchPatterns:{narrow:/^([123456789]|1[012])/,abbreviated:/^([123456789]|1[012])月/i,wide:/^([123456789]|1[012])月/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^1\D/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},defaultParseWidth:"any"}),day:(0,c.Z)({matchPatterns:{narrow:/^[日月火水木金土]/,short:/^[日月火水木金土]/,abbreviated:/^[日月火水木金土]/,wide:/^[日月火水木金土]曜日/},defaultMatchWidth:"wide",parsePatterns:{any:[/^日/,/^月/,/^火/,/^水/,/^木/,/^金/,/^土/]},defaultParseWidth:"any"}),dayPeriod:(0,c.Z)({matchPatterns:{any:/^(AM|PM|午前|午後|正午|深夜|真夜中|夜|朝)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^(A|午前)/i,pm:/^(P|午後)/i,midnight:/^深夜|真夜中/i,noon:/^正午/i,morning:/^朝/i,afternoon:/^午後/i,evening:/^夜/i,night:/^深夜/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}}},75528:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r={lessThanXSeconds:{one:"1초 미만",other:"{{count}}초 미만"},xSeconds:{one:"1초",other:"{{count}}초"},halfAMinute:"30초",lessThanXMinutes:{one:"1분 미만",other:"{{count}}분 미만"},xMinutes:{one:"1분",other:"{{count}}분"},aboutXHours:{one:"약 1시간",other:"약 {{count}}시간"},xHours:{one:"1시간",other:"{{count}}시간"},xDays:{one:"1일",other:"{{count}}일"},aboutXWeeks:{one:"약 1주",other:"약 {{count}}주"},xWeeks:{one:"1주",other:"{{count}}주"},aboutXMonths:{one:"약 1개월",other:"약 {{count}}개월"},xMonths:{one:"1개월",other:"{{count}}개월"},aboutXYears:{one:"약 1년",other:"약 {{count}}년"},xYears:{one:"1년",other:"{{count}}년"},overXYears:{one:"1년 이상",other:"{{count}}년 이상"},almostXYears:{one:"거의 1년",other:"거의 {{count}}년"}},i=n(95569),o={date:(0,i.Z)({formats:{full:"y년 M월 d일 EEEE",long:"y년 M월 d일",medium:"y.MM.dd",short:"y.MM.dd"},defaultWidth:"full"}),time:(0,i.Z)({formats:{full:"a H시 mm분 ss초 zzzz",long:"a H:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,i.Z)({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},a={lastWeek:"'지난' eeee p",yesterday:"'어제' p",today:"'오늘' p",tomorrow:"'내일' p",nextWeek:"'다음' eeee p",other:"P"},s=n(75100),l={ordinalNumber:function(e,t){var n=Number(e);switch(String((t||{}).unit)){case"minute":case"second":return n;case"date":return n+"일";default:return n+"번째"}},era:(0,s.Z)({values:{narrow:["BC","AD"],abbreviated:["BC","AD"],wide:["기원전","서기"]},defaultWidth:"wide"}),quarter:(0,s.Z)({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1분기","2분기","3분기","4분기"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:(0,s.Z)({values:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],wide:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"]},defaultWidth:"wide"}),day:(0,s.Z)({values:{narrow:["일","월","화","수","목","금","토"],short:["일","월","화","수","목","금","토"],abbreviated:["일","월","화","수","목","금","토"],wide:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"]},defaultWidth:"wide"}),dayPeriod:(0,s.Z)({values:{narrow:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},abbreviated:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},wide:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"}},defaultWidth:"wide",formattingValues:{narrow:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},abbreviated:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},wide:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"}},defaultFormattingWidth:"wide"})},u=n(13701),c=n(87204),d={code:"ko",formatDistance:function(e,t,n){var i;return(n=n||{},i="string"==typeof r[e]?r[e]:1===t?r[e].one:r[e].other.replace("{{count}}",t),n.addSuffix)?n.comparison>0?i+" 후":i+" 전":i},formatLong:o,formatRelative:function(e,t,n,r){return a[e]},localize:l,match:{ordinalNumber:(0,u.Z)({matchPattern:/^(\d+)(일|번째)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,c.Z)({matchPatterns:{narrow:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(기원전|서기)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^(bc|기원전)/i,/^(ad|서기)/i]},defaultParseWidth:"any"}),quarter:(0,c.Z)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]사?분기/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,c.Z)({matchPatterns:{narrow:/^(1[012]|[123456789])/,abbreviated:/^(1[012]|[123456789])월/i,wide:/^(1[012]|[123456789])월/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^1월?$/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},defaultParseWidth:"any"}),day:(0,c.Z)({matchPatterns:{narrow:/^[일월화수목금토]/,short:/^[일월화수목금토]/,abbreviated:/^[일월화수목금토]/,wide:/^[일월화수목금토]요일/},defaultMatchWidth:"wide",parsePatterns:{any:[/^일/,/^월/,/^화/,/^수/,/^목/,/^금/,/^토/]},defaultParseWidth:"any"}),dayPeriod:(0,c.Z)({matchPatterns:{any:/^(am|pm|오전|오후|자정|정오|아침|저녁|밤)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^(am|오전)/i,pm:/^(pm|오후)/i,midnight:/^자정/i,noon:/^정오/i,morning:/^아침/i,afternoon:/^오후/i,evening:/^저녁/i,night:/^밤/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}}},21346:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r={lessThanXSeconds:{one:"menos de um segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"meio minuto",lessThanXMinutes:{one:"menos de um minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"cerca de 1 hora",other:"cerca de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dia",other:"{{count}} dias"},aboutXWeeks:{one:"cerca de 1 semana",other:"cerca de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"cerca de 1 m\xeas",other:"cerca de {{count}} meses"},xMonths:{one:"1 m\xeas",other:"{{count}} meses"},aboutXYears:{one:"cerca de 1 ano",other:"cerca de {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"mais de 1 ano",other:"mais de {{count}} anos"},almostXYears:{one:"quase 1 ano",other:"quase {{count}} anos"}},i=n(95569),o={date:(0,i.Z)({formats:{full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:(0,i.Z)({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,i.Z)({formats:{full:"{{date}} '\xe0s' {{time}}",long:"{{date}} '\xe0s' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},a={lastWeek:function(e,t,n){var r=e.getUTCDay();return"'"+(0===r||6===r?"\xfaltimo":"\xfaltima")+"' eeee '\xe0s' p"},yesterday:"'ontem \xe0s' p",today:"'hoje \xe0s' p",tomorrow:"'amanh\xe3 \xe0s' p",nextWeek:"eeee '\xe0s' p",other:"P"},s=n(75100),l={ordinalNumber:function(e,t){var n=Number(e),r=String((t||{}).unit);return"week"===r||"isoWeek"===r?n+"\xaa":n+"\xba"},era:(0,s.Z)({values:{narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","depois de cristo"]},defaultWidth:"wide"}),quarter:(0,s.Z)({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1\xba trimestre","2\xba trimestre","3\xba trimestre","4\xba trimestre"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:(0,s.Z)({values:{narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],wide:["janeiro","fevereiro","mar\xe7o","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},defaultWidth:"wide"}),day:(0,s.Z)({values:{narrow:["D","S","T","Q","Q","S","S"],short:["dom","seg","ter","qua","qui","sex","sab"],abbreviated:["domingo","segunda","ter\xe7a","quarta","quinta","sexta","s\xe1bado"],wide:["domingo","segunda-feira","ter\xe7a-feira","quarta-feira","quinta-feira","sexta-feira","s\xe1bado"]},defaultWidth:"wide"}),dayPeriod:(0,s.Z)({values:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"manh\xe3",afternoon:"tarde",evening:"tarde",night:"noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manh\xe3",afternoon:"tarde",evening:"tarde",night:"noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"manh\xe3",afternoon:"tarde",evening:"tarde",night:"noite"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"da manh\xe3",afternoon:"da tarde",evening:"da tarde",night:"da noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manh\xe3",afternoon:"da tarde",evening:"da tarde",night:"da noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"da manh\xe3",afternoon:"da tarde",evening:"da tarde",night:"da noite"}},defaultFormattingWidth:"wide"})},u=n(87204),c={code:"pt-BR",formatDistance:function(e,t,n){var i;return(n=n||{},i="string"==typeof r[e]?r[e]:1===t?r[e].one:r[e].other.replace("{{count}}",t),n.addSuffix)?n.comparison>0?"em "+i:"h\xe1 "+i:i},formatLong:o,formatRelative:function(e,t,n,r){var i=a[e];return"function"==typeof i?i(t,n,r):i},localize:l,match:{ordinalNumber:(0,n(13701).Z)({matchPattern:/^(\d+)[ºªo]?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,u.Z)({matchPatterns:{narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|d\.?\s?c\.?)/i,wide:/^(antes de cristo|depois de cristo)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^ac/i,/^dc/i],wide:[/^antes de cristo/i,/^depois de cristo/i]},defaultParseWidth:"any"}),quarter:(0,u.Z)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,u.Z)({matchPatterns:{narrow:/^[jfmajsond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^fev/i,/^mar/i,/^abr/i,/^mai/i,/^jun/i,/^jul/i,/^ago/i,/^set/i,/^out/i,/^nov/i,/^dez/i]},defaultParseWidth:"any"}),day:(0,u.Z)({matchPatterns:{narrow:/^(dom|[23456]ª?|s[aá]b)/i,short:/^(dom|[23456]ª?|s[aá]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[aá]b)/i,wide:/^(domingo|(segunda|ter[cç]a|quarta|quinta|sexta)([- ]feira)?|s[aá]bado)/i},defaultMatchWidth:"wide",parsePatterns:{short:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],narrow:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[aá]b/i]},defaultParseWidth:"any"}),dayPeriod:(0,u.Z)({matchPatterns:{narrow:/^(a|p|mn|md|(da) (manhã|tarde|noite))/i,any:/^([ap]\.?\s?m\.?|meia[-\s]noite|meio[-\s]dia|(da) (manhã|tarde|noite))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mn|^meia[-\s]noite/i,noon:/^md|^meio[-\s]dia/i,morning:/manhã/i,afternoon:/tarde/i,evening:/tarde/i,night:/noite/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}}},1363:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r={lessThanXSeconds:{one:"不到 1 秒",other:"不到 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分钟",lessThanXMinutes:{one:"不到 1 分钟",other:"不到 {{count}} 分钟"},xMinutes:{one:"1 分钟",other:"{{count}} 分钟"},xHours:{one:"1 小时",other:"{{count}} 小时"},aboutXHours:{one:"大约 1 小时",other:"大约 {{count}} 小时"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大约 1 个星期",other:"大约 {{count}} 个星期"},xWeeks:{one:"1 个星期",other:"{{count}} 个星期"},aboutXMonths:{one:"大约 1 个月",other:"大约 {{count}} 个月"},xMonths:{one:"1 个月",other:"{{count}} 个月"},aboutXYears:{one:"大约 1 年",other:"大约 {{count}} 年"},xYears:{one:"1 年",other:"{{count}} 年"},overXYears:{one:"超过 1 年",other:"超过 {{count}} 年"},almostXYears:{one:"将近 1 年",other:"将近 {{count}} 年"}},i=n(95569),o={date:(0,i.Z)({formats:{full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},defaultWidth:"full"}),time:(0,i.Z)({formats:{full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},defaultWidth:"full"}),dateTime:(0,i.Z)({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},a=n(52329),s=n(19785);function l(e,t,n,r){return!function(e,t,n){(0,s.Z)(2,arguments);var r=(0,a.Z)(e,n),i=(0,a.Z)(t,n);return r.getTime()===i.getTime()}(e,t,n)?e.getTime()>t.getTime()?"'下个'"+r:"'上个'"+r:r}var u={lastWeek:l,yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:l,other:"PP p"},c=n(75100),d={ordinalNumber:function(e,t){var n=Number(e);switch(String((t||{}).unit)){case"date":return n.toString()+"日";case"hour":return n.toString()+"时";case"minute":return n.toString()+"分";case"second":return n.toString()+"秒";default:return"第 "+n.toString()}},era:(0,c.Z)({values:{narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},defaultWidth:"wide"}),quarter:(0,c.Z)({values:{narrow:["1","2","3","4"],abbreviated:["第一刻","第二刻","第三刻","第四刻"],wide:["第一刻钟","第二刻钟","第三刻钟","第四刻钟"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:(0,c.Z)({values:{narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},defaultWidth:"wide"}),day:(0,c.Z)({values:{narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["周日","周一","周二","周三","周四","周五","周六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},defaultWidth:"wide"}),dayPeriod:(0,c.Z)({values:{narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},defaultWidth:"wide",formattingValues:{narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},defaultFormattingWidth:"wide"})},h=n(13701),p=n(87204),f={code:"zh-CN",formatDistance:function(e,t,n){var i;return(n=n||{},i="string"==typeof r[e]?r[e]:1===t?r[e].one:r[e].other.replace("{{count}}",t),n.addSuffix)?n.comparison>0?i+"内":i+"前":i},formatLong:o,formatRelative:function(e,t,n,r){var i=u[e];return"function"==typeof i?i(t,n,r,"eeee p"):i},localize:d,match:{ordinalNumber:(0,h.Z)({matchPattern:/^(第\s*)?\d+(日|时|分|秒)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,p.Z)({matchPatterns:{narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^(前)/i,/^(公元)/i]},defaultParseWidth:"any"}),quarter:(0,p.Z)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},defaultMatchWidth:"wide",parsePatterns:{any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,p.Z)({matchPatterns:{narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},defaultParseWidth:"any"}),day:(0,p.Z)({matchPatterns:{narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},defaultParseWidth:"any"}),dayPeriod:(0,p.Z)({matchPatterns:{any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}}},49738:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r={lessThanXSeconds:{one:"少於 1 秒",other:"少於 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分鐘",lessThanXMinutes:{one:"少於 1 分鐘",other:"少於 {{count}} 分鐘"},xMinutes:{one:"1 分鐘",other:"{{count}} 分鐘"},xHours:{one:"1 小時",other:"{{count}} 小時"},aboutXHours:{one:"大約 1 小時",other:"大約 {{count}} 小時"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大約 1 個星期",other:"大約 {{count}} 個星期"},xWeeks:{one:"1 個星期",other:"{{count}} 個星期"},aboutXMonths:{one:"大約 1 個月",other:"大約 {{count}} 個月"},xMonths:{one:"1 個月",other:"{{count}} 個月"},aboutXYears:{one:"大約 1 年",other:"大約 {{count}} 年"},xYears:{one:"1 年",other:"{{count}} 年"},overXYears:{one:"超過 1 年",other:"超過 {{count}} 年"},almostXYears:{one:"將近 1 年",other:"將近 {{count}} 年"}},i=n(95569),o={date:(0,i.Z)({formats:{full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},defaultWidth:"full"}),time:(0,i.Z)({formats:{full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},defaultWidth:"full"}),dateTime:(0,i.Z)({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},a={lastWeek:"'上個'eeee p",yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:"'下個'eeee p",other:"P"},s=n(75100),l={ordinalNumber:function(e,t){var n=Number(e);switch(String((t||{}).unit)){case"date":return n.toString()+"日";case"hour":return n.toString()+"時";case"minute":return n.toString()+"分";case"second":return n.toString()+"秒";default:return"第 "+n.toString()}},era:(0,s.Z)({values:{narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},defaultWidth:"wide"}),quarter:(0,s.Z)({values:{narrow:["1","2","3","4"],abbreviated:["第一刻","第二刻","第三刻","第四刻"],wide:["第一刻鐘","第二刻鐘","第三刻鐘","第四刻鐘"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:(0,s.Z)({values:{narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},defaultWidth:"wide"}),day:(0,s.Z)({values:{narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["週日","週一","週二","週三","週四","週五","週六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},defaultWidth:"wide"}),dayPeriod:(0,s.Z)({values:{narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜間"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜間"}},defaultWidth:"wide",formattingValues:{narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜間"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜間"}},defaultFormattingWidth:"wide"})},u=n(13701),c=n(87204),d={code:"zh-TW",formatDistance:function(e,t,n){var i;return(n=n||{},i="string"==typeof r[e]?r[e]:1===t?r[e].one:r[e].other.replace("{{count}}",t),n.addSuffix)?n.comparison>0?i+"內":i+"前":i},formatLong:o,formatRelative:function(e,t,n,r){return a[e]},localize:l,match:{ordinalNumber:(0,u.Z)({matchPattern:/^(第\s*)?\d+(日|時|分|秒)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,c.Z)({matchPatterns:{narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^(前)/i,/^(公元)/i]},defaultParseWidth:"any"}),quarter:(0,c.Z)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻鐘/i},defaultMatchWidth:"wide",parsePatterns:{any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,c.Z)({matchPatterns:{narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},defaultParseWidth:"any"}),day:(0,c.Z)({matchPatterns:{narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^週[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},defaultParseWidth:"any"}),dayPeriod:(0,c.Z)({matchPatterns:{any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}}},31807:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(42765),i=n(19785),o={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},a=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,s=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,l=/^([+-])(\d{2})(?::?(\d{2}))?$/;function u(e,t){(0,i.Z)(1,arguments);var n,u,f=t||{},m=null==f.additionalDigits?2:(0,r.Z)(f.additionalDigits);if(2!==m&&1!==m&&0!==m)throw RangeError("additionalDigits must be 0, 1 or 2");if(!("string"==typeof e||"[object String]"===Object.prototype.toString.call(e)))return new Date(NaN);var g=function(e){var t,n={},r=e.split(o.dateTimeDelimiter);if(r.length>2)return n;if(/:/.test(r[0])?(n.date=null,t=r[0]):(n.date=r[0],t=r[1],o.timeZoneDelimiter.test(n.date)&&(n.date=e.split(o.timeZoneDelimiter)[0],t=e.substr(n.date.length,e.length))),t){var i=o.timezone.exec(t);i?(n.time=t.replace(i[1],""),n.timezone=i[1]):n.time=t}return n}(e);if(g.date){var v=function(e,t){var n=RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:null};var i=r[1]&&parseInt(r[1]),o=r[2]&&parseInt(r[2]);return{year:null==o?i:100*o,restDateString:e.slice((r[1]||r[2]).length)}}(g.date,m);n=function(e,t){if(null===t)return null;var n,r,i=e.match(a);if(!i)return null;var o=!!i[4],s=c(i[1]),l=c(i[2])-1,u=c(i[3]),d=c(i[4]),f=c(i[5])-1;if(o)return d>=1&&d<=53&&f>=0&&f<=6?((n=new Date(0)).setUTCFullYear(t,0,4),r=n.getUTCDay()||7,n.setUTCDate(n.getUTCDate()+((d-1)*7+f+1-r)),n):new Date(NaN);var m=new Date(0);return l>=0&&l<=11&&u>=1&&u<=(h[l]||(p(t)?29:28))&&s>=1&&s<=(p(t)?366:365)?(m.setUTCFullYear(t,l,Math.max(s,u)),m):new Date(NaN)}(v.restDateString,v.year)}if(isNaN(n)||!n)return new Date(NaN);var y=n.getTime(),b=0;if(g.time&&(isNaN(b=function(e){var t=e.match(s);if(!t)return null;var n=d(t[1]),r=d(t[2]),i=d(t[3]);return(24===n?0===r&&0===i:i>=0&&i<60&&r>=0&&r<60&&n>=0&&n<25)?36e5*n+6e4*r+1e3*i:NaN}(g.time))||null===b))return new Date(NaN);if(g.timezone){if(isNaN(u=function(e){if("Z"===e)return 0;var t=e.match(l);if(!t)return 0;var n="+"===t[1]?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return i>=0&&i<=59?n*(36e5*r+6e4*i):NaN}(g.timezone)))return new Date(NaN)}else{var k=new Date(y+b),w=new Date(0);return w.setFullYear(k.getUTCFullYear(),k.getUTCMonth(),k.getUTCDate()),w.setHours(k.getUTCHours(),k.getUTCMinutes(),k.getUTCSeconds(),k.getUTCMilliseconds()),w}return new Date(y+b+u)}function c(e){return e?parseInt(e):1}function d(e){return e&&parseFloat(e.replace(",","."))||0}var h=[31,null,31,30,31,30,31,31,30,31,30,31];function p(e){return e%400==0||e%4==0&&e%100}},10405:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(66700),i=n(19785);function o(e){(0,i.Z)(1,arguments);var t=(0,r.Z)(e);return t.setHours(0,0,0,0),t}},47699:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(42765),i=n(66700),o=n(19785);function a(e,t){return(0,o.Z)(2,arguments),function(e,t){(0,o.Z)(2,arguments);var n=(0,i.Z)(e),a=(0,r.Z)(t);return isNaN(a)?new Date(NaN):(a&&n.setDate(n.getDate()+a),n)}(e,-(0,r.Z)(t))}},89248:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(42765),i=n(66700),o=n(19785);function a(e,t){return(0,o.Z)(2,arguments),function(e,t){(0,o.Z)(2,arguments);var n=(0,i.Z)(e).getTime(),a=(0,r.Z)(t);return new Date(n+a)}(e,-(0,r.Z)(t))}},66700:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(19785);function i(e){(0,r.Z)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):(("string"==typeof e||"[object String]"===t)&&"undefined"!=typeof console&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn(Error().stack)),new Date(NaN))}},35368:function(e){/*! @license DOMPurify 3.0.0 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.0/LICENSE */e.exports=function(){"use strict";function e(t){return(e="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})(t)}function t(e,n){return(t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,n)}function n(e,r,i){return(n=!function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}()?function(e,n,r){var i=[null];i.push.apply(i,n);var o=new(Function.bind.apply(e,i));return r&&t(o,r.prototype),o}:Reflect.construct).apply(null,arguments)}function r(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||i(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n1?n-1:0),i=1;i=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){l=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw a}}}}(s(e));try{for(r.s();!(t=r.n()).done;){var o,a=(o=t.value,function(e){if(Array.isArray(e))return e}(o)||function(e,t){var n,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],a=!0,s=!1;try{for(i=i.call(e);!(a=(n=i.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,r=e}finally{try{a||null==i.return||i.return()}finally{if(s)throw r}}return o}}(o,2)||i(o,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),l=a[0],u=a[1];n[l]=u}}catch(e){r.e(e)}finally{r.f()}return n}function P(e,t){for(;null!==e;){var n=d(e,t);if(n){if(n.get)return O(n.get);if("function"==typeof n.value)return O(n.value)}e=c(e)}return function(e){return console.warn("fallback value for",e),null}}var R=h(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),M=h(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),F=h(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),N=h(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),I=h(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),L=h(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),B=h(["#text"]),z=h(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),U=h(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),q=h(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),$=h(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),H=p(/\{\{[\w\W]*|[\w\W]*\}\}/gm),V=p(/<%[\w\W]*|[\w\W]*%>/gm),W=p(/\${[\w\W]*}/gm),G=p(/^data-[\-\w.\u00B7-\uFFFF]/),Y=p(/^aria-[\-\w]+$/),Z=p(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),K=p(/^(?:\w+script|data):/i),J=p(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),X=p(/^html$/i),Q=function(t,n){if("object"!==e(t)||"function"!=typeof t.createPolicy)return null;var r=null,i="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttribute(i)&&(r=n.currentScript.getAttribute(i));var o="dompurify"+(r?"#"+r:"");try{return t.createPolicy(o,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}};return function t(){var n,i,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window,a=function(e){return t(e)};if(a.version="3.0.0",a.removed=[],!o||!o.document||9!==o.document.nodeType)return a.isSupported=!1,a;var l=o.document,u=o.document,c=o.DocumentFragment,d=o.HTMLTemplateElement,p=o.Node,f=o.Element,m=o.NodeFilter,g=o.NamedNodeMap,v=void 0===g?o.NamedNodeMap||o.MozNamedAttrMap:g,O=o.HTMLFormElement,ee=o.DOMParser,et=o.trustedTypes,en=f.prototype,er=P(en,"cloneNode"),ei=P(en,"nextSibling"),eo=P(en,"childNodes"),ea=P(en,"parentNode");if("function"==typeof d){var es=u.createElement("template");es.content&&es.content.ownerDocument&&(u=es.content.ownerDocument)}var el=Q(et,l),eu=el?el.createHTML(""):"",ec=u,ed=ec.implementation,eh=ec.createNodeIterator,ep=ec.createDocumentFragment,ef=ec.getElementsByTagName,em=l.importNode,eg={};a.isSupported="function"==typeof s&&"function"==typeof ea&&ed&&void 0!==ed.createHTMLDocument;var ev=Z,ey=null,eb=T({},[].concat(r(R),r(M),r(F),r(I),r(B))),ek=null,ew=T({},[].concat(r(z),r(U),r(q),r($))),ex=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),e_=null,eS=null,eE=!0,eD=!0,eC=!1,ej=!0,eO=!1,eT=!1,eA=!1,eP=!1,eR=!1,eM=!1,eF=!1,eN=!0,eI=!1,eL=!0,eB=!1,ez={},eU=null,eq=T({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),e$=null,eH=T({},["audio","video","img","source","image","track"]),eV=null,eW=T({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),eG="http://www.w3.org/1998/Math/MathML",eY="http://www.w3.org/2000/svg",eZ="http://www.w3.org/1999/xhtml",eK=eZ,eJ=!1,eX=null,eQ=T({},[eG,eY,eZ],x),e0=["application/xhtml+xml","text/html"],e1=null,e2=u.createElement("form"),e3=function(e){return e instanceof RegExp||e instanceof Function},e5=function(t){e1&&e1===t||(t&&"object"===e(t)||(t={}),t=A(t),i="application/xhtml+xml"===(n=n=-1===e0.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE)?x:w,ey="ALLOWED_TAGS"in t?T({},t.ALLOWED_TAGS,i):eb,ek="ALLOWED_ATTR"in t?T({},t.ALLOWED_ATTR,i):ew,eX="ALLOWED_NAMESPACES"in t?T({},t.ALLOWED_NAMESPACES,x):eQ,eV="ADD_URI_SAFE_ATTR"in t?T(A(eW),t.ADD_URI_SAFE_ATTR,i):eW,e$="ADD_DATA_URI_TAGS"in t?T(A(eH),t.ADD_DATA_URI_TAGS,i):eH,eU="FORBID_CONTENTS"in t?T({},t.FORBID_CONTENTS,i):eq,e_="FORBID_TAGS"in t?T({},t.FORBID_TAGS,i):{},eS="FORBID_ATTR"in t?T({},t.FORBID_ATTR,i):{},ez="USE_PROFILES"in t&&t.USE_PROFILES,eE=!1!==t.ALLOW_ARIA_ATTR,eD=!1!==t.ALLOW_DATA_ATTR,eC=t.ALLOW_UNKNOWN_PROTOCOLS||!1,ej=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,eO=t.SAFE_FOR_TEMPLATES||!1,eT=t.WHOLE_DOCUMENT||!1,eR=t.RETURN_DOM||!1,eM=t.RETURN_DOM_FRAGMENT||!1,eF=t.RETURN_TRUSTED_TYPE||!1,eP=t.FORCE_BODY||!1,eN=!1!==t.SANITIZE_DOM,eI=t.SANITIZE_NAMED_PROPS||!1,eL=!1!==t.KEEP_CONTENT,eB=t.IN_PLACE||!1,ev=t.ALLOWED_URI_REGEXP||ev,eK=t.NAMESPACE||eZ,t.CUSTOM_ELEMENT_HANDLING&&e3(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ex.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&e3(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ex.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(ex.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),eO&&(eD=!1),eM&&(eR=!0),ez&&(ey=T({},r(B)),ek=[],!0===ez.html&&(T(ey,R),T(ek,z)),!0===ez.svg&&(T(ey,M),T(ek,U),T(ek,$)),!0===ez.svgFilters&&(T(ey,F),T(ek,U),T(ek,$)),!0===ez.mathMl&&(T(ey,I),T(ek,q),T(ek,$))),t.ADD_TAGS&&(ey===eb&&(ey=A(ey)),T(ey,t.ADD_TAGS,i)),t.ADD_ATTR&&(ek===ew&&(ek=A(ek)),T(ek,t.ADD_ATTR,i)),t.ADD_URI_SAFE_ATTR&&T(eV,t.ADD_URI_SAFE_ATTR,i),t.FORBID_CONTENTS&&(eU===eq&&(eU=A(eU)),T(eU,t.FORBID_CONTENTS,i)),eL&&(ey["#text"]=!0),eT&&T(ey,["html","head","body"]),ey.table&&(T(ey,["tbody"]),delete e_.tbody),h&&h(t),e1=t)},e4=T({},["mi","mo","mn","ms","mtext"]),e6=T({},["foreignobject","desc","title","annotation-xml"]),e8=T({},["title","style","font","a","script"]),e9=T({},M);T(e9,F),T(e9,N);var e7=T({},I);T(e7,L);var te=function(e){var t=ea(e);t&&t.tagName||(t={namespaceURI:eK,tagName:"template"});var r=w(e.tagName),i=w(t.tagName);return!!eX[e.namespaceURI]&&(e.namespaceURI===eY?t.namespaceURI===eZ?"svg"===r:t.namespaceURI===eG?"svg"===r&&("annotation-xml"===i||e4[i]):!!e9[r]:e.namespaceURI===eG?t.namespaceURI===eZ?"math"===r:t.namespaceURI===eY?"math"===r&&e6[i]:!!e7[r]:e.namespaceURI===eZ?(t.namespaceURI!==eY||!!e6[i])&&(t.namespaceURI!==eG||!!e4[i])&&!e7[r]&&(e8[r]||!e9[r]):"application/xhtml+xml"===n&&!!eX[e.namespaceURI])},tt=function(e){k(a.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){e.remove()}},tn=function(e,t){try{k(a.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){k(a.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!ek[e]){if(eR||eM)try{tt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}}},tr=function(e){if(eP)e=""+e;else{var t,r,i=_(e,/^[\r\n\t ]+/);r=i&&i[0]}"application/xhtml+xml"===n&&eK===eZ&&(e=''+e+"");var o=el?el.createHTML(e):e;if(eK===eZ)try{t=new ee().parseFromString(o,n)}catch(e){}if(!t||!t.documentElement){t=ed.createDocument(eK,"template",null);try{t.documentElement.innerHTML=eJ?eu:o}catch(e){}}var a=t.body||t.documentElement;return(e&&r&&a.insertBefore(u.createTextNode(r),a.childNodes[0]||null),eK===eZ)?ef.call(t,eT?"html":"body")[0]:eT?t.documentElement:a},ti=function(e){return eh.call(e.ownerDocument||e,e,m.SHOW_ELEMENT|m.SHOW_COMMENT|m.SHOW_TEXT,null,!1)},to=function(t){return"object"===e(p)?t instanceof p:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},ta=function(e,t,n){eg[e]&&y(eg[e],function(e){e.call(a,t,n,e1)})},ts=function(e){if(ta("beforeSanitizeElements",e,null),e instanceof O&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof v)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes))return tt(e),!0;var t,n=i(e.nodeName);if(ta("uponSanitizeElement",e,{tagName:n,allowedTags:ey}),e.hasChildNodes()&&!to(e.firstElementChild)&&(!to(e.content)||!to(e.content.firstElementChild))&&C(/<[/\w]/g,e.innerHTML)&&C(/<[/\w]/g,e.textContent))return tt(e),!0;if(!ey[n]||e_[n]){if(!e_[n]&&tu(n)&&(ex.tagNameCheck instanceof RegExp&&C(ex.tagNameCheck,n)||ex.tagNameCheck instanceof Function&&ex.tagNameCheck(n)))return!1;if(eL&&!eU[n]){var r=ea(e)||e.parentNode,o=eo(e)||e.childNodes;if(o&&r)for(var s=o.length,l=s-1;l>=0;--l)r.insertBefore(er(o[l],!0),ei(e))}return tt(e),!0}return e instanceof f&&!te(e)||("noscript"===n||"noembed"===n)&&C(/<\/no(script|embed)/i,e.innerHTML)?(tt(e),!0):(eO&&3===e.nodeType&&(t=S(t=e.textContent,H," "),t=S(t,V," "),t=S(t,W," "),e.textContent!==t&&(k(a.removed,{element:e.cloneNode()}),e.textContent=t)),ta("afterSanitizeElements",e,null),!1)},tl=function(e,t,n){if(eN&&("id"===t||"name"===t)&&(n in u||n in e2))return!1;if(eD&&!eS[t]&&C(G,t));else if(eE&&C(Y,t));else if(!ek[t]||eS[t]){if(!(tu(e)&&(ex.tagNameCheck instanceof RegExp&&C(ex.tagNameCheck,e)||ex.tagNameCheck instanceof Function&&ex.tagNameCheck(e))&&(ex.attributeNameCheck instanceof RegExp&&C(ex.attributeNameCheck,t)||ex.attributeNameCheck instanceof Function&&ex.attributeNameCheck(t))||"is"===t&&ex.allowCustomizedBuiltInElements&&(ex.tagNameCheck instanceof RegExp&&C(ex.tagNameCheck,n)||ex.tagNameCheck instanceof Function&&ex.tagNameCheck(n))))return!1}else if(eV[t]);else if(C(ev,S(n,J,"")));else if(("src"===t||"xlink:href"===t||"href"===t)&&"script"!==e&&0===E(n,"data:")&&e$[e]);else if(eC&&!C(K,S(n,J,"")));else if(n)return!1;return!0},tu=function(e){return e.indexOf("-")>0},tc=function(t){ta("beforeSanitizeAttributes",t,null);var n,r,o,s,l=t.attributes;if(l){var u={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ek};for(s=l.length;s--;){var c=(n=l[s]).name,d=n.namespaceURI;if(r="value"===c?n.value:D(n.value),o=i(c),u.attrName=o,u.attrValue=r,u.keepAttr=!0,u.forceKeepAttr=void 0,ta("uponSanitizeAttribute",t,u),r=u.attrValue,!u.forceKeepAttr&&(tn(c,t),u.keepAttr)){if(!ej&&C(/\/>/i,r)){tn(c,t);continue}eO&&(r=S(r,H," "),r=S(r,V," "),r=S(r,W," "));var h=i(t.nodeName);if(tl(h,o,r)){if(eI&&("id"===o||"name"===o)&&(tn(c,t),r="user-content-"+r),el&&"object"===e(et)&&"function"==typeof et.getAttributeType){if(d);else switch(et.getAttributeType(h,o)){case"TrustedHTML":r=el.createHTML(r);break;case"TrustedScriptURL":r=el.createScriptURL(r)}}try{d?t.setAttributeNS(d,c,r):t.setAttribute(c,r),b(a.removed)}catch(e){}}}}ta("afterSanitizeAttributes",t,null)}},td=function e(t){var n,r=ti(t);for(ta("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)ta("uponSanitizeShadowNode",n,null),ts(n)||(n.content instanceof c&&e(n.content),tc(n));ta("afterSanitizeShadowDOM",t,null)};return a.sanitize=function(e){var t,n,r,o,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((eJ=!e)&&(e=""),"string"!=typeof e&&!to(e)){if("function"!=typeof e.toString)throw j("toString is not a function");if("string"!=typeof(e=e.toString()))throw j("dirty is not a string, aborting")}if(!a.isSupported)return e;if(eA||e5(s),a.removed=[],"string"==typeof e&&(eB=!1),eB){if(e.nodeName){var u=i(e.nodeName);if(!ey[u]||e_[u])throw j("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof p)1===(n=(t=tr("")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===n.nodeName?t=n:"HTML"===n.nodeName?t=n:t.appendChild(n);else{if(!eR&&!eO&&!eT&&-1===e.indexOf("<"))return el&&eF?el.createHTML(e):e;if(!(t=tr(e)))return eR?null:eF?eu:""}t&&eP&&tt(t.firstChild);for(var d=ti(eB?e:t);r=d.nextNode();)ts(r)||(r.content instanceof c&&td(r.content),tc(r));if(eB)return e;if(eR){if(eM)for(o=ep.call(t.ownerDocument);t.firstChild;)o.appendChild(t.firstChild);else o=t;return(ek.shadowroot||ek.shadowrootmod)&&(o=em.call(l,o,!0)),o}var h=eT?t.outerHTML:t.innerHTML;return eT&&ey["!doctype"]&&t.ownerDocument&&t.ownerDocument.doctype&&t.ownerDocument.doctype.name&&C(X,t.ownerDocument.doctype.name)&&(h="\n"+h),eO&&(h=S(h,H," "),h=S(h,V," "),h=S(h,W," ")),el&&eF?el.createHTML(h):h},a.setConfig=function(e){e5(e),eA=!0},a.clearConfig=function(){e1=null,eA=!1},a.isValidAttribute=function(e,t,n){return e1||e5({}),tl(i(e),i(t),n)},a.addHook=function(e,t){"function"==typeof t&&(eg[e]=eg[e]||[],k(eg[e],t))},a.removeHook=function(e){if(eg[e])return b(eg[e])},a.removeHooks=function(e){eg[e]&&(eg[e]=[])},a.removeAllHooks=function(){eg={}},a}()}()},56230:function(e){e.exports=()=>/(?:[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC3\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDD-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF6](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7C\uDE80-\uDE86\uDE90-\uDEAC\uDEB0-\uDEBA\uDEC0-\uDEC2\uDED0-\uDED9\uDEE0-\uDEE7]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?))/g},22699:function(e){function t(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function n(e){return"function"==typeof e}function r(e){return"object"==typeof e&&null!==e}e.exports=t,t.EventEmitter=t,t.prototype._events=void 0,t.prototype._maxListeners=void 0,t.defaultMaxListeners=10,t.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},t.prototype.emit=function(e){if(this._events||(this._events={}),"error"===e&&(!this._events.error||r(this._events.error)&&!this._events.error.length)){if(t=arguments[1],t instanceof Error)throw t;var t,i,o,a,s,l,u,c=Error('Uncaught, unspecified "error" event. ('+t+")");throw c.context=t,c}if(void 0===(i=this._events[e]))return!1;if(n(i))switch(arguments.length){case 1:i.call(this);break;case 2:i.call(this,arguments[1]);break;case 3:i.call(this,arguments[1],arguments[2]);break;default:a=Array.prototype.slice.call(arguments,1),i.apply(this,a)}else if(r(i))for(s=0,a=Array.prototype.slice.call(arguments,1),o=(l=i.slice()).length;s0&&this._events[e].length>o&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},t.prototype.on=t.prototype.addListener,t.prototype.once=function(e,t){if(!n(t))throw TypeError("listener must be a function");var r=!1;function i(){this.removeListener(e,i),r||(r=!0,t.apply(this,arguments))}return i.listener=t,this.on(e,i),this},t.prototype.removeListener=function(e,t){var i,o,a,s;if(!n(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(a=(i=this._events[e]).length,o=-1,i===t||n(i.listener)&&i.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(r(i)){for(s=a;s-- >0;)if(i[s]===t||i[s].listener&&i[s].listener===t){o=s;break}if(o<0)return this;1===i.length?(i.length=0,delete this._events[e]):i.splice(o,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},t.prototype.removeAllListeners=function(e){var t,r;if(!this._events)return this;if(!this._events.removeListener)return 0==arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0==arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n(r=this._events[e]))this.removeListener(e,r);else if(r)for(;r.length;)this.removeListener(e,r[r.length-1]);return delete this._events[e],this},t.prototype.listeners=function(e){return this._events&&this._events[e]?n(this._events[e])?[this._events[e]]:this._events[e].slice():[]},t.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(n(t))return 1;if(t)return t.length}return 0},t.listenerCount=function(e,t){return e.listenerCount(t)}},85978:function(e,t,n){var r,i,o;o={canUseDOM:i=!!("undefined"!=typeof window&&window.document&&window.document.createElement),canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:i&&!!(window.addEventListener||window.attachEvent),canUseViewport:i&&!!window.screen},void 0!==(r=(function(){return o}).call(t,n,t,e))&&(e.exports=r)},69378:function(e){"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(i=r;0!=i--;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(o=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(i=r;0!=i--;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;0!=i--;){var r,i,o,a=o[i];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n}},6238:function(e){function t(e,t,n,r){var i=null==r||"number"==typeof r||"boolean"==typeof r?r:n(r),o=t.get(i);return void 0===o&&(o=e.call(this,r),t.set(i,o)),o}function n(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),o=t.get(i);return void 0===o&&(o=e.apply(this,r),t.set(i,o)),o}function r(){return JSON.stringify(arguments)}function i(){this.cache=Object.create(null)}i.prototype.has=function(e){return e in this.cache},i.prototype.get=function(e){return this.cache[e]},i.prototype.set=function(e,t){this.cache[e]=t};var o={create:function(){return new i}};e.exports=function(e,i){var a=i&&i.cache?i.cache:o,s=i&&i.serializer?i.serializer:r;return(i&&i.strategy?i.strategy:function(e,r){var i,o,a=1===e.length?t:n;return i=r.cache.create(),o=r.serializer,a.bind(this,e,i,o)})(e,{cache:a,serializer:s})},e.exports.strategies={variadic:function(e,t){var r,i;return r=t.cache.create(),i=t.serializer,n.bind(this,e,r,i)},monadic:function(e,n){var r,i;return r=n.cache.create(),i=n.serializer,t.bind(this,e,r,i)}}},77847:function(e){e.exports=a,a.default=a,a.stable=u,a.stableStringify=u;var t="[...]",n="[Circular]",r=[],i=[];function o(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function a(e,a,l,u){void 0===u&&(u=o()),function e(r,i,o,a,l,u,c){if(u+=1,"object"==typeof r&&null!==r){for(d=0;dc.depthLimit||void 0!==c.edgesLimit&&o+1>c.edgesLimit){s(t,r,i,l);return}if(a.push(r),Array.isArray(r))for(d=0;dt?1:0}function u(e,a,u,d){void 0===d&&(d=o());var h,p=function e(i,o,a,u,c,d,h){if(d+=1,"object"==typeof i&&null!==i){for(p=0;ph.depthLimit||void 0!==h.edgesLimit&&a+1>h.edgesLimit){s(t,i,o,c);return}if(u.push(i),Array.isArray(i))for(p=0;p0)for(var r=0;ri)throw Error("Congratulations, you created a collection of unique numbers which uses all available integers!");for(;e.has(n);)n=Math.floor(Math.random()*i);return r(e,n)}),n.addUniqueNumber=function(e){var t=a(e);return e.add(t),t},n.generateUniqueNumber=a,Object.defineProperty(n,"__esModule",{value:!0})},22989:function(e,t,n){"use strict";function r(e){for(var t=[],n=1;n=0?i:i+2*Math.PI)/Math.PI*180}function l(e){return e.touches?function(e){for(var t=Math.min(e.length,2),n=[],r=0;r-1,w=y.isContentEditable;if(k||w){if(h||v===y||v&&w&&v.isContentEditable&&v.contains(y))return!1}else if((d||"touchstart"===e.type)&&v){var x=v.tagName;(v.isContentEditable||f.indexOf(x)>-1)&&v.blur()}if(r.clientStores=[new p(l(e))],r.flag=!0,r.isDrag=!1,r._dragFlag=!0,r.datas={},c&&(3===e.which||2===e.button))return r.initDrag(),!1;r.doubleFlag=(0,i.zO)()-r.prevTime<200,!1===r.emit("dragStart",a({datas:r.datas,inputEvent:e,isTrusted:t,isDouble:r.doubleFlag},r.getCurrentStore().getPosition(),{preventDefault:function(){e.preventDefault()},preventDrag:function(){r._dragFlag=!1}}))&&r.initDrag(),r.flag&&d&&e.preventDefault()}if(!r.flag)return!1;var _=0;if(g&&m&&u&&(_=setTimeout(function(){(0,i.vP)(s,"touchstart",r.onDragStart,{passive:!1})})),!g&&m&&u&&(0,i.xC)(s,"touchstart",r.onDragStart),r.flag&&(n=e).touches&&n.touches.length>=2){if(clearTimeout(_),g&&e.touches.length!==e.changedTouches.length)return;r.pinchFlag||r.onPinchStart(e)}}},r.onDrag=function(e,t){if(r.flag){var n=l(e),i=r.moveClients(n,e,!1);if(r._dragFlag){if((r.pinchFlag||i.deltaX||i.deltaY)&&!1===r.emit("drag",a({},i,{isScroll:!!t,inputEvent:e}))){r.stop();return}r.pinchFlag&&r.onPinch(e,n)}r.getCurrentStore().getPosition(n,!0)}},r.onDragEnd=function(e){if(r.flag){var t=r.options,n=t.pinchOutside,o=t.container;r.isTouch&&n&&(0,i.xC)(o,"touchstart",r.onDragStart),r.pinchFlag&&r.onPinchEnd(e);var s=l(e);0!==s.length&&r.options.keepDragging?r._addStore(new p(s)):r.flag=!1;var u=r._getPosition(),c=(0,i.zO)(),d=!r.isDrag&&r.doubleFlag;r.prevTime=r.isDrag||d?0:c,r.flag||(r.emit("dragEnd",a({datas:r.datas,isDouble:d,isDrag:r.isDrag,isClick:!r.isDrag,inputEvent:e},u)),r.clientStores=[])}},r.onBlur=function(){r.onDragEnd()};var o=[].concat(t);r.options=a({checkInput:!1,container:o.length>1?window:o[0],preventRightClick:!0,preventDefault:!0,checkWindowBlur:!1,keepDragging:!1,pinchThreshold:0,events:["touch","mouse"]},n);var s=r.options,u=s.container,c=s.events,d=s.checkWindowBlur;if(r.isTouch=c.indexOf("touch")>-1,r.isMouse=c.indexOf("mouse")>-1,r.targets=o,r.isMouse&&(o.forEach(function(e){(0,i.vP)(e,"mousedown",r.onDragStart)}),(0,i.vP)(u,"mousemove",r.onDrag),(0,i.vP)(u,"mouseup",r.onDragEnd),(0,i.vP)(u,"contextmenu",r.onDragEnd)),d&&(0,i.vP)(window,"blur",r.onBlur),r.isTouch){var h={passive:!1};o.forEach(function(e){(0,i.vP)(e,"touchstart",r.onDragStart,h)}),(0,i.vP)(u,"touchmove",r.onDrag,h),(0,i.vP)(u,"touchend",r.onDragEnd,h),(0,i.vP)(u,"touchcancel",r.onDragEnd,h)}return r}!function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e);var n=t.prototype;return n.stop=function(){this.isDrag=!1,this.flag=!1,this.clientStores=[],this.datas={}},n.getMovement=function(e){return this.getCurrentStore().getMovement(e)+this.clientStores.slice(1).reduce(function(e,t){return e+t.movement},0)},n.isDragging=function(){return this.isDrag},n.isFlag=function(){return this.flag},n.isPinchFlag=function(){return this.pinchFlag},n.isDoubleFlag=function(){return this.doubleFlag},n.isPinching=function(){return this.isPinch},n.scrollBy=function(e,t,n,r){void 0===r&&(r=!0),this.flag&&(this.clientStores[0].move(e,t),r&&this.onDrag(n,!0))},n.move=function(e,t){var n=e[0],r=e[1],i=this.getCurrentStore().prevClients;return this.moveClients(i.map(function(e){var t=e.clientX,i=e.clientY;return{clientX:t+n,clientY:i+r,originalClientX:t,originalClientY:i}}),t,!0)},n.triggerDragStart=function(e){this.onDragStart(e,!1)},n.setEventDatas=function(e){var t=this.datas;for(var n in e)t[n]=e[n];return this},n.getCurrentEvent=function(e){return a({datas:this.datas},this._getPosition(),{movement:this.getMovement(),isDrag:this.isDrag,isPinch:this.isPinch,isScroll:!1,inputEvent:e})},n.getEventDatas=function(){return this.datas},n.unset=function(){var e=this,t=this.targets,n=this.options.container;this.off(),(0,i.xC)(window,"blur",this.onBlur),this.isMouse&&(t.forEach(function(t){(0,i.xC)(t,"mousedown",e.onDragStart)}),(0,i.xC)(n,"mousemove",this.onDrag),(0,i.xC)(n,"mouseup",this.onDragEnd),(0,i.xC)(n,"contextmenu",this.onDragEnd)),this.isTouch&&(t.forEach(function(t){(0,i.xC)(t,"touchstart",e.onDragStart)}),(0,i.xC)(n,"touchstart",this.onDragStart),(0,i.xC)(n,"touchmove",this.onDrag),(0,i.xC)(n,"touchend",this.onDragEnd),(0,i.xC)(n,"touchcancel",this.onDragEnd))},n.onPinchStart=function(e){var t=this.options.pinchThreshold;if(!(this.isDrag&&this.getMovement()>t)){var n=new p(l(e));this.pinchFlag=!0,this._addStore(n),!1===this.emit("pinchStart",a({datas:this.datas,angle:n.getAngle(),touches:this.getCurrentStore().getPositions()},n.getPosition(),{inputEvent:e}))&&(this.pinchFlag=!1)}},n.onPinch=function(e,t){if(this.flag&&this.pinchFlag&&!(t.length<2)){var n=this.getCurrentStore();this.isPinch=!0,this.emit("pinch",a({datas:this.datas,movement:this.getMovement(t),angle:n.getAngle(t),rotation:n.getRotation(t),touches:n.getPositions(t),scale:n.getScale(t),distance:n.getDistance(t)},n.getPosition(t),{inputEvent:e}))}},n.onPinchEnd=function(e){if(this.pinchFlag){var t=this.isPinch;this.isPinch=!1,this.pinchFlag=!1;var n=this.getCurrentStore();this.emit("pinchEnd",a({datas:this.datas,isPinch:t,touches:n.getPositions()},n.getPosition(),{inputEvent:e}))}},n.initDrag=function(){this.clientStores=[],this.pinchFlag=!1,this.doubleFlag=!1,this.prevTime=0,this.flag=!1},n.getCurrentStore=function(){return this.clientStores[0]},n.moveClients=function(e,t,n){var r=this._getPosition(e,n);return(r.deltaX||r.deltaY)&&(this.isDrag=!0),a({datas:this.datas},r,{movement:this.getMovement(e),isDrag:this.isDrag,isPinch:this.isPinch,isScroll:!1,inputEvent:t})},n._addStore=function(e){this.clientStores.splice(0,0,e)},n._getPosition=function(e,t){var n=this.getCurrentStore().getPosition(e,t),r=this.clientStores.slice(1).reduce(function(e,t){var n=t.getPosition();return e.distX+=n.distX,e.distY+=n.distY,e},n),i=r.distX,o=r.distY;return a({},n,{distX:i,distY:o})},t}(r.Z);t.Z=m},67286:function(e,t,n){"use strict";var r,i=SyntaxError,o=Function,a=TypeError,s=function(e){try{return o('"use strict"; return ('+e+").constructor;")()}catch(e){}},l=Object.getOwnPropertyDescriptor;if(l)try{l({},"")}catch(e){l=null}var u=function(){throw new a},c=l?function(){try{return arguments.callee,u}catch(e){try{return l(arguments,"callee").get}catch(e){return u}}}():u,d=n(44123)(),h=Object.getPrototypeOf||function(e){return e.__proto__},p={},f="undefined"==typeof Uint8Array?r:h(Uint8Array),m={"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":d?h([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":p,"%AsyncGenerator%":p,"%AsyncGeneratorFunction%":p,"%AsyncIteratorPrototype%":p,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":p,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":d?h(h([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&d?h(new Map()[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&d?h(new Set()[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":d?h(""[Symbol.iterator]()):r,"%Symbol%":d?Symbol:r,"%SyntaxError%":i,"%ThrowTypeError%":c,"%TypedArray%":f,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet},g=function e(t){var n;if("%AsyncFunction%"===t)n=s("async function () {}");else if("%GeneratorFunction%"===t)n=s("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=s("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&(n=h(i.prototype))}return m[t]=n,n},v={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},y=n(4090),b=n(23198),k=y.call(Function.call,Array.prototype.concat),w=y.call(Function.apply,Array.prototype.splice),x=y.call(Function.call,String.prototype.replace),_=y.call(Function.call,String.prototype.slice),S=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,E=/\\(\\)?/g,D=function(e){var t=_(e,0,1),n=_(e,-1);if("%"===t&&"%"!==n)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new i("invalid intrinsic syntax, expected opening `%`");var r=[];return x(e,S,function(e,t,n,i){r[r.length]=n?x(i,E,"$1"):t||e}),r},C=function(e,t){var n,r=e;if(b(v,r)&&(r="%"+(n=v[r])[0]+"%"),b(m,r)){var o=m[r];if(o===p&&(o=g(r)),void 0===o&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new i("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new a('"allowMissing" argument must be a boolean');var n=D(e),r=n.length>0?n[0]:"",o=C("%"+r+"%",t),s=o.name,u=o.value,c=!1,d=o.alias;d&&(r=d[0],w(n,k([0,1],d)));for(var h=1,p=!0;h=n.length){var y=l(u,f);u=(p=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:u[f]}else p=b(u,f),u=u[f];p&&!c&&(m[s]=u)}}return u}},44123:function(e,t,n){"use strict";var r="undefined"!=typeof Symbol&&Symbol,i=n(10300);e.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&i()}},10300:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},23198:function(e,t,n){"use strict";var r=n(4090);e.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},9340:function(e,t,n){"use strict";n.d(t,{K:function(){return r},k:function(){return i}});var r=function(){},i=function(){}},73463:function(e,t,n){"use strict";var r=n(73887),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(f){var i=p(n);i&&i!==f&&e(t,i,r)}var a=c(n);d&&(a=a.concat(d(n)));for(var s=l(t),m=l(n),g=0;g */t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,l=(1<>1,c=-7,d=n?i-1:0,h=n?-1:1,p=e[t+d];for(d+=h,o=p&(1<<-c)-1,p>>=-c,c+=s;c>0;o=256*o+e[t+d],d+=h,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+e[t+d],d+=h,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:(p?-1:1)*(1/0);a+=Math.pow(2,r),o-=u}return(p?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,l,u=8*o-i-1,c=(1<>1,h=23===i?5960464477539062e-23:0,p=r?0:o-1,f=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),a+d>=1?t+=h/l:t+=h*Math.pow(2,1-d),t*l>=2&&(a++,l/=2),a+d>=c?(s=0,a=c):a+d>=1?(s=(t*l-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[n+p]=255&s,p+=f,s/=256,i-=8);for(a=a<0;e[n+p]=255&a,p+=f,a/=256,u-=8);e[n+p-f]|=128*m}},91285:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},77481:function(e,t,n){"use strict";n.d(t,{C:function(){return l}});var r=n(5163),i=n(82614),o=n(75413),a=n(30087);function s(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}var l=function(){function e(t,n,i,l){void 0===n&&(n=e.defaultLocale);var u,c,d=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=d.formatToParts(e);if(1===t.length)return t[0].value;var n=t.reduce(function(e,t){return e.length&&t.type===a.du.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[]);return n.length<=1?n[0]||"":n},this.formatToParts=function(e){return(0,a.FK)(d.ast,d.locales,d.formatters,d.formats,e,void 0,d.message)},this.resolvedOptions=function(){var e;return{locale:(null===(e=d.resolvedLocale)||void 0===e?void 0:e.toString())||Intl.NumberFormat.supportedLocalesOf(d.locales)[0]}},this.getAst=function(){return d.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),"string"==typeof t){if(this.message=t,!e.__parse)throw TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=e.__parse(t,{ignoreTag:null==l?void 0:l.ignoreTag,locale:this.resolvedLocale})}else this.ast=t;if(!Array.isArray(this.ast))throw TypeError("A message must be provided as a String or AST.");this.formats=(u=e.formats,i?Object.keys(u).reduce(function(e,t){var n,o;return e[t]=(n=u[t],(o=i[t])?(0,r.pi)((0,r.pi)((0,r.pi)({},n||{}),o||{}),Object.keys(n).reduce(function(e,t){return e[t]=(0,r.pi)((0,r.pi)({},n[t]),o[t]||{}),e},{})):n),e},(0,r.pi)({},u)):u),this.formatters=l&&l.formatters||(void 0===(c=this.formatterCache)&&(c={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:(0,o.Z)(function(){for(var e,t=[],n=0;n0?t[0]:"string"==typeof e?e:e[0])}},e.__parse=i.Qc,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}()},56313:function(e,t,n){"use strict";n.d(t,{C8:function(){return s},HR:function(){return u},YR:function(){return l},jK:function(){return i},u_:function(){return a}});var r,i,o=n(5163);(r=i||(i={})).MISSING_VALUE="MISSING_VALUE",r.INVALID_VALUE="INVALID_VALUE",r.MISSING_INTL_API="MISSING_INTL_API";var a=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.code=n,i.originalMessage=r,i}return(0,o.ZT)(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),s=function(e){function t(t,n,r,o){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(n,'". Options are "').concat(Object.keys(r).join('", "'),'"'),i.INVALID_VALUE,o)||this}return(0,o.ZT)(t,e),t}(a),l=function(e){function t(t,n,r){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(n),i.INVALID_VALUE,r)||this}return(0,o.ZT)(t,e),t}(a),u=function(e){function t(t,n){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(n,'"'),i.MISSING_VALUE,n)||this}return(0,o.ZT)(t,e),t}(a)},30087:function(e,t,n){"use strict";n.d(t,{FK:function(){return function e(t,n,r,l,u,c,d){if(1===t.length&&(0,o.O4)(t[0]))return[{type:i.literal,value:t[0].value}];for(var h=[],p=0;p1;y&&(v=v.slice(0,-1));var b=l(v),k=r[b];if(v.length>1&&!k&&!i[v]&&!o[b])throw TypeError('Unknown modifier: "'+v+'"');1!==u&&k||(n?a.key=b:a.which=(g=v,o[g=l(g)]||g.toUpperCase().charCodeAt(0))),k&&(a[k]=!y||null)}}catch(e){h=!0,p=e}finally{try{!d&&m.return&&m.return()}finally{if(h)throw p}}return a}(e,t)}),s=function(e){return a.some(function(t){return function(e,t){for(var n in e){var r=e[n],i=void 0;if(null!=r&&(null!=(i="key"===n&&null!=t.key?t.key.toLowerCase():"which"===n?91===r&&93===t.which?91:t.which:t[n])||!1!==r)&&i!==r)return!1}return!0}(t,e)})};return null==n?s:s(n)}function l(e){return e=i[e=e.toLowerCase()]||e}t.ZP=s,t.P6=s},98843:function(e){e.exports=function(e,t){if(e===t)return!0;for(var n in e)if(!(n in t))return!1;for(var n in t)if(e[n]!==t[n])return!1;return!0}},14304:function(e,t,n){e.exports=window.DOMPurify||(window.DOMPurify=n(35368).default||n(35368))},49431:function(e,t,n){"use strict";var r=n(2563);e.exports=r},2563:function(e,t,n){"use strict";var r=n(73677),i=n(6976);function o(e){return function(){throw Error("Function "+e+" is deprecated and cannot be used.")}}e.exports.Type=n(30800),e.exports.Schema=n(97360),e.exports.FAILSAFE_SCHEMA=n(29684),e.exports.JSON_SCHEMA=n(12190),e.exports.CORE_SCHEMA=n(93585),e.exports.DEFAULT_SAFE_SCHEMA=n(44030),e.exports.DEFAULT_FULL_SCHEMA=n(75467),e.exports.load=r.load,e.exports.loadAll=r.loadAll,e.exports.safeLoad=r.safeLoad,e.exports.safeLoadAll=r.safeLoadAll,e.exports.dump=i.dump,e.exports.safeDump=i.safeDump,e.exports.YAMLException=n(51430),e.exports.MINIMAL_SCHEMA=n(29684),e.exports.SAFE_SCHEMA=n(44030),e.exports.DEFAULT_SCHEMA=n(75467),e.exports.scan=o("scan"),e.exports.parse=o("parse"),e.exports.compose=o("compose"),e.exports.addConstructor=o("addConstructor")},75682:function(e){"use strict";function t(e){return null==e}e.exports.isNothing=t,e.exports.isObject=function(e){return"object"==typeof e&&null!==e},e.exports.toArray=function(e){return Array.isArray(e)?e:t(e)?[]:[e]},e.exports.repeat=function(e,t){var n,r="";for(n=0;nt&&(r=a>o?a:s,l+="\n"+e.slice(o,r),o=r+1),a=s;return l+="\n",e.length-o>t&&a>o?l+=e.slice(o,a)+"\n"+e.slice(a+1):l+=e.slice(o),l.slice(1)}function x(e,t,n){var r,o,a,u,c,d;for(a=0,u=(o=n?e.explicitTypes:e.implicitTypes).length;a tag resolver accepts not "'+d+'" style');e.dump=r}return!0}return!1}function _(e,t){t=t||{};var n=new h(t);return(n.noRefs||function(e,t){var n,r,i=[],o=[];for(function e(t,n,r){var i,o,a;if(null!==t&&"object"==typeof t){if(-1!==(o=n.indexOf(t)))-1===r.indexOf(o)&&r.push(o);else if(n.push(t),Array.isArray(t))for(o=0,a=t.length;on);var _,S,E="[object Object]"===h||"[object Array]"===h;if(E&&(S=-1!==(_=t.duplicates.indexOf(r))),(null!==t.tag&&"?"!==t.tag||S||2!==t.indent&&n>0)&&(a=!1),S&&t.usedDuplicates[_])t.dump="*ref_"+_;else{if(E&&S&&!t.usedDuplicates[_]&&(t.usedDuplicates[_]=!0),"[object Object]"===h)o&&0!==Object.keys(t.dump).length?(function(t,n,r,o){var a,s,l,u,c,d,h="",p=t.tag,m=Object.keys(r);if(!0===t.sortKeys)m.sort();else if("function"==typeof t.sortKeys)m.sort(t.sortKeys);else if(t.sortKeys)throw new i("sortKeys must be a boolean or a function");for(a=0,s=m.length;a1024)&&(t.dump&&10===t.dump.charCodeAt(0)?d+="?":d+="? "),d+=t.dump,c&&(d+=f(t,n)),e(t,n+1,u,!0,c)&&(t.dump&&10===t.dump.charCodeAt(0)?d+=":":d+=": ",d+=t.dump,h+=d));t.tag=p,t.dump=h||"{}"}(t,n,t.dump,a),S&&(t.dump="&ref_"+_+t.dump)):(function(t,n,r){var i,o,a,s,l,u="",c=t.tag,d=Object.keys(r);for(i=0,o=d.length;i1024&&(l+="? "),l+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),e(t,n,s,!1,!1)&&(l+=t.dump,u+=l));t.tag=c,t.dump="{"+u+"}"}(t,n,t.dump),S&&(t.dump="&ref_"+_+" "+t.dump));else if("[object Array]"===h){var D,C=t.noArrayIndent&&n>0?n-1:n;o&&0!==t.dump.length?(function(t,n,r,i){var o,a,s="",l=t.tag;for(o=0,a=r.length;o0?e.charCodeAt(a-1):null,p=p&&v(s,l)}else{for(a=0;ar&&" "!==e[h+1],h=a);else if(!g(s))return 5;l=a>0?e.charCodeAt(a-1):null,p=p&&v(s,l)}c=c||d&&a-h-1>r&&" "!==e[h+1]}return u||c?n>9&&y(e)?5:c?4:3:p&&!i(e)?1:2}(D,l||t.flowLevel>-1&&n>=t.flowLevel,t.indent,r,function(e){return function(e,t){var n,r;for(n=0,r=e.implicitTypes.length;n"+b(D,t.indent)+k(p(function(e,t){for(var n,r,i,o=/(\n+)([^\n]*)/g,a=(n=-1!==(n=e.indexOf("\n"))?n:e.length,o.lastIndex=n,w(e.slice(0,n),t)),s="\n"===e[0]||" "===e[0];i=o.exec(e);){var l=i[1],u=i[2];r=" "===u[0],a+=l+(s||r||""===u?"":"\n")+w(u,t),s=r}return a}(D,r),e));case 5:return'"'+function(e){for(var t,n,r,i="",o=0;o=55296&&t<=56319&&(n=e.charCodeAt(o+1))>=56320&&n<=57343){i+=d((t-55296)*1024+n-56320+65536),o++;continue}i+=!(r=u[t])&&g(t)?e[o]:r||d(t)}return i}(D,r)+'"';default:throw new i("impossible error: invalid scalar style")}}());else{if(t.skipInvalid)return!1;throw new i("unacceptable kind of an object to dump "+h)}null!==t.tag&&"?"!==t.tag&&(t.dump="!<"+t.tag+"> "+t.dump)}return!0}(n,0,e,!0,!0))?n.dump+"\n":""}e.exports.dump=_,e.exports.safeDump=function(e,t){return _(e,r.extend({schema:a},t))}},51430:function(e){"use strict";function t(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack||""}t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t.prototype.toString=function(e){var t=this.name+": ";return t+=this.reason||"(unknown reason)",!e&&this.mark&&(t+=" "+this.mark.toString()),t},e.exports=t},73677:function(e,t,n){"use strict";var r=n(75682),i=n(51430),o=n(34093),a=n(44030),s=n(75467),l=Object.prototype.hasOwnProperty,u=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,c=/[\x85\u2028\u2029]/,d=/[,\[\]\{\}]/,h=/^(?:!|!!|![a-z\-]+!)$/i,p=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function f(e){return Object.prototype.toString.call(e)}function m(e){return 10===e||13===e}function g(e){return 9===e||32===e}function v(e){return 9===e||32===e||10===e||13===e}function y(e){return 44===e||91===e||93===e||123===e||125===e}function b(e){return 48===e?"\x00":97===e?"\x07":98===e?"\b":116===e?" ":9===e?" ":110===e?"\n":118===e?"\v":102===e?"\f":114===e?"\r":101===e?"\x1b":32===e?" ":34===e?'"':47===e?"/":92===e?"\\":78===e?"\x85":95===e?"\xa0":76===e?"\u2028":80===e?"\u2029":""}for(var k=Array(256),w=Array(256),x=0;x<256;x++)k[x]=b(x)?1:0,w[x]=b(x);function _(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||s,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function S(e,t){return new i(t,new o(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}function E(e,t){throw S(e,t)}function D(e,t){e.onWarning&&e.onWarning.call(null,S(e,t))}var C={YAML:function(e,t,n){var r,i,o;null!==e.version&&E(e,"duplication of %YAML directive"),1!==n.length&&E(e,"YAML directive accepts exactly one argument"),null===(r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]))&&E(e,"ill-formed argument of the YAML directive"),i=parseInt(r[1],10),o=parseInt(r[2],10),1!==i&&E(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=o<2,1!==o&&2!==o&&D(e,"unsupported YAML version of the document")},TAG:function(e,t,n){var r,i;2!==n.length&&E(e,"TAG directive accepts exactly two arguments"),r=n[0],i=n[1],h.test(r)||E(e,"ill-formed tag handle (first argument) of the TAG directive"),l.call(e.tagMap,r)&&E(e,'there is a previously declared suffix for "'+r+'" tag handle'),p.test(i)||E(e,"ill-formed tag prefix (second argument) of the TAG directive"),e.tagMap[r]=i}};function j(e,t,n,r){var i,o,a,s;if(t1&&(e.result+=r.repeat("\n",t-1))}function F(e,t){var n,r,i=e.tag,o=e.anchor,a=[],s=!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=a),r=e.input.charCodeAt(e.position);0!==r&&45===r&&v(e.input.charCodeAt(e.position+1));){if(s=!0,e.position++,P(e,!0,-1)&&e.lineIndent<=t){a.push(null),r=e.input.charCodeAt(e.position);continue}if(n=e.line,N(e,t,3,!1,!0),a.push(e.result),P(e,!0,-1),r=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&0!==r)E(e,"bad indentation of a sequence entry");else if(e.lineIndentt?S=1:e.lineIndent===t?S=0:e.lineIndentt?S=1:e.lineIndent===t?S=0:e.lineIndentt)&&(N(e,t,4,!0,i)&&(m?p=e.result:f=e.result),m||(T(e,c,d,h,p,f,o,a),h=p=f=null),P(e,!0,-1),s=e.input.charCodeAt(e.position)),e.lineIndent>t&&0!==s)E(e,"bad indentation of a mapping entry");else if(e.lineIndent=0)0===a?E(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):c?E(e,"repeat of an indentation width identifier"):(d=t+a-1,c=!0);else break;if(g(s)){do s=e.input.charCodeAt(++e.position);while(g(s));if(35===s)do s=e.input.charCodeAt(++e.position);while(!m(s)&&0!==s)}for(;0!==s;){for(A(e),e.lineIndent=0,s=e.input.charCodeAt(e.position);(!c||e.lineIndentd&&(d=e.lineIndent),m(s)){h++;continue}if(e.lineIndent0){for(i=a,o=0;i>0;i--)(a=function(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}(s=e.input.charCodeAt(++e.position)))>=0?o=(o<<4)+a:E(e,"expected hexadecimal character");e.result+=(u=o)<=65535?String.fromCharCode(u):String.fromCharCode((u-65536>>10)+55296,(u-65536&1023)+56320),e.position++}else E(e,"unknown escape sequence");n=r=e.position}else m(s)?(j(e,n,r,!0),M(e,P(e,!1,t)),n=r=e.position):e.position===e.lineStart&&R(e)?E(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}E(e,"unexpected end of the stream within a double quoted scalar")}(e,x)?C=!0:function(e){var t,n,r;if(42!==(r=e.input.charCodeAt(e.position)))return!1;for(r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!v(r)&&!y(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&E(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),l.call(e.anchorMap,n)||E(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],P(e,!0,-1),!0}(e)?(C=!0,(null!==e.tag||null!==e.anchor)&&E(e,"alias node should not have any properties")):function(e,t,n){var r,i,o,a,s,l,u,c,d=e.kind,h=e.result;if(v(c=e.input.charCodeAt(e.position))||y(c)||35===c||38===c||42===c||33===c||124===c||62===c||39===c||34===c||37===c||64===c||96===c||(63===c||45===c)&&(v(r=e.input.charCodeAt(e.position+1))||n&&y(r)))return!1;for(e.kind="scalar",e.result="",i=o=e.position,a=!1;0!==c;){if(58===c){if(v(r=e.input.charCodeAt(e.position+1))||n&&y(r))break}else if(35===c){if(v(e.input.charCodeAt(e.position-1)))break}else if(e.position===e.lineStart&&R(e)||n&&y(c))break;else if(m(c)){if(s=e.line,l=e.lineStart,u=e.lineIndent,P(e,!1,-1),e.lineIndent>=t){a=!0,c=e.input.charCodeAt(e.position);continue}e.position=o,e.line=s,e.lineStart=l,e.lineIndent=u;break}a&&(j(e,i,o,!1),M(e,e.line-s),i=o=e.position,a=!1),g(c)||(o=e.position+1),c=e.input.charCodeAt(++e.position)}return j(e,i,o,!1),!!e.result||(e.kind=d,e.result=h,!1)}(e,x,1===n)&&(C=!0,null===e.tag&&(e.tag="?")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===S&&(C=u&&F(e,_))),null!==e.tag&&"!"!==e.tag){if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&E(e,'unacceptable node kind for ! tag; it should be "scalar", not "'+e.kind+'"'),c=0,f=e.implicitTypes.length;c tag; it should be "'+b.kind+'", not "'+e.kind+'"'),b.resolve(e.result)?(e.result=b.construct(e.result),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):E(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):E(e,"unknown tag !<"+e.tag+">")}return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||C}function I(e,t){e=String(e),t=t||{},0!==e.length&&(10!==e.charCodeAt(e.length-1)&&13!==e.charCodeAt(e.length-1)&&(e+="\n"),65279===e.charCodeAt(0)&&(e=e.slice(1)));var n=new _(e,t),r=e.indexOf("\x00");for(-1!==r&&(n.position=r,E(n,"null byte is not allowed in input")),n.input+="\x00";32===n.input.charCodeAt(n.position);)n.lineIndent+=1,n.position+=1;for(;n.position0)&&37===i);){for(a=!0,i=e.input.charCodeAt(++e.position),t=e.position;0!==i&&!v(i);)i=e.input.charCodeAt(++e.position);for(n=e.input.slice(t,e.position),r=[],n.length<1&&E(e,"directive name must not be less than one character in length");0!==i;){for(;g(i);)i=e.input.charCodeAt(++e.position);if(35===i){do i=e.input.charCodeAt(++e.position);while(0!==i&&!m(i));break}if(m(i))break;for(t=e.position;0!==i&&!v(i);)i=e.input.charCodeAt(++e.position);r.push(e.input.slice(t,e.position))}0!==i&&A(e),l.call(C,n)?C[n](e,n,r):D(e,'unknown document directive "'+n+'"')}if(P(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,P(e,!0,-1)):a&&E(e,"directives end mark is expected"),N(e,e.lineIndent-1,4,!1,!0),P(e,!0,-1),e.checkLineBreaks&&c.test(e.input.slice(o,e.position))&&D(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&R(e)){46===e.input.charCodeAt(e.position)&&(e.position+=3,P(e,!0,-1));return}e.position0&&-1==="\x00\r\n\x85\u2028\u2029".indexOf(this.buffer.charAt(i-1));)if(i-=1,this.position-i>t/2-1){n=" ... ",i+=5;break}for(o="",a=this.position;at/2-1){o=" ... ",a-=5;break}return s=this.buffer.slice(i,a),r.repeat(" ",e)+n+s+o+"\n"+r.repeat(" ",e+this.position-i+n.length)+"^"},i.prototype.toString=function(e){var t,n="";return this.name&&(n+='in "'+this.name+'" '),n+="at line "+(this.line+1)+", column "+(this.column+1),!e&&(t=this.getSnippet())&&(n+=":\n"+t),n},e.exports=i},97360:function(e,t,n){"use strict";var r=n(75682),i=n(51430),o=n(30800);function a(e,t,n){var r=[];return e.include.forEach(function(e){n=a(e,t,n)}),e[t].forEach(function(e){n.forEach(function(t,n){t.tag===e.tag&&t.kind===e.kind&&r.push(n)}),n.push(e)}),n.filter(function(e,t){return -1===r.indexOf(t)})}function s(e){this.include=e.include||[],this.implicit=e.implicit||[],this.explicit=e.explicit||[],this.implicit.forEach(function(e){if(e.loadKind&&"scalar"!==e.loadKind)throw new i("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=a(this,"implicit",[]),this.compiledExplicit=a(this,"explicit",[]),this.compiledTypeMap=function(){var e,t,n={scalar:{},sequence:{},mapping:{},fallback:{}};function r(e){n[e.kind][e.tag]=n.fallback[e.tag]=e}for(e=0,t=arguments.length;e64)){if(t<0)return!1;r+=6}return r%8==0},construct:function(e){var t,n,i=e.replace(/[\r\n=]/g,""),a=i.length,s=0,l=[];for(t=0;t>16&255),l.push(s>>8&255),l.push(255&s)),s=s<<6|o.indexOf(i.charAt(t));return(0==(n=a%4*6)?(l.push(s>>16&255),l.push(s>>8&255),l.push(255&s)):18===n?(l.push(s>>10&255),l.push(s>>2&255)):12===n&&l.push(s>>4&255),r)?r.from?r.from(l):new r(l):l},predicate:function(e){return r&&r.isBuffer(e)},represent:function(e){var t,n,r="",i=0,a=e.length;for(t=0;t>18&63]+o[i>>12&63]+o[i>>6&63]+o[63&i]),i=(i<<8)+e[t];return 0==(n=a%3)?r+=o[i>>18&63]+o[i>>12&63]+o[i>>6&63]+o[63&i]:2===n?r+=o[i>>10&63]+o[i>>4&63]+o[i<<2&63]+o[64]:1===n&&(r+=o[i>>2&63]+o[i<<4&63]+o[64]+o[64]),r}})},867:function(e,t,n){"use strict";var r=n(30800);e.exports=new r("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t=e.length;return 4===t&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e)},construct:function(e){return"true"===e||"True"===e||"TRUE"===e},predicate:function(e){return"[object Boolean]"===Object.prototype.toString.call(e)},represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})},24103:function(e,t,n){"use strict";var r=n(75682),i=n(30800),o=RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),a=/^[-+]?[0-9]+e/;e.exports=new i("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return!!(null!==e&&o.test(e)&&"_"!==e[e.length-1])},construct:function(e){var t,n,r,i;return(n="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,i=[],"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t)?1===n?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:t.indexOf(":")>=0?(t.split(":").forEach(function(e){i.unshift(parseFloat(e,10))}),t=0,r=1,i.forEach(function(e){t+=e*r,r*=60}),n*t):n*parseFloat(t,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||r.isNegativeZero(e))},represent:function(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(r.isNegativeZero(e))return"-0.0";return n=e.toString(10),a.test(n)?n.replace("e",".e"):n},defaultStyle:"lowercase"})},29686:function(e,t,n){"use strict";var r=n(75682),i=n(30800);e.exports=new i("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n,r,i,o=e.length,a=0,s=!1;if(!o)return!1;if(("-"===(i=e[a])||"+"===i)&&(i=e[++a]),"0"===i){if(a+1===o)return!0;if("b"===(i=e[++a])){for(a++;a=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0"+e.toString(8):"-0"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},2840:function(e,t,n){"use strict";try{r=n(90671)}catch(e){"undefined"!=typeof window&&(r=window.esprima)}var r,i=n(30800);e.exports=new i("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:function(e){if(null===e)return!1;try{var t=r.parse("("+e+")",{range:!0});if("Program"!==t.type||1!==t.body.length||"ExpressionStatement"!==t.body[0].type||"ArrowFunctionExpression"!==t.body[0].expression.type&&"FunctionExpression"!==t.body[0].expression.type)return!1;return!0}catch(e){return!1}},construct:function(e){var t,n="("+e+")",i=r.parse(n,{range:!0}),o=[];if("Program"!==i.type||1!==i.body.length||"ExpressionStatement"!==i.body[0].type||"ArrowFunctionExpression"!==i.body[0].expression.type&&"FunctionExpression"!==i.body[0].expression.type)throw Error("Failed to resolve function");return(i.body[0].expression.params.forEach(function(e){o.push(e.name)}),t=i.body[0].expression.body.range,"BlockStatement"===i.body[0].expression.body.type)?Function(o,n.slice(t[0]+1,t[1]-1)):Function(o,"return "+n.slice(t[0],t[1]))},predicate:function(e){return"[object Function]"===Object.prototype.toString.call(e)},represent:function(e){return e.toString()}})},49726:function(e,t,n){"use strict";var r=n(30800);e.exports=new r("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:function(e){if(null===e||0===e.length)return!1;var t=/\/([gim]*)$/.exec(e),n="";return"/"!==e[0]||(t&&(n=t[1]),!(n.length>3)&&"/"===e[e.length-n.length-1])},construct:function(e){var t=e,n=/\/([gim]*)$/.exec(e),r="";return"/"===t[0]&&(n&&(r=n[1]),t=t.slice(1,t.length-r.length-1)),new RegExp(t,r)},predicate:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},represent:function(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}})},83354:function(e,t,n){"use strict";var r=n(30800);e.exports=new r("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:function(){return!0},construct:function(){},predicate:function(e){return void 0===e},represent:function(){return""}})},15375:function(e,t,n){"use strict";var r=n(30800);e.exports=new r("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}})},47980:function(e,t,n){"use strict";var r=n(30800);e.exports=new r("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}})},41333:function(e,t,n){"use strict";var r=n(30800);e.exports=new r("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(e){if(null===e)return!0;var t=e.length;return 1===t&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)},construct:function(){return null},predicate:function(e){return null===e},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})},33996:function(e,t,n){"use strict";var r=n(30800),i=Object.prototype.hasOwnProperty,o=Object.prototype.toString;e.exports=new r("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,n,r,a,s,l=[];for(t=0,n=e.length;t=400&&e<500)||400===e||408===e||429===e}},d=[],h=[],p="undefined"!=typeof Uint8Array?Uint8Array:Array,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",m=0,g=f.length;m0)throw Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return -1===n&&(n=t),[n,n===t?0:4-n%4]}h["-".charCodeAt(0)]=62,h["_".charCodeAt(0)]=63;var y={byteLength:function(e){var t=v(e),n=t[0],r=t[1];return 3*(n+r)/4-r},toByteArray:function(e){var t,n,r=v(e),i=r[0],o=r[1],a=new p(3*(i+o)/4-o),s=0,l=o>0?i-4:i;for(n=0;n>16&255,a[s++]=t>>8&255,a[s++]=255&t;return 2===o&&(t=h[e.charCodeAt(n)]<<2|h[e.charCodeAt(n+1)]>>4,a[s++]=255&t),1===o&&(t=h[e.charCodeAt(n)]<<10|h[e.charCodeAt(n+1)]<<4|h[e.charCodeAt(n+2)]>>2,a[s++]=t>>8&255,a[s++]=255&t),a},fromByteArray:function(e){for(var t,n=e.length,r=n%3,i=[],o=0,a=n-r;o>18&63]+d[r>>12&63]+d[r>>6&63]+d[63&r]);return i.join("")}(e,o,o+16383>a?a:o+16383));return 1===r?i.push(d[(t=e[n-1])>>2]+d[t<<4&63]+"=="):2===r&&i.push(d[(t=(e[n-2]<<8)+e[n-1])>>10]+d[t>>4&63]+d[t<<2&63]+"="),i.join("")}},b=Array.isArray,k=Object.keys,w=Object.prototype.hasOwnProperty,x=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){var r,i,o,a=b(t),s=b(n);if(a&&s){if((i=t.length)!=n.length)return!1;for(r=i;0!=r--;)if(!e(t[r],n[r]))return!1;return!0}if(a!=s)return!1;var l=t instanceof Date,u=n instanceof Date;if(l!=u)return!1;if(l&&u)return t.getTime()==n.getTime();var c=t instanceof RegExp,d=n instanceof RegExp;if(c!=d)return!1;if(c&&d)return t.toString()==n.toString();var h=k(t);if((i=h.length)!==k(n).length)return!1;for(r=i;0!=r--;)if(!w.call(n,h[r]))return!1;for(r=i;0!=r--;)if(!e(t[o=h[r]],n[o]))return!1;return!0}return t!=t&&n!=n};let _=["key","ip","country","email","firstName","lastName","avatar","name"];function S(e){let t=unescape(encodeURIComponent(e));return y.fromByteArray(function(e){let t=[];for(let n=0;n0;){for(i=[];o>0;){let e=n.shift();if(!e)break;(o-=E(JSON.stringify(e)).length)<0&&i.length>0?n.unshift(e):i.push(e)}o=e,r.push(i)}return r},clone:function(e){return JSON.parse(JSON.stringify(e))},deepEquals:function(e,t){return x(e,t)},extend:function(...e){return e.reduce((e,t)=>({...e,...t}),{})},getLDUserAgentString:function(e){let t=e.version||"?";return e.userAgent+"/"+t},objectHasOwnProperty:D,onNextTick:function(e){setTimeout(e,0)},sanitizeContext:function(e){let t;return e?(null!==e.kind&&void 0!==e.kind||_.forEach(n=>{let r=e[n];void 0!==r&&"string"!=typeof r&&((t=t||{...e})[n]=String(r))}),t||e):e},transformValuesToVersionedValues:function(e){let t={};for(let n in e)D(e,n)&&(t[n]={value:e[n],version:0});return t},transformVersionedValuesToValues:function(e){let t={};for(let n in e)D(e,n)&&(t[n]=e[n].value);return t},wrapPromiseCallback:function(e,t){let n=e.then(e=>(t&&setTimeout(()=>{t(null,e)},0),e),e=>{if(!t)return Promise.reject(e);setTimeout(()=>{t(e,null)},0)});return t?void 0:n}},O=new Uint8Array(16);function T(){if(!C&&!(C="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return C(O)}var A=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function P(e){return"string"==typeof e&&A.test(e)}for(var R,M,F=[],N=0;N<256;++N)F.push((N+256).toString(16).substr(1));function I(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(F[e[t+0]]+F[e[t+1]]+F[e[t+2]]+F[e[t+3]]+"-"+F[e[t+4]]+F[e[t+5]]+"-"+F[e[t+6]]+F[e[t+7]]+"-"+F[e[t+8]]+F[e[t+9]]+"-"+F[e[t+10]]+F[e[t+11]]+F[e[t+12]]+F[e[t+13]]+F[e[t+14]]+F[e[t+15]]).toLowerCase();if(!P(n))throw TypeError("Stringified UUID is invalid");return n}var L=0,B=0;function z(e){if(!P(e))throw TypeError("Invalid UUID");var t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n}function U(e,t,n){function r(e,r,i,o){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],n=0;n>>9<<4)+1}function $(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function H(e,t,n,r,i,o){var a;return $((a=$($(t,e),$(r,o)))<>>32-i,n)}function V(e,t,n,r,i,o,a){return H(t&n|~t&r,e,t,i,o,a)}function W(e,t,n,r,i,o,a){return H(t&r|n&~r,e,t,i,o,a)}function G(e,t,n,r,i,o,a){return H(t^n^r,e,t,i,o,a)}function Y(e,t,n,r,i,o,a){return H(n^(t|~r),e,t,i,o,a)}function Z(e,t){return e<>>32-t}var K=Object.freeze({__proto__:null,v1:function(e,t,n){var r=t&&n||0,i=t||Array(16),o=(e=e||{}).node||R,a=void 0!==e.clockseq?e.clockseq:M;if(null==o||null==a){var s=e.random||(e.rng||T)();null==o&&(o=R=[1|s[0],s[1],s[2],s[3],s[4],s[5]]),null==a&&(a=M=16383&(s[6]<<8|s[7]))}var l=void 0!==e.msecs?e.msecs:Date.now(),u=void 0!==e.nsecs?e.nsecs:B+1,c=l-L+(u-B)/1e4;if(c<0&&void 0===e.clockseq&&(a=a+1&16383),(c<0||l>L)&&void 0===e.nsecs&&(u=0),u>=1e4)throw Error("uuid.v1(): Can't create more than 10M uuids/sec");L=l,B=u,M=a;var d=(1e4*(268435455&(l+=122192928e5))+u)%4294967296;i[r++]=d>>>24&255,i[r++]=d>>>16&255,i[r++]=d>>>8&255,i[r++]=255&d;var h=l/4294967296*1e4&268435455;i[r++]=h>>>8&255,i[r++]=255&h,i[r++]=h>>>24&15|16,i[r++]=h>>>16&255,i[r++]=a>>>8|128,i[r++]=255&a;for(var p=0;p<6;++p)i[r+p]=o[p];return t||I(i)},v3:U("v3",48,function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var n=0;n>5]>>>i%32&255,a=parseInt(r.charAt(o>>>4&15)+r.charAt(15&o),16);t.push(a)}return t}(function(e,t){e[t>>5]|=128<>5]|=(255&e[r/8])<>>0;b=y,y=v,v=Z(g,30)>>>0,g=m,m=x}n[0]=n[0]+m>>>0,n[1]=n[1]+g>>>0,n[2]=n[2]+v>>>0,n[3]=n[3]+y>>>0,n[4]=n[4]+b>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]}),NIL:"00000000-0000-0000-0000-000000000000",version:function(e){if(!P(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)},validate:P,stringify:I,parse:z});let J=["debug","info","warn","error","none"];var X={commonBasicLogger:function(e,t){if(e&&e.destination&&"function"!=typeof e.destination)throw Error("destination for basicLogger was set to a non-function");function n(e){return function(t){console&&console[e]&&console[e].call(console,t)}}let r=e&&e.destination?[e.destination,e.destination,e.destination,e.destination]:[n("log"),n("info"),n("warn"),n("error")],i=!(!e||!e.destination),o=e&&void 0!==e.prefix&&null!==e.prefix?e.prefix:"[LaunchDarkly] ",a=1;if(e&&e.level)for(let t=0;t{};else{let a=e;s[n]=function(){!function(e,n,a){let s;if(a.length<1)return;let l=i?n+": "+o:o;if(1!==a.length&&t){let e=[...a];e[0]=l+e[0],s=t(...e)}else s=l+a[0];try{r[e](s)}catch(e){console&&console.log&&console.log("[LaunchDarkly] Configured logger's "+n+" method threw an exception: "+e)}}(a,n,arguments)}}}}return s},validateLogger:function(e){J.forEach(t=>{if("none"!==t&&(!e[t]||"function"!=typeof e[t]))throw Error("Provided logger instance must support logger."+t+"(...) method")})}};function Q(e){return e&&e.message?e.message:"string"==typeof e||e instanceof String?e:JSON.stringify(e)}let ee=" Please see https://docs.launchdarkly.com/sdk/client-side/javascript#initializing-the-client for instructions on SDK initialization.";var et={bootstrapInvalid:function(){return"LaunchDarkly bootstrap data is not available because the back end could not read the flags."},bootstrapOldFormat:function(){return"LaunchDarkly client was initialized with bootstrap data that did not include flag metadata. Events may not be sent correctly."+ee},clientInitialized:function(){return"LaunchDarkly client initialized"},clientNotReady:function(){return"LaunchDarkly client is not ready"},debugEnqueueingEvent:function(e){return'enqueueing "'+e+'" event'},debugPostingDiagnosticEvent:function(e){return"sending diagnostic event ("+e.kind+")"},debugPostingEvents:function(e){return"sending "+e+" events"},debugStreamDelete:function(e){return'received streaming deletion for flag "'+e+'"'},debugStreamDeleteIgnored:function(e){return'received streaming deletion for flag "'+e+'" but ignored due to version check'},debugStreamPatch:function(e){return'received streaming update for flag "'+e+'"'},debugStreamPatchIgnored:function(e){return'received streaming update for flag "'+e+'" but ignored due to version check'},debugStreamPing:function(){return"received ping message from stream"},debugPolling:function(e){return"polling for feature flags at "+e},debugStreamPut:function(){return"received streaming update for all flags"},deprecated:function(e,t){return t?'"'+e+'" is deprecated, please use "'+t+'"':'"'+e+'" is deprecated'},environmentNotFound:function(){return"Environment not found. Double check that you specified a valid environment/client-side ID."+ee},environmentNotSpecified:function(){return"No environment/client-side ID was specified."+ee},errorFetchingFlags:function(e){return"Error fetching flag settings: "+Q(e)},eventCapacityExceeded:function(){return"Exceeded event queue capacity. Increase capacity to avoid dropping events."},eventWithoutContext:function(){return"Be sure to call `identify` in the LaunchDarkly client: https://docs.launchdarkly.com/sdk/features/identify#javascript"},httpErrorMessage:function(e,t,n){return"Received error "+e+(401===e?" (invalid SDK key)":"")+" for "+t+" - "+(c.isHttpErrorRecoverable(e)?n:"giving up permanently")},httpUnavailable:function(){return"Cannot make HTTP requests in this environment."+ee},identifyDisabled:function(){return"identify() has no effect here; it must be called on the main client instance"},inspectorMethodError:(e,t)=>`an inspector: "${t}" of type: "${e}" generated an exception`,invalidContentType:function(e){return'Expected application/json content type but got "'+e+'"'},invalidData:function(){return"Invalid data received from LaunchDarkly; connection may have been interrupted"},invalidInspector:(e,t)=>`an inspector: "${t}" of an invalid type (${e}) was configured`,invalidKey:function(){return"Event key must be a string"},invalidContext:function(){return"Invalid context specified."+ee},invalidTagValue:e=>`Config option "${e}" must only contain letters, numbers, ., _ or -.`,localStorageUnavailable:function(e){return"local storage is unavailable: "+Q(e)},networkError:e=>"network error"+(e?" ("+e+")":""),optionBelowMinimum:(e,t,n)=>'Config option "'+e+'" was set to '+t+", changing to minimum value of "+n,streamClosing:function(){return"Closing stream connection"},streamConnecting:function(e){return"Opening stream connection to "+e},streamError:function(e,t){return"Error on stream connection: "+Q(e)+", will continue retrying after "+t+" milliseconds."},tagValueTooLong:e=>`Value of "${e}" was longer than 64 characters and was discarded.`,unknownCustomEventKey:function(e){return'Custom event "'+e+'" does not exist'},unknownOption:e=>'Ignoring unknown config option "'+e+'"',contextNotSpecified:function(){return"No context specified."+ee},unrecoverableStreamError:e=>`Error on stream connection ${Q(e)}, giving up permanently`,wrongOptionType:(e,t,n)=>'Config option "'+e+'" should be of type '+t+", got "+n+", using default value",wrongOptionTypeBoolean:(e,t)=>'Config option "'+e+'" should be a boolean, got '+t+", converting to boolean"};let{validateLogger:en}=X,er={baseUrl:{default:"https://app.launchdarkly.com"},streamUrl:{default:"https://clientstream.launchdarkly.com"},eventsUrl:{default:"https://events.launchdarkly.com"},sendEvents:{default:!0},streaming:{type:"boolean"},sendLDHeaders:{default:!0},requestHeaderTransform:{type:"function"},sendEventsOnlyForVariation:{default:!1},useReport:{default:!1},evaluationReasons:{default:!1},eventCapacity:{default:100,minimum:1},flushInterval:{default:2e3,minimum:2e3},samplingInterval:{default:0,minimum:0},streamReconnectDelay:{default:1e3,minimum:0},allAttributesPrivate:{default:!1},privateAttributes:{default:[]},bootstrap:{type:"string|object"},diagnosticRecordingInterval:{default:9e5,minimum:2e3},diagnosticOptOut:{default:!1},wrapperName:{type:"string"},wrapperVersion:{type:"string"},stateProvider:{type:"object"},application:{validator:function(e,t,n){let r={};return t.id&&(r.id=ea(`${e}.id`,t.id,n)),t.version&&(r.version=ea(`${e}.version`,t.version,n)),r}},inspectors:{default:[]}},ei=/^(\w|\.|-)+$/;function eo(e){return e?.replace(/\/+$/,"")}function ea(e,t,n){if("string"==typeof t&&t.match(ei)){if(!(t.length>64))return t;n.warn(et.tagValueTooLong(e))}else n.warn(et.invalidTagValue(e))}var es={baseOptionDefs:er,validate:function(e,t,n,r){var i;let o=j.extend({logger:{default:r}},er,n),a={};function s(e){j.onNextTick(()=>{t&&t.maybeReportError(new c.LDInvalidArgumentError(e))})}let l=j.extend({},e||{});return i=l,Object.keys(a).forEach(e=>{if(void 0!==i[e]){let t=a[e];r&&r.warn(et.deprecated(e,t)),t&&(void 0===i[t]&&(i[t]=i[e]),delete i[e])}}),en((l=function(e){let t=j.extend({},e),n=e=>{if(null===e)return"any";if(void 0===e)return;if(Array.isArray(e))return"array";let t=typeof e;return"boolean"===t||"string"===t||"number"===t||"function"===t?t:"object"};return Object.keys(e).forEach(i=>{let a=e[i];if(null!=a){let l=o[i];if(void 0===l)s(et.unknownOption(i));else{let o=l.type||n(l.default),u=l.validator;if(u){let n=u(i,e[i],r);void 0!==n?t[i]=n:delete t[i]}else if("any"!==o){let e=o.split("|"),r=n(a);0>e.indexOf(r)?"boolean"===o?(t[i]=!!a,s(et.wrongOptionTypeBoolean(i,r))):(s(et.wrongOptionType(i,o,r)),t[i]=l.default):"number"===r&&void 0!==l.minimum&&a{void 0!==t[e]&&null!==t[e]||(t[e]=o[e]&&o[e].default)}),t}(l))).logger),l},getTags:function(e){let t={};return e&&(e.application&&void 0!==e.application.id&&null!==e.application.id&&(t["application-id"]=[e.application.id]),e.application&&void 0!==e.application.version&&null!==e.application.id&&(t["application-version"]=[e.application.version])),t}};let{getLDUserAgentString:el}=j;var eu={getLDHeaders:function(e,t){if(t&&!t.sendLDHeaders)return{};let n={};n[e.userAgentHeaderName||"User-Agent"]=el(e),t&&t.wrapperName&&(n["X-LaunchDarkly-Wrapper"]=t.wrapperVersion?t.wrapperName+"/"+t.wrapperVersion:t.wrapperName);let r=es.getTags(t),i=Object.keys(r);return i.length&&(n["x-launchdarkly-tags"]=i.sort().map(e=>Array.isArray(r[e])?r[e].sort().map(t=>`${e}/${t}`):[`${e}/${r[e]}`]).reduce((e,t)=>e.concat(t),[]).join(" ")),n},transformHeaders:function(e,t){return t&&t.requestHeaderTransform?t.requestHeaderTransform({...e}):e}};let{v1:ec}=K,{getLDHeaders:ed,transformHeaders:eh}=eu;var ep=function(e,t,n){let r="/a/"+t+".gif",i=j.extend({"Content-Type":"application/json"},ed(e,n)),o=e.httpFallbackPing,a={};return a.sendChunk=(t,a,s,l)=>{let u=JSON.stringify(t),d=s?null:ec();return l?(function t(r){let o=s?i:j.extend({},i,{"X-LaunchDarkly-Event-Schema":"4","X-LaunchDarkly-Payload-ID":d});return e.httpRequest("POST",a,eh(o,n),u).promise.then(e=>{if(e)return e.status>=400&&c.isHttpErrorRecoverable(e.status)&&r?t(!1):function(e){let t={status:e.status},n=e.header("date");if(n){let e=Date.parse(n);e&&(t.serverTime=e)}return t}(e)}).catch(()=>r?t(!1):Promise.reject())})(!0).catch(()=>{}):(o&&o(a+r+"?d="+j.base64URLEncode(u)),Promise.resolve())},a.sendEvents=function(t,n,r){let i;if(!e.httpRequest)return Promise.resolve();let o=e.httpAllowsPost();i=o?[t]:j.chunkEventsForUrl(2e3-n.length,t);let s=[];for(let e=0;e"kind"!==e);return o&&t.every(e=>em(e))&&t.every(t=>{let n=e[t].key;return null!=n&&""!==n})}return o&&i}return!1},getContextKeys:function(e,t=ef()){if(!e)return;let n={},{kind:r,key:i}=e;switch(r){case void 0:n.user=`${i}`;break;case"multi":Object.entries(e).filter(([e])=>"kind"!==e).forEach(([e,t])=>{t?.key&&(n[e]=t.key)});break;case null:t.warn(`null is not a valid context kind: ${e}`);break;case"":t.warn(`'' is not a valid context kind: ${e}`);break;default:n[r]=`${i}`}return n},getContextKinds:function(e){return e?null===e.kind||void 0===e.kind?["user"]:"multi"!==e.kind?[e.kind]:Object.keys(e).filter(e=>"kind"!==e):[]},getCanonicalKey:function(e){if(e){if((void 0===e.kind||null===e.kind||"user"===e.kind)&&e.key)return e.key;if("multi"!==e.kind&&e.key)return`${e.kind}:${eg(e.key)}`;if("multi"===e.kind)return Object.keys(e).sort().filter(e=>"kind"!==e).map(t=>`${t}:${eg(e[t].key)}`).join(":")}}};let{getContextKinds:ey}=ev;var eb=function(){let e={},t=0,n=0,r={},i={};return e.summarizeEvent=e=>{if("feature"===e.kind){let o=e.key+":"+(null!==e.variation&&void 0!==e.variation?e.variation:"")+":"+(null!==e.version&&void 0!==e.version?e.version:""),a=r[o],s=i[e.key];s||(s=new Set,i[e.key]=s),(e.context?ey(e.context):e.contextKeys?Object.keys(e.contextKeys):[]).forEach(e=>s.add(e)),a?a.count=a.count+1:r[o]={count:1,key:e.key,version:e.version,variation:e.variation,value:e.value,default:e.default},(0===t||e.creationDaten&&(n=e.creationDate)}},e.getSummary=()=>{let e={},o=!0;for(let t of Object.values(r)){let n=e[t.key];n||(n={default:t.default,counters:[],contextKinds:[...i[t.key]]},e[t.key]=n);let r={value:t.value,count:t.count};void 0!==t.variation&&null!==t.variation&&(r.variation=t.variation),void 0!==t.version&&null!==t.version?r.version=t.version:r.unknown=!0,n.counters.push(r),o=!1}return o?null:{startDate:t,endDate:n,features:e}},e.clearSummary=()=>{t=0,n=0,r={},i={}},e};function ek(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function ew(e){return(e.startsWith("/")?e.substring(1):e).split("/").map(e=>e.indexOf("~")>=0?e.replace(/~1/g,"/").replace(/~0/g,"~"):e)}function ex(e){return!e.startsWith("/")}function e_(e,t){let n=ex(e),r=ex(t);if(n&&r)return e===t;if(n){let n=ew(t);return 1===n.length&&e===n[0]}if(r){let n=ew(e);return 1===n.length&&t===n[0]}return e===t}function eS(e){return`/${ek(e)}`}var eE={cloneExcluding:function(e,t){let n=[],r={},i=[];for(n.push(...Object.keys(e).map(t=>({key:t,ptr:eS(t),source:e,parent:r,visited:[e]})));n.length;){let e=n.pop();if(t.some(t=>e_(t,e.ptr)))i.push(e.ptr);else{let t=e.source[e.key];if(null===t)e.parent[e.key]=t;else if(Array.isArray(t))e.parent[e.key]=[...t];else if("object"==typeof t){if(e.visited.includes(t))continue;e.parent[e.key]={},n.push(...Object.keys(t).map(n=>({key:n,ptr:`${e.ptr}/${ek(n)}`,source:t,parent:e.parent[e.key],visited:[...e.visited,t]})))}else e.parent[e.key]=t}}return{cloned:r,excluded:i.sort()}},compare:e_,literalToReference:eS},eD=function(e){let t={},n=e.allAttributesPrivate,r=e.privateAttributes||[],i=["key","kind","_meta","anonymous"],o=["name","ip","firstName","lastName","email","avatar","country"],a=e=>{if("object"!=typeof e||null===e||Array.isArray(e))return;let{cloned:t,excluded:o}=eE.cloneExcluding(e,(n?Object.keys(e):[...r,...e._meta&&e._meta.privateAttributes||[]]).filter(e=>!i.some(t=>eE.compare(e,t))));return t.key=String(t.key),o.length&&(t._meta||(t._meta={}),t._meta.redactedAttributes=o),t._meta&&(delete t._meta.privateAttributes,0===Object.keys(t._meta).length&&delete t._meta),void 0!==t.anonymous&&(t.anonymous=!!t.anonymous),t};return t.filter=e=>void 0===e.kind||null===e.kind?a((e=>{let t={...e.custom||{},kind:"user",key:e.key};for(let n of(void 0!==e.anonymous&&(t.anonymous=!!e.anonymous),o))delete t[n],void 0!==e[n]&&null!==e[n]&&(t[n]=String(e[n]));return void 0!==e.privateAttributeNames&&null!==e.privateAttributeNames&&(t._meta=t._meta||{},t._meta.privateAttributes=e.privateAttributeNames.map(e=>e.startsWith("/")?eE.literalToReference(e):e)),t})(e)):"multi"===e.kind?(e=>{let t={kind:e.kind},n=Object.keys(e);for(let r of n)if("kind"!==r){let n=a(e[r]);n&&(t[r]=n)}return t})(e):a(e),t};let{getContextKeys:eC}=ev;var ej=function(e,t,n,r=null,i=null,o=null){let a={},s=o||ep(e,n,t),l=j.appendUrlPath(t.eventsUrl,"/events/bulk/"+n),u=eb(),d=eD(t),h=t.samplingInterval,p=t.eventCapacity,f=t.flushInterval,m=t.logger,g,v=[],y=0,b=!1,k=!1;function w(){return 0===h||0===Math.floor(Math.random()*h)}function x(e){v.lengthy&&e.debugEventsUntilDate>(new Date).getTime()):t=w(),t&&x(function(e){let t=j.extend({},e);return"identify"===e.kind?t.context=d.filter(e.context):(t.contextKeys=eC(e.context,m),delete t.context),"feature"===e.kind&&(delete t.trackEvents,delete t.debugEventsUntilDate),t}(e)),n){let t=j.extend({},e,{kind:"debug"});t.context=d.filter(t.context),delete t.trackEvents,delete t.debugEventsUntilDate,x(t)}},a.flush=function(){if(b)return Promise.resolve();let e=v,t=u.getSummary();return u.clearSummary(),t&&(t.kind="summary",e.push(t)),r&&r.setEventsInLastBatch(e.length),0===e.length?Promise.resolve():(v=[],m.debug(et.debugPostingEvents(e.length)),s.sendEvents(e,l).then(e=>{let t=e&&e[0];t&&(t.serverTime&&(y=t.serverTime),c.isHttpErrorRecoverable(t.status)||(b=!0),t.status>=400&&j.onNextTick(()=>{i.maybeReportError(new c.LDUnexpectedResponseError(et.httpErrorMessage(t.status,"event posting","some events were dropped")))}))}))},a.start=function(){let e=()=>{a.flush(),g=setTimeout(e,f)};g=setTimeout(e,f)},a.stop=function(){clearTimeout(g)},a},eO=function(e){let t={},n={};return t.on=function(e,t,r){n[e]=n[e]||[],n[e]=n[e].concat({handler:t,context:r})},t.off=function(e,t,r){if(n[e])for(let i=0;i{let n=()=>{e.off(eT,n),t()};e.on(eT,n)}).catch(()=>{});return{getInitializationPromise:()=>i||(t?Promise.resolve():n?Promise.reject(r):i=new Promise((t,n)=>{let r=()=>{e.off(eA,r),t()},i=t=>{e.off(eP,i),n(t)};e.on(eA,r),e.on(eP,i)})),getReadyPromise:()=>o,signalSuccess:()=>{t||n||(t=!0,e.emit(eA),e.emit(eT))},signalFailure:i=>{t||n||(n=!0,r=i,e.emit(eP,i),e.emit(eT)),e.maybeReportError(i)}}},eM=function(e,t,n,r){let i={};function o(){let e="",i=r.getContext();return i&&(e=n||j.btoa(JSON.stringify(i))),"ld:"+t+":"+e}return i.loadFlags=()=>e.get(o()).then(e=>{if(null==e)return null;try{let t=JSON.parse(e);if(t){let e=t.$schema;void 0===e||e<1?t=j.transformValuesToVersionedValues(t):delete t.$schema}return t}catch(e){return i.clearFlags().then(()=>null)}}),i.saveFlags=t=>{let n=j.extend({},t,{$schema:1});return e.set(o(),JSON.stringify(n))},i.clearFlags=()=>e.clear(o()),i},eF=function(e,t){let n={},r=!1,i=e=>{r||(r=!0,t.warn(et.localStorageUnavailable(e)))};return n.isEnabled=()=>!!e,n.get=t=>new Promise(n=>{e?e.get(t).then(n).catch(e=>{i(e),n(void 0)}):n(void 0)}),n.set=(t,n)=>new Promise(r=>{e?e.set(t,n).then(()=>r(!0)).catch(e=>{i(e),r(!1)}):r(!1)}),n.clear=t=>new Promise(n=>{e?e.clear(t).then(()=>n(!0)).catch(e=>{i(e),n(!1)}):n(!1)}),n};let{appendUrlPath:eN,base64URLEncode:eI,objectHasOwnProperty:eL}=j,{getLDHeaders:eB,transformHeaders:ez}=eu,{isHttpErrorRecoverable:eU}=c;var eq=function(e,t,n,r){let i=t.streamUrl,o=t.logger,a={},s=eN(i,"/eval/"+n),l=t.useReport,u=t.evaluationReasons,c=t.streamReconnectDelay,d=eB(e,t),h,p=!1,f=null,m=null,g=null,v=null,y=null,b=0;function k(e){if(e.status&&"number"==typeof e.status&&!eU(e.status))return _(),o.error(et.unrecoverableStreamError(e)),void(m&&(clearTimeout(m),m=null));let t=function(){var e;let t=(e=function(){let e=c*Math.pow(2,b);return e>3e4?3e4:e}())-Math.trunc(.5*Math.random()*e);return b+=1,t}();p||(o.warn(et.streamError(e,t)),p=!0),S(!1),_(),w(t)}function w(e){m||(e?m=setTimeout(x,e):x())}function x(){let r;m=null;let a="",c={headers:d,readTimeoutMillis:3e5};if(e.eventSourceFactory){for(let d in null!=v&&(a="h="+v),l?e.eventSourceAllowsReport?(r=s,c.method="REPORT",c.headers["Content-Type"]="application/json",c.body=JSON.stringify(g)):(r=eN(i,"/ping/"+n),a=""):r=s+"/"+eI(JSON.stringify(g)),c.headers=ez(c.headers,t),u&&(a=a+(a?"&":"")+"withReasons=true"),r=r+(a?"?":"")+a,_(),o.info(et.streamConnecting(r)),h=(new Date).getTime(),f=e.eventSourceFactory(r,c),y)eL(y,d)&&f.addEventListener(d,y[d]);f.onerror=k,f.onopen=()=>{b=0}}}function _(){f&&(o.info(et.streamClosing()),f.close(),f=null)}function S(e){h&&r&&r.recordStreamInit(h,!e,(new Date).getTime()-h),h=null}return a.connect=function(e,t,n){for(let r in g=e,v=t,y={},n||{})y[r]=function(e){p=!1,S(!0),n[r]&&n[r](e)};w()},a.disconnect=function(){clearTimeout(m),m=null,_()},a.isConnected=function(){return!!(f&&e.eventSourceIsActive&&e.eventSourceIsActive(f))},a},e$=function(e){let t,n,r,i;let o={addPromise:(o,a)=>{t=o,n&&n(),n=a,o.then(n=>{t===o&&(r(n),e&&e())},n=>{t===o&&(i(n),e&&e())})}};return o.resultPromise=new Promise((e,t)=>{r=e,i=t}),o};let{transformHeaders:eH,getLDHeaders:eV}=eu,eW="application/json";var eG=function(e,t,n){let r=t.baseUrl,i=t.useReport,o=t.evaluationReasons,a=t.logger,s={},l={};function u(n,r){if(!e.httpRequest)return new Promise((e,t)=>{t(new c.LDFlagFetchError(et.httpUnavailable()))});let i=r?"REPORT":"GET",o=eV(e,t);r&&(o["Content-Type"]=eW);let a=l[n];a||(a=e$(()=>{delete l[n]}),l[n]=a);let s=e.httpRequest(i,n,eH(o,t),r),u=s.promise.then(e=>{if(200===e.status){if(e.header("content-type")&&e.header("content-type").substring(0,eW.length)===eW)return JSON.parse(e.body);{let t=et.invalidContentType(e.header("content-type")||"");return Promise.reject(new c.LDFlagFetchError(t))}}return Promise.reject(404===e.status?new c.LDInvalidEnvironmentIdError(et.environmentNotFound()):new c.LDFlagFetchError(et.errorFetchingFlags(e.statusText||String(e.status))))},e=>Promise.reject(new c.LDFlagFetchError(et.networkError(e))));return a.addPromise(u,()=>{s.cancel&&s.cancel()}),a.resultPromise}return s.fetchJSON=function(e){return u(j.appendUrlPath(r,e),null)},s.fetchFlagSettings=function(e,t){let s,l,c="";return i?(s=[r,"/sdk/evalx/",n,"/context"].join(""),l=JSON.stringify(e)):s=[r,"/sdk/evalx/",n,"/contexts/",j.base64URLEncode(JSON.stringify(e))].join(""),t&&(c="h="+t),o&&(c=c+(c?"&":"")+"withReasons=true"),s=s+(c?"?":"")+c,a.debug(et.debugPolling(s)),u(s,l)},s},eY=function(e,t){let n;let r={};return r.setContext=function(e){(n=j.sanitizeContext(e))&&t&&t(j.clone(n))},r.getContext=function(){return n?j.clone(n):null},e&&r.setContext(e),r};let{v1:eZ}=K,{getContextKinds:eK}=ev;var eJ=function(e){function t(e){return null==e||"user"===e?"ld:$anonUserId":`ld:$contextKey:${e}`}function n(n,r){return null!==r.key&&void 0!==r.key?(r.key=r.key.toString(),Promise.resolve(r)):r.anonymous?e.get(t(n)).then(i=>{if(i)return r.key=i,r;{let i=eZ();return r.key=i,e.set(t(n),i).then(()=>r)}}):Promise.reject(new c.LDInvalidUserError(et.invalidContext()))}this.processContext=e=>{if(!e)return Promise.reject(new c.LDInvalidUserError(et.contextNotSpecified()));let t=j.clone(e);if("multi"===e.kind){let e=eK(t);return Promise.all(e.map(e=>n(e,t[e]))).then(()=>t)}return n(e.kind,t)}};let{v1:eX}=K,{baseOptionDefs:eQ}=es,{appendUrlPath:e0}=j;var e1={DiagnosticId:function(e){let t={diagnosticId:eX()};return e&&(t.sdkKeySuffix=e.length>6?e.substring(e.length-6):e),t},DiagnosticsAccumulator:function(e){let t,n,r,i;function o(e){t=e,n=0,r=0,i=[]}return o(e),{getProps:()=>({dataSinceDate:t,droppedEvents:n,eventsInLastBatch:r,streamInits:i}),setProps:e=>{t=e.dataSinceDate,n=e.droppedEvents||0,r=e.eventsInLastBatch||0,i=e.streamInits||[]},incrementDroppedEvents:()=>{n++},setEventsInLastBatch:e=>{r=e},recordStreamInit:(e,t,n)=>{i.push({timestamp:e,failed:t,durationMillis:n})},reset:o}},DiagnosticsManager:function(e,t,n,r,i,o,a){let s=!!e.diagnosticUseCombinedEvent,l="ld:"+i+":$diagnostics",u=e0(o.eventsUrl,"/events/diagnostic/"+i),c=o.diagnosticRecordingInterval,d,h,p=!!o.streaming,f={};function m(){return{sdk:function(){let t={...e.diagnosticSdkData};return o.wrapperName&&(t.wrapperName=o.wrapperName),o.wrapperVersion&&(t.wrapperVersion=o.wrapperVersion),t}(),configuration:{customBaseURI:o.baseUrl!==eQ.baseUrl.default,customStreamURI:o.streamUrl!==eQ.streamUrl.default,customEventsURI:o.eventsUrl!==eQ.eventsUrl.default,eventsCapacity:o.eventCapacity,eventsFlushIntervalMillis:o.flushInterval,reconnectTimeMillis:o.streamReconnectDelay,streamingDisabled:!p,allAttributesPrivate:!!o.allAttributesPrivate,diagnosticRecordingIntervalMillis:o.diagnosticRecordingInterval,usingSecureMode:!!o.hash,bootstrapMode:!!o.bootstrap,fetchGoalsDisabled:!o.fetchGoals,sendEventsOnlyForVariation:!!o.sendEventsOnlyForVariation},platform:e.diagnosticPlatformData}}function g(e){o.logger&&o.logger.debug(et.debugPostingDiagnosticEvent(e)),r.sendEvents(e,u,!0).then(()=>{}).catch(()=>{})}function v(){g(function(){let e=(new Date).getTime(),t={kind:s?"diagnostic-combined":"diagnostic",id:a,creationDate:e,...n.getProps()};return s&&(t={...t,...m()}),n.reset(e),t}()),h=setTimeout(v,c),d=(new Date).getTime(),s&&function(){if(t.isEnabled()){let e={...n.getProps()};t.set(l,JSON.stringify(e))}}()}return f.start=()=>{s?function(e){if(!t.isEnabled())return e(!1);t.get(l).then(t=>{if(t)try{let e=JSON.parse(t);n.setProps(e),d=e.dataSinceDate}catch(e){}e(!0)}).catch(()=>{e(!1)})}(e=>{if(e){let e=(d||0)+c,t=(new Date).getTime();t>=e?v():h=setTimeout(v,e-t)}else 0===Math.floor(4*Math.random())?v():h=setTimeout(v,c)}):(g({kind:"diagnostic-init",id:a,creationDate:n.getProps().dataSinceDate,...m()}),h=setTimeout(v,c))},f.stop=()=>{h&&clearTimeout(h)},f.setStreaming=e=>{p=e},f}},e2=function(e,t){let n=!1,r={type:e.type,name:e.name,method:(...i)=>{try{e.method(...i)}catch{n||(n=!0,t.warn(et.inspectorMethodError(r.type,r.name)))}}};return r};let{onNextTick:e3}=j,e5={flagUsed:"flag-used",flagDetailsChanged:"flag-details-changed",flagDetailChanged:"flag-detail-changed",clientIdentityChanged:"client-identity-changed"};Object.freeze(e5);let{commonBasicLogger:e4}=X,{checkContext:e6,getContextKeys:e8}=ev,{InspectorTypes:e9,InspectorManager:e7}={InspectorTypes:e5,InspectorManager:function(e,t){let n={},r={[e5.flagUsed]:[],[e5.flagDetailsChanged]:[],[e5.flagDetailChanged]:[],[e5.clientIdentityChanged]:[]},i=e?.map(e=>e2(e,t));return i.forEach(e=>{Object.prototype.hasOwnProperty.call(r,e.type)?r[e.type].push(e):t.warn(et.invalidInspector(e.type,e.name))}),n.hasListeners=e=>r[e]?.length,n.onFlagUsed=(e,t,n)=>{r[e5.flagUsed].length&&e3(()=>{r[e5.flagUsed].forEach(r=>r.method(e,t,n))})},n.onFlags=e=>{r[e5.flagDetailsChanged].length&&e3(()=>{r[e5.flagDetailsChanged].forEach(t=>t.method(e))})},n.onFlagChanged=(e,t)=>{r[e5.flagDetailChanged].length&&e3(()=>{r[e5.flagDetailChanged].forEach(n=>n.method(e,t))})},n.onIdentityChanged=e=>{r[e5.clientIdentityChanged].length&&e3(()=>{r[e5.clientIdentityChanged].forEach(t=>t.method(e))})},n}},te="change",tt="internal-change";var tn={initialize:function(e,t,n,r,i){let o=n&&n.logger?n.logger:i&&i.logger&&i.logger.default||e4("warn"),a=eO(o),s=eR(a),l=es.validate(n,a,i,o),u=e7(l.inspectors,o),d=l.sendEvents,h=e,p=l.hash,f=eF(r.localStorage,o),m=ep(r,h,l),g=l.sendEvents&&!l.diagnosticOptOut,v=g?e1.DiagnosticId(h):null,y=g?e1.DiagnosticsAccumulator((new Date).getTime()):null,b=g?e1.DiagnosticsManager(r,f,y,m,h,l,v):null,k=eq(r,l,h,y),w=l.eventProcessor||ej(r,l,h,y,a,m),x=eG(r,l,h),_,S,E,D={},C=l.streaming,O=!1,T=!1,A=!0,P=l.stateProvider,R=eY(null,function(e){!P&&e&&N({kind:"identify",context:e,creationDate:(new Date).getTime()}),u.hasListeners(e9.clientIdentityChanged)&&u.onIdentityChanged(R.getContext())}),M=new eJ(f),F=f.isEnabled()?eM(f,h,p,R):null;function N(e){h&&(P&&P.enqueueEvent&&P.enqueueEvent(e)||(e.context?(A=!1,!d||T||r.isDoNotTrack()||(o.debug(et.debugEnqueueingEvent(e.kind)),w.enqueue(e))):A&&(o.warn(et.eventWithoutContext()),A=!1)))}function I(e,t){u.hasListeners(e9.flagDetailChanged)&&u.onFlagChanged(e.key,q(t))}function L(){u.hasListeners(e9.flagDetailsChanged)&&u.onFlags(Object.entries(D).map(([e,t])=>({key:e,detail:q(t)})).reduce((e,t)=>(e[t.key]=t.detail,e),{}))}function B(e,t,n,r){let i=R.getContext(),o=new Date,a={kind:"feature",key:e,context:i,value:t?t.value:null,variation:t?t.variationIndex:null,default:n,creationDate:o.getTime()},s=D[e];s&&(a.version=s.flagVersion?s.flagVersion:s.version,a.trackEvents=s.trackEvents,a.debugEventsUntilDate=s.debugEventsUntilDate),(r||s&&s.trackReason)&&t&&(a.reason=t.reason),N(a)}function z(e){return e6(e,!1)?Promise.resolve(e):Promise.reject(new c.LDInvalidUserError(et.invalidContext()))}function U(e,t,n,r,i){var o;let a;if(D&&j.objectHasOwnProperty(D,e)&&D[e]&&!D[e].deleted){let n=D[e];a=q(n),null!==n.value&&void 0!==n.value||(a.value=t)}else a={value:t,variationIndex:null,reason:{kind:"ERROR",errorKind:"FLAG_NOT_FOUND"}};return n&&B(e,a,t,r),i||(o=a,u.hasListeners(e9.flagUsed)&&u.onFlagUsed(e,o,R.getContext())),a}function q(e){return{value:e.value,variationIndex:void 0===e.variation?null:e.variation,reason:e.reason||null}}function $(){if(S=!0,!R.getContext())return;let e=e=>{try{return JSON.parse(e)}catch(e){return void a.maybeReportError(new c.LDInvalidDataError(et.invalidData()))}};k.connect(R.getContext(),p,{ping:function(){o.debug(et.debugStreamPing());let e=R.getContext();x.fetchFlagSettings(e,p).then(t=>{j.deepEquals(e,R.getContext())&&V(t||{})}).catch(e=>{a.maybeReportError(new c.LDFlagFetchError(et.errorFetchingFlags(e)))})},put:function(t){let n=e(t.data);n&&(o.debug(et.debugStreamPut()),V(n))},patch:function(t){let n=e(t.data);if(!n)return;let r=D[n.key];if(r&&r.version&&n.version&&!(r.version{})}function W(e){let t=Object.keys(e);if(t.length>0){let n={};t.forEach(t=>{let r=e[t].current,i=r?r.value:void 0,o=e[t].previous;a.emit(te+":"+t,i,o),n[t]=r?{current:i,previous:o}:{previous:o}}),a.emit(te,n),a.emit(tt,D),l.sendEventsOnlyForVariation||P||t.forEach(t=>{B(t,e[t].current)})}return _&&F?F.saveFlags(D):Promise.resolve()}function G(){let e=C||E&&void 0===C;e&&!S?$():!e&&S&&H(),b&&b.setStreaming(e)}function Y(e){return e===te||e.substr(0,te.length+1)===te+":"}if("string"==typeof l.bootstrap&&"LOCALSTORAGE"===l.bootstrap.toUpperCase()&&(F?_=!0:o.warn(et.localStorageUnavailable())),"object"==typeof l.bootstrap&&(D=function(e){let t=Object.keys(e),n="$flagsState",r="$valid",i=e[n];!i&&t.length&&o.warn(et.bootstrapOldFormat()),!1===e[r]&&o.warn(et.bootstrapInvalid());let a={};return t.forEach(t=>{if(t!==n&&t!==r){let n={value:e[t]};i&&i[t]?n=j.extend(n,i[t]):n.version=0,a[t]=n}}),a}(l.bootstrap)),P){let e=P.getInitialState();e?Z(e):P.on("init",Z),P.on("update",function(e){e.context&&R.setContext(e.context),e.flags&&V(e.flags)})}else(e?M.processContext(t).then(z).then(e=>(R.setContext(e),"object"==typeof l.bootstrap?K():_?F.loadFlags().then(e=>null==e?(D={},x.fetchFlagSettings(R.getContext(),p).then(e=>V(e||{})).then(K).catch(e=>{J(new c.LDFlagFetchError(et.errorFetchingFlags(e)))})):(D=e,j.onNextTick(K),x.fetchFlagSettings(R.getContext(),p).then(e=>V(e)).catch(e=>a.maybeReportError(e)))):x.fetchFlagSettings(R.getContext(),p).then(e=>{D=e||{},L(),K()}).catch(e=>{D={},J(e)}))):Promise.reject(new c.LDInvalidEnvironmentIdError(et.environmentNotSpecified()))).catch(J);function Z(e){h=e.environment,R.setContext(e.context),D={...e.flags},j.onNextTick(K)}function K(){o.info(et.clientInitialized()),O=!0,G(),s.signalSuccess()}function J(e){s.signalFailure(e)}return{client:{waitForInitialization:()=>s.getInitializationPromise(),waitUntilReady:()=>s.getReadyPromise(),identify:function(e,t,n){if(T)return j.wrapPromiseCallback(Promise.resolve({}),n);if(P)return o.warn(et.identifyDisabled()),j.wrapPromiseCallback(Promise.resolve(j.transformVersionedValuesToValues(D)),n);let r=_&&F?F.clearFlags():Promise.resolve();return j.wrapPromiseCallback(r.then(()=>M.processContext(e)).then(z).then(e=>x.fetchFlagSettings(e,t).then(n=>{let r=j.transformVersionedValuesToValues(n);return R.setContext(e),p=t,n?V(n).then(()=>r):r})).then(e=>(S&&$(),e)).catch(e=>(a.maybeReportError(e),Promise.reject(e))),n)},getContext:function(){return R.getContext()},variation:function(e,t){return U(e,t,!0,!1,!1).value},variationDetail:function(e,t){return U(e,t,!0,!0,!1)},track:function(e,t,n){if("string"!=typeof e)return void a.maybeReportError(new c.LDInvalidEventKeyError(et.unknownCustomEventKey(e)));r.customEventFilter&&!r.customEventFilter(e)&&o.warn(et.unknownCustomEventKey(e));let i=R.getContext(),s={kind:"custom",key:e,context:i,url:r.getCurrentUrl(),creationDate:(new Date).getTime()};i&&i.anonymous&&(s.contextKind=i.anonymous?"anonymousUser":"user"),null!=t&&(s.data=t),null!=n&&(s.metricValue=n),N(s)},on:function(e,t,n){Y(e)?(E=!0,O&&G(),a.on(e,t,n)):a.on(...arguments)},off:function(e){if(a.off(...arguments),Y(e)){let e=!1;a.getEvents().forEach(t=>{Y(t)&&a.getEventListenerCount(t)>0&&(e=!0)}),e||(E=!1,S&&void 0===C&&H())}},setStreaming:function(e){let t=null===e?void 0:e;t!==C&&(C=t,G())},flush:function(e){return j.wrapPromiseCallback(d?w.flush():Promise.resolve(),e)},allFlags:function(){let e={};if(!D)return e;for(let t in D)j.objectHasOwnProperty(D,t)&&!D[t].deleted&&(e[t]=U(t,null,!l.sendEventsOnlyForVariation,!1,!0).value);return e},close:function(e){if(T)return j.wrapPromiseCallback(Promise.resolve(),e);let t=()=>{T=!0,D={}},n=Promise.resolve().then(()=>{if(H(),b&&b.stop(),d)return w.stop(),w.flush()}).then(t).catch(t);return j.wrapPromiseCallback(n,e)}},options:l,emitter:a,ident:R,logger:o,requestor:x,start:function(){d&&(b&&b.start(),w.start())},enqueueEvent:N,getFlagsInternal:function(){return D},getEnvironmentId:()=>h,internalChangeEventName:tt}},commonBasicLogger:e4,errors:c,messages:et,getContextKeys:e8};tn.initialize,tn.errors,tn.messages,tn.getContextKeys,tn.commonBasicLogger,Promise.resolve({status:200,header:function(){return null},body:null})},3349:function(e,t,n){"use strict";var r=n(34406),i=n(139),o=n(38398),a=n(15153),s=n(22699);function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=l(i),c=l(o),d=l(a),h=Object.prototype.hasOwnProperty,p=Object.prototype.toString,f=Object.defineProperty,m=Object.getOwnPropertyDescriptor,g=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===p.call(e)},v=function(e){if(!e||"[object Object]"!==p.call(e))return!1;var t,n=h.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&h.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||h.call(e,t)},y=function(e,t){f&&"__proto__"===t.name?f(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},b=function(e,t){if("__proto__"===t){if(!h.call(e,t))return;if(m)return m(e,t).value}return e[t]},k=function e(){var t,n,r,i,o,a,s=arguments[0],l=1,u=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});le.reduce((e,n)=>e.then(()=>t(n)),Promise.resolve()),j=(e,t,n,r)=>{let i=Object.create(null);return e.forEach(e=>{let o=t(e);i[o]?r(i[o],e):i[o]=n(e)}),i};class O{constructor(e){this.batches=j(e,e=>`${e.apiHost}_${e.writeKey}_${e.dataset}`,e=>({apiHost:e.apiHost,writeKey:e.writeKey,dataset:e.dataset,events:[e]}),(e,t)=>e.events.push(t))}encodeBatchEvents(e){let t=!0,n=0;return{encoded:"["+e.reduce((e,r)=>{try{let i=JSON.stringify(r);n++;let o=e+(t?"":",")+i;return t=!1,o}catch(t){return r.encodeError=t,e}},"")+"]",numEncoded:n}}}class T{constructor({timestamp:e,apiHost:t,postData:n,writeKey:r,dataset:i,sampleRate:o,metadata:a}){this.timestamp=e,this.apiHost=t,this.postData=n,this.writeKey=r,this.dataset=i,this.sampleRate=o,this.metadata=a}toJSON(){let e={};return this.timestamp&&(e.time=this.timestamp),this.sampleRate&&(e.samplerate=this.sampleRate),this.postData&&(e.data=this.postData),e}toBrokenJSON(){let e=[];return this.timestamp&&e.push(`"time":${JSON.stringify(this.timestamp)}`),this.sampleRate&&e.push(`"samplerate":${JSON.stringify(this.sampleRate)}`),this.postData&&e.push(`"data":${JSON.stringify(this.postData)}`),`{${e.join(",")}}`}}class A{constructor(e){this.constructorArg=e,this.events=[]}sendEvent(e){this.events.push(e)}sendPresampledEvent(e){this.events.push(e)}reset(){this.constructorArg=null,this.events=[]}}class P{sendEvent(e){console.log(JSON.stringify(e.toBrokenJSON()))}sendPresampledEvent(e){console.log(JSON.stringify(e.toBrokenJSON()))}}class R{sendEvent(e){console.log(JSON.stringify(e))}sendPresampledEvent(e){console.log(JSON.stringify(e))}}class M{sendEvent(e){r.stdout.write(JSON.stringify(e)+"\n")}sendPresampledEvent(e){r.stdout.write(JSON.stringify(e)+"\n")}}class F{sendEvent(e){}sendPresampledEvent(e){}}class N{constructor(e){this._responseCallback=D,this._batchSizeTrigger=50,this._batchTimeTrigger=100,this._maxConcurrentBatches=10,this._pendingWorkCapacity=1e4,this._timeout=6e4,this._sendTimeoutId=-1,this._eventQueue=[],this._batchCount=0,"function"==typeof e.responseCallback&&(this._responseCallback=e.responseCallback),"number"==typeof e.batchSizeTrigger&&(this._batchSizeTrigger=Math.max(e.batchSizeTrigger,1)),"number"==typeof e.batchTimeTrigger&&(this._batchTimeTrigger=e.batchTimeTrigger),"number"==typeof e.maxConcurrentBatches&&(this._maxConcurrentBatches=e.maxConcurrentBatches),"number"==typeof e.pendingWorkCapacity&&(this._pendingWorkCapacity=e.pendingWorkCapacity),"number"==typeof e.timeout&&(this._timeout=e.timeout),this._userAgentAddition=e.userAgentAddition||"",this._proxy=e.proxy,this._randomFn=Math.random}_droppedCallback(e,t){this._responseCallback([{metadata:e.metadata,error:Error(t)}])}sendEvent(e){if(!this._shouldSendEvent(e)){this._droppedCallback(e,"event dropped due to sampling");return}this.sendPresampledEvent(e)}sendPresampledEvent(e){if(this._eventQueue.length>=this._pendingWorkCapacity){this._droppedCallback(e,"queue overflow");return}this._eventQueue.push(e),this._eventQueue.length>=this._batchSizeTrigger?this._sendBatch():this._ensureSendTimeout()}flush(){return 0===this._eventQueue.length&&0===this._batchCount?Promise.resolve():new Promise(e=>{this.flushCallback=()=>{this.flushCallback=null,e()}})}_sendBatch(){if(10===this._batchCount)return;this._clearSendTimeout(),this._batchCount++;let e=new O(this._eventQueue.splice(0,this._batchSizeTrigger)),t=()=>{this._batchCount--;let e=this._eventQueue.length;if(e>0){e>=this._batchSizeTrigger?this._sendBatch():this._ensureSendTimeout();return}0===this._batchCount&&this.flushCallback&&this.flushCallback()};C(Object.keys(e.batches).map(t=>e.batches[t]),t=>{let n,r=_(t.apiHost,"/1/batch",t.dataset);n=Promise.resolve({req:u.default.post(r)});let{encoded:i,numEncoded:o}=e.encodeBatchEvents(t.events);return n.then(({req:e})=>new Promise(n=>{if(0===o){this._responseCallback(t.events.map(e=>({metadata:e.metadata,error:e.encodeError}))),n();return}let r=S,a=this._userAgentAddition.trim();a&&(r=`${S} ${a}`);let s=Date.now();e.set("X-Honeycomb-Team",t.writeKey).set("X-Honeycomb-UserAgent",r).type("json").timeout(this._timeout).send(i).end((e,r)=>{let i=Date.now();if(e)this._responseCallback(t.events.map(t=>({status_code:t.encodeError?void 0:e.status,duration:i-s,metadata:t.metadata,error:t.encodeError||e})));else{let e=JSON.parse(r.text),n=0;this._responseCallback(t.events.map(t=>{if(t.encodeError)return{duration:i-s,metadata:t.metadata,error:t.encodeError};{let r=e[n++];return{status_code:r.status,duration:i-s,metadata:t.metadata,error:r.err}}}))}n()})}))}).then(t).catch(t)}_shouldSendEvent(e){let{sampleRate:t}=e;return t<=1||this._randomFn()<1/t}_ensureSendTimeout(){-1===this._sendTimeoutId&&(this._sendTimeoutId=E.setTimeout(()=>this._sendBatch(),this._batchTimeTrigger))}_clearSendTimeout(){-1!==this._sendTimeoutId&&(E.clearTimeout(this._sendTimeoutId),this._sendTimeoutId=-1)}}function I(e,t){e&&(e instanceof Map?e.forEach(t):Object.getOwnPropertyNames(e).forEach(n=>t(e[n],n)))}class L{constructor(e,t,n){this.data=Object.create(null),this.metadata=null,this.apiHost="",this.writeKey="",this.dataset="",this.sampleRate=1,this.timestamp=null,I(t,(e,t)=>this.addField(t,e)),I(n,(e,t)=>this.addField(t,e())),this._libhoney=e}add(e){return I(e,(e,t)=>this.addField(t,e)),this}addField(e,t){return void 0===t?this.data[e]=null:this.data[e]=t,this}addMetadata(e){return this.metadata=e,this}send(){this._libhoney.sendEvent(this)}sendPresampled(){this._libhoney.sendPresampledEvent(this)}}class B{constructor(e,t,n){this._libhoney=e,this._fields=Object.create(null),this._dynFields=Object.create(null),this.apiHost="",this.writeKey="",this.dataset="",this.sampleRate=1,I(t,(e,t)=>this.addField(t,e)),I(n,(e,t)=>this.addDynamicField(t,e))}add(e){return I(e,(e,t)=>this.addField(t,e)),this}addField(e,t){return void 0===t?this._fields[e]=null:this._fields[e]=t,this}addDynamicField(e,t){return this._dynFields[e]=t,this}sendNow(e){let t=this.newEvent();t.add(e),t.send()}newEvent(){let e=new L(this._libhoney,this._fields,this._dynFields);return e.apiHost=this.apiHost,e.writeKey=this.writeKey,e.dataset=this.dataset,e.sampleRate=this.sampleRate,e}newBuilder(e,t){let n=new B(this._libhoney,this._fields,this._dynFields);return I(e,(e,t)=>n.addField(t,e)),I(t,(e,t)=>n.addDynamicField(t,e)),n.apiHost=this.apiHost,n.writeKey=this.writeKey,n.dataset=this.dataset,n.sampleRate=this.sampleRate,n}}let z=Object.freeze({apiHost:"https://api.honeycomb.io/",proxy:void 0,sampleRate:1,transmission:"base",batchSizeTrigger:50,batchTimeTrigger:100,maxConcurrentBatches:10,pendingWorkCapacity:1e4,maxResponseQueueSize:1e3,timeout:6e4,disabled:!1,userAgentAddition:""});class U extends s.EventEmitter{constructor(e){super(),this._options=Object.assign({responseCallback:this._responseCallback.bind(this)},z,e),this._transmission=$(this._options.transmission,this._options),this._usable=null!==this._transmission,this._builder=new B(this),this._builder.apiHost=this._options.apiHost,this._builder.writeKey=this._options.writeKey,this._builder.dataset=this._options.dataset,this._builder.sampleRate=this._options.sampleRate,this._responseQueue=[]}_responseCallback(e){let[t,n]=[this._responseQueue,this._options.maxResponseQueueSize];this._responseQueue=function(e,t,n){if(e.length>=n)return e.slice(0,n);if(e.length+t.length>n){let r=n-e.length,i=t.slice(0,r);return e.concat(i)}return e.concat(t)}(t,e,n),this.emit("response",this._responseQueue)}get transmission(){return this._transmission}set apiHost(e){this._builder.apiHost=e}get apiHost(){return this._builder.apiHost}set writeKey(e){this._builder.writeKey=e}get writeKey(){return this._builder.writeKey}set dataset(e){this._builder.dataset=e}get dataset(){return this._builder.dataset}set sampleRate(e){this._builder.sampleRate=e}get sampleRate(){return this._builder.sampleRate}sendEvent(e){let t=this.validateEvent(e);t&&this._transmission.sendEvent(t)}sendPresampledEvent(e){let t=this.validateEvent(e);t&&this._transmission.sendPresampledEvent(t)}validateEvent(e){let t;if(!this._usable)return null;let n=e.timestamp||Date.now();if(("string"==typeof n||"number"==typeof n)&&(n=new Date(n)),"object"!=typeof e.data||null===e.data)return console.error(".data must be an object"),null;try{t=JSON.parse(JSON.stringify(e.data))}catch(e){return console.error("error cloning event data: "+e),null}let r=e.apiHost;if("string"!=typeof r||""===r)return console.error(".apiHost must be a non-empty string"),null;let i=e.writeKey;if("string"!=typeof i||""===i)return console.error(".writeKey must be a non-empty string"),null;let o=e.dataset;if("string"!=typeof o||""===o)return console.error(".dataset must be a non-empty string"),null;let a=e.sampleRate;if("number"!=typeof a)return console.error(".sampleRate must be a number"),null;let s=e.metadata;return new T({timestamp:n,apiHost:r,postData:t,writeKey:i,dataset:o,sampleRate:a,metadata:s})}add(e){return this._builder.add(e),this}addField(e,t){return this._builder.addField(e,t),this}addDynamicField(e,t){return this._builder.addDynamicField(e,t),this}sendNow(e){return this._builder.sendNow(e)}newEvent(){return this._builder.newEvent()}newBuilder(e,t){return this._builder.newBuilder(e,t)}flush(){let e=this._transmission;return this._transmission=$(this._options.transmission,this._options),e.flush()}}let q=e=>{switch(e){case"base":return N;case"mock":return A;case"null":return F;case"worker":return console.warn("worker implementation not ready yet. using base implementation"),N;case"writer":return console.warn("writer implementation is deprecated. Please switch to console implementation."),P;case"console":return R;case"stdout":return M;default:throw Error(`unknown transmission implementation "${e}".`)}};function $(e,t){if(t.disabled)return null;if("string"==typeof e){let n=q(e);return new n(t)}if("function"!=typeof e)throw Error(".transmission must be one of 'base'/'worker'/'mock'/'writer'/'console'/'stdout'/'null' or a constructor.");try{return new e(t)}catch(n){if(e===N)throw Error("unable to initialize base transmission implementation.",n);console.warn("failed to initialize transmission, falling back to base implementation.");try{return new N(t)}catch(e){throw Error("unable to initialize base transmission implementation.",e)}}}e.exports=U},80594:function(e,t,n){var r=0/0,i=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,s=/^0o[0-7]+$/i,l=parseInt,u="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,c="object"==typeof self&&self&&self.Object===Object&&self,d=u||c||Function("return this")(),h=Object.prototype.toString,p=Math.max,f=Math.min,m=function(){return d.Date.now()};function g(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function v(e){if("number"==typeof e)return e;if("symbol"==typeof(t=e)||t&&"object"==typeof t&&"[object Symbol]"==h.call(t))return r;if(g(e)){var t,n="function"==typeof e.valueOf?e.valueOf():e;e=g(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var u=a.test(e);return u||s.test(e)?l(e.slice(2),u?2:8):o.test(e)?r:+e}e.exports=function(e,t,n){var r,i,o,a,s,l,u=0,c=!1,d=!1,h=!0;if("function"!=typeof e)throw TypeError("Expected a function");function y(t){var n=r,o=i;return r=i=void 0,u=t,a=e.apply(o,n)}function b(e){var n=e-l,r=e-u;return void 0===l||n>=t||n<0||d&&r>=o}function k(){var e,n,r,i=m();if(b(i))return w(i);s=setTimeout(k,(e=i-l,n=i-u,r=t-e,d?f(r,o-n):r))}function w(e){return(s=void 0,h&&r)?y(e):(r=i=void 0,a)}function x(){var e,n=m(),o=b(n);if(r=arguments,i=this,l=n,o){if(void 0===s)return u=e=l,s=setTimeout(k,t),c?y(e):a;if(d)return s=setTimeout(k,t),y(l)}return void 0===s&&(s=setTimeout(k,t)),a}return t=v(t)||0,g(n)&&(c=!!n.leading,o=(d="maxWait"in n)?p(v(n.maxWait)||0,t):o,h="trailing"in n?!!n.trailing:h),x.cancel=function(){void 0!==s&&clearTimeout(s),u=0,r=l=i=s=void 0},x.flush=function(){return void 0===s?a:w(m())},x}},63637:function(e,t,n){e=n.nmd(e);var r,i,o,a,s,l,u,c,d,h,p="__lodash_hash_undefined__",f="[object Arguments]",m="[object Function]",g="[object Object]",v=/^\[object .+?Constructor\]$/,y=/^(?:0|[1-9]\d*)$/,b={};b["[object Float32Array]"]=b["[object Float64Array]"]=b["[object Int8Array]"]=b["[object Int16Array]"]=b["[object Int32Array]"]=b["[object Uint8Array]"]=b["[object Uint8ClampedArray]"]=b["[object Uint16Array]"]=b["[object Uint32Array]"]=!0,b[f]=b["[object Array]"]=b["[object ArrayBuffer]"]=b["[object Boolean]"]=b["[object DataView]"]=b["[object Date]"]=b["[object Error]"]=b[m]=b["[object Map]"]=b["[object Number]"]=b[g]=b["[object RegExp]"]=b["[object Set]"]=b["[object String]"]=b["[object WeakMap]"]=!1;var k="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,w="object"==typeof self&&self&&self.Object===Object&&self,x=k||w||Function("return this")(),_=t&&!t.nodeType&&t,S=_&&e&&!e.nodeType&&e,E=S&&S.exports===_,D=E&&k.process,C=function(){try{var e=S&&S.require&&S.require("util").types;if(e)return e;return D&&D.binding&&D.binding("util")}catch(e){}}(),j=C&&C.isTypedArray,O=Array.prototype,T=Function.prototype,A=Object.prototype,P=x["__core-js_shared__"],R=T.toString,M=A.hasOwnProperty,F=(l=/[^.]+$/.exec(P&&P.keys&&P.keys.IE_PROTO||""))?"Symbol(src)_1."+l:"",N=A.toString,I=R.call(Object),L=RegExp("^"+R.call(M).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),B=E?x.Buffer:void 0,z=x.Symbol,U=x.Uint8Array,q=B?B.allocUnsafe:void 0,$=(u=Object.getPrototypeOf,c=Object,function(e){return u(c(e))}),H=Object.create,V=A.propertyIsEnumerable,W=O.splice,G=z?z.toStringTag:void 0,Y=function(){try{var e=eh(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Z=B?B.isBuffer:void 0,K=Math.max,J=Date.now,X=eh(x,"Map"),Q=eh(Object,"create"),ee=function(){function e(){}return function(t){if(!eS(t))return{};if(H)return H(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function et(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1},en.prototype.set=function(e,t){var n=this.__data__,r=ea(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},er.prototype.clear=function(){this.size=0,this.__data__={hash:new et,map:new(X||en),string:new et}},er.prototype.delete=function(e){var t=ed(this,e).delete(e);return this.size-=t?1:0,t},er.prototype.get=function(e){return ed(this,e).get(e)},er.prototype.has=function(e){return ed(this,e).has(e)},er.prototype.set=function(e,t){var n=ed(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},ei.prototype.clear=function(){this.__data__=new en,this.size=0},ei.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},ei.prototype.get=function(e){return this.__data__.get(e)},ei.prototype.has=function(e){return this.__data__.has(e)},ei.prototype.set=function(e,t){var n=this.__data__;if(n instanceof en){var r=n.__data__;if(!X||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new er(r)}return n.set(e,t),this.size=n.size,this};var el=function(e,t,n){for(var r=-1,i=Object(e),o=n(e),a=o.length;a--;){var s=o[++r];if(!1===t(i[s],s,i))break}return e};function eu(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":G&&G in Object(e)?function(e){var t=M.call(e,G),n=e[G];try{e[G]=void 0;var r=!0}catch(e){}var i=N.call(e);return r&&(t?e[G]=n:delete e[G]),i}(e):N.call(e)}function ec(e){return eE(e)&&eu(e)==f}function ed(e,t){var n,r=e.__data__;return("string"==(n=typeof t)||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==t:null===t)?r["string"==typeof t?"string":"hash"]:r.map}function eh(e,t){var n=null==e?void 0:e[t];return!(!eS(n)||F&&F in n)&&(ex(n)?L:v).test(function(e){if(null!=e){try{return R.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(n))?n:void 0}function ep(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&y.test(e))&&e>-1&&e%1==0&&e0){if(++i>=800)return arguments[0]}else i=0;return r.apply(void 0,arguments)});function ev(e,t){return e===t||e!=e&&t!=t}var ey=ec(function(){return arguments}())?ec:function(e){return eE(e)&&M.call(e,"callee")&&!V.call(e,"callee")},eb=Array.isArray;function ek(e){return null!=e&&e_(e.length)&&!ex(e)}var ew=Z||function(){return!1};function ex(e){if(!eS(e))return!1;var t=eu(e);return t==m||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function e_(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function eS(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function eE(e){return null!=e&&"object"==typeof e}var eD=j?function(e){return j(e)}:function(e){return eE(e)&&e_(e.length)&&!!b[eu(e)]};function eC(e){return ek(e)?function(e,t){var n=eb(e),r=!n&&ey(e),i=!n&&!r&&ew(e),o=!n&&!r&&!i&&eD(e),a=n||r||i||o,s=a?function(e,t){for(var n=-1,r=Array(e);++n1?t[r-1]:void 0,o=r>2?t[2]:void 0;for(i=d.length>3&&"function"==typeof i?(r--,i):void 0,o&&function(e,t,n){if(!eS(n))return!1;var r=typeof t;return("number"==r?!!(ek(n)&&ep(t,n.length)):"string"==r&&(t in n))&&ev(n[t],e)}(t[0],t[1],o)&&(i=r<3?void 0:i,r=1),e=Object(e);++n=t||n<0||h&&r>=a}function w(){var e,n,r,i=g();if(k(i))return x(i);l=setTimeout(w,(e=i-u,n=i-c,r=t-e,h?m(r,a-n):r))}function x(e){return(l=void 0,p&&i)?b(e):(i=o=void 0,s)}function _(){var e,n=g(),r=k(n);if(i=arguments,o=this,u=n,r){if(void 0===l)return c=e=u,l=setTimeout(w,t),d?b(e):s;if(h)return l=setTimeout(w,t),b(u)}return void 0===l&&(l=setTimeout(w,t)),s}return t=y(t)||0,v(n)&&(d=!!n.leading,a=(h="maxWait"in n)?f(y(n.maxWait)||0,t):a,p="trailing"in n?!!n.trailing:p),_.cancel=function(){void 0!==l&&clearTimeout(l),c=0,i=u=o=l=void 0},_.flush=function(){return void 0===l?s:x(g())},_}(e,t,{leading:i,maxWait:t,trailing:o})}},39515:function(e,t,n){var r=n(38761)(n(37772),"DataView");e.exports=r},89612:function(e,t,n){var r=n(52118),i=n(96909),o=n(98138),a=n(4174),s=n(7942);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1}},34893:function(e){e.exports=function(e,t,n){for(var r=-1,i=null==e?0:e.length;++r=t?e:t)),e}},18874:function(e,t,n){var r=n(86571),i=n(72517),o=n(60091),a=n(67993),s=n(55906),l=n(92175),u=n(51522),c=n(7680),d=n(19987),h=n(13483),p=n(76939),f=n(70940),m=n(99917),g=n(8222),v=n(78725),y=n(86152),b=n(73226),k=n(4714),w=n(29259),x=n(30194),_=n(90249),S=n(18582),E="[object Arguments]",D="[object Function]",C="[object Object]",j={};j[E]=j["[object Array]"]=j["[object ArrayBuffer]"]=j["[object DataView]"]=j["[object Boolean]"]=j["[object Date]"]=j["[object Float32Array]"]=j["[object Float64Array]"]=j["[object Int8Array]"]=j["[object Int16Array]"]=j["[object Int32Array]"]=j["[object Map]"]=j["[object Number]"]=j[C]=j["[object RegExp]"]=j["[object Set]"]=j["[object String]"]=j["[object Symbol]"]=j["[object Uint8Array]"]=j["[object Uint8ClampedArray]"]=j["[object Uint16Array]"]=j["[object Uint32Array]"]=!0,j["[object Error]"]=j[D]=j["[object WeakMap]"]=!1,e.exports=function e(t,n,O,T,A,P){var R,M=1&n,F=2&n,N=4&n;if(O&&(R=A?O(t,T,A,P):O(t)),void 0!==R)return R;if(!w(t))return t;var I=y(t);if(I){if(R=m(t),!M)return u(t,R)}else{var L=f(t),B=L==D||"[object GeneratorFunction]"==L;if(b(t))return l(t,M);if(L==C||L==E||B&&!A){if(R=F||B?{}:v(t),!M)return F?d(t,s(R,t)):c(t,a(R,t))}else{if(!j[L])return A?t:{};R=g(t,L,M)}}P||(P=new r);var z=P.get(t);if(z)return z;P.set(t,R),x(t)?t.forEach(function(r){R.add(e(r,n,O,r,t,P))}):k(t)&&t.forEach(function(r,i){R.set(i,e(r,n,O,i,t,P))});var U=N?F?p:h:F?S:_,q=I?void 0:U(t);return i(q||t,function(r,i){q&&(r=t[i=r]),o(R,i,e(r,n,O,i,t,P))}),R}},39413:function(e,t,n){var r=n(29259),i=Object.create,o=function(){function e(){}return function(t){if(!r(t))return{};if(i)return i(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=o},24303:function(e,t,n){var r=n(26548),i=n(92019)(r);e.exports=i},2229:function(e,t,n){var r=n(4795);e.exports=function(e,t,n){for(var i=-1,o=e.length;++i0&&o(c)?n>1?e(c,n-1,o,a,s):r(s,c):a||(s[s.length]=c)}return s}},15308:function(e,t,n){var r=n(55463)();e.exports=r},26548:function(e,t,n){var r=n(15308),i=n(90249);e.exports=function(e,t){return e&&r(e,t,i)}},13324:function(e,t,n){var r=n(17297),i=n(33812);e.exports=function(e,t){t=r(t,e);for(var n=0,o=t.length;null!=e&&nt}},20187:function(e){e.exports=function(e,t){return null!=e&&t in Object(e)}},77832:function(e,t,n){var r=n(21359),i=n(22195),o=n(66024);e.exports=function(e,t,n){return t==t?o(e,t,n):r(e,i,n)}},84190:function(e){e.exports=function(e,t,n,r){for(var i=n-1,o=e.length;++i-1;)p!==e&&l.call(p,f,1),l.call(e,f,1);return e}},5809:function(e){var t=Math.floor,n=Math.random;e.exports=function(e,r){return e+t(n()*(r-e+1))}},93228:function(e){var t=Math.ceil,n=Math.max;e.exports=function(e,r,i,o){for(var a=-1,s=n(t((r-e)/(i||1)),0),l=Array(s);s--;)l[o?s:++a]=e,e+=i;return l}},36060:function(e,t,n){var r=n(23059),i=n(43114),o=n(75251);e.exports=function(e,t){return o(i(e,t,r),e+"")}},46543:function(e,t,n){var r=n(33977),i=n(98346);e.exports=function(e){return r(i(e))}},82857:function(e,t,n){var r=n(60091),i=n(17297),o=n(39045),a=n(29259),s=n(33812);e.exports=function(e,t,n,l){if(!a(e))return e;t=i(t,e);for(var u=-1,c=t.length,d=c-1,h=e;null!=h&&++ui?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r=200){var m=t?null:s(e);if(m)return l(m);h=!1,c=a,f=new r}else f=t?[]:p;t:for(;++u=i?e:r(e,t,n)}},79882:function(e,t,n){var r=n(79162);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},92175:function(e,t,n){e=n.nmd(e);var r=n(37772),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}},34727:function(e,t,n){var r=n(79882);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},96058:function(e){var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},70169:function(e,t,n){var r=n(50857),i=r?r.prototype:void 0,o=i?i.valueOf:void 0;e.exports=function(e){return o?Object(o.call(e)):{}}},6190:function(e,t,n){var r=n(79882);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},27520:function(e,t,n){var r=n(4795);e.exports=function(e,t){if(e!==t){var n=void 0!==e,i=null===e,o=e==e,a=r(e),s=void 0!==t,l=null===t,u=t==t,c=r(t);if(!l&&!c&&!a&&e>t||a&&s&&u&&!l&&!c||i&&s&&u||!n&&u||!o)return 1;if(!i&&!a&&!c&&e=l)return u;return u*("desc"==n[i]?-1:1)}}return e.index-t.index}},51522:function(e){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),t=Object(t);++rc))return!1;var h=l.get(e),p=l.get(t);if(h&&p)return h==t&&p==e;var f=-1,m=!0,g=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++f-1&&e%1==0&&e-1}},94769:function(e,t,n){var r=n(22218);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},92411:function(e,t,n){var r=n(89612),i=n(80235),o=n(10326);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},36417:function(e,t,n){var r=n(27937);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},86928:function(e,t,n){var r=n(27937);e.exports=function(e){return r(this,e).get(e)}},79493:function(e,t,n){var r=n(27937);e.exports=function(e){return r(this,e).has(e)}},24150:function(e,t,n){var r=n(27937);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},75179:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}},73477:function(e){e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},77777:function(e,t,n){var r=n(30733);e.exports=function(e){var t=r(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}},99191:function(e,t,n){var r=n(38761)(Object,"create");e.exports=r},54248:function(e,t,n){var r=n(60241)(Object.keys,Object);e.exports=r},62966:function(e){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},4146:function(e,t,n){e=n.nmd(e);var r=n(51242),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i&&r.process,s=function(){try{var e=o&&o.require&&o.require("util").types;if(e)return e;return a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},37157:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},60241:function(e){e.exports=function(e,t){return function(n){return e(t(n))}}},43114:function(e,t,n){var r=n(49432),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var o=arguments,a=-1,s=i(o.length-t,0),l=Array(s);++a0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},85876:function(e,t,n){var r=n(5809);e.exports=function(e,t){var n=-1,i=e.length,o=i-1;for(t=void 0===t?i:t;++n=t||n<0||g&&r>=c}function k(){var e,n,r,o=i();if(b(o))return w(o);h=setTimeout(k,(e=o-p,n=o-f,r=t-e,g?s(r,c-n):r))}function w(e){return(h=void 0,v&&l)?y(e):(l=u=void 0,d)}function x(){var e,n=i(),r=b(n);if(l=arguments,u=this,p=n,r){if(void 0===h)return f=e=p,h=setTimeout(k,t),m?y(e):d;if(g)return clearTimeout(h),h=setTimeout(k,t),y(p)}return void 0===h&&(h=setTimeout(k,t)),d}return t=o(t)||0,r(n)&&(m=!!n.leading,c=(g="maxWait"in n)?a(o(n.maxWait)||0,t):c,v="trailing"in n?!!n.trailing:v),x.cancel=function(){void 0!==h&&clearTimeout(h),f=0,l=p=u=h=void 0},x.flush=function(){return void 0===h?d:w(i())},x}},41225:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},12982:function(e,t,n){var r=n(21359),i=n(68286),o=n(38101),a=Math.max;e.exports=function(e,t,n){var s=null==e?0:e.length;if(!s)return -1;var l=null==n?0:o(n);return l<0&&(l=a(s+l,0)),r(e,i(t,3),l)}},35838:function(e,t,n){var r=n(62034),i=n(16760);e.exports=function(e,t){return r(i(e,t),1)}},35676:function(e,t,n){var r=n(62034);e.exports=function(e){return(null==e?0:e.length)?r(e,1):[]}},72579:function(e,t,n){var r=n(13324);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},3440:function(e,t,n){var r=n(13940),i=n(36740),o=Object.prototype.hasOwnProperty,a=i(function(e,t,n){o.call(e,n)?e[n].push(t):r(e,n,[t])});e.exports=a},95041:function(e,t,n){var r=n(20187),i=n(1369);e.exports=function(e,t){return null!=e&&i(e,t,r)}},23059:function(e){e.exports=function(e){return e}},93493:function(e,t,n){var r=n(77832),i=n(38101),o=Math.max;e.exports=function(e,t,n){var a=null==e?0:e.length;if(!a)return -1;var s=null==n?0:i(n);return s<0&&(s=o(a+s,0)),r(e,t,s)}},79631:function(e,t,n){var r=n(15183),i=n(15125),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},86152:function(e){var t=Array.isArray;e.exports=t},67878:function(e,t,n){var r=n(61049),i=n(61158);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},93746:function(e,t,n){var r=n(67878),i=n(15125);e.exports=function(e){return i(e)&&r(e)}},73226:function(e,t,n){e=n.nmd(e);var r=n(37772),i=n(36330),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,s=a&&a.exports===o?r.Buffer:void 0,l=s?s.isBuffer:void 0;e.exports=l||i},18149:function(e,t,n){var r=n(88746);e.exports=function(e,t){return r(e,t)}},61049:function(e,t,n){var r=n(53366),i=n(29259);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},61158:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},4714:function(e,t,n){var r=n(74511),i=n(47826),o=n(4146),a=o&&o.isMap,s=a?i(a):r;e.exports=s},55461:function(e,t,n){var r=n(37036),i=n(49882);e.exports=function(e,t,n){return n="function"==typeof n?n:void 0,r(e,t,i(t),n)}},1842:function(e){e.exports=function(e){return null==e}},29259:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},15125:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},97030:function(e,t,n){var r=n(53366),i=n(47353),o=n(15125),a=Object.prototype,s=Function.prototype.toString,l=a.hasOwnProperty,u=s.call(Object);e.exports=function(e){if(!o(e)||"[object Object]"!=r(e))return!1;var t=i(e);if(null===t)return!0;var n=l.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&s.call(n)==u}},40859:function(e,t,n){var r=n(24333),i=n(47826),o=n(4146),a=o&&o.isRegExp,s=a?i(a):r;e.exports=s},30194:function(e,t,n){var r=n(8109),i=n(47826),o=n(4146),a=o&&o.isSet,s=a?i(a):r;e.exports=s},4795:function(e,t,n){var r=n(53366),i=n(15125);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},77598:function(e,t,n){var r=n(35522),i=n(47826),o=n(4146),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},87622:function(e,t,n){var r=n(13940),i=n(36740)(function(e,t,n){r(e,n,t)});e.exports=i},90249:function(e,t,n){var r=n(1634),i=n(86411),o=n(67878);e.exports=function(e){return o(e)?r(e):i(e)}},18582:function(e,t,n){var r=n(1634),i=n(18390),o=n(67878);e.exports=function(e){return o(e)?r(e,!0):i(e)}},56974:function(e){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},16760:function(e,t,n){var r=n(50343),i=n(68286),o=n(93401),a=n(86152);e.exports=function(e,t){return(a(e)?r:o)(e,i(t,3))}},71644:function(e,t,n){var r=n(2229),i=n(84134),o=n(23059);e.exports=function(e){return e&&e.length?r(e,o,i):void 0}},30733:function(e,t,n){var r=n(96738);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},98537:function(e,t,n){var r=n(84565),i=n(97263)(function(e,t,n){r(e,t,n)});e.exports=i},34291:function(e){e.exports=function(){}},61100:function(e,t,n){var r=n(37772);e.exports=function(){return r.Date.now()}},17620:function(e,t,n){var r=n(50343),i=n(18874),o=n(29078),a=n(17297),s=n(752),l=n(48642),u=n(73631),c=n(76939),d=u(function(e,t){var n={};if(null==e)return n;var u=!1;t=r(t,function(t){return t=a(t,e),u||(u=t.length>1),t}),s(e,c(e),n),u&&(n=i(n,7,l));for(var d=t.length;d--;)o(n,t[d]);return n});e.exports=d},34498:function(e,t,n){var r=n(70618),i=n(86152);e.exports=function(e,t,n,o){return null==e?[]:(i(t)||(t=null==t?[]:[t]),i(n=o?void 0:n)||(n=null==n?[]:[n]),r(e,t,n))}},65798:function(e,t,n){var r=n(20256),i=n(82952),o=n(21401),a=n(33812);e.exports=function(e){return o(e)?r(a(e)):i(e)}},2284:function(e,t,n){var r=n(36060)(n(78911));e.exports=r},78911:function(e,t,n){var r=n(45169);e.exports=function(e,t){return e&&e.length&&t&&t.length?r(e,t):e}},62349:function(e,t,n){var r=n(5809),i=n(82406),o=n(5707),a=parseFloat,s=Math.min,l=Math.random;e.exports=function(e,t,n){if(n&&"boolean"!=typeof n&&i(e,t,n)&&(t=n=void 0),void 0===n&&("boolean"==typeof t?(n=t,t=void 0):"boolean"==typeof e&&(n=e,e=void 0)),void 0===e&&void 0===t?(e=0,t=1):(e=o(e),void 0===t?(t=e,e=0):t=o(t)),e>t){var u=e;e=t,t=u}if(n||e%1||t%1){var c=l();return s(e+c*(t-e+a("1e-"+((c+"").length-1))),t)}return r(e,t)}},2689:function(e,t,n){var r=n(82941)();e.exports=r},68015:function(e,t,n){var r=n(67320)("round");e.exports=r},4742:function(e,t,n){var r=n(33977),i=n(46543),o=n(86152);e.exports=function(e){return(o(e)?r:i)(e)}},16765:function(e,t,n){var r=n(82857);e.exports=function(e,t,n){return null==e?e:r(e,t,n)}},46152:function(e,t,n){var r=n(69918),i=n(12682),o=n(86152);e.exports=function(e){return(o(e)?r:i)(e)}},829:function(e,t,n){var r=n(62034),i=n(70618),o=n(36060),a=n(82406),s=o(function(e,t){if(null==e)return[];var n=t.length;return n>1&&a(e,t[0],t[1])?t=[]:n>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),i(e,r(t,1),[])});e.exports=s},30981:function(e){e.exports=function(){return[]}},36330:function(e){e.exports=function(){return!1}},12436:function(e,t,n){var r=n(54073),i=n(29259);e.exports=function(e,t,n){var o=!0,a=!0;if("function"!=typeof e)throw TypeError("Expected a function");return i(n)&&(o="leading"in n?!!n.leading:o,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:o,maxWait:t,trailing:a})}},5707:function(e,t,n){var r=n(7642),i=1/0;e.exports=function(e){return e?(e=r(e))===i||e===-i?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},38101:function(e,t,n){var r=n(5707);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},7642:function(e,t,n){var r=n(51704),i=n(29259),o=n(4795),a=0/0,s=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return a;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=l.test(e);return n||u.test(e)?c(e.slice(2),n?2:8):s.test(e)?a:+e}},63329:function(e,t,n){var r=n(752),i=n(18582);e.exports=function(e){return r(e,i(e))}},66188:function(e,t,n){var r=n(1054);e.exports=function(e){return null==e?"":r(e)}},36585:function(e,t,n){var r=n(1054),i=n(23895),o=n(33880),a=n(29259),s=n(40859),l=n(82302),u=n(8435),c=n(38101),d=n(66188),h=/\w*$/;e.exports=function(e,t){var n=30,p="...";if(a(t)){var f="separator"in t?t.separator:f;n="length"in t?c(t.length):n,p="omission"in t?r(t.omission):p}var m=(e=d(e)).length;if(o(e)){var g=u(e);m=g.length}if(n>=m)return e;var v=n-l(p);if(v<1)return p;var y=g?i(g,0,v).join(""):e.slice(0,v);if(void 0===f)return y+p;if(g&&(v+=y.length-v),s(f)){if(e.slice(v).search(f)){var b,k=y;for(f.global||(f=RegExp(f.source,d(h.exec(f))+"g")),f.lastIndex=0;b=f.exec(k);)var w=b.index;y=y.slice(0,void 0===w?v:w)}}else if(e.indexOf(r(f),v)!=v){var x=y.lastIndexOf(f);x>-1&&(y=y.slice(0,x))}return y+p}},75652:function(e,t,n){var r=n(67326);e.exports=function(e){return e&&e.length?r(e):[]}},84636:function(e,t,n){var r=n(68286),i=n(67326);e.exports=function(e,t){return e&&e.length?i(e,r(t,2)):[]}},23779:function(e,t,n){var r=n(83126)("toUpperCase");e.exports=r},98346:function(e,t,n){var r=n(50753),i=n(90249);e.exports=function(e){return null==e?[]:r(e,i(e))}},53207:function(e,t,n){var r=n(96570);r.prototype.formulaEval=function(){"use strict";for(var e,t,n,r=[],i=this.value,o=0;o"+t.value+""+i[o].show+""+e.value+"",type:10}):r.push({value:(1!=t.type?"(":"")+t.value+(1!=t.type?")":"")+""+e.value+"",type:1})):2===i[o].type||9===i[o].type?(e=r.pop(),t=r.pop(),r.push({value:(1!=t.type?"(":"")+t.value+(1!=t.type?")":"")+i[o].show+(1!=e.type?"(":"")+e.value+(1!=e.type?")":""),type:i[o].type})):12===i[o].type&&(e=r.pop(),t=r.pop(),n=r.pop(),r.push({value:i[o].show+"("+n.value+","+t.value+","+e.value+")",type:12}));return r[0].value},e.exports=r},66655:function(e,t,n){"use strict";var r=n(72346);function i(e,t){for(var n=0;nf.length-2?f.length-1:e.length-l;n>0;n--)if(void 0!==f[n])for(i=0;i0&&S<_.length-1&&1===_[S+1].type&&(1===_[S-1].type||6===_[S-1].type))throw new r.Exception("Unexpected Space");continue}var C=D.token,j=D.type,O=D.value,T=D.precedence,A=D.show,P=n[n.length-1];for(E=a.length;E--&&0===a[E];)if(-1!==[0,2,3,4,5,9,11,12,13].indexOf(j)){if(!0!==s[j])throw new r.Exception(C+" is not allowed after "+w);n.push(v),s=u,k=h,a.pop()}if(!0!==s[j])throw new r.Exception(C+" is not allowed after "+w);if(!0===k[j]&&(j=2,O=r.math.mul,A="×",T=3,S-=1),x={value:O,type:j,pre:T,show:A,numberOfArguments:D.numberOfArguments},0===j)s=l,k=d,i(a,2),n.push(x),4!==_[S+1].type&&(n.push(y),a.push(2));else if(1===j)1===P.type?(P.value+=O,i(a,1)):n.push(x),s=u,k=c;else if(2===j)s=l,k=d,i(a,2),n.push(x);else if(3===j)n.push(x),s=u,k=h;else if(4===j)i(a,1),b++,s=l,k=d,n.push(x);else if(5===j){if(!b)throw new r.Exception("Closing parenthesis are more than opening one, wait What!!!");b--,s=u,k=h,n.push(x),i(a,1)}else if(6===j){if(P.hasDec)throw new r.Exception("Two decimals are not allowed in one number");1!==P.type&&(P={value:0,type:1,pre:0},n.push(P)),s=p,i(a,1),k=d,P.value+=O,P.hasDec=!0}else 7===j&&(s=u,k=h,i(a,1),n.push(x));8===j?(s=l,k=d,i(a,D.numberOfArguments+2),n.push(x),4!==_[S+1].type&&(n.push(y),a.push(D.numberOfArguments+2))):9===j?(9===P.type?P.value===r.math.add?(P.value=O,P.show=A,i(a,1)):P.value===r.math.sub&&"-"===A&&(P.value=r.math.add,P.show="+",i(a,1)):5!==P.type&&7!==P.type&&1!==P.type&&3!==P.type&&13!==P.type?"-"===C&&(s=l,k=d,i(a,2).push(2),n.push(g),n.push(y)):(n.push(x),i(a,2)),s=l,k=d):10===j?(s=l,k=d,i(a,2),n.push(x)):11===j?(s=l,k=d,n.push(x)):12===j?(s=l,k=d,i(a,6),n.push(x),4!==_[S+1].type&&(n.push(y),a.push(6))):13===j&&(s=u,k=h,n.push(x)),i(a,-1),w=C}for(E=a.length;E--;)n.push(v);if(!0!==s[5])throw new r.Exception("complete the expression");for(;b--;)n.push(v);return n.push(v),new r(n)},e.exports=r},72346:function(e){"use strict";var t=function(e){this.value=e};t.math={isDegree:!0,acos:function(e){return t.math.isDegree?180/Math.PI*Math.acos(e):Math.acos(e)},add:function(e,t){return e+t},asin:function(e){return t.math.isDegree?180/Math.PI*Math.asin(e):Math.asin(e)},atan:function(e){return t.math.isDegree?180/Math.PI*Math.atan(e):Math.atan(e)},acosh:function(e){return Math.log(e+Math.sqrt(e*e-1))},asinh:function(e){return Math.log(e+Math.sqrt(e*e+1))},atanh:function(e){return Math.log((1+e)/(1-e))},C:function(e,n){var r=1,i=e-n,o=n;on)s.push(e);else{for(;n>=i&&!c||c&&i1)throw new r.Exception("Uncaught Syntax error");return o[0].value>1e15?"Infinity":parseFloat(o[0].value.toFixed(15))},r.eval=function(e,t,n){return void 0===t?this.lex(e).toPostfix().postfixEval():void 0!==n?this.lex(e,t).toPostfix().postfixEval(n):void 0!==t.length?this.lex(e,t).toPostfix().postfixEval():this.lex(e).toPostfix().postfixEval(t)},e.exports=r},34752:function(e,t,n){var r=n(78477),i=/[\/\+\.]/;e.exports=function(e,t){function n(t){var n=r(t,e,i);return n&&n.length>=2}return t?n(t.split(";")[0]):n}},5450:function(e){e.exports=function(){var e={},t=e._fns={};return e.emit=function(e,n,r,i,o,a,s){var l=function(e){for(var n=t[e]?t[e]:[],r=e.indexOf(":"),i=-1===r?[e]:[e.substring(0,r),e.substring(r+1)],o=Object.keys(t),a=0,s=o.length;at>=i[0]*e),kind:"w"}}return{widths:o,kind:"w"}}if("number"!=typeof t||"fill"===n||"responsive"===n)return{widths:i,kind:"w"};let a=[...new Set([t,2*t].map(e=>o.find(t=>t>=e)||o[o.length-1]))];return{widths:a,kind:"x"}}(t,o,i,s),d=u.length-1;return{sizes:s||"w"!==c?s:"100vw",srcSet:u.map((e,r)=>l({config:t,src:n,quality:a,width:e})+" "+("w"===c?e:r+1)+c).join(", "),src:l({config:t,src:n,quality:a,width:u[d]})}}function y(e){return"number"==typeof e?e:"string"==typeof e?parseInt(e,10):void 0}function b(e){var t;let n=(null==(t=e.config)?void 0:t.loader)||"default",r=m.get(n);if(r)return r(e);throw Error('Unknown "loader" found in "next.config.js". Expected: '+s.VALID_LOADERS.join(", ")+". Received: "+n)}function k(e,t,n,r,i,o){if(!e||e.src===f||e["data-loaded-src"]===t)return;e["data-loaded-src"]=t;let a="decode"in e?e.decode():Promise.resolve();a.catch(()=>{}).then(()=>{if(e.parentNode&&(p.add(t),"blur"===r&&o(!0),null==i?void 0:i.current)){let{naturalWidth:t,naturalHeight:n}=e;i.current({naturalWidth:t,naturalHeight:n})}})}let w=e=>{let{imgAttributes:t,heightInt:n,widthInt:r,qualityInt:i,layout:a,className:s,imgStyle:l,blurStyle:u,isLazy:c,placeholder:d,loading:h,srcString:p,config:f,unoptimized:m,loader:g,onLoadingCompleteRef:y,setBlurComplete:b,setIntersection:w,onLoad:x,onError:_,isVisible:S,noscriptSizes:E,...D}=e;return h=c?"lazy":h,o.default.createElement(o.default.Fragment,null,o.default.createElement("img",{...D,...t,decoding:"async","data-nimg":a,className:s,style:{...l,...u},ref:(0,o.useCallback)(e=>{w(e),(null==e?void 0:e.complete)&&k(e,p,a,d,y,b)},[w,p,a,d,y,b]),onLoad:e=>{let t=e.currentTarget;k(t,p,a,d,y,b),x&&x(e)},onError:e=>{"blur"===d&&b(!0),_&&_(e)}}),(c||"blur"===d)&&o.default.createElement("noscript",null,o.default.createElement("img",{...D,loading:h,decoding:"async","data-nimg":a,style:l,className:s,...v({config:f,src:p,unoptimized:m,layout:a,width:r,quality:i,sizes:E,loader:g})})))};function x(e){var t;let n,{src:r,sizes:i,unoptimized:c=!1,priority:d=!1,loading:m,lazyRoot:k=null,lazyBoundary:x,className:_,quality:S,width:E,height:D,style:C,objectFit:j,objectPosition:O,onLoadingComplete:T,placeholder:A="empty",blurDataURL:P,...R}=e,M=(0,o.useContext)(u.ImageConfigContext),F=(0,o.useMemo)(()=>{let e=h||M||s.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),n=e.deviceSizes.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:n}},[M]),N=i?"responsive":"intrinsic";"layout"in R&&(R.layout&&(N=R.layout),delete R.layout);let I=b;if("loader"in R){if(R.loader){let e=R.loader;I=t=>{let{config:n,...r}=t;return e(r)}}delete R.loader}let L="";if("object"==typeof(t=r)&&(g(t)||void 0!==t.src)){let e=g(r)?r.default:r;if(!e.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e));if(P=P||e.blurDataURL,L=e.src,(!N||"fill"!==N)&&(D=D||e.height,E=E||e.width,!e.height||!e.width))throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e))}let B=!d&&("lazy"===m||void 0===m);((r="string"==typeof r?r:L).startsWith("data:")||r.startsWith("blob:"))&&(c=!0,B=!1),p.has(r)&&(B=!1),F.unoptimized&&(c=!0);let[z,U]=(0,o.useState)(!1),[q,$,H]=(0,l.useIntersection)({rootRef:k,rootMargin:x||"200px",disabled:!B}),V=!B||$,W={boxSizing:"border-box",display:"block",overflow:"hidden",width:"initial",height:"initial",background:"none",opacity:1,border:0,margin:0,padding:0},G={boxSizing:"border-box",display:"block",width:"initial",height:"initial",background:"none",opacity:1,border:0,margin:0,padding:0},Y=!1,Z=y(E),K=y(D),J=y(S),X=Object.assign({},C,{position:"absolute",top:0,left:0,bottom:0,right:0,boxSizing:"border-box",padding:0,border:"none",margin:"auto",display:"block",width:0,height:0,minWidth:"100%",maxWidth:"100%",minHeight:"100%",maxHeight:"100%",objectFit:j,objectPosition:O}),Q="blur"!==A||z?{}:{backgroundSize:j||"cover",backgroundPosition:O||"0% 0%",filter:"blur(20px)",backgroundImage:'url("'+P+'")'};if("fill"===N)W.display="block",W.position="absolute",W.top=0,W.left=0,W.bottom=0,W.right=0;else if(void 0!==Z&&void 0!==K){let e=K/Z,t=isNaN(e)?"100%":""+100*e+"%";"responsive"===N?(W.display="block",W.position="relative",Y=!0,G.paddingTop=t):"intrinsic"===N?(W.display="inline-block",W.position="relative",W.maxWidth="100%",Y=!0,G.maxWidth="100%",n="data:image/svg+xml,%3csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20version=%271.1%27%20width=%27"+Z+"%27%20height=%27"+K+"%27/%3e"):"fixed"===N&&(W.display="inline-block",W.position="relative",W.width=Z,W.height=K)}let ee={src:f,srcSet:void 0,sizes:void 0};V&&(ee=v({config:F,src:r,unoptimized:c,layout:N,width:Z,quality:J,sizes:i,loader:I}));let et=r,en={imageSrcSet:ee.srcSet,imageSizes:ee.sizes,crossOrigin:R.crossOrigin,referrerPolicy:R.referrerPolicy},er=o.default.useLayoutEffect,ei=(0,o.useRef)(T),eo=(0,o.useRef)(r);(0,o.useEffect)(()=>{ei.current=T},[T]),er(()=>{eo.current!==r&&(H(),eo.current=r)},[H,r]);let ea={isLazy:B,imgAttributes:ee,heightInt:K,widthInt:Z,qualityInt:J,layout:N,className:_,imgStyle:X,blurStyle:Q,loading:m,config:F,unoptimized:c,placeholder:A,loader:I,srcString:et,onLoadingCompleteRef:ei,setBlurComplete:U,setIntersection:q,isVisible:V,noscriptSizes:i,...R};return o.default.createElement(o.default.Fragment,null,o.default.createElement("span",{style:W},Y?o.default.createElement("span",{style:G},n?o.default.createElement("img",{style:{display:"block",maxWidth:"100%",width:"initial",height:"initial",background:"none",opacity:1,border:0,margin:0,padding:0},alt:"","aria-hidden":!0,src:n}):null):null,o.default.createElement(w,ea)),d?o.default.createElement(a.default,null,o.default.createElement("link",{key:"__nimg-"+ee.src+ee.srcSet+ee.sizes,rel:"preload",as:"image",href:ee.srcSet?void 0:ee.src,...en})):null)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},58828:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return k}});let r=n(43219),i=r._(n(2784)),o=n(26847),a=n(88474),s=n(23813),l=n(32024),u=n(88482),c=n(14583),d=n(33145),h=n(89082),p=n(27487),f=n(83497),m=n(8473),g=new Set;function v(e,t,n,r,i,o){if(!o&&!(0,a.isLocalURL)(t))return;if(!r.bypassPrefetchedCheck){let i=void 0!==r.locale?r.locale:"locale"in e?e.locale:void 0,o=t+"%"+n+"%"+i;if(g.has(o))return;g.add(o)}let s=o?e.prefetch(t,i):e.prefetch(t,n,r);Promise.resolve(s).catch(e=>{})}function y(e){return"string"==typeof e?e:(0,s.formatUrl)(e)}let b=i.default.forwardRef(function(e,t){let n,r;let{href:s,as:g,children:b,prefetch:k=null,passHref:w,replace:x,shallow:_,scroll:S,locale:E,onClick:D,onMouseEnter:C,onTouchStart:j,legacyBehavior:O=!1,...T}=e;n=b,O&&("string"==typeof n||"number"==typeof n)&&(n=i.default.createElement("a",null,n));let A=i.default.useContext(c.RouterContext),P=i.default.useContext(d.AppRouterContext),R=null!=A?A:P,M=!A,F=!1!==k,N=null===k?m.PrefetchKind.AUTO:m.PrefetchKind.FULL,{href:I,as:L}=i.default.useMemo(()=>{if(!A){let e=y(s);return{href:e,as:g?y(g):e}}let[e,t]=(0,o.resolveHref)(A,s,!0);return{href:e,as:g?(0,o.resolveHref)(A,g):t||e}},[A,s,g]),B=i.default.useRef(I),z=i.default.useRef(L);O&&(r=i.default.Children.only(n));let U=O?r&&"object"==typeof r&&r.ref:t,[q,$,H]=(0,h.useIntersection)({rootMargin:"200px"}),V=i.default.useCallback(e=>{(z.current!==L||B.current!==I)&&(H(),z.current=L,B.current=I),q(e),U&&("function"==typeof U?U(e):"object"==typeof U&&(U.current=e))},[L,U,I,H,q]);i.default.useEffect(()=>{R&&$&&F&&v(R,I,L,{locale:E},{kind:N},M)},[L,I,$,E,F,null==A?void 0:A.locale,R,M,N]);let W={ref:V,onClick(e){O||"function"!=typeof D||D(e),O&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),R&&!e.defaultPrevented&&function(e,t,n,r,o,s,l,u,c,d){let{nodeName:h}=e.currentTarget,p="A"===h.toUpperCase();if(p&&(function(e){let t=e.currentTarget,n=t.getAttribute("target");return n&&"_self"!==n||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!c&&!(0,a.isLocalURL)(n)))return;e.preventDefault();let f=()=>{let e=null==l||l;"beforePopState"in t?t[o?"replace":"push"](n,r,{shallow:s,locale:u,scroll:e}):t[o?"replace":"push"](r||n,{forceOptimisticNavigation:!d,scroll:e})};c?i.default.startTransition(f):f()}(e,R,I,L,x,_,S,E,M,F)},onMouseEnter(e){O||"function"!=typeof C||C(e),O&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),R&&(F||!M)&&v(R,I,L,{locale:E,priority:!0,bypassPrefetchedCheck:!0},{kind:N},M)},onTouchStart(e){O||"function"!=typeof j||j(e),O&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),R&&(F||!M)&&v(R,I,L,{locale:E,priority:!0,bypassPrefetchedCheck:!0},{kind:N},M)}};if((0,l.isAbsoluteUrl)(L))W.href=L;else if(!O||w||"a"===r.type&&!("href"in r.props)){let e=void 0!==E?E:null==A?void 0:A.locale,t=(null==A?void 0:A.isLocaleDomain)&&(0,p.getDomainLocale)(L,e,null==A?void 0:A.locales,null==A?void 0:A.domainLocales);W.href=t||(0,f.addBasePath)((0,u.addLocale)(L,e,null==A?void 0:A.defaultLocale))}return O?i.default.cloneElement(r,W):i.default.createElement("a",{...T,...W},n)}),k=b;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},89082:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return l}});let r=n(2784),i=n(63646),o="function"==typeof IntersectionObserver,a=new Map,s=[];function l(e){let{rootRef:t,rootMargin:n,disabled:l}=e,u=l||!o,[c,d]=(0,r.useState)(!1),h=(0,r.useRef)(null),p=(0,r.useCallback)(e=>{h.current=e},[]);(0,r.useEffect)(()=>{if(o){if(u||c)return;let e=h.current;if(e&&e.tagName){let r=function(e,t,n){let{id:r,observer:i,elements:o}=function(e){let t;let n={root:e.root||null,margin:e.rootMargin||""},r=s.find(e=>e.root===n.root&&e.margin===n.margin);if(r&&(t=a.get(r)))return t;let i=new Map,o=new IntersectionObserver(e=>{e.forEach(e=>{let t=i.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e);return t={id:n,observer:o,elements:i},s.push(n),a.set(n,t),t}(n);return o.set(e,t),i.observe(e),function(){if(o.delete(e),i.unobserve(e),0===o.size){i.disconnect(),a.delete(r);let e=s.findIndex(e=>e.root===r.root&&e.margin===r.margin);e>-1&&s.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:n});return r}}else if(!c){let e=(0,i.requestIdleCallback)(()=>d(!0));return()=>(0,i.cancelIdleCallback)(e)}},[u,n,t,c,h.current]);let f=(0,r.useCallback)(()=>{d(!1)},[]);return[p,c,f]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},99309:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{noSSR:function(){return a},default:function(){return s}});let r=n(43219),i=(n(2784),r._(n(70220)));function o(e){return{default:(null==e?void 0:e.default)||e}}function a(e,t){return delete t.webpack,delete t.modules,e(t)}function s(e,t){let n=i.default,r={loading:e=>{let{error:t,isLoading:n,pastDelay:r}=e;return null}};e instanceof Promise?r.loader=()=>e:"function"==typeof e?r.loader=e:"object"==typeof e&&(r={...r,...e}),r={...r,...t};let s=r.loader;return(r.loadableGenerated&&(r={...r,...r.loadableGenerated},delete r.loadableGenerated),"boolean"!=typeof r.ssr||r.ssr)?n({...r,loader:()=>null!=s?s().then(o):Promise.resolve(o(()=>null))}):(delete r.webpack,delete r.modules,a(n,r))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},38437:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return o}});let r=n(43219),i=r._(n(2784)),o=i.default.createContext(null)},70220:function(e,t,n){"use strict";/** @copyright (c) 2017-present James Kyle MIT License Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE */Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return p}});let r=n(43219),i=r._(n(2784)),o=n(38437),a=[],s=[],l=!1;function u(e){let t=e(),n={loading:!0,loaded:null,error:null};return n.promise=t.then(e=>(n.loading=!1,n.loaded=e,e)).catch(e=>{throw n.loading=!1,n.error=e,e}),n}class c{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e},this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function d(e){return function(e,t){let n=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),r=null;function a(){if(!r){let t=new c(e,n);r={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return r.promise()}if(!l){let e=n.webpack?n.webpack():n.modules;e&&s.push(t=>{for(let n of e)if(t.includes(n))return a()})}function u(e,t){!function(){a();let e=i.default.useContext(o.LoadableContext);e&&Array.isArray(n.modules)&&n.modules.forEach(t=>{e(t)})}();let s=i.default.useSyncExternalStore(r.subscribe,r.getCurrentValue,r.getCurrentValue);return i.default.useImperativeHandle(t,()=>({retry:r.retry}),[]),i.default.useMemo(()=>{var t;return s.loading||s.error?i.default.createElement(n.loading,{isLoading:s.loading,pastDelay:s.pastDelay,timedOut:s.timedOut,error:s.error,retry:r.retry}):s.loaded?i.default.createElement((t=s.loaded)&&t.default?t.default:t,e):null},[e,s])}return u.preload=()=>a(),u.displayName="LoadableComponent",i.default.forwardRef(u)}(u,e)}function h(e,t){let n=[];for(;e.length;){let r=e.pop();n.push(r(t))}return Promise.all(n).then(()=>{if(e.length)return h(e,t)})}d.preloadAll=()=>new Promise((e,t)=>{h(a).then(e,t)}),d.preloadReady=e=>(void 0===e&&(e=[]),new Promise(t=>{let n=()=>(l=!0,t());h(s,e).then(n,n)})),window.__NEXT_PRELOADREADY=d.preloadReady;let p=d},61036:function(){},65331:function(){},41779:function(){},89902:function(){},38398:function(e,t,n){!function(){var t={452:function(e){"use strict";e.exports=n(50176)}},r={};function i(e){var n=r[e];if(void 0!==n)return n.exports;var o=r[e]={exports:{}},a=!0;try{t[e](o,o.exports,i),a=!1}finally{a&&delete r[e]}return o.exports}i.ab="//";var o={};!function(){var e,t=(e=i(452))&&"object"==typeof e&&"default"in e?e.default:e,n=/https?|ftp|gopher|file/;function r(e){"string"==typeof e&&(e=v(e));var r,i,o,a,s,l,u,c,d,h=(i=(r=e).auth,o=r.hostname,a=r.protocol||"",s=r.pathname||"",l=r.hash||"",u=r.query||"",c=!1,i=i?encodeURIComponent(i).replace(/%3A/i,":")+"@":"",r.host?c=i+r.host:o&&(c=i+(~o.indexOf(":")?"["+o+"]":o),r.port&&(c+=":"+r.port)),u&&"object"==typeof u&&(u=t.encode(u)),d=r.search||u&&"?"+u||"",a&&":"!==a.substr(-1)&&(a+=":"),r.slashes||(!a||n.test(a))&&!1!==c?(c="//"+(c||""),s&&"/"!==s[0]&&(s="/"+s)):c||(c=""),l&&"#"!==l[0]&&(l="#"+l),d&&"?"!==d[0]&&(d="?"+d),{protocol:a,host:c,pathname:s=s.replace(/[?#]/g,encodeURIComponent),search:d=d.replace("#","%23"),hash:l});return""+h.protocol+h.host+h.pathname+h.search+h.hash}var a="http://",s=a+"w.w",l=/^([a-z0-9.+-]*:\/\/\/)([a-z0-9.+-]:\/*)?/i,u=/https?|ftp|gopher|file/;function c(e,t){var n="string"==typeof e?v(e):e;e="object"==typeof e?r(e):e;var i=v(t),o="";n.protocol&&!n.slashes&&(o=n.protocol,e=e.replace(n.protocol,""),o+="/"===t[0]||"/"===e[0]?"/":""),o&&i.protocol&&(o="",i.slashes||(o=i.protocol,t=t.replace(i.protocol,"")));var c=e.match(l);c&&!i.protocol&&(e=e.substr((o=c[1]+(c[2]||"")).length),/^\/\/[^/]/.test(t)&&(o=o.slice(0,-1)));var d=new URL(e,s+"/"),h=new URL(t,d).toString().replace(s,""),p=i.protocol||n.protocol;return p+=n.slashes||i.slashes?"//":"",!o&&p?h=h.replace(a,p):o&&(h=h.replace(a,"")),u.test(h)||~t.indexOf(".")||"/"===e.slice(-1)||"/"===t.slice(-1)||"/"!==h.slice(-1)||(h=h.slice(0,-1)),o&&(h=o+("/"===h[0]?h.substr(1):h)),h}function d(){}d.prototype.parse=v,d.prototype.format=r,d.prototype.resolve=c,d.prototype.resolveObject=c;var h=/^https?|ftp|gopher|file/,p=/^(.*?)([#?].*)/,f=/^([a-z0-9.+-]*:)(\/{0,3})(.*)/i,m=/^([a-z0-9.+-]*:)?\/\/\/*/i,g=/^([a-z0-9.+-]*:)(\/{0,2})\[(.*)\]$/i;function v(e,n,i){if(void 0===n&&(n=!1),void 0===i&&(i=!1),e&&"object"==typeof e&&e instanceof d)return e;var o=(e=e.trim()).match(p);e=o?o[1].replace(/\\/g,"/")+o[2]:e.replace(/\\/g,"/"),g.test(e)&&"/"!==e.slice(-1)&&(e+="/");var a=!/(^javascript)/.test(e)&&e.match(f),l=m.test(e),u="";a&&(h.test(a[1])||(u=a[1].toLowerCase(),e=""+a[2]+a[3]),a[2]||(l=!1,h.test(a[1])?(u=a[1],e=""+a[3]):e="//"+a[3]),3!==a[2].length&&1!==a[2].length||(u=a[1],e="/"+a[3]));var c,v=(o?o[1]:e).match(/^https?:\/\/[^/]+(:[0-9]+)(?=\/|$)/),y=v&&v[1],b=new d,k="",w="";try{c=new URL(e)}catch(t){k=t,u||i||!/^\/\//.test(e)||/^\/\/.+[@.]/.test(e)||(w="/",e=e.substr(1));try{c=new URL(e,s)}catch(e){return b.protocol=u,b.href=u,b}}b.slashes=l&&!w,b.host="w.w"===c.host?"":c.host,b.hostname="w.w"===c.hostname?"":c.hostname.replace(/(\[|\])/g,""),b.protocol=k?u||null:c.protocol,b.search=c.search.replace(/\\/g,"%5C"),b.hash=c.hash.replace(/\\/g,"%5C");var x=e.split("#");!b.search&&~x[0].indexOf("?")&&(b.search="?"),b.hash||""!==x[1]||(b.hash="#"),b.query=n?t.decode(c.search.substr(1)):b.search.substr(1),b.pathname=w+(a?c.pathname.replace(/['^|`]/g,function(e){return"%"+e.charCodeAt().toString(16).toUpperCase()}).replace(/((?:%[0-9A-F]{2})+)/g,function(e,t){try{return decodeURIComponent(t).split("").map(function(e){var t=e.charCodeAt();return t>256||/^[a-z0-9]$/i.test(e)?e:"%"+t.toString(16).toUpperCase()}).join("")}catch(e){return t}}):c.pathname),"about:"===b.protocol&&"blank"===b.pathname&&(b.protocol="",b.pathname=""),k&&"/"!==e[0]&&(b.pathname=b.pathname.substr(1)),u&&!h.test(u)&&"/"!==e.slice(-1)&&"/"===b.pathname&&(b.pathname=""),b.path=b.pathname+b.search,b.auth=[c.username,c.password].map(decodeURIComponent).filter(Boolean).join(":"),b.port=c.port,y&&!b.host.endsWith(y)&&(b.host+=y,b.port=y.slice(1)),b.href=w?""+b.pathname+b.search+b.hash:r(b);var _=/^(file)/.test(b.href)?["host","hostname"]:[];return Object.keys(b).forEach(function(e){~_.indexOf(e)||(b[e]=b[e]||null)}),b}o.parse=v,o.format=r,o.resolve=c,o.resolveObject=function(e,t){return v(c(e,t))},o.Url=d}(),e.exports=o}()},15153:function(e){!function(){"use strict";var t={114:function(e){function t(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}function n(e,t){for(var n,r="",i=0,o=-1,a=0,s=0;s<=e.length;++s){if(s2){var l=r.lastIndexOf("/");if(l!==r.length-1){-1===l?(r="",i=0):i=(r=r.slice(0,l)).length-1-r.lastIndexOf("/"),o=s,a=0;continue}}else if(2===r.length||1===r.length){r="",i=0,o=s,a=0;continue}}t&&(r.length>0?r+="/..":r="..",i=2)}else r.length>0?r+="/"+e.slice(o+1,s):r=e.slice(o+1,s),i=s-o-1;o=s,a=0}else 46===n&&-1!==a?++a:a=-1}return r}var r={resolve:function(){for(var e,r,i="",o=!1,a=arguments.length-1;a>=-1&&!o;a--)a>=0?r=arguments[a]:(void 0===e&&(e=""),r=e),t(r),0!==r.length&&(i=r+"/"+i,o=47===r.charCodeAt(0));return(i=n(i,!o),o)?i.length>0?"/"+i:"/":i.length>0?i:"."},normalize:function(e){if(t(e),0===e.length)return".";var r=47===e.charCodeAt(0),i=47===e.charCodeAt(e.length-1);return(0!==(e=n(e,!r)).length||r||(e="."),e.length>0&&i&&(e+="/"),r)?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0==arguments.length)return".";for(var e,n=0;n0&&(void 0===e?e=i:e+="/"+i)}return void 0===e?".":r.normalize(e)},relative:function(e,n){if(t(e),t(n),e===n||(e=r.resolve(e))===(n=r.resolve(n)))return"";for(var i=1;iu){if(47===n.charCodeAt(s+d))return n.slice(s+d+1);if(0===d)return n.slice(s+d)}else a>u&&(47===e.charCodeAt(i+d)?c=d:0===d&&(c=0));break}var h=e.charCodeAt(i+d);if(h!==n.charCodeAt(s+d))break;47===h&&(c=d)}var p="";for(d=i+c+1;d<=o;++d)(d===o||47===e.charCodeAt(d))&&(0===p.length?p+="..":p+="/..");return p.length>0?p+n.slice(s+c):(s+=c,47===n.charCodeAt(s)&&++s,n.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var n=e.charCodeAt(0),r=47===n,i=-1,o=!0,a=e.length-1;a>=1;--a)if(47===(n=e.charCodeAt(a))){if(!o){i=a;break}}else o=!1;return -1===i?r?"/":".":r&&1===i?"//":e.slice(0,i)},basename:function(e,n){if(void 0!==n&&"string"!=typeof n)throw TypeError('"ext" argument must be a string');t(e);var r,i=0,o=-1,a=!0;if(void 0!==n&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return"";var s=n.length-1,l=-1;for(r=e.length-1;r>=0;--r){var u=e.charCodeAt(r);if(47===u){if(!a){i=r+1;break}}else -1===l&&(a=!1,l=r+1),s>=0&&(u===n.charCodeAt(s)?-1==--s&&(o=r):(s=-1,o=l))}return i===o?o=l:-1===o&&(o=e.length),e.slice(i,o)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!a){i=r+1;break}}else -1===o&&(a=!1,o=r+1);return -1===o?"":e.slice(i,o)},extname:function(e){t(e);for(var n=-1,r=0,i=-1,o=!0,a=0,s=e.length-1;s>=0;--s){var l=e.charCodeAt(s);if(47===l){if(!o){r=s+1;break}continue}-1===i&&(o=!1,i=s+1),46===l?-1===n?n=s:1!==a&&(a=1):-1!==n&&(a=-1)}return -1===n||-1===i||0===a||1===a&&n===i-1&&n===r+1?"":e.slice(n,i)},format:function(e){var t,n;if(null===e||"object"!=typeof e)throw TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return t=e.dir||e.root,n=e.base||(e.name||"")+(e.ext||""),t?t===e.root?t+n:t+"/"+n:n},parse:function(e){t(e);var n,r={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return r;var i=e.charCodeAt(0),o=47===i;o?(r.root="/",n=1):n=0;for(var a=-1,s=0,l=-1,u=!0,c=e.length-1,d=0;c>=n;--c){if(47===(i=e.charCodeAt(c))){if(!u){s=c+1;break}continue}-1===l&&(u=!1,l=c+1),46===i?-1===a?a=c:1!==d&&(d=1):-1!==a&&(d=-1)}return -1===a||-1===l||0===d||1===d&&a===l-1&&a===s+1?-1!==l&&(0===s&&o?r.base=r.name=e.slice(1,l):r.base=r.name=e.slice(s,l)):(0===s&&o?(r.name=e.slice(1,a),r.base=e.slice(1,l)):(r.name=e.slice(s,a),r.base=e.slice(s,l)),r.ext=e.slice(a,l)),s>0?r.dir=e.slice(0,s-1):o&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};r.posix=r,e.exports=r}},n={};function r(e){var i=n[e];if(void 0!==i)return i.exports;var o=n[e]={exports:{}},a=!0;try{t[e](o,o.exports,r),a=!1}finally{a&&delete n[e]}return o.exports}r.ab="//";var i=r(114);e.exports=i}()},50176:function(e){!function(){"use strict";var t={815:function(e){e.exports=function(e,n,r,i){n=n||"&",r=r||"=";var o={};if("string"!=typeof e||0===e.length)return o;var a=/\+/g;e=e.split(n);var s=1e3;i&&"number"==typeof i.maxKeys&&(s=i.maxKeys);var l=e.length;s>0&&l>s&&(l=s);for(var u=0;u=0?(c=f.substr(0,m),d=f.substr(m+1)):(c=f,d=""),h=decodeURIComponent(c),p=decodeURIComponent(d),Object.prototype.hasOwnProperty.call(o,h))?t(o[h])?o[h].push(p):o[h]=[o[h],p]:o[h]=p}return o};var t=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},577:function(e){var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,o,a,s){return(o=o||"&",a=a||"=",null===e&&(e=void 0),"object"==typeof e)?r(i(e),function(i){var s=encodeURIComponent(t(i))+a;return n(e[i])?r(e[i],function(e){return s+encodeURIComponent(t(e))}).join(o):s+encodeURIComponent(t(e[i]))}).join(o):s?encodeURIComponent(t(s))+a+encodeURIComponent(t(e)):""};var n=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function r(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r-1e3&&e<1e3||x.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var r=e<0?-D(-e):D(e);if(r!==e){var i=String(r),o=y.call(t,i.length+1);return b.call(i,n,"$&_")+"."+b.call(b.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(t,n,"$&_")}var F=n(53260).custom,N=F&&B(F)?F:null;function I(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function L(e){return"[object Array]"===q(e)&&(!A||!("object"==typeof e&&A in e))}function B(e){if(T)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!O)return!1;try{return O.call(e),!0}catch(e){}return!1}e.exports=function e(t,n,r,i){var s=n||{};if(U(s,"quoteStyle")&&"single"!==s.quoteStyle&&"double"!==s.quoteStyle)throw TypeError('option "quoteStyle" must be "single" or "double"');if(U(s,"maxStringLength")&&("number"==typeof s.maxStringLength?s.maxStringLength<0&&s.maxStringLength!==1/0:null!==s.maxStringLength))throw TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var l=!U(s,"customInspect")||s.customInspect;if("boolean"!=typeof l&&"symbol"!==l)throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(U(s,"indent")&&null!==s.indent&&" "!==s.indent&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(U(s,"numericSeparator")&&"boolean"!=typeof s.numericSeparator)throw TypeError('option "numericSeparator", if provided, must be `true` or `false`');var m=s.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return function e(t,n){if(t.length>n.maxStringLength){var r=t.length-n.maxStringLength;return e(y.call(t,0,n.maxStringLength),n)+"... "+r+" more character"+(r>1?"s":"")}return I(b.call(b.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,H),"single",n)}(t,s);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var k=String(t);return m?M(t,k):k}if("bigint"==typeof t){var x=String(t)+"n";return m?M(t,x):x}var D=void 0===s.depth?5:s.depth;if(void 0===r&&(r=0),r>=D&&D>0&&"object"==typeof t)return L(t)?"[Array]":"[Object]";var j=function(e,t){var n;if(" "===e.indent)n=" ";else{if("number"!=typeof e.indent||!(e.indent>0))return null;n=S.call(Array(e.indent+1)," ")}return{base:n,prev:S.call(Array(t+1),n)}}(s,r);if(void 0===i)i=[];else if($(i,t)>=0)return"[Circular]";function F(t,n,o){if(n&&(i=E.call(i)).push(n),o){var a={depth:s.depth};return U(s,"quoteStyle")&&(a.quoteStyle=s.quoteStyle),e(t,a,r+1,i)}return e(t,s,r+1,i)}if("function"==typeof t){var z=function(e){if(e.name)return e.name;var t=v.call(g.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),K=Z(t,F);return"[Function"+(z?": "+z:" (anonymous)")+"]"+(K.length>0?" { "+S.call(K,", ")+" }":"")}if(B(t)){var J=T?b.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):O.call(t);return"object"!=typeof t||T?J:V(J)}if(t&&"object"==typeof t&&("undefined"!=typeof HTMLElement&&t instanceof HTMLElement||"string"==typeof t.nodeName&&"function"==typeof t.getAttribute)){for(var X,Q="<"+w.call(String(t.nodeName)),ee=t.attributes||[],et=0;et"}if(L(t)){if(0===t.length)return"[]";var en=Z(t,F);return j&&!function(e){for(var t=0;t=0)return!1;return!0}(en)?"["+Y(en,j)+"]":"[ "+S.call(en,", ")+" ]"}if("[object Error]"===q(t)&&(!A||!("object"==typeof t&&A in t))){var er=Z(t,F);return"cause"in t&&!P.call(t,"cause")?"{ ["+String(t)+"] "+S.call(_.call("[cause]: "+F(t.cause),er),", ")+" }":0===er.length?"["+String(t)+"]":"{ ["+String(t)+"] "+S.call(er,", ")+" }"}if("object"==typeof t&&l){if(N&&"function"==typeof t[N])return t[N]();if("symbol"!==l&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!o||!e||"object"!=typeof e)return!1;try{o.call(e);try{u.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var ei=[];return a.call(t,function(e,n){ei.push(F(n,t,!0)+" => "+F(e,t))}),G("Map",o.call(t),ei,j)}if(function(e){if(!u||!e||"object"!=typeof e)return!1;try{u.call(e);try{o.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var eo=[];return c.call(t,function(e){eo.push(F(e,t))}),G("Set",u.call(t),eo,j)}if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{d.call(e,d);try{h.call(e,h)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return W("WeakMap");if(function(e){if(!h||!e||"object"!=typeof e)return!1;try{h.call(e,h);try{d.call(e,d)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return W("WeakSet");if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{return p.call(e),!0}catch(e){}return!1}(t))return W("WeakRef");if("[object Number]"===q(t)&&(!A||!("object"==typeof t&&A in t)))return V(F(Number(t)));if(function(e){if(!e||"object"!=typeof e||!C)return!1;try{return C.call(e),!0}catch(e){}return!1}(t))return V(F(C.call(t)));if("[object Boolean]"===q(t)&&(!A||!("object"==typeof t&&A in t)))return V(f.call(t));if("[object String]"===q(t)&&(!A||!("object"==typeof t&&A in t)))return V(F(String(t)));if(!("[object Date]"===q(t)&&(!A||!("object"==typeof t&&A in t)))&&!("[object RegExp]"===q(t)&&(!A||!("object"==typeof t&&A in t)))){var ea=Z(t,F),es=R?R(t)===Object.prototype:t instanceof Object||t.constructor===Object,el=t instanceof Object?"":"null prototype",eu=!es&&A&&Object(t)===t&&A in t?y.call(q(t),8,-1):el?"Object":"",ec=(es||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(eu||el?"["+S.call(_.call([],eu||[],el||[]),": ")+"] ":"");return 0===ea.length?ec+"{}":j?ec+"{"+Y(ea,j)+"}":ec+"{ "+S.call(ea,", ")+" }"}return String(t)};var z=Object.prototype.hasOwnProperty||function(e){return e in this};function U(e,t){return z.call(e,t)}function q(e){return m.call(e)}function $(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;nthis.max;)this.delete(this.oldest.key)},e.prototype.delete=function(e){var t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)},e}(),l=new o.g7,u=Object.prototype.hasOwnProperty,c=void 0===(r=Array.from)?function(e){var t=[];return e.forEach(function(e){return t.push(e)}),t}:r;function d(e){var t=e.unsubscribe;"function"==typeof t&&(e.unsubscribe=void 0,t())}var h=[];function p(e,t){if(!e)throw Error(t||"assertion failure")}function f(e){switch(e.length){case 0:throw Error("unknown value");case 1:return e[0];case 2:throw e[1]}}var m=function(){function e(t){this.fn=t,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++e.count}return e.prototype.peek=function(){if(1===this.value.length&&!y(this))return g(this),this.value[0]},e.prototype.recompute=function(e){var t;return p(!this.recomputing,"already recomputing"),g(this),y(this)&&(_(this),l.withValue(this,v,[this,e]),function(e,t){if("function"==typeof e.subscribe)try{d(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(t){return e.setDirty(),!1}return!0}(this,e)&&(this.dirty=!1,y(this)||(t=this,b(t,w)))),f(this.value)},e.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,b(this,k),d(this))},e.prototype.dispose=function(){var e=this;this.setDirty(),_(this),b(this,function(t,n){t.setDirty(),S(t,e)})},e.prototype.forget=function(){this.dispose()},e.prototype.dependOn=function(e){e.add(this),this.deps||(this.deps=h.pop()||new Set),this.deps.add(e)},e.prototype.forgetDeps=function(){var e=this;this.deps&&(c(this.deps).forEach(function(t){return t.delete(e)}),this.deps.clear(),h.push(this.deps),this.deps=null)},e.count=0,e}();function g(e){var t=l.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),y(e)?k(t,e):w(t,e),t}function v(e,t){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,t)}catch(t){e.value[1]=t}e.recomputing=!1}function y(e){return e.dirty||!!(e.dirtyChildren&&e.dirtyChildren.size)}function b(e,t){var n=e.parents.size;if(n)for(var r=c(e.parents),i=0;i0&&r===n.length&&i[r-1]===n[r-1]||e.setDirty()),x(e,t),y(e)||b(e,w)}function x(e,t){var n=e.dirtyChildren;n&&(n.delete(t),0===n.size&&(h.length<100&&h.push(n),e.dirtyChildren=null))}function _(e){e.childValues.size>0&&e.childValues.forEach(function(t,n){S(e,n)}),e.forgetDeps(),p(null===e.dirtyChildren)}function S(e,t){t.parents.delete(e),e.childValues.delete(t),x(e,t)}var E={setDirty:!0,dispose:!0,forget:!0};function D(e){var t=new Map,n=e&&e.subscribe;function r(e){var r=l.getValue();if(r){var i=t.get(e);i||t.set(e,i=new Set),r.dependOn(i),"function"==typeof n&&(d(i),i.unsubscribe=n(e))}}return r.dirty=function(e,n){var r=t.get(e);if(r){var i=n&&u.call(E,n)?n:"setDirty";c(r).forEach(function(e){return e[i]()}),t.delete(e),d(r)}},r}function C(){var e=new i.B("function"==typeof WeakMap);return function(){return e.lookupArray(arguments)}}C();var j=new Set;function O(e,t){void 0===t&&(t=Object.create(null));var n=new s(t.max||65536,function(e){return e.dispose()}),r=t.keyArgs,i=t.makeCacheKey||C(),o=function(){var o=i.apply(null,r?r.apply(null,arguments):arguments);if(void 0===o)return e.apply(null,arguments);var a=n.get(o);a||(n.set(o,a=new m(e)),a.subscribe=t.subscribe,a.forget=function(){return n.delete(o)});var s=a.recompute(Array.prototype.slice.call(arguments));return n.set(o,a),j.add(n),l.hasValue()||(j.forEach(function(e){return e.clean()}),j.clear()),s};function a(e){var t=n.get(e);t&&t.setDirty()}function u(e){var t=n.get(e);if(t)return t.peek()}function c(e){return n.delete(e)}return Object.defineProperty(o,"size",{get:function(){return n.map.size},configurable:!1,enumerable:!1}),o.dirtyKey=a,o.dirty=function(){a(i.apply(null,arguments))},o.peekKey=u,o.peek=function(){return u(i.apply(null,arguments))},o.forgetKey=c,o.forget=function(){return c(i.apply(null,arguments))},o.makeCacheKey=i,o.getKey=r?function(){return i.apply(null,r.apply(null,arguments))}:i,Object.freeze(o)}},23222:function(e,t,n){"use strict";n.d(t,{IW:function(){return h},V0:function(){return s},aD:function(){return o},i$:function(){return a},tB:function(){return i}});var r=n(90824);function i(e){return e.length<3?0:Math.abs((0,r.Sm)(e.map(function(t,n){var r=e[n+1]||e[0];return t[0]*r[1]-r[0]*t[1]})))/2}function o(e,t){var n=t.width,r=t.height,i=t.left,o=t.top,s=a(e),l=s.minX,u=s.minY,c=s.maxX,d=s.maxY,h=n/(c-l),p=r/(d-u);return e.map(function(e){return[i+(e[0]-l)*h,o+(e[1]-u)*p]})}function a(e){var t=e.map(function(e){return e[0]}),n=e.map(function(e){return e[1]});return{minX:Math.min.apply(Math,t),minY:Math.min.apply(Math,n),maxX:Math.max.apply(Math,t),maxY:Math.max.apply(Math,n)}}function s(e,t,n){var i=e[0],o=e[1],s=a(t),h=s.minX,p=s.minY,f=s.maxX,m=s.maxY,g=[[h,o],[f,o]],v=[[i,p],[i,m]],y=l(g[0],g[1]),b=l(v[0],v[1]),k=d(t),w=[],x=[];return k.forEach(function(e){var t=l(e[0],e[1]),n=c(u(y,t),[g,e]),r=c(u(b,t),[v,e]);(1!==n.length||e[0][1]!==o)&&w.push.apply(w,n),(1!==r.length||e[0][0]!==i)&&x.push.apply(x,r),t[0]||w.push.apply(w,n),t[1]||x.push.apply(x,r)}),!!(!n&&((0,r.cx)(w,function(e){return e[0]===i})>-1||(0,r.cx)(x,function(e){return e[1]===o})>-1))||!!(w.filter(function(e){return e[0]>i}).length%2)&&!!(x.filter(function(e){return e[1]>o}).length%2)}function l(e,t){var n=e[0],r=e[1],i=t[0],o=t[1];if(n===i&&r===o)return[0,0,0];if(n===i)return[1,0,-n];if(r===o)return[0,1,-r];var a=(i-n)/(r-o);return[1,a,-n-a*r]}function u(e,t){var n=e[0],r=e[1],i=e[2],o=t[0],a=t[1],s=t[2],l=0===n&&0===o,u=0===r&&0===a;if(l&&u)return[];if(l){var c=-i/r;return c!==-s/a?[]:[[-1/0,c],[1/0,c]]}if(u){var d=-i/n;return d!==-s/o?[]:[[d,-1/0],[d,1/0]]}if(0===n){var h=-i/r,p=-(a*h+s)/o;return[[p,h]]}if(0===o){var h=-s/a,p=-(r*h+i)/n;return[[p,h]]}if(0===r){var p=-i/n,h=-(o*p+s)/a;return[[p,h]]}if(0===a){var p=-s/o,h=-(n*p+i)/r;return[[p,h]]}else{var p=(r*s-a*i)/(a*n-r*o),h=-(n*p+i)/r;return[[p,h]]}}function c(e,t){var n=t.map(function(e){return[0,1].map(function(t){return[Math.min(e[0][t],e[1][t]),Math.max(e[0][t],e[1][t])]})});if(2===e.length){var r=e[0],i=r[0],o=r[1];if(i===e[1][0]){var a=Math.max.apply(Math,n.map(function(e){return e[1][0]})),s=Math.min.apply(Math,n.map(function(e){return e[1][1]}));return a>s?[]:[[i,a],[i,s]]}if(o===e[1][1]){var l=Math.max.apply(Math,n.map(function(e){return e[0][0]})),u=Math.min.apply(Math,n.map(function(e){return e[0][1]}));return l>u?[]:[[l,o],[u,o]]}}return e.filter(function(e){return n.every(function(t){return t[0][0]<=e[0]&&e[0]<=t[0][1]&&t[1][0]<=e[1]&&e[1]<=t[1][1]})})}function d(e){return(/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */(function(){for(var e=0,t=0,n=arguments.length;te){return e*r(.5-t*(.5-n))}function i(e,t){return[e[0]+t[0],e[1]+t[1]]}function o(e,t){return[e[0]-t[0],e[1]-t[1]]}function a(e,t){return[e[0]*t,e[1]*t]}function s(e){return[e[1],-e[0]]}function l(e,t){return e[0]*t[0]+e[1]*t[1]}function u(e,t){var n;return(n=o(e,t))[0]*n[0]+n[1]*n[1]}function c(e){var t;return t=Math.hypot(e[0],e[1]),[e[0]/t,e[1]/t]}function d(e,t,n){let r=Math.sin(n),i=Math.cos(n),o=e[0]-t[0],a=e[1]-t[1];return[o*i-a*r+t[0],o*r+a*i+t[1]]}function h(e,t,n){return i(e,a(o(t,e),n))}n.d(t,{ZP:function(){return y},ib:function(){return g},tt:function(){return v}});var{min:p,PI:f}=Math,m=f+1e-4;function g(e,t={}){var n,f;let{size:g=16,smoothing:v=.5,thinning:y=.5,simulatePressure:b=!0,easing:k=e=>e,start:w={},end:x={},last:_=!1}=t,{cap:S=!0,easing:E=e=>e*(2-e)}=w,{cap:D=!0,easing:C=e=>--e*e*e+1}=x;if(0===e.length||g<=0)return[];let j=e[e.length-1].runningLength,O=!1===w.taper?0:!0===w.taper?Math.max(g,j):w.taper,T=!1===x.taper?0:!0===x.taper?Math.max(g,j):x.taper,A=Math.pow(g*v,2),P=[],R=[],M=e.slice(0,10).reduce((e,t)=>{let n=t.pressure;if(b){let r=p(1,t.distance/g),i=p(1,1-r);n=p(1,e+(i-e)*(.275*r))}return(e+n)/2},e[0].pressure),F=r(g,y,e[e.length-1].pressure,k),N,I=e[0].vector,L=e[0].point,B=L,z=L,U=B,q=!1;for(let t=0;tl(f,I)&&!q,D=null!==_&&_<0;if(S||D){let e=a(s(I),F);for(let t=1/13,n=0;n<=1;n+=t)z=d(o(c,e),c,m*n),P.push(z),U=d(i(c,e),c,-(m*n)),R.push(U);L=z,B=U,D&&(q=!0);continue}if(q=!1,t===e.length-1){let e=a(s(f),F);P.push(o(c,e)),R.push(i(c,e));continue}let $=a(s(h(x,f,_)),F);z=o(c,$),(t<=1||u(L,z)>A)&&(P.push(z),L=z),U=i(c,$),(t<=1||u(B,U)>A)&&(R.push(U),B=U),M=n,I=f}let $=e[0].point.slice(0,2),H=e.length>1?e[e.length-1].point.slice(0,2):i(e[0].point,[1,1]),V=[],W=[];if(1===e.length){if(!(O||T)||_){let e=(n=c(s(o($,H))),i($,a(n,-(N||F)))),t=[];for(let n=1/13,r=n;r<=1;r+=n)t.push(d(e,$,2*m*r));return t}}else{if(!(O||T&&1===e.length)){if(S)for(let e=1/13,t=e;t<=1;t+=e){let e=d(R[0],$,m*t);V.push(e)}else{let e=o(P[0],R[0]),t=a(e,.5),n=a(e,.51);V.push(o($,t),o($,n),i($,n),i($,t))}}let t=s([-(f=e[e.length-1].vector)[0],-f[1]]);if(T||O&&1===e.length)W.push(H);else if(D){let e=i(H,a(t,F));for(let t=1/29,n=t;n<1;n+=t)W.push(d(e,H,3*m*n))}else W.push(i(H,a(t,F)),i(H,a(t,.99*F)),o(H,a(t,.99*F)),o(H,a(t,F)))}return P.concat(W,R.reverse(),V)}function v(e,t={}){var n,r,a;let{streamline:s=.5,size:l=16,last:u=!1}=t;if(0===e.length)return[];let d=.15+(1-s)*.85,p=Array.isArray(e[0])?e:e.map(({x:e,y:t,pressure:n=.5})=>[e,t,n]);if(2===p.length){let e=p[1];p=p.slice(0,-1);for(let t=1;t<5;t++)p.push(h(p[0],e,t/4))}1===p.length&&(p=[...p,[...i(p[0],[1,1]),...p[0].slice(2)]]);let f=[{point:[p[0][0],p[0][1]],pressure:p[0][2]>=0?p[0][2]:.25,vector:[1,1],distance:0,runningLength:0}],m=!1,g=0,v=f[0],y=p.length-1;for(let e=1;e=0?p[e][2]:.5,vector:c(o(v.point,t)),distance:n,runningLength:g},f.push(v)}return f[0].vector=(null==(n=f[1])?void 0:n.vector)||[0,0],f}var y=function(e,t={}){return g(v(e,t),t)}},33847:function(e,t,n){"use strict";n.d(t,{HY:function(){return v},Tm:function(){return R},Vf:function(){return g},bR:function(){return function e(t,n){return n=n||[],null==t||"boolean"==typeof t||(Array.isArray(t)?t.some(function(t){e(t,n)}):n.push(t)),n}},h:function(){return f},sY:function(){return P},wA:function(){return y}});var r,i,o,a,s,l,u={},c=[],d=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function h(e,t){for(var n in t)e[n]=t[n];return e}function p(e){var t=e.parentNode;t&&t.removeChild(e)}function f(e,t,n){var i,o,a,s={};for(a in t)"key"==a?i=t[a]:"ref"==a?o=t[a]:s[a]=t[a];if(arguments.length>2&&(s.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===s[a]&&(s[a]=e.defaultProps[a]);return m(e,s,i,o,null)}function m(e,t,n,r,a){var s={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==a?++o:a};return null==a&&null!=i.vnode&&i.vnode(s),s}function g(){return{current:null}}function v(e){return e.children}function y(e,t){this.props=e,this.context=t}function b(e,t){if(null==t)return e.__?b(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t0?m(k.type,k.props,k.key,null,k.__v):k)){if(k.__=n,k.__b=n.__b+1,null===(y=E[f])||y&&k.key==y.key&&k.type===y.type)E[f]=void 0;else for(g=0;g2&&(s.children=arguments.length>3?r.call(arguments,2):n),m(e.type,s,i||e.key,o||e.ref,null)}r=c.slice,i={__e:function(e,t,n,r){for(var i,o,a;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(e)),a=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(e,r||{}),a=i.__d),a)return i.__E=i}catch(t){e=t}throw e}},o=0,y.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=h({},this.state),"function"==typeof e&&(e=e(h({},n),this.props)),e&&h(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),k(this))},y.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),k(this))},y.prototype.render=v,a=[],s="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,w.__r=0},34406:function(e){var t,n,r,i=e.exports={};function o(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var l=[],u=!1,c=-1;function d(){u&&r&&(u=!1,r.length?l=r.concat(l):c=-1,l.length&&h())}function h(){if(!u){var e=s(d);u=!0;for(var t=l.length;t;){for(r=l,l=[];++c1)for(var n=1;n-1?e.split(","):e},l=function(e,t){var n={},l=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,u=t.parameterLimit===1/0?void 0:t.parameterLimit,c=l.split(t.delimiter,u),d=-1,h=t.charset;if(t.charsetSentinel)for(p=0;p=0&&n.parseArrays&&c<=n.arrayLimit?(a=[])[c]=i:a[u]=i:a={0:i}}i=a}return i},c=function(e,t,n,r){if(e){var o=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(o),l=s?o.slice(0,s.index):o,c=[];if(l){if(!n.plainObjects&&i.call(Object.prototype,l)&&!n.allowPrototypes)return;c.push(l)}for(var d=0;n.depth>0&&null!==(s=a.exec(o))&&d0?_.join(",")||null:void 0}];else if(l(d))x=d;else{var E=Object.keys(_);x=h?E.sort(h):E}for(var D=0;D0?y+v:""}},12493:function(e,t,n){"use strict";var r=n(85527),i=Object.prototype.hasOwnProperty,o=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(o(n)){for(var r=[],i=0;i=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||o===r.RFC1738&&(40===c||41===c)){l+=s.charAt(u);continue}if(c<128){l+=a[c];continue}if(c<2048){l+=a[192|c>>6]+a[128|63&c];continue}if(c<55296||c>=57344){l+=a[224|c>>12]+a[128|c>>6&63]+a[128|63&c];continue}u+=1,l+=a[240|(c=65536+((1023&c)<<10|1023&s.charCodeAt(u)))>>18]+a[128|c>>12&63]+a[128|c>>6&63]+a[128|63&c]}return l},isBuffer:function(e){return!!e&&"object"==typeof e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(o(e)){for(var n=[],r=0;r>>0},o=function(e){var t,n="rCS"+i(e).toString(36),o=0;return{className:n,inject:function(i,a){void 0===a&&(a={});var s,l,u,c=function(e){if(e&&e.getRootNode){var t=e.getRootNode();if(11===t.nodeType)return t}}(i),d=0===o;return(c||d)&&(s=a,(l=document.createElement("style")).setAttribute("type","text/css"),l.setAttribute("data-styled-id",n),s.nonce&&l.setAttribute("nonce",s.nonce),l.innerHTML=s.original?e:e.replace(/([^};{\s}][^};{]*|^\s*){/mg,function(e,t){var i=t.trim();return(i?(0,r.W6)(i):[""]).map(function(e){var t=e.trim();return 0===t.indexOf("@")?t:t.indexOf(":global")>-1?t.replace(/\:global/g,""):t.indexOf(":host")>-1?""+t.replace(/\:host/g,"."+n):t?"."+n+" "+t:"."+n}).join(", ")+" {"}),(c||document.head||document.body).appendChild(l),u=l),d&&(t=u),!c&&++o,{destroy:function(){c?(i.removeChild(u),u=null):(o>0&&--o,0===o&&t&&(t.parentNode.removeChild(t),t=null))}}}}},a=n(2784),s=n(22989),l=function(e,t){return(l=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function u(e,t){function n(){this.constructor=e}l(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var c=function(){return(c=Object.assign||function(e){for(var t,n=1,r=arguments.length;nt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);it.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}(e,["className","cspNonce","portalContainer"]),i=this.injector.className,o=this.tag,l={};return(a.version||"").indexOf("simple")>-1&&n&&(l={portalContainer:n}),(0,a.createElement)(o,c({ref:(0,s.iH)(this,"element"),"data-styled-id":i,className:(void 0===t?"":t)+" "+i},l,r))},n.componentDidMount=function(){this.injectResult=this.injector.inject(this.element,{nonce:this.props.cspNonce})},n.componentWillUnmount=function(){this.injectResult.destroy(),this.injectResult=null},n.getElement=function(){return this.element},t}(a.Component),h=function(e,t){var n=o(t);return function(t){function r(){var r=null!==t&&t.apply(this,arguments)||this;return r.injector=n,r.tag=e,r}return u(r,t),r}(d)}},80589:function(e,t,n){!function(e,t){"use strict";var n=function(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}(t);function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var i={error:null},o=function(e){function t(){for(var t,n=arguments.length,r=Array(n),o=0;o0;function i(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent("on".concat(t),function(){n(window.event)})}function o(e,t){for(var n=t.slice(0,t.length-1),r=0;r=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}for(var s={backspace:8,tab:9,clear:12,enter:13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":r?173:189,"=":r?61:187,";":r?59:186,"'":222,"[":219,"]":221,"\\":220},l={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},u={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},c={16:!1,18:!1,17:!1,91:!1},d={},h=1;h<20;h++)s["f".concat(h)]=111+h;var p=[],f=!1,m="all",g=[],v=function(e){return s[e.toLowerCase()]||l[e.toLowerCase()]||e.toUpperCase().charCodeAt(0)};function y(e){m=e||"all"}function b(){return m||"all"}var k=function(e){var t=e.key,n=e.scope,r=e.method,i=e.splitKey,s=void 0===i?"+":i;a(t).forEach(function(e){var t=e.split(s),i=t.length,a=t[i-1],u="*"===a?"*":v(a);if(d[u]){n||(n=b());var c=i>1?o(l,t):[];d[u]=d[u].filter(function(e){return!((!r||e.method===r)&&e.scope===n&&function(e,t){for(var n=e.length>=t.length?e:t,r=e.length>=t.length?t:e,i=!0,o=0;o0,c)Object.prototype.hasOwnProperty.call(c,o)&&(!c[o]&&t.mods.indexOf(+o)>-1||c[o]&&-1===t.mods.indexOf(+o))&&(i=!1);(0!==t.mods.length||c[16]||c[18]||c[17]||c[91])&&!i&&"*"!==t.shortcut||!1!==t.method(e,t)||(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}function x(e,t){var n=d["*"],r=e.keyCode||e.which||e.charCode;if(_.filter.call(this,e)){if((93===r||224===r)&&(r=91),-1===p.indexOf(r)&&229!==r&&p.push(r),["ctrlKey","altKey","shiftKey","metaKey"].forEach(function(t){var n=u[t];e[t]&&-1===p.indexOf(n)?p.push(n):!e[t]&&p.indexOf(n)>-1?p.splice(p.indexOf(n),1):"metaKey"===t&&e[t]&&3===p.length&&!(e.ctrlKey||e.shiftKey||e.altKey)&&(p=p.slice(p.indexOf(n)))}),r in c){for(var i in c[r]=!0,l)l[i]===r&&(_[i]=!0);if(!n)return}for(var o in c)Object.prototype.hasOwnProperty.call(c,o)&&(c[o]=e[u[o]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(-1===p.indexOf(17)&&p.push(17),-1===p.indexOf(18)&&p.push(18),c[17]=!0,c[18]=!0);var a=b();if(n)for(var s=0;s1&&(u=o(l,e)),(e="*"===(e=e[e.length-1])?"*":v(e))in d||(d[e]=[]),d[e].push({keyup:b,keydown:k,scope:h,mods:u,shortcut:s[y],method:n,key:s[y],splitKey:w,element:m});void 0!==m&&(r=m,!(g.indexOf(r)>-1))&&window&&(g.push(m),i(m,"keydown",function(e){x(e,m)},S),f||(f=!0,i(window,"focus",function(){p=[]},S)),i(m,"keyup",function(e){x(e,m),function(e){var t=e.keyCode||e.which||e.charCode,n=p.indexOf(t);if(n>=0&&p.splice(n,1),e.key&&"meta"===e.key.toLowerCase()&&p.splice(0,p.length),(93===t||224===t)&&(t=91),t in c)for(var r in c[t]=!1,l)l[r]===t&&(_[r]=!1)}(e)},S))}var S={setScope:y,getScope:b,deleteScope:function(e,t){var n,r;for(var i in e||(e=b()),d)if(Object.prototype.hasOwnProperty.call(d,i))for(r=0,n=d[i];r1&&void 0!==arguments[1]?arguments[1]:"all";Object.keys(d).forEach(function(n){var r=d[n].find(function(n){return n.scope===t&&n.shortcut===e});r&&r.method&&r.method()})},unbind:function(e){if(void 0===e)Object.keys(d).forEach(function(e){return delete d[e]});else if(Array.isArray(e))e.forEach(function(e){e.key&&k(e)});else if("object"==typeof e)e.key&&k(e);else if("string"==typeof e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;rt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);it.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function l(e){return function(t){return r.createElement(u,a({attr:a({},e.attr)},t),function e(t){return t&&t.map(function(t,n){return r.createElement(t.tag,a({key:n},t.attr),e(t.child))})}(e.child))}}function u(e){var t=function(t){var n,i=e.attr,o=e.size,l=e.title,u=s(e,["attr","size","title"]),c=o||t.size||"1em";return t.className&&(n=t.className),e.className&&(n=(n?n+" ":"")+e.className),r.createElement("svg",a({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,i,u,{className:n,style:a(a({color:e.color||t.color},t.style),e.style),height:c,width:c,xmlns:"http://www.w3.org/2000/svg"}),l&&r.createElement("title",null,l),e.children)};return void 0!==o?r.createElement(o.Consumer,null,function(e){return t(e)}):t(i)}},94804:function(e,t,n){"use strict";n.d(t,{Z:function(){return w}});var r,i=n(2784),o=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},a=["br","col","colgroup","dl","hr","iframe","img","input","link","menuitem","meta","ol","param","select","table","tbody","tfoot","thead","tr","ul","wbr"],s={"accept-charset":"acceptCharset",acceptcharset:"acceptCharset",accesskey:"accessKey",allowfullscreen:"allowFullScreen",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",cellpadding:"cellPadding",cellspacing:"cellSpacing",charset:"charSet",class:"className",classid:"classID",classname:"className",colspan:"colSpan",contenteditable:"contentEditable",contextmenu:"contextMenu",controlslist:"controlsList",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",datetime:"dateTime",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",enctype:"encType",for:"htmlFor",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",innerhtml:"innerHTML",inputmode:"inputMode",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",marginwidth:"marginWidth",marginheight:"marginHeight",maxlength:"maxLength",mediagroup:"mediaGroup",minlength:"minLength",nomodule:"noModule",novalidate:"noValidate",playsinline:"playsInline",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rowspan:"rowSpan",spellcheck:"spellCheck",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",tabindex:"tabIndex",typemustmatch:"typeMustMatch",usemap:"useMap",accentheight:"accentHeight","accent-height":"accentHeight",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",arabicform:"arabicForm","arabic-form":"arabicForm",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",diffuseconstant:"diffuseConstant",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",edgemode:"edgeMode",enablebackground:"enableBackground","enable-background":"enableBackground",externalresourcesrequired:"externalResourcesRequired",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",imagerendering:"imageRendering","image-rendering":"imageRendering",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",vmathematical:"vMathematical","v-mathematical":"vMathematical",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan",onblur:"onBlur",onchange:"onChange",onclick:"onClick",oncontextmenu:"onContextMenu",ondoubleclick:"onDoubleClick",ondrag:"onDrag",ondragend:"onDragEnd",ondragenter:"onDragEnter",ondragexit:"onDragExit",ondragleave:"onDragLeave",ondragover:"onDragOver",ondragstart:"onDragStart",ondrop:"onDrop",onerror:"onError",onfocus:"onFocus",oninput:"onInput",oninvalid:"onInvalid",onkeydown:"onKeyDown",onkeypress:"onKeyPress",onkeyup:"onKeyUp",onload:"onLoad",onmousedown:"onMouseDown",onmouseenter:"onMouseEnter",onmouseleave:"onMouseLeave",onmousemove:"onMouseMove",onmouseout:"onMouseOut",onmouseover:"onMouseOver",onmouseup:"onMouseUp",onscroll:"onScroll",onsubmit:"onSubmit",ontouchcancel:"onTouchCancel",ontouchend:"onTouchEnd",ontouchmove:"onTouchMove",ontouchstart:"onTouchStart",onwheel:"onWheel"},l=function(){return(l=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},c=function(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i0;--r)n+=t[Math.round(Math.random()*(t.length-1))];return n}(),"-").concat(x)),Array.isArray(g)&&g.forEach(function(t){t.condition(w,x,b)&&("function"!=typeof t.pre||(w=t.pre(w,x,b))instanceof Node||(w=e),"function"==typeof t.post&&_.push(t.post(w,x,b)))}),_.length)return _;switch(w.nodeType){case 1:return i.createElement((n=w.nodeName,/[a-z]+[A-Z]+[a-z]+/.test(n)?n:n.toLowerCase()),function(e,t){var n={key:t};if(e instanceof Element){var r=e.getAttribute("class");r&&(n.className=r),c([],u(e.attributes),!1).forEach(function(e){switch(e.name){case"class":break;case"style":n[e.name]=e.value.split(/ ?; ?/).reduce(function(e,t){var n=o(t.split(/ ?: ?/),2),r=n[0],i=n[1];return r&&i&&(e[r.replace(/-(\w)/g,function(e,t){return t.toUpperCase()})]=Number.isNaN(Number(i))?i:Number(i)),e},{});break;case"allowfullscreen":case"allowpaymentrequest":case"async":case"autofocus":case"autoplay":case"checked":case"controls":case"default":case"defer":case"disabled":case"formnovalidate":case"hidden":case"ismap":case"itemscope":case"loop":case"multiple":case"muted":case"nomodule":case"novalidate":case"open":case"readonly":case"required":case"reversed":case"selected":case"typemustmatch":n[s[e.name]||e.name]=!0;break;default:n[s[e.name]||e.name]=e.value}})}return n}(w,x),(r=w.childNodes,h=t,(p=c([],u(r),!1).map(function(e,t){return d(e,l(l({},h),{index:t,level:b+1}))}).filter(Boolean)).length?p:null));case 3:var S=(null===(f=w.nodeValue)||void 0===f?void 0:f.toString())||"";if(/^\s+$/.test(S)&&!/[\u00A0\u202F]/.test(S))return null;if(!w.parentNode)return S;var E=w.parentNode.nodeName.toLowerCase();if(a.includes(E))return/\S/.test(S)&&console.warn("A textNode is not allowed inside '".concat(E,"'. Your text \"").concat(S,'" will be ignored')),null;return S;default:return null}}function h(e,t){return(void 0===t&&(t={}),"string"==typeof e)?function(e,t){if(void 0===t&&(t={}),!e||"string"!=typeof e)return null;var n=t.nodeOnly,r=t.selector,i=t.type;try{var o=new DOMParser().parseFromString(e,void 0===i?"text/html":i).querySelector(void 0===r?"body > *":r);if(!(o instanceof Node))throw TypeError("Error parsing input");if(void 0!==n&&n)return o;return d(o,t)}catch(e){}return null}(e,t):e instanceof Node?d(e,t):null}var p=n(85978),f={FAILED:"failed",LOADED:"loaded",LOADING:"loading",PENDING:"pending",READY:"ready",UNSUPPORTED:"unsupported"};function m(){return p.canUseDOM}var g=(r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),v=function(){return(v=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},b=function(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i299)throw Error("Not found");if(!["image/svg+xml","text/plain"].some(function(e){return n.includes(e)}))throw Error("Content type isn't valid: ".concat(n));return e.text()}).then(function(e){var r=n.props.src;if(i!==r){k[i].status===f.LOADING&&delete k[i];return}if(n.handleLoad(e),t){var o=k[i];o&&(o.content=e,o.status=f.LOADED)}}).catch(function(e){n.handleError(e),t&&k[i]&&delete k[i]})}catch(e){return n.handleError(Error(e.message))}}}),n.state={content:"",element:null,hasCache:!!t.cacheRequests&&!!k[t.src],status:f.PENDING},n.hash=t.uniqueHash||function(e){for(var t="abcdefghijklmnopqrstuvwxyz",n="".concat(t).concat(t.toUpperCase()).concat("1234567890"),r="",i=0;i<8;i++)r+=n[Math.floor(Math.random()*n.length)];return r}(0),n}return g(t,e),Object.defineProperty(t.prototype,"componentDidMount",{enumerable:!1,configurable:!0,writable:!0,value:function(){if(this.isActive=!0,m()&&!this.isInitialized){var e=this.state.status,t=this.props.src;try{if(e===f.PENDING){if(!(function(){if(!document)return!1;var e=document.createElement("div");e.innerHTML="";var t=e.firstChild;return!!t&&"http://www.w3.org/2000/svg"===t.namespaceURI}()&&"undefined"!=typeof window&&null!==window))throw Error("Browser does not support SVG");if(!t)throw Error("Missing src");this.load()}}catch(e){this.handleError(e)}this.isInitialized=!0}}}),Object.defineProperty(t.prototype,"componentDidUpdate",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){if(m()){var n=this.state,r=n.hasCache,i=n.status,o=this.props,a=o.onLoad,s=o.src;if(t.status!==f.READY&&i===f.READY&&a&&a(s,r),e.src!==s){if(!s){this.handleError(Error("Missing src"));return}this.load()}}}}),Object.defineProperty(t.prototype,"componentWillUnmount",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.isActive=!1}}),Object.defineProperty(t.prototype,"getNode",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this.props,t=e.description,n=e.title;try{var r=this.processSVG(),i=h(r,{nodeOnly:!0});if(!i||!(i instanceof SVGSVGElement))throw Error("Could not convert the src to a DOM Node");var o=this.updateSVGAttributes(i);if(t){var a=o.querySelector("desc");a&&a.parentNode&&a.parentNode.removeChild(a);var s=document.createElement("desc");s.innerHTML=t,o.prepend(s)}if(n){var l=o.querySelector("title");l&&l.parentNode&&l.parentNode.removeChild(l);var u=document.createElement("title");u.innerHTML=n,o.prepend(u)}return o}catch(e){return this.handleError(e)}}}),Object.defineProperty(t.prototype,"getElement",{enumerable:!1,configurable:!0,writable:!0,value:function(){try{var e=this.getNode(),t=h(e);if(!t||!i.isValidElement(t))throw Error("Could not convert the src to a React element");this.setState({element:t,status:f.READY})}catch(e){this.handleError(Error(e.message))}}}),Object.defineProperty(t.prototype,"load",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this;this.isActive&&this.setState({content:"",element:null,status:f.LOADING},function(){var t,n=e.props,r=n.cacheRequests,i=n.src,o=r&&k[i];if(o&&o.status===f.LOADED){e.handleLoad(o.content);return}var a=i.match(/data:image\/svg[^,]*?(;base64)?,(.*)/);if(a?t=a[1]?window.atob(a[2]):decodeURIComponent(a[2]):i.includes(" needs to exist in the component ancestry.")}var l=(0,r.pi)((0,r.pi)({},a.Z0),{textComponent:i.Fragment});function u(e){return function(t){return e(i.Children.toArray(t))}}function c(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=Object.keys(e),r=Object.keys(t),i=n.length;if(r.length!==i)return!1;for(var o=0;oa;var l=n(2784);let u=l.createContext(null);function c(){let e=(0,l.useContext)(u);return e}let d=()=>{throw Error("uSES not initialized!")},h=(e,t)=>e===t,p=function(e=u){let t=e===u?c:()=>(0,l.useContext)(e);return function(e,n=h){let{store:r,subscription:i,getServerState:o}=t(),a=d(i.addNestedSub,r.getState,o||r.getState,e,n);return(0,l.useDebugValue)(a),a}}();n(73463),n(63920);let f={notify(){},get:()=>[]},m=!!("undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement),g=m?l.useLayoutEffect:l.useEffect;var v=function({store:e,context:t,children:n,serverState:r}){let i=(0,l.useMemo)(()=>{let t=function(e,t){let n;let r=f;function i(){a.onStateChange&&a.onStateChange()}function o(){n||(n=t?t.addNestedSub(i):e.subscribe(i),r=function(){let e=s(),t=null,n=null;return{clear(){t=null,n=null},notify(){e(()=>{let e=t;for(;e;)e.callback(),e=e.next})},get(){let e=[],n=t;for(;n;)e.push(n),n=n.next;return e},subscribe(e){let r=!0,i=n={callback:e,next:null,prev:n};return i.prev?i.prev.next=i:t=i,function(){r&&null!==t&&(r=!1,i.next?i.next.prev=i.prev:n=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}())}let a={addNestedSub:function(e){return o(),r.subscribe(e)},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:i,isSubscribed:function(){return!!n},trySubscribe:o,tryUnsubscribe:function(){n&&(n(),n=void 0,r.clear(),r=f)},getListeners:()=>r};return a}(e);return{store:e,subscription:t,getServerState:r?()=>r:void 0}},[e,r]),o=(0,l.useMemo)(()=>e.getState(),[e]);g(()=>{let{subscription:t}=i;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),o!==e.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}},[i,o]);let a=t||u;return l.createElement(a.Provider,{value:i},n)};function y(e=u){let t=e===u?c:()=>(0,l.useContext)(e);return function(){let{store:e}=t();return e}}let b=y(),k=function(e=u){let t=e===u?b:y(e);return function(){let e=t();return e.dispatch}}();d=i.useSyncExternalStoreWithSelector,r.useSyncExternalStore,a=o.unstable_batchedUpdates},98559:function(e,t){"use strict";Symbol.for("react.element"),Symbol.for("react.portal"),Symbol.for("react.fragment"),Symbol.for("react.strict_mode"),Symbol.for("react.profiler"),Symbol.for("react.provider"),Symbol.for("react.context"),Symbol.for("react.server_context"),Symbol.for("react.forward_ref"),Symbol.for("react.suspense"),Symbol.for("react.suspense_list"),Symbol.for("react.memo"),Symbol.for("react.lazy"),Symbol.for("react.offscreen"),Symbol.for("react.module.reference")},63920:function(e,t,n){"use strict";n(98559)},95346:function(e,t,n){"use strict";n.d(t,{Av:function(){return a},pF:function(){return r},xv:function(){return o},zi:function(){return i}});var r="right-scroll-bar-position",i="width-before-scroll-bar",o="with-scroll-bars-hidden",a="--removed-body-scroll-bar-size"},181:function(e,t,n){"use strict";n.d(t,{jp:function(){return h}});var r=n(2784),i=n(33225),o=n(95346),a={left:0,top:0,right:0,gap:0},s=function(e){return parseInt(e||"",10)||0},l=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[s(n),s(r),s(i)]},u=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return a;var t=l(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])}},c=(0,i.Ws)(),d=function(e,t,n,r){var i=e.left,a=e.top,s=e.right,l=e.gap;return void 0===n&&(n="margin"),"\n .".concat(o.xv," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(l,"px ").concat(r,";\n }\n body {\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(a,"px;\n padding-right: ").concat(s,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(l,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(l,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(o.pF," {\n right: ").concat(l,"px ").concat(r,";\n }\n \n .").concat(o.zi," {\n margin-right: ").concat(l,"px ").concat(r,";\n }\n \n .").concat(o.pF," .").concat(o.pF," {\n right: 0 ").concat(r,";\n }\n \n .").concat(o.zi," .").concat(o.zi," {\n margin-right: 0 ").concat(r,";\n }\n \n body {\n ").concat(o.Av,": ").concat(l,"px;\n }\n")},h=function(e){var t=e.noRelative,n=e.noImportant,i=e.gapMode,o=void 0===i?"margin":i,a=r.useMemo(function(){return u(o)},[o]);return r.createElement(c,{styles:d(a,!t,o,n?"":"!important")})}},75641:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(2784);function i(){return(i=Object.assign||function(e){for(var t=1;t100)throw r=0,Error("Call stack overflow for "+l);if(""===n)throw Error(o+"(): '"+l+"' must contain a non-whitespace string");var u,c=function(e){for(var t=[],n=[],r=/[\.0-9]([%a-z]+)/gi,i=r.exec(e);i;)i&&i[1]&&(-1===n.indexOf(i[1].toLowerCase())&&(t.push(i[1]),n.push(i[1].toLowerCase())),i=r.exec(e));return t}(n=function(t,n){t=t.replace(/((?:\-[a-z]+\-)?calc)/g,"");for(var r,o="",a=t;r=s.exec(a);){r[0].index>0&&(o+=a.substring(0,r[0].index));var l=i("(",")",a.substring([0].index));if(""===l.body)throw Error("'"+t+"' must contain a non-whitespace string");var u=e(l.body,"",n);o+=l.pre+u,a=l.post}return o+a}(n,l));if(c.length>1||n.indexOf("var(")>-1)return o+"("+n+")";var d=c[0]||"";"%"===d&&(n=n.replace(/\b[0-9\.]+%/g,function(e){return .01*parseFloat(e.slice(0,-1))}));var h=n.replace(RegExp(d,"gi"),"");try{u=a.eval(h)}catch(e){return o+"("+n+")"}return"%"===d&&(u*=100),(o.length||"%"===d)&&(u=Math.round(u*t)/t),u+=d})}},58085:function(e){function t(e,t,i){e instanceof RegExp&&(e=n(e,i)),t instanceof RegExp&&(t=n(t,i));var o=r(e,t,i);return o&&{start:o[0],end:o[1],pre:i.slice(0,o[0]),body:i.slice(o[0]+e.length,o[1]),post:i.slice(o[1]+t.length)}}function n(e,t){var n=t.match(e);return n?n[0]:null}function r(e,t,n){var r,i,o,a,s,l=n.indexOf(e),u=n.indexOf(t,l+1),c=l;if(l>=0&&u>0){for(r=[],o=n.length;c>=0&&!s;)c==l?(r.push(c),l=n.indexOf(e,c+1)):1==r.length?s=[r.pop(),u]:((i=r.pop())=0?l:u;r.length&&(s=[o,a])}return s}e.exports=t,t.range=r},41964:function(e,t,n){var r=n(82294);e.exports=function e(t,n,i){return(function(e,t){var n=[],i="string"==typeof t?RegExp("\\b("+t+")\\("):t;do{var o=i.exec(e);if(!o)break;if(void 0===o[1])throw Error("Missing the first couple of parenthesis to get the function identifier in "+t);var a=o[1],s=o.index,l=r("(",")",e.substring(s));if(!l||l.start!==o[0].length-1)throw SyntaxError(a+"(): missing closing ')' in the value '"+e+"'");n.push({matches:l,functionIdentifier:a}),e=l.post}while(i.test(e));return n})(t,n).reduce(function(r,o){var a,s;return r.replace(o.functionIdentifier+"("+o.matches.body+")",(a=o.matches.body,s=o.functionIdentifier,i(e(a,n,i),s,t)))},t)}},38726:function(e,t,n){"use strict";n.d(t,{md:function(){return p},UY:function(){return d},qC:function(){return h},MT:function(){return c}});var r=n(56666);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t>>0,r-=t,r*=t,t=r>>>0,r-=t,t+=4294967296*r}return(t>>>0)*23283064365386963e-26});n.next=function(){var e=2091639*n.s0+23283064365386963e-26*n.c;return n.s0=n.s1,n.s1=n.s2,n.s2=e-(n.c=0|e)},n.c=1,n.s0=r(" "),n.s1=r(" "),n.s2=r(" "),n.s0-=r(e),n.s0<0&&(n.s0+=1),n.s1-=r(e),n.s1<0&&(n.s1+=1),n.s2-=r(e),n.s2<0&&(n.s2+=1)}function s(e,t){return t.c=e.c,t.s0=e.s0,t.s1=e.s1,t.s2=e.s2,t}function l(e,t){var n=new a(e),r=t&&t.state,i=n.next;return i.int32=function(){return 4294967296*n.next()|0},i.double=function(){return i()+(2097152*i()|0)*11102230246251565e-32},i.quick=i,r&&("object"==typeof r&&s(r,n),i.state=function(){return s(n,{})}),i}i&&i.exports?i.exports=l:n.amdD&&n.amdO?void 0!==(r=(function(){return l}).call(t,n,t,i))&&(i.exports=r):this.alea=l}(0,e=n.nmd(e),n.amdD)},33929:function(e,t,n){var r;!function(e,i,o){function a(e){var t=this,n="";t.next=function(){var e=t.b,n=t.c,r=t.d,i=t.a;return e=e<<25^e>>>7^n,n=n-r|0,r=r<<24^r>>>8^i,i=i-e|0,t.b=e=e<<20^e>>>12^n,t.c=n=n-r|0,t.d=r<<16^n>>>16^i,t.a=i-e|0},t.a=0,t.b=0,t.c=-1640531527,t.d=1367130551,e===Math.floor(e)?(t.a=e/4294967296|0,t.b=0|e):n+=e;for(var r=0;r>>0)/4294967296};return i.double=function(){do var e=((n.next()>>>11)+(n.next()>>>0)/4294967296)/2097152;while(0===e);return e},i.int32=n.next,i.quick=i,r&&("object"==typeof r&&s(r,n),i.state=function(){return s(n,{})}),i}i&&i.exports?i.exports=l:n.amdD&&n.amdO?void 0!==(r=(function(){return l}).call(t,n,t,i))&&(i.exports=r):this.tychei=l}(0,e=n.nmd(e),n.amdD)},12824:function(e,t,n){var r;!function(e,i,o){function a(e){var t=this,n="";t.x=0,t.y=0,t.z=0,t.w=0,t.next=function(){var e=t.x^t.x<<11;return t.x=t.y,t.y=t.z,t.z=t.w,t.w^=t.w>>>19^e^e>>>8},e===(0|e)?t.x=e:n+=e;for(var r=0;r>>0)/4294967296};return i.double=function(){do var e=((n.next()>>>11)+(n.next()>>>0)/4294967296)/2097152;while(0===e);return e},i.int32=n.next,i.quick=i,r&&("object"==typeof r&&s(r,n),i.state=function(){return s(n,{})}),i}i&&i.exports?i.exports=l:n.amdD&&n.amdO?void 0!==(r=(function(){return l}).call(t,n,t,i))&&(i.exports=r):this.xor128=l}(0,e=n.nmd(e),n.amdD)},45028:function(e,t,n){var r;!function(e,i,o){function a(e){var t=this;t.next=function(){var e,n,r=t.w,i=t.X,o=t.i;return t.w=r=r+1640531527|0,n=i[o+34&127],e=i[o=o+1&127],n^=n<<13,e^=e<<17,n^=n>>>15,e^=e>>>12,n=i[o]=n^e,t.i=o,n+(r^r>>>16)|0},function(e,t){var n,r,i,o,a,s=[],l=128;for(t===(0|t)?(r=t,t=null):(t+="\x00",r=0,l=Math.max(l,t.length)),i=0,o=-32;o>>15,r^=r<<4,r^=r>>>13,o>=0&&(a=a+1640531527|0,i=0==(n=s[127&o]^=r+a)?i+1:0);for(i>=128&&(s[127&(t&&t.length||0)]=-1),i=127,o=512;o>0;--o)r=s[i+34&127],n=s[i=i+1&127],r^=r<<13,n^=n<<17,r^=r>>>15,n^=n>>>12,s[i]=r^n;e.w=a,e.X=s,e.i=i}(t,e)}function s(e,t){return t.i=e.i,t.w=e.w,t.X=e.X.slice(),t}function l(e,t){null==e&&(e=+new Date);var n=new a(e),r=t&&t.state,i=function(){return(n.next()>>>0)/4294967296};return i.double=function(){do var e=((n.next()>>>11)+(n.next()>>>0)/4294967296)/2097152;while(0===e);return e},i.int32=n.next,i.quick=i,r&&(r.X&&s(r,n),i.state=function(){return s(n,{})}),i}i&&i.exports?i.exports=l:n.amdD&&n.amdO?void 0!==(r=(function(){return l}).call(t,n,t,i))&&(i.exports=r):this.xor4096=l}(0,e=n.nmd(e),n.amdD)},10330:function(e,t,n){var r;!function(e,i,o){function a(e){var t=this;t.next=function(){var e,n,r=t.x,i=t.i;return e=r[i],e^=e>>>7,n=e^e<<24^((e=r[i+1&7])^e>>>10)^((e=r[i+3&7])^e>>>3)^((e=r[i+4&7])^e<<7),e=r[i+7&7],e^=e<<13,n^=e^e<<9,r[i]=n,t.i=i+1&7,n},function(e,t){var n,r=[];if(t===(0|t))r[0]=t;else for(n=0,t=""+t;n0;--n)e.next()}(t,e)}function s(e,t){return t.x=e.x.slice(),t.i=e.i,t}function l(e,t){null==e&&(e=+new Date);var n=new a(e),r=t&&t.state,i=function(){return(n.next()>>>0)/4294967296};return i.double=function(){do var e=((n.next()>>>11)+(n.next()>>>0)/4294967296)/2097152;while(0===e);return e},i.int32=n.next,i.quick=i,r&&(r.x&&s(r,n),i.state=function(){return s(n,{})}),i}i&&i.exports?i.exports=l:n.amdD&&n.amdO?void 0!==(r=(function(){return l}).call(t,n,t,i))&&(i.exports=r):this.xorshift7=l}(0,e=n.nmd(e),n.amdD)},244:function(e,t,n){var r;!function(e,i,o){function a(e){var t=this,n="";t.next=function(){var e=t.x^t.x>>>2;return t.x=t.y,t.y=t.z,t.z=t.w,t.w=t.v,(t.d=t.d+362437|0)+(t.v=t.v^t.v<<4^(e^e<<1))|0},t.x=0,t.y=0,t.z=0,t.w=0,t.v=0,e===(0|e)?t.x=e:n+=e;for(var r=0;r>>4),t.next()}function s(e,t){return t.x=e.x,t.y=e.y,t.z=e.z,t.w=e.w,t.v=e.v,t.d=e.d,t}function l(e,t){var n=new a(e),r=t&&t.state,i=function(){return(n.next()>>>0)/4294967296};return i.double=function(){do var e=((n.next()>>>11)+(n.next()>>>0)/4294967296)/2097152;while(0===e);return e},i.int32=n.next,i.quick=i,r&&("object"==typeof r&&s(r,n),i.state=function(){return s(n,{})}),i}i&&i.exports?i.exports=l:n.amdD&&n.amdO?void 0!==(r=(function(){return l}).call(t,n,t,i))&&(i.exports=r):this.xorwow=l}(0,e=n.nmd(e),n.amdD)},53154:function(e,t,n){var r;!function(i,o,a){var s,l=a.pow(256,6),u=a.pow(2,52),c=2*u;function d(e,t,n){var r=[],d=f(function e(t,n){var r,i=[],o=typeof t;if(n&&"object"==o)for(r in t)try{i.push(e(t[r],n-1))}catch(e){}return i.length?i:"string"==o?t:t+"\x00"}((t=!0==t?{entropy:!0}:t||{}).entropy?[e,m(o)]:null==e?function(){try{var e;return s&&(e=s.randomBytes)?e=e(256):(e=new Uint8Array(256),(i.crypto||i.msCrypto).getRandomValues(e)),m(e)}catch(e){var t=i.navigator,n=t&&t.plugins;return[+new Date,i,n,i.screen,m(o)]}}():e,3),r),g=new h(r),v=function(){for(var e=g.g(6),t=l,n=0;e=c;)e/=2,t/=2,n>>>=1;return(e+n)/t};return v.int32=function(){return 0|g.g(4)},v.quick=function(){return g.g(4)/4294967296},v.double=v,f(m(g.S),o),(t.pass||n||function(e,t,n,r){return(r&&(r.S&&p(r,g),e.state=function(){return p(g,{})}),n)?(a.random=e,t):e})(v,d,"global"in t?t.global:this==a,t.state)}function h(e){var t,n=e.length,r=this,i=0,o=r.i=r.j=0,a=r.S=[];for(n||(e=[n++]);i<256;)a[i]=i++;for(i=0;i<256;i++)a[i]=a[o=255&o+e[i%n]+(t=a[i])],a[o]=t;(r.g=function(e){for(var t,n=0,i=r.i,o=r.j,a=r.S;e--;)t=a[i=255&i+1],n=256*n+a[255&(a[i]=a[o=255&o+t])+(a[o]=t)];return r.i=i,r.j=o,n})(256)}function p(e,t){return t.i=e.i,t.j=e.j,t.S=e.S.slice(),t}function f(e,t){for(var n,r=e+"",i=0;i>>25)+r|0)&r|~n&i)+t[1]-389564586|0,i+=((o=(o<<12|o>>>20)+n|0)&n|~o&r)+t[2]+606105819|0,r+=((i=(i<<17|i>>>15)+o|0)&o|~i&n)+t[3]-1044525330|0,n+=((r=(r<<22|r>>>10)+i|0)&i|~r&o)+t[4]-176418897|0,o+=((n=(n<<7|n>>>25)+r|0)&r|~n&i)+t[5]+1200080426|0,i+=((o=(o<<12|o>>>20)+n|0)&n|~o&r)+t[6]-1473231341|0,r+=((i=(i<<17|i>>>15)+o|0)&o|~i&n)+t[7]-45705983|0,n+=((r=(r<<22|r>>>10)+i|0)&i|~r&o)+t[8]+1770035416|0,o+=((n=(n<<7|n>>>25)+r|0)&r|~n&i)+t[9]-1958414417|0,i+=((o=(o<<12|o>>>20)+n|0)&n|~o&r)+t[10]-42063|0,r+=((i=(i<<17|i>>>15)+o|0)&o|~i&n)+t[11]-1990404162|0,n+=((r=(r<<22|r>>>10)+i|0)&i|~r&o)+t[12]+1804603682|0,o+=((n=(n<<7|n>>>25)+r|0)&r|~n&i)+t[13]-40341101|0,i+=((o=(o<<12|o>>>20)+n|0)&n|~o&r)+t[14]-1502002290|0,r+=((i=(i<<17|i>>>15)+o|0)&o|~i&n)+t[15]+1236535329|0,n+=((r=(r<<22|r>>>10)+i|0)&o|i&~o)+t[1]-165796510|0,o+=((n=(n<<5|n>>>27)+r|0)&i|r&~i)+t[6]-1069501632|0,i+=((o=(o<<9|o>>>23)+n|0)&r|n&~r)+t[11]+643717713|0,r+=((i=(i<<14|i>>>18)+o|0)&n|o&~n)+t[0]-373897302|0,n+=((r=(r<<20|r>>>12)+i|0)&o|i&~o)+t[5]-701558691|0,o+=((n=(n<<5|n>>>27)+r|0)&i|r&~i)+t[10]+38016083|0,i+=((o=(o<<9|o>>>23)+n|0)&r|n&~r)+t[15]-660478335|0,r+=((i=(i<<14|i>>>18)+o|0)&n|o&~n)+t[4]-405537848|0,n+=((r=(r<<20|r>>>12)+i|0)&o|i&~o)+t[9]+568446438|0,o+=((n=(n<<5|n>>>27)+r|0)&i|r&~i)+t[14]-1019803690|0,i+=((o=(o<<9|o>>>23)+n|0)&r|n&~r)+t[3]-187363961|0,r+=((i=(i<<14|i>>>18)+o|0)&n|o&~n)+t[8]+1163531501|0,n+=((r=(r<<20|r>>>12)+i|0)&o|i&~o)+t[13]-1444681467|0,o+=((n=(n<<5|n>>>27)+r|0)&i|r&~i)+t[2]-51403784|0,i+=((o=(o<<9|o>>>23)+n|0)&r|n&~r)+t[7]+1735328473|0,r+=((i=(i<<14|i>>>18)+o|0)&n|o&~n)+t[12]-1926607734|0,n+=((r=(r<<20|r>>>12)+i|0)^i^o)+t[5]-378558|0,o+=((n=(n<<4|n>>>28)+r|0)^r^i)+t[8]-2022574463|0,i+=((o=(o<<11|o>>>21)+n|0)^n^r)+t[11]+1839030562|0,r+=((i=(i<<16|i>>>16)+o|0)^o^n)+t[14]-35309556|0,n+=((r=(r<<23|r>>>9)+i|0)^i^o)+t[1]-1530992060|0,o+=((n=(n<<4|n>>>28)+r|0)^r^i)+t[4]+1272893353|0,i+=((o=(o<<11|o>>>21)+n|0)^n^r)+t[7]-155497632|0,r+=((i=(i<<16|i>>>16)+o|0)^o^n)+t[10]-1094730640|0,n+=((r=(r<<23|r>>>9)+i|0)^i^o)+t[13]+681279174|0,o+=((n=(n<<4|n>>>28)+r|0)^r^i)+t[0]-358537222|0,i+=((o=(o<<11|o>>>21)+n|0)^n^r)+t[3]-722521979|0,r+=((i=(i<<16|i>>>16)+o|0)^o^n)+t[6]+76029189|0,n+=((r=(r<<23|r>>>9)+i|0)^i^o)+t[9]-640364487|0,o+=((n=(n<<4|n>>>28)+r|0)^r^i)+t[12]-421815835|0,i+=((o=(o<<11|o>>>21)+n|0)^n^r)+t[15]+530742520|0,r+=((i=(i<<16|i>>>16)+o|0)^o^n)+t[2]-995338651|0,r=(r<<23|r>>>9)+i|0,n+=(i^(r|~o))+t[0]-198630844|0,n=(n<<6|n>>>26)+r|0,o+=(r^(n|~i))+t[7]+1126891415|0,o=(o<<10|o>>>22)+n|0,i+=(n^(o|~r))+t[14]-1416354905|0,i=(i<<15|i>>>17)+o|0,r+=(o^(i|~n))+t[5]-57434055|0,r=(r<<21|r>>>11)+i|0,n+=(i^(r|~o))+t[12]+1700485571|0,n=(n<<6|n>>>26)+r|0,o+=(r^(n|~i))+t[3]-1894986606|0,o=(o<<10|o>>>22)+n|0,i+=(n^(o|~r))+t[10]-1051523|0,i=(i<<15|i>>>17)+o|0,r+=(o^(i|~n))+t[1]-2054922799|0,r=(r<<21|r>>>11)+i|0,n+=(i^(r|~o))+t[8]+1873313359|0,n=(n<<6|n>>>26)+r|0,o+=(r^(n|~i))+t[15]-30611744|0,o=(o<<10|o>>>22)+n|0,i+=(n^(o|~r))+t[6]-1560198380|0,i=(i<<15|i>>>17)+o|0,r+=(o^(i|~n))+t[13]+1309151649|0,r=(r<<21|r>>>11)+i|0,n+=(i^(r|~o))+t[4]-145523070|0,n=(n<<6|n>>>26)+r|0,o+=(r^(n|~i))+t[11]-1120210379|0,o=(o<<10|o>>>22)+n|0,i+=(n^(o|~r))+t[2]+718787259|0,i=(i<<15|i>>>17)+o|0,r+=(o^(i|~n))+t[9]-343485551|0,r=(r<<21|r>>>11)+i|0,e[0]=n+e[0]|0,e[1]=r+e[1]|0,e[2]=i+e[2]|0,e[3]=o+e[3]|0}function r(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return n}function i(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e[t]+(e[t+1]<<8)+(e[t+2]<<16)+(e[t+3]<<24);return n}function o(e){var t,i,o,a,s,l,u=e.length,c=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=u;t+=64)n(c,r(e.substring(t-64,t)));for(i=(e=e.substring(t-64)).length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t>2]|=e.charCodeAt(t)<<(t%4<<3);if(o[t>>2]|=128<<(t%4<<3),t>55)for(n(c,o),t=0;t<16;t+=1)o[t]=0;return s=parseInt((a=(a=8*u).toString(16).match(/(.*?)(.{0,8})$/))[2],16),l=parseInt(a[1],16)||0,o[14]=s,o[15]=l,n(c,o),c}function a(e){var n;for(n=0;n>8*n+4&15]+t[e>>8*n&15];return r}(e[n]);return e.join("")}function s(e){return/[\u0080-\uFFFF]/.test(e)&&(e=unescape(encodeURIComponent(e))),e}function l(e){var t,n=[],r=e.length;for(t=0;tu)?new ArrayBuffer(0):(r=u-l,i=new ArrayBuffer(r),o=new Uint8Array(i),a=new Uint8Array(this,l,r),o.set(a),i)}}(),u.prototype.append=function(e){return this.appendBinary(s(e)),this},u.prototype.appendBinary=function(e){this._buff+=e,this._length+=e.length;var t,i=this._buff.length;for(t=64;t<=i;t+=64)n(this._hash,r(this._buff.substring(t-64,t)));return this._buff=this._buff.substring(t-64),this},u.prototype.end=function(e){var t,n,r=this._buff,i=r.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t>2]|=r.charCodeAt(t)<<(t%4<<3);return this._finish(o,i),n=a(this._hash),e&&(n=l(n)),this.reset(),n},u.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},u.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},u.prototype.setState=function(e){return this._buff=e.buff,this._length=e.length,this._hash=e.hash,this},u.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},u.prototype._finish=function(e,t){var r,i,o,a=t;if(e[a>>2]|=128<<(a%4<<3),a>55)for(n(this._hash,e),a=0;a<16;a+=1)e[a]=0;i=parseInt((r=(r=8*this._length).toString(16).match(/(.*?)(.{0,8})$/))[2],16),o=parseInt(r[1],16)||0,e[14]=i,e[15]=o,n(this._hash,e)},u.hash=function(e,t){return u.hashBinary(s(e),t)},u.hashBinary=function(e,t){var n=a(o(e));return t?l(n):n},u.ArrayBuffer=function(){this.reset()},u.ArrayBuffer.prototype.append=function(e){var t,r,o,a=(t=this._buff.buffer,(r=new Uint8Array(t.byteLength+e.byteLength)).set(new Uint8Array(t)),r.set(new Uint8Array(e),t.byteLength),r),s=a.length;for(this._length+=e.byteLength,o=64;o<=s;o+=64)n(this._hash,i(a.subarray(o-64,o)));return this._buff=new Uint8Array(o-64>2]|=r[t]<<(t%4<<3);return this._finish(o,i),n=a(this._hash),e&&(n=l(n)),this.reset(),n},u.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},u.ArrayBuffer.prototype.getState=function(){var e,t=u.prototype.getState.call(this);return t.buff=(e=t.buff,String.fromCharCode.apply(null,new Uint8Array(e))),t},u.ArrayBuffer.prototype.setState=function(e){return e.buff=function(e,t){var n,r=e.length,i=new ArrayBuffer(r),o=new Uint8Array(i);for(n=0;n>2]|=e[t]<<(t%4<<3);if(o[t>>2]|=128<<(t%4<<3),t>55)for(n(c,o),t=0;t<16;t+=1)o[t]=0;return s=parseInt((a=(a=8*u).toString(16).match(/(.*?)(.{0,8})$/))[2],16),l=parseInt(a[1],16)||0,o[14]=s,o[15]=l,n(c,o),c}(new Uint8Array(e)));return t?l(r):r},u}()},66545:function(e){"use strict";function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0||e instanceof Object)?t(e):null)},y.prototype.toError=function(){var e=this.req,t=e.method,n=e.url,r=Error("cannot ".concat(t," ").concat(n," (").concat(this.status,")"));return r.status=this.status,r.method=t,r.url=n,r},p.Response=y,o(b.prototype),l(b.prototype),b.prototype.type=function(e){return this.set("Content-Type",p.types[e]||e),this},b.prototype.accept=function(e){return this.set("Accept",p.types[e]||e),this},b.prototype.auth=function(e,t,n){return 1==arguments.length&&(t=""),"object"===r(t)&&null!==t&&(n=t,t=""),n||(n={type:"function"==typeof btoa?"basic":"auto"}),this._auth(e,t,n,function(e){if("function"==typeof btoa)return btoa(e);throw Error("Cannot use basic auth, btoa is not a function")})},b.prototype.query=function(e){return"string"!=typeof e&&(e=m(e)),e&&this._query.push(e),this},b.prototype.attach=function(e,t,n){if(t){if(this._data)throw Error("superagent can't mix .send() and .attach()");this._getFormData().append(e,t,n||t.name)}return this},b.prototype._getFormData=function(){return this._formData||(this._formData=new i.FormData),this._formData},b.prototype.callback=function(e,t){if(this._shouldRetry(e,t))return this._retry();var n=this._callback;this.clearTimeout(),e&&(this._maxRetries&&(e.retries=this._retries-1),this.emit("error",e)),n(e,t)},b.prototype.crossDomainError=function(){var e=Error("Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.");e.crossDomain=!0,e.status=this.status,e.method=this.method,e.url=this.url,this.callback(e)},b.prototype.agent=function(){return console.warn("This is not supported in browser version of superagent"),this},b.prototype.ca=b.prototype.agent,b.prototype.buffer=b.prototype.ca,b.prototype.write=function(){throw Error("Streaming is not supported in browser version of superagent")},b.prototype.pipe=b.prototype.write,b.prototype._isHost=function(e){return e&&"object"===r(e)&&!Array.isArray(e)&&"[object Object]"!==Object.prototype.toString.call(e)},b.prototype.end=function(e){this._endCalled&&console.warn("Warning: .end() was called twice. This is not supported in superagent"),this._endCalled=!0,this._callback=e||h,this._finalizeQueryString(),this._end()},b.prototype._setUploadTimeout=function(){var e=this;this._uploadTimeout&&!this._uploadTimeoutTimer&&(this._uploadTimeoutTimer=setTimeout(function(){e._timeoutError("Upload timeout of ",e._uploadTimeout,"ETIMEDOUT")},this._uploadTimeout))},b.prototype._end=function(){if(this._aborted)return this.callback(Error("The request has been aborted even before .end() was called"));var e=this;this.xhr=p.getXHR();var t=this.xhr,n=this._formData||this._data;this._setTimeouts(),t.onreadystatechange=function(){var n,r=t.readyState;if(r>=2&&e._responseTimeoutTimer&&clearTimeout(e._responseTimeoutTimer),4===r){try{n=t.status}catch(e){n=0}if(!n){if(e.timedout||e._aborted)return;return e.crossDomainError()}e.emit("end")}};var r=function(t,n){n.total>0&&(n.percent=n.loaded/n.total*100,100===n.percent&&clearTimeout(e._uploadTimeoutTimer)),n.direction=t,e.emit("progress",n)};if(this.hasListeners("progress"))try{t.addEventListener("progress",r.bind(null,"download")),t.upload&&t.upload.addEventListener("progress",r.bind(null,"upload"))}catch(e){}t.upload&&this._setUploadTimeout();try{this.username&&this.password?t.open(this.method,this.url,!0,this.username,this.password):t.open(this.method,this.url,!0)}catch(e){return this.callback(e)}if(this._withCredentials&&(t.withCredentials=!0),!this._formData&&"GET"!==this.method&&"HEAD"!==this.method&&"string"!=typeof n&&!this._isHost(n)){var i=this._header["content-type"],o=this._serializer||p.serialize[i?i.split(";")[0]:""];!o&&v(i)&&(o=p.serialize["application/json"]),o&&(n=o(n))}for(var a in this.header)null!==this.header[a]&&Object.prototype.hasOwnProperty.call(this.header,a)&&t.setRequestHeader(a,this.header[a]);this._responseType&&(t.responseType=this._responseType),this.emit("request",this),t.send(void 0===n?null:n)},p.agent=function(){return new d},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach(function(e){d.prototype[e.toLowerCase()]=function(t,n){var r=new p.Request(e,t);return this._setDefaults(r),n&&r.end(n),r}}),d.prototype.del=d.prototype.delete,p.get=function(e,t,n){var r=p("GET",e);return"function"==typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},p.head=function(e,t,n){var r=p("HEAD",e);return"function"==typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},p.options=function(e,t,n){var r=p("OPTIONS",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},p.del=k,p.delete=k,p.patch=function(e,t,n){var r=p("PATCH",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},p.post=function(e,t,n){var r=p("POST",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},p.put=function(e,t,n){var r=p("PUT",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r}},73354:function(e){"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=function(e){return null!==e&&"object"===t(e)}},2474:function(e,t,n){"use strict";function r(e){return(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})(e)}var i=n(73354);function o(e){if(e)return function(e){for(var t in o.prototype)Object.prototype.hasOwnProperty.call(o.prototype,t)&&(e[t]=o.prototype[t]);return e}(e)}e.exports=o,o.prototype.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),clearTimeout(this._uploadTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,delete this._uploadTimeoutTimer,this},o.prototype.parse=function(e){return this._parser=e,this},o.prototype.responseType=function(e){return this._responseType=e,this},o.prototype.serialize=function(e){return this._serializer=e,this},o.prototype.timeout=function(e){if(!e||"object"!==r(e))return this._timeout=e,this._responseTimeout=0,this._uploadTimeout=0,this;for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))switch(t){case"deadline":this._timeout=e.deadline;break;case"response":this._responseTimeout=e.response;break;case"upload":this._uploadTimeout=e.upload;break;default:console.warn("Unknown timeout option",t)}return this},o.prototype.retry=function(e,t){return(0==arguments.length||!0===e)&&(e=1),e<=0&&(e=0),this._maxRetries=e,this._retries=0,this._retryCallback=t,this};var a=new Set(["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"]),s=new Set([408,413,429,500,502,503,504,521,522,524]);o.prototype._shouldRetry=function(e,t){if(!this._maxRetries||this._retries++>=this._maxRetries)return!1;if(this._retryCallback)try{var n=this._retryCallback(e,t);if(!0===n)return!0;if(!1===n)return!1}catch(e){console.error(e)}return!!(t&&t.status&&s.has(t.status)||e&&(e.code&&a.has(e.code)||e.timeout&&"ECONNABORTED"===e.code||e.crossDomain))},o.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this.timedoutError=null,this._end()},o.prototype.then=function(e,t){var n=this;if(!this._fullfilledPromise){var r=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise(function(e,t){r.on("abort",function(){if(!n._maxRetries||!(n._maxRetries>n._retries)){if(n.timedout&&n.timedoutError){t(n.timedoutError);return}var e=Error("Aborted");e.code="ABORTED",e.status=n.status,e.method=n.method,e.url=n.url,t(e)}}),r.end(function(n,r){n?t(n):e(r)})})}return this._fullfilledPromise.then(e,t)},o.prototype.catch=function(e){return this.then(void 0,e)},o.prototype.use=function(e){return e(this),this},o.prototype.ok=function(e){if("function"!=typeof e)throw Error("Callback required");return this._okCallback=e,this},o.prototype._isResponseOK=function(e){return!!e&&(this._okCallback?this._okCallback(e):e.status>=200&&e.status<300)},o.prototype.get=function(e){return this._header[e.toLowerCase()]},o.prototype.getHeader=o.prototype.get,o.prototype.set=function(e,t){if(i(e)){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&this.set(n,e[n]);return this}return this._header[e.toLowerCase()]=t,this.header[e]=t,this},o.prototype.unset=function(e){return delete this._header[e.toLowerCase()],delete this.header[e],this},o.prototype.field=function(e,t){if(null==e)throw Error(".field(name, val) name can not be empty");if(this._data)throw Error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()");if(i(e)){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&this.field(n,e[n]);return this}if(Array.isArray(t)){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&this.field(e,t[r]);return this}if(null==t)throw Error(".field(name, val) val can not be empty");return"boolean"==typeof t&&(t=String(t)),this._getFormData().append(e,t),this},o.prototype.abort=function(){return this._aborted||(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort")),this},o.prototype._auth=function(e,t,n,r){switch(n.type){case"basic":this.set("Authorization","Basic ".concat(r("".concat(e,":").concat(t))));break;case"auto":this.username=e,this.password=t;break;case"bearer":this.set("Authorization","Bearer ".concat(e))}return this},o.prototype.withCredentials=function(e){return void 0===e&&(e=!0),this._withCredentials=e,this},o.prototype.redirects=function(e){return this._maxRedirects=e,this},o.prototype.maxResponseSize=function(e){if("number"!=typeof e)throw TypeError("Invalid argument");return this._maxResponseSize=e,this},o.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},o.prototype.send=function(e){var t=i(e),n=this._header["content-type"];if(this._formData)throw Error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()");if(t&&!this._data)Array.isArray(e)?this._data=[]:this._isHost(e)||(this._data={});else if(e&&this._data&&this._isHost(this._data))throw Error("Can't merge these send calls");if(t&&i(this._data))for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(this._data[r]=e[r]);else"string"==typeof e?(n||this.type("form"),(n=this._header["content-type"])&&(n=n.toLowerCase().trim()),"application/x-www-form-urlencoded"===n?this._data=this._data?"".concat(this._data,"&").concat(e):e:this._data=(this._data||"")+e):this._data=e;return!t||this._isHost(e)||n||this.type("json"),this},o.prototype.sortQuery=function(e){return this._sort=void 0===e||e,this},o.prototype._finalizeQueryString=function(){var e=this._query.join("&");if(e&&(this.url+=(this.url.includes("?")?"&":"?")+e),this._query.length=0,this._sort){var t=this.url.indexOf("?");if(t>=0){var n=this.url.slice(t+1).split("&");"function"==typeof this._sort?n.sort(this._sort):n.sort(),this.url=this.url.slice(0,t)+"?"+n.join("&")}}},o.prototype._appendQueryString=function(){console.warn("Unsupported")},o.prototype._timeoutError=function(e,t,n){if(!this._aborted){var r=Error("".concat(e+t,"ms exceeded"));r.timeout=t,r.code="ECONNABORTED",r.errno=n,this.timedout=!0,this.timedoutError=r,this.abort(),this.callback(r)}},o.prototype._setTimeouts=function(){var e=this;this._timeout&&!this._timer&&(this._timer=setTimeout(function(){e._timeoutError("Timeout of ",e._timeout,"ETIME")},this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout(function(){e._timeoutError("Response timeout of ",e._responseTimeout,"ETIMEDOUT")},this._responseTimeout))}},99228:function(e,t,n){"use strict";var r=n(62433);function i(e){if(e)return function(e){for(var t in i.prototype)Object.prototype.hasOwnProperty.call(i.prototype,t)&&(e[t]=i.prototype[t]);return e}(e)}e.exports=i,i.prototype.get=function(e){return this.header[e.toLowerCase()]},i.prototype._setHeaderProperties=function(e){var t=e["content-type"]||"";this.type=r.type(t);var n=r.params(t);for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(this[i]=n[i]);this.links={};try{e.link&&(this.links=r.parseLinks(e.link))}catch(e){}},i.prototype._setStatusProperties=function(e){var t=e/100|0;this.statusCode=e,this.status=this.statusCode,this.statusType=t,this.info=1===t,this.ok=2===t,this.redirect=3===t,this.clientError=4===t,this.serverError=5===t,this.error=(4===t||5===t)&&this.toError(),this.created=201===e,this.accepted=202===e,this.noContent=204===e,this.badRequest=400===e,this.unauthorized=401===e,this.notAcceptable=406===e,this.forbidden=403===e,this.notFound=404===e,this.unprocessableEntity=422===e}},62433:function(e,t){"use strict";function n(e,t){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(o=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}}(e))||t&&e&&"number"==typeof e.length){o&&(e=o);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a,s=!0,l=!1;return{s:function(){o=e[Symbol.iterator]()},n:function(){var e=o.next();return s=e.done,e},e:function(e){l=!0,a=e},f:function(){try{s||null==o.return||o.return()}finally{if(l)throw a}}}}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=N(e,360),t=N(t,100),n=N(n,100),0===t)r=i=o=n;else{var s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;r=a(l,s,e+1/3),i=a(l,s,e),o=a(l,s,e-1/3)}return{r:255*r,g:255*i,b:255*o}}(n.h,a,f),g=!0,v="hsl"),n.hasOwnProperty("a")&&(o=n.a)),o=F(o),{ok:g,format:n.format||v,r:h(255,p(r.r,0)),g:h(255,p(r.g,0)),b:h(255,p(r.b,0)),a:o});this._originalInput=e,this._r=T.r,this._g=T.g,this._b=T.b,this._a=T.a,this._roundA=d(100*this._a)/100,this._format=t.format||T.format,this._gradientType=t.gradientType,this._r<1&&(this._r=d(this._r)),this._g<1&&(this._g=d(this._g)),this._b<1&&(this._b=d(this._b)),this._ok=T.ok,this._tc_id=c++}function g(e,t,n){var r,i,o=p(e=N(e,255),t=N(t,255),n=N(n,255)),a=h(e,t,n),s=(o+a)/2;if(o==a)r=i=0;else{var l=o-a;switch(i=s>.5?l/(2-o-a):l/(o+a),o){case e:r=(t-n)/l+(t>1)+720)%360;--t;)r.h=(r.h+i)%360,o.push(m(r));return o}function P(e,t){t=t||6;for(var n=m(e).toHsv(),r=n.h,i=n.s,o=n.v,a=[],s=1/t;t--;)a.push(m({h:r,s:i,v:o})),o=(o+s)%1;return a}m.prototype={isDark:function(){return 128>this.getBrightness()},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:i.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:i.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:i.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=F(e),this._roundA=d(100*this._a)/100,this},toHsv:function(){var e=v(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=v(this._r,this._g,this._b),t=d(360*e.h),n=d(100*e.s),r=d(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=g(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=g(this._r,this._g,this._b),t=d(360*e.h),n=d(100*e.s),r=d(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return y(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){var t,n,r,i,o;return t=this._r,n=this._g,r=this._b,i=this._a,o=[B(d(t).toString(16)),B(d(n).toString(16)),B(d(r).toString(16)),B(U(i))],e&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:d(this._r),g:d(this._g),b:d(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+d(this._r)+", "+d(this._g)+", "+d(this._b)+")":"rgba("+d(this._r)+", "+d(this._g)+", "+d(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:d(100*N(this._r,255))+"%",g:d(100*N(this._g,255))+"%",b:d(100*N(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+d(100*N(this._r,255))+"%, "+d(100*N(this._g,255))+"%, "+d(100*N(this._b,255))+"%)":"rgba("+d(100*N(this._r,255))+"%, "+d(100*N(this._g,255))+"%, "+d(100*N(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(M[y(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+b(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var i=m(e);n="#"+b(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return!t&&r&&("hex"===e||"hex6"===e||"hex3"===e||"hex4"===e||"hex8"===e||"name"===e)?"name"===e&&0===this._a?this.toName():this.toRgbString():("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),("hex"===e||"hex6"===e)&&(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return m(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(_,arguments)},brighten:function(){return this._applyModification(S,arguments)},darken:function(){return this._applyModification(E,arguments)},desaturate:function(){return this._applyModification(k,arguments)},saturate:function(){return this._applyModification(w,arguments)},greyscale:function(){return this._applyModification(x,arguments)},spin:function(){return this._applyModification(D,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(A,arguments)},complement:function(){return this._applyCombination(C,arguments)},monochromatic:function(){return this._applyCombination(P,arguments)},splitcomplement:function(){return this._applyCombination(T,arguments)},triad:function(){return this._applyCombination(j,arguments)},tetrad:function(){return this._applyCombination(O,arguments)}},m.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&("a"===r?n[r]=e[r]:n[r]=z(e[r]));e=n}return m(e,t)},m.equals=function(e,t){return!!e&&!!t&&m(e).toRgbString()==m(t).toRgbString()},m.random=function(){return m.fromRatio({r:f(),g:f(),b:f()})},m.mix=function(e,t,n){n=0===n?0:n||50;var r=m(e).toRgb(),i=m(t).toRgb(),o=n/100;return m({r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a})},m.readability=function(e,t){var n=m(e),r=m(t);return(i.max(n.getLuminance(),r.getLuminance())+.05)/(i.min(n.getLuminance(),r.getLuminance())+.05)},m.isReadable=function(e,t,n){var r,i,o,a,s,l=m.readability(e,t);switch(s=!1,(i=((r=(r=n)||{level:"AA",size:"small"}).level||"AA").toUpperCase(),o=(r.size||"small").toLowerCase(),"AA"!==i&&"AAA"!==i&&(i="AA"),"small"!==o&&"large"!==o&&(o="small"),a={level:i,size:o}).level+a.size){case"AAsmall":case"AAAlarge":s=l>=4.5;break;case"AAlarge":s=l>=3;break;case"AAAsmall":s=l>=7}return s},m.mostReadable=function(e,t,n){var r,i,o,a,s=null,l=0;i=(n=n||{}).includeFallbackColors,o=n.level,a=n.size;for(var u=0;ul&&(l=r,s=m(t[u]));return m.isReadable(e,s,{level:o,size:a})||!i?s:(n.includeFallbackColors=!1,m.mostReadable(e,["#fff","#000"],n))};var R=m.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},M=m.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(R);function F(e){return(isNaN(e=parseFloat(e))||e<0||e>1)&&(e=1),e}function N(e,t){"string"==typeof(n=e)&&-1!=n.indexOf(".")&&1===parseFloat(n)&&(e="100%");var n,r,o="string"==typeof(r=e)&&-1!=r.indexOf("%");return(e=h(t,p(0,parseFloat(e))),o&&(e=parseInt(e*t,10)/100),1e-6>i.abs(e-t))?1:e%t/parseFloat(t)}function I(e){return h(1,p(0,e))}function L(e){return parseInt(e,16)}function B(e){return 1==e.length?"0"+e:""+e}function z(e){return e<=1&&(e=100*e+"%"),e}function U(e){return i.round(255*parseFloat(e)).toString(16)}var q=(a="[\\s|\\(]+("+(o="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+o+")[,|\\s]+("+o+")\\s*\\)?",s="[\\s|\\(]+("+o+")[,|\\s]+("+o+")[,|\\s]+("+o+")[,|\\s]+("+o+")\\s*\\)?",{CSS_UNIT:new RegExp(o),rgb:RegExp("rgb"+a),rgba:RegExp("rgba"+s),hsl:RegExp("hsl"+a),hsla:RegExp("hsla"+s),hsv:RegExp("hsv"+a),hsva:RegExp("hsva"+s),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function $(e){return!!q.CSS_UNIT.exec(e)}e.exports?e.exports=m:void 0!==(r=(function(){return m}).call(t,n,t,e))&&(e.exports=r)}(Math)},55079:function(e,t,n){"use strict";var r=n(62465),i=n(51414),o="tippy-content",a="tippy-arrow",s="tippy-svg-arrow",l={passive:!0,capture:!0},u=function(){return document.body};function c(e,t,n){if(Array.isArray(e)){var r=e[t];return null==r?Array.isArray(n)?n[t]:n:r}return e}function d(e,t){var n=({}).toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function h(e,t){return"function"==typeof e?e.apply(void 0,t):e}function p(e,t){var n;return 0===t?e:function(r){clearTimeout(n),n=setTimeout(function(){e(r)},t)}}function f(e){return[].concat(e)}function m(e,t){-1===e.indexOf(t)&&e.push(t)}function g(e){return[].slice.call(e)}function v(e){return Object.keys(e).reduce(function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t},{})}function y(){return document.createElement("div")}function b(e){return["Element","Fragment"].some(function(t){return d(e,t)})}function k(e,t){e.forEach(function(e){e&&(e.style.transitionDuration=t+"ms")})}function w(e,t){e.forEach(function(e){e&&e.setAttribute("data-state",t)})}function x(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(t){e[r](t,n)})}function _(e,t){for(var n,r=t;r;){if(e.contains(r))return!0;r=null==r.getRootNode?void 0:null==(n=r.getRootNode())?void 0:n.host}return!1}var S={isTouch:!1},E=0;function D(){!S.isTouch&&(S.isTouch=!0,window.performance&&document.addEventListener("mousemove",C))}function C(){var e=performance.now();e-E<20&&(S.isTouch=!1,document.removeEventListener("mousemove",C)),E=e}function j(){var e=document.activeElement;if(e&&e._tippy&&e._tippy.reference===e){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}var O=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto,T=Object.assign({appendTo:u,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),A=Object.keys(T);function P(e){var t=(e.plugins||[]).reduce(function(t,n){var r,i=n.name,o=n.defaultValue;return i&&(t[i]=void 0!==e[i]?e[i]:null!=(r=T[i])?r:o),t},{});return Object.assign({},e,t)}function R(e,t){var n,r=Object.assign({},t,{content:h(t.content,[e])},t.ignoreAttributes?{}:((n=t.plugins)?Object.keys(P(Object.assign({},T,{plugins:n}))):A).reduce(function(t,n){var r=(e.getAttribute("data-tippy-"+n)||"").trim();if(!r)return t;if("content"===n)t[n]=r;else try{t[n]=JSON.parse(r)}catch(e){t[n]=r}return t},{}));return r.aria=Object.assign({},T.aria,r.aria),r.aria={expanded:"auto"===r.aria.expanded?t.interactive:r.aria.expanded,content:"auto"===r.aria.content?t.interactive?null:"describedby":r.aria.content},r}function M(e,t){e.innerHTML=t}function F(e){var t=y();return!0===e?t.className=a:(t.className=s,b(e)?t.appendChild(e):M(t,e)),t}function N(e,t){b(t.content)?(M(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?M(e,t.content):e.textContent=t.content)}function I(e){var t=e.firstElementChild,n=g(t.children);return{box:t,content:n.find(function(e){return e.classList.contains(o)}),arrow:n.find(function(e){return e.classList.contains(a)||e.classList.contains(s)}),backdrop:n.find(function(e){return e.classList.contains("tippy-backdrop")})}}function L(e){var t=y(),n=y();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=y();function i(n,r){var i=I(t),o=i.box,a=i.content,s=i.arrow;r.theme?o.setAttribute("data-theme",r.theme):o.removeAttribute("data-theme"),"string"==typeof r.animation?o.setAttribute("data-animation",r.animation):o.removeAttribute("data-animation"),r.inertia?o.setAttribute("data-inertia",""):o.removeAttribute("data-inertia"),o.style.maxWidth="number"==typeof r.maxWidth?r.maxWidth+"px":r.maxWidth,r.role?o.setAttribute("role",r.role):o.removeAttribute("role"),(n.content!==r.content||n.allowHTML!==r.allowHTML)&&N(a,e.props),r.arrow?s?n.arrow!==r.arrow&&(o.removeChild(s),o.appendChild(F(r.arrow))):o.appendChild(F(r.arrow)):s&&o.removeChild(s)}return r.className=o,r.setAttribute("data-state","hidden"),N(r,e.props),t.appendChild(n),n.appendChild(r),i(e.props,e.props),{popper:t,onUpdate:i}}L.$$tippy=!0;var B=1,z=[],U=[];function q(e,t){void 0===t&&(t={});var n=T.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",D,l),window.addEventListener("blur",j);var i=Object.assign({},t,{plugins:n}),o=(b(e)?[e]:d(e,"NodeList")?g(e):Array.isArray(e)?e:g(document.querySelectorAll(e))).reduce(function(e,t){var n=t&&function(e,t){var n,i,o,a,s,b,E,D,C=R(e,Object.assign({},T,P(v(t)))),j=!1,A=!1,M=!1,F=!1,N=[],L=p(eg,C.interactiveDebounce),q=B++,$=(n=C.plugins).filter(function(e,t){return n.indexOf(e)===t}),H={id:q,reference:e,popper:y(),popperInstance:null,props:C,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:$,clearDelayTimeouts:function(){clearTimeout(i),clearTimeout(o),cancelAnimationFrame(a)},setProps:function(t){if(!H.state.isDestroyed){en("onBeforeUpdate",[H,t]),ef();var n=H.props,r=R(e,Object.assign({},n,v(t),{ignoreAttributes:!0}));H.props=r,ep(),n.interactiveDebounce!==r.interactiveDebounce&&(eo(),L=p(eg,r.interactiveDebounce)),n.triggerTarget&&!r.triggerTarget?f(n.triggerTarget).forEach(function(e){e.removeAttribute("aria-expanded")}):r.triggerTarget&&e.removeAttribute("aria-expanded"),ei(),et(),G&&G(n,r),H.popperInstance&&(ek(),ex().forEach(function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})),en("onAfterUpdate",[H,t])}},setContent:function(e){H.setProps({content:e})},show:function(){var t,n,r,i=H.state.isVisible,o=H.state.isDestroyed,a=!H.state.isEnabled,s=S.isTouch&&!H.props.touch,l=c(H.props.duration,0,T.duration);if(!(i||o||a||s||(D||e).hasAttribute("disabled"))&&(en("onShow",[H],!1),!1!==H.props.onShow(H))){if(H.state.isVisible=!0,X()&&(W.style.visibility="visible"),et(),eu(),H.state.isMounted||(W.style.transition="none"),X()){var d=I(W);k([d.box,d.content],0)}E=function(){var e;if(H.state.isVisible&&!F){if(F=!0,W.offsetHeight,W.style.transition=H.props.moveTransition,X()&&H.props.animation){var t=I(W),n=t.box,r=t.content;k([n,r],l),w([n,r],"visible")}er(),ei(),m(U,H),null==(e=H.popperInstance)||e.forceUpdate(),en("onMount",[H]),H.props.animation&&X()&&ed(l,function(){H.state.isShown=!0,en("onShown",[H])})}},n=H.props.appendTo,r=D||e,(t=H.props.interactive&&n===u||"parent"===n?r.parentNode:h(n,[r])).contains(W)||t.appendChild(W),H.state.isMounted=!0,ek()}},hide:function(){var e,t=!H.state.isVisible,n=H.state.isDestroyed,r=!H.state.isEnabled,i=c(H.props.duration,1,T.duration);if(!t&&!n&&!r&&(en("onHide",[H],!1),!1!==H.props.onHide(H))){if(H.state.isVisible=!1,H.state.isShown=!1,F=!1,j=!1,X()&&(W.style.visibility="hidden"),eo(),ec(),et(!0),X()){var o=I(W),a=o.box,s=o.content;H.props.animation&&(k([a,s],i),w([a,s],"hidden"))}(er(),ei(),H.props.animation)?X()&&(e=H.unmount,ed(i,function(){!H.state.isVisible&&W.parentNode&&W.parentNode.contains(W)&&e()})):H.unmount()}},hideWithInteractivity:function(e){Q().addEventListener("mousemove",L),m(z,L),L(e)},enable:function(){H.state.isEnabled=!0},disable:function(){H.hide(),H.state.isEnabled=!1},unmount:function(){H.state.isVisible&&H.hide(),H.state.isMounted&&(ew(),ex().forEach(function(e){e._tippy.unmount()}),W.parentNode&&W.parentNode.removeChild(W),U=U.filter(function(e){return e!==H}),H.state.isMounted=!1,en("onHidden",[H]))},destroy:function(){H.state.isDestroyed||(H.clearDelayTimeouts(),H.unmount(),ef(),delete e._tippy,H.state.isDestroyed=!0,en("onDestroy",[H]))}};if(!C.render)return H;var V=C.render(H),W=V.popper,G=V.onUpdate;W.setAttribute("data-tippy-root",""),W.id="tippy-"+H.id,H.popper=W,e._tippy=H,W._tippy=H;var Y=$.map(function(e){return e.fn(H)}),Z=e.hasAttribute("aria-expanded");return ep(),ei(),et(),en("onCreate",[H]),C.showOnCreate&&e_(),W.addEventListener("mouseenter",function(){H.props.interactive&&H.state.isVisible&&H.clearDelayTimeouts()}),W.addEventListener("mouseleave",function(){H.props.interactive&&H.props.trigger.indexOf("mouseenter")>=0&&Q().addEventListener("mousemove",L)}),H;function K(){var e=H.props.touch;return Array.isArray(e)?e:[e,0]}function J(){return"hold"===K()[0]}function X(){var e;return!!(null!=(e=H.props.render)&&e.$$tippy)}function Q(){var t,n,r=(D||e).parentNode;return r&&null!=(n=f(r)[0])&&null!=(t=n.ownerDocument)&&t.body?n.ownerDocument:document}function ee(e){return H.state.isMounted&&!H.state.isVisible||S.isTouch||s&&"focus"===s.type?0:c(H.props.delay,e?0:1,T.delay)}function et(e){void 0===e&&(e=!1),W.style.pointerEvents=H.props.interactive&&!e?"":"none",W.style.zIndex=""+H.props.zIndex}function en(e,t,n){if(void 0===n&&(n=!0),Y.forEach(function(n){n[e]&&n[e].apply(n,t)}),n){var r;(r=H.props)[e].apply(r,t)}}function er(){var t=H.props.aria;if(t.content){var n="aria-"+t.content,r=W.id;f(H.props.triggerTarget||e).forEach(function(e){var t=e.getAttribute(n);if(H.state.isVisible)e.setAttribute(n,t?t+" "+r:r);else{var i=t&&t.replace(r,"").trim();i?e.setAttribute(n,i):e.removeAttribute(n)}})}}function ei(){!Z&&H.props.aria.expanded&&f(H.props.triggerTarget||e).forEach(function(t){H.props.interactive?t.setAttribute("aria-expanded",H.state.isVisible&&t===(D||e)?"true":"false"):t.removeAttribute("aria-expanded")})}function eo(){Q().removeEventListener("mousemove",L),z=z.filter(function(e){return e!==L})}function ea(t){if(!S.isTouch||!M&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!(H.props.interactive&&_(W,n))){if(f(H.props.triggerTarget||e).some(function(e){return _(e,n)})){if(S.isTouch||H.state.isVisible&&H.props.trigger.indexOf("click")>=0)return}else en("onClickOutside",[H,t]);!0!==H.props.hideOnClick||(H.clearDelayTimeouts(),H.hide(),A=!0,setTimeout(function(){A=!1}),H.state.isMounted||ec())}}}function es(){M=!0}function el(){M=!1}function eu(){var e=Q();e.addEventListener("mousedown",ea,!0),e.addEventListener("touchend",ea,l),e.addEventListener("touchstart",el,l),e.addEventListener("touchmove",es,l)}function ec(){var e=Q();e.removeEventListener("mousedown",ea,!0),e.removeEventListener("touchend",ea,l),e.removeEventListener("touchstart",el,l),e.removeEventListener("touchmove",es,l)}function ed(e,t){var n=I(W).box;function r(e){e.target===n&&(x(n,"remove",r),t())}if(0===e)return t();x(n,"remove",b),x(n,"add",r),b=r}function eh(t,n,r){void 0===r&&(r=!1),f(H.props.triggerTarget||e).forEach(function(e){e.addEventListener(t,n,r),N.push({node:e,eventType:t,handler:n,options:r})})}function ep(){J()&&(eh("touchstart",em,{passive:!0}),eh("touchend",ev,{passive:!0})),H.props.trigger.split(/\s+/).filter(Boolean).forEach(function(e){if("manual"!==e)switch(eh(e,em),e){case"mouseenter":eh("mouseleave",ev);break;case"focus":eh(O?"focusout":"blur",ey);break;case"focusin":eh("focusout",ey)}})}function ef(){N.forEach(function(e){var t=e.node,n=e.eventType,r=e.handler,i=e.options;t.removeEventListener(n,r,i)}),N=[]}function em(e){var t,n=!1;if(!(!H.state.isEnabled||eb(e))&&!A){var r=(null==(t=s)?void 0:t.type)==="focus";s=e,D=e.currentTarget,ei(),!H.state.isVisible&&d(e,"MouseEvent")&&z.forEach(function(t){return t(e)}),"click"===e.type&&(0>H.props.trigger.indexOf("mouseenter")||j)&&!1!==H.props.hideOnClick&&H.state.isVisible?n=!0:e_(e),"click"===e.type&&(j=!n),n&&!r&&eS(e)}}function eg(t){var n,r,i,o=t.target,a=(D||e).contains(o)||W.contains(o);("mousemove"!==t.type||!a)&&(n=ex().concat(W).map(function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:C}:null}).filter(Boolean),r=t.clientX,i=t.clientY,n.every(function(e){var t=e.popperRect,n=e.popperState,o=e.props.interactiveBorder,a=n.placement.split("-")[0],s=n.modifiersData.offset;if(!s)return!0;var l="bottom"===a?s.top.y:0,u="top"===a?s.bottom.y:0,c="right"===a?s.left.x:0,d="left"===a?s.right.x:0,h=t.top-i+l>o,p=i-t.bottom-u>o,f=t.left-r+c>o,m=r-t.right-d>o;return h||p||f||m})&&(eo(),eS(t)))}function ev(e){if(!(eb(e)||H.props.trigger.indexOf("click")>=0&&j)){if(H.props.interactive){H.hideWithInteractivity(e);return}eS(e)}}function ey(t){0>H.props.trigger.indexOf("focusin")&&t.target!==(D||e)||H.props.interactive&&t.relatedTarget&&W.contains(t.relatedTarget)||eS(t)}function eb(e){return!!S.isTouch&&J()!==e.type.indexOf("touch")>=0}function ek(){ew();var t=H.props,n=t.popperOptions,i=t.placement,o=t.offset,a=t.getReferenceClientRect,s=t.moveTransition,l=X()?I(W).arrow:null,u=a?{getBoundingClientRect:a,contextElement:a.contextElement||D||e}:e,c=[{name:"offset",options:{offset:o}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!s}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(X()){var n=I(W).box;["placement","reference-hidden","escaped"].forEach(function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)}),t.attributes.popper={}}}}];X()&&l&&c.push({name:"arrow",options:{element:l,padding:3}}),c.push.apply(c,(null==n?void 0:n.modifiers)||[]),H.popperInstance=(0,r.fi)(u,W,Object.assign({},n,{placement:i,onFirstUpdate:E,modifiers:c}))}function ew(){H.popperInstance&&(H.popperInstance.destroy(),H.popperInstance=null)}function ex(){return g(W.querySelectorAll("[data-tippy-root]"))}function e_(e){H.clearDelayTimeouts(),e&&en("onTrigger",[H,e]),eu();var t=ee(!0),n=K(),r=n[0],o=n[1];S.isTouch&&"hold"===r&&o&&(t=o),t?i=setTimeout(function(){H.show()},t):H.show()}function eS(e){if(H.clearDelayTimeouts(),en("onUntrigger",[H,e]),!H.state.isVisible){ec();return}if(!(H.props.trigger.indexOf("mouseenter")>=0&&H.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0)||!j){var t=ee(!1);t?o=setTimeout(function(){H.state.isVisible&&H.hide()},t):a=requestAnimationFrame(function(){H.hide()})}}}(t,i);return n&&e.push(n),e},[]);return b(e)?o[0]:o}q.defaultProps=T,q.setDefaultProps=function(e){Object.keys(e).forEach(function(t){T[t]=e[t]})},q.currentInput=S,Object.assign({},i.Z,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}}),q.setDefaultProps({render:L}),t.ZP=q},48943:function(e,t,n){"use strict";var r=n(38398),i=null,o=function(e,t){let r=t&&t.allowPrivateTLD||!1,o=t&&t.allowUnknownTLD||!1,a=t&&t.allowDotlessTLD||!1;i||((i=n(20693)).combined=Object.assign({},i.icann,i.private));for(var s,l=e.split("."),u="",c=-1,d=r?i.combined:i.icann,h=l.length-1;h>=0;h--)s=l[h],d[u=u?s+"."+u:s]&&(c=d[u]);if(-1==c&&o&&(c=1),(l.length<=c||-1==c)&&!(l.length==c&&a))throw Error("Invalid TLD "+JSON.stringify({parts:l,tld_level:c,allowUnknownTLD:o}));return{tld:l.slice(-c).join("."),domain:l.slice(-c-1).join("."),sub:l.slice(0,-c-1).join(".")}};e.exports=function(e,t){return"string"==typeof e&&(e=r.parse(e)),o(e.hostname,t)},e.exports.parse_host=o},91706:function(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;rt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);it.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function s(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})}function l(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function c(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i=0}function d(e,t){return e.getElementsByTagName&&t.some(function(t){return e.getElementsByTagName(t).length})}var h={};function p(e){return e?e.replace(/(\n+\s*)+/g,"\n"):""}function f(e){for(var t in this.options=e,this._keep=[],this._remove=[],this.blankRule={replacement:e.blankReplacement},this.keepReplacement=e.keepReplacement,this.defaultRule={replacement:e.defaultReplacement},this.array=[],e.rules)this.array.push(e.rules[t])}function m(e,t,n){for(var r=0;r-1)return!0}else if("function"==typeof r){if(r.call(e,t,n))return!0}else throw TypeError("`filter` needs to be a string, array, or function")}(i,t,n))return i}}function g(e){var t=e.nextSibling||e.parentNode;return e.parentNode.removeChild(e),t}function v(e,t,n){return e&&e.parentNode===t||n(t)?t.nextSibling||t.parentNode:t.firstChild||t.nextSibling||t.parentNode}h.paragraph={filter:"p",replacement:function(e){return"\n\n"+e+"\n\n"}},h.lineBreak={filter:"br",replacement:function(e,t,n){return n.br+"\n"}},h.heading={filter:["h1","h2","h3","h4","h5","h6"],replacement:function(e,t,r){var i=Number(t.nodeName.charAt(1));if("setext"!==r.headingStyle||!(i<3))return"\n\n"+n("#",i)+" "+e+"\n\n";var o=n(1===i?"=":"-",e.length);return"\n\n"+e+"\n"+o+"\n\n"}},h.blockquote={filter:"blockquote",replacement:function(e){return"\n\n"+(e=(e=e.replace(/^\n+|\n+$/g,"")).replace(/^/gm,"> "))+"\n\n"}},h.list={filter:["ul","ol"],replacement:function(e,t){var n=t.parentNode;return"LI"===n.nodeName&&n.lastElementChild===t?"\n"+e:"\n\n"+e+"\n\n"}},h.listItem={filter:"li",replacement:function(e,t,n){e=e.replace(/^\n+/,"").replace(/\n+$/,"\n").replace(/\n/gm,"\n ");var r=n.bulletListMarker+" ",i=t.parentNode;if("OL"===i.nodeName){var o=i.getAttribute("start"),a=Array.prototype.indexOf.call(i.children,t);r=(o?Number(o)+a:a+1)+". "}return r+e+(t.nextSibling&&!/\n$/.test(e)?"\n":"")}},h.indentedCodeBlock={filter:function(e,t){return"indented"===t.codeBlockStyle&&"PRE"===e.nodeName&&e.firstChild&&"CODE"===e.firstChild.nodeName},replacement:function(e,t,n){return"\n\n "+t.firstChild.textContent.replace(/\n/g,"\n ")+"\n\n"}},h.fencedCodeBlock={filter:function(e,t){return"fenced"===t.codeBlockStyle&&"PRE"===e.nodeName&&e.firstChild&&"CODE"===e.firstChild.nodeName},replacement:function(e,t,r){for(var i,o=((t.firstChild.getAttribute("class")||"").match(/language-(\S+)/)||[null,""])[1],a=t.firstChild.textContent,s=r.fence.charAt(0),l=3,u=RegExp("^"+s+"{3,}","gm");i=u.exec(a);)i[0].length>=l&&(l=i[0].length+1);var c=n(s,l);return"\n\n"+c+o+"\n"+a.replace(/\n$/,"")+"\n"+c+"\n\n"}},h.horizontalRule={filter:"hr",replacement:function(e,t,n){return"\n\n"+n.hr+"\n\n"}},h.inlineLink={filter:function(e,t){return"inlined"===t.linkStyle&&"A"===e.nodeName&&e.getAttribute("href")},replacement:function(e,t){var n=t.getAttribute("href"),r=p(t.getAttribute("title"));return r&&(r=' "'+r+'"'),"["+e+"]("+n+r+")"}},h.referenceLink={filter:function(e,t){return"referenced"===t.linkStyle&&"A"===e.nodeName&&e.getAttribute("href")},replacement:function(e,t,n){var r,i,o=t.getAttribute("href"),a=p(t.getAttribute("title"));switch(a&&(a=' "'+a+'"'),n.linkReferenceStyle){case"collapsed":r="["+e+"][]",i="["+e+"]: "+o+a;break;case"shortcut":r="["+e+"]",i="["+e+"]: "+o+a;break;default:var s=this.references.length+1;r="["+e+"]["+s+"]",i="["+s+"]: "+o+a}return this.references.push(i),r},references:[],append:function(e){var t="";return this.references.length&&(t="\n\n"+this.references.join("\n")+"\n\n",this.references=[]),t}},h.emphasis={filter:["em","i"],replacement:function(e,t,n){return e.trim()?n.emDelimiter+e+n.emDelimiter:""}},h.strong={filter:["strong","b"],replacement:function(e,t,n){return e.trim()?n.strongDelimiter+e+n.strongDelimiter:""}},h.code={filter:function(e){var t=e.previousSibling||e.nextSibling,n="PRE"===e.parentNode.nodeName&&!t;return"CODE"===e.nodeName&&!n},replacement:function(e){if(!e)return"";e=e.replace(/\r?\n|\r/g," ");for(var t=/^`|^ .*?[^ ].* $|`$/.test(e)?" ":"",n="`",r=e.match(/`+/gm)||[];-1!==r.indexOf(n);)n+="`";return n+t+e+t+n}},h.image={filter:"img",replacement:function(e,t){var n=p(t.getAttribute("alt")),r=t.getAttribute("src")||"",i=p(t.getAttribute("title"));return r?"!["+n+"]("+r+(i?' "'+i+'"':"")+")":""}},f.prototype={add:function(e,t){this.array.unshift(t)},keep:function(e){this._keep.unshift({filter:e,replacement:this.keepReplacement})},remove:function(e){this._remove.unshift({filter:e,replacement:function(){return""}})},forNode:function(e){var t;return e.isBlank?this.blankRule:(t=m(this.array,e,this.options))||(t=m(this._keep,e,this.options))||(t=m(this._remove,e,this.options))?t:this.defaultRule},forEach:function(e){for(var t=0;t'+e+"","text/html").getElementById("turndown-root"):e.cloneNode(!0),isBlock:a,isVoid:l,isPre:t.preformattedCode?w:null}),n}function w(e){return"PRE"===e.nodeName||"CODE"===e.nodeName}function x(e,t){return e.isBlock=a(e),e.isCode="CODE"===e.nodeName||e.parentNode.isCode,e.isBlank=!l(e)&&!c(e,u)&&/^\s*$/i.test(e.textContent)&&!d(e,s)&&!d(e,u),e.flankingWhitespace=function(e,t){if(e.isBlock||t.preformattedCode&&e.isCode)return{leading:"",trailing:""};var n,r={leading:(n=e.textContent.match(/^(([ \t\r\n]*)(\s*))[\s\S]*?((\s*?)([ \t\r\n]*))$/))[1],leadingAscii:n[2],leadingNonAscii:n[3],trailing:n[4],trailingNonAscii:n[5],trailingAscii:n[6]};return r.leadingAscii&&_("left",e,t)&&(r.leading=r.leadingNonAscii),r.trailingAscii&&_("right",e,t)&&(r.trailing=r.trailingNonAscii),{leading:r.leading,trailing:r.trailing}}(e,t),e}function _(e,t,n){var r,i,o;return"left"===e?(r=t.previousSibling,i=/ $/):(r=t.nextSibling,i=/^ /),r&&(3===r.nodeType?o=i.test(r.nodeValue):n.preformattedCode&&"CODE"===r.nodeName?o=!1:1!==r.nodeType||a(r)||(o=i.test(r.textContent))),o}var S=Array.prototype.reduce,E=[[/\\/g,"\\\\"],[/\*/g,"\\*"],[/^-/g,"\\-"],[/^\+ /g,"\\+ "],[/^(=+)/g,"\\$1"],[/^(#{1,6}) /g,"\\$1 "],[/`/g,"\\`"],[/^~~~/g,"\\~~~"],[/\[/g,"\\["],[/\]/g,"\\]"],[/^>/g,"\\>"],[/_/g,"\\_"],[/^(\d+)\. /g,"$1\\. "]];function D(e){if(!(this instanceof D))return new D(e);this.options=function(e){for(var t=1;t0&&"\n"===e[t-1];)t--;return e.substring(0,t)}(e),r=t.replace(/^\n*/,""),i=Math.max(e.length-n.length,t.length-r.length);return n+"\n\n".substring(0,i)+r}D.prototype={turndown:function(e){if(!(null!=e&&("string"==typeof e||e.nodeType&&(1===e.nodeType||9===e.nodeType||11===e.nodeType))))throw TypeError(e+" is not a string, or an element/document/fragment node.");return""===e?"":j.call(this,C.call(this,new k(e,this.options)))},use:function(e){if(Array.isArray(e))for(var t=0;t * Licensed under MIT License */!function(i,o){"use strict";var a="function",s="undefined",l="object",u="string",c="model",d="name",h="type",p="vendor",f="version",m="architecture",g="console",v="mobile",y="tablet",b="smarttv",k="wearable",w="embedded",x={extend:function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n},has:function(e,t){return typeof e===u&&-1!==t.toLowerCase().indexOf(e.toLowerCase())},lowerize:function(e){return e.toLowerCase()},major:function(e){return typeof e===u?e.replace(/[^\d\.]/g,"").split(".")[0]:o},trim:function(e,t){return e=e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),typeof t===s?e:e.substring(0,255)}},_={rgx:function(e,t){for(var n,r,i,s,u,c,d=0;d0?2==s.length?typeof s[1]==a?this[s[0]]=s[1].call(this,c):this[s[0]]=s[1]:3==s.length?typeof s[1]!==a||s[1].exec&&s[1].test?this[s[0]]=c?c.replace(s[1],s[2]):o:this[s[0]]=c?s[1].call(this,c,s[2]):o:4==s.length&&(this[s[0]]=c?s[3].call(this,c.replace(s[1],s[2])):o):this[s]=c||o;d+=2}},str:function(e,t){for(var n in t)if(typeof t[n]===l&&t[n].length>0){for(var r=0;r255?x.trim(e,255):e,this},this.setUA(n),this};D.VERSION="0.7.28",D.BROWSER={NAME:d,MAJOR:"major",VERSION:f},D.CPU={ARCHITECTURE:m},D.DEVICE={MODEL:c,VENDOR:p,TYPE:h,CONSOLE:g,MOBILE:v,SMARTTV:b,TABLET:y,WEARABLE:k,EMBEDDED:w},D.ENGINE={NAME:d,VERSION:f},D.OS={NAME:d,VERSION:f},typeof t!==s?(e.exports&&(t=e.exports=D),t.UAParser=D):o!==(r=(function(){return D}).call(t,n,t,e))&&(e.exports=r);var C=void 0!==i&&(i.jQuery||i.Zepto);if(C&&!C.ua){var j=new D;C.ua=j.getResult(),C.ua.get=function(){return j.getUA()},C.ua.set=function(e){j.setUA(e);var t=j.getResult();for(var n in t)C.ua[n]=t[n]}}}("object"==typeof window?window:this)},42396:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.errorMessages=t.ErrorType=void 0,(r=n=t.ErrorType||(t.ErrorType={})).MalformedUnicode="MALFORMED_UNICODE",r.MalformedHexadecimal="MALFORMED_HEXADECIMAL",r.CodePointLimit="CODE_POINT_LIMIT",r.OctalDeprecation="OCTAL_DEPRECATION",r.EndOfString="END_OF_STRING",t.errorMessages=new Map([[n.MalformedUnicode,"malformed Unicode character escape sequence"],[n.MalformedHexadecimal,"malformed hexadecimal character escape sequence"],[n.CodePointLimit,"Unicode codepoint must not be greater than 0x10FFFF in escape sequence"],[n.OctalDeprecation,'"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'],[n.EndOfString,"malformed escape sequence at end of string"]])},62770:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.unraw=t.errorMessages=t.ErrorType=void 0;let r=n(42396);function i(e,t,n){let i=function(e){let t=!e.match(/[^a-f0-9]/i);return t?parseInt(e,16):NaN}(e);if(Number.isNaN(i)||void 0!==n&&n!==e.length)throw SyntaxError(r.errorMessages.get(t));return i}function o(e,t){let n=i(e,r.ErrorType.MalformedUnicode,4);if(void 0!==t){let e=i(t,r.ErrorType.MalformedUnicode,4);return String.fromCharCode(n,e)}return String.fromCharCode(n)}Object.defineProperty(t,"ErrorType",{enumerable:!0,get:function(){return r.ErrorType}}),Object.defineProperty(t,"errorMessages",{enumerable:!0,get:function(){return r.errorMessages}});let a=new Map([["b","\b"],["f","\f"],["n","\n"],["r","\r"],["t"," "],["v","\v"],["0","\x00"]]),s=/\\(?:(\\)|x([\s\S]{0,2})|u(\{[^}]*\}?)|u([\s\S]{4})\\u([^{][\s\S]{0,3})|u([\s\S]{0,4})|([0-3]?[0-7]{1,2})|([\s\S])|$)/g;function l(e,t=!1){return e.replace(s,function(e,n,s,l,u,c,d,h,p){if(void 0!==n)return"\\";if(void 0!==s)return function(e){let t=i(e,r.ErrorType.MalformedHexadecimal,2);return String.fromCharCode(t)}(s);if(void 0!==l)return function(e){if(!("{"===e.charAt(0)&&"}"===e.charAt(e.length-1)))throw SyntaxError(r.errorMessages.get(r.ErrorType.MalformedUnicode));let t=e.slice(1,-1),n=i(t,r.ErrorType.MalformedUnicode);try{return String.fromCodePoint(n)}catch(e){throw e instanceof RangeError?SyntaxError(r.errorMessages.get(r.ErrorType.CodePointLimit)):e}}(l);if(void 0!==u)return o(u,c);if(void 0!==d)return o(d);if("0"===h)return"\x00";if(void 0!==h)return function(e,t=!1){if(t)throw SyntaxError(r.errorMessages.get(r.ErrorType.OctalDeprecation));let n=parseInt(e,8);return String.fromCharCode(n)}(h,!t);if(void 0!==p)return a.get(p)||p;throw SyntaxError(r.errorMessages.get(r.ErrorType.EndOfString))})}t.unraw=l,t.default=l},64846:function(e,t,n){"use strict";var r=n(57245),i=n(97375),o=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,a=/[\n\r\t]/g,s=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,l=/:\d+$/,u=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,c=/^[a-zA-Z]:/;function d(e){return(e||"").toString().replace(o,"")}var h=[["#","hash"],["?","query"],function(e,t){return m(t.protocol)?e.replace(/\\/g,"/"):e},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],p={hash:1,query:1};function f(e){var t,r=("undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{}).location||{},i={},o=typeof(e=e||r);if("blob:"===e.protocol)i=new v(unescape(e.pathname),{});else if("string"===o)for(t in i=new v(e,{}),p)delete i[t];else if("object"===o){for(t in e)t in p||(i[t]=e[t]);void 0===i.slashes&&(i.slashes=s.test(e.href))}return i}function m(e){return"file:"===e||"ftp:"===e||"http:"===e||"https:"===e||"ws:"===e||"wss:"===e}function g(e,t){e=(e=d(e)).replace(a,""),t=t||{};var n,r=u.exec(e),i=r[1]?r[1].toLowerCase():"",o=!!r[2],s=!!r[3],l=0;return o?s?(n=r[2]+r[3]+r[4],l=r[2].length+r[3].length):(n=r[2]+r[4],l=r[2].length):s?(n=r[3]+r[4],l=r[3].length):n=r[4],"file:"===i?l>=2&&(n=n.slice(2)):m(i)?n=r[4]:i?o&&(n=n.slice(2)):l>=2&&m(t.protocol)&&(n=r[4]),{protocol:i,slashes:o||m(i),slashesCount:l,rest:n}}function v(e,t,n){if(e=(e=d(e)).replace(a,""),!(this instanceof v))return new v(e,t,n);var o,s,l,u,p,y,b=h.slice(),k=typeof t,w=0;for("object"!==k&&"string"!==k&&(n=t,t=null),n&&"function"!=typeof n&&(n=i.parse),o=!(s=g(e||"",t=f(t))).protocol&&!s.slashes,this.slashes=s.slashes||o&&t.slashes,this.protocol=s.protocol||t.protocol||"",e=s.rest,("file:"===s.protocol&&(2!==s.slashesCount||c.test(e))||!s.slashes&&(s.protocol||s.slashesCount<2||!m(this.protocol)))&&(b[3]=[/(.*)/,"pathname"]);w`Symbol(${e})`;function i(){}let o="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:void 0;function a(e){return"object"==typeof e&&null!==e||"function"==typeof e}let s=Promise,l=Promise.prototype.then,u=Promise.resolve.bind(s),c=Promise.reject.bind(s);function d(e){return new s(e)}function h(e,t,n){return l.call(e,t,n)}function p(e,t,n){h(h(e,t,n),void 0,i)}function f(e,t){p(e,void 0,t)}function m(e){h(e,void 0,i)}let g=(()=>{let e=o&&o.queueMicrotask;if("function"==typeof e)return e;let t=u(void 0);return e=>h(t,e)})();function v(e,t,n){if("function"!=typeof e)throw TypeError("Argument is not a function");return Function.prototype.apply.call(e,t,n)}function y(e,t,n){try{var r;return r=v(e,t,n),u(r)}catch(e){return c(e)}}class b{constructor(){this._cursor=0,this._size=0,this._front={_elements:[],_next:void 0},this._back=this._front,this._cursor=0,this._size=0}get length(){return this._size}push(e){let t=this._back,n=t;16383===t._elements.length&&(n={_elements:[],_next:void 0}),t._elements.push(e),n!==t&&(this._back=n,t._next=n),++this._size}shift(){let e=this._front,t=e,n=this._cursor,r=n+1,i=e._elements,o=i[n];return 16384===r&&(t=e._next,r=0),--this._size,this._cursor=r,e!==t&&(this._front=t),i[n]=void 0,o}forEach(e){let t=this._cursor,n=this._front,r=n._elements;for(;!(t===r.length&&void 0===n._next||t===r.length&&(r=(n=n._next)._elements,t=0,0===r.length));)e(r[t]),++t}peek(){let e=this._front,t=this._cursor;return e._elements[t]}}function k(e,t){var n;e._ownerReadableStream=t,t._reader=e,"readable"===t._state?S(e):"closed"===t._state?(S(e),D(e)):(n=t._storedError,S(e),E(e,n))}function w(e,t){return t$(e._ownerReadableStream,t)}function x(e){var t;"readable"===e._ownerReadableStream._state?E(e,TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):(t=TypeError("Reader was released and can no longer be used to monitor the stream's closedness"),S(e),E(e,t)),e._ownerReadableStream._reader=void 0,e._ownerReadableStream=void 0}function _(e){return TypeError("Cannot "+e+" a stream using a released reader")}function S(e){e._closedPromise=d((t,n)=>{e._closedPromise_resolve=t,e._closedPromise_reject=n})}function E(e,t){void 0!==e._closedPromise_reject&&(m(e._closedPromise),e._closedPromise_reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0)}function D(e){void 0!==e._closedPromise_resolve&&(e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0)}let C=r("[[AbortSteps]]"),j=r("[[ErrorSteps]]"),O=r("[[CancelSteps]]"),T=r("[[PullSteps]]"),A=Number.isFinite||function(e){return"number"==typeof e&&isFinite(e)},P=Math.trunc||function(e){return e<0?Math.ceil(e):Math.floor(e)};function R(e,t){if(void 0!==e&&"object"!=typeof e&&"function"!=typeof e)throw TypeError(`${t} is not an object.`)}function M(e,t){if("function"!=typeof e)throw TypeError(`${t} is not a function.`)}function F(e,t){if(!("object"==typeof e&&null!==e||"function"==typeof e))throw TypeError(`${t} is not an object.`)}function N(e,t,n){if(void 0===e)throw TypeError(`Parameter ${t} is required in '${n}'.`)}function I(e,t,n){if(void 0===e)throw TypeError(`${t} is required in '${n}'.`)}function L(e){return Number(e)}function B(e,t){var n,r;let i=Number.MAX_SAFE_INTEGER,o=Number(e);if(!A(o=0===(n=o)?0:n))throw TypeError(`${t} is not a finite number`);if((o=0===(r=P(o))?0:r)<0||o>i)throw TypeError(`${t} is outside the accepted range of 0 to ${i}, inclusive`);return A(o)&&0!==o?o:0}function z(e,t){if(!tU(e))throw TypeError(`${t} is not a ReadableStream.`)}function U(e){return new W(e)}function q(e,t){e._reader._readRequests.push(t)}function $(e,t,n){let r=e._reader._readRequests.shift();n?r._closeSteps():r._chunkSteps(t)}function H(e){return e._reader._readRequests.length}function V(e){let t=e._reader;return void 0!==t&&!!G(t)}class W{constructor(e){if(N(e,1,"ReadableStreamDefaultReader"),z(e,"First parameter"),tq(e))throw TypeError("This stream has already been locked for exclusive reading by another reader");k(this,e),this._readRequests=new b}get closed(){return G(this)?this._closedPromise:c(Z("closed"))}cancel(e){return G(this)?void 0===this._ownerReadableStream?c(_("cancel")):w(this,e):c(Z("cancel"))}read(){let e,t;if(!G(this))return c(Z("read"));if(void 0===this._ownerReadableStream)return c(_("read from"));let n=d((n,r)=>{e=n,t=r});return Y(this,{_chunkSteps:t=>e({value:t,done:!1}),_closeSteps:()=>e({value:void 0,done:!0}),_errorSteps:e=>t(e)}),n}releaseLock(){if(!G(this))throw Z("releaseLock");if(void 0!==this._ownerReadableStream){if(this._readRequests.length>0)throw TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");x(this)}}}function G(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readRequests")&&e instanceof W}function Y(e,t){let n=e._ownerReadableStream;n._disturbed=!0,"closed"===n._state?t._closeSteps():"errored"===n._state?t._errorSteps(n._storedError):n._readableStreamController[T](t)}function Z(e){return TypeError(`ReadableStreamDefaultReader.prototype.${e} can only be used on a ReadableStreamDefaultReader`)}Object.defineProperties(W.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),"symbol"==typeof r.toStringTag&&Object.defineProperty(W.prototype,r.toStringTag,{value:"ReadableStreamDefaultReader",configurable:!0}),"symbol"==typeof r.asyncIterator&&Object.defineProperty(t={[r.asyncIterator](){return this}},r.asyncIterator,{enumerable:!1});class K{constructor(e,t){this._ongoingPromise=void 0,this._isFinished=!1,this._reader=e,this._preventCancel=t}next(){let e=()=>this._nextSteps();return this._ongoingPromise=this._ongoingPromise?h(this._ongoingPromise,e,e):e(),this._ongoingPromise}return(e){let t=()=>this._returnSteps(e);return this._ongoingPromise?h(this._ongoingPromise,t,t):t()}_nextSteps(){let e,t;if(this._isFinished)return Promise.resolve({value:void 0,done:!0});let n=this._reader;if(void 0===n._ownerReadableStream)return c(_("iterate"));let r=d((n,r)=>{e=n,t=r});return Y(n,{_chunkSteps:t=>{this._ongoingPromise=void 0,g(()=>e({value:t,done:!1}))},_closeSteps:()=>{this._ongoingPromise=void 0,this._isFinished=!0,x(n),e({value:void 0,done:!0})},_errorSteps:e=>{this._ongoingPromise=void 0,this._isFinished=!0,x(n),t(e)}}),r}_returnSteps(e){if(this._isFinished)return Promise.resolve({value:e,done:!0});this._isFinished=!0;let t=this._reader;if(void 0===t._ownerReadableStream)return c(_("finish iterating"));if(!this._preventCancel){let n=w(t,e);return x(t),h(n,()=>({value:e,done:!0}),void 0)}return x(t),u({value:e,done:!0})}}let J={next(){return X(this)?this._asyncIteratorImpl.next():c(Q("next"))},return(e){return X(this)?this._asyncIteratorImpl.return(e):c(Q("return"))}};function X(e){if(!a(e)||!Object.prototype.hasOwnProperty.call(e,"_asyncIteratorImpl"))return!1;try{return e._asyncIteratorImpl instanceof K}catch(e){return!1}}function Q(e){return TypeError(`ReadableStreamAsyncIterator.${e} can only be used on a ReadableSteamAsyncIterator`)}void 0!==t&&Object.setPrototypeOf(J,t);let ee=Number.isNaN||function(e){return e!=e};function et(e){return e.slice()}function en(e,t,n,r,i){new Uint8Array(e).set(new Uint8Array(n,r,i),t)}function er(e,t,n){if(e.slice)return e.slice(t,n);let r=n-t,i=new ArrayBuffer(r);return en(i,0,e,t,r),i}function ei(e){let t=er(e.buffer,e.byteOffset,e.byteOffset+e.byteLength);return new Uint8Array(t)}function eo(e){let t=e._queue.shift();return e._queueTotalSize-=t.size,e._queueTotalSize<0&&(e._queueTotalSize=0),t.value}function ea(e,t,n){if("number"!=typeof n||ee(n)||n<0||n===1/0)throw RangeError("Size must be a finite, non-NaN, non-negative number.");e._queue.push({value:t,size:n}),e._queueTotalSize+=n}function es(e){e._queue=new b,e._queueTotalSize=0}class el{constructor(){throw TypeError("Illegal constructor")}get view(){if(!ed(this))throw eR("view");return this._view}respond(e){if(!ed(this))throw eR("respond");if(N(e,1,"respond"),e=B(e,"First parameter"),void 0===this._associatedReadableByteStreamController)throw TypeError("This BYOB request has been invalidated");this._view.buffer,eT(this._associatedReadableByteStreamController,e)}respondWithNewView(e){if(!ed(this))throw eR("respondWithNewView");if(N(e,1,"respondWithNewView"),!ArrayBuffer.isView(e))throw TypeError("You can only respond with array buffer views");if(void 0===this._associatedReadableByteStreamController)throw TypeError("This BYOB request has been invalidated");e.buffer,eA(this._associatedReadableByteStreamController,e)}}Object.defineProperties(el.prototype,{respond:{enumerable:!0},respondWithNewView:{enumerable:!0},view:{enumerable:!0}}),"symbol"==typeof r.toStringTag&&Object.defineProperty(el.prototype,r.toStringTag,{value:"ReadableStreamBYOBRequest",configurable:!0});class eu{constructor(){throw TypeError("Illegal constructor")}get byobRequest(){if(!ec(this))throw eM("byobRequest");return ej(this)}get desiredSize(){if(!ec(this))throw eM("desiredSize");return eO(this)}close(){if(!ec(this))throw eM("close");if(this._closeRequested)throw TypeError("The stream has already been closed; do not close it again!");let e=this._controlledReadableByteStream._state;if("readable"!==e)throw TypeError(`The stream (in ${e} state) is not in the readable state and cannot be closed`);eE(this)}enqueue(e){if(!ec(this))throw eM("enqueue");if(N(e,1,"enqueue"),!ArrayBuffer.isView(e))throw TypeError("chunk must be an array buffer view");if(0===e.byteLength)throw TypeError("chunk must have non-zero byteLength");if(0===e.buffer.byteLength)throw TypeError("chunk's buffer must have non-zero byteLength");if(this._closeRequested)throw TypeError("stream is closed or draining");let t=this._controlledReadableByteStream._state;if("readable"!==t)throw TypeError(`The stream (in ${t} state) is not in the readable state and cannot be enqueued to`);eD(this,e)}error(e){if(!ec(this))throw eM("error");eC(this,e)}[O](e){ep(this),es(this);let t=this._cancelAlgorithm(e);return eS(this),t}[T](e){let t=this._controlledReadableByteStream;if(this._queueTotalSize>0){let t=this._queue.shift();this._queueTotalSize-=t.byteLength,eb(this);let n=new Uint8Array(t.buffer,t.byteOffset,t.byteLength);return void e._chunkSteps(n)}let n=this._autoAllocateChunkSize;if(void 0!==n){let t;try{t=new ArrayBuffer(n)}catch(t){return void e._errorSteps(t)}let r={buffer:t,bufferByteLength:n,byteOffset:0,byteLength:n,bytesFilled:0,elementSize:1,viewConstructor:Uint8Array,readerType:"default"};this._pendingPullIntos.push(r)}q(t,e),eh(this)}}function ec(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledReadableByteStream")&&e instanceof eu}function ed(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_associatedReadableByteStreamController")&&e instanceof el}function eh(e){if(function(e){let t=e._controlledReadableByteStream;return"readable"===t._state&&!e._closeRequested&&!!e._started&&!!(V(t)&&H(t)>0||eI(t)&&eN(t)>0||eO(e)>0)}(e)){if(e._pulling)return void(e._pullAgain=!0);e._pulling=!0,p(e._pullAlgorithm(),()=>{e._pulling=!1,e._pullAgain&&(e._pullAgain=!1,eh(e))},t=>{eC(e,t)})}}function ep(e){ek(e),e._pendingPullIntos=new b}function ef(e,t){let n=!1;"closed"===e._state&&(n=!0);let r=em(t);"default"===t.readerType?$(e,r,n):function(e,t,n){let r=e._reader._readIntoRequests.shift();n?r._closeSteps(t):r._chunkSteps(t)}(e,r,n)}function em(e){let t=e.bytesFilled,n=e.elementSize;return new e.viewConstructor(e.buffer,e.byteOffset,t/n)}function eg(e,t,n,r){e._queue.push({buffer:t,byteOffset:n,byteLength:r}),e._queueTotalSize+=r}function ev(e,t){let n=t.elementSize,r=t.bytesFilled-t.bytesFilled%n,i=Math.min(e._queueTotalSize,t.byteLength-t.bytesFilled),o=t.bytesFilled+i,a=o-o%n,s=i,l=!1;a>r&&(s=a-t.bytesFilled,l=!0);let u=e._queue;for(;s>0;){let n=u.peek(),r=Math.min(s,n.byteLength),i=t.byteOffset+t.bytesFilled;en(t.buffer,i,n.buffer,n.byteOffset,r),n.byteLength===r?u.shift():(n.byteOffset+=r,n.byteLength-=r),e._queueTotalSize-=r,ey(e,r,t),s-=r}return l}function ey(e,t,n){n.bytesFilled+=t}function eb(e){0===e._queueTotalSize&&e._closeRequested?(eS(e),tH(e._controlledReadableByteStream)):eh(e)}function ek(e){null!==e._byobRequest&&(e._byobRequest._associatedReadableByteStreamController=void 0,e._byobRequest._view=null,e._byobRequest=null)}function ew(e){for(;e._pendingPullIntos.length>0;){if(0===e._queueTotalSize)return;let t=e._pendingPullIntos.peek();ev(e,t)&&(e_(e),ef(e._controlledReadableByteStream,t))}}function ex(e,t){let n=e._pendingPullIntos.peek();ek(e),"closed"===e._controlledReadableByteStream._state?function(e,t){let n=e._controlledReadableByteStream;if(eI(n))for(;eN(n)>0;)ef(n,e_(e))}(e):function(e,t,n){if(ey(0,t,n),n.bytesFilled0){let t=n.byteOffset+n.bytesFilled,i=er(n.buffer,t-r,t);eg(e,i,0,i.byteLength)}n.bytesFilled-=r,ef(e._controlledReadableByteStream,n),ew(e)}(e,t,n),eh(e)}function e_(e){return e._pendingPullIntos.shift()}function eS(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0}function eE(e){let t=e._controlledReadableByteStream;if(!e._closeRequested&&"readable"===t._state){if(e._queueTotalSize>0)e._closeRequested=!0;else{if(e._pendingPullIntos.length>0&&e._pendingPullIntos.peek().bytesFilled>0){let t=TypeError("Insufficient bytes to fill elements in the given buffer");throw eC(e,t),t}eS(e),tH(t)}}}function eD(e,t){let n=e._controlledReadableByteStream;if(e._closeRequested||"readable"!==n._state)return;let r=t.buffer,i=t.byteOffset,o=t.byteLength;if(e._pendingPullIntos.length>0){let t=e._pendingPullIntos.peek();t.buffer,t.buffer=t.buffer}(ek(e),V(n))?0===H(n)?eg(e,r,i,o):(e._pendingPullIntos.length>0&&e_(e),$(n,new Uint8Array(r,i,o),!1)):eI(n)?(eg(e,r,i,o),ew(e)):eg(e,r,i,o),eh(e)}function eC(e,t){let n=e._controlledReadableByteStream;"readable"===n._state&&(ep(e),es(e),eS(e),tV(n,t))}function ej(e){if(null===e._byobRequest&&e._pendingPullIntos.length>0){let t=e._pendingPullIntos.peek(),n=new Uint8Array(t.buffer,t.byteOffset+t.bytesFilled,t.byteLength-t.bytesFilled),r=Object.create(el.prototype);r._associatedReadableByteStreamController=e,r._view=n,e._byobRequest=r}return e._byobRequest}function eO(e){let t=e._controlledReadableByteStream._state;return"errored"===t?null:"closed"===t?0:e._strategyHWM-e._queueTotalSize}function eT(e,t){let n=e._pendingPullIntos.peek();if("closed"===e._controlledReadableByteStream._state){if(0!==t)throw TypeError("bytesWritten must be 0 when calling respond() on a closed stream")}else{if(0===t)throw TypeError("bytesWritten must be greater than 0 when calling respond() on a readable stream");if(n.bytesFilled+t>n.byteLength)throw RangeError("bytesWritten out of range")}n.buffer=n.buffer,ex(e,t)}function eA(e,t){let n=e._pendingPullIntos.peek();if("closed"===e._controlledReadableByteStream._state){if(0!==t.byteLength)throw TypeError("The view's length must be 0 when calling respondWithNewView() on a closed stream")}else if(0===t.byteLength)throw TypeError("The view's length must be greater than 0 when calling respondWithNewView() on a readable stream");if(n.byteOffset+n.bytesFilled!==t.byteOffset)throw RangeError("The region specified by view does not match byobRequest");if(n.bufferByteLength!==t.buffer.byteLength)throw RangeError("The buffer of view has different capacity than byobRequest");if(n.bytesFilled+t.byteLength>n.byteLength)throw RangeError("The region specified by view is larger than byobRequest");let r=t.byteLength;n.buffer=t.buffer,ex(e,r)}function eP(e,t,n,r,i,o,a){t._controlledReadableByteStream=e,t._pullAgain=!1,t._pulling=!1,t._byobRequest=null,t._queue=t._queueTotalSize=void 0,es(t),t._closeRequested=!1,t._started=!1,t._strategyHWM=o,t._pullAlgorithm=r,t._cancelAlgorithm=i,t._autoAllocateChunkSize=a,t._pendingPullIntos=new b,e._readableStreamController=t,p(u(n()),()=>{t._started=!0,eh(t)},e=>{eC(t,e)})}function eR(e){return TypeError(`ReadableStreamBYOBRequest.prototype.${e} can only be used on a ReadableStreamBYOBRequest`)}function eM(e){return TypeError(`ReadableByteStreamController.prototype.${e} can only be used on a ReadableByteStreamController`)}function eF(e,t){e._reader._readIntoRequests.push(t)}function eN(e){return e._reader._readIntoRequests.length}function eI(e){let t=e._reader;return void 0!==t&&!!eB(t)}Object.defineProperties(eu.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},byobRequest:{enumerable:!0},desiredSize:{enumerable:!0}}),"symbol"==typeof r.toStringTag&&Object.defineProperty(eu.prototype,r.toStringTag,{value:"ReadableByteStreamController",configurable:!0});class eL{constructor(e){if(N(e,1,"ReadableStreamBYOBReader"),z(e,"First parameter"),tq(e))throw TypeError("This stream has already been locked for exclusive reading by another reader");if(!ec(e._readableStreamController))throw TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");k(this,e),this._readIntoRequests=new b}get closed(){return eB(this)?this._closedPromise:c(eU("closed"))}cancel(e){return eB(this)?void 0===this._ownerReadableStream?c(_("cancel")):w(this,e):c(eU("cancel"))}read(e){let t,n;if(!eB(this))return c(eU("read"));if(!ArrayBuffer.isView(e))return c(TypeError("view must be an array buffer view"));if(0===e.byteLength)return c(TypeError("view must have non-zero byteLength"));if(0===e.buffer.byteLength)return c(TypeError("view's buffer must have non-zero byteLength"));if(e.buffer,void 0===this._ownerReadableStream)return c(_("read from"));let r=d((e,r)=>{t=e,n=r});return ez(this,e,{_chunkSteps:e=>t({value:e,done:!1}),_closeSteps:e=>t({value:e,done:!0}),_errorSteps:e=>n(e)}),r}releaseLock(){if(!eB(this))throw eU("releaseLock");if(void 0!==this._ownerReadableStream){if(this._readIntoRequests.length>0)throw TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");x(this)}}}function eB(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readIntoRequests")&&e instanceof eL}function ez(e,t,n){let r=e._ownerReadableStream;r._disturbed=!0,"errored"===r._state?n._errorSteps(r._storedError):function(e,t,n){let r=e._controlledReadableByteStream,i=1;t.constructor!==DataView&&(i=t.constructor.BYTES_PER_ELEMENT);let o=t.constructor,a=t.buffer,s={buffer:a,bufferByteLength:a.byteLength,byteOffset:t.byteOffset,byteLength:t.byteLength,bytesFilled:0,elementSize:i,viewConstructor:o,readerType:"byob"};if(e._pendingPullIntos.length>0)return e._pendingPullIntos.push(s),void eF(r,n);if("closed"!==r._state){if(e._queueTotalSize>0){if(ev(e,s)){let t=em(s);return eb(e),void n._chunkSteps(t)}if(e._closeRequested){let t=TypeError("Insufficient bytes to fill elements in the given buffer");return eC(e,t),void n._errorSteps(t)}}e._pendingPullIntos.push(s),eF(r,n),eh(e)}else{let e=new o(s.buffer,s.byteOffset,0);n._closeSteps(e)}}(r._readableStreamController,t,n)}function eU(e){return TypeError(`ReadableStreamBYOBReader.prototype.${e} can only be used on a ReadableStreamBYOBReader`)}function eq(e,t){let{highWaterMark:n}=e;if(void 0===n)return t;if(ee(n)||n<0)throw RangeError("Invalid highWaterMark");return n}function e$(e){let{size:t}=e;return t||(()=>1)}function eH(e,t){R(e,t);let n=null==e?void 0:e.highWaterMark,r=null==e?void 0:e.size;return{highWaterMark:void 0===n?void 0:L(n),size:void 0===r?void 0:(M(r,`${t} has member 'size' that`),e=>L(r(e)))}}function eV(e,t){if(!eZ(e))throw TypeError(`${t} is not a WritableStream.`)}Object.defineProperties(eL.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),"symbol"==typeof r.toStringTag&&Object.defineProperty(eL.prototype,r.toStringTag,{value:"ReadableStreamBYOBReader",configurable:!0});let eW="function"==typeof AbortController;class eG{constructor(e={},t={}){void 0===e?e=null:F(e,"First parameter");let n=eH(t,"Second parameter"),r=function(e,t){R(e,t);let n=null==e?void 0:e.abort,r=null==e?void 0:e.close,i=null==e?void 0:e.start,o=null==e?void 0:e.type,a=null==e?void 0:e.write;return{abort:void 0===n?void 0:(M(n,`${t} has member 'abort' that`),t=>y(n,e,[t])),close:void 0===r?void 0:(M(r,`${t} has member 'close' that`),()=>y(r,e,[])),start:void 0===i?void 0:(M(i,`${t} has member 'start' that`),t=>v(i,e,[t])),write:void 0===a?void 0:(M(a,`${t} has member 'write' that`),(t,n)=>y(a,e,[t,n])),type:o}}(e,"First parameter");if(eY(this),void 0!==r.type)throw RangeError("Invalid type is specified");let i=e$(n);!function(e,t,n,r){let i=Object.create(tn.prototype),o=()=>{},a=()=>u(void 0),s=()=>u(void 0),l=()=>u(void 0);void 0!==t.start&&(o=()=>t.start(i)),void 0!==t.write&&(a=e=>t.write(e,i)),void 0!==t.close&&(s=()=>t.close()),void 0!==t.abort&&(l=e=>t.abort(e)),ti(e,i,o,a,s,l,n,r)}(this,r,eq(n,1),i)}get locked(){if(!eZ(this))throw tc("locked");return eK(this)}abort(e){return eZ(this)?eK(this)?c(TypeError("Cannot abort a stream that already has a writer")):eJ(this,e):c(tc("abort"))}close(){return eZ(this)?eK(this)?c(TypeError("Cannot close a stream that already has a writer")):e2(this)?c(TypeError("Cannot close an already-closing stream")):eX(this):c(tc("close"))}getWriter(){if(!eZ(this))throw tc("getWriter");return new e4(this)}}function eY(e){e._state="writable",e._storedError=void 0,e._writer=void 0,e._writableStreamController=void 0,e._writeRequests=new b,e._inFlightWriteRequest=void 0,e._closeRequest=void 0,e._inFlightCloseRequest=void 0,e._pendingAbortRequest=void 0,e._backpressure=!1}function eZ(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_writableStreamController")&&e instanceof eG}function eK(e){return void 0!==e._writer}function eJ(e,t){var n;if("closed"===e._state||"errored"===e._state)return u(void 0);e._writableStreamController._abortReason=t,null===(n=e._writableStreamController._abortController)||void 0===n||n.abort();let r=e._state;if("closed"===r||"errored"===r)return u(void 0);if(void 0!==e._pendingAbortRequest)return e._pendingAbortRequest._promise;let i=!1;"erroring"===r&&(i=!0,t=void 0);let o=d((n,r)=>{e._pendingAbortRequest={_promise:void 0,_resolve:n,_reject:r,_reason:t,_wasAlreadyErroring:i}});return e._pendingAbortRequest._promise=o,i||e0(e,t),o}function eX(e){var t;let n=e._state;if("closed"===n||"errored"===n)return c(TypeError(`The stream (in ${n} state) is not in the writable state and cannot be closed`));let r=d((t,n)=>{e._closeRequest={_resolve:t,_reject:n}}),i=e._writer;return void 0!==i&&e._backpressure&&"writable"===n&&tk(i),ea(t=e._writableStreamController,tt,0),ts(t),r}function eQ(e,t){"writable"!==e._state?e1(e):e0(e,t)}function e0(e,t){let n=e._writableStreamController;e._state="erroring",e._storedError=t;let r=e._writer;void 0!==r&&e9(r,t),!(void 0!==e._inFlightWriteRequest||void 0!==e._inFlightCloseRequest)&&n._started&&e1(e)}function e1(e){e._state="errored",e._writableStreamController[j]();let t=e._storedError;if(e._writeRequests.forEach(e=>{e._reject(t)}),e._writeRequests=new b,void 0===e._pendingAbortRequest)return void e3(e);let n=e._pendingAbortRequest;if(e._pendingAbortRequest=void 0,n._wasAlreadyErroring)return n._reject(t),void e3(e);p(e._writableStreamController[C](n._reason),()=>{n._resolve(),e3(e)},t=>{n._reject(t),e3(e)})}function e2(e){return void 0!==e._closeRequest||void 0!==e._inFlightCloseRequest}function e3(e){void 0!==e._closeRequest&&(e._closeRequest._reject(e._storedError),e._closeRequest=void 0);let t=e._writer;void 0!==t&&tm(t,e._storedError)}function e5(e,t){let n=e._writer;void 0!==n&&t!==e._backpressure&&(t?tv(n):tk(n)),e._backpressure=t}Object.defineProperties(eG.prototype,{abort:{enumerable:!0},close:{enumerable:!0},getWriter:{enumerable:!0},locked:{enumerable:!0}}),"symbol"==typeof r.toStringTag&&Object.defineProperty(eG.prototype,r.toStringTag,{value:"WritableStream",configurable:!0});class e4{constructor(e){if(N(e,1,"WritableStreamDefaultWriter"),eV(e,"First parameter"),eK(e))throw TypeError("This stream has already been locked for exclusive writing by another writer");this._ownerWritableStream=e,e._writer=this;let t=e._state;if("writable"===t)!e2(e)&&e._backpressure?tv(this):(tv(this),tk(this)),tf(this);else if("erroring"===t)ty(this,e._storedError),tf(this);else if("closed"===t)tv(this),tk(this),tf(this),tg(this);else{let t=e._storedError;ty(this,t),tf(this),tm(this,t)}}get closed(){return e6(this)?this._closedPromise:c(th("closed"))}get desiredSize(){if(!e6(this))throw th("desiredSize");if(void 0===this._ownerWritableStream)throw tp("desiredSize");return function(e){let t=e._ownerWritableStream,n=t._state;return"errored"===n||"erroring"===n?null:"closed"===n?0:ta(t._writableStreamController)}(this)}get ready(){return e6(this)?this._readyPromise:c(th("ready"))}abort(e){return e6(this)?void 0===this._ownerWritableStream?c(tp("abort")):eJ(this._ownerWritableStream,e):c(th("abort"))}close(){if(!e6(this))return c(th("close"));let e=this._ownerWritableStream;return void 0===e?c(tp("close")):e2(e)?c(TypeError("Cannot close an already-closing stream")):e8(this)}releaseLock(){if(!e6(this))throw th("releaseLock");void 0!==this._ownerWritableStream&&e7(this)}write(e){return e6(this)?void 0===this._ownerWritableStream?c(tp("write to")):te(this,e):c(th("write"))}}function e6(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_ownerWritableStream")&&e instanceof e4}function e8(e){return eX(e._ownerWritableStream)}function e9(e,t){"pending"===e._readyPromiseState?tb(e,t):ty(e,t)}function e7(e){let t=e._ownerWritableStream,n=TypeError("Writer was released and can no longer be used to monitor the stream's closedness");e9(e,n),"pending"===e._closedPromiseState||tf(e),tm(e,n),t._writer=void 0,e._ownerWritableStream=void 0}function te(e,t){let n=e._ownerWritableStream,r=n._writableStreamController,i=function(e,t){try{return e._strategySizeAlgorithm(t)}catch(t){return tl(e,t),1}}(r,t);if(n!==e._ownerWritableStream)return c(tp("write to"));let o=n._state;if("errored"===o)return c(n._storedError);if(e2(n)||"closed"===o)return c(TypeError("The stream is closing or closed and cannot be written to"));if("erroring"===o)return c(n._storedError);let a=d((e,t)=>{n._writeRequests.push({_resolve:e,_reject:t})});return function(e,t,n){try{ea(e,t,n)}catch(t){return void tl(e,t)}let r=e._controlledWritableStream;e2(r)||"writable"!==r._state||e5(r,0>=ta(e)),ts(e)}(r,t,i),a}Object.defineProperties(e4.prototype,{abort:{enumerable:!0},close:{enumerable:!0},releaseLock:{enumerable:!0},write:{enumerable:!0},closed:{enumerable:!0},desiredSize:{enumerable:!0},ready:{enumerable:!0}}),"symbol"==typeof r.toStringTag&&Object.defineProperty(e4.prototype,r.toStringTag,{value:"WritableStreamDefaultWriter",configurable:!0});let tt={};class tn{constructor(){throw TypeError("Illegal constructor")}get abortReason(){if(!tr(this))throw td("abortReason");return this._abortReason}get signal(){if(!tr(this))throw td("signal");if(void 0===this._abortController)throw TypeError("WritableStreamDefaultController.prototype.signal is not supported");return this._abortController.signal}error(e){if(!tr(this))throw td("error");"writable"===this._controlledWritableStream._state&&tu(this,e)}[C](e){let t=this._abortAlgorithm(e);return to(this),t}[j](){es(this)}}function tr(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledWritableStream")&&e instanceof tn}function ti(e,t,n,r,i,o,a,s){t._controlledWritableStream=e,e._writableStreamController=t,t._queue=void 0,t._queueTotalSize=void 0,es(t),t._abortReason=void 0,t._abortController=function(){if(eW)return new AbortController}(),t._started=!1,t._strategySizeAlgorithm=s,t._strategyHWM=a,t._writeAlgorithm=r,t._closeAlgorithm=i,t._abortAlgorithm=o;let l=0>=ta(t);e5(e,l),p(u(n()),()=>{t._started=!0,ts(t)},n=>{t._started=!0,eQ(e,n)})}function to(e){e._writeAlgorithm=void 0,e._closeAlgorithm=void 0,e._abortAlgorithm=void 0,e._strategySizeAlgorithm=void 0}function ta(e){return e._strategyHWM-e._queueTotalSize}function ts(e){let t=e._controlledWritableStream;if(!e._started||void 0!==t._inFlightWriteRequest)return;if("erroring"===t._state)return void e1(t);if(0===e._queue.length)return;let n=e._queue.peek().value;n===tt?function(e){let t=e._controlledWritableStream;t._inFlightCloseRequest=t._closeRequest,t._closeRequest=void 0,eo(e);let n=e._closeAlgorithm();to(e),p(n,()=>{!function(e){e._inFlightCloseRequest._resolve(void 0),e._inFlightCloseRequest=void 0,"erroring"===e._state&&(e._storedError=void 0,void 0!==e._pendingAbortRequest&&(e._pendingAbortRequest._resolve(),e._pendingAbortRequest=void 0)),e._state="closed";let t=e._writer;void 0!==t&&tg(t)}(t)},e=>{t._inFlightCloseRequest._reject(e),t._inFlightCloseRequest=void 0,void 0!==t._pendingAbortRequest&&(t._pendingAbortRequest._reject(e),t._pendingAbortRequest=void 0),eQ(t,e)})}(e):function(e,t){let n=e._controlledWritableStream;n._inFlightWriteRequest=n._writeRequests.shift(),p(e._writeAlgorithm(t),()=>{n._inFlightWriteRequest._resolve(void 0),n._inFlightWriteRequest=void 0;let t=n._state;if(eo(e),!e2(n)&&"writable"===t){let t=0>=ta(e);e5(n,t)}ts(e)},t=>{"writable"===n._state&&to(e),n._inFlightWriteRequest._reject(t),n._inFlightWriteRequest=void 0,eQ(n,t)})}(e,n)}function tl(e,t){"writable"===e._controlledWritableStream._state&&tu(e,t)}function tu(e,t){let n=e._controlledWritableStream;to(e),e0(n,t)}function tc(e){return TypeError(`WritableStream.prototype.${e} can only be used on a WritableStream`)}function td(e){return TypeError(`WritableStreamDefaultController.prototype.${e} can only be used on a WritableStreamDefaultController`)}function th(e){return TypeError(`WritableStreamDefaultWriter.prototype.${e} can only be used on a WritableStreamDefaultWriter`)}function tp(e){return TypeError("Cannot "+e+" a stream using a released writer")}function tf(e){e._closedPromise=d((t,n)=>{e._closedPromise_resolve=t,e._closedPromise_reject=n,e._closedPromiseState="pending"})}function tm(e,t){void 0!==e._closedPromise_reject&&(m(e._closedPromise),e._closedPromise_reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState="rejected")}function tg(e){void 0!==e._closedPromise_resolve&&(e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState="resolved")}function tv(e){e._readyPromise=d((t,n)=>{e._readyPromise_resolve=t,e._readyPromise_reject=n}),e._readyPromiseState="pending"}function ty(e,t){tv(e),tb(e,t)}function tb(e,t){void 0!==e._readyPromise_reject&&(m(e._readyPromise),e._readyPromise_reject(t),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState="rejected")}function tk(e){void 0!==e._readyPromise_resolve&&(e._readyPromise_resolve(void 0),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState="fulfilled")}Object.defineProperties(tn.prototype,{abortReason:{enumerable:!0},signal:{enumerable:!0},error:{enumerable:!0}}),"symbol"==typeof r.toStringTag&&Object.defineProperty(tn.prototype,r.toStringTag,{value:"WritableStreamDefaultController",configurable:!0});let tw="undefined"!=typeof DOMException?DOMException:void 0,tx=!function(e){if("function"!=typeof e&&"object"!=typeof e)return!1;try{return new e,!0}catch(e){return!1}}(tw)?function(){let e=function(e,t){this.message=e||"",this.name=t||"Error",Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)};return e.prototype=Object.create(Error.prototype),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,configurable:!0}),e}():tw;function t_(e,t,n,r,o,a){let s=U(e),l=new e4(t);e._disturbed=!0;let g=!1,v=u(void 0);return d((y,b)=>{var k,w;let _;if(void 0!==a){if(_=()=>{let n=new tx("Aborted","AbortError"),i=[];r||i.push(()=>"writable"===t._state?eJ(t,n):u(void 0)),o||i.push(()=>"readable"===e._state?t$(e,n):u(void 0)),D(()=>Promise.all(i.map(e=>e())),!0,n)},a.aborted)return void _();a.addEventListener("abort",_)}if(E(e,s._closedPromise,e=>{r?C(!0,e):D(()=>eJ(t,e),!0,e)}),E(t,l._closedPromise,t=>{o?C(!0,t):D(()=>t$(e,t),!0,t)}),k=s._closedPromise,w=()=>{n?C():D(()=>(function(e){let t=e._ownerWritableStream,n=t._state;return e2(t)||"closed"===n?u(void 0):"errored"===n?c(t._storedError):e8(e)})(l))},"closed"===e._state?w():p(k,w),e2(t)||"closed"===t._state){let t=TypeError("the destination writable stream closed before all data could be piped to it");o?C(!0,t):D(()=>t$(e,t),!0,t)}function S(){let e=v;return h(v,()=>e!==v?S():void 0)}function E(e,t,n){"errored"===e._state?n(e._storedError):f(t,n)}function D(e,n,r){function i(){p(e(),()=>j(n,r),e=>j(!0,e))}g||(g=!0,"writable"!==t._state||e2(t)?i():p(S(),i))}function C(e,n){g||(g=!0,"writable"!==t._state||e2(t)?j(e,n):p(S(),()=>j(e,n)))}function j(e,t){e7(l),x(s),void 0!==a&&a.removeEventListener("abort",_),e?b(t):y(void 0)}m(d((e,t)=>{!function n(r){r?e():h(g?u(!0):h(l._readyPromise,()=>d((e,t)=>{Y(s,{_chunkSteps:t=>{v=h(te(l,t),void 0,i),e(!1)},_closeSteps:()=>e(!0),_errorSteps:t})})),n,t)}(!1)}))})}class tS{constructor(){throw TypeError("Illegal constructor")}get desiredSize(){if(!tE(this))throw tF("desiredSize");return tP(this)}close(){if(!tE(this))throw tF("close");if(!tR(this))throw TypeError("The stream is not in a state that permits close");tO(this)}enqueue(e){if(!tE(this))throw tF("enqueue");if(!tR(this))throw TypeError("The stream is not in a state that permits enqueue");return tT(this,e)}error(e){if(!tE(this))throw tF("error");tA(this,e)}[O](e){es(this);let t=this._cancelAlgorithm(e);return tj(this),t}[T](e){let t=this._controlledReadableStream;if(this._queue.length>0){let n=eo(this);this._closeRequested&&0===this._queue.length?(tj(this),tH(t)):tD(this),e._chunkSteps(n)}else q(t,e),tD(this)}}function tE(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledReadableStream")&&e instanceof tS}function tD(e){if(tC(e)){if(e._pulling)return void(e._pullAgain=!0);e._pulling=!0,p(e._pullAlgorithm(),()=>{e._pulling=!1,e._pullAgain&&(e._pullAgain=!1,tD(e))},t=>{tA(e,t)})}}function tC(e){let t=e._controlledReadableStream;return!!tR(e)&&!!e._started&&(!!(tq(t)&&H(t)>0)||tP(e)>0)}function tj(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0,e._strategySizeAlgorithm=void 0}function tO(e){if(!tR(e))return;let t=e._controlledReadableStream;e._closeRequested=!0,0===e._queue.length&&(tj(e),tH(t))}function tT(e,t){if(!tR(e))return;let n=e._controlledReadableStream;if(tq(n)&&H(n)>0)$(n,t,!1);else{let n;try{n=e._strategySizeAlgorithm(t)}catch(t){throw tA(e,t),t}try{ea(e,t,n)}catch(t){throw tA(e,t),t}}tD(e)}function tA(e,t){let n=e._controlledReadableStream;"readable"===n._state&&(es(e),tj(e),tV(n,t))}function tP(e){let t=e._controlledReadableStream._state;return"errored"===t?null:"closed"===t?0:e._strategyHWM-e._queueTotalSize}function tR(e){let t=e._controlledReadableStream._state;return!e._closeRequested&&"readable"===t}function tM(e,t,n,r,i,o,a){t._controlledReadableStream=e,t._queue=void 0,t._queueTotalSize=void 0,es(t),t._started=!1,t._closeRequested=!1,t._pullAgain=!1,t._pulling=!1,t._strategySizeAlgorithm=a,t._strategyHWM=o,t._pullAlgorithm=r,t._cancelAlgorithm=i,e._readableStreamController=t,p(u(n()),()=>{t._started=!0,tD(t)},e=>{tA(t,e)})}function tF(e){return TypeError(`ReadableStreamDefaultController.prototype.${e} can only be used on a ReadableStreamDefaultController`)}function tN(e,t){R(e,t);let n=null==e?void 0:e.preventAbort,r=null==e?void 0:e.preventCancel,i=null==e?void 0:e.preventClose,o=null==e?void 0:e.signal;return void 0!==o&&function(e,t){if(!function(e){if("object"!=typeof e||null===e)return!1;try{return"boolean"==typeof e.aborted}catch(e){return!1}}(e))throw TypeError(`${t} is not an AbortSignal.`)}(o,`${t} has member 'signal' that`),{preventAbort:!!n,preventCancel:!!r,preventClose:!!i,signal:o}}Object.defineProperties(tS.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},desiredSize:{enumerable:!0}}),"symbol"==typeof r.toStringTag&&Object.defineProperty(tS.prototype,r.toStringTag,{value:"ReadableStreamDefaultController",configurable:!0});class tI{constructor(e={},t={}){void 0===e?e=null:F(e,"First parameter");let n=eH(t,"Second parameter"),r=function(e,t){R(e,t);let n=null==e?void 0:e.autoAllocateChunkSize,r=null==e?void 0:e.cancel,i=null==e?void 0:e.pull,o=null==e?void 0:e.start,a=null==e?void 0:e.type;return{autoAllocateChunkSize:void 0===n?void 0:B(n,`${t} has member 'autoAllocateChunkSize' that`),cancel:void 0===r?void 0:(M(r,`${t} has member 'cancel' that`),t=>y(r,e,[t])),pull:void 0===i?void 0:(M(i,`${t} has member 'pull' that`),t=>y(i,e,[t])),start:void 0===o?void 0:(M(o,`${t} has member 'start' that`),t=>v(o,e,[t])),type:void 0===a?void 0:function(e,t){if("bytes"!=(e=`${e}`))throw TypeError(`${t} '${e}' is not a valid enumeration value for ReadableStreamType`);return e}(a,`${t} has member 'type' that`)}}(e,"First parameter");if(tz(this),"bytes"===r.type){if(void 0!==n.size)throw RangeError("The strategy for a byte stream cannot have a size function");!function(e,t,n){let r=Object.create(eu.prototype),i=()=>{},o=()=>u(void 0),a=()=>u(void 0);void 0!==t.start&&(i=()=>t.start(r)),void 0!==t.pull&&(o=()=>t.pull(r)),void 0!==t.cancel&&(a=e=>t.cancel(e));let s=t.autoAllocateChunkSize;if(0===s)throw TypeError("autoAllocateChunkSize must be greater than 0");eP(e,r,i,o,a,n,s)}(this,r,eq(n,0))}else{let e=e$(n);!function(e,t,n,r){let i=Object.create(tS.prototype),o=()=>{},a=()=>u(void 0),s=()=>u(void 0);void 0!==t.start&&(o=()=>t.start(i)),void 0!==t.pull&&(a=()=>t.pull(i)),void 0!==t.cancel&&(s=e=>t.cancel(e)),tM(e,i,o,a,s,n,r)}(this,r,eq(n,1),e)}}get locked(){if(!tU(this))throw tW("locked");return tq(this)}cancel(e){return tU(this)?tq(this)?c(TypeError("Cannot cancel a stream that already has a reader")):t$(this,e):c(tW("cancel"))}getReader(e){if(!tU(this))throw tW("getReader");return void 0===function(e,t){R(e,t);let n=null==e?void 0:e.mode;return{mode:void 0===n?void 0:function(e,t){if("byob"!=(e=`${e}`))throw TypeError(`${t} '${e}' is not a valid enumeration value for ReadableStreamReaderMode`);return e}(n,`${t} has member 'mode' that`)}}(e,"First parameter").mode?U(this):new eL(this)}pipeThrough(e,t={}){if(!tU(this))throw tW("pipeThrough");N(e,1,"pipeThrough");let n=function(e,t){R(e,t);let n=null==e?void 0:e.readable;I(n,"readable","ReadableWritablePair"),z(n,`${t} has member 'readable' that`);let r=null==e?void 0:e.writable;return I(r,"writable","ReadableWritablePair"),eV(r,`${t} has member 'writable' that`),{readable:n,writable:r}}(e,"First parameter"),r=tN(t,"Second parameter");if(tq(this))throw TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");if(eK(n.writable))throw TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");return m(t_(this,n.writable,r.preventClose,r.preventAbort,r.preventCancel,r.signal)),n.readable}pipeTo(e,t={}){let n;if(!tU(this))return c(tW("pipeTo"));if(void 0===e)return c("Parameter 1 is required in 'pipeTo'.");if(!eZ(e))return c(TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream"));try{n=tN(t,"Second parameter")}catch(e){return c(e)}return tq(this)?c(TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")):eK(e)?c(TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")):t_(this,e,n.preventClose,n.preventAbort,n.preventCancel,n.signal)}tee(){if(!tU(this))throw tW("tee");return et(ec(this._readableStreamController)?function(e){let t,n,r,i,o,a=U(e),s=!1,l=!1,c=!1,h=!1,p=!1,m=d(e=>{o=e});function v(e){f(e._closedPromise,t=>{e===a&&(eC(r._readableStreamController,t),eC(i._readableStreamController,t),h&&p||o(void 0))})}function y(){eB(a)&&(x(a),v(a=U(e))),Y(a,{_chunkSteps:t=>{g(()=>{l=!1,c=!1;let n=t;if(!h&&!p)try{n=ei(t)}catch(t){return eC(r._readableStreamController,t),eC(i._readableStreamController,t),void o(t$(e,t))}h||eD(r._readableStreamController,t),p||eD(i._readableStreamController,n),s=!1,l?k():c&&w()})},_closeSteps:()=>{s=!1,h||eE(r._readableStreamController),p||eE(i._readableStreamController),r._readableStreamController._pendingPullIntos.length>0&&eT(r._readableStreamController,0),i._readableStreamController._pendingPullIntos.length>0&&eT(i._readableStreamController,0),h&&p||o(void 0)},_errorSteps:()=>{s=!1}})}function b(t,n){G(a)&&(x(a),v(a=new eL(e)));let u=n?i:r,d=n?r:i;ez(a,t,{_chunkSteps:t=>{g(()=>{l=!1,c=!1;let r=n?p:h;if(n?h:p)r||eA(u._readableStreamController,t);else{let n;try{n=ei(t)}catch(t){return eC(u._readableStreamController,t),eC(d._readableStreamController,t),void o(t$(e,t))}r||eA(u._readableStreamController,t),eD(d._readableStreamController,n)}s=!1,l?k():c&&w()})},_closeSteps:e=>{s=!1;let t=n?p:h,r=n?h:p;t||eE(u._readableStreamController),r||eE(d._readableStreamController),void 0!==e&&(t||eA(u._readableStreamController,e),!r&&d._readableStreamController._pendingPullIntos.length>0&&eT(d._readableStreamController,0)),t&&r||o(void 0)},_errorSteps:()=>{s=!1}})}function k(){if(s)return l=!0,u(void 0);s=!0;let e=ej(r._readableStreamController);return null===e?y():b(e._view,!1),u(void 0)}function w(){if(s)return c=!0,u(void 0);s=!0;let e=ej(i._readableStreamController);return null===e?y():b(e._view,!0),u(void 0)}function _(){}return r=tB(_,k,function(r){if(h=!0,t=r,p){let r=et([t,n]),i=t$(e,r);o(i)}return m}),i=tB(_,w,function(r){if(p=!0,n=r,h){let r=et([t,n]),i=t$(e,r);o(i)}return m}),v(a),[r,i]}(this):function(e,t){let n=U(e),r,i,o,a,s,l=!1,c=!1,h=!1,p=!1,m=d(e=>{s=e});function v(){return l?c=!0:(l=!0,Y(n,{_chunkSteps:e=>{g(()=>{c=!1,h||tT(o._readableStreamController,e),p||tT(a._readableStreamController,e),l=!1,c&&v()})},_closeSteps:()=>{l=!1,h||tO(o._readableStreamController),p||tO(a._readableStreamController),h&&p||s(void 0)},_errorSteps:()=>{l=!1}})),u(void 0)}function y(){}return o=tL(y,v,function(t){if(h=!0,r=t,p){let t=et([r,i]),n=t$(e,t);s(n)}return m}),a=tL(y,v,function(t){if(p=!0,i=t,h){let t=et([r,i]),n=t$(e,t);s(n)}return m}),f(n._closedPromise,e=>{tA(o._readableStreamController,e),tA(a._readableStreamController,e),h&&p||s(void 0)}),[o,a]}(this))}values(e){if(!tU(this))throw tW("values");return function(e,t){let n=U(e),r=new K(n,t),i=Object.create(J);return i._asyncIteratorImpl=r,i}(this,function(e,t){R(e,t);let n=null==e?void 0:e.preventCancel;return{preventCancel:!!n}}(e,"First parameter").preventCancel)}}function tL(e,t,n,r=1,i=()=>1){let o=Object.create(tI.prototype);return tz(o),tM(o,Object.create(tS.prototype),e,t,n,r,i),o}function tB(e,t,n){let r=Object.create(tI.prototype);return tz(r),eP(r,Object.create(eu.prototype),e,t,n,0,void 0),r}function tz(e){e._state="readable",e._reader=void 0,e._storedError=void 0,e._disturbed=!1}function tU(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readableStreamController")&&e instanceof tI}function tq(e){return void 0!==e._reader}function t$(e,t){if(e._disturbed=!0,"closed"===e._state)return u(void 0);if("errored"===e._state)return c(e._storedError);tH(e);let n=e._reader;return void 0!==n&&eB(n)&&(n._readIntoRequests.forEach(e=>{e._closeSteps(void 0)}),n._readIntoRequests=new b),h(e._readableStreamController[O](t),i,void 0)}function tH(e){e._state="closed";let t=e._reader;void 0!==t&&(D(t),G(t)&&(t._readRequests.forEach(e=>{e._closeSteps()}),t._readRequests=new b))}function tV(e,t){e._state="errored",e._storedError=t;let n=e._reader;void 0!==n&&(E(n,t),G(n)?(n._readRequests.forEach(e=>{e._errorSteps(t)}),n._readRequests=new b):(n._readIntoRequests.forEach(e=>{e._errorSteps(t)}),n._readIntoRequests=new b))}function tW(e){return TypeError(`ReadableStream.prototype.${e} can only be used on a ReadableStream`)}function tG(e,t){R(e,t);let n=null==e?void 0:e.highWaterMark;return I(n,"highWaterMark","QueuingStrategyInit"),{highWaterMark:L(n)}}Object.defineProperties(tI.prototype,{cancel:{enumerable:!0},getReader:{enumerable:!0},pipeThrough:{enumerable:!0},pipeTo:{enumerable:!0},tee:{enumerable:!0},values:{enumerable:!0},locked:{enumerable:!0}}),"symbol"==typeof r.toStringTag&&Object.defineProperty(tI.prototype,r.toStringTag,{value:"ReadableStream",configurable:!0}),"symbol"==typeof r.asyncIterator&&Object.defineProperty(tI.prototype,r.asyncIterator,{value:tI.prototype.values,writable:!0,configurable:!0});let tY=e=>e.byteLength;try{Object.defineProperty(tY,"name",{value:"size",configurable:!0})}catch(e){}class tZ{constructor(e){N(e,1,"ByteLengthQueuingStrategy"),e=tG(e,"First parameter"),this._byteLengthQueuingStrategyHighWaterMark=e.highWaterMark}get highWaterMark(){if(!tJ(this))throw tK("highWaterMark");return this._byteLengthQueuingStrategyHighWaterMark}get size(){if(!tJ(this))throw tK("size");return tY}}function tK(e){return TypeError(`ByteLengthQueuingStrategy.prototype.${e} can only be used on a ByteLengthQueuingStrategy`)}function tJ(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_byteLengthQueuingStrategyHighWaterMark")&&e instanceof tZ}Object.defineProperties(tZ.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}}),"symbol"==typeof r.toStringTag&&Object.defineProperty(tZ.prototype,r.toStringTag,{value:"ByteLengthQueuingStrategy",configurable:!0});let tX=()=>1;try{Object.defineProperty(tX,"name",{value:"size",configurable:!0})}catch(e){}class tQ{constructor(e){N(e,1,"CountQueuingStrategy"),e=tG(e,"First parameter"),this._countQueuingStrategyHighWaterMark=e.highWaterMark}get highWaterMark(){if(!t1(this))throw t0("highWaterMark");return this._countQueuingStrategyHighWaterMark}get size(){if(!t1(this))throw t0("size");return tX}}function t0(e){return TypeError(`CountQueuingStrategy.prototype.${e} can only be used on a CountQueuingStrategy`)}function t1(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_countQueuingStrategyHighWaterMark")&&e instanceof tQ}Object.defineProperties(tQ.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}}),"symbol"==typeof r.toStringTag&&Object.defineProperty(tQ.prototype,r.toStringTag,{value:"CountQueuingStrategy",configurable:!0});class t2{constructor(e={},t={},n={}){let r;void 0===e&&(e=null);let i=eH(t,"Second parameter"),o=eH(n,"Third parameter"),a=function(e,t){R(e,t);let n=null==e?void 0:e.flush,r=null==e?void 0:e.readableType,i=null==e?void 0:e.start,o=null==e?void 0:e.transform,a=null==e?void 0:e.writableType;return{flush:void 0===n?void 0:(M(n,`${t} has member 'flush' that`),t=>y(n,e,[t])),readableType:r,start:void 0===i?void 0:(M(i,`${t} has member 'start' that`),t=>v(i,e,[t])),transform:void 0===o?void 0:(M(o,`${t} has member 'transform' that`),(t,n)=>y(o,e,[t,n])),writableType:a}}(e,"First parameter");if(void 0!==a.readableType)throw RangeError("Invalid readableType specified");if(void 0!==a.writableType)throw RangeError("Invalid writableType specified");let s=eq(o,0),l=e$(o),p=eq(i,1),f=e$(i);(function(e,t,n,r,i,o){function a(){return t}e._writable=function(e,t,n,r,i=1,o=()=>1){let a=Object.create(eG.prototype);return eY(a),ti(a,Object.create(tn.prototype),e,t,n,r,i,o),a}(a,function(t){return function(e,t){let n=e._transformStreamController;return e._backpressure?h(e._backpressureChangePromise,()=>{let r=e._writable;if("erroring"===r._state)throw r._storedError;return nt(n,t)},void 0):nt(n,t)}(e,t)},function(){return function(e){let t=e._readable,n=e._transformStreamController,r=n._flushAlgorithm();return t7(n),h(r,()=>{if("errored"===t._state)throw t._storedError;tO(t._readableStreamController)},n=>{throw t5(e,n),t._storedError})}(e)},function(t){return t5(e,t),u(void 0)},n,r),e._readable=tL(a,function(){return t6(e,!1),e._backpressureChangePromise},function(t){return t4(e,t),u(void 0)},i,o),e._backpressure=void 0,e._backpressureChangePromise=void 0,e._backpressureChangePromise_resolve=void 0,t6(e,!0),e._transformStreamController=void 0})(this,d(e=>{r=e}),p,f,s,l),function(e,t){var n,r;let i=Object.create(t8.prototype),o=e=>{try{return ne(i,e),u(void 0)}catch(e){return c(e)}},a=()=>u(void 0);void 0!==t.transform&&(o=e=>t.transform(e,i)),void 0!==t.flush&&(a=()=>t.flush(i)),n=o,r=a,i._controlledTransformStream=e,e._transformStreamController=i,i._transformAlgorithm=n,i._flushAlgorithm=r}(this,a),void 0!==a.start?r(a.start(this._transformStreamController)):r(void 0)}get readable(){if(!t3(this))throw nr("readable");return this._readable}get writable(){if(!t3(this))throw nr("writable");return this._writable}}function t3(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_transformStreamController")&&e instanceof t2}function t5(e,t){tA(e._readable._readableStreamController,t),t4(e,t)}function t4(e,t){t7(e._transformStreamController),tl(e._writable._writableStreamController,t),e._backpressure&&t6(e,!1)}function t6(e,t){void 0!==e._backpressureChangePromise&&e._backpressureChangePromise_resolve(),e._backpressureChangePromise=d(t=>{e._backpressureChangePromise_resolve=t}),e._backpressure=t}Object.defineProperties(t2.prototype,{readable:{enumerable:!0},writable:{enumerable:!0}}),"symbol"==typeof r.toStringTag&&Object.defineProperty(t2.prototype,r.toStringTag,{value:"TransformStream",configurable:!0});class t8{constructor(){throw TypeError("Illegal constructor")}get desiredSize(){if(!t9(this))throw nn("desiredSize");return tP(this._controlledTransformStream._readable._readableStreamController)}enqueue(e){if(!t9(this))throw nn("enqueue");ne(this,e)}error(e){if(!t9(this))throw nn("error");t5(this._controlledTransformStream,e)}terminate(){if(!t9(this))throw nn("terminate");!function(e){let t=e._controlledTransformStream;tO(t._readable._readableStreamController);let n=TypeError("TransformStream terminated");t4(t,n)}(this)}}function t9(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledTransformStream")&&e instanceof t8}function t7(e){e._transformAlgorithm=void 0,e._flushAlgorithm=void 0}function ne(e,t){let n=e._controlledTransformStream,r=n._readable._readableStreamController;if(!tR(r))throw TypeError("Readable side is not in a state that permits enqueue");try{tT(r,t)}catch(e){throw t4(n,e),n._readable._storedError}!tC(r)!==n._backpressure&&t6(n,!0)}function nt(e,t){return h(e._transformAlgorithm(t),void 0,t=>{throw t5(e._controlledTransformStream,t),t})}function nn(e){return TypeError(`TransformStreamDefaultController.prototype.${e} can only be used on a TransformStreamDefaultController`)}function nr(e){return TypeError(`TransformStream.prototype.${e} can only be used on a TransformStream`)}Object.defineProperties(t8.prototype,{enqueue:{enumerable:!0},error:{enumerable:!0},terminate:{enumerable:!0},desiredSize:{enumerable:!0}}),"symbol"==typeof r.toStringTag&&Object.defineProperty(t8.prototype,r.toStringTag,{value:"TransformStreamDefaultController",configurable:!0});let ni={ReadableStream:tI,ReadableStreamDefaultController:tS,ReadableByteStreamController:eu,ReadableStreamBYOBRequest:el,ReadableStreamDefaultReader:W,ReadableStreamBYOBReader:eL,WritableStream:eG,WritableStreamDefaultController:tn,WritableStreamDefaultWriter:e4,ByteLengthQueuingStrategy:tZ,CountQueuingStrategy:tQ,TransformStream:t2,TransformStreamDefaultController:t8};if(void 0!==o)for(let e in ni)Object.prototype.hasOwnProperty.call(ni,e)&&Object.defineProperty(o,e,{value:ni[e],writable:!0,configurable:!0});e.ByteLengthQueuingStrategy=tZ,e.CountQueuingStrategy=tQ,e.ReadableByteStreamController=eu,e.ReadableStream=tI,e.ReadableStreamBYOBReader=eL,e.ReadableStreamBYOBRequest=el,e.ReadableStreamDefaultController=tS,e.ReadableStreamDefaultReader=W,e.TransformStream=t2,e.TransformStreamDefaultController=t8,e.WritableStream=eG,e.WritableStreamDefaultController=tn,e.WritableStreamDefaultWriter=e4,Object.defineProperty(e,"__esModule",{value:!0})}(t)},78477:function(e){"use strict";function t(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}t.prototype.match=function(e){var t,n,r=!0,i=this.parts,o=i.length;if("string"==typeof e||e instanceof String){if(this.hasWild||this.text==e){for(t=0,n=(e||"").split(this.separator);r&&tvoid 0!==e.method&&"call"===e.method,a=e=>null===e.error&&"number"==typeof e.id,s=null;r=e=>{let t=new Map([[0,()=>{}]]),n=new Map([[0,()=>{}]]),r=new Map,s=new Worker(e);return s.addEventListener("message",({data:e})=>{if(o(e)){let{params:{timerId:i,timerType:o}}=e;if("interval"===o){let e=t.get(i);if("number"==typeof e){let t=r.get(e);if(void 0===t||t.timerId!==i||t.timerType!==o)throw Error("The timer is in an undefined state.")}else if(void 0!==e)e();else throw Error("The timer is in an undefined state.")}else if("timeout"===o){let e=n.get(i);if("number"==typeof e){let t=r.get(e);if(void 0===t||t.timerId!==i||t.timerType!==o)throw Error("The timer is in an undefined state.")}else if(void 0!==e)e(),n.delete(i);else throw Error("The timer is in an undefined state.")}}else if(a(e)){let{id:i}=e,o=r.get(i);if(void 0===o)throw Error("The timer is in an undefined state.");let{timerId:a,timerType:s}=o;r.delete(i),"interval"===s?t.delete(a):n.delete(a)}else{let{error:{message:t}}=e;throw Error(t)}}),{clearInterval:e=>{let n=(0,i.generateUniqueNumber)(r);r.set(n,{timerId:e,timerType:"interval"}),t.set(e,n),s.postMessage({id:n,method:"clear",params:{timerId:e,timerType:"interval"}})},clearTimeout:e=>{let t=(0,i.generateUniqueNumber)(r);r.set(t,{timerId:e,timerType:"timeout"}),n.set(e,t),s.postMessage({id:t,method:"clear",params:{timerId:e,timerType:"timeout"}})},setInterval:(e,n)=>{let r=(0,i.generateUniqueNumber)(t);return t.set(r,()=>{e(),"function"==typeof t.get(r)&&s.postMessage({id:null,method:"set",params:{delay:n,now:performance.now(),timerId:r,timerType:"interval"}})}),s.postMessage({id:null,method:"set",params:{delay:n,now:performance.now(),timerId:r,timerType:"interval"}}),r},setTimeout:(e,t)=>{let r=(0,i.generateUniqueNumber)(n);return n.set(r,e),s.postMessage({id:null,method:"set",params:{delay:t,now:performance.now(),timerId:r,timerType:"timeout"}}),r}}},()=>{if(null!==s)return s;let e=new Blob(['(()=>{"use strict";const e=new Map,t=new Map,r=(e,t)=>{let r,o;const i=performance.now();r=i,o=e-Math.max(0,i-t);return{expected:r+o,remainingDelay:o}},o=(e,t,r,i)=>{const s=performance.now();s>r?postMessage({id:null,method:"call",params:{timerId:t,timerType:i}}):e.set(t,setTimeout(o,r-s,e,t,r,i))};addEventListener("message",(({data:i})=>{try{if("clear"===i.method){const{id:r,params:{timerId:o,timerType:s}}=i;if("interval"===s)(t=>{const r=e.get(t);if(void 0===r)throw new Error(\'There is no interval scheduled with the given id "\'.concat(t,\'".\'));clearTimeout(r),e.delete(t)})(o),postMessage({error:null,id:r});else{if("timeout"!==s)throw new Error(\'The given type "\'.concat(s,\'" is not supported\'));(e=>{const r=t.get(e);if(void 0===r)throw new Error(\'There is no timeout scheduled with the given id "\'.concat(e,\'".\'));clearTimeout(r),t.delete(e)})(o),postMessage({error:null,id:r})}}else{if("set"!==i.method)throw new Error(\'The given method "\'.concat(i.method,\'" is not supported\'));{const{params:{delay:s,now:n,timerId:a,timerType:d}}=i;if("interval"===d)((t,i,s)=>{const{expected:n,remainingDelay:a}=r(t,s);e.set(i,setTimeout(o,a,e,i,n,"interval"))})(s,a,n);else{if("timeout"!==d)throw new Error(\'The given type "\'.concat(d,\'" is not supported\'));((e,i,s)=>{const{expected:n,remainingDelay:a}=r(e,s);t.set(i,setTimeout(o,a,t,i,n,"timeout"))})(s,a,n)}}}}catch(e){postMessage({error:{message:e.message},id:i.id,result:null})}}))})();'],{type:"application/javascript; charset=utf-8"}),t=URL.createObjectURL(e);return(s=r(t)).setTimeout(()=>URL.revokeObjectURL(t),0),s}},45526:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){Object.keys(e).filter(e=>"default"!==e&&"__esModule"!==e).forEach(n=>{t.hasOwnProperty(n)||Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>e[n]})})}(n(25420))},36990:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){Object.keys(e).filter(e=>"default"!==e&&"__esModule"!==e).forEach(n=>{t.hasOwnProperty(n)||Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>e[n]})})}(n(34331))},14808:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){Object.keys(e).filter(e=>"default"!==e&&"__esModule"!==e).forEach(n=>{t.hasOwnProperty(n)||Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>e[n]})})}(n(1109))},2370:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){Object.keys(e).filter(e=>"default"!==e&&"__esModule"!==e).forEach(n=>{t.hasOwnProperty(n)||Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>e[n]})})}(n(151))},66191:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){Object.keys(e).filter(e=>"default"!==e&&"__esModule"!==e).forEach(n=>{t.hasOwnProperty(n)||Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>e[n]})})}(n(22765))},45248:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){Object.keys(e).filter(e=>"default"!==e&&"__esModule"!==e).forEach(n=>{t.hasOwnProperty(n)||Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>e[n]})})}(n(61563))},55165:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){Object.keys(e).filter(e=>"default"!==e&&"__esModule"!==e).forEach(n=>{t.hasOwnProperty(n)||Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>e[n]})})}(n(27743))},80909:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class n{constructor(e,t){this.operator=e,this.value=t,Object.defineProperty(this,"t",{writable:!0})}get notes(){return this.t}addNote(e){this.t=this.t||[],this.t.push(e)}}class r extends n{}class i extends r{constructor(e,t){if(!Array.isArray(t))throw Error(`"${e}" operator expects to receive an array of conditions`);super(e,t)}}class o extends n{constructor(e,t,n){super(e,n),this.field=t}}let a=new r("__null__",null),s=Object.prototype.hasOwnProperty.call.bind(Object.prototype.hasOwnProperty);function l(e,t){return t instanceof i&&t.operator===e}function u(e,t){return 1===t.length?t[0]:new i(e,function e(t,n,r){let i=r||[];for(let r=0,o=n.length;re,d=()=>Object.create(null),h=Object.defineProperty(d(),"__@type@__",{value:"ignore value"});function p(e,t,n=!1){if(!e||e&&e.constructor!==Object)return!1;for(let r in e)if(s(e,r)&&s(t,r)&&(!n||e[r]!==h))return!0;return!1}function f(e){let t=[];for(let n in e)s(e,n)&&e[n]!==h&&t.push(n);return t}function m(e,t){t!==a&&e.push(t)}let g=e=>u("and",e),v={compound(e,t,n){let r=(Array.isArray(t)?t:[t]).map(e=>n.parse(e));return new i(e.name,r)},field:(e,t,n)=>new o(e.name,n.field,t),document:(e,t)=>new r(e.name,t)};class y{constructor(e,t=d()){this.o=void 0,this.s=void 0,this.i=void 0,this.u=void 0,this.h=void 0,this.parse=this.parse.bind(this),this.u={operatorToConditionName:t.operatorToConditionName||c,defaultOperatorName:t.defaultOperatorName||"eq",mergeFinalConditions:t.mergeFinalConditions||g},this.o=Object.keys(e).reduce((t,n)=>(t[n]=Object.assign({name:this.u.operatorToConditionName(n)},e[n]),t),{}),this.s=Object.assign({},t.fieldContext,{field:"",query:{},parse:this.parse,hasOperators:e=>p(e,this.o,t.useIgnoreValue)}),this.i=Object.assign({},t.documentContext,{parse:this.parse,query:{}}),this.h=t.useIgnoreValue?f:Object.keys}setParse(e){this.parse=e,this.s.parse=e,this.i.parse=e}parseField(e,t,n,r){let i=this.o[t];if(!i)throw Error(`Unsupported operator "${t}"`);if("field"!==i.type)throw Error(`Unexpected ${i.type} operator "${t}" at field level`);return this.s.field=e,this.s.query=r,this.parseInstruction(i,n,this.s)}parseInstruction(e,t,n){return"function"==typeof e.validate&&e.validate(e,t),(e.parse||v[e.type])(e,t,n)}parseFieldOperators(e,t){let n=[],r=this.h(t);for(let i=0,o=r.length;iu("or",e),t.createInterpreter=function(e,t){let n;let r=t&&t.getInterpreterName||k;switch(t?t.numberOfArguments:0){case 1:n=n=>{let o=r(n,t);return b(e,o)(n,i)};break;case 3:n=(n,o,a)=>{let s=r(n,t);return b(e,s)(n,o,a,i)};break;default:n=(n,o)=>{let a=r(n,t);return b(e,a)(n,o,i)}}let i=Object.assign({},t,{interpret:n});return i.interpret},t.createTranslatorFactory=function(e,t){return(n,...r)=>{let i=e(n,...r),o=t.bind(null,i);return o.ast=i,o}},t.defaultInstructionParsers=v,t.hasOperators=p,t.identity=c,t.ignoreValue=h,t.isCompound=l,t.object=d,t.optimizedCompoundCondition=u,t.parseInstruction=w},46401:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(80909);function i(e,t,n){for(let r=0,i=e.length;r{let i=r.get(n,t.field);return Array.isArray(i)?i.some(n=>e(t,n,r)):e(t,i,r)}}let l=(e,t)=>e[t];function u(e,t,n){let r=t.lastIndexOf(".");return -1===r?[e,t]:[n(e,t.slice(0,r)),t.slice(r+1)]}function c(e,t,n=l){if(t===r.ITSELF)return e;if(!e)throw Error(`Unable to get field "${t}" out of ${String(e)}.`);return function(e,t,n){if(-1===t.indexOf("."))return a(e,t,n);let r=t.split("."),i=e;for(let e=0,t=r.length;et?1:-1}function h(e,t={}){return r.createInterpreter(e,Object.assign({get:c,compare:d},t))}let p=(e,t,{interpret:n})=>e.value.some(e=>n(e,t)),f=(e,t,n)=>!p(e,t,n),m=(e,t,{interpret:n})=>e.value.every(e=>n(e,t)),g=(e,t,{interpret:n})=>!n(e.value[0],t),v=(e,t,{compare:n,get:r})=>{let o=r(t,e.field);return Array.isArray(o)&&!Array.isArray(e.value)?i(o,e.value,n):0===n(o,e.value)},y=(e,t,n)=>!v(e,t,n),b=s((e,t,n)=>{let r=n.compare(t,e.value);return 0===r||-1===r}),k=s((e,t,n)=>-1===n.compare(t,e.value)),w=s((e,t,n)=>1===n.compare(t,e.value)),x=s((e,t,n)=>{let r=n.compare(t,e.value);return 0===r||1===r}),_=(e,t,{get:n})=>{if(e.field===r.ITSELF)return void 0!==t;let[i,a]=u(t,e.field,n),s=t=>!!t&&t.hasOwnProperty(a)===e.value;return o(i,a)?i.some(s):s(i)},S=s((e,t)=>"number"==typeof t&&t%e.value[0]===e.value[1]),E=(e,t,{get:n})=>{let[i,a]=u(t,e.field,n),s=t=>{let r=n(t,a);return Array.isArray(r)&&r.length===e.value};return e.field!==r.ITSELF&&o(i,a)?i.some(s):s(i)},D=s((e,t)=>"string"==typeof t&&e.value.test(t)),C=s((e,t,{compare:n})=>i(e.value,t,n)),j=(e,t,n)=>!C(e,t,n),O=(e,t,{compare:n,get:r})=>{let o=r(t,e.field);return Array.isArray(o)&&e.value.every(e=>i(o,e,n))},T=(e,t,{interpret:n,get:r})=>{let i=r(t,e.field);return Array.isArray(i)&&i.some(t=>n(e.value,t))},A=(e,t)=>e.value.call(t);var P=Object.freeze({__proto__:null,or:p,nor:f,and:m,not:g,eq:v,ne:y,lte:b,lt:k,gt:w,gte:x,exists:_,mod:S,size:E,regex:D,within:C,nin:j,all:O,elemMatch:T,where:A});let R=Object.assign({},P,{in:C}),M=h(R);t.all=O,t.allInterpreters=R,t.and=m,t.compare=d,t.createGetter=function(e){return(t,n)=>c(t,n,e)},t.createJsInterpreter=h,t.elemMatch=T,t.eq=v,t.exists=_,t.getObjectField=c,t.getObjectFieldCursor=u,t.gt=w,t.gte=x,t.interpret=M,t.lt=k,t.lte=b,t.mod=S,t.ne=y,t.nin=j,t.nor=f,t.not=g,t.or=p,t.regex=D,t.size=E,t.where=A,t.within=C},73503:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(80909);function i(e,t){if(!Array.isArray(t))throw Error(`"${e.name}" expects value to be an array`)}function o(e,t){if(i(e,t),!t.length)throw Error(`"${e.name}" expects to have at least one element in array`)}let a=e=>(t,n)=>{if(typeof n!==e)throw Error(`"${t.name}" expects value to be a "${e}"`)},s={type:"compound",validate:o,parse(e,t,{parse:n}){let i=t.map(e=>n(e));return r.optimizedCompoundCondition(e.name,i)}},l={type:"compound",validate:o},u={type:"field",validate(e,t){if(!(t&&(t instanceof RegExp||t.constructor===Object)))throw Error(`"${e.name}" expects to receive either regular expression or object of field operators`)},parse(e,t,n){let i=t instanceof RegExp?new r.FieldCondition("regex",n.field,t):n.parse(t,n);return new r.CompoundCondition(e.name,[i])}},c={type:"field",validate(e,t){if(!t||t.constructor!==Object)throw Error(`"${e.name}" expects to receive an object with nested query or field level operators`)},parse(e,t,{parse:n,field:i,hasOperators:o}){let a=o(t)?n(t,{field:r.ITSELF}):n(t);return new r.FieldCondition(e.name,i,a)}},d={type:"field",validate:a("number")},h={type:"field",validate:i},p={type:"field",validate(e,t){if(!Array.isArray(t)||2!==t.length)throw Error(`"${e.name}" expects an array with 2 numeric elements`)}},f={type:"field",validate:a("boolean")},m={type:"field",validate:function(e,t){if(!("string"==typeof t||"number"==typeof t||t instanceof Date))throw Error(`"${e.name}" expects value to be comparable (i.e., string, number or date)`)}},g={type:"field"},v={type:"field",validate(e,t){if(!(t instanceof RegExp)&&"string"!=typeof t)throw Error(`"${e.name}" expects value to be a regular expression or a string that represents regular expression`)},parse(e,t,n){let i="string"==typeof t?new RegExp(t,n.query.$options||""):t;return new r.FieldCondition(e.name,n.field,i)}},y={type:"field",parse:()=>r.NULL_CONDITION},b={type:"document",validate:a("function")};var k=Object.freeze({__proto__:null,$and:s,$or:s,$nor:l,$not:u,$elemMatch:c,$size:d,$in:h,$nin:h,$all:h,$mod:p,$exists:f,$gte:m,$gt:m,$lt:m,$lte:m,$eq:g,$ne:g,$regex:v,$options:y,$where:b});class w extends r.ObjectQueryParser{constructor(e){super(e,{defaultOperatorName:"$eq",operatorToConditionName:e=>e.slice(1)})}parse(e,t){return t&&t.field?r.buildAnd(this.parseFieldOperators(t.field,e)):super.parse(e)}}Object.defineProperty(t,"defaultParsers",{enumerable:!0,get:function(){return r.defaultInstructionParsers}}),t.$all=h,t.$and=s,t.$elemMatch=c,t.$eq=g,t.$exists=f,t.$gt=m,t.$gte=m,t.$in=h,t.$lt=m,t.$lte=m,t.$mod=p,t.$ne=g,t.$nin=h,t.$nor=l,t.$not=u,t.$options=y,t.$or=s,t.$regex=v,t.$size=d,t.$where=b,t.MongoQueryParser=w,t.allParsingInstructions=k},85645:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(80909),i=n(73503),o=n(46401);function a(e){return e instanceof Date?e.getTime():e&&"function"==typeof e.toJSON?e.toJSON():e}let s=(e,t)=>o.compare(a(e),a(t));function l(e,t,n){let a=new i.MongoQueryParser(e),l=o.createJsInterpreter(t,Object.assign({compare:s},n));if(n&&n.forPrimitives){let e={field:r.ITSELF},t=a.parse;a.setParse(n=>t(n,e))}return r.createTranslatorFactory(a.parse,l)}let u=l(i.allParsingInstructions,o.allInterpreters),c=l(["$and","$or"].reduce((e,t)=>(e[t]=Object.assign({},e[t],{type:"field"}),e),Object.assign({},i.allParsingInstructions,{$nor:Object.assign({},i.allParsingInstructions.$nor,{type:"field",parse:i.defaultParsers.compound})})),o.allInterpreters,{forPrimitives:!0});Object.keys(r).forEach(function(e){"default"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}})}),Object.keys(i).forEach(function(e){"default"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}})}),Object.keys(o).forEach(function(e){"default"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}})}),t.createFactory=l,t.filter=u,t.guard=u,t.squire=c},92778:function(e){"use strict";function t(e){this.content=e}t.prototype={constructor:t,find:function(e){for(var t=0;t>1}},t.from=function(e){if(e instanceof t)return e;var n=[];if(e)for(var r in e)n.push(r,e[r]);return new t(n)},e.exports=t},25420:function(e,t,n){"use strict";function r(e){return(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})(e)}Object.defineProperty(t,"__esModule",{value:!0});var i=n(61563),o=n(1109),a=n(22765),s=function(e,t){return!e.selection.empty&&(t&&t(e.tr.deleteSelection().scrollIntoView()),!0)};function l(e,t){var n=e.selection.$cursor;return n&&(t?t.endOfTextblock("backward",e):!(n.parentOffset>0))?n:null}var u=function(e,t,n){var r=l(e,n);if(!r)return!1;var s=p(r);if(!s){var u=r.blockRange(),c=u&&i.liftTarget(u);return null!=c&&(t&&t(e.tr.lift(u,c).scrollIntoView()),!0)}var h=s.nodeBefore;if(!h.type.spec.isolating&&D(e,s,t))return!0;if(0==r.parent.content.size&&(d(h,"end")||a.NodeSelection.isSelectable(h))){var f=i.replaceStep(e.doc,r.before(),r.after(),o.Slice.empty);if(f&&f.slice.size=c-s)return!1;if(n){var p=e.tr.step(h);p.setSelection(a.TextSelection.create(p.doc,s)),n(p.scrollIntoView())}return!0}function d(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e;r;r="start"==t?r.firstChild:r.lastChild){if(r.isTextblock)return!0;if(n&&1!=r.childCount)break}return!1}var h=function(e,t,n){var r=e.selection,i=r.$head,o=r.empty,s=i;if(!o)return!1;if(i.parent.isTextblock){if(n?!n.endOfTextblock("backward",e):i.parentOffset>0)return!1;s=p(i)}var l=s&&s.nodeBefore;return!!(l&&a.NodeSelection.isSelectable(l))&&(t&&t(e.tr.setSelection(a.NodeSelection.create(e.doc,s.pos-l.nodeSize)).scrollIntoView()),!0)};function p(e){if(!e.parent.type.spec.isolating)for(var t=e.depth-1;t>=0;t--){if(e.index(t)>0)return e.doc.resolve(e.before(t+1));if(e.node(t).type.spec.isolating)break}return null}function f(e,t){var n=e.selection.$cursor;return n&&(t?t.endOfTextblock("forward",e):!(n.parentOffset=0;t--){var n=e.node(t);if(e.index(t)+11&&n.after()!=n.end(-1)){var r=n.before();if(i.canSplit(e.doc,r))return t&&t(e.tr.split(r).scrollIntoView()),!0}var o=n.blockRange(),a=o&&i.liftTarget(o);return null!=a&&(t&&t(e.tr.lift(o,a).scrollIntoView()),!0)};function _(e){return function(t,n){var r=t.selection,o=r.$from,s=r.$to;if(t.selection instanceof a.NodeSelection&&t.selection.node.isBlock)return!!(o.parentOffset&&i.canSplit(t.doc,o.pos))&&(n&&n(t.tr.split(o.pos).scrollIntoView()),!0);if(!o.parent.isBlock)return!1;if(n){var l=s.parentOffset==s.parent.content.size,u=t.tr;(t.selection instanceof a.TextSelection||t.selection instanceof a.AllSelection)&&u.deleteSelection();var c=0==o.depth?null:b(o.node(-1).contentMatchAt(o.indexAfter(-1))),d=e&&e(s.parent,l),h=d?[d]:l&&c?[{type:c}]:void 0,p=i.canSplit(u.doc,u.mapping.map(o.pos),1,h);if(!h&&!p&&i.canSplit(u.doc,u.mapping.map(o.pos),1,c?[{type:c}]:void 0)&&(c&&(h=[{type:c}]),p=!0),p&&(u.split(u.mapping.map(o.pos),1,h),!l&&!o.parentOffset&&o.parent.type!=c)){var f=u.mapping.map(o.before()),m=u.doc.resolve(f);c&&o.node(-1).canReplaceWith(m.index(),m.index()+1,c)&&u.setNodeMarkup(u.mapping.map(o.before()),c)}n(u.scrollIntoView())}return!0}}var S=_(),E=function(e,t){return t&&t(e.tr.setSelection(new a.AllSelection(e.doc))),!0};function D(e,t,n){var r,s,l,u,c,h=t.nodeBefore,p=t.nodeAfter;if(h.type.spec.isolating||p.type.spec.isolating)return!1;if(r=t.nodeBefore,s=t.nodeAfter,l=t.index(),r&&s&&r.type.compatibleContent(s.type)&&(!r.content.size&&t.parent.canReplace(l-1,l)?(n&&n(e.tr.delete(t.pos-r.nodeSize,t.pos).scrollIntoView()),!0):!!(t.parent.canReplace(l,l+1)&&(s.isTextblock||i.canJoin(e.doc,t.pos)))&&(n&&n(e.tr.clearIncompatible(t.pos,r.type,r.contentMatchAt(r.childCount)).join(t.pos).scrollIntoView()),!0)))return!0;var f=t.parent.canReplace(t.index(),t.index()+1);if(f&&(u=(c=h.contentMatchAt(h.childCount)).findWrapping(p.type))&&c.matchType(u[0]||p.type).validEnd){if(n){for(var m=t.pos+p.nodeSize,g=o.Fragment.empty,v=u.length-1;v>=0;v--)g=o.Fragment.from(u[v].create(null,g));g=o.Fragment.from(h.copy(g));var y=e.tr.step(new i.ReplaceAroundStep(t.pos-1,m,t.pos,m,new o.Slice(g,1,0),u.length,!0)),b=m+2*u.length;i.canJoin(y.doc,b)&&y.join(b),n(y.scrollIntoView())}return!0}var k=a.Selection.findFrom(t,1),w=k&&k.$from.blockRange(k.$to),x=w&&i.liftTarget(w);if(null!=x&&x>=t.depth)return n&&n(e.tr.lift(w,x).scrollIntoView()),!0;if(f&&d(p,"start",!0)&&d(h,"end")){for(var _=h,S=[];S.push(_),!_.isTextblock;)_=_.lastChild;for(var E=p,D=1;!E.isTextblock;E=E.firstChild)D++;if(_.canReplace(_.childCount,_.childCount,E.content)){if(n){for(var C=o.Fragment.empty,j=S.length-1;j>=0;j--)C=o.Fragment.from(S[j].copy(C));n(e.tr.step(new i.ReplaceAroundStep(t.pos-S.length,t.pos+p.nodeSize,t.pos+D,t.pos+p.nodeSize-D,new o.Slice(C,S.length,0),0,!0)).scrollIntoView())}return!0}}return!1}function C(e){return function(t,n){for(var r=t.selection,i=e<0?r.$from:r.$to,o=i.depth;i.node(o).isInline;){if(!o)return!1;o--}return!!i.node(o).isTextblock&&(n&&n(t.tr.setSelection(a.TextSelection.create(t.doc,e<0?i.start(o):i.end(o)))),!0)}}var j=C(-1),O=C(1);function T(){for(var e=arguments.length,t=Array(e),n=0;n-1}:t;return function(t,r,o){return e(t,r&&function(e){if(!e.isGeneric)return r(e);for(var t=[],o=0;o=0;b--)i.canJoin(e.doc,l[b])&&e.join(l[b]);r(e)},o)}},t.baseKeymap=N,t.chainCommands=T,t.createParagraphNear=w,t.deleteSelection=s,t.exitCode=k,t.joinBackward=u,t.joinDown=function(e,t){var n,r=e.selection;if(r instanceof a.NodeSelection){if(r.node.isTextblock||!i.canJoin(e.doc,r.to))return!1;n=r.to}else if(null==(n=i.joinPoint(e.doc,r.to,1)))return!1;return t&&t(e.tr.join(n).scrollIntoView()),!0},t.joinForward=m,t.joinTextblockBackward=function(e,t,n){var r=l(e,n);if(!r)return!1;var i=p(r);return!!i&&c(e,i,t)},t.joinTextblockForward=function(e,t,n){var r=f(e,n);if(!r)return!1;var i=v(r);return!!i&&c(e,i,t)},t.joinUp=function(e,t){var n,r=e.selection,o=r instanceof a.NodeSelection;if(o){if(r.node.isTextblock||!i.canJoin(e.doc,r.from))return!1;n=r.from}else if(null==(n=i.joinPoint(e.doc,r.from,-1)))return!1;if(t){var s=e.tr.join(n);o&&s.setSelection(a.NodeSelection.create(s.doc,n-e.doc.resolve(n).nodeBefore.nodeSize)),t(s.scrollIntoView())}return!0},t.lift=function(e,t){var n=e.selection,r=n.$from,o=n.$to,a=r.blockRange(o),s=a&&i.liftTarget(a);return null!=s&&(t&&t(e.tr.lift(a,s).scrollIntoView()),!0)},t.liftEmptyBlock=x,t.macBaseKeymap=M,t.newlineInCode=y,t.pcBaseKeymap=R,t.selectAll=E,t.selectNodeBackward=h,t.selectNodeForward=g,t.selectParentNode=function(e,t){var n,r=e.selection,i=r.$from,o=r.to,s=i.sharedDepth(o);return 0!=s&&(n=i.before(s),t&&t(e.tr.setSelection(a.NodeSelection.create(e.doc,n))),!0)},t.selectTextblockEnd=O,t.selectTextblockStart=j,t.setBlockType=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return function(n,r){for(var i=!1,o=0;o1&&void 0!==arguments[1]?arguments[1]:null;return function(n,i){var o=n.selection,a=o.empty,s=o.$cursor,l=o.ranges;if(a&&!s||!function(e,t,n){for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:null;return function(n,r){var o=n.selection,a=o.$from,s=o.$to,l=a.blockRange(s),u=l&&i.findWrapping(l,e,t);return!!u&&(r&&r(n.tr.wrap(l,u).scrollIntoView()),!0)}}},34331:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(78033),i=n(22765),o="undefined"!=typeof navigator&&/Mac|iP(hone|[oa]d)/.test(navigator.platform);function a(e,t){var n=!(arguments.length>2)||void 0===arguments[2]||arguments[2];return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),n&&t.shiftKey&&(e="Shift-"+e),e}function s(e){var t=function(e){var t=Object.create(null);for(var n in e)t[function(e){var t,n,r,i,a=e.split(/-(?!$)/),s=a[a.length-1];"Space"==s&&(s=" ");for(var l=0;l127)&&(i=r.base[n.keyCode])&&i!=o){var u=t[a(i,n)];if(u&&u(e.state,e.dispatch,e))return!0}}return!1}}t.keydownHandler=s,t.keymap=function(e){return new i.Plugin({props:{handleKeyDown:s(e)}})}},1109:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4?arguments[4]:void 0,o=0,a=0;ae&&!1!==n(s,r+a,i||null,o)&&s.content.size){var u=a+1;s.nodesBetween(Math.max(0,e-u),Math.min(s.content.size,t-u),n,r+u)}a=l}}},{key:"descendants",value:function(e){this.nodesBetween(0,this.size,e)}},{key:"textBetween",value:function(e,t,n,r){var i="",o=!0;return this.nodesBetween(e,t,function(a,s){var l=a.isText?a.text.slice(Math.max(e,s)-s,t-s):a.isLeaf?r?"function"==typeof r?r(a):r:a.type.spec.leafText?a.type.spec.leafText(a):"":"";a.isBlock&&(a.isLeaf&&l||a.isTextblock)&&n&&(o?o=!1:i+=n),i+=l},0),i}},{key:"append",value:function(t){if(!t.size)return this;if(!this.size)return t;var n=this.lastChild,r=t.firstChild,i=this.content.slice(),o=0;for(n.isText&&n.sameMarkup(r)&&(i[i.length-1]=n.withText(n.text+r.text),o=1);o1&&void 0!==arguments[1]?arguments[1]:this.size;if(0==t&&n==this.size)return this;var r=[],i=0;if(n>t)for(var o=0,a=0;at&&((an)&&(s=s.isText?s.cut(Math.max(0,t-a),Math.min(s.text.length,n-a)):s.cut(Math.max(0,t-a-1),Math.min(s.content.size,n-a-1))),r.push(s),i+=s.nodeSize),a=l}return new e(r,i)}},{key:"cutByIndex",value:function(t,n){return t==n?e.empty:0==t&&n==this.content.length?this:new e(this.content.slice(t,n))}},{key:"replaceChild",value:function(t,n){var r=this.content[t];if(r==n)return this;var i=this.content.slice(),o=this.size+n.nodeSize-r.nodeSize;return i[t]=n,new e(i,o)}},{key:"addToStart",value:function(t){return new e([t].concat(this.content),this.size+t.nodeSize)}},{key:"addToEnd",value:function(t){return new e(this.content.concat(t),this.size+t.nodeSize)}},{key:"eq",value:function(e){if(this.content.length!=e.content.length)return!1;for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:0;return function e(t,n,r){for(var i=0;;i++){if(i==t.childCount||i==n.childCount)return t.childCount==n.childCount?null:r;var o=t.child(i),a=n.child(i);if(o==a){r+=o.nodeSize;continue}if(!o.sameMarkup(a))return r;if(o.isText&&o.text!=a.text){for(var s=0;o.text[s]==a.text[s];s++)r++;return r}if(o.content.size||a.content.size){var l=e(o.content,a.content,r+1);if(null!=l)return l}r+=o.nodeSize}}(this,e,t)}},{key:"findDiffEnd",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.size,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.size;return function e(t,n,r,i){for(var o=t.childCount,a=n.childCount;;){if(0==o||0==a)return o==a?null:{a:r,b:i};var s=t.child(--o),l=n.child(--a),u=s.nodeSize;if(s==l){r-=u,i-=u;continue}if(!s.sameMarkup(l))return{a:r,b:i};if(s.isText&&s.text!=l.text){for(var c=0,d=Math.min(s.text.length,l.text.length);c1&&void 0!==arguments[1]?arguments[1]:-1;if(0==e)return b(0,e);if(e==this.size)return b(this.content.length,e);if(e>this.size||e<0)throw RangeError("Position ".concat(e," outside of fragment (").concat(this,")"));for(var n=0,r=0;;n++){var i=r+this.child(n).nodeSize;if(i>=e){if(i==e||t>0)return b(n+1,i);return b(n,r)}r=i}}},{key:"toString",value:function(){return"<"+this.toStringInner()+">"}},{key:"toStringInner",value:function(){return this.content.join(", ")}},{key:"toJSON",value:function(){return this.content.length?this.content.map(function(e){return e.toJSON()}):null}}],[{key:"fromJSON",value:function(t,n){if(!n)return e.empty;if(!Array.isArray(n))throw RangeError("Invalid input for Fragment.fromJSON");return new e(n.map(t.nodeFromJSON))}},{key:"fromArray",value:function(t){if(!t.length)return e.empty;for(var n,r=0,i=0;ithis.type.rank&&(t||(t=e.slice(0,r)),t.push(this),n=!0),t&&t.push(i)}}return t||(t=e.slice()),n||t.push(this),t}},{key:"removeFromSet",value:function(e){for(var t=0;t0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}}],[{key:"fromJSON",value:function(t,n){if(!n)return e.empty;var r=n.openStart||0,i=n.openEnd||0;if("number"!=typeof r||"number"!=typeof i)throw RangeError("Invalid input for Slice.fromJSON");return new e(v.fromJSON(t,n.content),r,i)}},{key:"maxOpen",value:function(t){for(var n=!(arguments.length>1)||void 0===arguments[1]||arguments[1],r=0,i=0,o=t.firstChild;o&&!o.isLeaf&&(n||!o.type.spec.isolating);o=o.firstChild)r++;for(var a=t.lastChild;a&&!a.isLeaf&&(n||!a.type.spec.isolating);a=a.lastChild)i++;return new e(t,r,i)}}]),e}();function S(e,t){if(!t.type.compatibleContent(e.type))throw new x("Cannot join "+t.type.name+" onto "+e.type.name)}function E(e,t,n){var r=e.node(n);return S(r,t.node(n)),r}function D(e,t){var n=t.length-1;n>=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function C(e,t,n,r){var i=(t||e).node(n),o=0,a=t?t.index(n):i.childCount;e&&(o=e.index(n),e.depth>n?o++:e.textOffset&&(D(e.nodeAfter,r),o++));for(var s=o;sn&&D(j(E(e,t,n+1),O(e,t,n+1)),r),C(t,null,n,r),new v(r)}_.empty=new _(v.empty,0,0);var T=function(){function e(t,n,r){p(this,e),this.pos=t,this.path=n,this.parentOffset=r,this.depth=n.length/3-1}return m(e,[{key:"resolveDepth",value:function(e){return null==e?this.depth:e<0?this.depth+e:e}},{key:"parent",get:function(){return this.node(this.depth)}},{key:"doc",get:function(){return this.node(0)}},{key:"node",value:function(e){return this.path[3*this.resolveDepth(e)]}},{key:"index",value:function(e){return this.path[3*this.resolveDepth(e)+1]}},{key:"indexAfter",value:function(e){return e=this.resolveDepth(e),this.index(e)+(e!=this.depth||this.textOffset?1:0)}},{key:"start",value:function(e){return 0==(e=this.resolveDepth(e))?0:this.path[3*e-1]+1}},{key:"end",value:function(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}},{key:"before",value:function(e){if(!(e=this.resolveDepth(e)))throw RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]}},{key:"after",value:function(e){if(!(e=this.resolveDepth(e)))throw RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]+this.path[3*e].nodeSize}},{key:"textOffset",get:function(){return this.pos-this.path[this.path.length-1]}},{key:"nodeAfter",get:function(){var e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;var n=this.pos-this.path[this.path.length-1],r=e.child(t);return n?e.child(t).cut(n):r}},{key:"nodeBefore",get:function(){var e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):0==e?null:this.parent.child(e-1)}},{key:"posAtIndex",value:function(e,t){t=this.resolveDepth(t);for(var n=this.path[3*t],r=0==t?0:this.path[3*t-1]+1,i=0;i0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}},{key:"blockRange",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this,t=arguments.length>1?arguments[1]:void 0;if(e.pos=0;n--)if(e.pos<=this.end(n)&&(!t||t(this.node(n))))return new M(this,e,n);return null}},{key:"sameParent",value:function(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}},{key:"max",value:function(e){return e.pos>this.pos?e:this}},{key:"min",value:function(e){return e.pos=0&&n<=t.content.size))throw RangeError("Position "+n+" out of range");for(var r=[],i=0,o=n,a=t;;){var s=a.content.findIndex(o),l=s.index,u=s.offset,c=o-u;if(r.push(a,l,i+u),!c||(a=a.child(l)).isText)break;o=c-1,i+=u+1}return new e(n,r,o)}},{key:"resolveCached",value:function(t,n){for(var r=0;r3&&void 0!==arguments[3]?arguments[3]:w.none;p(this,e),this.type=t,this.attrs=n,this.marks=i,this.content=r||v.empty}return m(e,[{key:"nodeSize",get:function(){return this.isLeaf?1:2+this.content.size}},{key:"childCount",get:function(){return this.content.childCount}},{key:"child",value:function(e){return this.content.child(e)}},{key:"maybeChild",value:function(e){return this.content.maybeChild(e)}},{key:"forEach",value:function(e){this.content.forEach(e)}},{key:"nodesBetween",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;this.content.nodesBetween(e,t,n,r,this)}},{key:"descendants",value:function(e){this.nodesBetween(0,this.content.size,e)}},{key:"textContent",get:function(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}},{key:"textBetween",value:function(e,t,n,r){return this.content.textBetween(e,t,n,r)}},{key:"firstChild",get:function(){return this.content.firstChild}},{key:"lastChild",get:function(){return this.content.lastChild}},{key:"eq",value:function(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}},{key:"sameMarkup",value:function(e){return this.hasMarkup(e.type,e.attrs,e.marks)}},{key:"hasMarkup",value:function(e,t,n){return this.type==e&&k(this.attrs,t||e.defaultAttrs||F)&&w.sameSet(this.marks,n||w.none)}},{key:"copy",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return t==this.content?this:new e(this.type,this.attrs,t,this.marks)}},{key:"mark",value:function(t){return t==this.marks?this:new e(this.type,this.attrs,this.content,t)}},{key:"cut",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.content.size;return 0==e&&t==this.content.size?this:this.copy(this.content.cut(e,t))}},{key:"slice",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.content.size,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e==t)return _.empty;var r=this.resolve(e),i=this.resolve(t),o=n?0:r.sharedDepth(t),a=r.start(o),s=r.node(o).content.cut(r.pos-a,i.pos-a);return new _(s,r.depth-o,i.depth-o)}},{key:"replace",value:function(e,t,n){return function(e,t,n){if(n.openStart>e.depth)throw new x("Inserted content deeper than insertion position");if(e.depth-n.openStart!=t.depth-n.openEnd)throw new x("Inconsistent open depths");return function e(t,n,r,i){var o=t.index(i),a=t.node(i);if(o==n.index(i)&&i=0;i--)r=t.node(i).copy(v.from(r));return{start:r.resolveNoCache(e.openStart+n),end:r.resolveNoCache(r.content.size-e.openEnd-n)}}(r,t);return j(a,function e(t,n,r,i,o){var a=t.depth>o&&E(t,n,o+1),s=i.depth>o&&E(r,i,o+1),l=[];return C(null,t,o,l),a&&s&&n.index(o)==r.index(o)?(S(a,s),D(j(a,e(t,n,r,i,o+1)),l)):(a&&D(j(a,O(t,n,o+1)),l),C(n,r,o,l),s&&D(j(s,O(r,i,o+1)),l)),C(i,null,o,l),new v(l)}(t,l.start,l.end,n,i))}var u=t.parent,c=u.content;return j(u,c.cut(0,t.parentOffset).append(r.content).append(c.cut(n.parentOffset)))}(e,t,n,0)}(this.resolve(e),this.resolve(t),n)}},{key:"nodeAt",value:function(e){for(var t=this;;){var n=t.content.findIndex(e),r=n.index,i=n.offset;if(!(t=t.maybeChild(r)))return null;if(i==e||t.isText)return t;e-=i+1}}},{key:"childAfter",value:function(e){var t=this.content.findIndex(e),n=t.index,r=t.offset;return{node:this.content.maybeChild(n),index:n,offset:r}}},{key:"childBefore",value:function(e){if(0==e)return{node:null,index:0,offset:0};var t=this.content.findIndex(e),n=t.index,r=t.offset;if(re&&this.nodesBetween(e,t,function(e){return n.isInSet(e.marks)&&(r=!0),!r}),r}},{key:"isBlock",get:function(){return this.type.isBlock}},{key:"isTextblock",get:function(){return this.type.isTextblock}},{key:"inlineContent",get:function(){return this.type.inlineContent}},{key:"isInline",get:function(){return this.type.isInline}},{key:"isText",get:function(){return this.type.isText}},{key:"isLeaf",get:function(){return this.type.isLeaf}},{key:"isAtom",get:function(){return this.type.isAtom}},{key:"toString",value:function(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);var e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),L(this.marks,e)}},{key:"contentMatchAt",value:function(e){var t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw Error("Called contentMatchAt on a node with invalid content");return t}},{key:"canReplace",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:v.empty,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:n.childCount,o=this.contentMatchAt(e).matchFragment(n,r,i),a=o&&o.matchFragment(this.content,t);if(!a||!a.validEnd)return!1;for(var s=r;s0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.text.length;return 0==e&&t==this.text.length?this:this.withText(this.text.slice(e,t))}},{key:"eq",value:function(e){return this.sameMarkup(e)&&this.text==e.text}},{key:"toJSON",value:function(){var e=i(d(n.prototype),"toJSON",this).call(this);return e.text=this.text,e}}]),n}(N);function L(e,t){for(var n=e.length-1;n>=0;n--)t=e[n].type.name+"("+t+")";return t}var B=function(){function e(t){p(this,e),this.validEnd=t,this.next=[],this.wrapCache=[]}return m(e,[{key:"matchType",value:function(e){for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.childCount,r=this,i=t;r&&i1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=[this];return function i(o,a){var s=o.matchFragment(e,n);if(s&&(!t||s.validEnd))return v.from(a.map(function(e){return e.createAndFill()}));for(var l=0;l=this.next.length)throw RangeError("There's no ".concat(e,"th edge in this content match"));return this.next[e]}},{key:"toString",value:function(){var e=[];return function t(n){e.push(n);for(var r=0;r"+e.indexOf(t.next[i].next);return r}).join("\n")}}],[{key:"parse",value:function(t,n){var r,i,o=new z(t,n);if(null==o.next)return e.empty;var a=function e(t){var n=[];do n.push(function(t){var n=[];do n.push(function(t){for(var n=function(t){if(t.eat("(")){var n=e(t);return t.eat(")")||t.err("Missing closing paren"),n}if(/\W/.test(t.next))t.err("Unexpected token '"+t.next+"'");else{var r=(function(e,t){var n=e.nodeTypes,r=n[t];if(r)return[r];var i=[];for(var o in n){var a=n[o];a.groups.indexOf(t)>-1&&i.push(a)}return 0==i.length&&e.err("No node type or group '"+t+"' found"),i})(t,t.next).map(function(e){return null==t.inline?t.inline=e.isInline:t.inline!=e.isInline&&t.err("Mixing inline and block content"),{type:"name",value:e}});return t.pos++,1==r.length?r[0]:{type:"choice",exprs:r}}}(t);;)if(t.eat("+"))n={type:"plus",expr:n};else if(t.eat("*"))n={type:"star",expr:n};else if(t.eat("?"))n={type:"opt",expr:n};else if(t.eat("{"))n=function(e,t){var n=U(e),r=n;return e.eat(",")&&(r="}"!=e.next?U(e):-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:t}}(t,n);else break;return n}(t));while(t.next&&")"!=t.next&&"|"!=t.next);return 1==n.length?n[0]:{type:"seq",exprs:n}}(t));while(t.eat("|"));return 1==n.length?n[0]:{type:"choice",exprs:n}}(o);o.next&&o.err("Unexpected trailing text");var s=(r=function(e){var t=[[]];return i(function e(t,o){if("choice"==t.type)return t.exprs.reduce(function(t,n){return t.concat(e(n,o))},[]);if("seq"==t.type)for(var a=0;;a++){var s=e(t.exprs[a],o);if(a==t.exprs.length-1)return s;i(s,o=n())}else if("star"==t.type){var l=n();return r(o,l),i(e(t.expr,l),l),[r(l)]}else if("plus"==t.type){var u=n();return i(e(t.expr,o),u),i(e(t.expr,u),u),[r(u)]}else if("opt"==t.type)return[r(o)].concat(e(t.expr,o));else if("range"==t.type){for(var c=o,d=0;d-1),a=0;a0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;if(this.isText)throw Error("NodeType.create can't construct text nodes");return new N(this,this.computeAttrs(e),v.from(t),w.setFrom(n))}},{key:"createChecked",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;return t=v.from(t),this.checkContent(t),new N(this,this.computeAttrs(e),t,w.setFrom(n))}},{key:"createAndFill",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;if(e=this.computeAttrs(e),(t=v.from(t)).size){var r=this.contentMatch.fillBefore(t);if(!r)return null;t=r.append(t)}var i=this.contentMatch.matchFragment(t),o=i&&i.fillBefore(v.empty,!0);return o?new N(this,e,t.append(o),w.setFrom(n)):null}},{key:"validContent",value:function(e){var t=this.contentMatch.matchFragment(e);if(!t||!t.validEnd)return!1;for(var n=0;n-1}},{key:"allowsMarks",value:function(e){if(null==this.markSet)return!0;for(var t=0;t0&&void 0!==arguments[0]?arguments[0]:null;return!e&&this.instance?this.instance:new w(this,V(this.attrs,e))}},{key:"removeFromSet",value:function(e){for(var t=0;t-1}}],[{key:"compile",value:function(t,n){var r=Object.create(null),i=0;return t.forEach(function(t,o){return r[t]=new e(t,i++,n,o)}),r}}]),e}(),K=function(){function e(t){p(this,e),this.linebreakReplacement=null,this.cached=Object.create(null);var n=this.spec={};for(var r in t)n[r]=t[r];n.nodes=g.from(t.nodes),n.marks=g.from(t.marks||{}),this.nodes=G.compile(this.spec.nodes,this),this.marks=Z.compile(this.spec.marks,this);var i=Object.create(null);for(var o in this.nodes){if(o in this.marks)throw RangeError(o+" can not be both a node and a mark");var a=this.nodes[o],s=a.spec.content||"",l=a.spec.marks;if(a.contentMatch=i[s]||(i[s]=B.parse(s,this.nodes)),a.inlineContent=a.contentMatch.inlineContent,a.spec.linebreakReplacement){if(this.linebreakReplacement)throw RangeError("Multiple linebreak nodes defined");if(!a.isInline||!a.isLeaf)throw RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=a}a.markSet="_"==l?null:l?J(this,l.split(" ")):""!=l&&a.inlineContent?null:[]}for(var u in this.marks){var c=this.marks[u],d=c.spec.excludes;c.excluded=null==d?[c]:""==d?[]:J(this,d.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}return m(e,[{key:"node",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;if("string"==typeof e)e=this.nodeType(e);else if(e instanceof G){if(e.schema!=this)throw RangeError("Node type from different schema used ("+e.name+")")}else throw RangeError("Invalid node type: "+e);return e.createChecked(t,n,r)}},{key:"text",value:function(e,t){var n=this.nodes.text;return new I(n,n.defaultAttrs,e,w.setFrom(t))}},{key:"mark",value:function(e,t){return"string"==typeof e&&(e=this.marks[e]),e.create(t)}},{key:"nodeFromJSON",value:function(e){return N.fromJSON(this,e)}},{key:"markFromJSON",value:function(e){return w.fromJSON(this,e)}},{key:"nodeType",value:function(e){var t=this.nodes[e];if(!t)throw RangeError("Unknown node type: "+e);return t}}]),e}();function J(e,t){for(var n=[],r=0;r-1)&&n.push(a=l)}if(!a)throw SyntaxError("Unknown mark type: '"+t[r]+"'")}return n}var X=function(){function e(t,n){var r=this;p(this,e),this.schema=t,this.rules=n,this.tags=[],this.styles=[],n.forEach(function(e){null!=e.tag?r.tags.push(e):null!=e.style&&r.styles.push(e)}),this.normalizeLists=!this.tags.some(function(e){if(!/^(ul|ol)\b/.test(e.tag)||!e.node)return!1;var n=t.nodes[e.node];return n.contentMatch.matchType(n)})}return m(e,[{key:"parse",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new ei(this,t,!1);return n.addAll(e,t.from,t.to),n.finish()}},{key:"parseSlice",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new ei(this,t,!0);return n.addAll(e,t.from,t.to),_.maxOpen(n.finish())}},{key:"matchTag",value:function(e,t,n){for(var r=n?this.tags.indexOf(n)+1:0;re.length)||61==a.charCodeAt(e.length)&&a.slice(e.length+1)==t)){if(o.getAttrs){var s=o.getAttrs(t);if(!1===s)continue;o.attrs=s||void 0}return o}}}}],[{key:"schemaRules",value:function(e){var t=[];function n(e){for(var n=null==e.priority?50:e.priority,r=0;r=0;t--)if(e.eq(this.stashMarks[t]))return this.stashMarks.splice(t,1)[0]}},{key:"applyPending",value:function(e){for(var t=0,n=this.pendingMarks;to.indexOf(s)&&e(s))return!0}}(n.contentMatch))return{v:!0}}())&&n)return n.v}(r.type,e))&&!r.isInSet(this.activeMarks)&&(this.activeMarks=r.addToSet(this.activeMarks),this.pendingMarks=r.removeFromSet(this.pendingMarks))}}},{key:"inlineContext",value:function(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!Q.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}]),e}(),ei=function(){function e(t,n,r){p(this,e),this.parser=t,this.options=n,this.isOpen=r,this.open=0;var i,o=n.topNode,a=en(null,n.preserveWhitespace,0)|(r?4:0);i=o?new er(o.type,o.attrs,w.none,w.none,!0,n.topMatch||o.type.contentMatch,a):r?new er(null,null,w.none,w.none,!0,null,a):new er(t.schema.topNodeType,null,w.none,w.none,!0,null,a),this.nodes=[i],this.find=n.findPositions,this.needsBlock=!1}return m(e,[{key:"top",get:function(){return this.nodes[this.open]}},{key:"addDOM",value:function(e){3==e.nodeType?this.addTextNode(e):1==e.nodeType&&this.addElement(e)}},{key:"withStyleRules",value:function(e,t){var n=e.style;if(!n||!n.length)return t();var i=this.readStyles(e.style);if(i){for(var o=function(e){if(Array.isArray(e))return e}(i)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(i,2)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}}(i,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),a=o[0],s=o[1],l=this.top,u=0;u=0;r--){var i=this.nodes[r],o=i.findWrapping(e);if(o&&(!t||t.length>o.length)&&(t=o,n=i,!o.length)||i.solid)break}if(!t)return!1;this.sync(n);for(var a=0;a1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0;this.closeExtra();var i=this.top;i.applyPending(e),i.match=i.match&&i.match.matchType(e);var o=en(e,r,i.options);4&i.options&&0==i.content.length&&(o|=4),this.nodes.push(new er(e,t,i.activeMarks,i.pendingMarks,n,null,o)),this.open++}},{key:"closeExtra",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.nodes.length-1;if(t>this.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}}},{key:"finish",value:function(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)}},{key:"sync",value:function(e){for(var t=this.open;t>=0;t--)if(this.nodes[t]==e)return this.open=t,!0;return!1}},{key:"currentPos",get:function(){this.closeExtra();for(var e=0,t=this.open;t>=0;t--){for(var n=this.nodes[t].content,r=n.length-1;r>=0;r--)e+=n[r].nodeSize;t&&e++}return e}},{key:"findAtPoint",value:function(e,t){if(this.find)for(var n=0;n-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);var n=e.split("/"),r=this.options.context,i=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),o=-(r?r.depth+1:0)+(i?0:1);return function e(a,s){for(;a>=0;a--){var l=n[a];if(""==l){if(a==n.length-1||0==a)continue;for(;s>=o;s--)if(e(a-1,s))return!0;return!1}var u=s>0||0==s&&i?t.nodes[s].type:r&&s>=o?r.node(s-o).type:null;if(!u||u.name!=l&&-1==u.groups.indexOf(l))return!1;s--}return!0}(n.length-1,this.open)}},{key:"textblockFromContext",value:function(){var e=this.options.context;if(e)for(var t=e.depth;t>=0;t--){var n=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(n&&n.isTextblock&&n.defaultAttrs)return n}for(var r in this.parser.schema.nodes){var i=this.parser.schema.nodes[r];if(i.isTextblock&&i.defaultAttrs)return i}}},{key:"addPendingMark",value:function(e){var t=function(e,t){for(var n=0;n=0;n--){var r=this.nodes[n];if(r.pendingMarks.lastIndexOf(e)>-1)r.pendingMarks=e.removeFromSet(r.pendingMarks);else{r.activeMarks=e.removeFromSet(r.activeMarks);var i=r.popFromStashMark(e);i&&r.type&&r.type.allowsMarkType(i.type)&&(r.activeMarks=i.addToSet(r.activeMarks))}if(r==t)break}}}]),e}();function eo(e){var t={};for(var n in e)t[n]=e[n];return t}var ea=function(){function e(t,n){p(this,e),this.nodes=t,this.marks=n}return m(e,[{key:"serializeFragment",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;r||(r=el(n).createDocumentFragment());var i=r,o=[];return e.forEach(function(e){if(o.length||e.marks.length){for(var r=0,a=0;r1&&void 0!==arguments[1]?arguments[1]:{},n=this.serializeNodeInner(e,t),r=e.marks.length-1;r>=0;r--){var i=this.serializeMark(e.marks[r],e.isInline,t);i&&((i.contentDOM||i.dom).appendChild(n),n=i.dom)}return n}},{key:"serializeMark",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=this.marks[t.type.name];return i&&e.renderSpec(el(r),i(t,n))}}],[{key:"renderSpec",value:function(t,n){var r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if("string"==typeof n)return{dom:t.createTextNode(n)};if(null!=n.nodeType)return{dom:n};if(n.dom&&null!=n.dom.nodeType)return n;var o=n[0],a=o.indexOf(" ");a>0&&(i=o.slice(0,a),o=o.slice(a+1));var s=i?t.createElementNS(i,o):t.createElement(o),l=n[1],u=1;if(l&&"object"==h(l)&&null==l.nodeType&&!Array.isArray(l)){for(var c in u=2,l)if(null!=l[c]){var d=c.indexOf(" ");d>0?s.setAttributeNS(c.slice(0,d),c.slice(d+1),l[c]):s.setAttribute(c,l[c])}}for(var p=u;pu)throw RangeError("Content hole must be the only child of its parent node");return{dom:s,contentDOM:s}}var m=e.renderSpec(t,f,i),g=m.dom,v=m.contentDOM;if(s.appendChild(g),v){if(r)throw RangeError("Multiple content holes");r=v}}return{dom:s,contentDOM:r}}},{key:"fromSchema",value:function(t){return t.cached.domSerializer||(t.cached.domSerializer=new e(this.nodesFromSchema(t),this.marksFromSchema(t)))}},{key:"nodesFromSchema",value:function(e){var t=es(e.nodes);return t.text||(t.text=function(e){return e.text}),t}},{key:"marksFromSchema",value:function(e){return es(e.marks)}}]),e}();function es(e){var t={};for(var n in e){var r=e[n].spec.toDOM;r&&(t[n]=r)}return t}function el(e){return e.document||window.document}t.ContentMatch=B,t.DOMParser=X,t.DOMSerializer=ea,t.Fragment=v,t.Mark=w,t.MarkType=Z,t.Node=N,t.NodeRange=M,t.NodeType=G,t.ReplaceError=x,t.ResolvedPos=T,t.Schema=K,t.Slice=_},151:function(e,t,n){"use strict";var r=n(61563),i=n(1109),o=n(22765),a=["ol",0],s=["ul",0],l=["li",0],u={attrs:{order:{default:1}},parseDOM:[{tag:"ol",getAttrs:function(e){return{order:e.hasAttribute("start")?+e.getAttribute("start"):1}}}],toDOM:function(e){return 1==e.attrs.order?a:["ol",{start:e.attrs.order},0]}},c={parseDOM:[{tag:"ul"}],toDOM:function(){return s}},d={parseDOM:[{tag:"li"}],toDOM:function(){return l},defining:!0};function h(e,t){var n={};for(var r in e)n[r]=e[r];for(var i in t)n[i]=t[i];return n}function p(e,t){return function(n,a){var s=n.selection,l=s.$from,u=s.$to,c=s.node;if(c&&c.isBlock||l.depth<2||!l.sameParent(u))return!1;var d=l.node(-1);if(d.type!=e)return!1;if(0==l.parent.content.size&&l.node(-1).childCount==l.indexAfter(-1)){if(3==l.depth||l.node(-3).type!=e||l.index(-2)!=l.node(-2).childCount-1)return!1;if(a){for(var h=i.Fragment.empty,p=l.index(-1)?1:l.index(-2)?2:3,f=l.depth-p;f>=l.depth-3;f--)h=i.Fragment.from(l.node(f).copy(h));var m=l.indexAfter(-1)-1)return!1;e.isTextblock&&0==e.content.size&&(y=t+1)}),y>-1&&v.setSelection(o.Selection.near(v.doc.resolve(y))),a(v.scrollIntoView())}return!0}var b=u.pos==l.end()?d.contentMatchAt(0).defaultType:null,k=n.tr.delete(l.pos,u.pos),w=b?[t?{type:e,attrs:t}:null,{type:b}]:void 0;return!!r.canSplit(k.doc,l.pos,2,w)&&(a&&a(k.split(l.pos,2,w).scrollIntoView()),!0)}}t.addListNodes=function(e,t,n){return e.append({ordered_list:h(u,{content:"list_item+",group:n}),bullet_list:h(c,{content:"list_item+",group:n}),list_item:h(d,{content:t})})},t.bulletList=c,t.liftListItem=function(e){return function(t,n){var o=t.selection,a=o.$from,s=o.$to,l=a.blockRange(s,function(t){return t.childCount>0&&t.firstChild.type==e});return!!l&&(!n||(a.node(l.depth-1).type==e?function(e,t,n,o){var a=e.tr,s=o.end,l=o.$to.end(o.depth);su;l--)s-=a.child(l).nodeSize,o.delete(s-1,s+1);var c=o.doc.resolve(n.start),d=c.nodeAfter;if(o.mapping.map(n.end)!=n.start+c.nodeAfter.nodeSize)return!1;var h=0==n.startIndex,p=n.endIndex==a.childCount,f=c.node(-1),m=c.index(-1);if(!f.canReplace(m+(h?0:1),m+1,d.content.append(p?i.Fragment.empty:i.Fragment.from(a))))return!1;var g=c.pos,v=g+d.nodeSize;return o.step(new r.ReplaceAroundStep(g-(h?1:0),v+(p?1:0),g+1,v-1,new i.Slice((h?i.Fragment.empty:i.Fragment.from(a.copy(i.Fragment.empty))).append(p?i.Fragment.empty:i.Fragment.from(a.copy(i.Fragment.empty))),h?0:1,p?0:1),h?0:1)),t(o.scrollIntoView()),!0}(t,n,l)))}},t.listItem=d,t.orderedList=u,t.sinkListItem=function(e){return function(t,n){var o=t.selection,a=o.$from,s=o.$to,l=a.blockRange(s,function(t){return t.childCount>0&&t.firstChild.type==e});if(!l)return!1;var u=l.startIndex;if(0==u)return!1;var c=l.parent,d=c.child(u-1);if(d.type!=e)return!1;if(n){var h=d.lastChild&&d.lastChild.type==c.type,p=i.Fragment.from(h?e.create():null),f=new i.Slice(i.Fragment.from(e.create(null,i.Fragment.from(c.type.create(null,p)))),h?3:1,0),m=l.start,g=l.end;n(t.tr.step(new r.ReplaceAroundStep(m-(h?3:1),g,m,g,f,1,!0)).scrollIntoView())}return!0}},t.splitListItem=p,t.splitListItemKeepMarks=function(e,t){var n=p(e,t);return function(e,t){return n(e,t&&function(n){var r=e.storedMarks||e.selection.$to.parentOffset&&e.selection.$from.marks();r&&n.ensureMarks(r),t(n)})}},t.wrapInList=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return function(n,o){var a=n.selection,s=a.$from,l=a.$to,u=s.blockRange(l),c=!1,d=u;if(!u)return!1;if(u.depth>=2&&s.node(u.depth-1).type.compatibleContent(e)&&0==u.startIndex){if(0==s.index(u.depth-1))return!1;var h=n.doc.resolve(u.start-2);d=new i.NodeRange(h,h,u.depth),u.endIndex=0;l--)s=i.Fragment.from(n[l].type.create(n[l].attrs,s));e.step(new r.ReplaceAroundStep(t.start-(o?2:0),t.end,t.start,t.end,new i.Slice(s,0,0),n.length,!0));for(var u=0,c=0;c1&&void 0!==arguments[1]?arguments[1]:h.Slice.empty,n=t.content.lastChild,r=null,i=0;i2&&void 0!==arguments[2]&&arguments[2],r=e.parent.inlineContent?new b(e):E(e.node(0),e.parent,e.pos,e.index(),t,n);if(r)return r;for(var i=e.depth-1;i>=0;i--){var o=t<0?E(e.node(0),e.node(i),e.before(i+1),e.index(i),t,n):E(e.node(0),e.node(i),e.after(i+1),e.index(i)+1,t,n);if(o)return o}return null}},{key:"near",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return this.findFrom(e,t)||this.findFrom(e,-t)||new _(e.node(0))}},{key:"atStart",value:function(e){return E(e,e,0,0,1)||new _(e)}},{key:"atEnd",value:function(e){return E(e,e,e.content.size,e.childCount,-1)||new _(e)}},{key:"fromJSON",value:function(e,t){if(!t||!t.type)throw RangeError("Invalid input for Selection.fromJSON");var n=f[t.type];if(!n)throw RangeError("No selection type ".concat(t.type," defined"));return n.fromJSON(e,t)}},{key:"jsonID",value:function(e,t){if(e in f)throw RangeError("Duplicate use of selection JSON ID "+e);return f[e]=t,t.prototype.jsonID=e,t}}]),e}();m.prototype.visible=!0;var g=d(function e(t,n){u(this,e),this.$from=t,this.$to=n}),v=!1;function y(e){v||e.parent.inlineContent||(v=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+e.parent.type.name+")"))}var b=function(e){o(n,e);var t=s(n);function n(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return u(this,n),y(e),y(r),t.call(this,e,r)}return d(n,[{key:"$cursor",get:function(){return this.$anchor.pos==this.$head.pos?this.$head:null}},{key:"map",value:function(e,t){var r=e.resolve(t.map(this.head));if(!r.parent.inlineContent)return m.near(r);var i=e.resolve(t.map(this.anchor));return new n(i.parent.inlineContent?i:r,r)}},{key:"replace",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h.Slice.empty;if(i(l(n.prototype),"replace",this).call(this,e,t),t==h.Slice.empty){var r=this.$from.marksAcross(this.$to);r&&e.ensureMarks(r)}}},{key:"eq",value:function(e){return e instanceof n&&e.anchor==this.anchor&&e.head==this.head}},{key:"getBookmark",value:function(){return new k(this.anchor,this.head)}},{key:"toJSON",value:function(){return{type:"text",anchor:this.anchor,head:this.head}}}],[{key:"fromJSON",value:function(e,t){if("number"!=typeof t.anchor||"number"!=typeof t.head)throw RangeError("Invalid input for TextSelection.fromJSON");return new n(e.resolve(t.anchor),e.resolve(t.head))}},{key:"create",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,r=e.resolve(t);return new this(r,n==t?r:e.resolve(n))}},{key:"between",value:function(e,t,r){var i=e.pos-t.pos;if((!r||i)&&(r=i>=0?1:-1),!t.parent.inlineContent){var o=m.findFrom(t,r,!0)||m.findFrom(t,-r,!0);if(!o)return m.near(t,r);t=o.$head}return e.parent.inlineContent||(0==i?e=t:(e=(m.findFrom(e,-r,!0)||m.findFrom(e,r,!0)).$anchor).pos1&&void 0!==arguments[1]?arguments[1]:h.Slice.empty;if(t==h.Slice.empty){e.delete(0,e.doc.content.size);var r=m.atStart(e.doc);r.eq(e.selection)||e.setSelection(r)}else i(l(n.prototype),"replace",this).call(this,e,t)}},{key:"toJSON",value:function(){return{type:"all"}}},{key:"map",value:function(e){return new n(e)}},{key:"eq",value:function(e){return e instanceof n}},{key:"getBookmark",value:function(){return S}}],[{key:"fromJSON",value:function(e){return new n(e)}}]),n}(m);m.jsonID("all",_);var S={map:function(){return this},resolve:function(e){return new _(e)}};function E(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(t.inlineContent)return b.create(e,n);for(var a=r-(i>0?0:1);i>0?a=0;a+=i){var s=t.child(a);if(s.isAtom){if(!o&&w.isSelectable(s))return w.create(e,n-(i<0?s.nodeSize:0))}else{var l=E(e,s,n+i,i<0?s.childCount:0,i,o);if(l)return l}n+=s.nodeSize*i}return null}function D(e,t,n){var r,i=e.steps.length-1;if(!(i0}},{key:"setStoredMarks",value:function(e){return this.storedMarks=e,this.updated|=2,this}},{key:"ensureMarks",value:function(e){return h.Mark.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}},{key:"addStoredMark",value:function(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}},{key:"removeStoredMark",value:function(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}},{key:"storedMarksSet",get:function(){return(2&this.updated)>0}},{key:"addStep",value:function(e,t){i(l(n.prototype),"addStep",this).call(this,e,t),this.updated=-3&this.updated,this.storedMarks=null}},{key:"setTime",value:function(e){return this.time=e,this}},{key:"replaceSelection",value:function(e){return this.selection.replace(this,e),this}},{key:"replaceSelectionWith",value:function(e){var t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],n=this.selection;return t&&(e=e.mark(this.storedMarks||(n.empty?n.$from.marks():n.$from.marksAcross(n.$to)||h.Mark.none))),n.replaceWith(this,e),this}},{key:"deleteSelection",value:function(){return this.selection.replace(this),this}},{key:"insertText",value:function(e,t,n){var r=this.doc.type.schema;if(null==t)return e?this.replaceSelectionWith(r.text(e),!0):this.deleteSelection();if(null==n&&(n=t),n=null==n?t:n,!e)return this.deleteRange(t,n);var i=this.storedMarks;if(!i){var o=this.doc.resolve(t);i=n==t?o.marks():o.marksAcross(this.doc.resolve(n))}return this.replaceRangeWith(t,n,r.text(e,i)),this.selection.empty||this.setSelection(m.near(this.selection.$to)),this}},{key:"setMeta",value:function(e,t){return this.meta["string"==typeof e?e:e.key]=t,this}},{key:"getMeta",value:function(e){return this.meta["string"==typeof e?e:e.key]}},{key:"isGeneric",get:function(){for(var e in this.meta)return!1;return!0}},{key:"scrollIntoView",value:function(){return this.updated|=4,this}},{key:"scrolledIntoView",get:function(){return(4&this.updated)>0}}]),n}(p.Transform);function j(e,t){return t&&e?e.bind(t):e}var O=d(function e(t,n,r){u(this,e),this.name=t,this.init=j(n.init,r),this.apply=j(n.apply,r)}),T=[new O("doc",{init:function(e){return e.doc||e.schema.topNodeType.createAndFill()},apply:function(e){return e.doc}}),new O("selection",{init:function(e,t){return e.selection||m.atStart(t.doc)},apply:function(e){return e.selection}}),new O("storedMarks",{init:function(e){return e.storedMarks||null},apply:function(e,t,n,r){return r.selection.$cursor?e.storedMarks:null}}),new O("scrollToSelection",{init:function(){return 0},apply:function(e,t){return e.scrolledIntoView?t+1:t}})],A=d(function e(t,n){var r=this;u(this,e),this.schema=t,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=T.slice(),n&&n.forEach(function(e){if(r.pluginsByKey[e.key])throw RangeError("Adding different instances of a keyed plugin ("+e.key+")");r.plugins.push(e),r.pluginsByKey[e.key]=e,e.spec.state&&r.fields.push(new O(e.key,e.spec.state,e))})}),P=function(){function e(t){u(this,e),this.config=t}return d(e,[{key:"schema",get:function(){return this.config.schema}},{key:"plugins",get:function(){return this.config.plugins}},{key:"apply",value:function(e){return this.applyTransaction(e).state}},{key:"filterTransaction",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,n=0;n0&&void 0!==arguments[0]?arguments[0]:"key";u(this,e),this.key=F(t)}return d(e,[{key:"get",value:function(e){return e.config.pluginsByKey[this.key]}},{key:"getState",value:function(e){return e[this.key]}}]),e}();t.AllSelection=_,t.EditorState=P,t.NodeSelection=w,t.Plugin=R,t.PluginKey=N,t.Selection=m,t.SelectionRange=g,t.TextSelection=b,t.Transaction=C},61563:function(e,t,n){"use strict";function r(e){var t="function"==typeof Map?new Map:void 0;return(r=function(e){if(null===e||!function(e){try{return -1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return i(e,arguments,u(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),a(n,e)})(e)}function i(e,t,n){return(i=l()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&a(i,n.prototype),i}).apply(null,arguments)}function o(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}function a(e,t){return(a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=l();return function(){var n,r=u(e);if(t){var i=u(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function l(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n0}},{key:"deletedBefore",get:function(){return(5&this.delInfo)>0}},{key:"deletedAfter",get:function(){return(6&this.delInfo)>0}},{key:"deletedAcross",get:function(){return(4&this.delInfo)>0}}]),e}(),g=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(d(this,e),this.ranges=t,this.inverted=n,!t.length&&e.empty)return e.empty}return p(e,[{key:"recover",value:function(e){var t=0,n=65535&e;if(!this.inverted)for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:1;return this._map(e,t,!1)}},{key:"map",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return this._map(e,t,!0)}},{key:"_map",value:function(e,t,n){for(var r=0,i=this.inverted?2:1,o=this.inverted?1:2,a=0;ae)break;var l=this.ranges[a+i],u=this.ranges[a+o],c=s+l;if(e<=c){var d=l?e==s?-1:e==c?1:t:t,h=s+r+(d<0?0:u);if(n)return h;var p=e==(t<0?s:c)?null:a/3+(e-s)*65536,f=e==s?2:e==c?1:4;return(t<0?e!=s:e!=c)&&(f|=8),new m(h,f,p)}r+=u-l}return n?e+r:new m(e+r,0,null)}},{key:"touches",value:function(e,t){for(var n=0,r=65535&t,i=this.inverted?2:1,o=this.inverted?1:2,a=0;ae)break;var l=this.ranges[a+i];if(e<=s+l&&a==3*r)return!0;n+=this.ranges[a+o]-l}return!1}},{key:"forEach",value:function(e){for(var t=this.inverted?2:1,n=this.inverted?1:2,r=0,i=0;r0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.length;d(this,e),this.maps=t,this.mirror=n,this.from=r,this.to=i}return p(e,[{key:"slice",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.maps.length;return new e(this.maps,this.mirror,t,n)}},{key:"copy",value:function(){return new e(this.maps.slice(),this.mirror&&this.mirror.slice(),this.from,this.to)}},{key:"appendMap",value:function(e,t){this.to=this.maps.push(e),null!=t&&this.setMirror(this.maps.length-1,t)}},{key:"appendMapping",value:function(e){for(var t=0,n=this.maps.length;t=0;t--){var r=e.getMirror(t);this.appendMap(e.maps[t].invert(),null!=r&&r>t?n-r-1:void 0)}}},{key:"invert",value:function(){var t=new e;return t.appendMappingInverted(this),t}},{key:"map",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(this.mirror)return this._map(e,t,!0);for(var n=this.from;n1&&void 0!==arguments[1]?arguments[1]:1;return this._map(e,t,!1)}},{key:"_map",value:function(e,t,n){for(var r=0,i=this.from;ii&&a=r.pos?null:new n(t.pos,r.pos,this.mark)}},{key:"merge",value:function(e){return e instanceof n&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new n(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}},{key:"toJSON",value:function(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}}],[{key:"fromJSON",value:function(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw RangeError("Invalid input for AddMarkStep.fromJSON");return new n(t.from,t.to,e.markFromJSON(t.mark))}}]),n}(b);b.jsonID("addMark",x);var _=function(e){o(n,e);var t=s(n);function n(e,r,i){var o;return d(this,n),(o=t.call(this)).from=e,o.to=r,o.mark=i,o}return p(n,[{key:"apply",value:function(e){var t=this,n=e.slice(this.from,this.to),r=new f.Slice(w(n.content,function(e){return e.mark(t.mark.removeFromSet(e.marks))},e),n.openStart,n.openEnd);return k.fromReplace(e,this.from,this.to,r)}},{key:"invert",value:function(){return new x(this.from,this.to,this.mark)}},{key:"map",value:function(e){var t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return t.deleted&&r.deleted||t.pos>=r.pos?null:new n(t.pos,r.pos,this.mark)}},{key:"merge",value:function(e){return e instanceof n&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new n(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}},{key:"toJSON",value:function(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}}],[{key:"fromJSON",value:function(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw RangeError("Invalid input for RemoveMarkStep.fromJSON");return new n(t.from,t.to,e.markFromJSON(t.mark))}}]),n}(b);b.jsonID("removeMark",_);var S=function(e){o(n,e);var t=s(n);function n(e,r){var i;return d(this,n),(i=t.call(this)).pos=e,i.mark=r,i}return p(n,[{key:"apply",value:function(e){var t=e.nodeAt(this.pos);if(!t)return k.fail("No node at mark step's position");var n=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return k.fromReplace(e,this.pos,this.pos+1,new f.Slice(f.Fragment.from(n),0,t.isLeaf?0:1))}},{key:"invert",value:function(e){var t=e.nodeAt(this.pos);if(t){var r=this.mark.addToSet(t.marks);if(r.length==t.marks.length){for(var i=0;i3&&void 0!==arguments[3]&&arguments[3];return d(this,n),(o=t.call(this)).from=e,o.to=r,o.slice=i,o.structure=a,o}return p(n,[{key:"apply",value:function(e){return this.structure&&j(e,this.from,this.to)?k.fail("Structure replace would overwrite content"):k.fromReplace(e,this.from,this.to,this.slice)}},{key:"getMap",value:function(){return new g([this.from,this.to-this.from,this.slice.size])}},{key:"invert",value:function(e){return new n(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}},{key:"map",value:function(e){var t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return t.deletedAcross&&r.deletedAcross?null:new n(t.pos,Math.max(t.pos,r.pos),this.slice)}},{key:"merge",value:function(e){if(!(e instanceof n)||e.structure||this.structure)return null;if(this.from+this.slice.size!=e.from||this.slice.openEnd||e.slice.openStart){if(e.to!=this.from||this.slice.openStart||e.slice.openEnd)return null;var t=this.slice.size+e.slice.size==0?f.Slice.empty:new f.Slice(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new n(e.from,this.to,t,this.structure)}var r=this.slice.size+e.slice.size==0?f.Slice.empty:new f.Slice(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new n(this.from,this.to+(e.to-e.from),r,this.structure)}},{key:"toJSON",value:function(){var e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}}],[{key:"fromJSON",value:function(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw RangeError("Invalid input for ReplaceStep.fromJSON");return new n(t.from,t.to,f.Slice.fromJSON(e,t.slice),!!t.structure)}}]),n}(b);b.jsonID("replace",D);var C=function(e){o(n,e);var t=s(n);function n(e,r,i,o,a,s){var l,u=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return d(this,n),(l=t.call(this)).from=e,l.to=r,l.gapFrom=i,l.gapTo=o,l.slice=a,l.insert=s,l.structure=u,l}return p(n,[{key:"apply",value:function(e){if(this.structure&&(j(e,this.from,this.gapFrom)||j(e,this.gapTo,this.to)))return k.fail("Structure gap-replace would overwrite content");var t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return k.fail("Gap is not a flat range");var n=this.slice.insertAt(this.insert,t.content);return n?k.fromReplace(e,this.from,this.to,n):k.fail("Content does not fit in gap")}},{key:"getMap",value:function(){return new g([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}},{key:"invert",value:function(e){var t=this.gapTo-this.gapFrom;return new n(this.from,this.from+this.slice.size+t,this.from+this.insert,this.from+this.insert+t,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}},{key:"map",value:function(e){var t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1),i=this.from==this.gapFrom?t.pos:e.map(this.gapFrom,-1),o=this.to==this.gapTo?r.pos:e.map(this.gapTo,1);return t.deletedAcross&&r.deletedAcross||ir.pos?null:new n(t.pos,r.pos,i,o,this.slice,this.insert,this.structure)}},{key:"toJSON",value:function(){var e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}}],[{key:"fromJSON",value:function(e,t){if("number"!=typeof t.from||"number"!=typeof t.to||"number"!=typeof t.gapFrom||"number"!=typeof t.gapTo||"number"!=typeof t.insert)throw RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new n(t.from,t.to,t.gapFrom,t.gapTo,f.Slice.fromJSON(e,t.slice),t.insert,!!t.structure)}}]),n}(b);function j(e,t,n){for(var r=e.resolve(t),i=n-t,o=r.depth;i>0&&o>0&&r.indexAfter(o)==r.node(o).childCount;)o--,i--;if(i>0)for(var a=r.node(o).maybeChild(r.indexAfter(o));i>0;){if(!a||a.isLeaf)return!0;a=a.firstChild,i--}return!1}function O(e,t,n){for(var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n.contentMatch,i=!(arguments.length>4)||void 0===arguments[4]||arguments[4],o=e.doc.nodeAt(t),a=[],s=t+1,l=0;l=0;y--)e.step(a[y])}function T(e){return{type:e,attrs:null}}function A(e,t){return!!(e&&t&&!e.isLeaf&&e.canAppend(t))}function P(e,t,n){var r=e.resolve(t);if(r.parent.canReplaceWith(r.index(),r.index(),n))return t;if(0==r.parentOffset)for(var i=r.depth-1;i>=0;i--){var o=r.index(i);if(r.node(i).canReplaceWith(o,o,n))return r.before(i+1);if(o>0)return null}if(r.parentOffset==r.parent.content.size)for(var a=r.depth-1;a>=0;a--){var s=r.indexAfter(a);if(r.node(a).canReplaceWith(s,s,n))return r.after(a+1);if(s2&&void 0!==arguments[2]?arguments[2]:t,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:f.Slice.empty;if(t==n&&!r.size)return null;var i=e.resolve(t),o=e.resolve(n);return M(i,o,r)?new D(t,n,r):new F(i,o,r).fit()}function M(e,t,n){return!n.openStart&&!n.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),n.content)}b.jsonID("replaceAround",C);var F=function(){function e(t,n,r){d(this,e),this.$from=t,this.$to=n,this.unplaced=r,this.frontier=[],this.placed=f.Fragment.empty;for(var i=0;i<=t.depth;i++){var o=t.node(i);this.frontier.push({type:o.type,match:o.contentMatchAt(t.indexAfter(i))})}for(var a=t.depth;a>0;a--)this.placed=f.Fragment.from(t.node(a).copy(this.placed))}return p(e,[{key:"depth",get:function(){return this.frontier.length-1}},{key:"fit",value:function(){for(;this.unplaced.size;){var e=this.findFittable();e?this.placeNodes(e):this.openMore()||this.dropNode()}var t=this.mustMoveInline(),n=this.placed.size-this.depth-this.$from.depth,r=this.$from,i=this.close(t<0?this.$to:r.doc.resolve(t));if(!i)return null;for(var o=this.placed,a=r.depth,s=i.depth;a&&s&&1==o.childCount;)o=o.firstChild.content,a--,s--;var l=new f.Slice(o,a,s);return t>-1?new C(r.pos,t,this.$to.pos,this.$to.end(),l,n):l.size||r.pos!=this.$to.pos?new D(r.pos,i.pos,l):null}},{key:"findFittable",value:function(){for(var e=this.unplaced.openStart,t=this.unplaced.content,n=0,r=this.unplaced.openEnd;n1&&(r=0),i.type.spec.isolating&&r<=n){e=n;break}t=i.content}for(var o=1;o<=2;o++)for(var a=1==o?e:this.unplaced.openStart;a>=0;a--)for(var s=null,l=(a?(s=L(this.unplaced.content,a-1).firstChild).content:this.unplaced.content).firstChild,u=this.depth;u>=0;u--){var c=this.frontier[u],d=c.type,h=c.match,p=void 0,m=null;if(1==o&&(l?h.matchType(l.type)||(m=h.fillBefore(f.Fragment.from(l),!1)):s&&d.compatibleContent(s.type)))return{sliceDepth:a,frontierDepth:u,parent:s,inject:m};if(2==o&&l&&(p=h.findWrapping(l.type)))return{sliceDepth:a,frontierDepth:u,parent:s,wrap:p};if(s&&h.matchType(s.type))break}}},{key:"openMore",value:function(){var e=this.unplaced,t=e.content,n=e.openStart,r=e.openEnd,i=L(t,n);return!!i.childCount&&!i.firstChild.isLeaf&&(this.unplaced=new f.Slice(t,n+1,Math.max(r,i.size+n>=t.size-r?n+1:0)),!0)}},{key:"dropNode",value:function(){var e=this.unplaced,t=e.content,n=e.openStart,r=e.openEnd,i=L(t,n);if(i.childCount<=1&&n>0){var o=t.size-n<=n+i.size;this.unplaced=new f.Slice(N(t,n-1,1),n-1,o?n-1:r)}else this.unplaced=new f.Slice(N(t,n,1),n,r)}},{key:"placeNodes",value:function(e){for(var t=e.sliceDepth,n=e.frontierDepth,r=e.parent,i=e.inject,o=e.wrap;this.depth>n;)this.closeFrontierNode();if(o)for(var a=0;a1||0==u||y.content.size)&&(p=b,d.push(function e(t,n,r){if(n<=0)return t;var i=t.content;return n>1&&(i=i.replaceChild(0,e(i.firstChild,n-1,1==i.childCount?r-1:0))),n>0&&(i=t.type.contentMatch.fillBefore(i).append(i),r<=0&&(i=i.append(t.type.contentMatch.matchFragment(i).fillBefore(f.Fragment.empty,!0)))),t.copy(i)}(y.mark(m.allowedMarks(y.marks)),1==c?u:0,c==l.childCount?v:-1)))}var k=c==l.childCount;k||(v=-1),this.placed=I(this.placed,n,f.Fragment.from(d)),this.frontier[n].match=p,k&&v<0&&r&&r.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(var w=0,x=l;w1&&r==this.$to.end(--n);)++r;return r}},{key:"findCloseLevel",value:function(e){r:for(var t=Math.min(this.depth,e.depth);t>=0;t--){var n=this.frontier[t],r=n.match,i=n.type,o=t=0;s--){var l=this.frontier[s],u=l.match,c=B(e,s,l.type,u,!0);if(!c||c.childCount)continue r}return{depth:t,fit:a,move:o?e.doc.resolve(e.after(t+1)):e}}}}},{key:"close",value:function(e){var t=this.findCloseLevel(e);if(!t)return null;for(;this.depth>t.depth;)this.closeFrontierNode();t.fit.childCount&&(this.placed=I(this.placed,t.depth,t.fit)),e=t.move;for(var n=t.depth+1;n<=e.depth;n++){var r=e.node(n),i=r.type.contentMatch.fillBefore(r.content,!0,e.index(n));this.openFrontierNode(r.type,r.attrs,i)}return e}},{key:"openFrontierNode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0,r=this.frontier[this.depth];r.match=r.match.matchType(e),this.placed=I(this.placed,this.depth,f.Fragment.from(e.create(t,n))),this.frontier.push({type:e,match:e.contentMatch})}},{key:"closeFrontierNode",value:function(){var e=this.frontier.pop().match.fillBefore(f.Fragment.empty,!0);e.childCount&&(this.placed=I(this.placed,this.frontier.length,e))}}]),e}();function N(e,t,n){return 0==t?e.cutByIndex(n,e.childCount):e.replaceChild(0,e.firstChild.copy(N(e.firstChild.content,t-1,n)))}function I(e,t,n){return 0==t?e.append(n):e.replaceChild(e.childCount-1,e.lastChild.copy(I(e.lastChild.content,t-1,n)))}function L(e,t){for(var n=0;n=0;i--){var o=e.start(i);if(ot.pos+(t.depth-i)||e.node(i).type.spec.isolating||t.node(i).type.spec.isolating)break;(o==t.start(i)||i==e.depth&&i==t.depth&&e.parent.inlineContent&&t.parent.inlineContent&&i&&t.start(i-1)==o-1)&&n.push(i)}return n}var U=function(e){o(n,e);var t=s(n);function n(e,r,i){var o;return d(this,n),(o=t.call(this)).pos=e,o.attr=r,o.value=i,o}return p(n,[{key:"apply",value:function(e){var t=e.nodeAt(this.pos);if(!t)return k.fail("No node at attribute step's position");var n=Object.create(null);for(var r in t.attrs)n[r]=t.attrs[r];n[this.attr]=this.value;var i=t.type.create(n,null,t.marks);return k.fromReplace(e,this.pos,this.pos+1,new f.Slice(f.Fragment.from(i),0,t.isLeaf?0:1))}},{key:"getMap",value:function(){return g.empty}},{key:"invert",value:function(e){return new n(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}},{key:"map",value:function(e){var t=e.mapResult(this.pos,1);return t.deletedAfter?null:new n(t.pos,this.attr,this.value)}},{key:"toJSON",value:function(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}}],[{key:"fromJSON",value:function(e,t){if("number"!=typeof t.pos||"string"!=typeof t.attr)throw RangeError("Invalid input for AttrStep.fromJSON");return new n(t.pos,t.attr,t.value)}}]),n}(b);b.jsonID("attr",U);var q=function(e){o(n,e);var t=s(n);function n(e,r){var i;return d(this,n),(i=t.call(this)).attr=e,i.value=r,i}return p(n,[{key:"apply",value:function(e){var t=Object.create(null);for(var n in e.attrs)t[n]=e.attrs[n];t[this.attr]=this.value;var r=e.type.create(t,e.content,e.marks);return k.ok(r)}},{key:"getMap",value:function(){return g.empty}},{key:"invert",value:function(e){return new n(this.attr,e.attrs[this.attr])}},{key:"map",value:function(e){return this}},{key:"toJSON",value:function(){return{stepType:"docAttr",attr:this.attr,value:this.value}}}],[{key:"fromJSON",value:function(e,t){if("string"!=typeof t.attr)throw RangeError("Invalid input for DocAttrStep.fromJSON");return new n(t.attr,t.value)}}]),n}(b);b.jsonID("docAttr",q),t.TransformError=function(e){o(n,e);var t=s(n);function n(){return d(this,n),t.apply(this,arguments)}return p(n)}(r(Error)),t.TransformError=function e(t){var n=Error.call(this,t);return n.__proto__=e.prototype,n},t.TransformError.prototype=Object.create(Error.prototype),t.TransformError.prototype.constructor=t.TransformError,t.TransformError.prototype.name="TransformError";var $=function(){function e(t){d(this,e),this.doc=t,this.steps=[],this.docs=[],this.mapping=new v}return p(e,[{key:"before",get:function(){return this.docs.length?this.docs[0]:this.doc}},{key:"step",value:function(e){var n=this.maybeStep(e);if(n.failed)throw new t.TransformError(n.failed);return this}},{key:"maybeStep",value:function(e){var t=e.apply(this.doc);return t.failed||this.addStep(e,t.doc),t}},{key:"docChanged",get:function(){return this.steps.length>0}},{key:"addStep",value:function(e,t){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=t}},{key:"replace",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f.Slice.empty,r=R(this.doc,e,t,n);return r&&this.step(r),this}},{key:"replaceWith",value:function(e,t,n){return this.replace(e,t,new f.Slice(f.Fragment.from(n),0,0))}},{key:"delete",value:function(e,t){return this.replace(e,t,f.Slice.empty)}},{key:"insert",value:function(e,t){return this.replaceWith(e,e,t)}},{key:"replaceRange",value:function(e,t,n){return function(e,t,n,r){if(!r.size)return e.deleteRange(t,n);var i=e.doc.resolve(t),o=e.doc.resolve(n);if(M(i,o,r))return e.step(new D(t,n,r));var a=z(i,e.doc.resolve(n));0==a[a.length-1]&&a.pop();var s=-(i.depth+1);a.unshift(s);for(var l=i.depth,u=i.pos-1;l>0;l--,u--){var c=i.node(l).type.spec;if(c.defining||c.definingAsContext||c.isolating)break;a.indexOf(l)>-1?s=l:i.before(l)==u&&a.splice(1,0,-l)}for(var d=a.indexOf(s),h=[],p=r.openStart,m=r.content,g=0;;g++){var v=m.firstChild;if(h.push(v),g==r.openStart)break;m=v.content}for(var y=p-1;y>=0;y--){var b,k=h[y],w=(b=k.type).spec.defining||b.spec.definingForContent;if(w&&!k.sameMarkup(i.node(Math.abs(s)-1)))p=y;else if(w||!k.type.isTextblock)break}for(var x=r.openStart;x>=0;x--){var _=(x+p+1)%(r.openStart+1),S=h[_];if(S)for(var E=0;Ei){var s=o.contentMatchAt(0),l=s.fillBefore(t).append(t);t=l.append(s.matchFragment(l).fillBefore(f.Fragment.empty,!0))}return t}(r.content,0,r.openStart,_),_,r.openEnd))}}for(var A=e.steps.length,P=a.length-1;P>=0&&(e.replace(t,n,r),!(e.steps.length>A));P--){var R=a[P];R<0||(t=i.before(R),n=o.after(R))}}(this,e,t,n),this}},{key:"replaceRangeWith",value:function(e,t,n){return function(e,t,n,r){if(!r.isInline&&t==n&&e.doc.resolve(t).parent.content.size){var i=P(e.doc,t,r.type);null!=i&&(t=n=i)}e.replaceRange(t,n,new f.Slice(f.Fragment.from(r),0,0))}(this,e,t,n),this}},{key:"deleteRange",value:function(e,t){return function(e,t,n){for(var r=e.doc.resolve(t),i=e.doc.resolve(n),o=z(r,i),a=0;a0&&(l||r.node(s-1).canReplace(r.index(s-1),i.indexAfter(s-1))))return e.delete(r.before(s),i.after(s))}for(var u=1;u<=r.depth&&u<=i.depth;u++)if(t-r.start(u)==r.depth-u&&n>r.end(u)&&i.end(u)-n!=i.depth-u)return e.delete(r.before(u),n);e.delete(t,n)}(this,e,t),this}},{key:"lift",value:function(e,t){return function(e,t,n){for(var r=t.$from,i=t.$to,o=t.depth,a=r.before(o+1),s=i.after(o+1),l=a,u=s,c=f.Fragment.empty,d=0,h=o,p=!1;h>n;h--)p||r.index(h)>0?(p=!0,c=f.Fragment.from(r.node(h).copy(c)),d++):l--;for(var m=f.Fragment.empty,g=0,v=o,y=!1;v>n;v--)y||i.after(v+1)1&&void 0!==arguments[1]?arguments[1]:1;return function(e,t,n){var r=new D(t-n,t+n,f.Slice.empty,!0);e.step(r)}(this,e,t),this}},{key:"wrap",value:function(e,t){return function(e,t,n){for(var r=f.Fragment.empty,i=n.length-1;i>=0;i--){if(r.size){var o=n[i].type.contentMatch.matchFragment(r);if(!o||!o.validEnd)throw RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}r=f.Fragment.from(n[i].type.create(n[i].attrs,r))}var a=t.start,s=t.end;e.step(new C(a,s,a,s,new f.Slice(r,0,0),n.length,!0))}(this,e,t),this}},{key:"setBlockType",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return function(e,t,n,r,i){if(!r.isTextblock)throw RangeError("Type given to setBlockType should be a textblock");var o=e.steps.length;e.doc.nodesBetween(t,n,function(t,n){if(t.isTextblock&&!t.hasMarkup(r,i)&&(a=e.doc,s=e.mapping.slice(o).map(n),u=(l=a.resolve(s)).index(),l.parent.canReplaceWith(u,u+1,r))){var a,s,l,u,c=null;if(r.schema.linebreakReplacement){var d="pre"==r.whitespace,h=!!r.contentMatch.matchType(r.schema.linebreakReplacement);d&&!h?c=!1:!d&&h&&(c=!0)}!1===c&&function(e,t,n,r){t.forEach(function(i,o){if(i.type==i.type.schema.linebreakReplacement){var a=e.mapping.slice(r).map(n+1+o);e.replaceWith(a,a+1,t.type.schema.text("\n"))}})}(e,t,n,o),O(e,e.mapping.slice(o).map(n,1),r,void 0,null===c);var p=e.mapping.slice(o),m=p.map(n,1),g=p.map(n+t.nodeSize,1);return e.step(new C(m,g,m+1,g-1,new f.Slice(f.Fragment.from(r.create(i,null,t.marks)),0,0),1,!0)),!0===c&&function(e,t,n,r){t.forEach(function(i,o){if(i.isText)for(var a,s=/\r?\n|\r/g;a=s.exec(i.text);){var l=e.mapping.slice(r).map(n+1+o+a.index);e.replaceWith(l,l+1,t.type.schema.linebreakReplacement.create())}})}(e,t,n,o),!1}})}(this,e,t,n,r),this}},{key:"setNodeMarkup",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0;return function(e,t,n,r,i){var o=e.doc.nodeAt(t);if(!o)throw RangeError("No node at given position");n||(n=o.type);var a=n.create(r,null,i||o.marks);if(o.isLeaf)return e.replaceWith(t,t+o.nodeSize,a);if(!n.validContent(o.content))throw RangeError("Invalid content for node type "+n.name);e.step(new C(t,t+o.nodeSize,t+1,t+o.nodeSize-1,new f.Slice(f.Fragment.from(a),0,0),1,!0))}(this,e,t,n,r),this}},{key:"setNodeAttribute",value:function(e,t,n){return this.step(new U(e,t,n)),this}},{key:"setDocAttribute",value:function(e,t){return this.step(new q(e,t)),this}},{key:"addNodeMark",value:function(e,t){return this.step(new S(e,t)),this}},{key:"removeNodeMark",value:function(e,t){if(!(t instanceof f.Mark)){var n=this.doc.nodeAt(e);if(!n)throw RangeError("No node at position "+e);if(!(t=t.isInSet(n.marks)))return this}return this.step(new E(e,t)),this}},{key:"split",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2?arguments[2]:void 0;return function(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3?arguments[3]:void 0,i=e.doc.resolve(t),o=f.Fragment.empty,a=f.Fragment.empty,s=i.depth,l=i.depth-n,u=n-1;s>l;s--,u--){o=f.Fragment.from(i.node(s).copy(o));var c=r&&r[u];a=f.Fragment.from(c?c.type.create(c.attrs,a):i.node(s).copy(a))}e.step(new D(t,t,new f.Slice(o.append(a),n,n),!0))}(this,e,t,n),this}},{key:"addMark",value:function(e,t,n){var r,i,o,a,s;return r=this,a=[],s=[],r.doc.nodesBetween(e,t,function(r,l,u){if(r.isInline){var c=r.marks;if(!n.isInSet(c)&&u.type.allowsMarkType(n.type)){for(var d=Math.max(l,e),h=Math.min(l+r.nodeSize,t),p=n.addToSet(c),f=0;f2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3?arguments[3]:void 0,i=e.resolve(t),o=i.depth-n,a=r&&r[r.length-1]||i.parent;if(o<0||i.parent.type.spec.isolating||!i.parent.canReplace(i.index(),i.parent.childCount)||!a.type.validContent(i.parent.content.cutByIndex(i.index(),i.parent.childCount)))return!1;for(var s=i.depth-1,l=n-2;s>o;s--,l--){var u=i.node(s),c=i.index(s);if(u.type.spec.isolating)return!1;var d=u.content.cutByIndex(c,u.childCount),h=r&&r[l+1];h&&(d=d.replaceChild(0,h.type.create(h.attrs)));var p=r&&r[l]||u;if(!u.canReplace(c+1,u.childCount)||!p.type.validContent(d))return!1}var f=i.indexAfter(o),m=r&&r[0];return i.node(o).canReplaceWith(f,f,m?m.type:i.node(o+1).type)},t.dropPoint=function(e,t,n){var r=e.resolve(t);if(!n.content.size)return t;for(var i=n.content,o=0;o=0;s--){var l=s==r.depth?0:r.pos<=(r.start(s+1)+r.end(s+1))/2?-1:1,u=r.index(s)+(l>0?1:0),c=r.node(s),d=!1;if(1==a)d=c.canReplace(u,u,i);else{var h=c.contentMatchAt(u).findWrapping(i.firstChild.type);d=h&&c.canReplaceWith(u,u,h[0])}if(d)return 0==l?r.pos:l<0?r.before(s+1):r.after(s+1)}return null},t.findWrapping=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e,i=function(e,t){var n=e.parent,r=e.startIndex,i=e.endIndex,o=n.contentMatchAt(r).findWrapping(t);if(!o)return null;var a=o.length?o[0]:t;return n.canReplaceWith(r,i,a)?o:null}(e,t),o=i&&function(e,t){var n=e.parent,r=e.startIndex,i=e.endIndex,o=n.child(r),a=t.contentMatch.findWrapping(o.type);if(!a)return null;for(var s=(a.length?a[a.length-1]:t).contentMatch,l=r;s&&l2&&void 0!==arguments[2]?arguments[2]:-1,r=e.resolve(t),i=r.depth;;i--){var o=void 0,a=void 0,s=r.index(i);if(i==r.depth?(o=r.nodeBefore,a=r.nodeAfter):n>0?(o=r.node(i+1),s++,a=r.node(i).maybeChild(s)):(o=r.node(i).maybeChild(s-1),a=r.node(i+1)),o&&!o.isTextblock&&A(o,a)&&r.node(i).canReplace(s,s+1))return t;if(0==i)break;t=n<0?r.before(i):r.after(i)}},t.liftTarget=function(e){for(var t=e.parent.content.cutByIndex(e.startIndex,e.endIndex),n=e.depth;;--n){var r=e.$from.node(n),i=e.$from.index(n),o=e.$to.indexAfter(n);if(n",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"',229:"Q"},i="undefined"!=typeof navigator&&/Chrome\/(\d+)/.exec(navigator.userAgent),o="undefined"!=typeof navigator&&/Apple Computer/.test(navigator.vendor),a="undefined"!=typeof navigator&&/Gecko\/\d+/.test(navigator.userAgent),s="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),l="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),u=i&&(s||57>+i[1])||a&&s,c=0;c<10;c++)n[48+c]=n[96+c]=String(c);for(var c=1;c<=24;c++)n[c+111]="F"+c;for(var c=65;c<=90;c++)n[c]=String.fromCharCode(c+32),r[c]=String.fromCharCode(c);for(var d in n)r.hasOwnProperty(d)||(r[d]=n[d]);t.base=n,t.keyName=function(e){var t=!(u&&(e.ctrlKey||e.altKey||e.metaKey)||(o||l)&&e.shiftKey&&e.key&&1==e.key.length)&&e.key||(e.shiftKey?r:n)[e.keyCode]||e.key||"Unidentified";return"Esc"==t&&(t="Escape"),"Del"==t&&(t="Delete"),"Left"==t&&(t="ArrowLeft"),"Up"==t&&(t="ArrowUp"),"Right"==t&&(t="ArrowRight"),"Down"==t&&(t="ArrowDown"),t},t.shift=r},15397:function(e,t,n){"use strict";n.d(t,{$O:function(){return f},E_:function(){return m},RC:function(){return function e(t,n,r){return!!(0,o.s)(n)&&(y(n)?n.every(function(n){return e(t,n,r)}):t.selections.every(function(t){if((0,i.My)(t)&&(0,a.LZ)(t,r)){var o=(0,i.u2)(t);return l.call(n,o)&&(!t.selectionSet||e(t.selectionSet,n[o],r))}return!0}))}},RI:function(){return l},ig:function(){return v},j:function(){return g},jS:function(){return d},jp:function(){return p},kJ:function(){return y},lg:function(){return h},uG:function(){return u}});var r=n(9428),i=n(72),o=n(45931),a=n(9572),s=n(34529),l=Object.prototype.hasOwnProperty;function u(e,t){var n=e.__typename,r=e.id,i=e._id;if("string"==typeof n&&(t&&(t.keyObject=void 0!==r?{id:r}:void 0!==i?{_id:i}:void 0),void 0===r&&(r=i),void 0!==r))return"".concat(n,":").concat("number"==typeof r||"string"==typeof r?r:JSON.stringify(r))}var c={dataIdFromObject:u,addTypename:!0,resultCaching:!0,canonizeResults:!1};function d(e){return(0,r.o)(c,e)}function h(e){var t=e.canonizeResults;return void 0===t?c.canonizeResults:t}function p(e,t){return(0,i.Yk)(t)?e.get(t.__ref,"__typename"):t&&t.__typename}var f=/^[_a-z][_0-9a-z]*/i;function m(e){var t=e.match(f);return t?t[0]:e}function g(e){return(0,o.s)(e)&&!(0,i.Yk)(e)&&!y(e)}function v(){return new s.w0}var y=function(e){return Array.isArray(e)}},78405:function(e,t,n){"use strict";n.d(t,{h:function(){return eu}});var r,i,o=n(5163),a=n(19563),s=n(88438),l=n(38229),u=n(18001),c=function(){function e(){this.getFragmentDoc=(0,s.re)(u.Yk)}return e.prototype.batch=function(e){var t,n=this,r="string"==typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;return this.performTransaction(function(){return t=e.update(n)},r),t},e.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},e.prototype.transformDocument=function(e){return e},e.prototype.identify=function(e){},e.prototype.gc=function(){return[]},e.prototype.modify=function(e){return!1},e.prototype.transformForLink=function(e){return e},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read((0,o.pi)((0,o.pi)({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read((0,o.pi)((0,o.pi)({},e),{query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))},e.prototype.writeQuery=function(e){var t=e.id,n=e.data,r=(0,o._T)(e,["id","data"]);return this.write(Object.assign(r,{dataId:t||"ROOT_QUERY",result:n}))},e.prototype.writeFragment=function(e){var t=e.id,n=e.data,r=e.fragment,i=e.fragmentName,a=(0,o._T)(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(a,{query:this.getFragmentDoc(r,i),dataId:t,result:n}))},e.prototype.updateQuery=function(e,t){return this.batch({update:function(n){var r=n.readQuery(e),i=t(r);return null==i?r:(n.writeQuery((0,o.pi)((0,o.pi)({},e),{data:i})),i)}})},e.prototype.updateFragment=function(e,t){return this.batch({update:function(n){var r=n.readFragment(e),i=t(r);return null==i?r:(n.writeFragment((0,o.pi)((0,o.pi)({},e),{data:i})),i)}})},e}(),d=function(e,t,n,r){this.message=e,this.path=t,this.query=n,this.variables=r},h=n(72),p=n(77488),f=n(43869),m=n(9428),g=n(86607),v=n(34529),y=n(9572),b=n(23180),k=n(45931),w=n(3985),x=n(15397),_=Object.create(null),S=function(){return _},E=Object.create(null),D=function(){function e(e,t){var n=this;this.policies=e,this.group=t,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(e,t){return(0,b.J)((0,h.Yk)(e)?n.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return(0,h.Yk)(e)?n.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return(0,h.kQ)(e);if((0,h.Yk)(e))return e;var r=n.policies.identify(e)[0];if(r){var i=(0,h.kQ)(r);return t&&n.merge(r,e),i}}}return e.prototype.toObject=function(){return(0,o.pi)({},this.data)},e.prototype.has=function(e){return void 0!==this.lookup(e,!0)},e.prototype.get=function(e,t){if(this.group.depend(e,t),x.RI.call(this.data,e)){var n=this.data[e];if(n&&x.RI.call(n,t))return n[t]}return"__typename"===t&&x.RI.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof O?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return(t&&this.group.depend(e,"__exists"),x.RI.call(this.data,e))?this.data[e]:this instanceof O?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var n,r=this;(0,h.Yk)(e)&&(e=e.__ref),(0,h.Yk)(t)&&(t=t.__ref);var i="string"==typeof e?this.lookup(n=e):e,o="string"==typeof t?this.lookup(n=t):t;if(o){__DEV__?(0,a.kG)("string"==typeof n,"store.merge expects a string ID"):(0,a.kG)("string"==typeof n,1);var s=new v.w0(A).merge(i,o);if(this.data[n]=s,s!==i&&(delete this.refs[n],this.group.caching)){var l=Object.create(null);i||(l.__exists=1),Object.keys(o).forEach(function(e){if(!i||i[e]!==s[e]){l[e]=1;var t=(0,x.E_)(e);t===e||r.policies.hasKeyArgs(s.__typename,t)||(l[t]=1),void 0!==s[e]||r instanceof O||delete s[e]}}),l.__typename&&!(i&&i.__typename)&&this.policies.rootTypenamesById[n]===s.__typename&&delete l.__typename,Object.keys(l).forEach(function(e){return r.group.dirty(n,e)})}}},e.prototype.modify=function(e,t){var n=this,r=this.lookup(e);if(r){var i=Object.create(null),a=!1,s=!0,l={DELETE:_,INVALIDATE:E,isReference:h.Yk,toReference:this.toReference,canRead:this.canRead,readField:function(t,r){return n.policies.readField("string"==typeof t?{fieldName:t,from:r||(0,h.kQ)(e)}:t,{store:n})}};if(Object.keys(r).forEach(function(u){var c=(0,x.E_)(u),d=r[u];if(void 0!==d){var h="function"==typeof t?t:t[u]||t[c];if(h){var p=h===S?_:h((0,b.J)(d),(0,o.pi)((0,o.pi)({},l),{fieldName:c,storeFieldName:u,storage:n.getStorage(e,u)}));p===E?n.group.dirty(e,u):(p===_&&(p=void 0),p!==d&&(i[u]=p,a=!0,d=p))}void 0!==d&&(s=!1)}}),a)return this.merge(e,i),s&&(this instanceof O?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},e.prototype.delete=function(e,t,n){var r,i=this.lookup(e);if(i){var o=this.getFieldValue(i,"__typename"),a=t&&n?this.policies.getStoreFieldName({typename:o,fieldName:t,args:n}):t;return this.modify(e,a?((r={})[a]=S,r):S)}return!1},e.prototype.evict=function(e,t){var n=!1;return e.id&&(x.RI.call(this.data,e.id)&&(n=this.delete(e.id,e.fieldName,e.args)),this instanceof O&&this!==t&&(n=this.parent.evict(e,t)||n),(e.fieldName||n)&&this.group.dirty(e.id,e.fieldName||"__exists")),n},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var e=this,t=this.toObject(),n=[];return this.getRootIdSet().forEach(function(t){x.RI.call(e.policies.rootTypenamesById,t)||n.push(t)}),n.length&&(t.__META={extraRootIds:n.sort()}),t},e.prototype.replace=function(e){var t=this;if(Object.keys(this.data).forEach(function(n){e&&x.RI.call(e,n)||t.delete(n)}),e){var n=e.__META,r=(0,o._T)(e,["__META"]);Object.keys(r).forEach(function(e){t.merge(e,r[e])}),n&&n.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},e.prototype.release=function(e){if(this.rootIds[e]>0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},e.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof O?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},e.prototype.gc=function(){var e=this,t=this.getRootIdSet(),n=this.toObject();t.forEach(function(r){x.RI.call(n,r)&&(Object.keys(e.findChildRefIds(r)).forEach(t.add,t),delete n[r])});var r=Object.keys(n);if(r.length){for(var i=this;i instanceof O;)i=i.parent;r.forEach(function(e){return i.delete(e)})}return r},e.prototype.findChildRefIds=function(e){if(!x.RI.call(this.refs,e)){var t=this.refs[e]=Object.create(null),n=this.data[e];if(!n)return t;var r=new Set([n]);r.forEach(function(e){(0,h.Yk)(e)&&(t[e.__ref]=!0),(0,k.s)(e)&&Object.keys(e).forEach(function(t){var n=e[t];(0,k.s)(n)&&r.add(n)})})}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),C=function(){function e(e,t){void 0===t&&(t=null),this.caching=e,this.parent=t,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?(0,s.dP)():null,this.keyMaker=new w.B(f.mr)},e.prototype.depend=function(e,t){if(this.d){this.d(t+"#"+e);var n=(0,x.E_)(t);n!==t&&this.d(n+"#"+e),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(t+"#"+e,"__exists"===t?"forget":"setDirty")},e}();function j(e,t){P(e)&&e.group.depend(t,"__exists")}i=function(e){function t(t){var n=t.policies,r=t.resultCaching,i=t.seed,o=e.call(this,n,new C(void 0===r||r))||this;return o.stump=new T(o),o.storageTrie=new w.B(f.mr),i&&o.replace(i),o}return(0,o.ZT)(t,e),t.prototype.addLayer=function(e,t){return this.stump.addLayer(e,t)},t.prototype.removeLayer=function(){return this},t.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},t}(r=D||(D={})),r.Root=i;var O=function(e){function t(t,n,r,i){var o=e.call(this,n.policies,i)||this;return o.id=t,o.parent=n,o.replay=r,o.group=i,r(o),o}return(0,o.ZT)(t,e),t.prototype.addLayer=function(e,n){return new t(e,this,n,this.group)},t.prototype.removeLayer=function(e){var t=this,n=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(e){var r=t.data[e],i=n.lookup(e);i?r?r!==i&&Object.keys(r).forEach(function(n){(0,l.D)(r[n],i[n])||t.group.dirty(e,n)}):(t.group.dirty(e,"__exists"),Object.keys(i).forEach(function(n){t.group.dirty(e,n)})):t.delete(e)}),n):n===this.parent?this:n.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return(0,o.pi)((0,o.pi)({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var n=this.parent.findChildRefIds(t);return x.RI.call(this.data,t)?(0,o.pi)((0,o.pi)({},n),e.prototype.findChildRefIds.call(this,t)):n},t.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},t}(D),T=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,function(){},new C(t.group.caching,t.group))||this}return(0,o.ZT)(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},t}(O);function A(e,t,n){var r=e[n],i=t[n];return(0,l.D)(r,i)?r:i}function P(e){return!!(e instanceof D&&e.group.caching)}var R=n(51420);function M(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var F=function(){function e(e){var t=this;this.knownResults=new(f.mr?WeakMap:Map),this.config=(0,m.o)(e,{addTypename:!1!==e.addTypename,canonizeResults:(0,x.lg)(e)}),this.canon=e.canon||new R.h,this.executeSelectionSet=(0,s.re)(function(e){var n,r=e.context.canonizeResults,i=M(e);i[3]=!r;var a=(n=t.executeSelectionSet).peek.apply(n,i);return a?r?(0,o.pi)((0,o.pi)({},a),{result:t.canon.admit(a.result)}):a:(j(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))},{max:this.config.resultCacheMaxSize,keyArgs:M,makeCacheKey:function(e,t,n,r){if(P(n.store))return n.store.makeCacheKey(e,(0,h.Yk)(t)?t.__ref:t,n.varString,r)}}),this.executeSubSelectedArray=(0,s.re)(function(e){return j(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var t=e.field,n=e.array,r=e.context;if(P(r.store))return r.store.makeCacheKey(t,n,r.varString)}})}return e.prototype.resetCanon=function(){this.canon=new R.h},e.prototype.diffQueryAgainstStore=function(e){var t,n=e.store,r=e.query,i=e.rootId,a=void 0===i?"ROOT_QUERY":i,s=e.variables,l=e.returnPartialData,c=e.canonizeResults,p=void 0===c?this.config.canonizeResults:c,f=this.config.cache.policies;s=(0,o.pi)((0,o.pi)({},(0,g.O4)((0,g.iW)(r))),s);var m=(0,h.kQ)(a),v=this.executeSelectionSet({selectionSet:(0,g.p$)(r).selectionSet,objectOrReference:m,enclosingRef:m,context:{store:n,query:r,policies:f,variables:s,varString:(0,R.B)(s),canonizeResults:p,fragmentMap:(0,u.F)((0,g.kU)(r))}});if(v.missing&&(t=[new d(function(e){try{JSON.stringify(e,function(e,t){if("string"==typeof t)throw t;return t})}catch(e){return e}}(v.missing),v.missing,r,s)],!(void 0===l||l)))throw t[0];return{result:v.result,complete:!t,missing:t}},e.prototype.isFresh=function(e,t,n,r){if(P(r.store)&&this.knownResults.get(e)===n){var i=this.executeSelectionSet.peek(n,t,r,this.canon.isKnown(e));if(i&&e===i.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var t,n=this,r=e.selectionSet,i=e.objectOrReference,o=e.enclosingRef,a=e.context;if((0,h.Yk)(i)&&!a.policies.rootTypenamesById[i.__ref]&&!a.store.has(i.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(i.__ref," object")};var s=a.variables,l=a.policies,c=a.store.getFieldValue(i,"__typename"),d=[],f=new v.w0;function m(e,n){var r;return e.missing&&(t=f.merge(t,((r={})[n]=e.missing,r))),e.result}this.config.addTypename&&"string"==typeof c&&!l.rootIdsByTypename[c]&&d.push({__typename:c});var g=new Set(r.selections);g.forEach(function(e){var r,v;if((0,y.LZ)(e,s)){if((0,h.My)(e)){var b=l.readField({fieldName:e.name.value,field:e,variables:a.variables,from:i},a),k=(0,h.u2)(e);void 0===b?p.Gw.added(e)||(t=f.merge(t,((r={})[k]="Can't find field '".concat(e.name.value,"' on ").concat((0,h.Yk)(i)?i.__ref+" object":"object "+JSON.stringify(i,null,2)),r))):(0,x.kJ)(b)?b=m(n.executeSubSelectedArray({field:e,array:b,enclosingRef:o,context:a}),k):e.selectionSet?null!=b&&(b=m(n.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:b,enclosingRef:(0,h.Yk)(b)?b:o,context:a}),k)):a.canonizeResults&&(b=n.canon.pass(b)),void 0!==b&&d.push(((v={})[k]=b,v))}else{var w=(0,u.hi)(e,a.fragmentMap);w&&l.fragmentMatches(w,c)&&w.selectionSet.selections.forEach(g.add,g)}}});var k={result:(0,v.bw)(d),missing:t},w=a.canonizeResults?this.canon.admit(k):(0,b.J)(k);return w.result&&this.knownResults.set(w.result,r),w},e.prototype.execSubSelectedArrayImpl=function(e){var t,n=this,r=e.field,i=e.array,o=e.enclosingRef,s=e.context,l=new v.w0;function u(e,n){var r;return e.missing&&(t=l.merge(t,((r={})[n]=e.missing,r))),e.result}return r.selectionSet&&(i=i.filter(s.store.canRead)),i=i.map(function(e,t){return null===e?null:(0,x.kJ)(e)?u(n.executeSubSelectedArray({field:r,array:e,enclosingRef:o,context:s}),t):r.selectionSet?u(n.executeSelectionSet({selectionSet:r.selectionSet,objectOrReference:e,enclosingRef:(0,h.Yk)(e)?e:o,context:s}),t):(__DEV__&&function(e,t,n){if(!t.selectionSet){var r=new Set([n]);r.forEach(function(n){(0,k.s)(n)&&(__DEV__?(0,a.kG)(!(0,h.Yk)(n),"Missing selection set for object of type ".concat((0,x.jp)(e,n)," returned for query field ").concat(t.name.value)):(0,a.kG)(!(0,h.Yk)(n),5),Object.values(n).forEach(r.add,r))})}}(s.store,r,e),e)}),{result:s.canonizeResults?this.canon.admit(i):i,missing:t}},e}(),N=n(89732),I=n(43056),L=n(99635),B=n(17600),z=Object.create(null);function U(e){var t=JSON.stringify(e);return z[t]||(z[t]=Object.create(null))}function q(e){var t=U(e);return t.keyFieldsFn||(t.keyFieldsFn=function(t,n){var r=function(e,t){return n.readField(t,e)},i=n.keyObject=H(e,function(e){var i=W(n.storeObject,e,r);return void 0===i&&t!==n.storeObject&&x.RI.call(t,e[0])&&(i=W(t,e,V)),__DEV__?(0,a.kG)(void 0!==i,"Missing field '".concat(e.join("."),"' while extracting keyFields from ").concat(JSON.stringify(t))):(0,a.kG)(void 0!==i,2),i});return"".concat(n.typename,":").concat(JSON.stringify(i))})}function $(e){var t=U(e);return t.keyArgsFn||(t.keyArgsFn=function(t,n){var r=n.field,i=n.variables,o=n.fieldName,a=JSON.stringify(H(e,function(e){var n=e[0],o=n.charAt(0);if("@"===o){if(r&&(0,I.O)(r.directives)){var a=n.slice(1),s=r.directives.find(function(e){return e.name.value===a}),l=s&&(0,h.NC)(s,i);return l&&W(l,e.slice(1))}return}if("$"===o){var u=n.slice(1);if(i&&x.RI.call(i,u)){var c=e.slice(0);return c[0]=u,W(i,c)}return}if(t)return W(t,e)}));return(t||"{}"!==a)&&(o+=":"+a),o})}function H(e,t){var n=new v.w0;return(function e(t){var n=U(t);if(!n.paths){var r=n.paths=[],i=[];t.forEach(function(n,o){(0,x.kJ)(n)?(e(n).forEach(function(e){return r.push(i.concat(e))}),i.length=0):(i.push(n),(0,x.kJ)(t[o+1])||(r.push(i.slice(0)),i.length=0))})}return n.paths})(e).reduce(function(e,r){var i,o=t(r);if(void 0!==o){for(var a=r.length-1;a>=0;--a)(i={})[r[a]]=o,o=i;e=n.merge(e,o)}return e},Object.create(null))}function V(e,t){return e[t]}function W(e,t,n){return n=n||V,function e(t){return(0,k.s)(t)?(0,x.kJ)(t)?t.map(e):H(Object.keys(t).sort(),function(e){return W(t,e)}):t}(t.reduce(function e(t,r){return(0,x.kJ)(t)?t.map(function(t){return e(t,r)}):t&&n(t,r)},e))}function G(e){return void 0!==e.args?e.args:e.field?(0,h.NC)(e.field,e.variables):null}h.PT.setStringify(R.B);var Y=function(){},Z=function(e,t){return t.fieldName},K=function(e,t,n){return(0,n.mergeObjects)(e,t)},J=function(e,t){return t},X=function(){function e(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=(0,o.pi)({dataIdFromObject:x.uG},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return e.prototype.identify=function(e,t){var n,r,i=this,a=t&&(t.typename||(null===(n=t.storeObject)||void 0===n?void 0:n.__typename))||e.__typename;if(a===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var s=t&&t.storeObject||e,l=(0,o.pi)((0,o.pi)({},t),{typename:a,storeObject:s,readField:t&&t.readField||function(){var e=ee(arguments,s);return i.readField(e,{store:i.cache.data,variables:e.variables})}}),u=a&&this.getTypePolicy(a),c=u&&u.keyFn||this.config.dataIdFromObject;c;){var d=c(e,l);if((0,x.kJ)(d))c=q(d);else{r=d;break}}return r=r?String(r):void 0,l.keyObject?[r,l.keyObject]:[r]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach(function(n){var r=e[n],i=r.queryType,a=r.mutationType,s=r.subscriptionType,l=(0,o._T)(r,["queryType","mutationType","subscriptionType"]);i&&t.setRootTypename("Query",n),a&&t.setRootTypename("Mutation",n),s&&t.setRootTypename("Subscription",n),x.RI.call(t.toBeAdded,n)?t.toBeAdded[n].push(l):t.toBeAdded[n]=[l]})},e.prototype.updateTypePolicy=function(e,t){var n=this,r=this.getTypePolicy(e),i=t.keyFields,o=t.fields;function a(e,t){e.merge="function"==typeof t?t:!0===t?K:!1===t?J:e.merge}a(r,t.merge),r.keyFn=!1===i?Y:(0,x.kJ)(i)?q(i):"function"==typeof i?i:r.keyFn,o&&Object.keys(o).forEach(function(t){var r=n.getFieldPolicy(e,t,!0),i=o[t];if("function"==typeof i)r.read=i;else{var s=i.keyArgs,l=i.read,u=i.merge;r.keyFn=!1===s?Z:(0,x.kJ)(s)?$(s):"function"==typeof s?s:r.keyFn,"function"==typeof l&&(r.read=l),a(r,u)}r.read&&r.merge&&(r.keyFn=r.keyFn||Z)})},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var n="ROOT_"+e.toUpperCase(),r=this.rootTypenamesById[n];t!==r&&(__DEV__?(0,a.kG)(!r||r===e,"Cannot change root ".concat(e," __typename more than once")):(0,a.kG)(!r||r===e,3),r&&delete this.rootIdsByTypename[r],this.rootIdsByTypename[t]=n,this.rootTypenamesById[n]=t)},e.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach(function(n){t.getSupertypeSet(n,!0),e[n].forEach(function(e){t.getSupertypeSet(e,!0).add(n);var r=e.match(x.$O);r&&r[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))})})},e.prototype.getTypePolicy=function(e){var t=this;if(!x.RI.call(this.typePolicies,e)){var n=this.typePolicies[e]=Object.create(null);n.fields=Object.create(null);var r=this.supertypeMap.get(e);r&&r.size&&r.forEach(function(e){var r=t.getTypePolicy(e),i=r.fields;Object.assign(n,(0,o._T)(r,["fields"])),Object.assign(n.fields,i)})}var i=this.toBeAdded[e];return i&&i.length&&i.splice(0).forEach(function(n){t.updateTypePolicy(e,n)}),this.typePolicies[e]},e.prototype.getFieldPolicy=function(e,t,n){if(e){var r=this.getTypePolicy(e).fields;return r[t]||n&&(r[t]=Object.create(null))}},e.prototype.getSupertypeSet=function(e,t){var n=this.supertypeMap.get(e);return!n&&t&&this.supertypeMap.set(e,n=new Set),n},e.prototype.fragmentMatches=function(e,t,n,r){var i=this;if(!e.typeCondition)return!0;if(!t)return!1;var o=e.typeCondition.name.value;if(t===o)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(o))for(var s=this.getSupertypeSet(t,!0),l=[s],u=function(e){var t=i.getSupertypeSet(e,!1);t&&t.size&&0>l.indexOf(t)&&l.push(t)},c=!!(n&&this.fuzzySubtypes.size),d=!1,h=0;h1?u:t}:(s=(0,o.pi)({},l),x.RI.call(s,"from")||(s.from=t)),__DEV__&&void 0===s.from&&__DEV__&&a.kG.warn("Undefined 'from' passed to readField with arguments ".concat((r=Array.from(e),i=(0,L.X)("stringifyForDisplay"),JSON.stringify(r,function(e,t){return void 0===t?i:t}).split(JSON.stringify(i)).join("")))),void 0===s.variables&&(s.variables=n),s}function et(e){return function(t,n){if((0,x.kJ)(t)||(0,x.kJ)(n))throw __DEV__?new a.ej("Cannot automatically merge arrays"):new a.ej(4);if((0,k.s)(t)&&(0,k.s)(n)){var r=e.getFieldValue(t,"__typename"),i=e.getFieldValue(n,"__typename");if(r&&i&&r!==i)return n;if((0,h.Yk)(t)&&(0,x.j)(n))return e.merge(t.__ref,n),t;if((0,x.j)(t)&&(0,h.Yk)(n))return e.merge(t,n.__ref),n;if((0,x.j)(t)&&(0,x.j)(n))return(0,o.pi)((0,o.pi)({},t),n)}return n}}function en(e,t,n){var r="".concat(t).concat(n),i=e.flavors.get(r);return i||e.flavors.set(r,i=e.clientOnly===t&&e.deferred===n?e:(0,o.pi)((0,o.pi)({},e),{clientOnly:t,deferred:n})),i}var er=function(){function e(e,t){this.cache=e,this.reader=t}return e.prototype.writeToStore=function(e,t){var n=this,r=t.query,i=t.result,s=t.dataId,c=t.variables,d=t.overwrite,p=(0,g.$H)(r),f=(0,x.ig)();c=(0,o.pi)((0,o.pi)({},(0,g.O4)(p)),c);var m={store:e,written:Object.create(null),merge:function(e,t){return f.merge(e,t)},variables:c,varString:(0,R.B)(c),fragmentMap:(0,u.F)((0,g.kU)(r)),overwrite:!!d,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map},v=this.processSelectionSet({result:i||Object.create(null),dataId:s,selectionSet:p.selectionSet,mergeTree:{map:new Map},context:m});if(!(0,h.Yk)(v))throw __DEV__?new a.ej("Could not identify object ".concat(JSON.stringify(i))):new a.ej(6);return m.incomingById.forEach(function(t,r){var i=t.storeObject,o=t.mergeTree,s=t.fieldNodeSet,u=(0,h.kQ)(r);if(o&&o.map.size){var c=n.applyMerges(o,u,i,m);if((0,h.Yk)(c))return;i=c}if(__DEV__&&!m.overwrite){var d=Object.create(null);s.forEach(function(e){e.selectionSet&&(d[e.name.value]=!0)});var p=function(e){var t=o&&o.map.get(e);return!!(t&&t.info&&t.info.merge)};Object.keys(i).forEach(function(e){!0!==d[(0,x.E_)(e)]||p(e)||function(e,t,n,r){var i=function(e){var t=r.getFieldValue(e,n);return"object"==typeof t&&t},o=i(e);if(o){var s=i(t);if(!(!s||(0,h.Yk)(o)||(0,l.D)(o,s)||Object.keys(o).every(function(e){return void 0!==r.getFieldValue(s,e)}))){var u=r.getFieldValue(e,"__typename")||r.getFieldValue(t,"__typename"),c=(0,x.E_)(n),d="".concat(u,".").concat(c);if(!el.has(d)){el.add(d);var p=[];(0,x.kJ)(o)||(0,x.kJ)(s)||[o,s].forEach(function(e){var t=r.getFieldValue(e,"__typename");"string"!=typeof t||p.includes(t)||p.push(t)}),__DEV__&&a.kG.warn("Cache data may be lost when replacing the ".concat(c," field of a ").concat(u," object.\n\nTo address this problem (which is not a bug in Apollo Client), ").concat(p.length?"either ensure all objects of type "+p.join(" and ")+" have an ID or a custom merge function, or ":"","define a custom merge function for the ").concat(d," field, so InMemoryCache can safely merge these objects:\n\n existing: ").concat(JSON.stringify(o).slice(0,1e3),"\n incoming: ").concat(JSON.stringify(s).slice(0,1e3),"\n\nFor more information about these options, please refer to the documentation:\n\n * Ensuring entity objects have IDs: https://go.apollo.dev/c/generating-unique-identifiers\n * Defining custom merge functions: https://go.apollo.dev/c/merging-non-normalized-objects\n"))}}}}(u,i,e,m.store)})}e.merge(r,i)}),e.retain(v.__ref),v},e.prototype.processSelectionSet=function(e){var t=this,n=e.dataId,r=e.result,i=e.selectionSet,s=e.context,l=e.mergeTree,u=this.cache.policies,c=Object.create(null),d=n&&u.rootTypenamesById[n]||(0,h.qw)(r,i,s.fragmentMap)||n&&s.store.get(n,"__typename");"string"==typeof d&&(c.__typename=d);var f=function(){var e=ee(arguments,c,s.variables);if((0,h.Yk)(e.from)){var t=s.incomingById.get(e.from.__ref);if(t){var n=u.readField((0,o.pi)((0,o.pi)({},e),{from:t.storeObject}),s);if(void 0!==n)return n}}return u.readField(e,s)},m=new Set;this.flattenFields(i,r,s,d).forEach(function(e,n){var i,o=r[(0,h.u2)(n)];if(m.add(n),void 0!==o){var s=u.getStoreFieldName({typename:d,fieldName:n.name.value,field:n,variables:e.variables}),g=eo(l,s),v=t.processFieldValue(o,n,n.selectionSet?en(e,!1,!1):e,g),y=void 0;n.selectionSet&&((0,h.Yk)(v)||(0,x.j)(v))&&(y=f("__typename",v));var b=u.getMergeFunction(d,n.name.value,y);b?g.info={field:n,typename:d,merge:b}:es(l,s),c=e.merge(c,((i={})[s]=v,i))}else __DEV__&&!e.clientOnly&&!e.deferred&&!p.Gw.added(n)&&!u.getReadFunction(d,n.name.value)&&__DEV__&&a.kG.error("Missing field '".concat((0,h.u2)(n),"' while writing result ").concat(JSON.stringify(r,null,2)).substring(0,1e3))});try{var g=u.identify(r,{typename:d,selectionSet:i,fragmentMap:s.fragmentMap,storeObject:c,readField:f}),v=g[0],y=g[1];n=n||v,y&&(c=s.merge(c,y))}catch(e){if(!n)throw e}if("string"==typeof n){var b=(0,h.kQ)(n),k=s.written[n]||(s.written[n]=[]);if(k.indexOf(i)>=0||(k.push(i),this.reader&&this.reader.isFresh(r,b,i,s)))return b;var w=s.incomingById.get(n);return w?(w.storeObject=s.merge(w.storeObject,c),w.mergeTree=function e(t,n){if(t===n||!n||ea(n))return t;if(!t||ea(t))return n;var r=t.info&&n.info?(0,o.pi)((0,o.pi)({},t.info),n.info):t.info||n.info,i=t.map.size&&n.map.size,a={info:r,map:i?new Map:t.map.size?t.map:n.map};if(i){var s=new Set(n.map.keys());t.map.forEach(function(t,r){a.map.set(r,e(t,n.map.get(r))),s.delete(r)}),s.forEach(function(r){a.map.set(r,e(n.map.get(r),t.map.get(r)))})}return a}(w.mergeTree,l),m.forEach(function(e){return w.fieldNodeSet.add(e)})):s.incomingById.set(n,{storeObject:c,mergeTree:ea(l)?void 0:l,fieldNodeSet:m}),b}return c},e.prototype.processFieldValue=function(e,t,n,r){var i=this;return t.selectionSet&&null!==e?(0,x.kJ)(e)?e.map(function(e,o){var a=i.processFieldValue(e,t,n,eo(r,o));return es(r,o),a}):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:n,mergeTree:r}):__DEV__?(0,N.X)(e):e},e.prototype.flattenFields=function(e,t,n,r){void 0===r&&(r=(0,h.qw)(t,e,n.fragmentMap));var i=new Map,o=this.cache.policies,a=new w.B(!1);return function e(s,l){var c=a.lookup(s,l.clientOnly,l.deferred);c.visited||(c.visited=!0,s.selections.forEach(function(a){if((0,y.LZ)(a,n.variables)){var s=l.clientOnly,c=l.deferred;if(!(s&&c)&&(0,I.O)(a.directives)&&a.directives.forEach(function(e){var t=e.name.value;if("client"===t&&(s=!0),"defer"===t){var r=(0,h.NC)(e,n.variables);r&&!1===r.if||(c=!0)}}),(0,h.My)(a)){var d=i.get(a);d&&(s=s&&d.clientOnly,c=c&&d.deferred),i.set(a,en(n,s,c))}else{var p=(0,u.hi)(a,n.fragmentMap);p&&o.fragmentMatches(p,r,t,n.variables)&&e(p.selectionSet,en(n,s,c))}}}))}(e,n),i},e.prototype.applyMerges=function(e,t,n,r,i){var s=this;if(e.map.size&&!(0,h.Yk)(n)){var l,u,c=!(0,x.kJ)(n)&&((0,h.Yk)(t)||(0,x.j)(t))?t:void 0,d=n;c&&!i&&(i=[(0,h.Yk)(c)?c.__ref:c]);var p=function(e,t){return(0,x.kJ)(e)?"number"==typeof t?e[t]:void 0:r.store.getFieldValue(e,String(t))};e.map.forEach(function(e,t){var n=p(c,t),o=p(d,t);if(void 0!==o){i&&i.push(t);var l=s.applyMerges(e,n,o,r,i);l!==o&&(u=u||new Map).set(t,l),i&&(0,a.kG)(i.pop()===t)}}),u&&(n=(0,x.kJ)(d)?d.slice(0):(0,o.pi)({},d),u.forEach(function(e,t){n[t]=e}))}return e.info?this.cache.policies.runMergeFunction(t,n,e.info,r,i&&(l=r.store).getStorage.apply(l,i)):n},e}(),ei=[];function eo(e,t){var n=e.map;return n.has(t)||n.set(t,ei.pop()||{map:new Map}),n.get(t)}function ea(e){return!e||!(e.info||e.map.size)}function es(e,t){var n=e.map,r=n.get(t);r&&ea(r)&&(ei.push(r),n.delete(t))}var el=new Set,eu=function(e){function t(t){void 0===t&&(t={});var n=e.call(this)||this;return n.watches=new Set,n.typenameDocumentCache=new Map,n.makeVar=B.QS,n.txCount=0,n.config=(0,x.jS)(t),n.addTypename=!!n.config.addTypename,n.policies=new X({cache:n,dataIdFromObject:n.config.dataIdFromObject,possibleTypes:n.config.possibleTypes,typePolicies:n.config.typePolicies}),n.init(),n}return(0,o.ZT)(t,e),t.prototype.init=function(){var e=this.data=new D.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},t.prototype.resetResultCache=function(e){var t=this,n=this.storeReader;this.storeWriter=new er(this,this.storeReader=new F({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:(0,x.lg)(this.config),canon:e?void 0:n&&n.canon})),this.maybeBroadcastWatch=(0,s.re)(function(e,n){return t.broadcastWatch(e,n)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var n=e.optimistic?t.optimisticData:t.data;if(P(n)){var r=e.optimistic,i=e.rootId,o=e.variables;return n.makeCacheKey(e.query,e.callback,(0,R.B)({optimistic:r,rootId:i,variables:o}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(e){return e.resetCaching()})},t.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},t.prototype.read=function(e){var t=e.returnPartialData;try{return this.storeReader.diffQueryAgainstStore((0,o.pi)((0,o.pi)({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:void 0!==t&&t})).result||null}catch(e){if(e instanceof d)return null;throw e}},t.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.modify=function(e){if(x.RI.call(e,"id")&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore((0,o.pi)((0,o.pi)({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(e){var t=this;return this.watches.size||(0,B._v)(this),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){t.watches.delete(e)&&!t.watches.size&&(0,B.li)(t),t.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){R.B.reset();var t=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),t},t.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},t.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},t.prototype.identify=function(e){if((0,h.Yk)(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(e){__DEV__&&a.kG.warn(e)}},t.prototype.evict=function(e){if(!e.id){if(x.RI.call(e,"id"))return!1;e=(0,o.pi)((0,o.pi)({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.reset=function(e){var t=this;return this.init(),R.B.reset(),e&&e.discardWatches?(this.watches.forEach(function(e){return t.maybeBroadcastWatch.forget(e)}),this.watches.clear(),(0,B.li)(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},t.prototype.batch=function(e){var t,n=this,r=e.update,i=e.optimistic,a=void 0===i||i,s=e.removeOptimistic,l=e.onWatchUpdated,u=function(e){var i=n.data,o=n.optimisticData;++n.txCount,e&&(n.data=n.optimisticData=e);try{return t=r(n)}finally{--n.txCount,n.data=i,n.optimisticData=o}},c=new Set;return l&&!this.txCount&&this.broadcastWatches((0,o.pi)((0,o.pi)({},e),{onWatchUpdated:function(e){return c.add(e),!1}})),"string"==typeof a?this.optimisticData=this.optimisticData.addLayer(a,u):!1===a?u(this.data):u(),"string"==typeof s&&(this.optimisticData=this.optimisticData.removeLayer(s)),l&&c.size?(this.broadcastWatches((0,o.pi)((0,o.pi)({},e),{onWatchUpdated:function(e,t){var n=l.call(this,e,t);return!1!==n&&c.delete(e),n}})),c.size&&c.forEach(function(e){return n.maybeBroadcastWatch.dirty(e)})):this.broadcastWatches(e),t},t.prototype.performTransaction=function(e,t){return this.batch({update:e,optimistic:t||null!==t})},t.prototype.transformDocument=function(e){if(this.addTypename){var t=this.typenameDocumentCache.get(e);return t||(t=(0,p.Gw)(e),this.typenameDocumentCache.set(e,t),this.typenameDocumentCache.set(t,t)),t}return e},t.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach(function(n){return t.maybeBroadcastWatch(n,e)})},t.prototype.broadcastWatch=function(e,t){var n=e.lastDiff,r=this.diff(e);(!t||(e.optimistic&&"string"==typeof t.optimistic&&(r.fromOptimisticTransaction=!0),!t.onWatchUpdated||!1!==t.onWatchUpdated.call(this,e,r,n)))&&(n&&(0,l.D)(n.result,r.result)||e.callback(e.lastDiff=r,n))},t}(c)},51420:function(e,t,n){"use strict";n.d(t,{B:function(){return d},h:function(){return c}});var r,i,o=n(5163);n(19563);var a=n(3985),s=n(45931),l=n(43869),u=n(15397),c=function(){function e(){this.known=new(l.sy?WeakSet:Set),this.pool=new a.B(l.mr),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return(0,s.s)(e)&&this.known.has(e)},e.prototype.pass=function(e){if((0,s.s)(e)){var t=(0,s.s)(e)?(0,u.kJ)(e)?e.slice(0):(0,o.pi)({__proto__:Object.getPrototypeOf(e)},e):e;return this.passes.set(t,e),t}return e},e.prototype.admit=function(e){var t=this;if((0,s.s)(e)){var n=this.passes.get(e);if(n)return n;switch(Object.getPrototypeOf(e)){case Array.prototype:if(this.known.has(e))break;var r=e.map(this.admit,this),i=this.pool.lookupArray(r);return!i.array&&(this.known.add(i.array=r),__DEV__&&Object.freeze(r)),i.array;case null:case Object.prototype:if(this.known.has(e))break;var o=Object.getPrototypeOf(e),a=[o],l=this.sortedKeys(e);a.push(l.json);var u=a.length;l.sorted.forEach(function(n){a.push(t.admit(e[n]))});var i=this.pool.lookupArray(a);if(!i.object){var c=i.object=Object.create(o);this.known.add(c),l.sorted.forEach(function(e,t){c[e]=a[u+t]}),__DEV__&&Object.freeze(c)}return i.object}}return e},e.prototype.sortedKeys=function(e){var t=Object.keys(e),n=this.pool.lookupArray(t);if(!n.keys){t.sort();var r=JSON.stringify(t);(n.keys=this.keysByJSON.get(r))||this.keysByJSON.set(r,n.keys={sorted:t,json:r})}return n.keys},e}(),d=Object.assign(function(e){if((0,s.s)(e)){void 0===r&&h();var t=r.admit(e),n=i.get(t);return void 0===n&&i.set(t,n=JSON.stringify(t)),n}return JSON.stringify(e)},{reset:h});function h(){r=new c,i=new(l.mr?WeakMap:Map)}},17600:function(e,t,n){"use strict";n.d(t,{QS:function(){return u},_v:function(){return l},ab:function(){return i},li:function(){return s}});var r=n(88438),i=new(n(62139)).g7,o=new WeakMap;function a(e){var t=o.get(e);return t||o.set(e,t={vars:new Set,dep:(0,r.dP)()}),t}function s(e){a(e).vars.forEach(function(t){return t.forgetCache(e)})}function l(e){a(e).vars.forEach(function(t){return t.attachCache(e)})}function u(e){var t=new Set,n=new Set,r=function(s){if(arguments.length>0){if(e!==s){e=s,t.forEach(function(e){a(e).dep.dirty(r),e.broadcastWatches&&e.broadcastWatches()});var l=Array.from(n);n.clear(),l.forEach(function(t){return t(e)})}}else{var u=i.getValue();u&&(o(u),a(u).dep(r))}return e};r.onNextChange=function(e){return n.add(e),function(){n.delete(e)}};var o=r.attachCache=function(e){return t.add(e),a(e).vars.add(r),r};return r.forgetCache=function(e){return t.delete(e)},r}},44719:function(e,t,n){"use strict";n.d(t,{f:function(){return em}});var r=n(5163),i=n(19563),o=n(33957),a=o.i.execute,s=n(58867),l=n(12129),u=function(e,t){var n;try{n=JSON.stringify(e)}catch(e){var r=__DEV__?new i.ej("Network request failed. ".concat(t," is not serializable: ").concat(e.message)):new i.ej(21);throw r.parseError=e,r}return n},c=function(e,t,n){var r=Error(n);throw r.name="ServerError",r.response=e,r.statusCode=e.status,r.result=t,r},d=Object.prototype.hasOwnProperty,h=function(e){if(!e&&"undefined"==typeof fetch)throw __DEV__?new i.ej("\n\"fetch\" has not been found globally and no fetcher has been configured. To fix this, install a fetch package (like https://www.npmjs.com/package/cross-fetch), instantiate the fetcher, and pass it into your HttpLink constructor. For example:\n\nimport fetch from 'cross-fetch';\nimport { ApolloClient, HttpLink } from '@apollo/client';\nconst client = new ApolloClient({\n link: new HttpLink({ uri: '/graphql', fetch })\n});\n "):new i.ej(20)},p=n(85717);function f(e){return(0,s.Vn)(e,{leave:m})}var m={Name:function(e){return e.value},Variable:function(e){return"$"+e.name},Document:function(e){return v(e.definitions,"\n\n")+"\n"},OperationDefinition:function(e){var t=e.operation,n=e.name,r=b("(",v(e.variableDefinitions,", "),")"),i=v(e.directives," "),o=e.selectionSet;return n||i||r||"query"!==t?v([t,v([n,r]),i,o]," "):o},VariableDefinition:function(e){var t=e.variable,n=e.type,r=e.defaultValue,i=e.directives;return t+": "+n+b(" = ",r)+b(" ",v(i," "))},SelectionSet:function(e){return y(e.selections)},Field:function(e){var t=e.alias,n=e.name,r=e.arguments,i=e.directives,o=e.selectionSet,a=b("",t,": ")+n,s=a+b("(",v(r,", "),")");return s.length>80&&(s=a+b("(\n",k(v(r,"\n")),"\n)")),v([s,v(i," "),o]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+b(" ",v(e.directives," "))},InlineFragment:function(e){var t=e.typeCondition,n=e.directives,r=e.selectionSet;return v(["...",b("on ",t),v(n," "),r]," ")},FragmentDefinition:function(e){var t=e.name,n=e.typeCondition,r=e.variableDefinitions,i=e.directives,o=e.selectionSet;return"fragment ".concat(t).concat(b("(",v(r,", "),")")," ")+"on ".concat(n," ").concat(b("",v(i," ")," "))+o},IntValue:function(e){return e.value},FloatValue:function(e){return e.value},StringValue:function(e,t){var n=e.value;return e.block?(0,p.LZ)(n,"description"===t?"":" "):JSON.stringify(n)},BooleanValue:function(e){return e.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(e){return e.value},ListValue:function(e){return"["+v(e.values,", ")+"]"},ObjectValue:function(e){return"{"+v(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+b("(",v(e.arguments,", "),")")},NamedType:function(e){return e.name},ListType:function(e){return"["+e.type+"]"},NonNullType:function(e){return e.type+"!"},SchemaDefinition:g(function(e){var t=e.directives,n=e.operationTypes;return v(["schema",v(t," "),y(n)]," ")}),OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:g(function(e){return v(["scalar",e.name,v(e.directives," ")]," ")}),ObjectTypeDefinition:g(function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return v(["type",t,b("implements ",v(n," & ")),v(r," "),y(i)]," ")}),FieldDefinition:g(function(e){var t=e.name,n=e.arguments,r=e.type,i=e.directives;return t+(x(n)?b("(\n",k(v(n,"\n")),"\n)"):b("(",v(n,", "),")"))+": "+r+b(" ",v(i," "))}),InputValueDefinition:g(function(e){var t=e.name,n=e.type,r=e.defaultValue,i=e.directives;return v([t+": "+n,b("= ",r),v(i," ")]," ")}),InterfaceTypeDefinition:g(function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return v(["interface",t,b("implements ",v(n," & ")),v(r," "),y(i)]," ")}),UnionTypeDefinition:g(function(e){var t=e.name,n=e.directives,r=e.types;return v(["union",t,v(n," "),r&&0!==r.length?"= "+v(r," | "):""]," ")}),EnumTypeDefinition:g(function(e){var t=e.name,n=e.directives,r=e.values;return v(["enum",t,v(n," "),y(r)]," ")}),EnumValueDefinition:g(function(e){return v([e.name,v(e.directives," ")]," ")}),InputObjectTypeDefinition:g(function(e){var t=e.name,n=e.directives,r=e.fields;return v(["input",t,v(n," "),y(r)]," ")}),DirectiveDefinition:g(function(e){var t=e.name,n=e.arguments,r=e.repeatable,i=e.locations;return"directive @"+t+(x(n)?b("(\n",k(v(n,"\n")),"\n)"):b("(",v(n,", "),")"))+(r?" repeatable":"")+" on "+v(i," | ")}),SchemaExtension:function(e){var t=e.directives,n=e.operationTypes;return v(["extend schema",v(t," "),y(n)]," ")},ScalarTypeExtension:function(e){return v(["extend scalar",e.name,v(e.directives," ")]," ")},ObjectTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return v(["extend type",t,b("implements ",v(n," & ")),v(r," "),y(i)]," ")},InterfaceTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return v(["extend interface",t,b("implements ",v(n," & ")),v(r," "),y(i)]," ")},UnionTypeExtension:function(e){var t=e.name,n=e.directives,r=e.types;return v(["extend union",t,v(n," "),r&&0!==r.length?"= "+v(r," | "):""]," ")},EnumTypeExtension:function(e){var t=e.name,n=e.directives,r=e.values;return v(["extend enum",t,v(n," "),y(r)]," ")},InputObjectTypeExtension:function(e){var t=e.name,n=e.directives,r=e.fields;return v(["extend input",t,v(n," "),y(r)]," ")}};function g(e){return function(t){return v([t.description,e(t)],"\n")}}function v(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(t=null==e?void 0:e.filter(function(e){return e}).join(n))&&void 0!==t?t:""}function y(e){return b("{\n",k(v(e,"\n")),"\n}")}function b(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return null!=t&&""!==t?e+t+n:""}function k(e){return b(" ",e.replace(/\n/g,"\n "))}function w(e){return -1!==e.indexOf("\n")}function x(e){return null!=e&&e.some(w)}var _={http:{includeQuery:!0,includeExtensions:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},S=function(e,t){return t(e)},E=function(){if("undefined"==typeof AbortController)return{controller:!1,signal:!1};var e=new AbortController,t=e.signal;return{controller:e,signal:t}};function D(e){return new l.y(function(t){t.error(e)})}var C=(0,i.wY)(function(){return fetch}),j=function(e){void 0===e&&(e={});var t=e.uri,n=void 0===t?"/graphql":t,a=e.fetch,p=e.print,m=void 0===p?S:p,g=e.includeExtensions,v=e.useGETForQueries,y=e.includeUnusedVariables,b=void 0!==y&&y,k=(0,r._T)(e,["uri","fetch","print","includeExtensions","useGETForQueries","includeUnusedVariables"]);__DEV__&&h(a||C);var w={http:{includeExtensions:g},options:k.fetchOptions,credentials:k.credentials,headers:k.headers};return new o.i(function(e){var t,o,h,p=(t=e,o=n,t.getContext().uri||("function"==typeof o?o(t):o||"/graphql")),g=e.getContext(),y={};if(g.clientAwareness){var k=g.clientAwareness,x=k.name,S=k.version;x&&(y["apollographql-client-name"]=x),S&&(y["apollographql-client-version"]=S)}var j=(0,r.pi)((0,r.pi)({},y),g.headers),O=function(e,t){for(var n=[],i=2;i=300&&c(t,n,"Response not successful: Received status code ".concat(t.status)),Array.isArray(n)||d.call(n,"data")||d.call(n,"errors")||c(t,n,"Server response was missing for query '".concat(Array.isArray(e)?e.map(function(e){return e.operationName}):e.operationName,"'.")),n})}).then(function(e){return t.next(e),t.complete(),e}).catch(function(e){"AbortError"!==e.name&&(e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e))}),function(){h&&h.abort()}})})},O=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,j(t).request)||this;return n.options=t,n}return(0,r.ZT)(t,e),t}(o.i),T=n(38229),A=n(51420),P=n(43869);function R(e,t,n){return new l.y(function(r){var i=r.next,o=r.error,a=r.complete,s=0,l=!1,u={then:function(e){return new Promise(function(t){return t(e())})}};function c(e,t){return e?function(t){++s;var n=function(){return e(t)};u=u.then(n,n).then(function(e){--s,i&&i.call(r,e),l&&d.complete()},function(e){throw--s,e}).catch(function(e){o&&o.call(r,e)})}:function(e){return t&&t.call(r,e)}}var d={next:c(t,i),error:c(n,o),complete:function(){l=!0,!s&&a&&a.call(r)}},h=e.subscribe(d);return function(){return h.unsubscribe()}})}function M(e){return e.errors&&e.errors.length>0||!1}var F=n(86607),N=n(77488),I=n(9572),L=n(72),B=n(45931),z=n(99635);function U(e,t,n){var r=[];e.forEach(function(e){return e[t]&&r.push(e)}),r.forEach(function(e){return e[t](n)})}function q(e){function t(t){Object.defineProperty(e,t,{value:l.y})}return P.aS&&Symbol.species&&t(Symbol.species),t("@@species"),e}function $(e){return e&&"function"==typeof e.then}var H=function(e){function t(t){var n=e.call(this,function(e){return n.addObserver(e),function(){return n.removeObserver(e)}})||this;return n.observers=new Set,n.addCount=0,n.promise=new Promise(function(e,t){n.resolve=e,n.reject=t}),n.handlers={next:function(e){null!==n.sub&&(n.latest=["next",e],U(n.observers,"next",e))},error:function(e){var t=n.sub;null!==t&&(t&&setTimeout(function(){return t.unsubscribe()}),n.sub=null,n.latest=["error",e],n.reject(e),U(n.observers,"error",e))},complete:function(){var e=n.sub;if(null!==e){var t=n.sources.shift();t?$(t)?t.then(function(e){return n.sub=e.subscribe(n.handlers)}):n.sub=t.subscribe(n.handlers):(e&&setTimeout(function(){return e.unsubscribe()}),n.sub=null,n.latest&&"next"===n.latest[0]?n.resolve(n.latest[1]):n.resolve(),U(n.observers,"complete"))}}},n.cancel=function(e){n.reject(e),n.sources=[],n.handlers.complete()},n.promise.catch(function(e){}),"function"==typeof t&&(t=[new l.y(t)]),$(t)?t.then(function(e){return n.start(e)},n.handlers.error):n.start(t),n}return(0,r.ZT)(t,e),t.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},t.prototype.deliverLastMessage=function(e){if(this.latest){var t=this.latest[0],n=e[t];n&&n.call(e,this.latest[1]),null===this.sub&&"next"===t&&e.complete&&e.complete()}},t.prototype.addObserver=function(e){!this.observers.has(e)&&(this.deliverLastMessage(e),this.observers.add(e),++this.addCount)},t.prototype.removeObserver=function(e,t){this.observers.delete(e)&&--this.addCount<1&&!t&&this.handlers.complete()},t.prototype.cleanup=function(e){var t=this,n=!1,r=function(){n||(n=!0,t.observers.delete(i),e())},i={next:r,error:r,complete:r},o=this.addCount;this.addObserver(i),this.addCount=o},t}(l.y);q(H);var V=n(43056),W=n(45832),G=n(64368),Y=n(89732),Z=n(9428),K=Object.assign,J=Object.hasOwnProperty,X=function(e){function t(t){var n=t.queryManager,i=t.queryInfo,o=t.options,a=e.call(this,function(e){try{var t=e._subscription._observer;t&&!t.error&&(t.error=ee)}catch(e){}var n=!a.observers.size;a.observers.add(e);var r=a.last;return r&&r.error?e.error&&e.error(r.error):r&&r.result&&e.next&&e.next(r.result),n&&a.reobserve().catch(function(){}),function(){a.observers.delete(e)&&!a.observers.size&&a.tearDownQuery()}})||this;a.observers=new Set,a.subscriptions=new Set,a.queryInfo=i,a.queryManager=n,a.isTornDown=!1;var s=n.defaultOptions.watchQuery,l=(void 0===s?{}:s).fetchPolicy,u=void 0===l?"cache-first":l,c=o.fetchPolicy,d=void 0===c?u:c,h=o.initialFetchPolicy,p=void 0===h?"standby"===d?u:d:h;a.options=(0,r.pi)((0,r.pi)({},o),{initialFetchPolicy:p,fetchPolicy:d}),a.queryId=i.queryId||n.generateQueryId();var f=(0,F.$H)(a.query);return a.queryName=f&&f.name&&f.name.value,a}return(0,r.ZT)(t,e),Object.defineProperty(t.prototype,"query",{get:function(){return this.queryManager.transform(this.options.query).document},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var e=this;return new Promise(function(t,n){var r={next:function(n){t(n),e.observers.delete(r),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout(function(){i.unsubscribe()},0)},error:n},i=e.subscribe(r)})},t.prototype.getCurrentResult=function(e){void 0===e&&(e=!0);var t=this.getLastResult(!0),n=this.queryInfo.networkStatus||t&&t.networkStatus||G.I.ready,i=(0,r.pi)((0,r.pi)({},t),{loading:(0,G.O)(n),networkStatus:n}),o=this.options.fetchPolicy,a=void 0===o?"cache-first":o;if("network-only"===a||"no-cache"===a||"standby"===a||this.queryManager.transform(this.options.query).hasForcedResolvers);else{var s=this.queryInfo.getDiff();(s.complete||this.options.returnPartialData)&&(i.data=s.result),(0,T.D)(i.data,{})&&(i.data=void 0),s.complete?(delete i.partial,s.complete&&i.networkStatus===G.I.loading&&("cache-first"===a||"cache-only"===a)&&(i.networkStatus=G.I.ready,i.loading=!1)):i.partial=!0,!__DEV__||s.complete||this.options.partialRefetch||i.loading||i.data||i.error||et(s.missing)}return e&&this.updateLastResult(i),i},t.prototype.isDifferentFromLastResult=function(e){return!this.last||!(0,T.D)(this.last.result,e)},t.prototype.getLast=function(e,t){var n=this.last;if(n&&n[e]&&(!t||(0,T.D)(n.variables,this.variables)))return n[e]},t.prototype.getLastResult=function(e){return this.getLast("result",e)},t.prototype.getLastError=function(e){return this.getLast("error",e)},t.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(e){var t,n={pollInterval:0},o=this.options.fetchPolicy;if("cache-and-network"===o?n.fetchPolicy=o:"no-cache"===o?n.fetchPolicy="no-cache":n.fetchPolicy="network-only",__DEV__&&e&&J.call(e,"variables")){var a=(0,F.iW)(this.query),s=a.variableDefinitions;(!s||!s.some(function(e){return"variables"===e.variable.name.value}))&&__DEV__&&i.kG.warn("Called refetch(".concat(JSON.stringify(e),") for query ").concat((null===(t=a.name)||void 0===t?void 0:t.value)||JSON.stringify(a),", which does not declare a $variables variable.\nDid you mean to call refetch(variables) instead of refetch({ variables })?"))}return e&&!(0,T.D)(this.options.variables,e)&&(n.variables=this.options.variables=(0,r.pi)((0,r.pi)({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(n,G.I.refetch)},t.prototype.fetchMore=function(e){var t=this,n=(0,r.pi)((0,r.pi)({},e.query?e:(0,r.pi)((0,r.pi)((0,r.pi)((0,r.pi)({},this.options),{query:this.query}),e),{variables:(0,r.pi)((0,r.pi)({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"}),i=this.queryManager.generateQueryId(),o=this.queryInfo,a=o.networkStatus;o.networkStatus=G.I.fetchMore,n.notifyOnNetworkStatusChange&&this.observe();var s=new Set;return this.queryManager.fetchQuery(i,n,G.I.fetchMore).then(function(r){return t.queryManager.removeQuery(i),o.networkStatus===G.I.fetchMore&&(o.networkStatus=a),t.queryManager.cache.batch({update:function(i){var o=e.updateQuery;o?i.updateQuery({query:t.query,variables:t.variables,returnPartialData:!0,optimistic:!1},function(e){return o(e,{fetchMoreResult:r.data,variables:n.variables})}):i.writeQuery({query:n.query,variables:n.variables,data:r.data})},onWatchUpdated:function(e){s.add(e.query)}}),r}).finally(function(){s.has(t.query)||Q(t)})},t.prototype.subscribeToMore=function(e){var t=this,n=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(n){var r=e.updateQuery;r&&t.updateQuery(function(e,t){return r(e,{subscriptionData:n,variables:t.variables})})},error:function(t){if(e.onError){e.onError(t);return}__DEV__&&i.kG.error("Unhandled GraphQL subscription error",t)}});return this.subscriptions.add(n),function(){t.subscriptions.delete(n)&&n.unsubscribe()}},t.prototype.setOptions=function(e){return this.reobserve(e)},t.prototype.setVariables=function(e){return(0,T.D)(this.variables,e)?this.observers.size?this.result():Promise.resolve():(this.options.variables=e,this.observers.size)?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:e},G.I.setVariables):Promise.resolve()},t.prototype.updateQuery=function(e){var t=this.queryManager,n=e(t.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});n&&(t.cache.writeQuery({query:this.options.query,data:n,variables:this.variables}),t.broadcastQueries())},t.prototype.startPolling=function(e){this.options.pollInterval=e,this.updatePolling()},t.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},t.prototype.applyNextFetchPolicy=function(e,t){if(t.nextFetchPolicy){var n=t.fetchPolicy,r=void 0===n?"cache-first":n,i=t.initialFetchPolicy,o=void 0===i?r:i;"standby"===r||("function"==typeof t.nextFetchPolicy?t.fetchPolicy=t.nextFetchPolicy(r,{reason:e,options:t,observable:this,initialFetchPolicy:o}):"variables-changed"===e?t.fetchPolicy=o:t.fetchPolicy=t.nextFetchPolicy)}return t.fetchPolicy},t.prototype.fetch=function(e,t){return this.queryManager.setObservableQuery(this),this.queryManager.fetchQueryObservable(this.queryId,e,t)},t.prototype.updatePolling=function(){var e=this;if(!this.queryManager.ssrMode){var t=this.pollingInfo,n=this.options.pollInterval;if(!n){t&&(clearTimeout(t.timeout),delete this.pollingInfo);return}if(!t||t.interval!==n){__DEV__?(0,i.kG)(n,"Attempted to start a polling query without a polling interval."):(0,i.kG)(n,10),(t||(this.pollingInfo={})).interval=n;var r=function(){e.pollingInfo&&((0,G.O)(e.queryInfo.networkStatus)?o():e.reobserve({fetchPolicy:"network-only"},G.I.poll).then(o,o))},o=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(r,t.interval))};o()}}},t.prototype.updateLastResult=function(e,t){return void 0===t&&(t=this.variables),this.last=(0,r.pi)((0,r.pi)({},this.last),{result:this.queryManager.assumeImmutableResults?e:(0,Y.X)(e),variables:t}),(0,V.O)(e.errors)||delete this.last.error,this.last},t.prototype.reobserve=function(e,t){var n=this;this.isTornDown=!1;var i=t===G.I.refetch||t===G.I.fetchMore||t===G.I.poll,o=this.options.variables,a=this.options.fetchPolicy,s=(0,Z.o)(this.options,e||{}),l=i?s:K(this.options,s);!i&&(this.updatePolling(),e&&e.variables&&!(0,T.D)(e.variables,o)&&"standby"!==l.fetchPolicy&&l.fetchPolicy===a&&(this.applyNextFetchPolicy("variables-changed",l),void 0===t&&(t=G.I.setVariables)));var u=l.variables&&(0,r.pi)({},l.variables),c=this.fetch(l,t),d={next:function(e){n.reportResult(e,u)},error:function(e){n.reportError(e,u)}};return i||(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=c,this.observer=d),c.addObserver(d),c.promise},t.prototype.observe=function(){this.reportResult(this.getCurrentResult(!1),this.variables)},t.prototype.reportResult=function(e,t){var n=this.getLastError();(n||this.isDifferentFromLastResult(e))&&((n||!e.partial||this.options.returnPartialData)&&this.updateLastResult(e,t),U(this.observers,"next",e))},t.prototype.reportError=function(e,t){var n=(0,r.pi)((0,r.pi)({},this.getLastResult()),{error:e,errors:e.graphQLErrors,networkStatus:G.I.error,loading:!1});this.updateLastResult(n,t),U(this.observers,"error",this.last.error=e)},t.prototype.hasObservers=function(){return this.observers.size>0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t}(l.y);function Q(e){var t=e.options,n=t.fetchPolicy,r=t.nextFetchPolicy;return"cache-and-network"===n||"network-only"===n?e.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(){return(this.nextFetchPolicy=r,"function"==typeof r)?r.apply(this,arguments):n}}):e.reobserve()}function ee(e){__DEV__&&i.kG.error("Unhandled error",e.message,e.stack)}function et(e){__DEV__&&e&&__DEV__&&i.kG.debug("Missing cache result fields: ".concat(JSON.stringify(e)),e)}q(X);var en=n(34529),er=n(18001),ei=n(17600),eo=function(){function e(e){var t=e.cache,n=e.client,r=e.resolvers,i=e.fragmentMatcher;this.cache=t,n&&(this.client=n),r&&this.addResolvers(r),i&&this.setFragmentMatcher(i)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach(function(e){t.resolvers=(0,en.Ee)(t.resolvers,e)}):this.resolvers=(0,en.Ee)(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){var t=e.document,n=e.remoteResult,i=e.context,o=e.variables,a=e.onlyRunForcedResolvers,s=void 0!==a&&a;return(0,r.mG)(this,void 0,void 0,function(){return(0,r.Jh)(this,function(e){return t?[2,this.resolveDocument(t,n.data,i,o,this.fragmentMatcher,s).then(function(e){return(0,r.pi)((0,r.pi)({},n),{data:e.result})})]:[2,n]})})},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return(0,I.FS)(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return(0,N.ob)(e)},e.prototype.prepareContext=function(e){var t=this.cache;return(0,r.pi)((0,r.pi)({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),(0,r.mG)(this,void 0,void 0,function(){return(0,r.Jh)(this,function(i){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(n),t).then(function(e){return(0,r.pi)((0,r.pi)({},t),e.exportedVariables)})]:[2,(0,r.pi)({},t)]})})},e.prototype.shouldForceResolvers=function(e){var t=!1;return(0,s.Vn)(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some(function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value})))return s.$_}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:(0,N.aL)(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t,n,i,o,a){return void 0===n&&(n={}),void 0===i&&(i={}),void 0===o&&(o=function(){return!0}),void 0===a&&(a=!1),(0,r.mG)(this,void 0,void 0,function(){var s,l,u,c,d,h,p,f,m;return(0,r.Jh)(this,function(g){return s=(0,F.p$)(e),l=(0,F.kU)(e),u=(0,er.F)(l),d=(c=s.operation)?c.charAt(0).toUpperCase()+c.slice(1):"Query",h=this,p=h.cache,f=h.client,m={fragmentMap:u,context:(0,r.pi)((0,r.pi)({},n),{cache:p,client:f}),variables:i,fragmentMatcher:o,defaultOperationType:d,exportedVariables:{},onlyRunForcedResolvers:a},[2,this.resolveSelectionSet(s.selectionSet,t,m).then(function(e){return{result:e,exportedVariables:m.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(e,t,n){return(0,r.mG)(this,void 0,void 0,function(){var o,a,s,l,u,c=this;return(0,r.Jh)(this,function(d){return o=n.fragmentMap,a=n.context,s=n.variables,l=[t],u=function(e){return(0,r.mG)(c,void 0,void 0,function(){var u,c;return(0,r.Jh)(this,function(r){return(0,I.LZ)(e,s)?(0,L.My)(e)?[2,this.resolveField(e,t,n).then(function(t){var n;void 0!==t&&l.push(((n={})[(0,L.u2)(e)]=t,n))})]:((0,L.Ao)(e)?u=e:(u=o[e.name.value],__DEV__?(0,i.kG)(u,"No fragment named ".concat(e.name.value)):(0,i.kG)(u,9)),u&&u.typeCondition&&(c=u.typeCondition.name.value,n.fragmentMatcher(t,c,a)))?[2,this.resolveSelectionSet(u.selectionSet,t,n).then(function(e){l.push(e)})]:[2]:[2]})})},[2,Promise.all(e.selections.map(u)).then(function(){return(0,en.bw)(l)})]})})},e.prototype.resolveField=function(e,t,n){return(0,r.mG)(this,void 0,void 0,function(){var i,o,a,s,l,u,c,d,h,p=this;return(0,r.Jh)(this,function(r){return i=n.variables,s=(o=e.name.value)!==(a=(0,L.u2)(e)),u=Promise.resolve(l=t[a]||t[o]),(!n.onlyRunForcedResolvers||this.shouldForceResolvers(e))&&(c=t.__typename||n.defaultOperationType,(d=this.resolvers&&this.resolvers[c])&&(h=d[s?o:a])&&(u=Promise.resolve(ei.ab.withValue(this.cache,h,[t,(0,L.NC)(e,i),n.context,{field:e,fragmentMap:n.fragmentMap}])))),[2,u.then(function(t){return(void 0===t&&(t=l),e.directives&&e.directives.forEach(function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach(function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(n.exportedVariables[e.value.value]=t)})}),e.selectionSet&&null!=t)?Array.isArray(t)?p.resolveSubSelectedArray(e,t,n):e.selectionSet?p.resolveSelectionSet(e.selectionSet,t,n):void 0:t})]})})},e.prototype.resolveSubSelectedArray=function(e,t,n){var r=this;return Promise.all(t.map(function(t){return null===t?null:Array.isArray(t)?r.resolveSubSelectedArray(e,t,n):e.selectionSet?r.resolveSelectionSet(e.selectionSet,t,n):void 0}))},e}(),ea=new(P.mr?WeakMap:Map);function es(e,t){var n=e[t];"function"==typeof n&&(e[t]=function(){return ea.set(e,(ea.get(e)+1)%1e15),n.apply(this,arguments)})}function el(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var eu=function(){function e(e,t){void 0===t&&(t=e.generateQueryId()),this.queryId=t,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.subscriptions=new Set,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var n=this.cache=e.cache;ea.has(n)||(ea.set(n,0),es(n,"evict"),es(n,"modify"),es(n,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||G.I.loading;return this.variables&&this.networkStatus!==G.I.loading&&!(0,T.D)(this.variables,e.variables)&&(t=G.I.setVariables),(0,T.D)(e.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:t}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},e.prototype.reset=function(){el(this),this.lastDiff=void 0,this.dirty=!1},e.prototype.getDiff=function(e){void 0===e&&(e=this.variables);var t=this.getDiffOptions(e);if(this.lastDiff&&(0,T.D)(t,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables=e);var n=this.observableQuery;if(n&&"no-cache"===n.options.fetchPolicy)return{complete:!1};var r=this.cache.diff(t);return this.updateLastDiff(r,t),r},e.prototype.updateLastDiff=function(e,t){this.lastDiff=e?{diff:e,options:t||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(e){var t;return void 0===e&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:null===(t=this.observableQuery)||void 0===t?void 0:t.options.canonizeResults}},e.prototype.setDiff=function(e){var t=this,n=this.lastDiff&&this.lastDiff.diff;this.updateLastDiff(e),this.dirty||(0,T.D)(n&&n.result,e&&e.result)||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return t.notify()},0)))},e.prototype.setObservableQuery=function(e){var t=this;e!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=e,e?(e.queryInfo=this,this.listeners.add(this.oqListener=function(){t.getDiff().fromOptimisticTransaction?e.observe():Q(e)})):delete this.oqListener)},e.prototype.notify=function(){var e=this;el(this),this.shouldNotify()&&this.listeners.forEach(function(t){return t(e)}),this.dirty=!1},e.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if((0,G.O)(this.networkStatus)&&this.observableQuery){var e=this.observableQuery.options.fetchPolicy;if("cache-only"!==e&&"cache-and-network"!==e)return!1}return!0},e.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=e.prototype.cancel,this.subscriptions.forEach(function(e){return e.unsubscribe()});var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){},e.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var n=this.observableQuery;if(!n||"no-cache"!==n.options.fetchPolicy){var i=(0,r.pi)((0,r.pi)({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});this.lastWatch&&(0,T.D)(i,this.lastWatch)||(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=i))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(e,t){var n=this.lastWrite;return!(n&&n.dmCount===ea.get(this.cache)&&(0,T.D)(t,n.variables)&&(0,T.D)(e.data,n.result.data))},e.prototype.markResult=function(e,t,n){var r=this;this.graphQLErrors=(0,V.O)(e.errors)?e.errors:[],this.reset(),"no-cache"===t.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(t.variables)):0!==n&&(ec(e,t.errorPolicy)?this.cache.performTransaction(function(i){if(r.shouldWrite(e,t.variables))i.writeQuery({query:r.document,data:e.data,variables:t.variables,overwrite:1===n}),r.lastWrite={result:e,variables:t.variables,dmCount:ea.get(r.cache)};else if(r.lastDiff&&r.lastDiff.diff.complete){e.data=r.lastDiff.diff.result;return}var o=r.getDiffOptions(t.variables),a=i.diff(o);r.stopped||r.updateWatch(t.variables),r.updateLastDiff(a,o),a.complete&&(e.data=a.result)}):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=G.I.ready},e.prototype.markError=function(e){return this.networkStatus=G.I.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function ec(e,t){void 0===t&&(t="none");var n="ignore"===t||"all"===t,r=!M(e);return!r&&n&&e.data&&(r=!0),r}var ed=Object.prototype.hasOwnProperty,eh=function(){function e(e){var t=e.cache,n=e.link,r=e.defaultOptions,i=e.queryDeduplication,o=e.onBroadcast,a=e.ssrMode,s=e.clientAwareness,l=e.localState,u=e.assumeImmutableResults;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(P.mr?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map,this.cache=t,this.link=n,this.defaultOptions=r||Object.create(null),this.queryDeduplication=void 0!==i&&i,this.clientAwareness=void 0===s?{}:s,this.localState=l||new eo({cache:t}),this.ssrMode=void 0!==a&&a,this.assumeImmutableResults=!!u,(this.onBroadcast=o)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var e=this;this.queries.forEach(function(t,n){e.stopQueryNoBroadcast(n)}),this.cancelPendingFetches(__DEV__?new i.ej("QueryManager stopped while query was in flight"):new i.ej(11))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach(function(t){return t(e)}),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){var t,n,o=e.mutation,a=e.variables,s=e.optimisticResponse,l=e.updateQueries,u=e.refetchQueries,c=void 0===u?[]:u,d=e.awaitRefetchQueries,h=void 0!==d&&d,p=e.update,f=e.onQueryUpdated,m=e.fetchPolicy,g=void 0===m?(null===(t=this.defaultOptions.mutate)||void 0===t?void 0:t.fetchPolicy)||"network-only":m,v=e.errorPolicy,y=void 0===v?(null===(n=this.defaultOptions.mutate)||void 0===n?void 0:n.errorPolicy)||"none":v,b=e.keepRootFields,k=e.context;return(0,r.mG)(this,void 0,void 0,function(){var e,t,n;return(0,r.Jh)(this,function(u){switch(u.label){case 0:if(__DEV__?(0,i.kG)(o,"mutation option is required. You must specify your GraphQL document in the mutation option."):(0,i.kG)(o,12),__DEV__?(0,i.kG)("network-only"===g||"no-cache"===g,"Mutations support only 'network-only' or 'no-cache' fetchPolicy strings. The default `network-only` behavior automatically writes mutation results to the cache. Passing `no-cache` skips the cache write."):(0,i.kG)("network-only"===g||"no-cache"===g,13),e=this.generateMutationId(),o=this.transform(o).document,a=this.getVariables(o,a),!this.transform(o).hasClientExports)return[3,2];return[4,this.localState.addExportedVariables(o,a,k)];case 1:a=u.sent(),u.label=2;case 2:return t=this.mutationStore&&(this.mutationStore[e]={mutation:o,variables:a,loading:!0,error:null}),s&&this.markMutationOptimistic(s,{mutationId:e,document:o,variables:a,fetchPolicy:g,errorPolicy:y,context:k,updateQueries:l,update:p,keepRootFields:b}),this.broadcastQueries(),n=this,[2,new Promise(function(i,u){return R(n.getObservableFromLink(o,(0,r.pi)((0,r.pi)({},k),{optimisticResponse:s}),a,!1),function(i){if(M(i)&&"none"===y)throw new W.c({graphQLErrors:i.errors});t&&(t.loading=!1,t.error=null);var u=(0,r.pi)({},i);return"function"==typeof c&&(c=c(u)),"ignore"===y&&M(u)&&delete u.errors,n.markMutationResult({mutationId:e,result:u,document:o,variables:a,fetchPolicy:g,errorPolicy:y,context:k,update:p,updateQueries:l,awaitRefetchQueries:h,refetchQueries:c,removeOptimistic:s?e:void 0,onQueryUpdated:f,keepRootFields:b})}).subscribe({next:function(e){n.broadcastQueries(),i(e)},error:function(r){t&&(t.loading=!1,t.error=r),s&&n.cache.removeOptimistic(e),n.broadcastQueries(),u(r instanceof W.c?r:new W.c({networkError:r}))}})})]}})})},e.prototype.markMutationResult=function(e,t){var n=this;void 0===t&&(t=this.cache);var i=e.result,o=[],a="no-cache"===e.fetchPolicy;if(!a&&ec(i,e.errorPolicy)){o.push({result:i.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables});var s=e.updateQueries;s&&this.queries.forEach(function(e,r){var a=e.observableQuery,l=a&&a.queryName;if(l&&ed.call(s,l)){var u=s[l],c=n.queries.get(r),d=c.document,h=c.variables,p=t.diff({query:d,variables:h,returnPartialData:!0,optimistic:!1}),f=p.result;if(p.complete&&f){var m=u(f,{mutationResult:i,queryName:d&&(0,F.rY)(d)||void 0,queryVariables:h});m&&o.push({result:m,dataId:"ROOT_QUERY",query:d,variables:h})}}})}if(o.length>0||e.refetchQueries||e.update||e.onQueryUpdated||e.removeOptimistic){var l=[];if(this.refetchQueries({updateCache:function(t){a||o.forEach(function(e){return t.write(e)});var s=e.update;if(s){if(!a){var l=t.diff({id:"ROOT_MUTATION",query:n.transform(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});l.complete&&(i=(0,r.pi)((0,r.pi)({},i),{data:l.result}))}s(t,i,{context:e.context,variables:e.variables})}a||e.keepRootFields||t.modify({id:"ROOT_MUTATION",fields:function(e,t){var n=t.fieldName,r=t.DELETE;return"__typename"===n?e:r}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach(function(e){return l.push(e)}),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(l).then(function(){return i})}return Promise.resolve(i)},e.prototype.markMutationOptimistic=function(e,t){var n=this,o="function"==typeof e?e(t.variables):e;return this.cache.recordOptimisticTransaction(function(e){try{n.markMutationResult((0,r.pi)((0,r.pi)({},t),{result:{data:o}}),e)}catch(e){__DEV__&&i.kG.error(e)}},t.mutationId)},e.prototype.fetchQuery=function(e,t,n){return this.fetchQueryObservable(e,t,n).promise},e.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach(function(t,n){e[n]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}}),e},e.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},e.prototype.transform=function(e){var t=this.transformCache;if(!t.has(e)){var n=this.cache.transformDocument(e),i=(0,N.Fo)(this.cache.transformForLink(n)),o=this.localState.clientQuery(n),a=i&&this.localState.serverQuery(i),s={document:n,hasClientExports:(0,I.mj)(n),hasForcedResolvers:this.localState.shouldForceResolvers(n),clientQuery:o,serverQuery:a,defaultVars:(0,F.O4)((0,F.$H)(n)),asQuery:(0,r.pi)((0,r.pi)({},n),{definitions:n.definitions.map(function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?(0,r.pi)((0,r.pi)({},e),{operation:"query"}):e})})},l=function(e){e&&!t.has(e)&&t.set(e,s)};l(e),l(n),l(o),l(a)}return t.get(e)},e.prototype.getVariables=function(e,t){return(0,r.pi)((0,r.pi)({},this.transform(e).defaultVars),t)},e.prototype.watchQuery=function(e){void 0===(e=(0,r.pi)((0,r.pi)({},e),{variables:this.getVariables(e.query,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var t=new eu(this),n=new X({queryManager:this,queryInfo:t,options:e});return this.queries.set(n.queryId,t),t.init({document:n.query,observableQuery:n,variables:n.variables}),n},e.prototype.query=function(e,t){var n=this;return void 0===t&&(t=this.generateQueryId()),__DEV__?(0,i.kG)(e.query,"query option is required. You must specify your GraphQL document in the query option."):(0,i.kG)(e.query,14),__DEV__?(0,i.kG)("Document"===e.query.kind,'You must wrap the query string in a "gql" tag.'):(0,i.kG)("Document"===e.query.kind,15),__DEV__?(0,i.kG)(!e.returnPartialData,"returnPartialData option only supported on watchQuery."):(0,i.kG)(!e.returnPartialData,16),__DEV__?(0,i.kG)(!e.pollInterval,"pollInterval option only supported on watchQuery."):(0,i.kG)(!e.pollInterval,17),this.fetchQuery(t,e).finally(function(){return n.stopQuery(t)})},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},e.prototype.clearStore=function(e){return void 0===e&&(e={discardWatches:!0}),this.cancelPendingFetches(__DEV__?new i.ej("Store reset while query was in flight (not completed in link chain)"):new i.ej(18)),this.queries.forEach(function(e){e.observableQuery?e.networkStatus=G.I.loading:e.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},e.prototype.getObservableQueries=function(e){var t=this;void 0===e&&(e="active");var n=new Map,o=new Map,a=new Set;return Array.isArray(e)&&e.forEach(function(e){"string"==typeof e?o.set(e,!1):(0,L.JW)(e)?o.set(t.transform(e).document,!1):(0,B.s)(e)&&e.query&&a.add(e)}),this.queries.forEach(function(t,r){var i=t.observableQuery,a=t.document;if(i){if("all"===e){n.set(r,i);return}var s=i.queryName;if("standby"===i.options.fetchPolicy||"active"===e&&!i.hasObservers())return;("active"===e||s&&o.has(s)||a&&o.has(a))&&(n.set(r,i),s&&o.set(s,!0),a&&o.set(a,!0))}}),a.size&&a.forEach(function(e){var o=(0,z.X)("legacyOneTimeQuery"),a=t.getQuery(o).init({document:e.query,variables:e.variables}),s=new X({queryManager:t,queryInfo:a,options:(0,r.pi)((0,r.pi)({},e),{fetchPolicy:"network-only"})});(0,i.kG)(s.queryId===o),a.setObservableQuery(s),n.set(o,s)}),__DEV__&&o.size&&o.forEach(function(e,t){!e&&__DEV__&&i.kG.warn("Unknown query ".concat("string"==typeof t?"named ":"").concat(JSON.stringify(t,null,2)," requested in refetchQueries options.include array"))}),n},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var n=[];return this.getObservableQueries(e?"all":"active").forEach(function(r,i){var o=r.options.fetchPolicy;r.resetLastResults(),(e||"standby"!==o&&"cache-only"!==o)&&n.push(r.refetch()),t.getQuery(i).setDiff(null)}),this.broadcastQueries(),Promise.all(n)},e.prototype.setObservableQuery=function(e){this.getQuery(e.queryId).setObservableQuery(e)},e.prototype.startGraphQLSubscription=function(e){var t=this,n=e.query,r=e.fetchPolicy,i=e.errorPolicy,o=e.variables,a=e.context,s=void 0===a?{}:a;n=this.transform(n).document,o=this.getVariables(n,o);var u=function(e){return t.getObservableFromLink(n,s,e).map(function(o){if("no-cache"!==r&&(ec(o,i)&&t.cache.write({query:n,result:o.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries()),M(o))throw new W.c({graphQLErrors:o.errors});return o})};if(this.transform(n).hasClientExports){var c=this.localState.addExportedVariables(n,o,s).then(u);return new l.y(function(e){var t=null;return c.then(function(n){return t=n.subscribe(e)},e.error),function(){return t&&t.unsubscribe()}})}return u(o)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){this.fetchCancelFns.delete(e),this.queries.has(e)&&(this.getQuery(e).stop(),this.queries.delete(e))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(e){return e.notify()})},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,n,i){var o,s,u=this;void 0===i&&(i=null!==(o=null==t?void 0:t.queryDeduplication)&&void 0!==o?o:this.queryDeduplication);var c=this.transform(e).serverQuery;if(c){var d=this.inFlightLinkObservables,h=this.link,p={query:c,variables:n,operationName:(0,F.rY)(c)||void 0,context:this.prepareContext((0,r.pi)((0,r.pi)({},t),{forceFetch:!i}))};if(t=p.context,i){var f=d.get(c)||new Map;d.set(c,f);var m=(0,A.B)(n);if(!(s=f.get(m))){var g=new H([a(h,p)]);f.set(m,s=g),g.cleanup(function(){f.delete(m)&&f.size<1&&d.delete(c)})}}else s=new H([a(h,p)])}else s=new H([l.y.of({data:{}})]),t=this.prepareContext(t);var v=this.transform(e).clientQuery;return v&&(s=R(s,function(e){return u.localState.runResolvers({document:v,remoteResult:e,context:t,variables:n})})),s},e.prototype.getResultsFromLink=function(e,t,n){var r=e.lastRequestId=this.generateRequestId();return R(this.getObservableFromLink(e.document,n.context,n.variables),function(i){var o=(0,V.O)(i.errors);if(r>=e.lastRequestId){if(o&&"none"===n.errorPolicy)throw e.markError(new W.c({graphQLErrors:i.errors}));e.markResult(i,n,t),e.markReady()}var a={data:i.data,loading:!1,networkStatus:G.I.ready};return o&&"ignore"!==n.errorPolicy&&(a.errors=i.errors,a.networkStatus=G.I.error),a},function(t){var n=(0,W.M)(t)?t:new W.c({networkError:t});throw r>=e.lastRequestId&&e.markError(n),n})},e.prototype.fetchQueryObservable=function(e,t,n){var r=this;void 0===n&&(n=G.I.loading);var i=this.transform(t.query).document,o=this.getVariables(i,t.variables),a=this.getQuery(e),s=this.defaultOptions.watchQuery,l=t.fetchPolicy,u=void 0===l?s&&s.fetchPolicy||"cache-first":l,c=t.errorPolicy,d=void 0===c?s&&s.errorPolicy||"none":c,h=t.returnPartialData,p=t.notifyOnNetworkStatusChange,f=t.context,m=Object.assign({},t,{query:i,variables:o,fetchPolicy:u,errorPolicy:d,returnPartialData:void 0!==h&&h,notifyOnNetworkStatusChange:void 0!==p&&p,context:void 0===f?{}:f}),g=function(e){m.variables=e;var i=r.fetchQueryByPolicy(a,m,n);return"standby"!==m.fetchPolicy&&i.length>0&&a.observableQuery&&a.observableQuery.applyNextFetchPolicy("after-fetch",t),i},v=function(){return r.fetchCancelFns.delete(e)};this.fetchCancelFns.set(e,function(e){v(),setTimeout(function(){return y.cancel(e)})});var y=new H(this.transform(m.query).hasClientExports?this.localState.addExportedVariables(m.query,m.variables,m.context).then(g):g(m.variables));return y.promise.then(v,v),y},e.prototype.refetchQueries=function(e){var t=this,n=e.updateCache,r=e.include,i=e.optimistic,o=void 0!==i&&i,a=e.removeOptimistic,s=void 0===a?o?(0,z.X)("refetchQueries"):void 0:a,l=e.onQueryUpdated,u=new Map;r&&this.getObservableQueries(r).forEach(function(e,n){u.set(n,{oq:e,lastDiff:t.getQuery(n).getDiff()})});var c=new Map;return n&&this.cache.batch({update:n,optimistic:o&&s||!1,removeOptimistic:s,onWatchUpdated:function(e,t,n){var r=e.watcher instanceof eu&&e.watcher.observableQuery;if(r){if(l){u.delete(r.queryId);var i=l(r,t,n);return!0===i&&(i=r.refetch()),!1!==i&&c.set(r,i),i}null!==l&&u.set(r.queryId,{oq:r,lastDiff:n,diff:t})}}}),u.size&&u.forEach(function(e,n){var r,i=e.oq,o=e.lastDiff,a=e.diff;if(l){if(!a){var s=i.queryInfo;s.reset(),a=s.getDiff()}r=l(i,a,o)}l&&!0!==r||(r=i.refetch()),!1!==r&&c.set(i,r),n.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(n)}),s&&this.cache.removeOptimistic(s),c},e.prototype.fetchQueryByPolicy=function(e,t,n){var i=this,o=t.query,a=t.variables,s=t.fetchPolicy,u=t.refetchWritePolicy,c=t.errorPolicy,d=t.returnPartialData,h=t.context,p=t.notifyOnNetworkStatusChange,f=e.networkStatus;e.init({document:this.transform(o).document,variables:a,networkStatus:n});var m=function(){return e.getDiff(a)},g=function(t,n){void 0===n&&(n=e.networkStatus||G.I.loading);var s=t.result;!__DEV__||d||(0,T.D)(s,{})||et(t.missing);var u=function(e){return l.y.of((0,r.pi)({data:e,loading:(0,G.O)(n),networkStatus:n},t.complete?null:{partial:!0}))};return s&&i.transform(o).hasForcedResolvers?i.localState.runResolvers({document:o,remoteResult:{data:s},context:h,variables:a,onlyRunForcedResolvers:!0}).then(function(e){return u(e.data||void 0)}):u(s)},v="no-cache"===s?0:n===G.I.refetch&&"merge"!==u?1:2,y=function(){return i.getResultsFromLink(e,v,{variables:a,context:h,fetchPolicy:s,errorPolicy:c})},b=p&&"number"==typeof f&&f!==n&&(0,G.O)(n);switch(s){default:case"cache-first":var k=m();if(k.complete)return[g(k,e.markReady())];if(d||b)return[g(k),y()];return[y()];case"cache-and-network":var k=m();if(k.complete||d||b)return[g(k),y()];return[y()];case"cache-only":return[g(m(),e.markReady())];case"network-only":if(b)return[g(m()),y()];return[y()];case"no-cache":if(b)return[g(e.getDiff()),y()];return[y()];case"standby":return[]}},e.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new eu(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return(0,r.pi)((0,r.pi)({},t),{clientAwareness:this.clientAwareness})},e}(),ep=n(58769),ef=!1,em=function(){function e(e){var t=this;this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var n=e.uri,r=e.credentials,a=e.headers,s=e.cache,l=e.ssrMode,u=void 0!==l&&l,c=e.ssrForceFetchDelay,d=void 0===c?0:c,h=e.connectToDevTools,p=void 0===h?"object"==typeof window&&!window.__APOLLO_CLIENT__&&__DEV__:h,f=e.queryDeduplication,m=void 0===f||f,g=e.defaultOptions,v=e.assumeImmutableResults,y=e.resolvers,b=e.typeDefs,k=e.fragmentMatcher,w=e.name,x=e.version,_=e.link;if(_||(_=n?new O({uri:n,credentials:r,headers:a}):o.i.empty()),!s)throw __DEV__?new i.ej("To initialize Apollo Client, you must specify a 'cache' property in the options object. \nFor more information, please visit: https://go.apollo.dev/c/docs"):new i.ej(7);if(this.link=_,this.cache=s,this.disableNetworkFetches=u||d>0,this.queryDeduplication=m,this.defaultOptions=g||Object.create(null),this.typeDefs=b,d&&setTimeout(function(){return t.disableNetworkFetches=!1},d),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),p&&"object"==typeof window&&(window.__APOLLO_CLIENT__=this),!ef&&__DEV__&&(ef=!0,"undefined"!=typeof window&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__)){var S=window.navigator,E=S&&S.userAgent,D=void 0;"string"==typeof E&&(E.indexOf("Chrome/")>-1?D="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":E.indexOf("Firefox/")>-1&&(D="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),D&&__DEV__&&i.kG.log("Download the Apollo DevTools for a better development experience: "+D)}this.version="3.6.9",this.localState=new eo({cache:s,client:this,resolvers:y,fragmentMatcher:k}),this.queryManager=new eh({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,queryDeduplication:m,ssrMode:u,clientAwareness:{name:w,version:x},localState:this.localState,assumeImmutableResults:void 0!==v&&v,onBroadcast:p?function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore||{}},dataWithOptimisticResults:t.cache.extract(!0)})}:void 0})}return e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=(0,ep.J)(this.defaultOptions.watchQuery,e)),this.disableNetworkFetches&&("network-only"===e.fetchPolicy||"cache-and-network"===e.fetchPolicy)&&(e=(0,r.pi)((0,r.pi)({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=(0,ep.J)(this.defaultOptions.query,e)),__DEV__?(0,i.kG)("cache-and-network"!==e.fetchPolicy,"The cache-and-network fetchPolicy does not work with client.query, because client.query can only return a single result. Please use client.watchQuery to receive multiple results from the cache and the network, or consider using a different fetchPolicy, such as cache-first or network-only."):(0,i.kG)("cache-and-network"!==e.fetchPolicy,8),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=(0,r.pi)((0,r.pi)({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=(0,ep.J)(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){this.cache.writeQuery(e),this.queryManager.broadcastQueries()},e.prototype.writeFragment=function(e){this.cache.writeFragment(e),this.queryManager.broadcastQueries()},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return a(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(e.resetStoreCallbacks.map(function(e){return e()}))}).then(function(){return e.reFetchObservableQueries()})},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(e.clearStoreCallbacks.map(function(e){return e()}))})},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.refetchQueries=function(e){var t=this.queryManager.refetchQueries(e),n=[],r=[];t.forEach(function(e,t){n.push(t),r.push(e)});var o=Promise.all(r);return o.queries=n,o.results=r,o.catch(function(e){__DEV__&&i.kG.debug("In client.refetchQueries, Promise.all promise rejected with error ".concat(e))}),o},e.prototype.getObservableQueries=function(e){return void 0===e&&(e="active"),this.queryManager.getObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},e}()},64368:function(e,t,n){"use strict";var r,i;function o(e){return!!e&&e<7}n.d(t,{I:function(){return r},O:function(){return o}}),(i=r||(r={}))[i.loading=1]="loading",i[i.setVariables=2]="setVariables",i[i.fetchMore=3]="fetchMore",i[i.refetch=4]="refetch",i[i.poll=6]="poll",i[i.ready=7]="ready",i[i.error=8]="error"},45832:function(e,t,n){"use strict";n.d(t,{M:function(){return o},c:function(){return s}});var r=n(5163);n(19563);var i=n(43056);function o(e){return e.hasOwnProperty("graphQLErrors")}var a=function(e){var t="";return((0,i.O)(e.graphQLErrors)||(0,i.O)(e.clientErrors))&&(e.graphQLErrors||[]).concat(e.clientErrors||[]).forEach(function(e){var n=e?e.message:"Error message not found.";t+="".concat(n,"\n")}),e.networkError&&(t+="".concat(e.networkError.message,"\n")),t=t.replace(/\n$/,"")},s=function(e){function t(n){var r=n.graphQLErrors,i=n.clientErrors,o=n.networkError,s=n.errorMessage,l=n.extraInfo,u=e.call(this,s)||this;return u.graphQLErrors=r||[],u.clientErrors=i||[],u.networkError=o||null,u.message=s||a(u),u.extraInfo=l,u.__proto__=t.prototype,u}return(0,r.ZT)(t,e),t}(Error)},33957:function(e,t,n){"use strict";n.d(t,{i:function(){return d}});var r=n(5163),i=n(19563),o=n(12129),a=n(86607);function s(e,t){return t?t(e):o.y.of()}function l(e){return"function"==typeof e?new d(e):e}function u(e){return e.request.length<=1}var c=function(e){function t(t,n){var r=e.call(this,t)||this;return r.link=n,r}return(0,r.ZT)(t,e),t}(Error),d=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e(function(){return o.y.of()})},e.from=function(t){return 0===t.length?e.empty():t.map(l).reduce(function(e,t){return e.concat(t)})},e.split=function(t,n,r){var i=l(n),a=l(r||new e(s));return new e(u(i)&&u(a)?function(e){return t(e)?i.request(e)||o.y.of():a.request(e)||o.y.of()}:function(e,n){return t(e)?i.request(e,n)||o.y.of():a.request(e,n)||o.y.of()})},e.execute=function(e,t){var n,s,l,u;return e.request((l=t.context,(s={variables:(n=function(e){for(var t=["query","operationName","variables","extensions","context"],n=0,r=Object.keys(e);nt.indexOf(o))throw __DEV__?new i.ej("illegal argument: ".concat(o)):new i.ej(24)}return e}(t)).variables||{},extensions:n.extensions||{},operationName:n.operationName,query:n.query}).operationName||(s.operationName="string"!=typeof s.query?(0,a.rY)(s.query)||void 0:""),u=(0,r.pi)({},l),Object.defineProperty(s,"setContext",{enumerable:!1,value:function(e){u="function"==typeof e?(0,r.pi)((0,r.pi)({},u),e(u)):(0,r.pi)((0,r.pi)({},u),e)}}),Object.defineProperty(s,"getContext",{enumerable:!1,value:function(){return(0,r.pi)({},u)}}),s))||o.y.of()},e.concat=function(t,n){var r=l(t);if(u(r))return __DEV__&&i.kG.warn(new c("You are calling concat on a terminating link, which will have no effect",r)),r;var a=l(n);return new e(u(a)?function(e){return r.request(e,function(e){return a.request(e)||o.y.of()})||o.y.of()}:function(e,t){return r.request(e,function(e){return a.request(e,t)||o.y.of()})||o.y.of()})},e.prototype.split=function(t,n,r){return this.concat(e.split(t,n,r||new e(s)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw __DEV__?new i.ej("request is not implemented"):new i.ej(19)},e.prototype.onError=function(e,t){if(t&&t.error)return t.error(e),!1;throw e},e.prototype.setOnError=function(e){return this.onError=e,this},e}()},42370:function(e,t,n){"use strict";n.d(t,{K:function(){return o}});var r=n(2784),i=n(43869).aS?Symbol.for("__APOLLO_CONTEXT__"):"__APOLLO_CONTEXT__";function o(){var e=r.createContext[i];return e||(Object.defineProperty(r.createContext,i,{value:e=r.createContext({}),enumerable:!1,writable:!1,configurable:!0}),e.displayName="ApolloContext"),e}},55671:function(e,t,n){"use strict";n.d(t,{e:function(){return a}});var r=n(19563),i=n(2784),o=n(42370),a=function(e){var t=e.client,n=e.children,a=(0,o.K)();return i.createElement(a.Consumer,null,function(e){return void 0===e&&(e={}),t&&e.client!==t&&(e=Object.assign({},e,{client:t})),__DEV__?(0,r.kG)(e.client,'ApolloProvider was not passed a client instance. Make sure you pass in your client via the "client" prop.'):(0,r.kG)(e.client,26),i.createElement(a.Provider,{value:e},n)})}},56675:function(e,t,n){"use strict";n.d(t,{x:function(){return a}});var r=n(19563),i=n(2784),o=n(42370);function a(e){var t=(0,i.useContext)((0,o.K)()),n=e||t.client;return __DEV__?(0,r.kG)(!!n,'Could not find "client" in the context or passed in as an option. Wrap the root component in an , or pass an ApolloClient instance in via options.'):(0,r.kG)(!!n,29),n}},33379:function(e,t,n){"use strict";n.d(t,{D:function(){return c}});var r=n(5163),i=n(2784),o=n(58769),a=n(38229),s=n(87274),l=n(45832),u=n(56675);function c(e,t){var n=(0,u.x)(null==t?void 0:t.client);(0,s.Vp)(e,s.n_.Mutation);var c=(0,i.useState)({called:!1,loading:!1,client:n}),d=c[0],h=c[1],p=(0,i.useRef)({result:d,mutationId:0,isMounted:!0,client:n,mutation:e,options:t});Object.assign(p.current,{client:n,options:t,mutation:e});var f=(0,i.useCallback)(function(e){void 0===e&&(e={});var t=p.current,n=t.client,i=t.options,s=t.mutation,u=(0,r.pi)((0,r.pi)({},i),{mutation:s});p.current.result.loading||u.ignoreResults||h(p.current.result={loading:!0,error:void 0,data:void 0,called:!0,client:n});var c=++p.current.mutationId,d=(0,o.J)(u,e);return n.mutate(d).then(function(t){var r,i,o,s=t.data,u=t.errors,f=u&&u.length>0?new l.c({graphQLErrors:u}):void 0;if(c===p.current.mutationId&&!d.ignoreResults){var m={called:!0,loading:!1,data:s,error:f,client:n};p.current.isMounted&&!(0,a.D)(p.current.result,m)&&h(p.current.result=m)}return null===(i=null===(r=p.current.options)||void 0===r?void 0:r.onCompleted)||void 0===i||i.call(r,t.data),null===(o=e.onCompleted)||void 0===o||o.call(e,t.data),t}).catch(function(t){var r,i,o,s;if(c===p.current.mutationId&&p.current.isMounted){var l={loading:!1,error:t,data:void 0,called:!0,client:n};(0,a.D)(p.current.result,l)||h(p.current.result=l)}if((null===(r=p.current.options)||void 0===r?void 0:r.onError)||d.onError)return null===(o=null===(i=p.current.options)||void 0===i?void 0:i.onError)||void 0===o||o.call(i,t),null===(s=e.onError)||void 0===s||s.call(e,t),{data:void 0,errors:t};throw t})},[]),m=(0,i.useCallback)(function(){h({called:!1,loading:!1,client:n})},[]);return(0,i.useEffect)(function(){return p.current.isMounted=!0,function(){p.current.isMounted=!1}},[]),[f,(0,r.pi)({reset:m},d)]}},40794:function(e,t,n){"use strict";n.d(t,{a:function(){return x}});var r=n(5163),i=n(19563),o=n(2784),a=n.t(o,2),s=n(43869),l=!1,u=a.useSyncExternalStore||function(e,t,n){var r=t();__DEV__&&!l&&r!==t()&&(l=!0,__DEV__&&i.kG.error("The result of getSnapshot should be cached to avoid an infinite loop"));var a=o.useState({inst:{value:r,getSnapshot:t}}),u=a[0].inst,d=a[1];return s.JC?o.useLayoutEffect(function(){Object.assign(u,{value:r,getSnapshot:t}),c(u)&&d({inst:u})},[e,r,t]):Object.assign(u,{value:r,getSnapshot:t}),o.useEffect(function(){return c(u)&&d({inst:u}),e(function(){c(u)&&d({inst:u})})},[e]),r};function c(e){var t=e.value,n=e.getSnapshot;try{return t!==n()}catch(e){return!0}}var d=n(38229),h=n(58769),p=n(42370),f=n(45832),m=n(64368),g=n(87274),v=n(56675),y=n(23180),b=n(9428),k=n(43056),w=Object.prototype.hasOwnProperty;function x(e,t){var n,r,i,a,s;return void 0===t&&(t=Object.create(null)),(n=(0,v.x)(t.client),(r=(0,o.useRef)()).current&&n===r.current.client&&e===r.current.query||(r.current=new _(n,e,r.current)),i=r.current,(a=(0,o.useState)(0))[0],s=a[1],i.forceUpdate=function(){s(function(e){return e+1})},i).useQuery(t)}var _=function(){function e(e,t,n){this.client=e,this.query=t,this.asyncResolveFns=new Set,this.optionsToIgnoreOnce=new(s.sy?WeakSet:Set),this.ssrDisabledResult=(0,y.J)({loading:!0,data:void 0,error:void 0,networkStatus:m.I.loading}),this.skipStandbyResult=(0,y.J)({loading:!1,data:void 0,error:void 0,networkStatus:m.I.ready}),this.toQueryResultCache=new(s.mr?WeakMap:Map),(0,g.Vp)(t,g.n_.Query);var r=n&&n.result,i=r&&r.data;i&&(this.previousData=i)}return e.prototype.forceUpdate=function(){__DEV__&&i.kG.warn("Calling default no-op implementation of InternalState#forceUpdate")},e.prototype.asyncUpdate=function(){var e=this;return new Promise(function(t){e.asyncResolveFns.add(t),e.optionsToIgnoreOnce.add(e.watchQueryOptions),e.forceUpdate()})},e.prototype.useQuery=function(e){var t=this;this.renderPromises=(0,o.useContext)((0,p.K)()).renderPromises,this.useOptions(e);var n=this.useObservableQuery(),r=u((0,o.useCallback)(function(){if(t.renderPromises)return function(){};var e=function(){var e=t.result,r=n.getCurrentResult();e&&e.loading===r.loading&&e.networkStatus===r.networkStatus&&(0,d.D)(e.data,r.data)||t.setResult(r)},r=function(o){var a=n.last;i.unsubscribe();try{n.resetLastResults(),i=n.subscribe(e,r)}finally{n.last=a}if(!w.call(o,"graphQLErrors"))throw o;var s=t.result;(!s||s&&s.loading||!(0,d.D)(o,s.error))&&t.setResult({data:s&&s.data,error:o,loading:!1,networkStatus:m.I.error})},i=n.subscribe(e,r);return function(){return i.unsubscribe()}},[n,this.renderPromises,this.client.disableNetworkFetches]),function(){return t.getCurrentResult()},function(){return t.getCurrentResult()});this.unsafeHandlePartialRefetch(r);var i=this.toQueryResult(r);return!i.loading&&this.asyncResolveFns.size&&(this.asyncResolveFns.forEach(function(e){return e(i)}),this.asyncResolveFns.clear()),i},e.prototype.useOptions=function(t){var n,r=this.createWatchQueryOptions(this.queryHookOptions=t),i=this.watchQueryOptions;(this.optionsToIgnoreOnce.has(i)||!(0,d.D)(r,i))&&(this.watchQueryOptions=r,i&&this.observable&&(this.optionsToIgnoreOnce.delete(i),this.observable.reobserve(this.getObsQueryOptions()),this.previousData=(null===(n=this.result)||void 0===n?void 0:n.data)||this.previousData,this.result=void 0)),this.onCompleted=t.onCompleted||e.prototype.onCompleted,this.onError=t.onError||e.prototype.onError,(this.renderPromises||this.client.disableNetworkFetches)&&!1===this.queryHookOptions.ssr&&!this.queryHookOptions.skip?this.result=this.ssrDisabledResult:this.queryHookOptions.skip||"standby"===this.watchQueryOptions.fetchPolicy?this.result=this.skipStandbyResult:(this.result===this.ssrDisabledResult||this.result===this.skipStandbyResult)&&(this.result=void 0)},e.prototype.getObsQueryOptions=function(){var e=[],t=this.client.defaultOptions.watchQuery;return t&&e.push(t),this.queryHookOptions.defaultOptions&&e.push(this.queryHookOptions.defaultOptions),e.push((0,b.o)(this.observable&&this.observable.options,this.watchQueryOptions)),e.reduce(h.J)},e.prototype.createWatchQueryOptions=function(e){void 0===e&&(e={});var t,n=e.skip,i=Object.assign((e.ssr,e.onCompleted,e.onError,e.displayName,e.defaultOptions,(0,r._T)(e,["skip","ssr","onCompleted","onError","displayName","defaultOptions"])),{query:this.query});if(this.renderPromises&&("network-only"===i.fetchPolicy||"cache-and-network"===i.fetchPolicy)&&(i.fetchPolicy="cache-first"),i.variables||(i.variables={}),n){var o=i.fetchPolicy,a=void 0===o?this.getDefaultFetchPolicy():o,s=i.initialFetchPolicy;Object.assign(i,{initialFetchPolicy:void 0===s?a:s,fetchPolicy:"standby"})}else i.fetchPolicy||(i.fetchPolicy=(null===(t=this.observable)||void 0===t?void 0:t.options.initialFetchPolicy)||this.getDefaultFetchPolicy());return i},e.prototype.getDefaultFetchPolicy=function(){var e,t;return(null===(e=this.queryHookOptions.defaultOptions)||void 0===e?void 0:e.fetchPolicy)||(null===(t=this.client.defaultOptions.watchQuery)||void 0===t?void 0:t.fetchPolicy)||"cache-first"},e.prototype.onCompleted=function(e){},e.prototype.onError=function(e){},e.prototype.useObservableQuery=function(){var e=this.observable=this.renderPromises&&this.renderPromises.getSSRObservable(this.watchQueryOptions)||this.observable||this.client.watchQuery(this.getObsQueryOptions());this.obsQueryFields=(0,o.useMemo)(function(){return{refetch:e.refetch.bind(e),reobserve:e.reobserve.bind(e),fetchMore:e.fetchMore.bind(e),updateQuery:e.updateQuery.bind(e),startPolling:e.startPolling.bind(e),stopPolling:e.stopPolling.bind(e),subscribeToMore:e.subscribeToMore.bind(e)}},[e]);var t=!(!1===this.queryHookOptions.ssr||this.queryHookOptions.skip);return this.renderPromises&&t&&(this.renderPromises.registerSSRObservable(e),e.getCurrentResult().loading&&this.renderPromises.addObservableQueryPromise(e)),e},e.prototype.setResult=function(e){var t=this.result;t&&t.data&&(this.previousData=t.data),this.result=e,this.forceUpdate(),this.handleErrorOrCompleted(e)},e.prototype.handleErrorOrCompleted=function(e){!e.loading&&(e.error?this.onError(e.error):e.data&&this.onCompleted(e.data))},e.prototype.getCurrentResult=function(){return this.result||this.handleErrorOrCompleted(this.result=this.observable.getCurrentResult()),this.result},e.prototype.toQueryResult=function(e){var t=this.toQueryResultCache.get(e);if(t)return t;var n=e.data,i=(e.partial,(0,r._T)(e,["data","partial"]));return this.toQueryResultCache.set(e,t=(0,r.pi)((0,r.pi)((0,r.pi)({data:n},i),this.obsQueryFields),{client:this.client,observable:this.observable,variables:this.observable.variables,called:!this.queryHookOptions.skip,previousData:this.previousData})),!t.error&&(0,k.O)(e.errors)&&(t.error=new f.c({graphQLErrors:e.errors})),t},e.prototype.unsafeHandlePartialRefetch=function(e){e.partial&&this.queryHookOptions.partialRefetch&&!e.loading&&(!e.data||0===Object.keys(e.data).length)&&"cache-only"!==this.observable.options.fetchPolicy&&(Object.assign(e,{loading:!0,networkStatus:m.I.refetch}),this.observable.refetch())},e}()},87274:function(e,t,n){"use strict";n.d(t,{Vp:function(){return l},n_:function(){return i}});var r,i,o=n(19563);(r=i||(i={}))[r.Query=0]="Query",r[r.Mutation=1]="Mutation",r[r.Subscription=2]="Subscription";var a=new Map;function s(e){var t;switch(e){case i.Query:t="Query";break;case i.Mutation:t="Mutation";break;case i.Subscription:t="Subscription"}return t}function l(e,t){var n=function(e){var t,n,r=a.get(e);if(r)return r;__DEV__?(0,o.kG)(!!e&&!!e.kind,"Argument of ".concat(e," passed to parser was not a valid GraphQL ")+"DocumentNode. You may need to use 'graphql-tag' or another method to convert your operation into a document"):(0,o.kG)(!!e&&!!e.kind,30);for(var s=[],l=[],u=[],c=[],d=0,h=e.definitions;d0}n.d(t,{O:function(){return r}})},43869:function(e,t,n){"use strict";n.d(t,{JC:function(){return u},aS:function(){return a},mr:function(){return i},sy:function(){return o}});var r=n(19563),i="function"==typeof WeakMap&&"ReactNative"!==(0,r.wY)(function(){return navigator.product}),o="function"==typeof WeakSet,a="function"==typeof Symbol&&"function"==typeof Symbol.for,s="function"==typeof(0,r.wY)(function(){return window.document.createElement}),l=(0,r.wY)(function(){return navigator.userAgent.indexOf("jsdom")>=0})||!1,u=s&&!l},89732:function(e,t,n){"use strict";n.d(t,{X:function(){return i}});var r=Object.prototype.toString;function i(e){return function e(t,n){switch(r.call(t)){case"[object Array]":if((n=n||new Map).has(t))return n.get(t);var i=t.slice(0);return n.set(t,i),i.forEach(function(t,r){i[r]=e(t,n)}),i;case"[object Object]":if((n=n||new Map).has(t))return n.get(t);var o=Object.create(Object.getPrototypeOf(t));return n.set(t,o),Object.keys(t).forEach(function(r){o[r]=e(t[r],n)}),o;default:return t}}(e)}},9428:function(e,t,n){"use strict";function r(){for(var e=[],t=0;t1)for(var r=new u,i=1;i=d)return(console[e]||console.log).apply(console,arguments)}}function p(e){try{return e()}catch(e){}}(r=u||(u={})).debug=h("debug"),r.log=h("log"),r.warn=h("warn"),r.error=h("error");var f=p(function(){return globalThis})||p(function(){return window})||p(function(){return self})||p(function(){return global})||p(function(){return p.constructor("return this")()}),m="__DEV__",g=function(){try{return!!__DEV__}catch(e){return Object.defineProperty(f,m,{value:"production"!==p(function(){return"production"}),enumerable:!1,configurable:!0,writable:!0}),f[m]}}(),v=n(34406);function y(e){try{return e()}catch(e){}}var b=y(function(){return globalThis})||y(function(){return window})||y(function(){return self})||y(function(){return global})||y(function(){return y.constructor("return this")()}),k=!1;!b||y(function(){return"production"})||y(function(){return v})||(Object.defineProperty(b,"process",{value:{env:{NODE_ENV:"production"}},configurable:!0,enumerable:!1,writable:!0}),k=!0),n(75899).H,k&&(delete b.process,k=!1),__DEV__?u("boolean"==typeof g,g):u("boolean"==typeof g,36)},9572:function(e,t,n){"use strict";n.d(t,{FS:function(){return a},LZ:function(){return o},mj:function(){return s}});var r=n(19563),i=n(58867);function o(e,t){var n,i=e.directives;return!i||!i.length||(n=[],i&&i.length&&i.forEach(function(e){var t;if(!("skip"!==(t=e.name.value)&&"include"!==t)){var i=e.arguments,o=e.name.value;__DEV__?(0,r.kG)(i&&1===i.length,"Incorrect number of arguments for the @".concat(o," directive.")):(0,r.kG)(i&&1===i.length,38);var a=i[0];__DEV__?(0,r.kG)(a.name&&"if"===a.name.value,"Invalid argument for the @".concat(o," directive.")):(0,r.kG)(a.name&&"if"===a.name.value,39);var s=a.value;__DEV__?(0,r.kG)(s&&("Variable"===s.kind||"BooleanValue"===s.kind),"Argument for the @".concat(o," directive must be a variable or a boolean value.")):(0,r.kG)(s&&("Variable"===s.kind||"BooleanValue"===s.kind),40),n.push({directive:e,ifArgument:a})}}),n).every(function(e){var n=e.directive,i=e.ifArgument,o=!1;return"Variable"===i.value.kind?(o=t&&t[i.value.name.value],__DEV__?(0,r.kG)(void 0!==o,"Invalid variable referenced in @".concat(n.name.value," directive.")):(0,r.kG)(void 0!==o,37)):o=i.value.value,"skip"===n.name.value?!o:o})}function a(e,t){var n;return(n=[],(0,i.Vn)(t,{Directive:function(e){n.push(e.name.value)}}),n).some(function(t){return e.indexOf(t)>-1})}function s(e){return e&&a(["client"],e)&&a(["export"],e)}},18001:function(e,t,n){"use strict";n.d(t,{F:function(){return a},Yk:function(){return o},hi:function(){return s}});var r=n(5163),i=n(19563);function o(e,t){var n=t,o=[];return e.definitions.forEach(function(e){if("OperationDefinition"===e.kind)throw __DEV__?new i.ej("Found a ".concat(e.operation," operation").concat(e.name?" named '".concat(e.name.value,"'"):"",". ")+"No operations are allowed when using a fragment as a query. Only fragments are allowed."):new i.ej(41);"FragmentDefinition"===e.kind&&o.push(e)}),void 0===n&&(__DEV__?(0,i.kG)(1===o.length,"Found ".concat(o.length," fragments. `fragmentName` must be provided when there is not exactly 1 fragment.")):(0,i.kG)(1===o.length,42),n=o[0].name.value),(0,r.pi)((0,r.pi)({},e),{definitions:(0,r.ev)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}],e.definitions,!0)})}function a(e){void 0===e&&(e=[]);var t={};return e.forEach(function(e){t[e.name.value]=e}),t}function s(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var n=t&&t[e.name.value];return __DEV__?(0,i.kG)(n,"No fragment named ".concat(e.name.value,".")):(0,i.kG)(n,43),n;default:return null}}},86607:function(e,t,n){"use strict";n.d(t,{$H:function(){return a},A$:function(){return o},O4:function(){return h},iW:function(){return u},kU:function(){return l},p$:function(){return d},pD:function(){return c},rY:function(){return s}});var r=n(19563),i=n(72);function o(e){__DEV__?(0,r.kG)(e&&"Document"===e.kind,'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):(0,r.kG)(e&&"Document"===e.kind,44);var t=e.definitions.filter(function(e){return"FragmentDefinition"!==e.kind}).map(function(e){if("OperationDefinition"!==e.kind)throw __DEV__?new r.ej('Schema type definitions not allowed in queries. Found: "'.concat(e.kind,'"')):new r.ej(45);return e});return __DEV__?(0,r.kG)(t.length<=1,"Ambiguous GraphQL document: contains ".concat(t.length," operations")):(0,r.kG)(t.length<=1,46),e}function a(e){return o(e),e.definitions.filter(function(e){return"OperationDefinition"===e.kind})[0]}function s(e){return e.definitions.filter(function(e){return"OperationDefinition"===e.kind&&e.name}).map(function(e){return e.name.value})[0]||null}function l(e){return e.definitions.filter(function(e){return"FragmentDefinition"===e.kind})}function u(e){var t=a(e);return __DEV__?(0,r.kG)(t&&"query"===t.operation,"Must contain a query definition."):(0,r.kG)(t&&"query"===t.operation,47),t}function c(e){__DEV__?(0,r.kG)("Document"===e.kind,'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):(0,r.kG)("Document"===e.kind,48),__DEV__?(0,r.kG)(e.definitions.length<=1,"Fragment must have exactly one definition."):(0,r.kG)(e.definitions.length<=1,49);var t=e.definitions[0];return __DEV__?(0,r.kG)("FragmentDefinition"===t.kind,"Must be a fragment definition."):(0,r.kG)("FragmentDefinition"===t.kind,50),t}function d(e){o(e);for(var t,n=0,i=e.definitions;n0))return n.connection.key;var r=n.connection.filter?n.connection.filter:[];r.sort();var i={};return r.forEach(function(e){i[e]=t[e]}),"".concat(n.connection.key,"(").concat(p(i),")")}var o=e;if(t){var a=p(t);o+="(".concat(a,")")}return n&&Object.keys(n).forEach(function(e){-1===d.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?o+="@".concat(e,"(").concat(p(n[e]),")"):o+="@".concat(e))}),o},{setStringify:function(e){var t=p;return p=e,t}}),p=function(e){return JSON.stringify(e,f)};function f(e,t){return(0,i.s)(t)&&!Array.isArray(t)&&(t=Object.keys(t).sort().reduce(function(e,n){return e[n]=t[n],e},{})),t}function m(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach(function(e){return u(n,e.name,e.value,t)}),n}return null}function g(e){return e.alias?e.alias.value:e.name.value}function v(e){return"Field"===e.kind}function y(e){return"InlineFragment"===e.kind}},77488:function(e,t,n){"use strict";n.d(t,{Gw:function(){return f},aL:function(){return v},ob:function(){return y},Fo:function(){return g}});var r=n(5163),i=n(19563),o=n(58867),a=n(86607);function s(e,t,n){var r=0;return e.forEach(function(n,i){t.call(this,n,i,e)&&(e[r++]=n)},n),e.length=r,e}var l=n(72),u=n(18001),c={kind:"Field",name:{kind:"Name",value:"__typename"}};function d(e){return!function e(t,n){return t.selectionSet.selections.every(function(t){return"FragmentSpread"===t.kind&&e(n[t.name.value],n)})}((0,a.$H)(e)||(0,a.pD)(e),(0,u.F)((0,a.kU)(e)))?e:null}function h(e){return function(t){return e.some(function(e){return e.name&&e.name===t.name.value||e.test&&e.test(t)})}}function p(e,t){var n,i,a,u=Object.create(null),c=[],p=Object.create(null),f=[],m=d((0,o.Vn)(t,{Variable:{enter:function(e,t,n){"VariableDefinition"!==n.kind&&(u[e.name.value]=!0)}},Field:{enter:function(t){if(e&&t.directives&&e.some(function(e){return e.remove})&&t.directives&&t.directives.some(h(e)))return t.arguments&&t.arguments.forEach(function(e){"Variable"===e.value.kind&&c.push({name:e.value.name.value})}),t.selectionSet&&(function e(t){var n=[];return t.selections.forEach(function(t){((0,l.My)(t)||(0,l.Ao)(t))&&t.selectionSet?e(t.selectionSet).forEach(function(e){return n.push(e)}):"FragmentSpread"===t.kind&&n.push(t)}),n})(t.selectionSet).forEach(function(e){f.push({name:e.name.value})}),null}},FragmentSpread:{enter:function(e){p[e.name.value]=!0}},Directive:{enter:function(t){if(h(e)(t))return null}}}));return m&&s(c,function(e){return!!e.name&&!u[e.name]}).length&&(n=c,i=m,a=function(e){return n.some(function(t){return e.value&&"Variable"===e.value.kind&&e.value.name&&(t.name===e.value.name.value||t.test&&t.test(e))})},m=d((0,o.Vn)(i,{OperationDefinition:{enter:function(e){return(0,r.pi)((0,r.pi)({},e),{variableDefinitions:e.variableDefinitions?e.variableDefinitions.filter(function(e){return!n.some(function(t){return t.name===e.variable.name.value})}):[]})}},Field:{enter:function(e){if(n.some(function(e){return e.remove})){var t=0;if(e.arguments&&e.arguments.forEach(function(e){a(e)&&(t+=1)}),1===t)return null}}},Argument:{enter:function(e){if(a(e))return null}}}))),m&&s(f,function(e){return!!e.name&&!p[e.name]}).length&&(m=function(e,t){function n(t){if(e.some(function(e){return e.name===t.name.value}))return null}return d((0,o.Vn)(t,{FragmentSpread:{enter:n},FragmentDefinition:{enter:n}}))}(f,m)),m}var f=Object.assign(function(e){return(0,o.Vn)(e,{SelectionSet:{enter:function(e,t,n){if(!n||"OperationDefinition"!==n.kind){var i=e.selections;if(!(!i||i.some(function(e){return(0,l.My)(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))}))&&!((0,l.My)(n)&&n.directives&&n.directives.some(function(e){return"export"===e.name.value})))return(0,r.pi)((0,r.pi)({},e),{selections:(0,r.ev)((0,r.ev)([],i,!0),[c],!1)})}}}})},{added:function(e){return e===c}}),m={test:function(e){var t="connection"===e.name.value;return t&&(!e.arguments||!e.arguments.some(function(e){return"key"===e.name.value}))&&__DEV__&&i.kG.warn("Removing an @connection directive even though it does not have a key. You may want to use the key parameter to specify a store key."),t}};function g(e){return p([m],(0,a.A$)(e))}function v(e){return"query"===(0,a.p$)(e).operation?e:(0,o.Vn)(e,{OperationDefinition:{enter:function(e){return(0,r.pi)((0,r.pi)({},e),{operation:"query"})}}})}function y(e){(0,a.A$)(e);var t=p([{test:function(e){return"client"===e.name.value},remove:!0}],e);return t&&(t=(0,o.Vn)(t,{FragmentDefinition:{enter:function(e){if(e.selectionSet&&e.selectionSet.selections.every(function(e){return(0,l.My)(e)&&"__typename"===e.name.value}))return null}}})),t}},90019:function(e,t,n){"use strict";n.d(t,{ZB:function(){return o}});var r=n(5163),i=n(34529);function o(e){return void 0===e&&(e=!1),{keyArgs:e,read:function(e,t){var n=t.canRead,i=t.readField;if(!e)return e;var o=[],s="",l="";e.edges.forEach(function(e){n(i("node",e))&&(o.push(e),e.cursor&&(s=s||e.cursor||"",l=e.cursor||l))});var u=e.pageInfo||{},c=u.startCursor,d=u.endCursor;return(0,r.pi)((0,r.pi)({},a(e)),{edges:o,pageInfo:(0,r.pi)((0,r.pi)({},e.pageInfo),{startCursor:c||s,endCursor:d||l})})},merge:function(e,t,n){var o=n.args,s=n.isReference,l=n.readField;if(e||(e={edges:[],pageInfo:{hasPreviousPage:!1,hasNextPage:!0,startCursor:"",endCursor:""}}),!t)return e;var u=t.edges?t.edges.map(function(e){return s(e=(0,r.pi)({},e))&&(e.cursor=l("cursor",e)),e}):[];if(t.pageInfo){var c=t.pageInfo,d=c.startCursor,h=c.endCursor,p=u[0],f=u[u.length-1];p&&d&&(p.cursor=d),f&&h&&(f.cursor=h);var m=p&&p.cursor;m&&!d&&(t=(0,i.Ee)(t,{pageInfo:{startCursor:m}}));var g=f&&f.cursor;g&&!h&&(t=(0,i.Ee)(t,{pageInfo:{endCursor:g}}))}var v=e.edges,y=[];if(o&&o.after){var b=v.findIndex(function(e){return e.cursor===o.after});b>=0&&(v=v.slice(0,b+1))}else if(o&&o.before){var b=v.findIndex(function(e){return e.cursor===o.before});y=b<0?v:v.slice(b),v=[]}else t.edges&&(v=[]);var k=(0,r.ev)((0,r.ev)((0,r.ev)([],v,!0),u,!0),y,!0),w=(0,r.pi)((0,r.pi)({},t.pageInfo),e.pageInfo);if(t.pageInfo){var x=t.pageInfo,_=x.hasPreviousPage,S=x.hasNextPage,d=x.startCursor,h=x.endCursor;Object.assign(w,(0,r._T)(x,["hasPreviousPage","hasNextPage","startCursor","endCursor"])),v.length||(void 0!==_&&(w.hasPreviousPage=_),void 0===d||(w.startCursor=d)),y.length||(void 0!==S&&(w.hasNextPage=S),void 0===h||(w.endCursor=h))}return(0,r.pi)((0,r.pi)((0,r.pi)({},a(e)),a(t)),{edges:k,pageInfo:w})}}}var a=function(e){return(0,r._T)(e,s)},s=["edges","pageInfo"]},56666:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:function(){return r}})},7896:function(e,t,n){"use strict";function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t{},o=r.Fragment?e=>e?e.length>1?(0,r.createElement)(r.Fragment,null,...e):r.Children.only(e):null:r.Children.only;class a extends r.PureComponent{constructor(...e){super(...e),this.t=!1,this.i=null,this.o=i}componentWillUnmount(){this.o()}u(e){e!==this.i&&(this.o(),this.i=null,e&&(this.i=e,this.o=e.on("updated",()=>this.forceUpdate())))}get allowed(){return this.t}l(){let e=this.props,t=e.of||e.a||e.an||e.this||e.on,n=e.not?"cannot":"can";return e.ability[n](e.I||e.do,t,e.field)}render(){return this.u(this.props.ability),this.t=this.l(),this.props.passThrough||this.t?this.h():null}h(){let{children:e,ability:t}=this.props,n="function"==typeof e?e(this.t,t):e;return o(n)}}function s(e){return t=>(0,r.createElement)(e,null,e=>(0,r.createElement)(a,Object.assign({ability:e},t)))}function l(e){let t=r.useContext(e),[n,i]=r.useState();return r.useEffect(()=>t.on("updated",e=>{e.rules!==n&&i(e.rules)}),[]),t}},11121:function(e,t,n){"use strict";n.d(t,{H:function(){return c}});var r=n(21901),i=n(24735),o=n(68023),a=n(59576),s=n(87651),l=n(31053),u=n(52322),c=(0,o.G)(function(e,t){let{className:n,motionProps:o,...c}=e,{reduceMotion:d}=(0,r.EF)(),{getPanelProps:h,isOpen:p}=(0,i.bB)(),f=h(c,t),m=(0,l.cx)("chakra-accordion__panel",n),g=(0,i.YO)();d||delete f.hidden;let v=(0,u.jsx)(a.m.div,{...f,__css:g.panel,className:m});return d?v:(0,u.jsx)(s.U,{in:p,...o,children:v})});c.displayName="AccordionPanel"},21901:function(e,t,n){"use strict";n.d(t,{As:function(){return u},EF:function(){return d},Zl:function(){return h},a2:function(){return c}});var r=n(24735),i=n(9165),o=n(59572),a=n(85244),s=n(31053),l=n(2784);function u(e){let{onChange:t,defaultIndex:n,index:i,allowMultiple:a,allowToggle:u,...c}=e;(function(e){let t=e.index||e.defaultIndex,n=null!=t&&!Array.isArray(t)&&e.allowMultiple;(0,s.ZK)({condition:!!n,message:`If 'allowMultiple' is passed, then 'index' or 'defaultIndex' must be an array. You passed: ${typeof t},`})})(e),(0,s.ZK)({condition:!!(e.allowMultiple&&e.allowToggle),message:"If 'allowMultiple' is passed, 'allowToggle' will be ignored. Either remove 'allowToggle' or 'allowMultiple' depending on whether you want multiple accordions visible or not"});let d=(0,r._v)(),[h,p]=(0,l.useState)(-1);(0,l.useEffect)(()=>()=>{p(-1)},[]);let[f,m]=(0,o.T)({value:i,defaultValue:()=>a?null!=n?n:[]:null!=n?n:-1,onChange:t});return{index:f,setIndex:m,htmlProps:c,getAccordionItemProps:e=>{let t=!1;return null!==e&&(t=Array.isArray(f)?f.includes(e):f===e),{isOpen:t,onChange:t=>{if(null!==e){if(a&&Array.isArray(f)){let n=t?f.concat(e):f.filter(t=>t!==e);m(n)}else t?m(e):u&&m(-1)}}}},focusedIndex:h,setFocusedIndex:p,descendants:d}}var[c,d]=(0,i.k)({name:"AccordionContext",hookName:"useAccordionContext",providerName:"Accordion"});function h(e){var t;let{isDisabled:n,isFocusable:i,id:o,...u}=e,{getAccordionItemProps:c,setFocusedIndex:h}=d(),p=(0,l.useRef)(null),f=(0,l.useId)(),m=null!=o?o:f,g=`accordion-button-${m}`,v=`accordion-panel-${m}`;(0,s.ZK)({condition:!!(e.isFocusable&&!e.isDisabled),message:`Using only 'isFocusable', this prop is reserved for situations where you pass 'isDisabled' but you still want the element to receive focus (A11y). Either remove it or pass 'isDisabled' as well. `});let{register:y,index:b,descendants:k}=(0,r.mc)({disabled:n&&!i}),{isOpen:w,onChange:x}=c(-1===b?null:b);t={isOpen:w,isDisabled:n},(0,s.ZK)({condition:t.isOpen&&!!t.isDisabled,message:"Cannot open a disabled accordion item"});let _=(0,l.useCallback)(()=>{null==x||x(!w),h(b)},[b,h,w,x]),S=(0,l.useCallback)(e=>{let t={ArrowDown:()=>{let e=k.nextEnabled(b);null==e||e.node.focus()},ArrowUp:()=>{let e=k.prevEnabled(b);null==e||e.node.focus()},Home:()=>{let e=k.firstEnabled();null==e||e.node.focus()},End:()=>{let e=k.lastEnabled();null==e||e.node.focus()}}[e.key];t&&(e.preventDefault(),t(e))},[k,b]),E=(0,l.useCallback)(()=>{h(b)},[h,b]),D=(0,l.useCallback)(function(e={},t=null){return{...e,type:"button",ref:(0,a.lq)(y,p,t),id:g,disabled:!!n,"aria-expanded":!!w,"aria-controls":v,onClick:(0,s.v0)(e.onClick,_),onFocus:(0,s.v0)(e.onFocus,E),onKeyDown:(0,s.v0)(e.onKeyDown,S)}},[g,n,w,_,E,S,v,y]),C=(0,l.useCallback)(function(e={},t=null){return{...e,ref:t,role:"region",id:v,"aria-labelledby":g,hidden:!w}},[g,w,v]);return{isOpen:w,isDisabled:n,isFocusable:i,onOpen:()=>{null==x||x(!0)},onClose:()=>{null==x||x(!1)},getButtonProps:D,getPanelProps:C,htmlProps:u}}},49259:function(e,t,n){"use strict";n.d(t,{U:function(){return h}});var r=n(21901),i=n(24735),o=n(68023),a=n(91982),s=n(84586),l=n(59576),u=n(31053),c=n(2784),d=n(52322),h=(0,o.G)(function({children:e,reduceMotion:t,...n},o){let h=(0,a.jC)("Accordion",n),p=(0,s.Lr)(n),{htmlProps:f,descendants:m,...g}=(0,r.As)(p),v=(0,c.useMemo)(()=>({...g,reduceMotion:!!t}),[g,t]);return(0,d.jsx)(i.di,{value:m,children:(0,d.jsx)(r.a2,{value:v,children:(0,d.jsx)(i.lh,{value:h,children:(0,d.jsx)(l.m.div,{ref:o,...f,className:(0,u.cx)("chakra-accordion",n.className),__css:h.root,children:e})})})})});h.displayName="Accordion"},87436:function(e,t,n){"use strict";n.d(t,{Q:function(){return c}});var r=n(21901),i=n(24735),o=n(68023),a=n(59576),s=n(31053),l=n(2784),u=n(52322),c=(0,o.G)(function(e,t){let{children:n,className:o}=e,{htmlProps:c,...d}=(0,r.Zl)(e),h=(0,i.YO)(),p={...h.container,overflowAnchor:"none"},f=(0,l.useMemo)(()=>d,[d]);return(0,u.jsx)(i.ec,{value:f,children:(0,u.jsx)(a.m.div,{ref:t,...c,className:(0,s.cx)("chakra-accordion__item",o),__css:p,children:"function"==typeof n?n({isExpanded:!!d.isOpen,isDisabled:!!d.isDisabled}):n})})});c.displayName="AccordionItem"},95897:function(e,t,n){"use strict";n.d(t,{K:function(){return l}});var r=n(24735),i=n(68023),o=n(59576),a=n(31053),s=n(52322),l=(0,i.G)(function(e,t){let{getButtonProps:n}=(0,r.bB)(),i=n(e,t),l=(0,r.YO)(),u={display:"flex",alignItems:"center",width:"100%",outline:0,...l.button};return(0,s.jsx)(o.m.button,{...i,className:(0,a.cx)("chakra-accordion__button",e.className),__css:u})});l.displayName="AccordionButton"},24735:function(e,t,n){"use strict";n.d(t,{YO:function(){return a},_v:function(){return d},bB:function(){return l},di:function(){return u},ec:function(){return s},lh:function(){return o},mc:function(){return h}});var r=n(81550),i=n(9165),[o,a]=(0,i.k)({name:"AccordionStylesContext",hookName:"useAccordionStyles",providerName:""}),[s,l]=(0,i.k)({name:"AccordionItemContext",hookName:"useAccordionItemContext",providerName:""}),[u,c,d,h]=(0,r.n)()},89511:function(e,t,n){"use strict";n.d(t,{X:function(){return l}});var r=n(21901),i=n(24735),o=n(62929),a=n(31053),s=n(52322);function l(e){let{isOpen:t,isDisabled:n}=(0,i.bB)(),{reduceMotion:l}=(0,r.EF)(),u=(0,a.cx)("chakra-accordion__icon",e.className),c=(0,i.YO)(),d={opacity:n?.4:1,transform:t?"rotate(-180deg)":void 0,transition:l?void 0:"transform 0.2s",transformOrigin:"center",...c.icon};return(0,s.jsx)(o.J,{viewBox:"0 0 24 24","aria-hidden":!0,className:u,__css:d,...e,children:(0,s.jsx)("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})})}l.displayName="AccordionIcon"},47443:function(e,t,n){"use strict";n.d(t,{b:function(){return c}});var r=n(35824),i=n(31053),o=n(68023),a=n(84586),s=n(91982),l=n(59576),u=n(52322),c=(0,o.G)(function(e,t){var n;let{status:o="info",addRole:c=!0,...d}=(0,a.Lr)(e),h=null!=(n=e.colorScheme)?n:(0,r.TR)(o),p=(0,s.jC)("Alert",{...e,colorScheme:h}),f={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...p.container};return(0,u.jsx)(r.uZ,{value:{status:o},children:(0,u.jsx)(r.Hm,{value:p,children:(0,u.jsx)(l.m.div,{"data-status":o,role:c?"alert":void 0,ref:t,...d,className:(0,i.cx)("chakra-alert",e.className),__css:f})})})});c.displayName="Alert"},52929:function(e,t,n){"use strict";n.d(t,{z:function(){return s}});var r=n(35824),i=n(31053),o=n(59576),a=n(52322);function s(e){let{status:t}=(0,r.oX)(),n=(0,r.XO)(t),s=(0,r.uL)(),l="loading"===t?s.spinner:s.icon;return(0,a.jsx)(o.m.span,{display:"inherit","data-status":t,...e,className:(0,i.cx)("chakra-alert__icon",e.className),__css:l,children:e.children||(0,a.jsx)(n,{h:"100%",w:"100%"})})}s.displayName="AlertIcon"},74444:function(e,t,n){"use strict";n.d(t,{X:function(){return l}});var r=n(35824),i=n(31053),o=n(68023),a=n(59576),s=n(52322),l=(0,o.G)(function(e,t){let n=(0,r.uL)(),{status:o}=(0,r.oX)(),l={display:"inline",...n.description};return(0,s.jsx)(a.m.div,{ref:t,"data-status":o,...e,className:(0,i.cx)("chakra-alert__desc",e.className),__css:l})});l.displayName="AlertDescription"},80877:function(e,t,n){"use strict";n.d(t,{C:function(){return l}});var r=n(35824),i=n(31053),o=n(68023),a=n(59576),s=n(52322),l=(0,o.G)(function(e,t){let n=(0,r.uL)(),{status:o}=(0,r.oX)();return(0,s.jsx)(a.m.div,{ref:t,"data-status":o,...e,className:(0,i.cx)("chakra-alert__title",e.className),__css:n.title})});l.displayName="AlertTitle"},35824:function(e,t,n){"use strict";n.d(t,{uZ:function(){return l},Hm:function(){return c},TR:function(){return p},XO:function(){return f},oX:function(){return u},uL:function(){return d}});var r=n(62929),i=n(52322);function o(e){return(0,i.jsx)(r.J,{viewBox:"0 0 24 24",...e,children:(0,i.jsx)("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}var a=n(9165),s=n(81540),[l,u]=(0,a.k)({name:"AlertContext",hookName:"useAlertContext",providerName:""}),[c,d]=(0,a.k)({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:""}),h={info:{icon:function(e){return(0,i.jsx)(r.J,{viewBox:"0 0 24 24",...e,children:(0,i.jsx)("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})},colorScheme:"blue"},warning:{icon:o,colorScheme:"orange"},success:{icon:function(e){return(0,i.jsx)(r.J,{viewBox:"0 0 24 24",...e,children:(0,i.jsx)("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})},colorScheme:"green"},error:{icon:o,colorScheme:"red"},loading:{icon:s.$,colorScheme:"blue"}};function p(e){return h[e].colorScheme}function f(e){return h[e].icon}},93274:function(e,t,n){"use strict";n.d(t,{H:function(){return h}});var r=n(75078),i=n(68023),o=n(91982),a=n(84586),s=n(59576),l=n(31053),u=n(25578),c=n(2784),d=n(52322),h=(0,i.G)(function(e,t){let n=(0,o.jC)("Avatar",e),{children:i,borderColor:h,max:p,spacing:f="-0.75rem",borderRadius:m="full",...g}=(0,a.Lr)(e),v=(0,u.W)(i),y=null!=p?v.slice(0,p):v,b=null!=p?v.length-p:0,k=y.reverse(),w=k.map((t,n)=>{var r;let i={marginEnd:0===n?0:f,size:e.size,borderColor:null!=(r=t.props.borderColor)?r:h,showBorder:!0};return(0,c.cloneElement)(t,function(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}(i))}),x={display:"flex",alignItems:"center",justifyContent:"flex-end",flexDirection:"row-reverse",...n.group},_={borderRadius:m,marginStart:f,...r.O,...n.excessLabel};return(0,d.jsxs)(s.m.div,{ref:t,role:"group",__css:x,...g,className:(0,l.cx)("chakra-avatar__group",e.className),children:[b>0&&(0,d.jsx)(s.m.span,{className:"chakra-avatar__excess",__css:_,children:`+${b}`}),w]})});h.displayName="AvatarGroup"},75078:function(e,t,n){"use strict";n.d(t,{q:function(){return y},O:function(){return v}});var[r,i]=(0,n(9165).k)({name:"AvatarStylesContext",hookName:"useAvatarStyles",providerName:""}),o=n(59576),a=n(52322);function s(e){var t;let n=e.split(" "),r=null!=(t=n[0])?t:"",i=n.length>1?n[n.length-1]:"";return r&&i?`${r.charAt(0)}${i.charAt(0)}`:r.charAt(0)}function l(e){let{name:t,getInitials:n,...r}=e,s=i();return(0,a.jsx)(o.m.div,{role:"img","aria-label":t,...r,__css:s.label,children:t?null==n?void 0:n(t):null})}l.displayName="AvatarName";var u=e=>(0,a.jsxs)(o.m.svg,{viewBox:"0 0 128 128",color:"#fff",width:"100%",height:"100%",className:"chakra-avatar__svg",...e,children:[(0,a.jsx)("path",{fill:"currentColor",d:"M103,102.1388 C93.094,111.92 79.3504,118 64.1638,118 C48.8056,118 34.9294,111.768 25,101.7892 L25,95.2 C25,86.8096 31.981,80 40.6,80 L87.4,80 C96.019,80 103,86.8096 103,95.2 L103,102.1388 Z"}),(0,a.jsx)("path",{fill:"currentColor",d:"M63.9961647,24 C51.2938136,24 41,34.2938136 41,46.9961647 C41,59.7061864 51.2938136,70 63.9961647,70 C76.6985159,70 87,59.7061864 87,46.9961647 C87,34.2938136 76.6985159,24 63.9961647,24"})]}),c=n(15596),d=n(2784);function h(e){let{src:t,srcSet:n,onError:r,onLoad:i,getInitials:s,name:h,borderRadius:p,loading:f,iconLabel:m,icon:g=(0,a.jsx)(u,{}),ignoreFallback:v,referrerPolicy:y,crossOrigin:b}=e,k=(0,c.d)({src:t,onError:r,crossOrigin:b,ignoreFallback:v}),w=!t||"loaded"!==k;return w?h?(0,a.jsx)(l,{className:"chakra-avatar__initials",getInitials:s,name:h}):(0,d.cloneElement)(g,{role:"img","aria-label":m}):(0,a.jsx)(o.m.img,{src:t,srcSet:n,alt:h,onLoad:i,referrerPolicy:y,crossOrigin:null!=b?b:void 0,className:"chakra-avatar__img",loading:f,__css:{width:"100%",height:"100%",objectFit:"cover",borderRadius:p}})}h.displayName="AvatarImage";var p=n(68023),f=n(91982),m=n(84586),g=n(31053),v={display:"inline-flex",alignItems:"center",justifyContent:"center",textAlign:"center",textTransform:"uppercase",fontWeight:"medium",position:"relative",flexShrink:0},y=(0,p.G)((e,t)=>{let n=(0,f.jC)("Avatar",e),[i,l]=(0,d.useState)(!1),{src:c,srcSet:p,name:y,showBorder:b,borderRadius:k="full",onError:w,onLoad:x,getInitials:_=s,icon:S=(0,a.jsx)(u,{}),iconLabel:E=" avatar",loading:D,children:C,borderColor:j,ignoreFallback:O,crossOrigin:T,referrerPolicy:A,...P}=(0,m.Lr)(e),R={borderRadius:k,borderWidth:b?"2px":void 0,...v,...n.container};return j&&(R.borderColor=j),(0,a.jsx)(o.m.span,{ref:t,...P,className:(0,g.cx)("chakra-avatar",e.className),"data-loaded":(0,g.PB)(i),__css:R,children:(0,a.jsxs)(r,{value:n,children:[(0,a.jsx)(h,{src:c,srcSet:p,loading:D,onLoad:(0,g.v0)(x,()=>{l(!0)}),onError:w,getInitials:_,name:y,borderRadius:k,icon:S,iconLabel:E,ignoreFallback:O,crossOrigin:T,referrerPolicy:A}),C]})})});y.displayName="Avatar"},49456:function(e,t,n){"use strict";n.d(t,{AV:function(){return i},XQ:function(){return o},Yq:function(){return a}});var r=n(31053),i=Object.freeze(["base","sm","md","lg","xl","2xl"]);function o(e,t){return Array.isArray(e)?e.map(e=>null===e?null:t(e)):(0,r.Kn)(e)?Object.keys(e).reduce((n,r)=>(n[r]=t(e[r]),n),{}):null!=e?t(e):null}function a(e,t=i){let n={};return e.forEach((e,r)=>{let i=t[r];null!=e&&(n[i]=e)}),n}},32899:function(e,t,n){"use strict";n.d(t,{h:function(){return s}});var r=n(62614),i=n(68023),o=n(2784),a=n(52322),s=(0,i.G)((e,t)=>{let{icon:n,children:i,isRound:s,"aria-label":l,...u}=e,c=n||i,d=(0,o.isValidElement)(c)?(0,o.cloneElement)(c,{"aria-hidden":!0,focusable:!1}):null;return(0,a.jsx)(r.z,{padding:"0",borderRadius:s?"full":void 0,ref:t,"aria-label":l,...u,children:d})});s.displayName="IconButton"},75768:function(e,t,n){"use strict";n.d(t,{h:function(){return d}});var r=n(68843),i=n(68023),o=n(59576),a=n(31053),s=n(2784),l=n(52322),u={horizontal:{"> *:first-of-type:not(:last-of-type)":{borderEndRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderStartRadius:0}},vertical:{"> *:first-of-type:not(:last-of-type)":{borderBottomRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderTopRadius:0}}},c={horizontal:e=>({"& > *:not(style) ~ *:not(style)":{marginStart:e}}),vertical:e=>({"& > *:not(style) ~ *:not(style)":{marginTop:e}})},d=(0,i.G)(function(e,t){let{size:n,colorScheme:i,variant:d,className:h,spacing:p="0.5rem",isAttached:f,isDisabled:m,orientation:g="horizontal",...v}=e,y=(0,a.cx)("chakra-button__group",h),b=(0,s.useMemo)(()=>({size:n,colorScheme:i,variant:d,isDisabled:m}),[n,i,d,m]),k={display:"inline-flex",...f?u[g]:c[g](p)};return(0,l.jsx)(r.D,{value:b,children:(0,l.jsx)(o.m.div,{ref:t,role:"group",__css:k,className:y,"data-attached":f?"":void 0,"data-orientation":g,flexDir:"vertical"===g?"column":void 0,...v})})});d.displayName="ButtonGroup"},68843:function(e,t,n){"use strict";n.d(t,{D:function(){return r},i:function(){return i}});var[r,i]=(0,n(9165).k)({strict:!1,name:"ButtonGroupContext"})},62614:function(e,t,n){"use strict";n.d(t,{z:function(){return m}});var r=n(2784),i=n(68843),o=n(59576),a=n(31053),s=n(52322);function l(e){let{children:t,className:n,...i}=e,l=(0,r.isValidElement)(t)?(0,r.cloneElement)(t,{"aria-hidden":!0,focusable:!1}):t,u=(0,a.cx)("chakra-button__icon",n);return(0,s.jsx)(o.m.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...i,className:u,children:l})}l.displayName="ButtonIcon";var u=n(81540);function c(e){let{label:t,placement:n,spacing:i="0.5rem",children:l=(0,s.jsx)(u.$,{color:"currentColor",width:"1em",height:"1em"}),className:c,__css:d,...h}=e,p=(0,a.cx)("chakra-button__spinner",c),f="start"===n?"marginEnd":"marginStart",m=(0,r.useMemo)(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[f]:t?i:0,fontSize:"1em",lineHeight:"normal",...d}),[d,t,f,i]);return(0,s.jsx)(o.m.div,{className:p,...h,__css:m,children:l})}c.displayName="ButtonSpinner";var d=n(85244),h=n(68023),p=n(91982),f=n(84586),m=(0,h.G)((e,t)=>{let n=(0,i.i)(),l=(0,p.mq)("Button",{...n,...e}),{isDisabled:u=null==n?void 0:n.isDisabled,isLoading:h,isActive:m,children:v,leftIcon:y,rightIcon:b,loadingText:k,iconSpacing:w="0.5rem",type:x,spinner:_,spinnerPlacement:S="start",className:E,as:D,...C}=(0,f.Lr)(e),j=(0,r.useMemo)(()=>{let e={...null==l?void 0:l._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...l,...!!n&&{_focus:e}}},[l,n]),{ref:O,type:T}=function(e){let[t,n]=(0,r.useState)(!e),i=(0,r.useCallback)(e=>{e&&n("BUTTON"===e.tagName)},[]);return{ref:i,type:t?"button":void 0}}(D),A={rightIcon:b,leftIcon:y,iconSpacing:w,children:v};return(0,s.jsxs)(o.m.button,{ref:(0,d.qq)(t,O),as:D,type:null!=x?x:T,"data-active":(0,a.PB)(m),"data-loading":(0,a.PB)(h),__css:j,className:(0,a.cx)("chakra-button",E),...C,disabled:u||h,children:[h&&"start"===S&&(0,s.jsx)(c,{className:"chakra-button__spinner--start",label:k,placement:"start",spacing:w,children:_}),h?k||(0,s.jsx)(o.m.span,{opacity:0,children:(0,s.jsx)(g,{...A})}):(0,s.jsx)(g,{...A}),h&&"end"===S&&(0,s.jsx)(c,{className:"chakra-button__spinner--end",label:k,placement:"end",spacing:w,children:_})]})});function g(e){let{leftIcon:t,rightIcon:n,children:r,iconSpacing:i}=e;return(0,s.jsxs)(s.Fragment,{children:[t&&(0,s.jsx)(l,{marginEnd:i,children:t}),r,n&&(0,s.jsx)(l,{marginStart:i,children:n})]})}m.displayName="Button"},28448:function(e,t,n){"use strict";n.d(t,{O:function(){return h}});var r=n(76874),i=n(36140),o=n(3171),a=n(90359),s=n(85244),l=n(31053),u=n(51679),c=n(67274),d=n(2784);function h(e={}){let t=(0,r.K)(e),{isDisabled:n,isReadOnly:h,isRequired:f,isInvalid:m,id:g,onBlur:v,onFocus:y,"aria-describedby":b}=t,{defaultChecked:k,isChecked:w,isFocusable:x,onChange:_,isIndeterminate:S,name:E,value:D,tabIndex:C,"aria-label":j,"aria-labelledby":O,"aria-invalid":T,...A}=e,P=function(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}(A,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),R=(0,a.W)(_),M=(0,a.W)(v),F=(0,a.W)(y),[N,I]=(0,d.useState)(!1),[L,B]=(0,d.useState)(!1),[z,U]=(0,d.useState)(!1),[q,$]=(0,d.useState)(!1);(0,d.useEffect)(()=>(0,c.BT)(I),[]);let H=(0,d.useRef)(null),[V,W]=(0,d.useState)(!0),[G,Y]=(0,d.useState)(!!k),Z=void 0!==w,K=Z?w:G,J=(0,d.useCallback)(e=>{if(h||n){e.preventDefault();return}Z||(K?Y(e.target.checked):Y(!!S||e.target.checked)),null==R||R(e)},[h,n,K,Z,S,R]);(0,i.G)(()=>{H.current&&(H.current.indeterminate=!!S)},[S]),(0,o.r)(()=>{n&&B(!1)},[n,B]),(0,i.G)(()=>{let e=H.current;if(!(null==e?void 0:e.form))return;let t=()=>{Y(!!k)};return e.form.addEventListener("reset",t),()=>{var n;return null==(n=e.form)?void 0:n.removeEventListener("reset",t)}},[]);let X=n&&!x,Q=(0,d.useCallback)(e=>{" "===e.key&&$(!0)},[$]),ee=(0,d.useCallback)(e=>{" "===e.key&&$(!1)},[$]);(0,i.G)(()=>{if(!H.current)return;let e=H.current.checked!==K;e&&Y(H.current.checked)},[H.current]);let et=(0,d.useCallback)((e={},t=null)=>({...e,ref:t,"data-active":(0,l.PB)(q),"data-hover":(0,l.PB)(z),"data-checked":(0,l.PB)(K),"data-focus":(0,l.PB)(L),"data-focus-visible":(0,l.PB)(L&&N),"data-indeterminate":(0,l.PB)(S),"data-disabled":(0,l.PB)(n),"data-invalid":(0,l.PB)(m),"data-readonly":(0,l.PB)(h),"aria-hidden":!0,onMouseDown:(0,l.v0)(e.onMouseDown,e=>{L&&e.preventDefault(),$(!0)}),onMouseUp:(0,l.v0)(e.onMouseUp,()=>$(!1)),onMouseEnter:(0,l.v0)(e.onMouseEnter,()=>U(!0)),onMouseLeave:(0,l.v0)(e.onMouseLeave,()=>U(!1))}),[q,K,n,L,N,z,S,m,h]),en=(0,d.useCallback)((e={},t=null)=>({...e,ref:t,"data-active":(0,l.PB)(q),"data-hover":(0,l.PB)(z),"data-checked":(0,l.PB)(K),"data-focus":(0,l.PB)(L),"data-focus-visible":(0,l.PB)(L&&N),"data-indeterminate":(0,l.PB)(S),"data-disabled":(0,l.PB)(n),"data-invalid":(0,l.PB)(m),"data-readonly":(0,l.PB)(h)}),[q,K,n,L,N,z,S,m,h]),er=(0,d.useCallback)((e={},t=null)=>({...P,...e,ref:(0,s.lq)(t,e=>{e&&W("LABEL"===e.tagName)}),onClick:(0,l.v0)(e.onClick,()=>{var e;V||(null==(e=H.current)||e.click(),requestAnimationFrame(()=>{var e;null==(e=H.current)||e.focus({preventScroll:!0})}))}),"data-disabled":(0,l.PB)(n),"data-checked":(0,l.PB)(K),"data-invalid":(0,l.PB)(m)}),[P,n,K,m,V]),ei=(0,d.useCallback)((e={},t=null)=>({...e,ref:(0,s.lq)(H,t),type:"checkbox",name:E,value:D,id:g,tabIndex:C,onChange:(0,l.v0)(e.onChange,J),onBlur:(0,l.v0)(e.onBlur,M,()=>B(!1)),onFocus:(0,l.v0)(e.onFocus,F,()=>B(!0)),onKeyDown:(0,l.v0)(e.onKeyDown,Q),onKeyUp:(0,l.v0)(e.onKeyUp,ee),required:f,checked:K,disabled:X,readOnly:h,"aria-label":j,"aria-labelledby":O,"aria-invalid":T?!!T:m,"aria-describedby":b,"aria-disabled":n,style:u.N}),[E,D,g,J,M,F,Q,ee,f,K,X,h,j,O,T,m,b,n,C]),eo=(0,d.useCallback)((e={},t=null)=>({...e,ref:t,onMouseDown:(0,l.v0)(e.onMouseDown,p),"data-disabled":(0,l.PB)(n),"data-checked":(0,l.PB)(K),"data-invalid":(0,l.PB)(m)}),[K,n,m]);return{state:{isInvalid:m,isFocused:L,isChecked:K,isActive:q,isHovered:z,isIndeterminate:S,isDisabled:n,isReadOnly:h,isRequired:f},getRootProps:er,getCheckboxProps:et,getIndicatorProps:en,getInputProps:ei,getLabelProps:eo,htmlProps:P}}function p(e){e.preventDefault(),e.stopPropagation()}},82713:function(e,t,n){"use strict";n.d(t,{X:function(){return x}});var r=n(2784),[i,o]=(0,n(9165).k)({name:"CheckboxGroupContext",strict:!1}),a=n(59576),s=n(52322);function l(e){return(0,s.jsx)(a.m.svg,{width:"1.2em",viewBox:"0 0 12 10",style:{fill:"none",strokeWidth:2,stroke:"currentColor",strokeDasharray:16},...e,children:(0,s.jsx)("polyline",{points:"1.5 6 4.5 9 10.5 1"})})}function u(e){return(0,s.jsx)(a.m.svg,{width:"1.2em",viewBox:"0 0 24 24",style:{stroke:"currentColor",strokeWidth:4},...e,children:(0,s.jsx)("line",{x1:"21",x2:"3",y1:"12",y2:"12"})})}function c(e){let{isIndeterminate:t,isChecked:n,...r}=e,i=t?u:l;return n||t?(0,s.jsx)(a.m.div,{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:(0,s.jsx)(i,{...r})}):null}var d=n(28448),h=n(31053),p=n(28165),f=n(68023),m=n(91982),g=n(84586),v={display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0},y={cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"},b=(0,p.F4)({from:{opacity:0,strokeDashoffset:16,transform:"scale(0.95)"},to:{opacity:1,strokeDashoffset:0,transform:"scale(1)"}}),k=(0,p.F4)({from:{opacity:0},to:{opacity:1}}),w=(0,p.F4)({from:{transform:"scaleX(0.65)"},to:{transform:"scaleX(1)"}}),x=(0,f.G)(function(e,t){let n=o(),i={...n,...e},l=(0,m.jC)("Checkbox",i),u=(0,g.Lr)(e),{spacing:p="0.5rem",className:f,children:x,iconColor:_,iconSize:S,icon:E=(0,s.jsx)(c,{}),isChecked:D,isDisabled:C=null==n?void 0:n.isDisabled,onChange:j,inputProps:O,...T}=u,A=D;(null==n?void 0:n.value)&&u.value&&(A=n.value.includes(u.value));let P=j;(null==n?void 0:n.onChange)&&u.value&&(P=(0,h.PP)(n.onChange,j));let{state:R,getInputProps:M,getCheckboxProps:F,getLabelProps:N,getRootProps:I}=(0,d.O)({...T,isDisabled:C,isChecked:A,onChange:P}),L=function(e){let[t,n]=(0,r.useState)(e),[i,o]=(0,r.useState)(!1);return e!==t&&(o(!0),n(e)),i}(R.isChecked),B=(0,r.useMemo)(()=>({animation:L?R.isIndeterminate?`${k} 20ms linear, ${w} 200ms linear`:`${b} 200ms linear`:void 0,fontSize:S,color:_,...l.icon}),[_,S,L,R.isIndeterminate,l.icon]),z=(0,r.cloneElement)(E,{__css:B,isIndeterminate:R.isIndeterminate,isChecked:R.isChecked});return(0,s.jsxs)(a.m.label,{__css:{...y,...l.container},className:(0,h.cx)("chakra-checkbox",f),...I(),children:[(0,s.jsx)("input",{className:"chakra-checkbox__input",...M(O,t)}),(0,s.jsx)(a.m.span,{__css:{...v,...l.control},className:"chakra-checkbox__control",...F(),children:z}),x&&(0,s.jsx)(a.m.span,{className:"chakra-checkbox__label",...N(),__css:{marginStart:p,...l.label},children:x})]})});x.displayName="Checkbox"},30350:function(e,t,n){"use strict";n.d(t,{h:function(){return s}});var r=n(2784),i=n(31053),o=n(85244);function a(e){let t=e.target,{tagName:n,isContentEditable:r}=t;return"INPUT"!==n&&"TEXTAREA"!==n&&!0!==r}function s(e={}){let{ref:t,isDisabled:n,isFocusable:s,clickOnEnter:l=!0,clickOnSpace:u=!0,onMouseDown:c,onMouseUp:d,onClick:h,onKeyDown:p,onKeyUp:f,tabIndex:m,onMouseOver:g,onMouseLeave:v,...y}=e,[b,k]=(0,r.useState)(!0),[w,x]=(0,r.useState)(!1),_=function(){let e=(0,r.useRef)(new Map),t=e.current,n=(0,r.useCallback)((t,n,r,i)=>{e.current.set(r,{type:n,el:t,options:i}),t.addEventListener(n,r,i)},[]),i=(0,r.useCallback)((t,n,r,i)=>{t.removeEventListener(n,r,i),e.current.delete(r)},[]);return(0,r.useEffect)(()=>()=>{t.forEach((e,t)=>{i(e.el,e.type,t,e.options)})},[i,t]),{add:n,remove:i}}(),S=b?m:m||0,E=n&&!s,D=(0,r.useCallback)(e=>{if(n){e.stopPropagation(),e.preventDefault();return}let t=e.currentTarget;t.focus(),null==h||h(e)},[n,h]),C=(0,r.useCallback)(e=>{w&&a(e)&&(e.preventDefault(),e.stopPropagation(),x(!1),_.remove(document,"keyup",C,!1))},[w,_]),j=(0,r.useCallback)(e=>{if(null==p||p(e),n||e.defaultPrevented||e.metaKey||!a(e.nativeEvent)||b)return;let t=l&&"Enter"===e.key,r=u&&" "===e.key;if(r&&(e.preventDefault(),x(!0)),t){e.preventDefault();let t=e.currentTarget;t.click()}_.add(document,"keyup",C,!1)},[n,b,p,l,u,_,C]),O=(0,r.useCallback)(e=>{if(null==f||f(e),n||e.defaultPrevented||e.metaKey||!a(e.nativeEvent)||b)return;let t=u&&" "===e.key;if(t){e.preventDefault(),x(!1);let t=e.currentTarget;t.click()}},[u,b,n,f]),T=(0,r.useCallback)(e=>{0===e.button&&(x(!1),_.remove(document,"mouseup",T,!1))},[_]),A=(0,r.useCallback)(e=>{if(0!==e.button)return;if(n){e.stopPropagation(),e.preventDefault();return}b||x(!0);let t=e.currentTarget;t.focus({preventScroll:!0}),_.add(document,"mouseup",T,!1),null==c||c(e)},[n,b,c,_,T]),P=(0,r.useCallback)(e=>{0===e.button&&(b||x(!1),null==d||d(e))},[d,b]),R=(0,r.useCallback)(e=>{if(n){e.preventDefault();return}null==g||g(e)},[n,g]),M=(0,r.useCallback)(e=>{w&&(e.preventDefault(),x(!1)),null==v||v(e)},[w,v]),F=(0,o.lq)(t,e=>{e&&"BUTTON"!==e.tagName&&k(!1)});return b?{...y,ref:F,type:"button","aria-disabled":E?void 0:n,disabled:E,onClick:D,onMouseDown:c,onMouseUp:d,onKeyUp:f,onKeyDown:p,onMouseOver:g,onMouseLeave:v}:{...y,ref:F,role:"button","data-active":(0,i.PB)(w),"aria-disabled":n?"true":void 0,tabIndex:E?void 0:S,onClick:D,onMouseDown:A,onMouseUp:P,onKeyUp:O,onKeyDown:j,onMouseOver:R,onMouseLeave:M}}},81672:function(e,t,n){"use strict";n.d(t,{P:function(){return c}});var r=n(62929),i=n(68023),o=n(91982),a=n(84586),s=n(59576),l=n(52322);function u(e){return(0,l.jsx)(r.J,{focusable:"false","aria-hidden":!0,...e,children:(0,l.jsx)("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})})}var c=(0,i.G)(function(e,t){let n=(0,o.mq)("CloseButton",e),{children:r,isDisabled:i,__css:c,...d}=(0,a.Lr)(e);return(0,l.jsx)(s.m.button,{type:"button","aria-label":"Close",ref:t,disabled:i,__css:{outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,...n,...c},...d,children:r||(0,l.jsx)(u,{width:"1em",height:"1em"})})});c.displayName="CloseButton"},50019:function(e,t,n){"use strict";n.d(t,{If:function(){return o},ff:function(){return a},kc:function(){return i}});var r=n(2784),i=(0,r.createContext)({});function o(){let e=(0,r.useContext)(i);if(void 0===e)throw Error("useColorMode must be used within a ColorModeProvider");return e}function a(e,t){let{colorMode:n}=o();return"dark"===n?t:e}i.displayName="ColorModeContext"},81550:function(e,t,n){"use strict";n.d(t,{n:function(){return y}});var r=n(2784),i=Object.defineProperty,o=(e,t,n)=>t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,a=(e,t,n)=>(o(e,"symbol"!=typeof t?t+"":t,n),n);function s(e){return e.sort((e,t)=>{let n=e.compareDocumentPosition(t);if(n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY)return -1;if(n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(!(n&Node.DOCUMENT_POSITION_DISCONNECTED)&&!(n&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC))return 0;throw Error("Cannot sort the given nodes.")})}var l=e=>"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE;function u(e,t,n){let r=e+1;return n&&r>=t&&(r=0),r}function c(e,t,n){let r=e-1;return n&&r<0&&(r=t),r}var d="undefined"!=typeof window?r.useLayoutEffect:r.useEffect,h=e=>e,p=class{constructor(){a(this,"descendants",new Map),a(this,"register",e=>{if(null!=e)return l(e)?this.registerNode(e):t=>{this.registerNode(t,e)}}),a(this,"unregister",e=>{this.descendants.delete(e);let t=s(Array.from(this.descendants.keys()));this.assignIndex(t)}),a(this,"destroy",()=>{this.descendants.clear()}),a(this,"assignIndex",e=>{this.descendants.forEach(t=>{let n=e.indexOf(t.node);t.index=n,t.node.dataset.index=t.index.toString()})}),a(this,"count",()=>this.descendants.size),a(this,"enabledCount",()=>this.enabledValues().length),a(this,"values",()=>{let e=Array.from(this.descendants.values());return e.sort((e,t)=>e.index-t.index)}),a(this,"enabledValues",()=>this.values().filter(e=>!e.disabled)),a(this,"item",e=>{if(0!==this.count())return this.values()[e]}),a(this,"enabledItem",e=>{if(0!==this.enabledCount())return this.enabledValues()[e]}),a(this,"first",()=>this.item(0)),a(this,"firstEnabled",()=>this.enabledItem(0)),a(this,"last",()=>this.item(this.descendants.size-1)),a(this,"lastEnabled",()=>{let e=this.enabledValues().length-1;return this.enabledItem(e)}),a(this,"indexOf",e=>{var t,n;return e&&null!=(n=null==(t=this.descendants.get(e))?void 0:t.index)?n:-1}),a(this,"enabledIndexOf",e=>null==e?-1:this.enabledValues().findIndex(t=>t.node.isSameNode(e))),a(this,"next",(e,t=!0)=>{let n=u(e,this.count(),t);return this.item(n)}),a(this,"nextEnabled",(e,t=!0)=>{let n=this.item(e);if(!n)return;let r=this.enabledIndexOf(n.node),i=u(r,this.enabledCount(),t);return this.enabledItem(i)}),a(this,"prev",(e,t=!0)=>{let n=c(e,this.count()-1,t);return this.item(n)}),a(this,"prevEnabled",(e,t=!0)=>{let n=this.item(e);if(!n)return;let r=this.enabledIndexOf(n.node),i=c(r,this.enabledCount()-1,t);return this.enabledItem(i)}),a(this,"registerNode",(e,t)=>{if(!e||this.descendants.has(e))return;let n=Array.from(this.descendants.keys()).concat(e),r=s(n);(null==t?void 0:t.disabled)&&(t.disabled=!!t.disabled);let i={node:e,index:-1,...t};this.descendants.set(e,i),this.assignIndex(r)})}},f=n(9165),m=n(85244),[g,v]=(0,f.k)({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});function y(){let e=h(g);return[e,()=>h(v()),()=>(function(){let e=(0,r.useRef)(new p);return d(()=>()=>e.current.destroy()),e.current})(),e=>(function(e){let t=v(),[n,i]=(0,r.useState)(-1),o=(0,r.useRef)(null);d(()=>()=>{o.current&&t.unregister(o.current)},[]),d(()=>{if(!o.current)return;let e=Number(o.current.dataset.index);n==e||Number.isNaN(e)||i(e)});let a=e?h(t.register(e)):h(t.register);return{descendants:t,index:n,enabledIndex:t.enabledIndexOf(o.current),register:(0,m.lq)(a,o)}})(e)]}},75800:function(e,t,n){"use strict";function r(e){return null!=e&&"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function i(e){var t;if(!r(e))return!1;let n=null!=(t=e.ownerDocument.defaultView)?t:window;return e instanceof n.HTMLElement}function o(e){var t,n;return null!=(n=null==(t=a(e))?void 0:t.defaultView)?n:window}function a(e){return r(e)?e.ownerDocument:document}function s(e){return a(e).activeElement}n.d(t,{Re:function(){return i},kR:function(){return o},vY:function(){return s}})},41741:function(e,t,n){"use strict";n.d(t,{EB:function(){return a},Wq:function(){return s}});var r=n(75800),i=e=>e.hasAttribute("tabindex"),o=e=>i(e)&&-1===e.tabIndex;function a(e){var t;if(!(0,r.Re)(e)||function e(t){return!!(t.parentElement&&e(t.parentElement))||t.hidden}(e)||!0==!!(t=e).getAttribute("disabled")||!0==!!t.getAttribute("aria-disabled"))return!1;let{localName:n}=e;if(["input","select","textarea","button"].indexOf(n)>=0)return!0;let o={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return n in o?o[n]():!!function(e){let t=e.getAttribute("contenteditable");return"false"!==t&&null!=t}(e)||i(e)}function s(e){return!!e&&(0,r.Re)(e)&&a(e)&&!o(e)}},51905:function(e,t,n){"use strict";n.d(t,{t5:function(){return o}});var r=n(41741),i=e=>e.offsetWidth>0&&e.offsetHeight>0;function o(e){let t=Array.from(e.querySelectorAll("input:not(:disabled):not([disabled]),select:not(:disabled):not([disabled]),textarea:not(:disabled):not([disabled]),embed,iframe,object,a[href],area[href],button:not(:disabled):not([disabled]),[tabindex],audio[controls],video[controls],*[tabindex]:not([aria-disabled]),*[contenteditable]"));return t.unshift(e),t.filter(e=>(0,r.EB)(e)&&i(e))}},37285:function(e,t,n){"use strict";n.d(t,{i:function(){return r}});var r={fontSize:"inherit",fontWeight:"inherit",textAlign:"inherit",bg:"transparent"}},64951:function(e,t,n){"use strict";n.d(t,{V:function(){return u}});var r=n(37285),i=n(95083),o=n(68023),a=n(59576),s=n(31053),l=n(52322),u=(0,o.G)(function(e,t){let{getInputProps:n}=(0,i.V)(),o=(0,i.d4)(),u=n(e,t),c=(0,s.cx)("chakra-editable__input",e.className);return(0,l.jsx)(a.m.input,{...u,__css:{outline:0,...r.i,...o.input},className:c})});u.displayName="EditableInput"},58905:function(e,t,n){"use strict";n.d(t,{C:function(){return y}});var r=n(76294),i=n(36140),o=n(3171),a=n(59572),s=n(85244),l=n(90359),u=n(31053),c=n(2784);function d(e,t){return!!e&&(e===t||e.contains(t))}var h=n(95083),p=n(68023),f=n(91982),m=n(84586),g=n(59576),v=n(52322),y=(0,p.G)(function(e,t){let n=(0,f.jC)("Editable",e),p=(0,m.Lr)(e),{htmlProps:y,...b}=function(e={}){let{onChange:t,onCancel:n,onSubmit:h,onBlur:p,value:f,isDisabled:m,defaultValue:g,startWithEditView:v,isPreviewFocusable:y=!0,submitOnBlur:b=!0,selectAllOnFocus:k=!0,placeholder:w,onEdit:x,finalFocusRef:_,...S}=e,E=(0,l.W)(x),D=!!(v&&!m),[C,j]=(0,c.useState)(D),[O,T]=(0,a.T)({defaultValue:g||"",value:f,onChange:t}),[A,P]=(0,c.useState)(O),R=(0,c.useRef)(null),M=(0,c.useRef)(null),F=(0,c.useRef)(null),N=(0,c.useRef)(null),I=(0,c.useRef)(null);(0,r.s)({ref:R,enabled:C,elements:[N,I]});let L=!C&&!m;(0,i.G)(()=>{var e,t;C&&(null==(e=R.current)||e.focus(),k&&(null==(t=R.current)||t.select()))},[]),(0,o.r)(()=>{var e,t,n,r;if(!C){_?null==(e=_.current)||e.focus():null==(t=F.current)||t.focus();return}null==(n=R.current)||n.focus(),k&&(null==(r=R.current)||r.select()),null==E||E()},[C,E,k]);let B=(0,c.useCallback)(()=>{L&&j(!0)},[L]),z=(0,c.useCallback)(()=>{P(O)},[O]),U=(0,c.useCallback)(()=>{j(!1),T(A),null==n||n(A),null==p||p(A)},[n,p,T,A]),q=(0,c.useCallback)(()=>{j(!1),P(O),null==h||h(O),null==p||p(A)},[O,h,p,A]);(0,c.useEffect)(()=>{if(C)return;let e=R.current;(null==e?void 0:e.ownerDocument.activeElement)===e&&(null==e||e.blur())},[C]);let $=(0,c.useCallback)(e=>{T(e.currentTarget.value)},[T]),H=(0,c.useCallback)(e=>{let t=e.key,n={Escape:U,Enter:e=>{e.shiftKey||e.metaKey||q()}}[t];n&&(e.preventDefault(),n(e))},[U,q]),V=(0,c.useCallback)(e=>{let t=e.key,n={Escape:U}[t];n&&(e.preventDefault(),n(e))},[U]),W=0===O.length,G=(0,c.useCallback)(e=>{var t;if(!C)return;let n=e.currentTarget.ownerDocument,r=null!=(t=e.relatedTarget)?t:n.activeElement,i=d(N.current,r),o=d(I.current,r);i||o||(b?q():U())},[b,q,U,C]),Y=(0,c.useCallback)((e={},t=null)=>{let n=L&&y?0:void 0;return{...e,ref:(0,s.lq)(t,M),children:W?w:O,hidden:C,"aria-disabled":(0,u.Qm)(m),tabIndex:n,onFocus:(0,u.v0)(e.onFocus,B,z)}},[m,C,L,y,W,B,z,w,O]),Z=(0,c.useCallback)((e={},t=null)=>({...e,hidden:!C,placeholder:w,ref:(0,s.lq)(t,R),disabled:m,"aria-disabled":(0,u.Qm)(m),value:O,onBlur:(0,u.v0)(e.onBlur,G),onChange:(0,u.v0)(e.onChange,$),onKeyDown:(0,u.v0)(e.onKeyDown,H),onFocus:(0,u.v0)(e.onFocus,z)}),[m,C,G,$,H,z,w,O]),K=(0,c.useCallback)((e={},t=null)=>({...e,hidden:!C,placeholder:w,ref:(0,s.lq)(t,R),disabled:m,"aria-disabled":(0,u.Qm)(m),value:O,onBlur:(0,u.v0)(e.onBlur,G),onChange:(0,u.v0)(e.onChange,$),onKeyDown:(0,u.v0)(e.onKeyDown,V),onFocus:(0,u.v0)(e.onFocus,z)}),[m,C,G,$,V,z,w,O]),J=(0,c.useCallback)((e={},t=null)=>({"aria-label":"Edit",...e,type:"button",onClick:(0,u.v0)(e.onClick,B),ref:(0,s.lq)(t,F),disabled:m}),[B,m]),X=(0,c.useCallback)((e={},t=null)=>({...e,"aria-label":"Submit",ref:(0,s.lq)(I,t),type:"button",onClick:(0,u.v0)(e.onClick,q),disabled:m}),[q,m]),Q=(0,c.useCallback)((e={},t=null)=>({"aria-label":"Cancel",id:"cancel",...e,ref:(0,s.lq)(N,t),type:"button",onClick:(0,u.v0)(e.onClick,U),disabled:m}),[U,m]);return{isEditing:C,isDisabled:m,isValueEmpty:W,value:O,onEdit:B,onCancel:U,onSubmit:q,getPreviewProps:Y,getInputProps:Z,getTextareaProps:K,getEditButtonProps:J,getSubmitButtonProps:X,getCancelButtonProps:Q,htmlProps:S}}(p),{isEditing:k,onSubmit:w,onCancel:x,onEdit:_}=b,S=(0,u.cx)("chakra-editable",e.className),E=(0,u.Pu)(e.children,{isEditing:k,onSubmit:w,onCancel:x,onEdit:_});return(0,v.jsx)(h.ZQ,{value:b,children:(0,v.jsx)(h.Me,{value:n,children:(0,v.jsx)(g.m.div,{ref:t,...y,className:S,children:E})})})});y.displayName="Editable"},75230:function(e,t,n){"use strict";n.d(t,{w:function(){return u}});var r=n(37285),i=n(95083),o=n(68023),a=n(59576),s=n(31053),l=n(52322),u=(0,o.G)(function(e,t){let{getPreviewProps:n}=(0,i.V)(),o=(0,i.d4)(),u=n(e,t),c=(0,s.cx)("chakra-editable__preview",e.className);return(0,l.jsx)(a.m.span,{...u,__css:{cursor:"text",display:"inline-block",...r.i,...o.preview},className:c})});u.displayName="EditablePreview"},95083:function(e,t,n){"use strict";n.d(t,{Me:function(){return i},V:function(){return s},ZQ:function(){return a},d4:function(){return o}});var r=n(9165),[i,o]=(0,r.k)({name:"EditableStylesContext",errorMessage:"useEditableStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),[a,s]=(0,r.k)({name:"EditableContext",errorMessage:"useEditableContext: context is undefined. Seems you forgot to wrap the editable components in ``"})},76874:function(e,t,n){"use strict";n.d(t,{K:function(){return a},Y:function(){return o}});var r=n(35183),i=n(31053);function o(e){let{isDisabled:t,isInvalid:n,isReadOnly:r,isRequired:o,...s}=a(e);return{...s,disabled:t,readOnly:r,required:o,"aria-invalid":(0,i.Qm)(n),"aria-required":(0,i.Qm)(o),"aria-readonly":(0,i.Qm)(r)}}function a(e){var t,n,o;let a=(0,r.NJ)(),{id:s,disabled:l,readOnly:u,required:c,isRequired:d,isInvalid:h,isReadOnly:p,isDisabled:f,onFocus:m,onBlur:g,...v}=e,y=e["aria-describedby"]?[e["aria-describedby"]]:[];return(null==a?void 0:a.hasFeedbackText)&&(null==a?void 0:a.isInvalid)&&y.push(a.feedbackId),(null==a?void 0:a.hasHelpText)&&y.push(a.helpTextId),{...v,"aria-describedby":y.join(" ")||void 0,id:null!=s?s:null==a?void 0:a.id,isDisabled:null!=(t=null!=l?l:f)?t:null==a?void 0:a.isDisabled,isReadOnly:null!=(n=null!=u?u:p)?n:null==a?void 0:a.isReadOnly,isRequired:null!=(o=null!=c?c:d)?o:null==a?void 0:a.isRequired,isInvalid:null!=h?h:null==a?void 0:a.isInvalid,onFocus:(0,i.v0)(null==a?void 0:a.onFocus,m),onBlur:(0,i.v0)(null==a?void 0:a.onBlur,g)}}},35183:function(e,t,n){"use strict";n.d(t,{NI:function(){return g},NJ:function(){return m},e:function(){return p}});var r=n(9165),i=n(85244),o=n(68023),a=n(91982),s=n(84586),l=n(59576),u=n(31053),c=n(2784),d=n(52322),[h,p]=(0,r.k)({name:"FormControlStylesContext",errorMessage:"useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),[f,m]=(0,r.k)({strict:!1,name:"FormControlContext"}),g=(0,o.G)(function(e,t){let n=(0,a.jC)("Form",e),r=(0,s.Lr)(e),{getRootProps:o,htmlProps:p,...m}=function(e){let{id:t,isRequired:n,isInvalid:r,isDisabled:o,isReadOnly:a,...s}=e,l=(0,c.useId)(),d=t||`field-${l}`,h=`${d}-label`,p=`${d}-feedback`,f=`${d}-helptext`,[m,g]=(0,c.useState)(!1),[v,y]=(0,c.useState)(!1),[b,k]=(0,c.useState)(!1),w=(0,c.useCallback)((e={},t=null)=>({id:f,...e,ref:(0,i.lq)(t,e=>{e&&y(!0)})}),[f]),x=(0,c.useCallback)((e={},t=null)=>({...e,ref:t,"data-focus":(0,u.PB)(b),"data-disabled":(0,u.PB)(o),"data-invalid":(0,u.PB)(r),"data-readonly":(0,u.PB)(a),id:void 0!==e.id?e.id:h,htmlFor:void 0!==e.htmlFor?e.htmlFor:d}),[d,o,b,r,a,h]),_=(0,c.useCallback)((e={},t=null)=>({id:p,...e,ref:(0,i.lq)(t,e=>{e&&g(!0)}),"aria-live":"polite"}),[p]),S=(0,c.useCallback)((e={},t=null)=>({...e,...s,ref:t,role:"group","data-focus":(0,u.PB)(b),"data-disabled":(0,u.PB)(o),"data-invalid":(0,u.PB)(r),"data-readonly":(0,u.PB)(a)}),[s,o,b,r,a]),E=(0,c.useCallback)((e={},t=null)=>({...e,ref:t,role:"presentation","aria-hidden":!0,children:e.children||"*"}),[]);return{isRequired:!!n,isInvalid:!!r,isReadOnly:!!a,isDisabled:!!o,isFocused:!!b,onFocus:()=>k(!0),onBlur:()=>k(!1),hasFeedbackText:m,setHasFeedbackText:g,hasHelpText:v,setHasHelpText:y,id:d,labelId:h,feedbackId:p,helpTextId:f,htmlProps:s,getHelpTextProps:w,getErrorMessageProps:_,getRootProps:S,getLabelProps:x,getRequiredIndicatorProps:E}}(r),g=(0,u.cx)("chakra-form-control",e.className);return(0,d.jsx)(f,{value:m,children:(0,d.jsx)(h,{value:n,children:(0,d.jsx)(l.m.div,{...o({},t),className:g,__css:n.container})})})});g.displayName="FormControl",(0,o.G)(function(e,t){let n=m(),r=p(),i=(0,u.cx)("chakra-form__helper-text",e.className);return(0,d.jsx)(l.m.div,{...null==n?void 0:n.getHelpTextProps(e,t),__css:r.helperText,className:i})}).displayName="FormHelperText"},97166:function(e,t,n){"use strict";n.d(t,{l:function(){return c}});var r=n(35183),i=n(68023),o=n(91982),a=n(84586),s=n(59576),l=n(31053),u=n(52322),c=(0,i.G)(function(e,t){var n;let i=(0,o.mq)("FormLabel",e),c=(0,a.Lr)(e),{className:h,children:p,requiredIndicator:f=(0,u.jsx)(d,{}),optionalIndicator:m=null,...g}=c,v=(0,r.NJ)(),y=null!=(n=null==v?void 0:v.getLabelProps(g,t))?n:{ref:t,...g};return(0,u.jsxs)(s.m.label,{...y,className:(0,l.cx)("chakra-form__label",c.className),__css:{display:"block",textAlign:"start",...i},children:[p,(null==v?void 0:v.isRequired)?f:m]})});c.displayName="FormLabel";var d=(0,i.G)(function(e,t){let n=(0,r.NJ)(),i=(0,r.e)();if(!(null==n?void 0:n.isRequired))return null;let o=(0,l.cx)("chakra-form__required-indicator",e.className);return(0,u.jsx)(s.m.span,{...null==n?void 0:n.getRequiredIndicatorProps(e,t),__css:i.requiredIndicator,className:o})});d.displayName="RequiredIndicator"},96860:function(e,t,n){"use strict";n.d(t,{Me:function(){return i}});var r=n(2784);function i(e,t){let n=(0,r.useId)();return(0,r.useMemo)(()=>e||[t,n].filter(Boolean).join("-"),[e,t,n])}},65610:function(e,t,n){"use strict";n.d(t,{r:function(){return i}});var r=n(2784),i=(e,t)=>{let n=(0,r.useRef)(!1),i=(0,r.useRef)(!1);(0,r.useEffect)(()=>{let t=n.current,r=t&&i.current;if(r)return e();i.current=!0},t),(0,r.useEffect)(()=>(n.current=!0,()=>{n.current=!1}),[])}},18292:function(e,t,n){"use strict";n.d(t,{q:function(){return s}});var r=n(96860),i=n(2784),o=n(33154),a=n(79729);function s(e={}){let{onClose:t,onOpen:n,isOpen:s,id:l}=e,u=(0,o.W)(n),c=(0,o.W)(t),[d,h]=(0,i.useState)(e.defaultIsOpen||!1),[p,f]=function(e,t){let n=void 0!==e;return[n,n&&void 0!==e?e:t]}(s,d),m=(0,r.Me)(l,"disclosure"),g=(0,i.useCallback)(()=>{p||h(!1),null==c||c()},[p,c]),v=(0,i.useCallback)(()=>{p||h(!0),null==u||u()},[p,u]),y=(0,i.useCallback)(()=>{let e=f?g:v;e()},[f,v,g]);return{isOpen:!!f,onOpen:v,onClose:g,onToggle:y,isControlled:p,getButtonProps:(e={})=>({...e,"aria-expanded":f,"aria-controls":m,onClick:(0,a.v0)(e.onClick,y)}),getDisclosureProps:(e={})=>({...e,hidden:!f,id:m})}}},40853:function(e,t,n){"use strict";n.d(t,{O:function(){return a}});var r=n(33154),i=n(79729),o=n(2784);function a(e,t,n,a){let s=(0,r.W)(t);return(0,o.useEffect)(()=>{var r;let o=null!=(r=(0,i.Pu)(n))?r:document;if(t)return o.addEventListener(e,s,a),()=>{o.removeEventListener(e,s,a)}},[e,n,a,s,t]),()=>{var t;let r=null!=(t=(0,i.Pu)(n))?t:document;r.removeEventListener(e,s,a)}}},27988:function(e,t,n){"use strict";n.d(t,{q:function(){return i}});var r=n(2784);function i(...e){return(0,r.useMemo)(()=>e.every(e=>null==e)?null:t=>{e.forEach(e=>{e&&function(e,t){if(null!=e){if("function"==typeof e){e(t);return}try{e.current=t}catch(n){throw Error(`Cannot assign value '${t}' to ref '${e}'`)}}}(e,t)})},e)}},33154:function(e,t,n){"use strict";n.d(t,{W:function(){return a}});var r=n(73200),i=n(2784),o=r.jU?i.useLayoutEffect:i.useEffect;function a(e,t=[]){let n=(0,i.useRef)(e);return o(()=>{n.current=e}),(0,i.useCallback)((...e)=>{var t;return null==(t=n.current)?void 0:t.call(n,...e)},t)}},26284:function(e,t,n){"use strict";n.d(t,{V:function(){return o}});var r=n(2784),i=n(50381);function o(e,t={}){let[n,o]=(0,r.useState)(!1),[a,s]=(0,r.useState)(e);(0,r.useEffect)(()=>s(e),[e]);let{timeout:l=1500,...u}="number"==typeof t?{timeout:t}:t,c=(0,r.useCallback)(()=>{let e=i(a,u);o(e)},[a,u]);return(0,r.useEffect)(()=>{let e=null;return n&&(e=window.setTimeout(()=>{o(!1)},l)),()=>{e&&window.clearTimeout(e)}},[l,n]),{value:a,setValue:s,onCopy:c,hasCopied:n}}},76643:function(e,t,n){"use strict";n.d(t,{O:function(){return a}});var r=n(33154),i=n(73200),o=n(2784);function a(e){let{ref:t,handler:n,enabled:a=!0}=e,l=(0,r.W)(n),u=(0,o.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),c=u.current;(0,o.useEffect)(()=>{if(!a)return;let e=e=>{s(e,t)&&(c.isPointerDown=!0)},r=e=>{if(c.ignoreEmulatedMouseEvents){c.ignoreEmulatedMouseEvents=!1;return}c.isPointerDown&&n&&s(e,t)&&(c.isPointerDown=!1,l(e))},o=e=>{c.ignoreEmulatedMouseEvents=!0,n&&c.isPointerDown&&s(e,t)&&(c.isPointerDown=!1,l(e))},u=(0,i.lZ)(t.current);return u.addEventListener("mousedown",e,!0),u.addEventListener("mouseup",r,!0),u.addEventListener("touchstart",e,!0),u.addEventListener("touchend",o,!0),()=>{u.removeEventListener("mousedown",e,!0),u.removeEventListener("mouseup",r,!0),u.removeEventListener("touchstart",e,!0),u.removeEventListener("touchend",o,!0)}},[n,t,l,c,a])}function s(e,t){var n;let r=e.target;if(r){let e=(0,i.lZ)(r);if(!e.contains(r))return!1}return!(null==(n=t.current)?void 0:n.contains(r))}},62929:function(e,t,n){"use strict";n.d(t,{J:function(){return u}});var r=n(68023),i=n(91982),o=n(59576),a=n(31053),s=n(52322),l={path:(0,s.jsxs)("g",{stroke:"currentColor",strokeWidth:"1.5",children:[(0,s.jsx)("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),(0,s.jsx)("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),(0,s.jsx)("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},u=(0,r.G)((e,t)=>{let{as:n,viewBox:r,color:u="currentColor",focusable:c=!1,children:d,className:h,__css:p,...f}=e,m=(0,a.cx)("chakra-icon",h),g=(0,i.mq)("Icon",e),v={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:u,...p,...g},y={ref:t,focusable:c,className:m,__css:v},b=null!=r?r:l.viewBox;if(n&&"string"!=typeof n)return(0,s.jsx)(o.m.svg,{as:n,...y,...f});let k=null!=d?d:l.path;return(0,s.jsx)(o.m.svg,{verticalAlign:"middle",viewBox:b,...y,...f,children:k})});u.displayName="Icon"},29705:function(e,t,n){"use strict";n.d(t,{h:function(){return o}});var r=n(67012),i=n(52322),o=(0,r.I)({displayName:"ExternalLinkIcon",path:(0,i.jsxs)("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",children:[(0,i.jsx)("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),(0,i.jsx)("path",{d:"M15 3h6v6"}),(0,i.jsx)("path",{d:"M10 14L21 3"})]})})},82642:function(e,t,n){"use strict";n.d(t,{T:function(){return r}});var r=(0,n(67012).I)({displayName:"CloseIcon",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})},33570:function(e,t,n){"use strict";n.d(t,{X:function(){return r}});var r=(0,n(67012).I)({d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z",displayName:"ChevronRightIcon"})},56581:function(e,t,n){"use strict";n.d(t,{n:function(){return o}});var r=n(67012),i=n(52322),o=(0,r.I)({viewBox:"0 0 14 14",path:(0,i.jsx)("g",{fill:"currentColor",children:(0,i.jsx)("polygon",{points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"})})})},83906:function(e,t,n){"use strict";n.d(t,{v:function(){return r}});var r=(0,n(67012).I)({displayName:"ChevronDownIcon",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})},69339:function(e,t,n){"use strict";n.d(t,{w:function(){return r}});var r=(0,n(67012).I)({d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z",displayName:"ChevronLeftIcon"})},67012:function(e,t,n){"use strict";n.d(t,{I:function(){return d}});var r=n(68023),i=n(91982),o=n(59576),a=n(31053),s=n(52322),l={path:(0,s.jsxs)("g",{stroke:"currentColor",strokeWidth:"1.5",children:[(0,s.jsx)("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),(0,s.jsx)("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),(0,s.jsx)("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},u=(0,r.G)((e,t)=>{let{as:n,viewBox:r,color:u="currentColor",focusable:c=!1,children:d,className:h,__css:p,...f}=e,m=(0,a.cx)("chakra-icon",h),g=(0,i.mq)("Icon",e),v={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:u,...p,...g},y={ref:t,focusable:c,className:m,__css:v},b=null!=r?r:l.viewBox;if(n&&"string"!=typeof n)return(0,s.jsx)(o.m.svg,{as:n,...y,...f});let k=null!=d?d:l.path;return(0,s.jsx)(o.m.svg,{verticalAlign:"middle",viewBox:b,...y,...f,children:k})});u.displayName="Icon";var c=n(2784);function d(e){let{viewBox:t="0 0 24 24",d:n,displayName:i,defaultProps:o={}}=e,a=c.Children.toArray(e.path),l=(0,r.G)((e,r)=>(0,s.jsx)(u,{ref:r,viewBox:t,...o,...e,children:a.length?a:(0,s.jsx)("path",{fill:"currentColor",d:n})}));return l.displayName=i,l}},75009:function(e,t,n){"use strict";n.d(t,{E:function(){return l}});var r=n(68023),i=n(52322),o=(0,r.G)(function(e,t){let{htmlWidth:n,htmlHeight:r,alt:o,...a}=e;return(0,i.jsx)("img",{width:n,height:r,ref:t,alt:o,...a})});o.displayName="NativeImage";var a=n(15596),s=n(59576),l=(0,r.G)(function(e,t){let{fallbackSrc:n,fallback:r,src:l,srcSet:u,align:c,fit:d,loading:h,ignoreFallback:p,crossOrigin:f,fallbackStrategy:m="beforeLoadOrError",referrerPolicy:g,...v}=e,y=null!=h||p||!(void 0!==n||void 0!==r),b=(0,a.d)({...e,crossOrigin:f,ignoreFallback:y}),k=(0,a.z)(b,m),w={ref:t,objectFit:d,objectPosition:c,...y?v:function(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}(v,["onError","onLoad"])};return k?r||(0,i.jsx)(s.m.img,{as:o,className:"chakra-image__placeholder",src:n,...w}):(0,i.jsx)(s.m.img,{as:o,src:l,srcSet:u,crossOrigin:f,loading:h,referrerPolicy:g,className:"chakra-image",...w})});l.displayName="Image"},15596:function(e,t,n){"use strict";n.d(t,{d:function(){return o},z:function(){return a}});var r=n(36140),i=n(2784);function o(e){let{loading:t,src:n,srcSet:o,onLoad:a,onError:s,crossOrigin:l,sizes:u,ignoreFallback:c}=e,[d,h]=(0,i.useState)("pending");(0,i.useEffect)(()=>{h(n?"loading":"pending")},[n]);let p=(0,i.useRef)(),f=(0,i.useCallback)(()=>{if(!n)return;m();let e=new Image;e.src=n,l&&(e.crossOrigin=l),o&&(e.srcset=o),u&&(e.sizes=u),t&&(e.loading=t),e.onload=e=>{m(),h("loaded"),null==a||a(e)},e.onerror=e=>{m(),h("failed"),null==s||s(e)},p.current=e},[n,l,o,u,a,s,t]),m=()=>{p.current&&(p.current.onload=null,p.current.onerror=null,p.current=null)};return(0,r.G)(()=>{if(!c)return"loading"===d&&f(),()=>{m()}},[d,f,c]),c?"loaded":d}var a=(e,t)=>"loaded"!==e&&"beforeLoadOrError"===t||"failed"===e&&"onError"===t},20816:function(e,t,n){"use strict";n.d(t,{Z:function(){return c},x:function(){return d}});var r=n(74105),i=n(59576),o=n(68023),a=n(31053),s=n(52322),l=(0,i.m)("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),u=(0,o.G)(function(e,t){var n,i;let{placement:o="left",...a}=e,u=(0,r.m)(),c=u.field,d={["left"===o?"insetStart":"insetEnd"]:"0",width:null!=(n=null==c?void 0:c.height)?n:null==c?void 0:c.h,height:null!=(i=null==c?void 0:c.height)?i:null==c?void 0:c.h,fontSize:null==c?void 0:c.fontSize,...u.element};return(0,s.jsx)(l,{ref:t,__css:d,...a})});u.id="InputElement",u.displayName="InputElement";var c=(0,o.G)(function(e,t){let{className:n,...r}=e,i=(0,a.cx)("chakra-input__left-element",n);return(0,s.jsx)(u,{ref:t,placement:"left",className:i,...r})});c.id="InputLeftElement",c.displayName="InputLeftElement";var d=(0,o.G)(function(e,t){let{className:n,...r}=e,i=(0,a.cx)("chakra-input__right-element",n);return(0,s.jsx)(u,{ref:t,placement:"right",className:i,...r})});d.id="InputRightElement",d.displayName="InputRightElement"},85573:function(e,t,n){"use strict";n.d(t,{I:function(){return c}});var r=n(76874),i=n(68023),o=n(91982),a=n(84586),s=n(59576),l=n(31053),u=n(52322),c=(0,i.G)(function(e,t){let{htmlSize:n,...i}=e,c=(0,o.jC)("Input",i),d=(0,a.Lr)(i),h=(0,r.Y)(d),p=(0,l.cx)("chakra-input",e.className);return(0,u.jsx)(s.m.input,{size:n,...h,__css:c.field,ref:t,className:p})});c.displayName="Input",c.id="Input"},92768:function(e,t,n){"use strict";n.d(t,{xW:function(){return h}});var r=n(74105),i=n(59576),o=n(68023),a=n(31053),s=n(52322),l={left:{marginEnd:"-1px",borderEndRadius:0,borderEndColor:"transparent"},right:{marginStart:"-1px",borderStartRadius:0,borderStartColor:"transparent"}},u=(0,i.m)("div",{baseStyle:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap"}}),c=(0,o.G)(function(e,t){var n;let{placement:i="left",...o}=e,a=null!=(n=l[i])?n:{},c=(0,r.m)();return(0,s.jsx)(u,{ref:t,...o,__css:{...c.addon,...a}})});c.displayName="InputAddon";var d=(0,o.G)(function(e,t){return(0,s.jsx)(c,{ref:t,placement:"left",...e,className:(0,a.cx)("chakra-input__left-addon",e.className)})});d.displayName="InputLeftAddon",d.id="InputLeftAddon";var h=(0,o.G)(function(e,t){return(0,s.jsx)(c,{ref:t,placement:"right",...e,className:(0,a.cx)("chakra-input__right-addon",e.className)})});h.displayName="InputRightAddon",h.id="InputRightAddon"},74105:function(e,t,n){"use strict";n.d(t,{B:function(){return m},m:function(){return f}});var r=n(9165),i=n(25578),o=n(68023),a=n(91982),s=n(84586),l=n(59576),u=n(31053),c=n(49),d=n(2784),h=n(52322),[p,f]=(0,r.k)({name:"InputGroupStylesContext",errorMessage:"useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),m=(0,o.G)(function(e,t){let n=(0,a.jC)("Input",e),{children:r,className:o,...f}=(0,s.Lr)(e),m=(0,u.cx)("chakra-input__group",o),g={},v=(0,i.W)(r),y=n.field;v.forEach(e=>{var t,r;n&&(y&&"InputLeftElement"===e.type.id&&(g.paddingStart=null!=(t=y.height)?t:y.h),y&&"InputRightElement"===e.type.id&&(g.paddingEnd=null!=(r=y.height)?r:y.h),"InputRightAddon"===e.type.id&&(g.borderEndRadius=0),"InputLeftAddon"===e.type.id&&(g.borderStartRadius=0))});let b=v.map(t=>{var n,r;let i=(0,c.o)({size:(null==(n=t.props)?void 0:n.size)||e.size,variant:(null==(r=t.props)?void 0:r.variant)||e.variant});return"Input"!==t.type.id?(0,d.cloneElement)(t,i):(0,d.cloneElement)(t,Object.assign(i,g,t.props))});return(0,h.jsx)(l.m.div,{className:m,ref:t,__css:{width:"100%",display:"flex",position:"relative",isolation:"isolate",...n.group},"data-group":!0,...f,children:(0,h.jsx)(p,{value:n,children:b})})});m.displayName="InputGroup"},77533:function(e,t,n){"use strict";n.d(t,{x:function(){return c}});var r=n(68023),i=n(91982),o=n(84586),a=n(59576),s=n(31053),l=n(49),u=n(52322),c=(0,r.G)(function(e,t){let n=(0,i.mq)("Text",e),{className:r,align:c,decoration:d,casing:h,...p}=(0,o.Lr)(e),f=(0,l.o)({textAlign:e.align,textDecoration:e.decoration,textTransform:e.casing});return(0,u.jsx)(a.m.p,{ref:t,className:(0,s.cx)("chakra-text",e.className),...f,...p,__css:n})});c.displayName="Text"},29117:function(e,t,n){"use strict";n.d(t,{U:function(){return a}});var r=n(43297),i=n(68023),o=n(52322),a=(0,i.G)((e,t)=>(0,o.jsx)(r.K,{align:"center",...e,direction:"row",ref:t}));a.displayName="HStack"},97010:function(e,t,n){"use strict";n.d(t,{HC:function(){return m},QI:function(){return f},aV:function(){return p}});var r=n(62929),i=n(9165),o=n(25578),a=n(68023),s=n(91982),l=n(84586),u=n(59576),c=n(52322),[d,h]=(0,i.k)({name:"ListStylesContext",errorMessage:"useListStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),p=(0,a.G)(function(e,t){let n=(0,s.jC)("List",e),{children:r,styleType:i="none",stylePosition:a,spacing:h,...p}=(0,l.Lr)(e),f=(0,o.W)(r);return(0,c.jsx)(d,{value:n,children:(0,c.jsx)(u.m.ul,{ref:t,listStyleType:i,listStylePosition:a,role:"list",__css:{...n.container,...h?{"& > *:not(style) ~ *:not(style)":{mt:h}}:{}},...p,children:f})})});p.displayName="List",(0,a.G)((e,t)=>{let{as:n,...r}=e;return(0,c.jsx)(p,{ref:t,as:"ol",styleType:"decimal",marginStart:"1em",...r})}).displayName="OrderedList";var f=(0,a.G)(function(e,t){let{as:n,...r}=e;return(0,c.jsx)(p,{ref:t,as:"ul",styleType:"initial",marginStart:"1em",...r})});f.displayName="UnorderedList";var m=(0,a.G)(function(e,t){let n=h();return(0,c.jsx)(u.m.li,{ref:t,...e,__css:n.item})});m.displayName="ListItem",(0,a.G)(function(e,t){let n=h();return(0,c.jsx)(r.J,{ref:t,role:"presentation",...e,__css:n.icon})}).displayName="ListIcon"},17190:function(e,t,n){"use strict";n.d(t,{W:function(){return u}});var r=n(68023),i=n(84586),o=n(91982),a=n(59576),s=n(31053),l=n(52322),u=(0,r.G)(function(e,t){let{className:n,centerContent:r,...u}=(0,i.Lr)(e),c=(0,o.mq)("Container",e);return(0,l.jsx)(a.m.div,{ref:t,className:(0,s.cx)("chakra-container",n),...u,__css:{...c,...r&&{display:"flex",flexDirection:"column",alignItems:"center"}}})});u.displayName="Container"},89099:function(e,t,n){"use strict";n.d(t,{E:function(){return l},U:function(){return u}});var r=n(31053),i=n(68023),o=n(59576),a=n(2784),s=n(52322),l=(0,i.G)(function(e,t){let{spacing:n="0.5rem",spacingX:i,spacingY:l,children:c,justify:d,direction:h,align:p,className:f,shouldWrapChildren:m,...g}=e,v=(0,a.useMemo)(()=>m?a.Children.map(c,(e,t)=>(0,s.jsx)(u,{children:e},t)):c,[c,m]);return(0,s.jsx)(o.m.div,{ref:t,className:(0,r.cx)("chakra-wrap",f),...g,children:(0,s.jsx)(o.m.ul,{className:"chakra-wrap__list",__css:{display:"flex",flexWrap:"wrap",justifyContent:d,alignItems:p,flexDirection:h,listStyleType:"none",gap:n,columnGap:i,rowGap:l,padding:"0"},children:v})})});l.displayName="Wrap";var u=(0,i.G)(function(e,t){let{className:n,...i}=e;return(0,s.jsx)(o.m.li,{ref:t,__css:{display:"flex",alignItems:"flex-start"},className:(0,r.cx)("chakra-wrap__listitem",n),...i})});u.displayName="WrapItem"},74409:function(e,t,n){"use strict";n.d(t,{X:function(){return u}});var r=n(68023),i=n(91982),o=n(84586),a=n(59576),s=n(31053),l=n(52322),u=(0,r.G)(function(e,t){let n=(0,i.mq)("Heading",e),{className:r,...u}=(0,o.Lr)(e);return(0,l.jsx)(a.m.h2,{ref:t,className:(0,s.cx)("chakra-heading",e.className),...u,__css:n})});u.displayName="Heading"},36474:function(e,t,n){"use strict";n.d(t,{L:function(){return r}});var r=(0,n(59576).m)("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});r.displayName="Spacer"},5740:function(e,t,n){"use strict";n.d(t,{T:function(){return u}});var r=n(68023),i=n(91982),o=n(84586),a=n(59576),s=n(31053),l=n(52322),u=(0,r.G)(function(e,t){let n=(0,i.mq)("Kbd",e),{className:r,...u}=(0,o.Lr)(e);return(0,l.jsx)(a.m.kbd,{ref:t,className:(0,s.cx)("chakra-kbd",r),...u,__css:{fontFamily:"mono",...n}})});u.displayName="Kbd"},42822:function(e,t,n){"use strict";n.d(t,{M:function(){return a}});var r=n(59576),i=n(68023),o=n(52322),a=(0,r.m)("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});a.displayName="Center";var s={horizontal:{insetStart:"50%",transform:"translateX(-50%)"},vertical:{top:"50%",transform:"translateY(-50%)"},both:{insetStart:"50%",top:"50%",transform:"translate(-50%, -50%)"}};(0,i.G)(function(e,t){let{axis:n="both",...i}=e;return(0,o.jsx)(r.m.div,{ref:t,__css:s[n],...i,position:"absolute"})})},69251:function(e,t,n){"use strict";n.d(t,{r:function(){return a}});var r=n(68023),i=n(59576),o=n(52322),a=(0,r.G)(function(e,t){let{templateAreas:n,gap:r,rowGap:a,columnGap:s,column:l,row:u,autoFlow:c,autoRows:d,templateRows:h,autoColumns:p,templateColumns:f,...m}=e;return(0,o.jsx)(i.m.div,{ref:t,__css:{display:"grid",gridTemplateAreas:n,gridGap:r,gridRowGap:a,gridColumnGap:s,gridAutoColumns:p,gridColumn:l,gridRow:u,gridAutoFlow:c,gridAutoRows:d,gridTemplateRows:h,gridTemplateColumns:f},...m})});a.displayName="Grid"},11082:function(e,t,n){"use strict";n.d(t,{r:function(){return u}});var r=n(68023),i=n(91982),o=n(84586),a=n(59576),s=n(31053),l=n(52322),u=(0,r.G)(function(e,t){let n=(0,i.mq)("Link",e),{className:r,isExternal:u,...c}=(0,o.Lr)(e);return(0,l.jsx)(a.m.a,{target:u?"_blank":void 0,rel:u?"noopener":void 0,ref:t,className:(0,s.cx)("chakra-link",r),...c,__css:n})});u.displayName="Link"},38035:function(e,t,n){"use strict";n.d(t,{k:function(){return a}});var r=n(68023),i=n(59576),o=n(52322),a=(0,r.G)(function(e,t){let{direction:n,align:r,justify:a,wrap:s,basis:l,grow:u,shrink:c,...d}=e;return(0,o.jsx)(i.m.div,{ref:t,__css:{display:"flex",flexDirection:n,alignItems:r,justifyContent:a,flexWrap:s,flexBasis:l,flexGrow:u,flexShrink:c},...d})});a.displayName="Flex"},62453:function(e,t,n){"use strict";n.d(t,{c:function(){return o}});var r=n(59576),i=n(52322),o=e=>(0,i.jsx)(r.m.div,{className:"chakra-stack__divider",...e,__css:{...e.__css,borderWidth:0,alignSelf:"stretch",borderColor:"inherit",width:"auto",height:"auto"}});o.displayName="StackDivider"},44438:function(e,t,n){"use strict";n.d(t,{E:function(){return u}});var r=n(68023),i=n(91982),o=n(84586),a=n(59576),s=n(31053),l=n(52322),u=(0,r.G)(function(e,t){let n=(0,i.mq)("Code",e),{className:r,...u}=(0,o.Lr)(e);return(0,l.jsx)(a.m.code,{ref:t,className:(0,s.cx)("chakra-code",e.className),...u,__css:{display:"inline-block",...n}})});u.displayName="Code"},20437:function(e,t,n){"use strict";n.d(t,{M:function(){return u}});var r=n(69251),i=n(68023),o=n(91148),a=n(48929),s=n(49456),l=n(52322),u=(0,i.G)(function(e,t){let{columns:n,spacingX:i,spacingY:u,spacing:c,minChildWidth:d,...h}=e,p=(0,o.F)(),f=d?(0,s.XQ)(d,e=>{let t=(0,a.LP)("sizes",e,"number"==typeof e?`${e}px`:e)(p);return null===e?null:`repeat(auto-fit, minmax(${t}, 1fr))`}):(0,s.XQ)(n,e=>null===e?null:`repeat(${e}, minmax(0, 1fr))`);return(0,l.jsx)(r.r,{ref:t,gap:c,columnGap:i,rowGap:u,templateColumns:f,...h})});u.displayName="SimpleGrid"},11881:function(e,t,n){"use strict";n.d(t,{A:function(){return s},f:function(){return l}});var r=n(68023),i=n(59576),o=n(31053),a=n(52322),s=(0,r.G)(function(e,t){let{isExternal:n,target:r,rel:s,className:l,...u}=e;return(0,a.jsx)(i.m.a,{...u,ref:t,className:(0,o.cx)("chakra-linkbox__overlay",l),rel:n?"noopener noreferrer":s,target:n?"_blank":r,__css:{position:"static","&::before":{content:"''",cursor:"inherit",display:"block",position:"absolute",top:0,left:0,zIndex:0,width:"100%",height:"100%"}}})}),l=(0,r.G)(function(e,t){let{className:n,...r}=e;return(0,a.jsx)(i.m.div,{ref:t,position:"relative",...r,className:(0,o.cx)("chakra-linkbox",n),__css:{"a[href]:not(.chakra-linkbox__overlay), abbr[title]":{position:"relative",zIndex:1}}})})},17993:function(e,t,n){"use strict";n.d(t,{g:function(){return a}});var r=n(43297),i=n(68023),o=n(52322),a=(0,i.G)((e,t)=>(0,o.jsx)(r.K,{align:"center",...e,direction:"column",ref:t}));a.displayName="VStack"},28535:function(e,t,n){"use strict";n.d(t,{Cd:function(){return l},xu:function(){return a}});var r=n(59576),i=n(68023),o=n(52322),a=(0,r.m)("div");a.displayName="Box";var s=(0,i.G)(function(e,t){let{size:n,centerContent:r=!0,...i}=e;return(0,o.jsx)(a,{ref:t,boxSize:n,__css:{...r?{display:"flex",alignItems:"center",justifyContent:"center"}:{},flexShrink:0,flexGrow:0},...i})});s.displayName="Square";var l=(0,i.G)(function(e,t){let{size:n,...r}=e;return(0,o.jsx)(s,{size:n,ref:t,borderRadius:"9999px",...r})});l.displayName="Circle"},74008:function(e,t,n){"use strict";n.d(t,{i:function(){return u}});var r=n(68023),i=n(91982),o=n(84586),a=n(59576),s=n(31053),l=n(52322),u=(0,r.G)(function(e,t){let{borderLeftWidth:n,borderBottomWidth:r,borderTopWidth:u,borderRightWidth:c,borderWidth:d,borderStyle:h,borderColor:p,...f}=(0,i.mq)("Divider",e),{className:m,orientation:g="horizontal",__css:v,...y}=(0,o.Lr)(e);return(0,l.jsx)(a.m.hr,{ref:t,"aria-orientation":g,...y,__css:{...f,border:"0",borderColor:p,borderStyle:h,...{vertical:{borderLeftWidth:n||c||d||"1px",height:"100%"},horizontal:{borderBottomWidth:r||u||d||"1px",width:"100%"}}[g],...v},className:(0,s.cx)("chakra-divider",m)})});u.displayName="Divider"},82554:function(e,t,n){"use strict";n.d(t,{C:function(){return u}});var r=n(68023),i=n(91982),o=n(84586),a=n(59576),s=n(31053),l=n(52322),u=(0,r.G)(function(e,t){let n=(0,i.mq)("Badge",e),{className:r,...u}=(0,o.Lr)(e);return(0,l.jsx)(a.m.span,{ref:t,className:(0,s.cx)("chakra-badge",e.className),...u,__css:{display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle",...n}})});u.displayName="Badge"},43297:function(e,t,n){"use strict";n.d(t,{K:function(){return d}});var r=n(59576),i=n(52322),o=e=>(0,i.jsx)(r.m.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});o.displayName="StackItem";var a=n(49456),s=n(25578),l=n(31053),u=n(68023),c=n(2784),d=(0,u.G)((e,t)=>{let{isInline:n,direction:u,align:d,justify:h,spacing:p="0.5rem",wrap:f,children:m,divider:g,className:v,shouldWrapChildren:y,...b}=e,k=n?"row":null!=u?u:"column",w=(0,c.useMemo)(()=>(function(e){let{spacing:t,direction:n}=e,r={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":(0,a.XQ)(n,e=>r[e])}})({spacing:p,direction:k}),[p,k]),x=!!g,_=!y&&!x,S=(0,c.useMemo)(()=>{let e=(0,s.W)(m);return _?e:e.map((t,n)=>{let r=void 0!==t.key?t.key:n,a=n+1===e.length,s=(0,i.jsx)(o,{children:t},r),l=y?s:t;if(!x)return l;let u=(0,c.cloneElement)(g,{__css:w});return(0,i.jsxs)(c.Fragment,{children:[l,a?null:u]},r)})},[g,w,x,_,y,m]),E=(0,l.cx)("chakra-stack",v);return(0,i.jsx)(r.m.div,{ref:t,display:"flex",alignItems:d,justifyContent:h,flexDirection:k,flexWrap:f,gap:x?void 0:p,className:E,...b,children:S})});d.displayName="Stack"},30523:function(e,t,n){"use strict";n.d(t,{P:function(){return u}});var r=n(68023),i=n(59576),o=n(49),a=n(49456),s=n(52322);function l(e){return(0,a.XQ)(e,e=>"auto"===e?"auto":`span ${e}/span ${e}`)}var u=(0,r.G)(function(e,t){let{area:n,colSpan:r,colStart:a,colEnd:u,rowEnd:c,rowSpan:d,rowStart:h,...p}=e,f=(0,o.o)({gridArea:n,gridColumn:l(r),gridRow:l(d),gridColumnStart:a,gridColumnEnd:u,gridRowStart:h,gridRowEnd:c});return(0,s.jsx)(i.m.div,{ref:t,__css:f,...p})});u.displayName="GridItem"},82729:function(e,t,n){"use strict";n.d(t,{o:function(){return u}});var r=n(68023),i=n(59576),o=n(49456),a=n(31053),s=n(2784),l=n(52322),u=(0,r.G)(function(e,t){let{ratio:n=4/3,children:r,className:u,...c}=e,d=s.Children.only(r),h=(0,a.cx)("chakra-aspect-ratio",u);return(0,l.jsx)(i.m.div,{ref:t,position:"relative",className:h,_before:{height:0,content:'""',display:"block",paddingBottom:(0,o.XQ)(n,e=>`${1/e*100}%`)},__css:{"& > *:not(style)":{overflow:"hidden",position:"absolute",top:"0",right:"0",bottom:"0",left:"0",display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"},"& > img, & > video":{objectFit:"cover"}},...c,children:d})});u.displayName="AspectRatio"},4028:function(e,t,n){"use strict";function r(e){let{wasSelected:t,enabled:n,isSelected:r,mode:i="unmount"}=e;return!n||!!r||"keepMounted"===i&&!!t}n.d(t,{k:function(){return r}})},94207:function(e,t,n){"use strict";n.d(t,{a:function(){return o}});var r=n(38317),i=n(2784);function o(e,t={}){let{ssr:n=!0,fallback:o}=t,{getWindow:a}=(0,r.O)(),s=Array.isArray(e)?e:[e],l=Array.isArray(o)?o:[o];l=l.filter(e=>null!=e);let[u,c]=(0,i.useState)(()=>s.map((e,t)=>({media:e,matches:n?!!l[t]:a().matchMedia(e).matches})));return(0,i.useEffect)(()=>{let e=a();c(s.map(t=>({media:t,matches:e.matchMedia(t).matches})));let t=s.map(t=>e.matchMedia(t)),n=e=>{c(t=>t.slice().map(t=>t.media===e.media?{...t,matches:e.matches}:t))};return t.forEach(e=>{"function"==typeof e.addListener?e.addListener(n):e.addEventListener("change",n)}),()=>{t.forEach(e=>{"function"==typeof e.removeListener?e.removeListener(n):e.removeEventListener("change",n)})}},[a]),u.map(e=>e.matches)}},24772:function(e,t,n){"use strict";n.d(t,{S:function(){return s}});var r=n(49456),i=n(94207),o=n(91148),a=n(31053);function s(e,t){var n;let s=(0,a.Kn)(t)?t:{fallback:null!=t?t:"base"},l=function(e){var t,n;let r=(0,a.Kn)(e)?e:{fallback:null!=e?e:"base"},s=(0,o.F)(),l=s.__breakpoints.details.map(({minMaxQuery:e,breakpoint:t})=>({breakpoint:t,query:e.replace("@media screen and ","")})),u=l.map(e=>e.breakpoint===r.fallback),c=(0,i.a)(l.map(e=>e.query),{fallback:u,ssr:r.ssr}),d=c.findIndex(e=>!0==e);return null!=(n=null==(t=l[d])?void 0:t.breakpoint)?n:r.fallback}(s),u=(0,o.F)();if(!l)return;let c=Array.from((null==(n=u.__breakpoints)?void 0:n.keys)||[]),d=Array.isArray(e)?Object.fromEntries(Object.entries((0,r.Yq)(e,c)).map(([e,t])=>[e,t])):e;return function(e,t,n=r.AV){let i=Object.keys(e).indexOf(t);if(-1!==i)return e[t];let o=n.indexOf(t);for(;o>=0;){let t=n[o];if(e.hasOwnProperty(t)){i=o;break}o-=1}if(-1!==i){let t=n[i];return e[t]}}(d,l,c)}},25481:function(e,t,n){"use strict";n.d(t,{s:function(){return h}});var r=n(10625),i=n(68023),o=n(59576),a=n(52322),s=(0,i.G)((e,t)=>{let n=(0,r.x)();return(0,a.jsx)(o.m.span,{ref:t,...e,__css:n.command,className:"chakra-menu__command"})});s.displayName="MenuCommand";var l=n(57442),u=n(32509),c=n(35743),d=n(31053),h=(0,i.G)((e,t)=>{let{icon:n,iconSpacing:r="0.75rem",command:i,commandSpacing:o="0.75rem",children:h,...p}=e,f=(0,c.iX)(p,t),m=n||i?(0,a.jsx)("span",{style:{pointerEvents:"none",flex:1},children:h}):h;return(0,a.jsxs)(l.C,{...f,className:(0,d.cx)("chakra-menu__menuitem",f.className),children:[n&&(0,a.jsx)(u.O,{fontSize:"0.8em",marginEnd:r,children:n}),m,i&&(0,a.jsx)(s,{marginStart:o,children:i})]})});h.displayName="MenuItem"},99058:function(e,t,n){"use strict";n.d(t,{q:function(){return h}});var r=n(10625),i=n(35743),o=n(31053),a=n(59576),s=n(68023),l=n(7165),u=n(52322),c={enter:{visibility:"visible",opacity:1,scale:1,transition:{duration:.2,ease:[.4,0,.2,1]}},exit:{transitionEnd:{visibility:"hidden"},opacity:0,scale:.8,transition:{duration:.1,easings:"easeOut"}}},d=(0,a.m)(l.E.div),h=(0,s.G)(function(e,t){var n,s;let{rootProps:l,motionProps:h,...p}=e,{isOpen:f,onTransitionEnd:m,unstable__animationState:g}=(0,i.Xh)(),v=(0,i._l)(p,t),y=(0,i.Qh)(l),b=(0,r.x)();return(0,u.jsx)(a.m.div,{...y,__css:{zIndex:null!=(s=e.zIndex)?s:null==(n=b.list)?void 0:n.zIndex},children:(0,u.jsx)(d,{variants:c,initial:!1,animate:f?"enter":"exit",__css:{outline:0,...b.list},...h,className:(0,o.cx)("chakra-menu__menu-list",v.className),...v,onUpdate:m,onAnimationComplete:(0,o.PP)(g.onComplete,v.onAnimationComplete)})})});h.displayName="MenuList"},39237:function(e,t,n){"use strict";n.d(t,{i:function(){return c}});var r=n(57442),i=n(32509),o=n(35743),a=n(68023),s=n(31053),l=n(52322),u=e=>(0,l.jsx)("svg",{viewBox:"0 0 14 14",width:"1em",height:"1em",...e,children:(0,l.jsx)("polygon",{fill:"currentColor",points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"})}),c=(0,a.G)((e,t)=>{let{icon:n,iconSpacing:a="0.75rem",...c}=e,d=(0,o.gO)(c,t);return(0,l.jsxs)(r.C,{...d,className:(0,s.cx)("chakra-menu__menuitem-option",c.className),children:[null!==n&&(0,l.jsx)(i.O,{fontSize:"0.8em",marginEnd:a,opacity:e.isChecked?1:0,children:n||(0,l.jsx)(u,{})}),(0,l.jsx)("span",{style:{flex:1},children:d.children})]})});c.id="MenuItemOption",c.displayName="MenuItemOption"},27599:function(e,t,n){"use strict";n.d(t,{R:function(){return s}});var r=n(10625),i=n(59576),o=n(31053),a=n(52322),s=e=>{let{className:t,...n}=e,s=(0,r.x)();return(0,a.jsx)(i.m.hr,{"aria-orientation":"horizontal",className:(0,o.cx)("chakra-menu__divider",t),...n,__css:s.divider})};s.displayName="MenuDivider"},32509:function(e,t,n){"use strict";n.d(t,{O:function(){return l}});var r=n(10625),i=n(59576),o=n(31053),a=n(2784),s=n(52322),l=e=>{let{className:t,children:n,...l}=e,u=(0,r.x)(),c=a.Children.only(n),d=(0,a.isValidElement)(c)?(0,a.cloneElement)(c,{focusable:"false","aria-hidden":!0,className:(0,o.cx)("chakra-menu__icon",c.props.className)}):null,h=(0,o.cx)("chakra-menu__icon-wrapper",t);return(0,s.jsx)(i.m.span,{className:h,...l,__css:u.icon,children:d})};l.displayName="MenuIcon"},44035:function(e,t,n){"use strict";n.d(t,{_:function(){return s}});var r=n(69024),i=n(35743),o=n(31053),a=n(52322),s=e=>{let{className:t,title:n,...s}=e,l=(0,i.Vg)(s);return(0,a.jsx)(r.k,{title:n,className:(0,o.cx)("chakra-menu__option-group",t),...l})};s.displayName="MenuOptionGroup"},57442:function(e,t,n){"use strict";n.d(t,{C:function(){return l}});var r=n(10625),i=n(68023),o=n(59576),a=n(2784),s=n(52322),l=(0,i.G)((e,t)=>{let{type:n,...i}=e,l=(0,r.x)(),u=i.as||n?null!=n?n:void 0:"button",c=(0,a.useMemo)(()=>({textDecoration:"none",color:"inherit",userSelect:"none",display:"flex",width:"100%",alignItems:"center",textAlign:"start",flex:"0 0 auto",outline:0,...l.item}),[l.item]);return(0,s.jsx)(o.m.button,{ref:t,type:u,...i,__css:c})})},69024:function(e,t,n){"use strict";n.d(t,{k:function(){return l}});var r=n(10625),i=n(68023),o=n(59576),a=n(31053),s=n(52322),l=(0,i.G)((e,t)=>{let{title:n,children:i,className:l,...u}=e,c=(0,a.cx)("chakra-menu__group__title",l),d=(0,r.x)();return(0,s.jsxs)("div",{ref:t,className:"chakra-menu__group",role:"group",children:[n&&(0,s.jsx)(o.m.p,{className:c,...u,__css:d.groupTitle,children:n}),i]})});l.displayName="MenuGroup"},35743:function(e,t,n){"use strict";n.d(t,{wN:function(){return k},Kb:function(){return S},H9:function(){return j},zZ:function(){return O},Xh:function(){return E},iX:function(){return R},_l:function(){return A},gO:function(){return M},Vg:function(){return F},Qh:function(){return P}});var r=n(2784),i=n(30350),o=n(81550),a=n(23964),s=n(70339),l=n(36502),u=n(90359);function c(e,t){var n;let r=e.target;if(r){let e=d(r);if(!e.contains(r))return!1}return!(null==(n=t.current)?void 0:n.contains(r))}function d(e){var t;return null!=(t=null==e?void 0:e.ownerDocument)?t:document}var h=n(87053),p=n(9165),f=n(25578),m=n(59572),g=n(3171),v=n(85244),y=n(31053),b=n(4028),[k,w,x,_]=(0,o.n)(),[S,E]=(0,p.k)({strict:!1,name:"MenuContext"});function D(e){var t;return null!=(t=null==e?void 0:e.ownerDocument)?t:document}function C(e){let t=D(e);return t.activeElement===e}function j(e={}){let{id:t,closeOnSelect:n=!0,closeOnBlur:i=!0,initialFocusRef:o,autoSelect:p=!0,isLazy:f,isOpen:m,defaultIsOpen:v,onClose:y,onOpen:b,placement:k="bottom-start",lazyBehavior:w="unmount",direction:_,computePositionOnMount:S=!1,...E}=e,C=(0,r.useRef)(null),j=(0,r.useRef)(null),O=x(),T=(0,r.useCallback)(()=>{requestAnimationFrame(()=>{var e;null==(e=C.current)||e.focus({preventScroll:!1})})},[]),A=(0,r.useCallback)(()=>{let e=setTimeout(()=>{var e;if(o)null==(e=o.current)||e.focus();else{let e=O.firstEnabled();e&&z(e.index)}});V.current.add(e)},[O,o]),P=(0,r.useCallback)(()=>{let e=setTimeout(()=>{let e=O.lastEnabled();e&&z(e.index)});V.current.add(e)},[O]),R=(0,r.useCallback)(()=>{null==b||b(),p?A():T()},[p,A,T,b]),{isOpen:M,onOpen:F,onClose:N,onToggle:I}=(0,l.q)({isOpen:m,defaultIsOpen:v,onClose:y,onOpen:R});!function(e){let{ref:t,handler:n,enabled:i=!0}=e,o=(0,u.W)(n),a=(0,r.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),s=a.current;(0,r.useEffect)(()=>{if(!i)return;let e=e=>{c(e,t)&&(s.isPointerDown=!0)},r=e=>{if(s.ignoreEmulatedMouseEvents){s.ignoreEmulatedMouseEvents=!1;return}s.isPointerDown&&n&&c(e,t)&&(s.isPointerDown=!1,o(e))},a=e=>{s.ignoreEmulatedMouseEvents=!0,n&&s.isPointerDown&&c(e,t)&&(s.isPointerDown=!1,o(e))},l=d(t.current);return l.addEventListener("mousedown",e,!0),l.addEventListener("mouseup",r,!0),l.addEventListener("touchstart",e,!0),l.addEventListener("touchend",a,!0),()=>{l.removeEventListener("mousedown",e,!0),l.removeEventListener("mouseup",r,!0),l.removeEventListener("touchstart",e,!0),l.removeEventListener("touchend",a,!0)}},[n,t,o,s,i])}({enabled:M&&i,ref:C,handler:e=>{var t;(null==(t=j.current)?void 0:t.contains(e.target))||N()}});let L=(0,s.D)({...E,enabled:M||S,placement:k,direction:_}),[B,z]=(0,r.useState)(-1);(0,g.r)(()=>{M||z(-1)},[M]),(0,a.C)(C,{focusRef:j,visible:M,shouldFocus:!0});let U=(0,h.h)({isOpen:M,ref:C}),[q,$]=function(e,...t){let n=(0,r.useId)(),i=e||n;return(0,r.useMemo)(()=>t.map(e=>`${e}-${i}`),[i,t])}(t,"menu-button","menu-list"),H=(0,r.useCallback)(()=>{F(),T()},[F,T]),V=(0,r.useRef)(new Set([]));(0,r.useEffect)(()=>{let e=V.current;return()=>{e.forEach(e=>clearTimeout(e)),e.clear()}},[]);let W=(0,r.useCallback)(()=>{F(),A()},[A,F]),G=(0,r.useCallback)(()=>{F(),P()},[F,P]),Y=(0,r.useCallback)(()=>{var e,t;let n=D(C.current),r=null==(e=C.current)?void 0:e.contains(n.activeElement),i=M&&!r;if(!i)return;let o=null==(t=O.item(B))?void 0:t.node;null==o||o.focus({preventScroll:!0})},[M,B,O]),Z=(0,r.useRef)(null);return{openAndFocusMenu:H,openAndFocusFirstItem:W,openAndFocusLastItem:G,onTransitionEnd:Y,unstable__animationState:U,descendants:O,popper:L,buttonId:q,menuId:$,forceUpdate:L.forceUpdate,orientation:"vertical",isOpen:M,onToggle:I,onOpen:F,onClose:N,menuRef:C,buttonRef:j,focusedIndex:B,closeOnSelect:n,closeOnBlur:i,autoSelect:p,setFocusedIndex:z,isLazy:f,lazyBehavior:w,initialFocusRef:o,rafId:Z}}function O(e={},t=null){let n=E(),{onToggle:i,popper:o,openAndFocusFirstItem:a,openAndFocusLastItem:s}=n,l=(0,r.useCallback)(e=>{let t=e.key,n={Enter:a,ArrowDown:a,ArrowUp:s}[t];n&&(e.preventDefault(),e.stopPropagation(),n(e))},[a,s]);return{...e,ref:(0,v.lq)(n.buttonRef,t,o.referenceRef),id:n.buttonId,"data-active":(0,y.PB)(n.isOpen),"aria-expanded":n.isOpen,"aria-haspopup":"menu","aria-controls":n.menuId,onClick:(0,y.v0)(e.onClick,i),onKeyDown:(0,y.v0)(e.onKeyDown,l)}}function T(e){var t;return function(e){var t;if(!(null!=e&&"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE))return!1;let n=null!=(t=e.ownerDocument.defaultView)?t:window;return e instanceof n.HTMLElement}(e)&&!!(null==(t=null==e?void 0:e.getAttribute("role"))?void 0:t.startsWith("menuitem"))}function A(e={},t=null){let n=E();if(!n)throw Error("useMenuContext: context is undefined. Seems you forgot to wrap component within ");let{focusedIndex:i,setFocusedIndex:o,menuRef:a,isOpen:s,onClose:l,menuId:u,isLazy:c,lazyBehavior:d,unstable__animationState:h}=n,p=w(),f=function(e={}){let{timeout:t=300,preventDefault:n=()=>!0}=e,[i,o]=(0,r.useState)([]),a=(0,r.useRef)(),s=()=>{a.current&&(clearTimeout(a.current),a.current=null)},l=()=>{s(),a.current=setTimeout(()=>{o([]),a.current=null},t)};return(0,r.useEffect)(()=>s,[]),function(e){return t=>{if("Backspace"===t.key){let e=[...i];e.pop(),o(e);return}if(function(e){let{key:t}=e;return 1===t.length||t.length>1&&/[^a-zA-Z0-9]/.test(t)}(t)){let r=i.concat(t.key);n(t)&&(t.preventDefault(),t.stopPropagation()),o(r),e(r.join("")),l()}}}}({preventDefault:e=>" "!==e.key&&T(e.target)}),m=(0,r.useCallback)(e=>{if(!e.currentTarget.contains(e.target))return;let t=e.key,n={Tab:e=>e.preventDefault(),Escape:l,ArrowDown:()=>{let e=p.nextEnabled(i);e&&o(e.index)},ArrowUp:()=>{let e=p.prevEnabled(i);e&&o(e.index)}}[t];if(n){e.preventDefault(),n(e);return}let r=f(e=>{let t=function(e,t,n,r){if(null==t)return r;if(!r){let r=e.find(e=>n(e).toLowerCase().startsWith(t.toLowerCase()));return r}let i=e.filter(e=>n(e).toLowerCase().startsWith(t.toLowerCase()));if(i.length>0){let t;if(i.includes(r)){let e=i.indexOf(r);return(t=e+1)===i.length&&(t=0),i[t]}return t=e.indexOf(i[0]),e[t]}return r}(p.values(),e,e=>{var t,n;return null!=(n=null==(t=null==e?void 0:e.node)?void 0:t.textContent)?n:""},p.item(i));if(t){let e=p.indexOf(t.node);o(e)}});T(e.target)&&r(e)},[p,i,f,l,o]),g=(0,r.useRef)(!1);s&&(g.current=!0);let k=(0,b.k)({wasSelected:g.current,enabled:c,mode:d,isSelected:h.present});return{...e,ref:(0,v.lq)(a,t),children:k?e.children:null,tabIndex:-1,role:"menu",id:u,style:{...e.style,transformOrigin:"var(--popper-transform-origin)"},"aria-orientation":"vertical",onKeyDown:(0,y.v0)(e.onKeyDown,m)}}function P(e={}){let{popper:t,isOpen:n}=E();return t.getPopperProps({...e,style:{visibility:n?"visible":"hidden",...e.style}})}function R(e={},t=null){let{onMouseEnter:n,onMouseMove:o,onMouseLeave:a,onClick:s,onFocus:l,isDisabled:u,isFocusable:c,closeOnSelect:d,type:h,...p}=e,f=E(),{setFocusedIndex:m,focusedIndex:y,closeOnSelect:b,onClose:k,menuRef:w,isOpen:x,menuId:S,rafId:D}=f,j=(0,r.useRef)(null),O=`${S}-menuitem-${(0,r.useId)()}`,{index:A,register:P}=_({disabled:u&&!c}),R=(0,r.useCallback)(e=>{null==n||n(e),u||m(A)},[m,A,u,n]),M=(0,r.useCallback)(e=>{null==o||o(e),j.current&&!C(j.current)&&R(e)},[R,o]),F=(0,r.useCallback)(e=>{null==a||a(e),u||m(-1)},[m,u,a]),N=(0,r.useCallback)(e=>{null==s||s(e),T(e.currentTarget)&&(null!=d?d:b)&&k()},[k,s,b,d]),I=(0,r.useCallback)(e=>{null==l||l(e),m(A)},[m,l,A]),L=A===y,B=u&&!c;(0,g.r)(()=>{if(x)return L&&!B&&j.current?(D.current&&cancelAnimationFrame(D.current),D.current=requestAnimationFrame(()=>{var e;null==(e=j.current)||e.focus({preventScroll:!0}),D.current=null})):w.current&&!C(w.current)&&w.current.focus({preventScroll:!0}),()=>{D.current&&cancelAnimationFrame(D.current)}},[L,B,w,x]);let z=(0,i.h)({onClick:N,onFocus:I,onMouseEnter:R,onMouseMove:M,onMouseLeave:F,ref:(0,v.lq)(P,j,t),isDisabled:u,isFocusable:c});return{...p,...z,type:null!=h?h:z.type,id:O,role:"menuitem",tabIndex:L?0:-1}}function M(e={},t=null){let{type:n="radio",isChecked:r,...i}=e,o=R(i,t);return{...o,role:`menuitem${n}`,"aria-checked":r}}function F(e={}){let{children:t,type:n="radio",value:i,defaultValue:o,onChange:a,...s}=e,l="radio"===n,[u,c]=(0,m.T)({defaultValue:null!=o?o:l?"":[],value:i,onChange:a}),d=(0,r.useCallback)(e=>{if("radio"===n&&"string"==typeof u&&c(e),"checkbox"===n&&Array.isArray(u)){let t=u.includes(e)?u.filter(t=>t!==e):u.concat(e);c(t)}},[u,c,n]),h=(0,f.W)(t),p=h.map(e=>{if("MenuItemOption"!==e.type.id)return e;let t="radio"===n?e.props.value===u:u.includes(e.props.value);return(0,r.cloneElement)(e,{type:n,onClick:t=>{var n,r;d(e.props.value),null==(r=(n=e.props).onClick)||r.call(n,t)},isChecked:t})});return{...s,children:p}}},10625:function(e,t,n){"use strict";n.d(t,{v:function(){return p},x:function(){return h}});var r=n(35743),i=n(9165),o=n(91982),a=n(84586),s=n(91148),l=n(31053),u=n(2784),c=n(52322),[d,h]=(0,i.k)({name:"MenuStylesContext",errorMessage:"useMenuStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),p=e=>{let{children:t}=e,n=(0,o.jC)("Menu",e),i=(0,a.Lr)(e),{direction:h}=(0,s.F)(),{descendants:p,...f}=(0,r.H9)({...i,direction:h}),m=(0,u.useMemo)(()=>f,[f]),{isOpen:g,onClose:v,forceUpdate:y}=m;return(0,c.jsx)(r.wN,{value:p,children:(0,c.jsx)(r.Kb,{value:m,children:(0,c.jsx)(d,{value:n,children:(0,l.Pu)(t,{isOpen:g,onClose:v,forceUpdate:y})})})})};p.displayName="Menu"},67046:function(e,t,n){"use strict";n.d(t,{j:function(){return c}});var r=n(10625),i=n(35743),o=n(68023),a=n(59576),s=n(31053),l=n(52322),u=(0,o.G)((e,t)=>{let n=(0,r.x)();return(0,l.jsx)(a.m.button,{ref:t,...e,__css:{display:"inline-flex",appearance:"none",alignItems:"center",outline:0,...n.button}})}),c=(0,o.G)((e,t)=>{let{children:n,as:r,...o}=e,c=(0,i.zZ)(o,t),d=r||u;return(0,l.jsx)(d,{...c,className:(0,s.cx)("chakra-menu__menu-button",e.className),children:(0,l.jsx)(a.m.span,{__css:{pointerEvents:"none",flex:"1 1 auto",minW:0},children:e.children})})});c.displayName="MenuButton"},2338:function(e,t,n){"use strict";n.d(t,{o:function(){return l}});var r=n(92850),i=n(81672),o=n(31053),a=n(68023),s=n(52322),l=(0,a.G)((e,t)=>{let{onClick:n,className:a,...l}=e,{onClose:u}=(0,r.vR)(),c=(0,o.cx)("chakra-modal__close-btn",a),d=(0,r.I_)();return(0,s.jsx)(i.P,{ref:t,__css:d.closeButton,className:c,onClick:(0,o.v0)(n,e=>{e.stopPropagation(),u()}),...l})});l.displayName="ModalCloseButton"},54326:function(e,t,n){"use strict";n.d(t,{x:function(){return u}});var r=n(92850),i=n(31053),o=n(68023),a=n(59576),s=n(2784),l=n(52322),u=(0,o.G)((e,t)=>{let{className:n,...o}=e,{headerId:u,setHeaderMounted:c}=(0,r.vR)();(0,s.useEffect)(()=>(c(!0),()=>c(!1)),[c]);let d=(0,i.cx)("chakra-modal__header",n),h=(0,r.I_)(),p={flex:0,...h.header};return(0,l.jsx)(a.m.header,{ref:t,className:d,id:u,...o,__css:p})});u.displayName="ModalHeader"},73751:function(e,t,n){"use strict";n.d(t,{s:function(){return h}});var r=n(32981),i=n(88422),o=n(92850),a=n(31053),s=n(59576),l=n(68023),u=n(55070),c=n(52322),d=(0,s.m)(u.M),h=(0,l.G)((e,t)=>{let{className:n,children:l,motionProps:u,containerProps:h,...p}=e,{getDialogProps:f,getDialogContainerProps:m,isOpen:g}=(0,o.vR)(),v=f(p,t),y=m(h),b=(0,a.cx)("chakra-modal__content",n),k=(0,o.I_)(),w={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...k.dialog},x={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...k.dialogContainer},{placement:_}=(0,r.M)();return(0,c.jsx)(i.M,{children:(0,c.jsx)(s.m.div,{...y,className:"chakra-modal__content-container",__css:x,children:(0,c.jsx)(d,{motionProps:u,direction:_,in:g,className:b,...v,__css:w,children:l})})})});h.displayName="DrawerContent"},76220:function(e,t,n){"use strict";n.d(t,{m:function(){return s},$:function(){return l}});var r=Object.defineProperty,i=(e,t,n)=>t in e?r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,o=(e,t,n)=>(i(e,"symbol"!=typeof t?t+"":t,n),n),a=n(2784),s=new class{constructor(){o(this,"modals"),this.modals=new Map}add(e){return this.modals.set(e,this.modals.size+1),this.modals.size}remove(e){this.modals.delete(e)}isTopModal(e){return!!e&&this.modals.get(e)===this.modals.size}};function l(e,t){let[n,r]=(0,a.useState)(0);return(0,a.useEffect)(()=>{let n=e.current;if(n){if(t){let e=s.add(n);r(e)}return()=>{s.remove(n),r(0)}}},[t,e]),n}},55199:function(e,t,n){"use strict";n.d(t,{h:function(){return y}});var r=n(59576),i=n(41914),o=n(31053),a=n(88241),s=n(7165),l=n(2784),u=n(52322),c={initial:"initial",animate:"enter",exit:"exit",variants:{initial:({offsetX:e,offsetY:t,transition:n,transitionEnd:r,delay:o})=>{var a;return{opacity:0,x:e,y:t,transition:null!=(a=null==n?void 0:n.exit)?a:i.p$.exit(i.Sh.exit,o),transitionEnd:null==r?void 0:r.exit}},enter:({transition:e,transitionEnd:t,delay:n})=>{var r;return{opacity:1,x:0,y:0,transition:null!=(r=null==e?void 0:e.enter)?r:i.p$.enter(i.Sh.enter,n),transitionEnd:null==t?void 0:t.enter}},exit:({offsetY:e,offsetX:t,transition:n,transitionEnd:r,reverse:o,delay:a})=>{var s;let l={x:t,y:e};return{opacity:0,transition:null!=(s=null==n?void 0:n.exit)?s:i.p$.exit(i.Sh.exit,a),...o?{...l,transitionEnd:null==r?void 0:r.exit}:{transitionEnd:{...l,...null==r?void 0:r.exit}}}}}};(0,l.forwardRef)(function(e,t){let{unmountOnExit:n,in:r,reverse:i=!0,className:l,offsetX:d=0,offsetY:h=8,transition:p,transitionEnd:f,delay:m,...g}=e,v=!n||r&&n,y=r||n?"enter":"exit",b={offsetX:d,offsetY:h,reverse:i,transition:p,transitionEnd:f,delay:m};return(0,u.jsx)(a.M,{custom:b,children:v&&(0,u.jsx)(s.E.div,{ref:t,className:(0,o.cx)("chakra-offset-slide",l),custom:b,...c,animate:y,...g})})}).displayName="SlideFade";var d={initial:"exit",animate:"enter",exit:"exit",variants:{exit:({reverse:e,initialScale:t,transition:n,transitionEnd:r,delay:o})=>{var a;return{opacity:0,...e?{scale:t,transitionEnd:null==r?void 0:r.exit}:{transitionEnd:{scale:t,...null==r?void 0:r.exit}},transition:null!=(a=null==n?void 0:n.exit)?a:i.p$.exit(i.Sh.exit,o)}},enter:({transitionEnd:e,transition:t,delay:n})=>{var r;return{opacity:1,scale:1,transition:null!=(r=null==t?void 0:t.enter)?r:i.p$.enter(i.Sh.enter,n),transitionEnd:null==e?void 0:e.enter}}}};(0,l.forwardRef)(function(e,t){let{unmountOnExit:n,in:r,reverse:i=!0,initialScale:l=.95,className:c,transition:h,transitionEnd:p,delay:f,...m}=e,g=!n||r&&n,v=r||n?"enter":"exit",y={initialScale:l,reverse:i,transition:h,transitionEnd:p,delay:f};return(0,u.jsx)(a.M,{custom:y,children:g&&(0,u.jsx)(s.E.div,{ref:t,className:(0,o.cx)("chakra-offset-slide",c),...d,animate:v,custom:y,...m})})}).displayName="ScaleFade";var h={slideInBottom:{...c,custom:{offsetY:16,reverse:!0}},slideInRight:{...c,custom:{offsetX:16,reverse:!0}},slideInTop:{...c,custom:{offsetY:-16,reverse:!0}},slideInLeft:{...c,custom:{offsetX:-16,reverse:!0}},scale:{...d,custom:{initialScale:.95,reverse:!0}},none:{}},p=(0,r.m)(s.E.section),f=e=>h[e||"none"],m=(0,l.forwardRef)((e,t)=>{let{preset:n,motionProps:r=f(n),...i}=e;return(0,u.jsx)(p,{ref:t,...r,...i})});m.displayName="ModalTransition";var g=n(88422),v=n(92850),y=(0,n(68023).G)((e,t)=>{let{className:n,children:i,containerProps:a,motionProps:s,...l}=e,{getDialogProps:c,getDialogContainerProps:d}=(0,v.vR)(),h=c(l,t),p=d(a),f=(0,o.cx)("chakra-modal__content",n),y=(0,v.I_)(),b={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...y.dialog},k={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...y.dialogContainer},{motionPreset:w}=(0,v.vR)();return(0,u.jsx)(g.M,{children:(0,u.jsx)(r.m.div,{...p,className:"chakra-modal__content-container",tabIndex:-1,__css:k,children:(0,u.jsx)(m,{preset:w,motionProps:s,className:f,...h,__css:b,children:i})})})});y.displayName="ModalContent"},26468:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(92850),i=n(31053),o=n(59576),a=n(68023),s=n(78071),l=n(7165),u=n(52322),c=(0,o.m)(l.E.div),d=(0,a.G)((e,t)=>{let{className:n,transition:o,motionProps:a,...l}=e,d=(0,i.cx)("chakra-modal__overlay",n),h=(0,r.I_)(),p={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...h.overlay},{motionPreset:f}=(0,r.vR)(),m="none"===f?{}:s.u,g=a||m;return(0,u.jsx)(c,{...g,__css:p,ref:t,className:d,...l})});d.displayName="ModalOverlay"},32981:function(e,t,n){"use strict";n.d(t,{M:function(){return l},d:function(){return c}});var r=n(92850),i=n(9165),o=n(91148),a=n(52322),[s,l]=(0,i.k)(),u={start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}};function c(e){var t;let{isOpen:n,onClose:i,placement:l="right",children:c,...d}=e,h=(0,o.F)(),p=null==(t=h.components)?void 0:t.Drawer,f=function(e,t){var n,r;if(e)return null!=(r=null==(n=u[e])?void 0:n[t])?r:e}(l,h.direction);return(0,a.jsx)(s,{value:{placement:f},children:(0,a.jsx)(r.u_,{isOpen:n,onClose:i,styleConfig:p,...d,children:c})})}},92850:function(e,t,n){"use strict";n.d(t,{u_:function(){return v},vR:function(){return g},I_:function(){return f}});var r=n(76220),i=n(31053),o=n(85244),a=n(49732),s=n(2784),l=n(332),u=n(9165),c=n(91982),d=n(88241),h=n(52322),[p,f]=(0,u.k)({name:"ModalStylesContext",errorMessage:"useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),[m,g]=(0,u.k)({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in ``"}),v=e=>{let t={scrollBehavior:"outside",autoFocus:!0,trapFocus:!0,returnFocusOnClose:!0,blockScrollOnMount:!0,allowPinchZoom:!1,motionPreset:"scale",lockFocusAcrossFrames:!0,...e},{portalProps:n,children:u,autoFocus:f,trapFocus:g,initialFocusRef:v,finalFocusRef:y,returnFocusOnClose:b,blockScrollOnMount:k,allowPinchZoom:w,preserveScrollBarGap:x,motionPreset:_,lockFocusAcrossFrames:S,onCloseComplete:E}=t,D=(0,c.jC)("Modal",t),C=function(e){let{isOpen:t,onClose:n,id:l,closeOnOverlayClick:u=!0,closeOnEsc:c=!0,useInert:d=!0,onOverlayClick:h,onEsc:p}=e,f=(0,s.useRef)(null),m=(0,s.useRef)(null),[g,v,y]=function(e,...t){let n=(0,s.useId)(),r=e||n;return(0,s.useMemo)(()=>t.map(e=>`${e}-${r}`),[r,t])}(l,"chakra-modal","chakra-modal--header","chakra-modal--body");!function(e,t){let n=e.current;(0,s.useEffect)(()=>{if(e.current&&t)return(0,a.Ry)(e.current)},[t,e,n])}(f,t&&d);let b=(0,r.$)(f,t),k=(0,s.useRef)(null),w=(0,s.useCallback)(e=>{k.current=e.target},[]),x=(0,s.useCallback)(e=>{"Escape"===e.key&&(e.stopPropagation(),c&&(null==n||n()),null==p||p())},[c,n,p]),[_,S]=(0,s.useState)(!1),[E,D]=(0,s.useState)(!1),C=(0,s.useCallback)((e={},t=null)=>({role:"dialog",...e,ref:(0,o.lq)(t,f),id:g,tabIndex:-1,"aria-modal":!0,"aria-labelledby":_?v:void 0,"aria-describedby":E?y:void 0,onClick:(0,i.v0)(e.onClick,e=>e.stopPropagation())}),[y,E,g,v,_]),j=(0,s.useCallback)(e=>{e.stopPropagation(),k.current===e.target&&r.m.isTopModal(f.current)&&(u&&(null==n||n()),null==h||h())},[n,u,h]),O=(0,s.useCallback)((e={},t=null)=>({...e,ref:(0,o.lq)(t,m),onClick:(0,i.v0)(e.onClick,j),onKeyDown:(0,i.v0)(e.onKeyDown,x),onMouseDown:(0,i.v0)(e.onMouseDown,w)}),[x,w,j]);return{isOpen:t,onClose:n,headerId:v,bodyId:y,setBodyMounted:D,setHeaderMounted:S,dialogRef:f,overlayRef:m,getDialogProps:C,getDialogContainerProps:O,index:b}}(t),j={...C,autoFocus:f,trapFocus:g,initialFocusRef:v,finalFocusRef:y,returnFocusOnClose:b,blockScrollOnMount:k,allowPinchZoom:w,preserveScrollBarGap:x,motionPreset:_,lockFocusAcrossFrames:S};return(0,h.jsx)(m,{value:j,children:(0,h.jsx)(p,{value:D,children:(0,h.jsx)(d.M,{onExitComplete:E,children:j.isOpen&&(0,h.jsx)(l.h,{...n,children:u})})})})};v.displayName="Modal"},88422:function(e,t,n){"use strict";n.d(t,{M:function(){return te}});var r,i,o=n(92850),a=n(76220),s=n(7896),l=n(2784),u="data-focus-lock",c="data-focus-lock-disabled",d=n(22442),h={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},p=n(64597),f=(0,p.s)({},function(e){return{target:e.target,currentTarget:e.currentTarget}}),m=(0,p.s)(),g=(0,p.s)(),v=(0,p._)({async:!0}),y=[],b=l.forwardRef(function(e,t){var n,r=l.useState(),i=r[0],o=r[1],a=l.useRef(),p=l.useRef(!1),g=l.useRef(null),b=e.children,k=e.disabled,w=void 0!==k&&k,x=e.noFocusGuards,_=void 0!==x&&x,S=e.persistentFocus,E=e.crossFrame,D=e.autoFocus,C=(e.allowTextSelection,e.group),j=e.className,O=e.whiteList,T=e.hasPositiveIndices,A=e.shards,P=void 0===A?y:A,R=e.as,M=void 0===R?"div":R,F=e.lockProps,N=void 0===F?{}:F,I=e.sideCar,L=e.returnFocus,B=void 0!==L&&L,z=e.focusOptions,U=e.onActivation,q=e.onDeactivation,$=l.useState({})[0],H=l.useCallback(function(){g.current=g.current||document&&document.activeElement,a.current&&U&&U(a.current),p.current=!0},[U]),V=l.useCallback(function(){p.current=!1,q&&q(a.current)},[q]);(0,l.useEffect)(function(){w||(g.current=null)},[]);var W=l.useCallback(function(e){var t=g.current;if(t&&t.focus){var n="function"==typeof B?B(t):B;if(n){var r="object"==typeof n?n:void 0;g.current=null,e?Promise.resolve().then(function(){return t.focus(r)}):t.focus(r)}}},[B]),G=l.useCallback(function(e){p.current&&f.useMedium(e)},[]),Y=m.useMedium,Z=l.useCallback(function(e){a.current!==e&&(a.current=e,o(e))},[]),K=(0,s.Z)(((n={})[c]=w&&"disabled",n[u]=C,n),N),J=!0!==_,X=J&&"tail"!==_,Q=(0,d.q)([t,Z]);return l.createElement(l.Fragment,null,J&&[l.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:w?-1:0,style:h}),T?l.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:w?-1:1,style:h}):null],!w&&l.createElement(I,{id:$,sideCar:v,observed:i,disabled:w,persistentFocus:void 0!==S&&S,crossFrame:void 0===E||E,autoFocus:void 0===D||D,whiteList:O,shards:P,onActivation:H,onDeactivation:V,returnFocus:W,focusOptions:z}),l.createElement(M,(0,s.Z)({ref:Q},K,{className:j,onBlur:Y,onFocus:G}),b),X&&l.createElement("div",{"data-focus-guard":!0,tabIndex:w?-1:0,style:h}))});function k(e,t){return(k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}b.propTypes={};var w=n(56666),x=function(e){for(var t=Array(e.length),n=0;n=0}).sort(I)},B="button:enabled,select:enabled,textarea:enabled,input:enabled,a[href],area[href],summary,iframe,object,embed,audio[controls],video[controls],[tabindex],[contenteditable],[autofocus]",z="".concat(B,", [data-focus-guard]"),U=function(e,t){return x((e.shadowRoot||e).children).reduce(function(e,n){return e.concat(n.matches(t?z:B)?[n]:[],U(n))},[])},q=function(e,t){var n;return e instanceof HTMLIFrameElement&&(null===(n=e.contentDocument)||void 0===n?void 0:n.body)?$([e.contentDocument.body],t):[e]},$=function(e,t){return e.reduce(function(e,n){var r,i=U(n,t),o=(r=[]).concat.apply(r,i.map(function(e){return q(e,t)}));return e.concat(o,n.parentNode?x(n.parentNode.querySelectorAll(B)).filter(function(e){return e===n}):[])},[])},H=function(e,t){return x(e).filter(function(e){return j(t,e)}).filter(function(e){return!((A(e)||"BUTTON"===e.tagName)&&("hidden"===e.type||e.disabled))})},V=function(e,t){return void 0===t&&(t=new Map),x(e).filter(function(e){return O(t,e)})},W=function(e,t,n){return L(H($(e,n),t),!0,n)},G=function(e,t){return L(H($(e),t),!1)},Y=function(e,t){return e.shadowRoot?Y(e.shadowRoot,t):!!(void 0!==Object.getPrototypeOf(e).contains&&Object.getPrototypeOf(e).contains.call(e,t))||x(e.children).some(function(e){var n;if(e instanceof HTMLIFrameElement){var r=null===(n=e.contentDocument)||void 0===n?void 0:n.body;return!!r&&Y(r,t)}return Y(e,t)})},Z=function(e){try{return e()}catch(e){return}},K=function(e){if(void 0===e&&(e=document),e&&e.activeElement){var t=e.activeElement;return t.shadowRoot?K(t.shadowRoot):t instanceof HTMLIFrameElement&&Z(function(){return t.contentWindow.document})?K(t.contentWindow.document):t}},J=function(e){void 0===e&&(e=document);var t=K(e);return!!t&&x(e.querySelectorAll("[".concat("data-no-focus-lock","]"))).some(function(e){return Y(e,t)})},X=function(e){for(var t=new Set,n=e.length,r=0;r0&&t.add(i),(o&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(r)}return e.filter(function(e,n){return!t.has(n)})},Q=function(e){return e.parentNode?Q(e.parentNode):e},ee=function(e){return _(e).filter(Boolean).reduce(function(e,t){var n=t.getAttribute(u);return e.push.apply(e,n?X(x(Q(t).querySelectorAll("[".concat(u,'="').concat(n,'"]:not([').concat(c,'="disabled"])')))):[t]),e},[])},et=function(e,t){return void 0===t&&(t=K(S(e).ownerDocument)),!!t&&(!t.dataset||!t.dataset.focusGuard)&&ee(e).some(function(e){var n;return Y(e,t)||(n=t,!!x(e.querySelectorAll("iframe")).some(function(e){return e===n}))})},en=function(e,t){"focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus()},er=function(e,t){return P(e)&&e.name&&t.filter(P).filter(function(t){return t.name===e.name}).filter(function(e){return e.checked})[0]||e},ei=function(e){var t=new Set;return e.forEach(function(n){return t.add(er(n,e))}),e.filter(function(e){return t.has(e)})},eo=function(e){return e[0]&&e.length>1?er(e[0],e):e[0]},ea=function(e,t){return e.length>1?e.indexOf(er(e[t],e)):t},es="NEW_FOCUS",el=function(e,t,n,r){var i=e.length,o=e[0],a=e[i-1],s=M(n);if(!(n&&e.indexOf(n)>=0)){var l=void 0!==n?t.indexOf(n):-1,u=r?t.indexOf(r):l,c=r?e.indexOf(r):-1,d=l-u,h=t.indexOf(o),p=t.indexOf(a),f=ei(t),m=(void 0!==n?f.indexOf(n):-1)-(r?f.indexOf(r):l),g=ea(e,0),v=ea(e,i-1);if(-1===l||-1===c)return es;if(!d&&c>=0)return c;if(l<=h&&s&&Math.abs(d)>1)return v;if(l>=p&&s&&Math.abs(d)>1)return g;if(d&&Math.abs(m)>1)return c;if(l<=h)return v;if(l>p)return g;if(d)return Math.abs(d)>1?c:(i+c+d)%i}},eu=function(e,t,n){var r=V(e.map(function(e){return e.node}).filter(function(e){var t,r=null===(t=T(e))||void 0===t?void 0:t.autofocus;return e.autofocus||void 0!==r&&"false"!==r||n.indexOf(e)>=0}));return r&&r.length?eo(r):eo(V(t))},ec=function(e,t){return void 0===t&&(t=[]),t.push(e),e.parentNode&&ec(e.parentNode.host||e.parentNode,t),t},ed=function(e,t){for(var n=ec(e),r=ec(t),i=0;i=0)return o}return!1},eh=function(e,t,n){var r=_(e),i=_(t),o=r[0],a=!1;return i.filter(Boolean).forEach(function(e){a=ed(a||e,e)||a,n.filter(Boolean).forEach(function(e){var t=ed(o,e);t&&(a=!a||Y(t,a)?t:ed(t,a))})}),a},ep=function(e,t){var n=new Map;return t.forEach(function(e){return n.set(e.node,e)}),e.map(function(e){return n.get(e)}).filter(N)},ef=function(e,t){var n=K(_(e).length>0?document:S(e).ownerDocument),r=ee(e).filter(F),i=eh(n||e,e,r),o=new Map,a=G(r,o),s=W(r,o).filter(function(e){return F(e.node)});if(s[0]||(s=a)[0]){var l=G([i],o).map(function(e){return e.node}),u=ep(l,s),c=u.map(function(e){return e.node}),d=el(c,l,n,t);if(d===es){var h=eu(a,c,r.reduce(function(e,t){return e.concat(H(x(t.querySelectorAll("[".concat("data-autofocus-inside","]"))).map(function(e){return $([e])}).reduce(function(e,t){return e.concat(t)},[]),o))},[]));return h?{node:h}:void console.warn("focus-lock: cannot find any node to move focus into")}return void 0===d?d:u[d]}},em=0,eg=!1,ev=function(e,t,n){void 0===n&&(n={});var r=ef(e,t);if(!eg&&r){if(em>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),eg=!0,setTimeout(function(){eg=!1},1);return}em++,en(r.node,n.focusOptions),em--}},ey=function(e){var t=ee(e).filter(F),n=eh(e,e,t),r=new Map,i=W([n],r,!0),o=W(t,r).filter(function(e){return F(e.node)}).map(function(e){return e.node});return i.map(function(e){var t=e.node;return{node:t,index:e.index,lockItem:o.indexOf(t)>=0,guard:M(t)}})};function eb(e){setTimeout(e,1)}var ek=null,ew=null,ex=null,e_=!1,eS=function(e,t){ex={observerNode:e,portaledElement:t}};function eE(e,t,n,r){var i=null,o=e;do{var a=r[o];if(a.guard)a.node.dataset.focusAutoGuard&&(i=a);else if(a.lockItem){if(o!==e)return;i=null}else break}while((o+=n)!==t);i&&(i.node.tabIndex=0)}var eD=function(e){return e&&"current"in e?e.current:e},eC=function(){var e=!1;if(ek){var t=ek,n=t.observed,r=t.persistentFocus,i=t.autoFocus,o=t.shards,a=t.crossFrame,s=t.focusOptions,l=n||ex&&ex.portaledElement,u=document&&document.activeElement;if(l){var c=[l].concat(o.map(eD).filter(Boolean));if((!u||(ek.whiteList||function(){return!0})(u))&&(r||(a?!!e_:"meanwhile"===e_)||!(document&&document.activeElement===document.body||J())||!ew&&i)&&(l&&!(et(c)||u&&c.some(function(e){return function e(t,n,r){return n&&(n.host===t&&(!n.activeElement||r.contains(n.activeElement))||n.parentNode&&e(t,n.parentNode,r))}(u,e,e)})||ex&&ex.portaledElement===u)&&(document&&!ew&&u&&!i?(u.blur&&u.blur(),document.body.focus()):(e=ev(c,ew,{focusOptions:s}),ex={})),e_=!1,ew=document&&document.activeElement),document){var d=document&&document.activeElement,h=ey(c),p=h.map(function(e){return e.node}).indexOf(d);p>-1&&(h.filter(function(e){var t=e.guard,n=e.node;return t&&n.dataset.focusAutoGuard}).forEach(function(e){return e.node.removeAttribute("tabIndex")}),eE(p,h.length,1,h),eE(p,-1,-1,h))}}}return e},ej=function(e){eC()&&e&&(e.stopPropagation(),e.preventDefault())},eO=function(){return eb(eC)},eT=function(){e_="just",eb(function(){e_="meanwhile"})},eA=function(){document.addEventListener("focusin",ej),document.addEventListener("focusout",eO),window.addEventListener("blur",eT)},eP=function(){document.removeEventListener("focusin",ej),document.removeEventListener("focusout",eO),window.removeEventListener("blur",eT)};f.assignSyncMedium(function(e){var t=e.target,n=e.currentTarget;n.contains(t)||eS(n,t)}),m.assignMedium(eO),g.assignMedium(function(e){return e({moveFocusInside:ev,focusInside:et})});var eR=(r=function(e){var t=e.slice(-1)[0];t&&!ek&&eA();var n=ek,r=n&&t&&t.id===n.id;ek=t,!n||r||(n.onDeactivation(),e.filter(function(e){return e.id===n.id}).length||n.returnFocus(!t)),t?(ew=null,r&&n.observed===t.observed||t.onActivation(),eC(!0),eb(eC)):(eP(),ew=null)},function(e){var t,n=[];function i(){r(t=n.map(function(e){return e.props}).filter(function(e){return!e.disabled}))}var o=function(r){function o(){return r.apply(this,arguments)||this}o.prototype=Object.create(r.prototype),o.prototype.constructor=o,k(o,r),o.peek=function(){return t};var a=o.prototype;return a.componentDidMount=function(){n.push(this),i()},a.componentDidUpdate=function(){i()},a.componentWillUnmount=function(){var e=n.indexOf(this);n.splice(e,1),i()},a.render=function(){return l.createElement(e,this.props)},o}(l.PureComponent);return(0,w.Z)(o,"displayName","SideEffect("+(e.displayName||e.name||"Component")+")"),o})(function(){return null}),eM=l.forwardRef(function(e,t){return l.createElement(b,(0,s.Z)({sideCar:eR,ref:t},e))}),eF=b.propTypes||{};eF.sideCar,function(e,t){if(null!=e){var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n])}}(eF,["sideCar"]),eM.propTypes={};var eN=n(51905),eI=n(52322),eL=null!=(i=eM.default)?i:eM,eB=e=>{let{initialFocusRef:t,finalFocusRef:n,contentRef:r,restoreFocus:i,children:o,isDisabled:a,autoFocus:s,persistentFocus:u,lockFocusAcrossFrames:c}=e,d=(0,l.useCallback)(()=>{if(null==t?void 0:t.current)t.current.focus();else if(null==r?void 0:r.current){let e=(0,eN.t5)(r.current);0===e.length&&requestAnimationFrame(()=>{var e;null==(e=r.current)||e.focus()})}},[t,r]),h=(0,l.useCallback)(()=>{var e;null==(e=null==n?void 0:n.current)||e.focus()},[n]),p=i&&!n;return(0,eI.jsx)(eL,{crossFrame:c,persistentFocus:u,autoFocus:s,disabled:a,onActivation:d,onDeactivation:h,returnFocus:p,children:o})};eB.displayName="FocusLock";var ez=n(58175),eU=n(5163),eq=n(95346),e$=(0,p._)(),eH=function(){},eV=l.forwardRef(function(e,t){var n=l.useRef(null),r=l.useState({onScrollCapture:eH,onWheelCapture:eH,onTouchMoveCapture:eH}),i=r[0],o=r[1],a=e.forwardProps,s=e.children,u=e.className,c=e.removeScrollBar,h=e.enabled,p=e.shards,f=e.sideCar,m=e.noIsolation,g=e.inert,v=e.allowPinchZoom,y=e.as,b=void 0===y?"div":y,k=e.gapMode,w=(0,eU._T)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),x=(0,d.q)([n,t]),_=(0,eU.pi)((0,eU.pi)({},w),i);return l.createElement(l.Fragment,null,h&&l.createElement(f,{sideCar:e$,removeScrollBar:c,shards:p,noIsolation:m,inert:g,setCallbacks:o,allowPinchZoom:!!v,lockRef:n,gapMode:k}),a?l.cloneElement(l.Children.only(s),(0,eU.pi)((0,eU.pi)({},_),{ref:x})):l.createElement(b,(0,eU.pi)({},_,{className:u,ref:x}),s))});eV.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},eV.classNames={fullWidth:eq.zi,zeroRight:eq.pF};var eW=n(57758),eG=n(181),eY=n(33225),eZ=!1;if("undefined"!=typeof window)try{var eK=Object.defineProperty({},"passive",{get:function(){return eZ=!0,!0}});window.addEventListener("test",eK,eK),window.removeEventListener("test",eK,eK)}catch(e){eZ=!1}var eJ=!!eZ&&{passive:!1},eX=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===n[t])},eQ=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),e0(e,r)){var i=e1(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},e0=function(e,t){return"v"===e?eX(t,"overflowY"):eX(t,"overflowX")},e1=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},e2=function(e,t,n,r,i){var o,a=(o=window.getComputedStyle(t).direction,"h"===e&&"rtl"===o?-1:1),s=a*r,l=n.target,u=t.contains(l),c=!1,d=s>0,h=0,p=0;do{var f=e1(e,l),m=f[0],g=f[1]-f[2]-a*m;(m||g)&&e0(e,l)&&(h+=g,p+=m),l=l instanceof ShadowRoot?l.host:l.parentNode}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return d&&(i&&1>Math.abs(h)||!i&&s>h)?c=!0:!d&&(i&&1>Math.abs(p)||!i&&-s>p)&&(c=!0),c},e3=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},e5=function(e){return[e.deltaX,e.deltaY]},e4=function(e){return e&&"current"in e?e.current:e},e6=0,e8=[],e9=(0,eW.L)(e$,function(e){var t=l.useRef([]),n=l.useRef([0,0]),r=l.useRef(),i=l.useState(e6++)[0],o=l.useState(eY.Ws)[0],a=l.useRef(e);l.useEffect(function(){a.current=e},[e]),l.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(0,eU.ev)([e.lockRef.current],(e.shards||[]).map(e4),!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 s=l.useCallback(function(e,t){if("touches"in e&&2===e.touches.length)return!a.current.allowPinchZoom;var i,o=e3(e),s=n.current,l="deltaX"in e?e.deltaX:s[0]-o[0],u="deltaY"in e?e.deltaY:s[1]-o[1],c=e.target,d=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var h=eQ(d,c);if(!h)return!0;if(h?i=d:(i="v"===d?"h":"v",h=eQ(d,c)),!h)return!1;if(!r.current&&"changedTouches"in e&&(l||u)&&(r.current=i),!i)return!0;var p=r.current||i;return e2(p,t,e,"h"===p?l:u,!0)},[]),u=l.useCallback(function(e){if(e8.length&&e8[e8.length-1]===o){var n="deltaY"in e?e5(e):e3(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var i=(a.current.shards||[]).map(e4).filter(Boolean).filter(function(t){return t.contains(e.target)});(i.length>0?s(e,i[0]):!a.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=l.useCallback(function(e,n,r,i){var o={name:e,delta:n,target:r,should:i,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(o),setTimeout(function(){t.current=t.current.filter(function(e){return e!==o})},1)},[]),d=l.useCallback(function(e){n.current=e3(e),r.current=void 0},[]),h=l.useCallback(function(t){c(t.type,e5(t),t.target,s(t,e.lockRef.current))},[]),p=l.useCallback(function(t){c(t.type,e3(t),t.target,s(t,e.lockRef.current))},[]);l.useEffect(function(){return e8.push(o),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:p}),document.addEventListener("wheel",u,eJ),document.addEventListener("touchmove",u,eJ),document.addEventListener("touchstart",d,eJ),function(){e8=e8.filter(function(e){return e!==o}),document.removeEventListener("wheel",u,eJ),document.removeEventListener("touchmove",u,eJ),document.removeEventListener("touchstart",d,eJ)}},[]);var f=e.removeScrollBar,m=e.inert;return l.createElement(l.Fragment,null,m?l.createElement(o,{styles:"\n .block-interactivity-".concat(i," {pointer-events: none;}\n .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,f?l.createElement(eG.jp,{gapMode:e.gapMode}):null)}),e7=l.forwardRef(function(e,t){return l.createElement(eV,(0,eU.pi)({},e,{ref:t,sideCar:e9}))});function te(e){let{autoFocus:t,trapFocus:n,dialogRef:r,initialFocusRef:i,blockScrollOnMount:s,allowPinchZoom:u,finalFocusRef:c,returnFocusOnClose:d,preserveScrollBarGap:h,lockFocusAcrossFrames:p,isOpen:f}=(0,o.vR)(),[m,g]=(0,ez.oO)();(0,l.useEffect)(()=>{!m&&g&&setTimeout(g)},[m,g]);let v=(0,a.$)(r,f);return(0,eI.jsx)(eB,{autoFocus:t,isDisabled:!n,initialFocusRef:i,finalFocusRef:c,restoreFocus:d,contentRef:r,lockFocusAcrossFrames:p,children:(0,eI.jsx)(e7,{removeScrollBar:!h,allowPinchZoom:u,enabled:1===v&&s,forwardProps:!0,children:e.children})})}e7.classNames=eV.classNames},97217:function(e,t,n){"use strict";n.d(t,{f:function(){return u}});var r=n(92850),i=n(31053),o=n(68023),a=n(59576),s=n(2784),l=n(52322),u=(0,o.G)((e,t)=>{let{className:n,...o}=e,{bodyId:u,setBodyMounted:c}=(0,r.vR)();(0,s.useEffect)(()=>(c(!0),()=>c(!1)),[c]);let d=(0,i.cx)("chakra-modal__body",n),h=(0,r.I_)();return(0,l.jsx)(a.m.div,{ref:t,className:d,id:u,...o,__css:h.body})});u.displayName="ModalBody"},50250:function(e,t,n){"use strict";n.d(t,{m:function(){return l}});var r=n(92850),i=n(31053),o=n(68023),a=n(59576),s=n(52322),l=(0,o.G)((e,t)=>{let{className:n,...o}=e,l=(0,i.cx)("chakra-modal__footer",n),u=(0,r.I_)(),c={display:"flex",alignItems:"center",justifyContent:"flex-end",...u.footer};return(0,s.jsx)(a.m.footer,{ref:t,...o,__css:c,className:l})});l.displayName="ModalFooter"},63176:function(e,t,n){"use strict";n.d(t,{Y2:function(){return A},zu:function(){return P}});var r=n(62929),i=n(52322),o=e=>(0,i.jsx)(r.J,{viewBox:"0 0 24 24",...e,children:(0,i.jsx)("path",{fill:"currentColor",d:"M21,5H3C2.621,5,2.275,5.214,2.105,5.553C1.937,5.892,1.973,6.297,2.2,6.6l9,12 c0.188,0.252,0.485,0.4,0.8,0.4s0.611-0.148,0.8-0.4l9-12c0.228-0.303,0.264-0.708,0.095-1.047C21.725,5.214,21.379,5,21,5z"})}),a=e=>(0,i.jsx)(r.J,{viewBox:"0 0 24 24",...e,children:(0,i.jsx)("path",{fill:"currentColor",d:"M12.8,5.4c-0.377-0.504-1.223-0.504-1.6,0l-9,12c-0.228,0.303-0.264,0.708-0.095,1.047 C2.275,18.786,2.621,19,3,19h18c0.379,0,0.725-0.214,0.895-0.553c0.169-0.339,0.133-0.744-0.095-1.047L12.8,5.4z"})}),s=n(2784);function l(e,t,n,r){(0,s.useEffect)(()=>{var i;if(!e.current||!r)return;let o=null!=(i=e.current.ownerDocument.defaultView)?i:window,a=Array.isArray(t)?t:[t],s=new o.MutationObserver(e=>{for(let t of e)"attributes"===t.type&&t.attributeName&&a.includes(t.attributeName)&&n(t)});return s.observe(e.current,{attributes:!0,attributeFilter:a}),()=>s.disconnect()})}var u=n(90359),c=n(56372);function d(e){return parseFloat(e.toString().replace(/[^\w.-]+/g,""))}function h(e,t){return Math.max((0,c.vk)(t),(0,c.vk)(e))}function p(e,t,n){let r=d(e);if(Number.isNaN(r))return;let i=h(r,t);return(0,c.Zd)(r,null!=n?n:i)}var f=n(32465),m=n(3171),g=n(36140),v=n(85244),y=n(31053),b=/^[Ee0-9+\-.]$/;function k(e){return b.test(e)}var w=n(76874),x=n(9165),_=n(68023),S=n(91982),E=n(84586),D=n(59576),[C,j]=(0,x.k)({name:"NumberInputStylesContext",errorMessage:"useNumberInputStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),[O,T]=(0,x.k)({name:"NumberInputContext",errorMessage:"useNumberInputContext: `context` is undefined. Seems you forgot to wrap number-input's components within "}),A=(0,_.G)(function(e,t){let n=(0,S.jC)("NumberInput",e),r=(0,E.Lr)(e),o=(0,w.K)(r),{htmlProps:a,...b}=function(e={}){let{focusInputOnChange:t=!0,clampValueOnBlur:n=!0,keepWithinRange:r=!0,min:i=Number.MIN_SAFE_INTEGER,max:o=Number.MAX_SAFE_INTEGER,step:a=1,isReadOnly:b,isDisabled:w,isRequired:x,isInvalid:_,pattern:S="[0-9]*(.[0-9]+)?",inputMode:E="decimal",allowMouseWheel:D,id:C,onChange:j,precision:O,name:T,"aria-describedby":A,"aria-label":P,"aria-labelledby":R,onFocus:M,onBlur:F,onInvalid:N,getAriaValueText:I,isValidCharacter:L,format:B,parse:z,...U}=e,q=(0,u.W)(M),$=(0,u.W)(F),H=(0,u.W)(N),V=(0,u.W)(null!=L?L:k),W=(0,u.W)(I),G=function(e={}){let{onChange:t,precision:n,defaultValue:r,value:i,step:o=1,min:a=Number.MIN_SAFE_INTEGER,max:l=Number.MAX_SAFE_INTEGER,keepWithinRange:f=!0}=e,m=(0,u.W)(t),[g,v]=(0,s.useState)(()=>{var e;return null==r?"":null!=(e=p(r,o,n))?e:""}),y=void 0!==i,b=y?i:g,k=h(d(b),o),w=null!=n?n:k,x=(0,s.useCallback)(e=>{e!==b&&(y||v(e.toString()),null==m||m(e.toString(),d(e)))},[m,y,b]),_=(0,s.useCallback)(e=>{let t=e;return f&&(t=(0,c.HU)(t,a,l)),(0,c.Zd)(t,w)},[w,f,l,a]),S=(0,s.useCallback)((e=o)=>{x(_(""===b?d(e):d(b)+e))},[_,o,x,b]),E=(0,s.useCallback)((e=o)=>{x(_(""===b?d(-e):d(b)-e))},[_,o,x,b]),D=(0,s.useCallback)(()=>{var e;x(null==r?"":null!=(e=p(r,o,n))?e:a)},[r,n,o,x,a]),C=(0,s.useCallback)(e=>{var t;let n=null!=(t=p(e,o,w))?t:a;x(n)},[w,o,x,a]),j=d(b),O=j>l||je.split("").filter(V).join(""),[V]),eo=(0,s.useCallback)(e=>{var t;return null!=(t=null==z?void 0:z(e))?t:e},[z]),ea=(0,s.useCallback)(e=>{var t;return(null!=(t=null==B?void 0:B(e))?t:e).toString()},[B]);(0,m.r)(()=>{G.valueAsNumber>o?null==H||H("rangeOverflow",ea(G.value),G.valueAsNumber):G.valueAsNumber{if(!ee.current)return;let e=ee.current.value!=G.value;if(e){let e=eo(ee.current.value);G.setValue(ei(e))}},[eo,ei]);let es=(0,s.useCallback)((e=a)=>{Q&&Z(e)},[Z,Q,a]),el=(0,s.useCallback)((e=a)=>{Q&&K(e)},[K,Q,a]),eu=function(e,t){let[n,r]=(0,s.useState)(!1),[i,o]=(0,s.useState)(null),[a,l]=(0,s.useState)(!0),c=(0,s.useRef)(null),d=()=>clearTimeout(c.current);!function(e,t){let n=(0,u.W)(e);(0,s.useEffect)(()=>{let e=null;return null!==t&&(e=window.setInterval(()=>n(),t)),()=>{e&&window.clearInterval(e)}},[t,n])}(()=>{"increment"===i&&e(),"decrement"===i&&t()},n?50:null);let h=(0,s.useCallback)(()=>{a&&e(),c.current=setTimeout(()=>{l(!1),r(!0),o("increment")},300)},[e,a]),p=(0,s.useCallback)(()=>{a&&t(),c.current=setTimeout(()=>{l(!1),r(!0),o("decrement")},300)},[t,a]),f=(0,s.useCallback)(()=>{l(!0),r(!1),d()},[]);return(0,s.useEffect)(()=>()=>d(),[]),{up:h,down:p,stop:f,isSpinning:n}}(es,el);l(en,"disabled",eu.stop,eu.isSpinning),l(er,"disabled",eu.stop,eu.isSpinning);let ec=(0,s.useCallback)(e=>{let t=e.nativeEvent;if(t.isComposing)return;let n=eo(e.currentTarget.value);Y(ei(n)),et.current={start:e.currentTarget.selectionStart,end:e.currentTarget.selectionEnd}},[Y,ei,eo]),ed=(0,s.useCallback)(e=>{var t,n,r;null==q||q(e),et.current&&(e.target.selectionStart=null!=(n=et.current.start)?n:null==(t=e.currentTarget.value)?void 0:t.length,e.currentTarget.selectionEnd=null!=(r=et.current.end)?r:e.currentTarget.selectionStart)},[q]),eh=(0,s.useCallback)(e=>{if(e.nativeEvent.isComposing)return;!function(e,t){if(null==e.key)return!0;let n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;return!r||!!n||t(e.key)}(e,V)&&e.preventDefault();let t=ep(e)*a,n=e.key,r={ArrowUp:()=>es(t),ArrowDown:()=>el(t),Home:()=>Y(i),End:()=>Y(o)}[n];r&&(e.preventDefault(),r(e))},[V,a,es,el,Y,i,o]),ep=e=>{let t=1;return(e.metaKey||e.ctrlKey)&&(t=.1),e.shiftKey&&(t=10),t},ef=(0,s.useMemo)(()=>{let e=null==W?void 0:W(G.value);if(null!=e)return e;let t=G.value.toString();return t||void 0},[G.value,W]),em=(0,s.useCallback)(()=>{let e=G.value;if(""===G.value)return;let t=/^[eE]/.test(G.value.toString());t?G.setValue(""):(G.valueAsNumbero&&(e=o),G.cast(e))},[G,o,i]),eg=(0,s.useCallback)(()=>{X(!1),n&&em()},[n,X,em]),ev=(0,s.useCallback)(()=>{t&&requestAnimationFrame(()=>{var e;null==(e=ee.current)||e.focus()})},[t]),ey=(0,s.useCallback)(e=>{e.preventDefault(),eu.up(),ev()},[ev,eu]),eb=(0,s.useCallback)(e=>{e.preventDefault(),eu.down(),ev()},[ev,eu]);(0,f.O)(()=>ee.current,"wheel",e=>{var t,n;let r=null!=(n=null==(t=ee.current)?void 0:t.ownerDocument)?n:document,i=r.activeElement===ee.current;if(!D||!i)return;e.preventDefault();let o=ep(e)*a,s=Math.sign(e.deltaY);-1===s?es(o):1===s&&el(o)},{passive:!1});let ek=(0,s.useCallback)((e={},t=null)=>{let n=w||r&&G.isAtMax;return{...e,ref:(0,v.lq)(t,en),role:"button",tabIndex:-1,onPointerDown:(0,y.v0)(e.onPointerDown,e=>{0!==e.button||n||ey(e)}),onPointerLeave:(0,y.v0)(e.onPointerLeave,eu.stop),onPointerUp:(0,y.v0)(e.onPointerUp,eu.stop),disabled:n,"aria-disabled":(0,y.Qm)(n)}},[G.isAtMax,r,ey,eu.stop,w]),ew=(0,s.useCallback)((e={},t=null)=>{let n=w||r&&G.isAtMin;return{...e,ref:(0,v.lq)(t,er),role:"button",tabIndex:-1,onPointerDown:(0,y.v0)(e.onPointerDown,e=>{0!==e.button||n||eb(e)}),onPointerLeave:(0,y.v0)(e.onPointerLeave,eu.stop),onPointerUp:(0,y.v0)(e.onPointerUp,eu.stop),disabled:n,"aria-disabled":(0,y.Qm)(n)}},[G.isAtMin,r,eb,eu.stop,w]),ex=(0,s.useCallback)((e={},t=null)=>{var n,r,a,s;return{name:T,inputMode:E,type:"text",pattern:S,"aria-labelledby":R,"aria-label":P,"aria-describedby":A,id:C,disabled:w,...e,readOnly:null!=(n=e.readOnly)?n:b,"aria-readonly":null!=(r=e.readOnly)?r:b,"aria-required":null!=(a=e.required)?a:x,required:null!=(s=e.required)?s:x,ref:(0,v.lq)(ee,t),value:ea(G.value),role:"spinbutton","aria-valuemin":i,"aria-valuemax":o,"aria-valuenow":Number.isNaN(G.valueAsNumber)?void 0:G.valueAsNumber,"aria-invalid":(0,y.Qm)(null!=_?_:G.isOutOfRange),"aria-valuetext":ef,autoComplete:"off",autoCorrect:"off",onChange:(0,y.v0)(e.onChange,ec),onKeyDown:(0,y.v0)(e.onKeyDown,eh),onFocus:(0,y.v0)(e.onFocus,ed,()=>X(!0)),onBlur:(0,y.v0)(e.onBlur,$,eg)}},[T,E,S,R,P,ea,A,C,w,x,b,_,G.value,G.valueAsNumber,G.isOutOfRange,i,o,ef,ec,eh,ed,$,eg]);return{value:ea(G.value),valueAsNumber:G.valueAsNumber,isFocused:J,isDisabled:w,isReadOnly:b,getIncrementButtonProps:ek,getDecrementButtonProps:ew,getInputProps:ex,htmlProps:U}}(o),x=(0,s.useMemo)(()=>b,[b]);return(0,i.jsx)(O,{value:x,children:(0,i.jsx)(C,{value:n,children:(0,i.jsx)(D.m.div,{...a,ref:t,className:(0,y.cx)("chakra-numberinput",e.className),__css:{position:"relative",zIndex:0,...n.root}})})})});A.displayName="NumberInput",(0,_.G)(function(e,t){let n=j();return(0,i.jsx)(D.m.div,{"aria-hidden":!0,ref:t,...e,__css:{display:"flex",flexDirection:"column",position:"absolute",top:"0",insetEnd:"0px",margin:"1px",height:"calc(100% - 2px)",zIndex:1,...n.stepperGroup}})}).displayName="NumberInputStepper";var P=(0,_.G)(function(e,t){let{getInputProps:n}=T(),r=n(e,t),o=j();return(0,i.jsx)(D.m.input,{...r,className:(0,y.cx)("chakra-numberinput__field",e.className),__css:{width:"100%",...o.field}})});P.displayName="NumberInputField";var R=(0,D.m)("div",{baseStyle:{display:"flex",justifyContent:"center",alignItems:"center",flex:1,transitionProperty:"common",transitionDuration:"normal",userSelect:"none",cursor:"pointer",lineHeight:"normal"}});(0,_.G)(function(e,t){var n;let r=j(),{getDecrementButtonProps:a}=T(),s=a(e,t);return(0,i.jsx)(R,{...s,__css:r.stepper,children:null!=(n=e.children)?n:(0,i.jsx)(o,{})})}).displayName="NumberDecrementStepper",(0,_.G)(function(e,t){var n;let{getIncrementButtonProps:r}=T(),o=r(e,t),s=j();return(0,i.jsx)(R,{...o,__css:s.stepper,children:null!=(n=e.children)?n:(0,i.jsx)(a,{})})}).displayName="NumberIncrementStepper"},56372:function(e,t,n){"use strict";function r(e,t){let n=function(e){let t=parseFloat(e);return"number"!=typeof t||Number.isNaN(t)?0:t}(e),r=10**(null!=t?t:10);return n=Math.round(n*r)/r,t?n.toFixed(t):n.toString()}function i(e){if(!Number.isFinite(e))return 0;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n+=1;return n}function o(e,t,n){return(e-t)*100/(n-t)}function a(e,t,n){return(n-t)*e+t}function s(e,t,n){let o=Math.round((e-t)/n)*n+t,a=i(n);return r(o,a)}function l(e,t,n){return null==e?e:(n`${e}-${$}`),{referenceRef:Y,getArrowProps:Z,getPopperProps:K,getArrowInnerProps:J,forceUpdate:X}=(0,s.D)({...j,enabled:O||!!C}),Q=(0,r.h)({isOpen:O,ref:F});(0,i.s)({enabled:O,ref:M}),(0,o.C)(F,{focusRef:M,visible:O,shouldFocus:y&&x===p.click}),(0,o.G)(F,{focusRef:g,visible:O,shouldFocus:b&&x===p.click});let ee=(0,d.k)({wasSelected:I.current,enabled:E,mode:D,isSelected:Q.present}),et=(0,h.useCallback)((e={},r=null)=>{let i={...e,style:{...e.style,transformOrigin:l.Dq.transformOrigin.varRef,[l.Dq.arrowSize.var]:k?`${k}px`:void 0,[l.Dq.arrowShadowColor.var]:w},ref:(0,u.lq)(F,r),children:ee?e.children:null,id:V,tabIndex:-1,role:"dialog",onKeyDown:(0,c.v0)(e.onKeyDown,e=>{n&&"Escape"===e.key&&T()}),onBlur:(0,c.v0)(e.onBlur,e=>{let n=m(e),r=f(F.current,n),i=f(M.current,n);O&&t&&!r&&!i&&T()}),"aria-labelledby":L?W:void 0,"aria-describedby":z?G:void 0};return x===p.hover&&(i.role="tooltip",i.onMouseEnter=(0,c.v0)(e.onMouseEnter,()=>{N.current=!0}),i.onMouseLeave=(0,c.v0)(e.onMouseLeave,e=>{null!==e.nativeEvent.relatedTarget&&(N.current=!1,setTimeout(()=>T(),S))})),i},[ee,V,L,W,z,G,x,n,T,O,t,S,w,k]),en=(0,h.useCallback)((e={},t=null)=>K({...e,style:{visibility:O?"visible":"hidden",...e.style}},t),[O,K]),er=(0,h.useCallback)((e,t=null)=>({...e,ref:(0,u.lq)(t,R,Y)}),[R,Y]),ei=(0,h.useRef)(),eo=(0,h.useRef)(),ea=(0,h.useCallback)(e=>{null==R.current&&Y(e)},[Y]),es=(0,h.useCallback)((e={},n=null)=>{let r={...e,ref:(0,u.lq)(M,n,ea),id:H,"aria-haspopup":"dialog","aria-expanded":O,"aria-controls":V};return x===p.click&&(r.onClick=(0,c.v0)(e.onClick,P)),x===p.hover&&(r.onFocus=(0,c.v0)(e.onFocus,()=>{void 0===ei.current&&A()}),r.onBlur=(0,c.v0)(e.onBlur,e=>{let n=m(e),r=!f(F.current,n);O&&t&&r&&T()}),r.onKeyDown=(0,c.v0)(e.onKeyDown,e=>{"Escape"===e.key&&T()}),r.onMouseEnter=(0,c.v0)(e.onMouseEnter,()=>{N.current=!0,ei.current=window.setTimeout(()=>A(),_)}),r.onMouseLeave=(0,c.v0)(e.onMouseLeave,()=>{N.current=!1,ei.current&&(clearTimeout(ei.current),ei.current=void 0),eo.current=window.setTimeout(()=>{!1===N.current&&T()},S)})),r},[H,O,V,x,ea,P,A,t,T,_,S]);(0,h.useEffect)(()=>()=>{ei.current&&clearTimeout(ei.current),eo.current&&clearTimeout(eo.current)},[]);let el=(0,h.useCallback)((e={},t=null)=>({...e,id:W,ref:(0,u.lq)(t,e=>{B(!!e)})}),[W]),eu=(0,h.useCallback)((e={},t=null)=>({...e,id:G,ref:(0,u.lq)(t,e=>{U(!!e)})}),[G]);return{forceUpdate:X,isOpen:O,onAnimationComplete:Q.onComplete,onClose:T,getAnchorProps:er,getArrowProps:Z,getArrowInnerProps:J,getPopoverPositionerProps:en,getPopoverProps:et,getTriggerProps:es,getHeaderProps:el,getBodyProps:eu}}({...w,direction:x.direction});return(0,k.jsx)(g.H2,{value:_,children:(0,k.jsx)(g.WG,{value:t,children:(0,c.Pu)(n,{isOpen:_.isOpen,onClose:_.onClose,forceUpdate:_.forceUpdate})})})}w.displayName="Popover"},47154:function(e,t,n){"use strict";n.d(t,{Y:function(){return l}});var r=n(83118),i=n(68023),o=n(59576),a=n(31053),s=n(52322),l=(0,i.G)(function(e,t){let{getHeaderProps:n}=(0,r.lp)(),i=(0,r.SV)();return(0,s.jsx)(o.m.header,{...n(e,t),className:(0,a.cx)("chakra-popover__header",e.className),__css:i.header})});l.displayName="PopoverHeader"},11284:function(e,t,n){"use strict";n.d(t,{t:function(){return o}});var r=n(83118),i=n(2784);function o(e){let t=i.Children.only(e.children),{getAnchorProps:n}=(0,r.lp)();return(0,i.cloneElement)(t,n(t.props,t.ref))}o.displayName="PopoverAnchor"},89833:function(e,t,n){"use strict";n.d(t,{u:function(){return l}});var r=n(83118),i=n(81672),o=n(68023),a=n(31053),s=n(52322),l=(0,o.G)(function(e,t){let{onClose:n}=(0,r.lp)(),o=(0,r.SV)();return(0,s.jsx)(i.P,{size:"sm",onClick:n,className:(0,a.cx)("chakra-popover__close-btn",e.className),__css:o.closeButton,ref:t,...e})});l.displayName="PopoverCloseButton"},34071:function(e,t,n){"use strict";n.d(t,{x:function(){return o}});var r=n(83118),i=n(2784);function o(e){let t=i.Children.only(e.children),{getTriggerProps:n}=(0,r.lp)();return(0,i.cloneElement)(t,n(t.props,t.ref))}o.displayName="PopoverTrigger"},48394:function(e,t,n){"use strict";n.d(t,{b:function(){return l}});var r=n(83118),i=n(68023),o=n(59576),a=n(31053),s=n(52322),l=(0,i.G)(function(e,t){let{getBodyProps:n}=(0,r.lp)(),i=(0,r.SV)();return(0,s.jsx)(o.m.div,{...n(e,t),className:(0,a.cx)("chakra-popover__body",e.className),__css:i.body})});l.displayName="PopoverBody"},46164:function(e,t,n){"use strict";n.d(t,{Q:function(){return l}});var r=n(83118),i=n(59576),o=n(31053),a=n(52322),s=(e,t)=>t?`${e}.${t}, ${t}`:void 0;function l(e){var t;let{bg:n,bgColor:l,backgroundColor:u,shadow:c,boxShadow:d,shadowColor:h}=e,{getArrowProps:p,getArrowInnerProps:f}=(0,r.lp)(),m=(0,r.SV)(),g=null!=(t=null!=n?n:l)?t:u,v=null!=c?c:d;return(0,a.jsx)(i.m.div,{...p(),className:"chakra-popover__arrow-positioner",children:(0,a.jsx)(i.m.div,{className:(0,o.cx)("chakra-popover__arrow",e.className),...f(e),__css:{"--popper-arrow-shadow-color":s("colors",h),"--popper-arrow-bg":s("colors",g),"--popper-arrow-shadow":s("shadows",v),...m.arrow}})})}l.displayName="PopoverArrow"},83118:function(e,t,n){"use strict";n.d(t,{H2:function(){return i},SV:function(){return s},WG:function(){return a},lp:function(){return o}});var r=n(9165),[i,o]=(0,r.k)({name:"PopoverContext",errorMessage:"usePopoverContext: `context` is undefined. Seems you forgot to wrap all popover components within ``"}),[a,s]=(0,r.k)({name:"PopoverStylesContext",errorMessage:"usePopoverStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "})},79626:function(e,t,n){"use strict";n.d(t,{$B:function(){return u},Dq:function(){return i},Ke:function(){return o},mv:function(){return s}});var r=(e,t)=>({var:e,varRef:t?`var(${e}, ${t})`:`var(${e})`}),i={arrowShadowColor:r("--popper-arrow-shadow-color"),arrowSize:r("--popper-arrow-size","8px"),arrowSizeHalf:r("--popper-arrow-size-half"),arrowBg:r("--popper-arrow-bg"),transformOrigin:r("--popper-transform-origin"),arrowOffset:r("--popper-arrow-offset")};function o(e){return e.includes("top")?"1px 1px 0px 0 var(--popper-arrow-shadow-color)":e.includes("bottom")?"-1px -1px 0px 0 var(--popper-arrow-shadow-color)":e.includes("right")?"-1px 1px 0px 0 var(--popper-arrow-shadow-color)":e.includes("left")?"1px -1px 0px 0 var(--popper-arrow-shadow-color)":void 0}var a={top:"bottom center","top-start":"bottom left","top-end":"bottom right",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"right top","left-end":"right bottom",right:"left center","right-start":"left top","right-end":"left bottom"},s=e=>a[e],l={scroll:!0,resize:!0};function u(e){return"object"==typeof e?{enabled:!0,options:{...l,...e}}:{enabled:e,options:l}}},70339:function(e,t,n){"use strict";n.d(t,{D:function(){return v}});var r=n(79626),i={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`},effect:({state:e})=>()=>{let t=e.elements.reference;e.elements.popper.style.width=`${t.offsetWidth}px`}},o={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:e})=>{a(e)},effect:({state:e})=>()=>{a(e)}},a=e=>{e.elements.popper.style.setProperty(r.Dq.transformOrigin.var,(0,r.mv)(e.placement))},s={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:e})=>{l(e)}},l=e=>{var t;if(!e.placement)return;let n=u(e.placement);if((null==(t=e.elements)?void 0:t.arrow)&&n){Object.assign(e.elements.arrow.style,{[n.property]:n.value,width:r.Dq.arrowSize.varRef,height:r.Dq.arrowSize.varRef,zIndex:-1});let t={[r.Dq.arrowSizeHalf.var]:`calc(${r.Dq.arrowSize.varRef} / 2 - 1px)`,[r.Dq.arrowOffset.var]:`calc(${r.Dq.arrowSizeHalf.varRef} * -1)`};for(let n in t)e.elements.arrow.style.setProperty(n,t[n])}},u=e=>e.startsWith("top")?{property:"bottom",value:r.Dq.arrowOffset.varRef}:e.startsWith("bottom")?{property:"top",value:r.Dq.arrowOffset.varRef}:e.startsWith("left")?{property:"right",value:r.Dq.arrowOffset.varRef}:e.startsWith("right")?{property:"left",value:r.Dq.arrowOffset.varRef}:void 0,c={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:e})=>{d(e)},effect:({state:e})=>()=>{d(e)}},d=e=>{if(!e.elements.arrow)return;let t=e.elements.arrow.querySelector("[data-popper-arrow-inner]");if(!t)return;let n=(0,r.Ke)(e.placement);n&&t.style.setProperty("--popper-arrow-default-shadow",n),Object.assign(t.style,{transform:"rotate(45deg)",background:r.Dq.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:"var(--popper-arrow-shadow, var(--popper-arrow-default-shadow))"})},h={"start-start":{ltr:"left-start",rtl:"right-start"},"start-end":{ltr:"left-end",rtl:"right-end"},"end-start":{ltr:"right-start",rtl:"left-start"},"end-end":{ltr:"right-end",rtl:"left-end"},start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}},p={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"},f=n(85244),m=n(62465),g=n(2784);function v(e={}){let{enabled:t=!0,modifiers:n,placement:a="bottom",strategy:l="absolute",arrowPadding:u=8,eventListeners:d=!0,offset:v,gutter:y=8,flip:b=!0,boundary:k="clippingParents",preventOverflow:w=!0,matchWidth:x,direction:_="ltr"}=e,S=(0,g.useRef)(null),E=(0,g.useRef)(null),D=(0,g.useRef)(null),C=function(e,t="ltr"){var n,r;let i=(null==(n=h[e])?void 0:n[t])||e;return"ltr"===t?i:null!=(r=p[e])?r:i}(a,_),j=(0,g.useRef)(()=>{}),O=(0,g.useCallback)(()=>{var e;t&&S.current&&E.current&&(null==(e=j.current)||e.call(j),D.current=(0,m.fi)(S.current,E.current,{placement:C,modifiers:[c,s,o,{...i,enabled:!!x},{name:"eventListeners",...(0,r.$B)(d)},{name:"arrow",options:{padding:u}},{name:"offset",options:{offset:null!=v?v:[0,y]}},{name:"flip",enabled:!!b,options:{padding:8}},{name:"preventOverflow",enabled:!!w,options:{boundary:k}},...null!=n?n:[]],strategy:l}),D.current.forceUpdate(),j.current=D.current.destroy)},[C,t,n,x,d,u,v,y,b,w,k,l]);(0,g.useEffect)(()=>()=>{var e;S.current||E.current||(null==(e=D.current)||e.destroy(),D.current=null)},[]);let T=(0,g.useCallback)(e=>{S.current=e,O()},[O]),A=(0,g.useCallback)((e={},t=null)=>({...e,ref:(0,f.lq)(T,t)}),[T]),P=(0,g.useCallback)(e=>{E.current=e,O()},[O]),R=(0,g.useCallback)((e={},t=null)=>({...e,ref:(0,f.lq)(P,t),style:{...e.style,position:l,minWidth:x?void 0:"max-content",inset:"0 auto auto 0"}}),[l,P,x]),M=(0,g.useCallback)((e={},t=null)=>{let{size:n,shadowColor:r,bg:i,style:o,...a}=e;return{...a,ref:t,"data-popper-arrow":"",style:function(e){let{size:t,shadowColor:n,bg:r,style:i}=e,o={...i,position:"absolute"};return t&&(o["--popper-arrow-size"]=t),n&&(o["--popper-arrow-shadow-color"]=n),r&&(o["--popper-arrow-bg"]=r),o}(e)}},[]),F=(0,g.useCallback)((e={},t=null)=>({...e,ref:t,"data-popper-arrow-inner":""}),[]);return{update(){var e;null==(e=D.current)||e.update()},forceUpdate(){var e;null==(e=D.current)||e.forceUpdate()},transformOrigin:r.Dq.transformOrigin.varRef,referenceRef:T,popperRef:P,getPopperProps:R,getArrowProps:M,getArrowInnerProps:F,getReferenceProps:A}}},332:function(e,t,n){"use strict";n.d(t,{h:function(){return m}});var r=n(45493),i=n(36140),o=n(9165),a=n(28316),s=n(2784),l=n(52322),[u,c]=(0,o.k)({strict:!1,name:"PortalContext"}),d="chakra-portal",h=e=>(0,l.jsx)("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),p=e=>{let{appendToParentPortal:t,children:n}=e,[o,p]=(0,s.useState)(null),f=(0,s.useRef)(null),[,m]=(0,s.useState)({});(0,s.useEffect)(()=>m({}),[]);let g=c(),v=(0,r.L)();(0,i.G)(()=>{if(!o)return;let e=o.ownerDocument,n=t&&null!=g?g:e.body;if(!n)return;f.current=e.createElement("div"),f.current.className=d,n.appendChild(f.current),m({});let r=f.current;return()=>{n.contains(r)&&n.removeChild(r)}},[o]);let y=(null==v?void 0:v.zIndex)?(0,l.jsx)(h,{zIndex:null==v?void 0:v.zIndex,children:n}):n;return f.current?(0,a.createPortal)((0,l.jsx)(u,{value:f.current,children:y}),f.current):(0,l.jsx)("span",{ref:e=>{e&&p(e)}})},f=e=>{let{children:t,containerRef:n,appendToParentPortal:r}=e,o=n.current,c=null!=o?o:"undefined"!=typeof window?document.body:void 0,h=(0,s.useMemo)(()=>{let e=null==o?void 0:o.ownerDocument.createElement("div");return e&&(e.className=d),e},[o]),[,p]=(0,s.useState)({});return((0,i.G)(()=>p({}),[]),(0,i.G)(()=>{if(h&&c)return c.appendChild(h),()=>{c.removeChild(h)}},[h,c]),c&&h)?(0,a.createPortal)((0,l.jsx)(u,{value:r?h:null,children:t}),h):null};function m(e){let t={appendToParentPortal:!0,...e},{containerRef:n,...r}=t;return n?(0,l.jsx)(f,{containerRef:n,...r}):(0,l.jsx)(p,{...r})}m.className=d,m.selector=".chakra-portal",m.displayName="Portal"},45493:function(e,t,n){"use strict";n.d(t,{L:function(){return a},h:function(){return s}});var r=n(9165),i=n(52322),[o,a]=(0,r.k)({strict:!1,name:"PortalManagerContext"});function s(e){let{children:t,zIndex:n}=e;return(0,i.jsx)(o,{value:{zIndex:n},children:t})}s.displayName="PortalManager"},35297:function(e,t,n){"use strict";n.d(t,{E:function(){return h},X:function(){return d}});var r=n(31053),i=n(85244),o=n(2784),a=n(68023),s=n(59576),l=n(9165),u=n(52322),[c,d]=(0,l.k)({name:"RadioGroupContext",strict:!1}),h=(0,a.G)((e,t)=>{let{colorScheme:n,size:a,variant:l,children:d,className:h,isDisabled:p,isFocusable:f,...m}=e,{value:g,onChange:v,getRootProps:y,name:b,htmlProps:k}=function(e={}){let{onChange:t,value:n,defaultValue:a,name:s,isDisabled:l,isFocusable:u,isNative:c,...d}=e,[h,p]=(0,o.useState)(a||""),f=void 0!==n,m=f?n:h,g=(0,o.useRef)(null),v=(0,o.useCallback)(()=>{let e=g.current;if(!e)return;let t="input:not(:disabled):checked",n=e.querySelector(t);if(n){n.focus();return}t="input:not(:disabled)";let r=e.querySelector(t);null==r||r.focus()},[]),y=(0,o.useId)(),b=`radio-${y}`,k=s||b,w=(0,o.useCallback)(e=>{let n=e&&(0,r.Kn)(e)&&(0,r.Kn)(e.target)?e.target.value:e;f||p(n),null==t||t(String(n))},[t,f]),x=(0,o.useCallback)((e={},t=null)=>({...e,ref:(0,i.lq)(t,g),role:"radiogroup"}),[]),_=(0,o.useCallback)((e={},t=null)=>{let n=c?"checked":"isChecked";return{...e,ref:t,name:k,[n]:null!=m?e.value===m:void 0,onChange(e){w(e)},"data-radiogroup":!0}},[c,k,w,m]);return{getRootProps:x,getRadioProps:_,name:k,ref:g,focus:v,setValue:p,value:m,onChange:w,isDisabled:l,isFocusable:u,htmlProps:d}}(m),w=(0,o.useMemo)(()=>({name:b,size:a,onChange:v,colorScheme:n,value:g,variant:l,isDisabled:p,isFocusable:f}),[b,a,v,n,g,l,p,f]);return(0,u.jsx)(c,{value:w,children:(0,u.jsx)(s.m.div,{...y(k,t),className:(0,r.cx)("chakra-radio-group",h),children:d})})});h.displayName="RadioGroup"},59669:function(e,t,n){"use strict";n.d(t,{Y:function(){return m}});var r=n(35297),i=n(35183),o=n(31053),a=n(67274),s=n(2784),l={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"};function u(e){e.preventDefault(),e.stopPropagation()}var c=n(68023),d=n(91982),h=n(84586),p=n(59576),f=n(52322),m=(0,c.G)((e,t)=>{var n;let c=(0,r.X)(),{onChange:m,value:g}=e,v=(0,d.jC)("Radio",{...c,...e}),y=(0,h.Lr)(e),{spacing:b="0.5rem",children:k,isDisabled:w=null==c?void 0:c.isDisabled,isFocusable:x=null==c?void 0:c.isFocusable,inputProps:_,...S}=y,E=e.isChecked;(null==c?void 0:c.value)!=null&&null!=g&&(E=c.value===g);let D=m;(null==c?void 0:c.onChange)&&null!=g&&(D=(0,o.PP)(c.onChange,m));let C=null!=(n=null==e?void 0:e.name)?n:null==c?void 0:c.name,{getInputProps:j,getCheckboxProps:O,getLabelProps:T,getRootProps:A,htmlProps:P}=function(e={}){let{defaultChecked:t,isChecked:n,isFocusable:c,isDisabled:d,isReadOnly:h,isRequired:p,onChange:f,isInvalid:m,name:g,value:v,id:y,"data-radiogroup":b,"aria-describedby":k,...w}=e,x=`radio-${(0,s.useId)()}`,_=(0,i.NJ)(),S=(0,r.X)(),E=_&&!(S||b)?_.id:x;E=null!=y?y:E;let D=null!=d?d:null==_?void 0:_.isDisabled,C=null!=h?h:null==_?void 0:_.isReadOnly,j=null!=p?p:null==_?void 0:_.isRequired,O=null!=m?m:null==_?void 0:_.isInvalid,[T,A]=(0,s.useState)(!1),[P,R]=(0,s.useState)(!1),[M,F]=(0,s.useState)(!1),[N,I]=(0,s.useState)(!1),[L,B]=(0,s.useState)(!!t),z=void 0!==n,U=z?n:L;(0,s.useEffect)(()=>(0,a.BT)(A),[]);let q=(0,s.useCallback)(e=>{if(C||D){e.preventDefault();return}z||B(e.target.checked),null==f||f(e)},[z,D,C,f]),$=(0,s.useCallback)(e=>{" "===e.key&&I(!0)},[I]),H=(0,s.useCallback)(e=>{" "===e.key&&I(!1)},[I]),V=(0,s.useCallback)((e={},t=null)=>({...e,ref:t,"data-active":(0,o.PB)(N),"data-hover":(0,o.PB)(M),"data-disabled":(0,o.PB)(D),"data-invalid":(0,o.PB)(O),"data-checked":(0,o.PB)(U),"data-focus":(0,o.PB)(P),"data-focus-visible":(0,o.PB)(P&&T),"data-readonly":(0,o.PB)(C),"aria-hidden":!0,onMouseDown:(0,o.v0)(e.onMouseDown,()=>I(!0)),onMouseUp:(0,o.v0)(e.onMouseUp,()=>I(!1)),onMouseEnter:(0,o.v0)(e.onMouseEnter,()=>F(!0)),onMouseLeave:(0,o.v0)(e.onMouseLeave,()=>F(!1))}),[N,M,D,O,U,P,C,T]),{onFocus:W,onBlur:G}=null!=_?_:{},Y=(0,s.useCallback)((e={},t=null)=>{let n=D&&!c;return{...e,id:E,ref:t,type:"radio",name:g,value:v,onChange:(0,o.v0)(e.onChange,q),onBlur:(0,o.v0)(G,e.onBlur,()=>R(!1)),onFocus:(0,o.v0)(W,e.onFocus,()=>R(!0)),onKeyDown:(0,o.v0)(e.onKeyDown,$),onKeyUp:(0,o.v0)(e.onKeyUp,H),checked:U,disabled:n,readOnly:C,required:j,"aria-invalid":(0,o.Qm)(O),"aria-disabled":(0,o.Qm)(n),"aria-required":(0,o.Qm)(j),"data-readonly":(0,o.PB)(C),"aria-describedby":k,style:l}},[D,c,E,g,v,q,G,W,$,H,U,C,j,O,k]);return{state:{isInvalid:O,isFocused:P,isChecked:U,isActive:N,isHovered:M,isDisabled:D,isReadOnly:C,isRequired:j},getCheckboxProps:V,getRadioProps:V,getInputProps:Y,getLabelProps:(e={},t=null)=>({...e,ref:t,onMouseDown:(0,o.v0)(e.onMouseDown,u),"data-disabled":(0,o.PB)(D),"data-checked":(0,o.PB)(U),"data-invalid":(0,o.PB)(O)}),getRootProps:(e,t=null)=>({...e,ref:t,"data-disabled":(0,o.PB)(D),"data-checked":(0,o.PB)(U),"data-invalid":(0,o.PB)(O)}),htmlProps:w}}({...S,isChecked:E,isFocusable:x,isDisabled:w,onChange:D,name:C}),[R,M]=function(e,t){let n={},r={};for(let[i,o]of Object.entries(e))t.includes(i)?n[i]=o:r[i]=o;return[n,r]}(P,h.oE),F=O(M),N=j(_,t),I=T(),L=Object.assign({},R,A()),B={display:"inline-flex",alignItems:"center",verticalAlign:"top",cursor:"pointer",position:"relative",...v.container},z={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,...v.control},U={userSelect:"none",marginStart:b,...v.label};return(0,f.jsxs)(p.m.label,{className:"chakra-radio",...L,__css:B,children:[(0,f.jsx)("input",{className:"chakra-radio__input",...N}),(0,f.jsx)(p.m.span,{className:"chakra-radio__control",...F,__css:z}),k&&(0,f.jsx)(p.m.span,{className:"chakra-radio__label",...I,__css:U,children:k})]})});m.displayName="Radio"},25578:function(e,t,n){"use strict";n.d(t,{W:function(){return i}});var r=n(2784);function i(e){return r.Children.toArray(e).filter(e=>(0,r.isValidElement)(e))}},9165:function(e,t,n){"use strict";n.d(t,{k:function(){return i}});var r=n(2784);function i(e={}){let{name:t,strict:n=!0,hookName:i="useContext",providerName:o="Provider",errorMessage:a,defaultValue:s}=e,l=(0,r.createContext)(s);return l.displayName=t,[l.Provider,function e(){var t;let s=(0,r.useContext)(l);if(!s&&n){let n=Error(null!=a?a:`${i} returned \`undefined\`. Seems you forgot to wrap component within ${o}`);throw n.name="ContextError",null==(t=Error.captureStackTrace)||t.call(Error,n,e),n}return s},l]}},38317:function(e,t,n){"use strict";n.d(t,{O:function(){return s},u:function(){return l}});var r=n(36140),i=n(2784),o=n(52322),a=(0,i.createContext)({getDocument:()=>document,getWindow:()=>window});function s({defer:e}={}){let[,t]=(0,i.useReducer)(e=>e+1,0);return(0,r.G)(()=>{e&&t()},[e]),(0,i.useContext)(a)}function l(e){let{children:t,environment:n,disabled:r}=e,s=(0,i.useRef)(null),l=(0,i.useMemo)(()=>n||{getDocument:()=>{var e,t;return null!=(t=null==(e=s.current)?void 0:e.ownerDocument)?t:document},getWindow:()=>{var e,t;return null!=(t=null==(e=s.current)?void 0:e.ownerDocument.defaultView)?t:window}},[n]),u=!r||!n;return(0,o.jsxs)(a.Provider,{value:l,children:[t,u&&(0,o.jsx)("span",{id:"__chakra_env",hidden:!0,ref:s})]})}a.displayName="EnvironmentContext",l.displayName="EnvironmentProvider"},87053:function(e,t,n){"use strict";n.d(t,{h:function(){return a}});var r=n(2784),i=n(32465),o=n(75800);function a(e){let{isOpen:t,ref:n}=e,[a,s]=(0,r.useState)(t),[l,u]=(0,r.useState)(!1);(0,r.useEffect)(()=>{l||(s(t),u(!0))},[t,l,a]),(0,i.O)(()=>n.current,"animationend",()=>{s(t)});let c=!t&&!a;return{present:!c,onComplete(){var e;let t=(0,o.kR)(n.current),r=new t.CustomEvent("animationend",{bubbles:!0});null==(e=n.current)||e.dispatchEvent(r)}}}},90359:function(e,t,n){"use strict";n.d(t,{W:function(){return i}});var r=n(2784);function i(e,t=[]){let n=(0,r.useRef)(e);return(0,r.useEffect)(()=>{n.current=e}),(0,r.useCallback)((...e)=>{var t;return null==(t=n.current)?void 0:t.call(n,...e)},t)}},59572:function(e,t,n){"use strict";n.d(t,{T:function(){return o}});var r=n(2784),i=n(90359);function o(e){let{value:t,defaultValue:n,onChange:o,shouldUpdate:a=(e,t)=>e!==t}=e,s=(0,i.W)(o),l=(0,i.W)(a),[u,c]=(0,r.useState)(n),d=void 0!==t,h=d?t:u,p=(0,i.W)(e=>{let t="function"==typeof e?e(h):e;l(h,t)&&(d||c(t),s(t))},[d,s,h,l]);return[h,p]}},36502:function(e,t,n){"use strict";n.d(t,{q:function(){return o}});var r=n(90359),i=n(2784);function o(e={}){let{onClose:t,onOpen:n,isOpen:o,id:a}=e,s=(0,r.W)(n),l=(0,r.W)(t),[u,c]=(0,i.useState)(e.defaultIsOpen||!1),d=void 0!==o?o:u,h=void 0!==o,p=(0,i.useId)(),f=null!=a?a:`disclosure-${p}`,m=(0,i.useCallback)(()=>{h||c(!1),null==l||l()},[h,l]),g=(0,i.useCallback)(()=>{h||c(!0),null==s||s()},[h,s]),v=(0,i.useCallback)(()=>{d?m():g()},[d,g,m]);return{isOpen:d,onOpen:g,onClose:m,onToggle:v,isControlled:h,getButtonProps:function(e={}){return{...e,"aria-expanded":d,"aria-controls":f,onClick(t){var n;null==(n=e.onClick)||n.call(e,t),v()}}},getDisclosureProps:function(e={}){return{...e,hidden:!d,id:f}}}}},32465:function(e,t,n){"use strict";n.d(t,{O:function(){return o}});var r=n(2784),i=n(90359);function o(e,t,n,o){let a=(0,i.W)(n);return(0,r.useEffect)(()=>{let r="function"==typeof e?e():null!=e?e:document;if(n&&r)return r.addEventListener(t,a,o),()=>{r.removeEventListener(t,a,o)}},[t,e,o,a,n]),()=>{let n="function"==typeof e?e():null!=e?e:document;null==n||n.removeEventListener(t,a,o)}}},23964:function(e,t,n){"use strict";n.d(t,{C:function(){return c},G:function(){return h}});var r=n(75800),i=n(41741),o=n(51905),a=n(32465),s=n(36140),l=n(3171),u=n(2784);function c(e,t){let{shouldFocus:n,visible:o,focusRef:a}=t,s=n&&!o;(0,l.r)(()=>{let t;if(!s||function(e){let t=e.current;if(!t)return!1;let n=(0,r.vY)(t);return!(!n||t.contains(n))&&!!(0,i.Wq)(n)}(e))return;let n=(null==a?void 0:a.current)||e.current;if(n)return t=requestAnimationFrame(()=>{n.focus({preventScroll:!0})}),()=>{cancelAnimationFrame(t)}},[s,e,a])}var d={preventScroll:!0,shouldFocus:!1};function h(e,t=d){let{focusRef:n,preventScroll:r,shouldFocus:i,visible:c}=t,h="current"in e?e.current:e,p=i&&c,f=(0,u.useRef)(p),m=(0,u.useRef)(c);(0,s.G)(()=>{!m.current&&c&&(f.current=p),m.current=c},[c,p]);let g=(0,u.useCallback)(()=>{if(c&&h&&f.current&&(f.current=!1,!h.contains(document.activeElement))){if(null==n?void 0:n.current)requestAnimationFrame(()=>{var e;null==(e=n.current)||e.focus({preventScroll:r})});else{let e=(0,o.t5)(h);e.length>0&&requestAnimationFrame(()=>{e[0].focus({preventScroll:r})})}}},[c,r,h,n]);(0,l.r)(()=>{g()},[g]),(0,a.O)(h,"transitionend",g)}},76294:function(e,t,n){"use strict";n.d(t,{s:function(){return u}});var r=n(32465),i=()=>"undefined"!=typeof window,o=e=>i()&&e.test(navigator.vendor),a=e=>i()&&e.test(function(){var e;let t=navigator.userAgentData;return null!=(e=null==t?void 0:t.platform)?e:navigator.platform}()),s=()=>a(/mac|iphone|ipad|ipod/i),l=()=>s()&&o(/apple/i);function u(e){let{ref:t,elements:n,enabled:i}=e,o=()=>{var e,n;return null!=(n=null==(e=t.current)?void 0:e.ownerDocument)?n:document};(0,r.O)(o,"pointerdown",e=>{if(!l()||!i)return;let r=e.target,a=(null!=n?n:[t]).some(e=>{let t="current"in e?e.current:e;return(null==t?void 0:t.contains(r))||t===r});o().activeElement!==r&&a&&(e.preventDefault(),r.focus())})}},85244:function(e,t,n){"use strict";n.d(t,{lq:function(){return i},qq:function(){return o}});var r=n(2784);function i(...e){return t=>{e.forEach(e=>{!function(e,t){if(null!=e){if("function"==typeof e){e(t);return}try{e.current=t}catch(n){throw Error(`Cannot assign value '${t}' to ref '${e}'`)}}}(e,t)})}}function o(...e){return(0,r.useMemo)(()=>i(...e),e)}},36140:function(e,t,n){"use strict";n.d(t,{G:function(){return i}});var r=n(2784),i=(null==globalThis?void 0:globalThis.document)?r.useLayoutEffect:r.useEffect},3171:function(e,t,n){"use strict";n.d(t,{r:function(){return i}});var r=n(2784);function i(e,t){let n=(0,r.useRef)(!1),i=(0,r.useRef)(!1);(0,r.useEffect)(()=>{let t=n.current,r=t&&i.current;if(r)return e();i.current=!0},t),(0,r.useEffect)(()=>(n.current=!0,()=>{n.current=!1}),[])}},21898:function(e,t,n){"use strict";n.d(t,{l:function(){return i}});var r=n(93429);function i(...e){return t=>{e.forEach(e=>(function(e,t){if(null!=e){if((0,r.mf)(e)){e(t);return}try{e.current=t}catch(n){throw Error(`Cannot assign value '${t}' to ref '${e}'`)}}})(e,t))}}},81821:function(e,t,n){"use strict";n.d(t,{k:function(){return i}});var r=n(2784);function i(e={}){let{strict:t=!0,errorMessage:n="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:i}=e,o=(0,r.createContext)(void 0);return o.displayName=i,[o.Provider,function e(){var i;let a=(0,r.useContext)(o);if(!a&&t){let t=Error(n);throw t.name="ContextError",null==(i=Error.captureStackTrace)||i.call(Error,t,e),t}return a},o]}},18200:function(e,t,n){"use strict";n.d(t,{x:function(){return E}});var r=n(28165),i=n(52322),o=String.raw,a=o` :root, :host { --chakra-vh: 100vh; } @supports (height: -webkit-fill-available) { :root, :host { --chakra-vh: -webkit-fill-available; } } @supports (height: -moz-fill-available) { :root, :host { --chakra-vh: -moz-fill-available; } } @supports (height: 100dvh) { :root, :host { --chakra-vh: 100dvh; } } `,s=()=>(0,i.jsx)(r.xB,{styles:a}),l=({scope:e=""})=>(0,i.jsx)(r.xB,{styles:o` html { line-height: 1.5; -webkit-text-size-adjust: 100%; font-family: system-ui, sans-serif; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; -moz-osx-font-smoothing: grayscale; touch-action: manipulation; } body { position: relative; min-height: 100%; margin: 0; font-feature-settings: "kern"; } ${e} :where(*, *::before, *::after) { border-width: 0; border-style: solid; box-sizing: border-box; word-wrap: break-word; } main { display: block; } ${e} hr { border-top-width: 1px; box-sizing: content-box; height: 0; overflow: visible; } ${e} :where(pre, code, kbd,samp) { font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 1em; } ${e} a { background-color: transparent; color: inherit; text-decoration: inherit; } ${e} abbr[title] { border-bottom: none; text-decoration: underline; -webkit-text-decoration: underline dotted; text-decoration: underline dotted; } ${e} :where(b, strong) { font-weight: bold; } ${e} small { font-size: 80%; } ${e} :where(sub,sup) { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; } ${e} sub { bottom: -0.25em; } ${e} sup { top: -0.5em; } ${e} img { border-style: none; } ${e} :where(button, input, optgroup, select, textarea) { font-family: inherit; font-size: 100%; line-height: 1.15; margin: 0; } ${e} :where(button, input) { overflow: visible; } ${e} :where(button, select) { text-transform: none; } ${e} :where( button::-moz-focus-inner, [type="button"]::-moz-focus-inner, [type="reset"]::-moz-focus-inner, [type="submit"]::-moz-focus-inner ) { border-style: none; padding: 0; } ${e} fieldset { padding: 0.35em 0.75em 0.625em; } ${e} legend { box-sizing: border-box; color: inherit; display: table; max-width: 100%; padding: 0; white-space: normal; } ${e} progress { vertical-align: baseline; } ${e} textarea { overflow: auto; } ${e} :where([type="checkbox"], [type="radio"]) { box-sizing: border-box; padding: 0; } ${e} input[type="number"]::-webkit-inner-spin-button, ${e} input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none !important; } ${e} input[type="number"] { -moz-appearance: textfield; } ${e} input[type="search"] { -webkit-appearance: textfield; outline-offset: -2px; } ${e} input[type="search"]::-webkit-search-decoration { -webkit-appearance: none !important; } ${e} ::-webkit-file-upload-button { -webkit-appearance: button; font: inherit; } ${e} details { display: block; } ${e} summary { display: list-item; } template { display: none; } [hidden] { display: none !important; } ${e} :where( blockquote, dl, dd, h1, h2, h3, h4, h5, h6, hr, figure, p, pre ) { margin: 0; } ${e} button { background: transparent; padding: 0; } ${e} fieldset { margin: 0; padding: 0; } ${e} :where(ol, ul) { margin: 0; padding: 0; } ${e} textarea { resize: vertical; } ${e} :where(button, [role="button"]) { cursor: pointer; } ${e} button::-moz-focus-inner { border: 0 !important; } ${e} table { border-collapse: collapse; } ${e} :where(h1, h2, h3, h4, h5, h6) { font-size: inherit; font-weight: inherit; } ${e} :where(button, input, optgroup, select, textarea) { padding: 0; line-height: inherit; color: inherit; } ${e} :where(img, svg, video, canvas, audio, iframe, embed, object) { display: block; } ${e} :where(img, video) { max-width: 100%; height: auto; } [data-js-focus-visible] :focus:not([data-focus-visible-added]):not( [data-focus-visible-disabled] ) { outline: none; box-shadow: none; } ${e} select::-ms-expand { display: none; } ${a} `}),u=n(45493),c=n(15706),d=n(50019),h={light:"chakra-ui-light",dark:"chakra-ui-dark"},p="chakra-ui-color-mode",f={ssr:!1,type:"localStorage",get(e){let t;if(!(null==globalThis?void 0:globalThis.document))return e;try{t=localStorage.getItem(p)||e}catch(e){}return t||e},set(e){try{localStorage.setItem(p,e)}catch(e){}}},m=n(36140),g=n(2784),v=()=>{};function y(e,t){return"cookie"===e.type&&e.ssr?e.get(t):t}function b(e){let{value:t,children:n,options:{useSystemColorMode:r,initialColorMode:o,disableTransitionOnChange:a}={},colorModeManager:s=f}=e,l="dark"===o?"dark":"light",[u,c]=(0,g.useState)(()=>y(s,l)),[p,b]=(0,g.useState)(()=>y(s)),{getSystemTheme:k,setClassName:w,setDataset:x,addListener:_}=(0,g.useMemo)(()=>(function(e={}){let{preventTransition:t=!0}=e,n={setDataset:e=>{let r=t?n.preventTransition():void 0;document.documentElement.dataset.theme=e,document.documentElement.style.colorScheme=e,null==r||r()},setClassName(e){document.body.classList.add(e?h.dark:h.light),document.body.classList.remove(e?h.light:h.dark)},query:()=>window.matchMedia("(prefers-color-scheme: dark)"),getSystemTheme(e){var t;let r=null!=(t=n.query().matches)?t:"dark"===e;return r?"dark":"light"},addListener(e){let t=n.query(),r=t=>{e(t.matches?"dark":"light")};return"function"==typeof t.addListener?t.addListener(r):t.addEventListener("change",r),()=>{"function"==typeof t.removeListener?t.removeListener(r):t.removeEventListener("change",r)}},preventTransition(){let e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(e)})})}}};return n})({preventTransition:a}),[a]),S="system"!==o||u?u:p,E=(0,g.useCallback)(e=>{let t="system"===e?k():e;c(t),w("dark"===t),x(t),s.set(t)},[s,k,w,x]);(0,m.G)(()=>{"system"===o&&b(k())},[]),(0,g.useEffect)(()=>{let e=s.get();if(e){E(e);return}if("system"===o){E("system");return}E(l)},[s,l,o,E]);let D=(0,g.useCallback)(()=>{E("dark"===S?"light":"dark")},[S,E]);(0,g.useEffect)(()=>{if(r)return _(E)},[r,_,E]);let C=(0,g.useMemo)(()=>({colorMode:null!=t?t:S,toggleColorMode:t?v:D,setColorMode:t?v:E,forced:void 0!==t}),[S,D,E,t]);return(0,i.jsx)(d.kc.Provider,{value:C,children:n})}b.displayName="ColorModeProvider";var k=n(38317),w=e=>{let{children:t,colorModeManager:n,portalZIndex:r,resetScope:o,resetCSS:a=!0,theme:d={},environment:h,cssVarsRoot:p,disableEnvironment:f,disableGlobalStyle:m}=e,g=(0,i.jsx)(k.u,{environment:h,disabled:f,children:t});return(0,i.jsx)(c.f6,{theme:d,cssVarsRoot:p,children:(0,i.jsxs)(b,{colorModeManager:n,options:d.config,children:[a?(0,i.jsx)(l,{scope:o}):(0,i.jsx)(s,{}),!m&&(0,i.jsx)(c.ZL,{}),r?(0,i.jsx)(u.h,{zIndex:r,children:g}):g]})})},x=n(48696),_=n(64836),S=e=>function({children:t,theme:n=e,toastOptions:r,...o}){return(0,i.jsxs)(w,{theme:n,...o,children:[(0,i.jsx)(_.Qi,{value:null==r?void 0:r.defaultOptions,children:t}),(0,i.jsx)(_.VW,{...r})]})},E=S(x.rS);S(x.wE)},31053:function(e,t,n){"use strict";n.d(t,{Kn:function(){return i},PB:function(){return l},PP:function(){return d},Pu:function(){return a},Qm:function(){return u},ZK:function(){return o},cx:function(){return r},v0:function(){return c}});var r=(...e)=>e.filter(Boolean).join(" ");function i(e){let t=typeof e;return null!=e&&("object"===t||"function"===t)&&!Array.isArray(e)}var o=e=>{let{condition:t,message:n}=e};function a(e,...t){return s(e)?e(...t):e}var s=e=>"function"==typeof e,l=e=>e?"":void 0,u=e=>!!e||void 0;function c(...e){return function(t){e.some(e=>(null==e||e(t),null==t?void 0:t.defaultPrevented))}}function d(...e){return function(t){e.forEach(e=>{null==e||e(t)})}}},67109:function(e,t,n){"use strict";n.d(t,{O:function(){return v}});var r=n(2784),i=n(31053),o=n(59576),a=n(84586),s=n(28165),l=n(68023),u=n(91982),c=n(48929),d=n(52322),h=(0,o.m)("div",{baseStyle:{boxShadow:"none",backgroundClip:"padding-box",cursor:"default",color:"transparent",pointerEvents:"none",userSelect:"none","&::before, &::after, *":{visibility:"hidden"}}}),p=(0,a.gJ)("skeleton-start-color"),f=(0,a.gJ)("skeleton-end-color"),m=(0,s.F4)({from:{opacity:0},to:{opacity:1}}),g=(0,s.F4)({from:{borderColor:p.reference,background:p.reference},to:{borderColor:f.reference,background:f.reference}}),v=(0,l.G)((e,t)=>{let n={...e,fadeDuration:"number"==typeof e.fadeDuration?e.fadeDuration:.4,speed:"number"==typeof e.speed?e.speed:.8},s=(0,u.mq)("Skeleton",n),l=function(){let e=(0,r.useRef)(!0);return(0,r.useEffect)(()=>{e.current=!1},[]),e.current}(),{startColor:v="",endColor:y="",isLoaded:b,fadeDuration:k,speed:w,className:x,fitContent:_,...S}=(0,a.Lr)(n),[E,D]=(0,c.dQ)("colors",[v,y]),C=function(e){let t=(0,r.useRef)();return(0,r.useEffect)(()=>{t.current=e},[e]),t.current}(b),j=(0,i.cx)("chakra-skeleton",x),O={...E&&{[p.variable]:E},...D&&{[f.variable]:D}};if(b){let e=l||C?"none":`${m} ${k}s`;return(0,d.jsx)(o.m.div,{ref:t,className:j,__css:{animation:e},...S})}return(0,d.jsx)(h,{ref:t,className:j,...S,__css:{width:_?"fit-content":void 0,...s,...O,_dark:{...s._dark,...O},animation:`${w}s linear infinite alternate ${g}`}})});v.displayName="Skeleton"},84010:function(e,t,n){"use strict";n.d(t,{N:function(){return l}});var r=n(67109),i=n(24772),o=n(59576),a=n(31053),s=n(52322),l=e=>{let{noOfLines:t=3,spacing:n="0.5rem",skeletonHeight:l="0.5rem",className:u,startColor:c,endColor:d,isLoaded:h,fadeDuration:p,speed:f,variant:m,size:g,colorScheme:v,children:y,...b}=e,k=(0,i.S)("number"==typeof t?[t]:t)||3,w=Array(k).fill(1).map((e,t)=>t+1),x=e=>k>1&&e===w.length?"80%":"100%",_=(0,a.cx)("chakra-skeleton__group",u);return(0,s.jsx)(o.m.div,{className:_,...b,children:w.map((e,t)=>{if(h&&t>0)return null;let i=h?null:{mb:e===w.length?"0":n,width:x(e),height:l};return(0,s.jsx)(r.O,{startColor:c,endColor:d,isLoaded:h,fadeDuration:p,speed:f,variant:m,size:g,colorScheme:v,...i,children:0===t?y:void 0},w.length.toString()+e)})})};l.displayName="SkeletonText"},55233:function(e,t,n){"use strict";n.d(t,{iR:function(){return en},Ms:function(){return eo},gs:function(){return er},Uj:function(){return ei}});var r=e=>e?"":void 0,i=e=>!!e||void 0,o=(...e)=>e.filter(Boolean).join(" ");function a(...e){return function(t){e.some(e=>(null==e||e(t),null==t?void 0:t.defaultPrevented))}}function s(e){let{orientation:t,vertical:n,horizontal:r}=e;return"vertical"===t?n:r}var l={width:0,height:0},u=e=>e||l;function c(e){let t=!!e.touches;return t}function d(e,t="page"){return c(e)?function(e,t="page"){let n=e.touches[0]||e.changedTouches[0];return{x:n[`${t}X`],y:n[`${t}Y`]}}(e,t):function(e,t="page"){return{x:e[`${t}X`],y:e[`${t}Y`]}}(e,t)}function h(e,t,n,r){var i;return i=function(e,t=!1){function n(t){e(t,{point:d(t)})}let r=t?e=>{let t=function(e){var t;let n=null!=(t=e.view)?t:window;return void 0!==n.PointerEvent&&e instanceof n.PointerEvent?!("mouse"!==e.pointerType):e instanceof n.MouseEvent}(e);(!t||t&&0===e.button)&&n(e)}:n;return r}(n,"pointerdown"===t),e.addEventListener(t,i,r),()=>{e.removeEventListener(t,i,r)}}let p=1/60*1e3,f="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),m="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(f()),p),g=!0,v=!1,y=!1,b={delta:0,timestamp:0},k=["read","update","preRender","render","postRender"],w=k.reduce((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,i=!1,o=!1,a=new WeakSet,s={schedule:(e,o=!1,s=!1)=>{let l=s&&i,u=l?t:n;return o&&a.add(e),-1===u.indexOf(e)&&(u.push(e),l&&i&&(r=t.length)),e},cancel:e=>{let t=n.indexOf(e);-1!==t&&n.splice(t,1),a.delete(e)},process:l=>{if(i){o=!0;return}if(i=!0,[t,n]=[n,t],n.length=0,r=t.length)for(let n=0;nv=!0),e),{}),x=k.reduce((e,t)=>{let n=w[t];return e[t]=(e,t=!1,r=!1)=>(v||D(),n.schedule(e,t,r)),e},{}),_=k.reduce((e,t)=>(e[t]=w[t].cancel,e),{});k.reduce((e,t)=>(e[t]=()=>w[t].process(b),e),{});let S=e=>w[e].process(b),E=e=>{v=!1,b.delta=g?p:Math.max(Math.min(e-b.timestamp,40),1),b.timestamp=e,y=!0,k.forEach(S),y=!1,v&&(g=!1,m(E))},D=()=>{v=!0,g=!0,y||m(E)},C=()=>b;var j=Object.defineProperty,O=(e,t,n)=>t in e?j(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,T=(e,t,n)=>(O(e,"symbol"!=typeof t?t+"":t,n),n),A=class{constructor(e,t,n){var r;if(T(this,"history",[]),T(this,"startEvent",null),T(this,"lastEvent",null),T(this,"lastEventInfo",null),T(this,"handlers",{}),T(this,"removeListeners",()=>{}),T(this,"threshold",3),T(this,"win"),T(this,"updatePoint",()=>{if(!(this.lastEvent&&this.lastEventInfo))return;let e=R(this.lastEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){if("number"==typeof e&&"number"==typeof t)return F(e,t);if(N(e)&&N(t)){let n=F(e.x,t.x),r=F(e.y,t.y);return Math.sqrt(n**2+r**2)}return 0}(e.offset,{x:0,y:0})>=this.threshold;if(!t&&!n)return;let{timestamp:r}=C();this.history.push({...e.point,timestamp:r});let{onStart:i,onMove:o}=this.handlers;t||(null==i||i(this.lastEvent,e),this.startEvent=this.lastEvent),null==o||o(this.lastEvent,e)}),T(this,"onPointerMove",(e,t)=>{this.lastEvent=e,this.lastEventInfo=t,x.update(this.updatePoint,!0)}),T(this,"onPointerUp",(e,t)=>{let n=R(t,this.history),{onEnd:r,onSessionEnd:i}=this.handlers;null==i||i(e,n),this.end(),r&&this.startEvent&&(null==r||r(e,n))}),this.win=null!=(r=e.view)?r:window,c(e)&&e.touches.length>1)return;this.handlers=t,n&&(this.threshold=n),e.stopPropagation(),e.preventDefault();let i={point:d(e)},{timestamp:o}=C();this.history=[{...i.point,timestamp:o}];let{onSessionStart:a}=t;null==a||a(e,R(i,this.history)),this.removeListeners=function(...e){return t=>e.reduce((e,t)=>t(e),t)}(h(this.win,"pointermove",this.onPointerMove),h(this.win,"pointerup",this.onPointerUp),h(this.win,"pointercancel",this.onPointerUp))}updateHandlers(e){this.handlers=e}end(){var e;null==(e=this.removeListeners)||e.call(this),_.update(this.updatePoint)}};function P(e,t){return{x:e.x-t.x,y:e.y-t.y}}function R(e,t){return{point:e.point,delta:P(e.point,t[t.length-1]),offset:P(e.point,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=e[e.length-1];for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>M(.1)));)n--;if(!r)return{x:0,y:0};let o=(i.timestamp-r.timestamp)/1e3;if(0===o)return{x:0,y:0};let a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(t,0)}}var M=e=>1e3*e;function F(e,t){return Math.abs(e-t)}function N(e){return"x"in e&&"y"in e}var I=n(2784);function L(e){let t=(0,I.useRef)(null);return t.current=e,t}var B=n(90359),z=n(3171),U=n(59572),q=(null==globalThis?void 0:globalThis.document)?I.useLayoutEffect:I.useEffect,$=n(85244),H=n(56372),V=n(9165),W=n(68023),G=n(91982),Y=n(84586),Z=n(91148),K=n(59576),J=n(52322),[X,Q]=(0,V.k)({name:"SliderContext",hookName:"useSliderContext",providerName:""}),[ee,et]=(0,V.k)({name:"SliderStylesContext",hookName:"useSliderStyles",providerName:""}),en=(0,W.G)((e,t)=>{var n;let c={...e,orientation:null!=(n=null==e?void 0:e.orientation)?n:"horizontal"},d=(0,G.jC)("Slider",c),p=(0,Y.Lr)(c),{direction:f}=(0,Z.F)();p.direction=f;let{getInputProps:m,getRootProps:g,...v}=function(e){var t;let{min:n=0,max:o=100,onChange:c,value:d,defaultValue:p,isReversed:f,direction:m="ltr",orientation:g="horizontal",id:v,isDisabled:y,isReadOnly:b,onChangeStart:k,onChangeEnd:w,step:x=1,getAriaValueText:_,"aria-valuetext":S,"aria-label":E,"aria-labelledby":D,name:C,focusThumbOnChange:j=!0,...O}=e,T=(0,B.W)(k),P=(0,B.W)(w),R=(0,B.W)(_),M=function(e){let{isReversed:t,direction:n,orientation:r}=e;return"ltr"===n||"vertical"===r?t:!t}({isReversed:f,direction:m,orientation:g}),[F,N]=(0,U.T)({value:d,defaultValue:null!=p?p:o{var t,n;if(!ei.current)return;let r=er.current;r.eventSource="pointer";let i=ei.current.getBoundingClientRect(),{clientX:o,clientY:a}=null!=(n=null==(t=e.touches)?void 0:t[0])?n:e,s=en?i.bottom-a:o-i.left,l=en?i.height:i.width,u=s/l;M&&(u=1-u);let c=(0,H.WS)(u,r.min,r.max);return r.step&&(c=parseFloat((0,H.WP)(c,r.min,r.step))),c=(0,H.HU)(c,r.min,r.max)},[en,M,er]),eh=(0,I.useCallback)(e=>{let t=er.current;t.isInteractive&&(e=parseFloat((0,H.WP)(e,t.min,J)),N(e=(0,H.HU)(e,t.min,t.max)))},[J,N,er]),ep=(0,I.useMemo)(()=>({stepUp(e=J){let t=M?X-e:X+e;eh(t)},stepDown(e=J){let t=M?X+e:X-e;eh(t)},reset(){eh(p||0)},stepTo(e){eh(e)}}),[eh,M,X,J,p]),ef=(0,I.useCallback)(e=>{let t=er.current,n={ArrowRight:()=>ep.stepUp(),ArrowUp:()=>ep.stepUp(),ArrowLeft:()=>ep.stepDown(),ArrowDown:()=>ep.stepDown(),PageUp:()=>ep.stepUp(K),PageDown:()=>ep.stepDown(K),Home:()=>eh(t.min),End:()=>eh(t.max)}[e.key];n&&(e.preventDefault(),e.stopPropagation(),n(e),t.eventSource="keyboard")},[ep,eh,K,er]),em=null!=(t=null==R?void 0:R(X))?t:S,eg=function(e){let[t]=function({getNodes:e,observeMutation:t=!0}){let[n,r]=(0,I.useState)([]),[i,o]=(0,I.useState)(0);return q(()=>{let n=e(),i=n.map((e,t)=>(function(e,t){if(!e){t(void 0);return}t({width:e.offsetWidth,height:e.offsetHeight});let n=e.ownerDocument.defaultView??window,r=new n.ResizeObserver(n=>{let r,i;if(!Array.isArray(n)||!n.length)return;let[o]=n;if("borderBoxSize"in o){let e=o.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,i=t.blockSize}else r=e.offsetWidth,i=e.offsetHeight;t({width:r,height:i})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)})(e,e=>{r(n=>[...n.slice(0,t),e,...n.slice(t+1)])}));if(t){let e=n[0];i.push(function(e,t){var n,r;if(!e||!e.parentElement)return;let i=null!=(r=null==(n=e.ownerDocument)?void 0:n.defaultView)?r:window,o=new i.MutationObserver(()=>{t()});return o.observe(e.parentElement,{childList:!0}),()=>{o.disconnect()}}(e,()=>{o(e=>e+1)}))}return()=>{i.forEach(e=>{null==e||e()})}},[i]),n}({observeMutation:!1,getNodes(){let t="object"==typeof e&&null!==e&&"current"in e?e.current:e;return[t]}});return t}(eo),{getThumbStyle:ev,rootStyle:ey,trackStyle:eb,innerTrackStyle:ek}=(0,I.useMemo)(()=>{let e=er.current,t=null!=eg?eg:{width:0,height:0};return function(e){let{orientation:t,thumbPercents:n,thumbRects:r,isReversed:i}=e,o="vertical"===t?r.reduce((e,t)=>u(e).height>u(t).height?e:t,l):r.reduce((e,t)=>u(e).width>u(t).width?e:t,l),a={position:"relative",touchAction:"none",WebkitTapHighlightColor:"rgba(0,0,0,0)",userSelect:"none",outline:0,...s({orientation:t,vertical:o?{paddingLeft:o.width/2,paddingRight:o.width/2}:{},horizontal:o?{paddingTop:o.height/2,paddingBottom:o.height/2}:{}})},c={position:"absolute",...s({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",height:"100%"},horizontal:{top:"50%",transform:"translateY(-50%)",width:"100%"}})},d=1===n.length,h=[0,i?100-n[0]:n[0]],p=d?h:n,f=p[0];!d&&i&&(f=100-f);let m=Math.abs(p[p.length-1]-p[0]),g={...c,...s({orientation:t,vertical:i?{height:`${m}%`,top:`${f}%`}:{height:`${m}%`,bottom:`${f}%`},horizontal:i?{width:`${m}%`,right:`${f}%`}:{width:`${m}%`,left:`${f}%`}})};return{trackStyle:c,innerTrackStyle:g,rootStyle:a,getThumbStyle:e=>{var i;let o=null!=(i=r[e])?i:l;return{position:"absolute",userSelect:"none",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",touchAction:"none",...s({orientation:t,vertical:{bottom:`calc(${n[e]}% - ${o.height/2}px)`},horizontal:{left:`calc(${n[e]}% - ${o.width/2}px)`}})}}}}({isReversed:M,orientation:e.orientation,thumbRects:[t],thumbPercents:[et]})},[M,eg,et,er]),ew=(0,I.useCallback)(()=>{let e=er.current;e.focusThumbOnChange&&setTimeout(()=>{var e;return null==(e=eo.current)?void 0:e.focus()})},[er]);function ex(e){let t=ed(e);null!=t&&t!==er.current.value&&N(t)}(0,z.r)(()=>{let e=er.current;ew(),"keyboard"===e.eventSource&&(null==P||P(e.value))},[X,P]),function(e,t){let{onPan:n,onPanStart:r,onPanEnd:i,onPanSessionStart:o,onPanSessionEnd:a,threshold:s}=t,l=!!(n||r||i||o||a),u=(0,I.useRef)(null),c=L({onSessionStart:o,onSessionEnd:a,onStart:r,onMove:n,onEnd(e,t){u.current=null,null==i||i(e,t)}});(0,I.useEffect)(()=>{var e;null==(e=u.current)||e.updateHandlers(c.current)}),(0,I.useEffect)(()=>{let t=e.current;if(t&&l)return h(t,"pointerdown",function(e){u.current=new A(e,c.current,s)})},[e,l,c,s]),(0,I.useEffect)(()=>()=>{var e;null==(e=u.current)||e.end(),u.current=null},[])}(ea,{onPanSessionStart(e){let t=er.current;t.isInteractive&&(W(!0),ew(),ex(e),null==T||T(t.value))},onPanSessionEnd(){let e=er.current;e.isInteractive&&(W(!1),null==P||P(e.value))},onPan(e){let t=er.current;t.isInteractive&&ex(e)}});let e_=(0,I.useCallback)((e={},t=null)=>({...e,...O,ref:(0,$.lq)(t,ea),tabIndex:-1,"aria-disabled":i(y),"data-focused":r(G),style:{...e.style,...ey}}),[O,y,G,ey]),eS=(0,I.useCallback)((e={},t=null)=>({...e,ref:(0,$.lq)(t,ei),id:ec,"data-disabled":r(y),style:{...e.style,...eb}}),[y,ec,eb]),eE=(0,I.useCallback)((e={},t=null)=>({...e,ref:t,style:{...e.style,...ek}}),[ek]),eD=(0,I.useCallback)((e={},t=null)=>({...e,ref:(0,$.lq)(t,eo),role:"slider",tabIndex:Z?0:void 0,id:eu,"data-active":r(V),"aria-valuetext":em,"aria-valuemin":n,"aria-valuemax":o,"aria-valuenow":X,"aria-orientation":g,"aria-disabled":i(y),"aria-readonly":i(b),"aria-label":E,"aria-labelledby":E?void 0:D,style:{...e.style,...ev(0)},onKeyDown:a(e.onKeyDown,ef),onFocus:a(e.onFocus,()=>Y(!0)),onBlur:a(e.onBlur,()=>Y(!1))}),[Z,eu,V,em,n,o,X,g,y,b,E,D,ev,ef]),eC=(0,I.useCallback)((e,t=null)=>{let i=!(e.valueo),a=X>=e.value,s=(0,H.Rg)(e.value,n,o),l={position:"absolute",pointerEvents:"none",...function(e){let{orientation:t,vertical:n,horizontal:r}=e;return"vertical"===t?n:r}({orientation:g,vertical:{bottom:M?`${100-s}%`:`${s}%`},horizontal:{left:M?`${100-s}%`:`${s}%`}})};return{...e,ref:t,role:"presentation","aria-hidden":!0,"data-disabled":r(y),"data-invalid":r(!i),"data-highlighted":r(a),style:{...e.style,...l}}},[y,M,o,n,g,X]),ej=(0,I.useCallback)((e={},t=null)=>({...e,ref:t,type:"hidden",value:X,name:C}),[C,X]);return{state:{value:X,isFocused:G,isDragging:V},actions:ep,getRootProps:e_,getTrackProps:eS,getInnerTrackProps:eE,getThumbProps:eD,getMarkerProps:eC,getInputProps:ej}}(p),y=g(),b=m({},t);return(0,J.jsx)(X,{value:v,children:(0,J.jsx)(ee,{value:d,children:(0,J.jsxs)(K.m.div,{...y,className:o("chakra-slider",c.className),__css:d.container,children:[c.children,(0,J.jsx)("input",{...b})]})})})});en.displayName="Slider";var er=(0,W.G)((e,t)=>{let{getThumbProps:n}=Q(),r=et(),i=n(e,t);return(0,J.jsx)(K.m.div,{...i,className:o("chakra-slider__thumb",e.className),__css:r.thumb})});er.displayName="SliderThumb";var ei=(0,W.G)((e,t)=>{let{getTrackProps:n}=Q(),r=et(),i=n(e,t);return(0,J.jsx)(K.m.div,{...i,className:o("chakra-slider__track",e.className),__css:r.track})});ei.displayName="SliderTrack";var eo=(0,W.G)((e,t)=>{let{getInnerTrackProps:n}=Q(),r=et(),i=n(e,t);return(0,J.jsx)(K.m.div,{...i,className:o("chakra-slider__filled-track",e.className),__css:r.filledTrack})});eo.displayName="SliderFilledTrack",(0,W.G)((e,t)=>{let{getMarkerProps:n}=Q(),r=et(),i=n(e,t);return(0,J.jsx)(K.m.div,{...i,className:o("chakra-slider__marker",e.className),__css:r.mark})}).displayName="SliderMark"},81540:function(e,t,n){"use strict";n.d(t,{$:function(){return d}});var r=n(28165),i=n(68023),o=n(91982),a=n(84586),s=n(59576),l=n(31053),u=n(52322),c=(0,r.F4)({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),d=(0,i.G)((e,t)=>{let n=(0,o.mq)("Spinner",e),{label:r="Loading...",thickness:i="2px",speed:d="0.45s",emptyColor:h="transparent",className:p,...f}=(0,a.Lr)(e),m=(0,l.cx)("chakra-spinner",p),g={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:i,borderBottomColor:h,borderLeftColor:h,animation:`${c} ${d} linear infinite`,...n};return(0,u.jsx)(s.m.div,{ref:t,__css:g,className:m,...f,children:r&&(0,u.jsx)(s.m.span,{srOnly:!0,children:r})})});d.displayName="Spinner"},84586:function(e,t,n){"use strict";n.d(t,{D:function(){return eA},Lr:function(){return eR},Ud:function(){return eP},ZR:function(){return eS},_6:function(){return en},c0:function(){return eb},cC:function(){return ex},fj:function(){return eT},gJ:function(){return et},iv:function(){return ej},k0:function(){return eO},oE:function(){return ew}});var r=n(31053),i=n(63637),o=e=>/!(important)?$/.test(e),a=e=>"string"==typeof e?e.replace(/!(important)?$/,"").trim():e,s=(e,t)=>n=>{let i=String(t),s=o(i),l=a(i),u=e?`${e}.${l}`:l,c=(0,r.Kn)(n.__cssMap)&&u in n.__cssMap?n.__cssMap[u].varRef:t;return c=a(c),s?`${c} !important`:c};function l(e){let{scale:t,transform:n,compose:r}=e;return(e,i)=>{var o;let a=s(t,e)(i),l=null!=(o=null==n?void 0:n(a,i))?o:a;return r&&(l=r(l,i)),l}}var u=(...e)=>t=>e.reduce((e,t)=>t(e),t);function c(e,t){return n=>{let r={property:n,scale:e};return r.transform=l({scale:e,transform:t}),r}}var d=({rtl:e,ltr:t})=>n=>"rtl"===n.direction?e:t,h=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"],p={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:"var(--chakra-blur) var(--chakra-brightness) var(--chakra-contrast) var(--chakra-grayscale) var(--chakra-hue-rotate) var(--chakra-invert) var(--chakra-saturate) var(--chakra-sepia) var(--chakra-drop-shadow)"},f={backdropFilter:"var(--chakra-backdrop-blur) var(--chakra-backdrop-brightness) var(--chakra-backdrop-contrast) var(--chakra-backdrop-grayscale) var(--chakra-backdrop-hue-rotate) var(--chakra-backdrop-invert) var(--chakra-backdrop-opacity) var(--chakra-backdrop-saturate) var(--chakra-backdrop-sepia)","--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"},m={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},g={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},v=new Set(Object.values(g)),y=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),b=e=>e.trim(),k=e=>"string"==typeof e&&e.includes("(")&&e.includes(")"),w=e=>{let t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}},x=e=>t=>`${e}(${t})`,_={filter:e=>"auto"!==e?e:p,backdropFilter:e=>"auto"!==e?e:f,ring:e=>({"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":_.px(e),boxShadow:"var(--chakra-ring-offset-shadow), var(--chakra-ring-shadow), var(--chakra-shadow, 0 0 #0000)"}),bgClip:e=>"text"===e?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e},transform:e=>"auto"===e?["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...h].join(" "):"auto-gpu"===e?["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...h].join(" "):e,vh:e=>"$100vh"===e?"var(--chakra-vh)":e,px(e){if(null==e)return e;let{unitless:t}=w(e);return t||"number"==typeof e?`${e}px`:e},fraction:e=>"number"!=typeof e||e>1?e:`${100*e}%`,float:(e,t)=>"rtl"===t.direction?({left:"right",right:"left"})[e]:e,degree(e){if(/^var\(--.+\)$/.test(e)||null==e)return e;let t="string"==typeof e&&!e.endsWith("deg");return"number"==typeof e||t?`${e}deg`:e},gradient:(e,t)=>(function(e,t){if(null==e||y.has(e))return e;let n=k(e)||y.has(e);if(!n)return`url('${e}')`;let r=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),i=null==r?void 0:r[1],o=null==r?void 0:r[2];if(!i||!o)return e;let a=i.includes("-gradient")?i:`${i}-gradient`,[s,...l]=o.split(",").map(b).filter(Boolean);if((null==l?void 0:l.length)===0)return e;let u=s in g?g[s]:s;l.unshift(u);let c=l.map(e=>{if(v.has(e))return e;let n=e.indexOf(" "),[r,i]=-1!==n?[e.substr(0,n),e.substr(n+1)]:[e],o=k(i)?i:i&&i.split(" "),a=`colors.${r}`,s=a in t.__cssMap?t.__cssMap[a].varRef:r;return o?[s,...Array.isArray(o)?o:[o]].join(" "):s});return`${a}(${c.join(", ")})`})(e,null!=t?t:{}),blur:x("blur"),opacity:x("opacity"),brightness:x("brightness"),contrast:x("contrast"),dropShadow:x("drop-shadow"),grayscale:x("grayscale"),hueRotate:e=>x("hue-rotate")(_.degree(e)),invert:x("invert"),saturate:x("saturate"),sepia:x("sepia"),bgImage(e){if(null==e)return e;let t=k(e)||y.has(e);return t?e:`url(${e})`},outline(e){let t="0"===String(e)||"none"===String(e);return null!==e&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){var t;let{space:n,divide:r}=null!=(t=m[e])?t:{},i={flexDirection:e};return n&&(i[n]=1),r&&(i[r]=1),i}},S={borderWidths:c("borderWidths"),borderStyles:c("borderStyles"),colors:c("colors"),borders:c("borders"),gradients:c("gradients",_.gradient),radii:c("radii",_.px),space:c("space",u(_.vh,_.px)),spaceT:c("space",u(_.vh,_.px)),degreeT:e=>({property:e,transform:_.degree}),prop:(e,t,n)=>({property:e,scale:t,...t&&{transform:l({scale:t,transform:n})}}),propT:(e,t)=>({property:e,transform:t}),sizes:c("sizes",u(_.vh,_.px)),sizesT:c("sizes",u(_.vh,_.fraction)),shadows:c("shadows"),logical:function(e){let{property:t,scale:n,transform:r}=e;return{scale:n,property:d(t),transform:n?l({scale:n,compose:r}):r}},blur:c("blur",_.blur)},E={background:S.colors("background"),backgroundColor:S.colors("backgroundColor"),backgroundImage:S.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:_.bgClip},bgSize:S.prop("backgroundSize"),bgPosition:S.prop("backgroundPosition"),bg:S.colors("background"),bgColor:S.colors("backgroundColor"),bgPos:S.prop("backgroundPosition"),bgRepeat:S.prop("backgroundRepeat"),bgAttachment:S.prop("backgroundAttachment"),bgGradient:S.gradients("backgroundImage"),bgClip:{transform:_.bgClip}};Object.assign(E,{bgImage:E.backgroundImage,bgImg:E.backgroundImage});var D={border:S.borders("border"),borderWidth:S.borderWidths("borderWidth"),borderStyle:S.borderStyles("borderStyle"),borderColor:S.colors("borderColor"),borderRadius:S.radii("borderRadius"),borderTop:S.borders("borderTop"),borderBlockStart:S.borders("borderBlockStart"),borderTopLeftRadius:S.radii("borderTopLeftRadius"),borderStartStartRadius:S.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:S.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:S.radii("borderTopRightRadius"),borderStartEndRadius:S.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:S.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:S.borders("borderRight"),borderInlineEnd:S.borders("borderInlineEnd"),borderBottom:S.borders("borderBottom"),borderBlockEnd:S.borders("borderBlockEnd"),borderBottomLeftRadius:S.radii("borderBottomLeftRadius"),borderBottomRightRadius:S.radii("borderBottomRightRadius"),borderLeft:S.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:S.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:S.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:S.borders(["borderLeft","borderRight"]),borderInline:S.borders("borderInline"),borderY:S.borders(["borderTop","borderBottom"]),borderBlock:S.borders("borderBlock"),borderTopWidth:S.borderWidths("borderTopWidth"),borderBlockStartWidth:S.borderWidths("borderBlockStartWidth"),borderTopColor:S.colors("borderTopColor"),borderBlockStartColor:S.colors("borderBlockStartColor"),borderTopStyle:S.borderStyles("borderTopStyle"),borderBlockStartStyle:S.borderStyles("borderBlockStartStyle"),borderBottomWidth:S.borderWidths("borderBottomWidth"),borderBlockEndWidth:S.borderWidths("borderBlockEndWidth"),borderBottomColor:S.colors("borderBottomColor"),borderBlockEndColor:S.colors("borderBlockEndColor"),borderBottomStyle:S.borderStyles("borderBottomStyle"),borderBlockEndStyle:S.borderStyles("borderBlockEndStyle"),borderLeftWidth:S.borderWidths("borderLeftWidth"),borderInlineStartWidth:S.borderWidths("borderInlineStartWidth"),borderLeftColor:S.colors("borderLeftColor"),borderInlineStartColor:S.colors("borderInlineStartColor"),borderLeftStyle:S.borderStyles("borderLeftStyle"),borderInlineStartStyle:S.borderStyles("borderInlineStartStyle"),borderRightWidth:S.borderWidths("borderRightWidth"),borderInlineEndWidth:S.borderWidths("borderInlineEndWidth"),borderRightColor:S.colors("borderRightColor"),borderInlineEndColor:S.colors("borderInlineEndColor"),borderRightStyle:S.borderStyles("borderRightStyle"),borderInlineEndStyle:S.borderStyles("borderInlineEndStyle"),borderTopRadius:S.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:S.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:S.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:S.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(D,{rounded:D.borderRadius,roundedTop:D.borderTopRadius,roundedTopLeft:D.borderTopLeftRadius,roundedTopRight:D.borderTopRightRadius,roundedTopStart:D.borderStartStartRadius,roundedTopEnd:D.borderStartEndRadius,roundedBottom:D.borderBottomRadius,roundedBottomLeft:D.borderBottomLeftRadius,roundedBottomRight:D.borderBottomRightRadius,roundedBottomStart:D.borderEndStartRadius,roundedBottomEnd:D.borderEndEndRadius,roundedLeft:D.borderLeftRadius,roundedRight:D.borderRightRadius,roundedStart:D.borderInlineStartRadius,roundedEnd:D.borderInlineEndRadius,borderStart:D.borderInlineStart,borderEnd:D.borderInlineEnd,borderTopStartRadius:D.borderStartStartRadius,borderTopEndRadius:D.borderStartEndRadius,borderBottomStartRadius:D.borderEndStartRadius,borderBottomEndRadius:D.borderEndEndRadius,borderStartRadius:D.borderInlineStartRadius,borderEndRadius:D.borderInlineEndRadius,borderStartWidth:D.borderInlineStartWidth,borderEndWidth:D.borderInlineEndWidth,borderStartColor:D.borderInlineStartColor,borderEndColor:D.borderInlineEndColor,borderStartStyle:D.borderInlineStartStyle,borderEndStyle:D.borderInlineEndStyle});var C={color:S.colors("color"),textColor:S.colors("color"),fill:S.colors("fill"),stroke:S.colors("stroke")},j={boxShadow:S.shadows("boxShadow"),mixBlendMode:!0,blendMode:S.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:S.prop("backgroundBlendMode"),opacity:!0};Object.assign(j,{shadow:j.boxShadow});var O={filter:{transform:_.filter},blur:S.blur("--chakra-blur"),brightness:S.propT("--chakra-brightness",_.brightness),contrast:S.propT("--chakra-contrast",_.contrast),hueRotate:S.propT("--chakra-hue-rotate",_.hueRotate),invert:S.propT("--chakra-invert",_.invert),saturate:S.propT("--chakra-saturate",_.saturate),dropShadow:S.propT("--chakra-drop-shadow",_.dropShadow),backdropFilter:{transform:_.backdropFilter},backdropBlur:S.blur("--chakra-backdrop-blur"),backdropBrightness:S.propT("--chakra-backdrop-brightness",_.brightness),backdropContrast:S.propT("--chakra-backdrop-contrast",_.contrast),backdropHueRotate:S.propT("--chakra-backdrop-hue-rotate",_.hueRotate),backdropInvert:S.propT("--chakra-backdrop-invert",_.invert),backdropSaturate:S.propT("--chakra-backdrop-saturate",_.saturate)},T={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:_.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:S.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:S.space("gap"),rowGap:S.space("rowGap"),columnGap:S.space("columnGap")};Object.assign(T,{flexDir:T.flexDirection});var A={gridGap:S.space("gridGap"),gridColumnGap:S.space("gridColumnGap"),gridRowGap:S.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0},P={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:_.outline},outlineOffset:!0,outlineColor:S.colors("outlineColor")},R={width:S.sizesT("width"),inlineSize:S.sizesT("inlineSize"),height:S.sizes("height"),blockSize:S.sizes("blockSize"),boxSize:S.sizes(["width","height"]),minWidth:S.sizes("minWidth"),minInlineSize:S.sizes("minInlineSize"),minHeight:S.sizes("minHeight"),minBlockSize:S.sizes("minBlockSize"),maxWidth:S.sizes("maxWidth"),maxInlineSize:S.sizes("maxInlineSize"),maxHeight:S.sizes("maxHeight"),maxBlockSize:S.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,aspectRatio:!0,hideFrom:{scale:"breakpoints",transform:(e,t)=>{var n,r,i;let o=null!=(i=null==(r=null==(n=t.__breakpoints)?void 0:n.get(e))?void 0:r.minW)?i:e,a=`@media screen and (min-width: ${o})`;return{[a]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{var n,r,i;let o=null!=(i=null==(r=null==(n=t.__breakpoints)?void 0:n.get(e))?void 0:r._minW)?i:e,a=`@media screen and (max-width: ${o})`;return{[a]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:S.propT("float",_.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(R,{w:R.width,h:R.height,minW:R.minWidth,maxW:R.maxWidth,minH:R.minHeight,maxH:R.maxHeight,overscroll:R.overscrollBehavior,overscrollX:R.overscrollBehaviorX,overscrollY:R.overscrollBehaviorY});var M={listStyleType:!0,listStylePosition:!0,listStylePos:S.prop("listStylePosition"),listStyleImage:!0,listStyleImg:S.prop("listStyleImage")},F=(e=>{let t=new WeakMap;return(n,r,i,o)=>{if(void 0===n)return e(n,r,i);t.has(n)||t.set(n,new Map);let a=t.get(n);if(a.has(r))return a.get(r);let s=e(n,r,i,o);return a.set(r,s),s}})(function(e,t,n,r){let i="string"==typeof t?t.split("."):[t];for(r=0;r{let r={},i=F(e,t,{});for(let e in i){let t=e in n&&null!=n[e];t||(r[e]=i[e])}return r},B={position:!0,pos:S.prop("position"),zIndex:S.prop("zIndex","zIndices"),inset:S.spaceT("inset"),insetX:S.spaceT(["left","right"]),insetInline:S.spaceT("insetInline"),insetY:S.spaceT(["top","bottom"]),insetBlock:S.spaceT("insetBlock"),top:S.spaceT("top"),insetBlockStart:S.spaceT("insetBlockStart"),bottom:S.spaceT("bottom"),insetBlockEnd:S.spaceT("insetBlockEnd"),left:S.spaceT("left"),insetInlineStart:S.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:S.spaceT("right"),insetInlineEnd:S.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(B,{insetStart:B.insetInlineStart,insetEnd:B.insetInlineEnd});var z={ring:{transform:_.ring},ringColor:S.colors("--chakra-ring-color"),ringOffset:S.prop("--chakra-ring-offset-width"),ringOffsetColor:S.colors("--chakra-ring-offset-color"),ringInset:S.prop("--chakra-ring-inset")},U={margin:S.spaceT("margin"),marginTop:S.spaceT("marginTop"),marginBlockStart:S.spaceT("marginBlockStart"),marginRight:S.spaceT("marginRight"),marginInlineEnd:S.spaceT("marginInlineEnd"),marginBottom:S.spaceT("marginBottom"),marginBlockEnd:S.spaceT("marginBlockEnd"),marginLeft:S.spaceT("marginLeft"),marginInlineStart:S.spaceT("marginInlineStart"),marginX:S.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:S.spaceT("marginInline"),marginY:S.spaceT(["marginTop","marginBottom"]),marginBlock:S.spaceT("marginBlock"),padding:S.space("padding"),paddingTop:S.space("paddingTop"),paddingBlockStart:S.space("paddingBlockStart"),paddingRight:S.space("paddingRight"),paddingBottom:S.space("paddingBottom"),paddingBlockEnd:S.space("paddingBlockEnd"),paddingLeft:S.space("paddingLeft"),paddingInlineStart:S.space("paddingInlineStart"),paddingInlineEnd:S.space("paddingInlineEnd"),paddingX:S.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:S.space("paddingInline"),paddingY:S.space(["paddingTop","paddingBottom"]),paddingBlock:S.space("paddingBlock")};Object.assign(U,{m:U.margin,mt:U.marginTop,mr:U.marginRight,me:U.marginInlineEnd,marginEnd:U.marginInlineEnd,mb:U.marginBottom,ml:U.marginLeft,ms:U.marginInlineStart,marginStart:U.marginInlineStart,mx:U.marginX,my:U.marginY,p:U.padding,pt:U.paddingTop,py:U.paddingY,px:U.paddingX,pb:U.paddingBottom,pl:U.paddingLeft,ps:U.paddingInlineStart,paddingStart:U.paddingInlineStart,pr:U.paddingRight,pe:U.paddingInlineEnd,paddingEnd:U.paddingInlineEnd});var q={textDecorationColor:S.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:S.shadows("textShadow")},$={clipPath:!0,transform:S.propT("transform",_.transform),transformOrigin:!0,translateX:S.spaceT("--chakra-translate-x"),translateY:S.spaceT("--chakra-translate-y"),skewX:S.degreeT("--chakra-skew-x"),skewY:S.degreeT("--chakra-skew-y"),scaleX:S.prop("--chakra-scale-x"),scaleY:S.prop("--chakra-scale-y"),scale:S.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:S.degreeT("--chakra-rotate")},H={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:S.prop("transitionDuration","transition.duration"),transitionProperty:S.prop("transitionProperty","transition.property"),transitionTimingFunction:S.prop("transitionTimingFunction","transition.easing")},V={fontFamily:S.prop("fontFamily","fonts"),fontSize:S.prop("fontSize","fontSizes",_.px),fontWeight:S.prop("fontWeight","fontWeights"),lineHeight:S.prop("lineHeight","lineHeights"),letterSpacing:S.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,textIndent:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,isTruncated:{transform(e){if(!0===e)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},W={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:S.spaceT("scrollMargin"),scrollMarginTop:S.spaceT("scrollMarginTop"),scrollMarginBottom:S.spaceT("scrollMarginBottom"),scrollMarginLeft:S.spaceT("scrollMarginLeft"),scrollMarginRight:S.spaceT("scrollMarginRight"),scrollMarginX:S.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:S.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:S.spaceT("scrollPadding"),scrollPaddingTop:S.spaceT("scrollPaddingTop"),scrollPaddingBottom:S.spaceT("scrollPaddingBottom"),scrollPaddingLeft:S.spaceT("scrollPaddingLeft"),scrollPaddingRight:S.spaceT("scrollPaddingRight"),scrollPaddingX:S.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:S.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function G(e){return(0,r.Kn)(e)&&e.reference?e.reference:String(e)}var Y=(e,...t)=>t.map(G).join(` ${e} `).replace(/calc/g,""),Z=(...e)=>`calc(${Y("+",...e)})`,K=(...e)=>`calc(${Y("-",...e)})`,J=(...e)=>`calc(${Y("*",...e)})`,X=(...e)=>`calc(${Y("/",...e)})`,Q=e=>{let t=G(e);return null==t||Number.isNaN(parseFloat(t))?J(t,-1):String(t).startsWith("-")?String(t).slice(1):`-${t}`},ee=Object.assign(e=>({add:(...t)=>ee(Z(e,...t)),subtract:(...t)=>ee(K(e,...t)),multiply:(...t)=>ee(J(e,...t)),divide:(...t)=>ee(X(e,...t)),negate:()=>ee(Q(e)),toString:()=>e.toString()}),{add:Z,subtract:K,multiply:J,divide:X,negate:Q});function et(e,t,n){let r=function(e,t=""){return function(e){let t=function(e,t="-"){return e.replace(/\s+/g,t)}(e.toString());return(function(e){if(e.includes("\\."))return e;let t=!Number.isInteger(parseFloat(e.toString()));return t?e.replace(".","\\."):e})(t).replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}(`--${function(e,t=""){return[t,e].filter(Boolean).join("-")}(e,t)}`)}(e,n);return{variable:r,reference:`var(${r}${t?`, ${t}`:""})`}}function en(e,t){let n={};for(let r of t){if(Array.isArray(r)){let[t,i]=r;n[t]=et(`${e}-${t}`,i);continue}n[r]=et(`${e}-${r}`)}return n}function er(e){if(null==e)return e;let{unitless:t}=function(e){let t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}(e);return t||"number"==typeof e?`${e}px`:e}var ei=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,eo=e=>Object.fromEntries(Object.entries(e).sort(ei));function ea(e){let t=eo(e);return Object.assign(Object.values(t),t)}function es(e){var t;return e?"number"==typeof(e=null!=(t=er(e))?t:e)?`${e+-.02}`:e.replace(/(\d+\.?\d*)/u,e=>`${parseFloat(e)+-.02}`):e}function el(e,t){let n=["@media screen"];return e&&n.push("and",`(min-width: ${er(e)})`),t&&n.push("and",`(max-width: ${er(t)})`),n.join(" ")}var eu={hover:(e,t)=>`${e}:hover ${t}, ${e}[data-hover] ${t}`,focus:(e,t)=>`${e}:focus ${t}, ${e}[data-focus] ${t}`,focusVisible:(e,t)=>`${e}:focus-visible ${t}`,focusWithin:(e,t)=>`${e}:focus-within ${t}`,active:(e,t)=>`${e}:active ${t}, ${e}[data-active] ${t}`,disabled:(e,t)=>`${e}:disabled ${t}, ${e}[data-disabled] ${t}`,invalid:(e,t)=>`${e}:invalid ${t}, ${e}[data-invalid] ${t}`,checked:(e,t)=>`${e}:checked ${t}, ${e}[data-checked] ${t}`,placeholderShown:(e,t)=>`${e}:placeholder-shown ${t}`},ec=e=>eh(t=>e(t,"&"),"[role=group]","[data-group]",".group"),ed=e=>eh(t=>e(t,"~ &"),"[data-peer]",".peer"),eh=(e,...t)=>t.map(e).join(", "),ep={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty",_expanded:"&[aria-expanded=true], &[data-expanded]",_checked:"&[aria-checked=true], &[data-checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_firstLetter:"&::first-letter",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate]",_groupHover:ec(eu.hover),_peerHover:ed(eu.hover),_groupFocus:ec(eu.focus),_peerFocus:ed(eu.focus),_groupFocusVisible:ec(eu.focusVisible),_peerFocusVisible:ed(eu.focusVisible),_groupActive:ec(eu.active),_peerActive:ed(eu.active),_groupDisabled:ec(eu.disabled),_peerDisabled:ed(eu.disabled),_groupInvalid:ec(eu.invalid),_peerInvalid:ed(eu.invalid),_groupChecked:ec(eu.checked),_peerChecked:ed(eu.checked),_groupFocusWithin:ec(eu.focusWithin),_peerFocusWithin:ed(eu.focusWithin),_peerPlaceholderShown:ed(eu.placeholderShown),_placeholder:"&::placeholder",_placeholderShown:"&:placeholder-shown",_fullScreen:"&:fullscreen",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]",_horizontal:"&[data-orientation=horizontal]",_vertical:"&[data-orientation=vertical]"},ef=Object.keys(ep);function em(e,t){return et(String(e).replace(/\./g,"-"),void 0,t)}function eg(e,t,n={}){let{stop:r,getKey:i}=n;return function e(n,o=[]){var a;if("object"==typeof n&&null!=n&&!Array.isArray(n)||Array.isArray(n)){let s={};for(let[l,u]of Object.entries(n)){let c=null!=(a=null==i?void 0:i(l))?a:l,d=[...o,c];if(null==r?void 0:r(n,d))return t(n,o);s[c]=e(u,d)}return s}return t(n,o)}(e)}var ev=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"],ey=e=>ef.includes(e)||"default"===e;function eb(e){var t;let n=function(e){let{__cssMap:t,__cssVars:n,__breakpoints:r,...i}=e;return i}(e),o=function(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}(n,ev),a=n.semanticTokens,s=function({tokens:e,semanticTokens:t}){let n={};return eg(e,(e,t)=>{null!=e&&(n[t.join(".")]={isSemantic:!1,value:e})}),eg(t,(e,t)=>{null!=e&&(n[t.join(".")]={isSemantic:!0,value:e})},{stop:e=>Object.keys(e).every(ey)}),n}({tokens:o,semanticTokens:a}),l=null==(t=n.config)?void 0:t.cssVarPrefix,{cssMap:u,cssVars:c}=function(e,t){let n={},o={};for(let[a,s]of Object.entries(e)){let{isSemantic:l,value:u}=s,{variable:c,reference:d}=em(a,null==t?void 0:t.cssVarPrefix);if(!l){if(a.startsWith("space")){let e=a.split("."),[t,...n]=e,r=`${t}.-${n.join(".")}`,i=ee.negate(u),s=ee.negate(d);o[r]={value:i,var:c,varRef:s}}n[c]=u,o[a]={value:u,var:c,varRef:d};continue}let h=n=>{let r=String(a).split(".")[0],i=[r,n].join("."),o=e[i];if(!o)return n;let{reference:s}=em(i,null==t?void 0:t.cssVarPrefix);return s},p=(0,r.Kn)(u)?u:{default:u};n=i(n,Object.entries(p).reduce((e,[t,n])=>{var r;if(!n)return e;let i=h(`${n}`);if("default"===t)return e[c]=i,e;let o=null!=(r=null==ep?void 0:ep[t])?r:t;return e[o]={[c]:i},e},{})),o[a]={value:d,var:c,varRef:d}}return{cssVars:n,cssMap:o}}(s,{cssVarPrefix:l});return Object.assign(n,{__cssVars:{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0",...c},__cssMap:u,__breakpoints:function(e){var t;if(!e)return null;e.base=null!=(t=e.base)?t:"0px";let n=ea(e),i=Object.entries(e).sort(ei).map(([e,t],n,r)=>{var i;let[,o]=null!=(i=r[n+1])?i:[];return o=parseFloat(o)>0?es(o):void 0,{_minW:es(t),breakpoint:e,minW:t,maxW:o,maxWQuery:el(null,o),minWQuery:el(t),minMaxQuery:el(t,o)}}),o=function(e){let t=Object.keys(eo(e));return new Set(t)}(e),a=Array.from(o.values());return{keys:o,normalized:n,isResponsive(e){let t=Object.keys(e);return t.length>0&&t.every(e=>o.has(e))},asObject:eo(e),asArray:ea(e),details:i,get:e=>i.find(t=>t.breakpoint===e),media:[null,...n.map(e=>el(e)).slice(1)],toArrayValue(e){if(!(0,r.Kn)(e))throw Error("toArrayValue: value must be an object");let t=a.map(t=>{var n;return null!=(n=e[t])?n:null});for(;null===function(e){let t=null==e?0:e.length;return t?e[t-1]:void 0}(t);)t.pop();return t},toObjectValue(e){if(!Array.isArray(e))throw Error("toObjectValue: value must be an array");return e.reduce((e,t,n)=>{let r=a[n];return null!=r&&null!=t&&(e[r]=t),e},{})}}}(n.breakpoints)}),n}var ek=i({},E,D,C,T,R,O,z,P,A,{srOnly:{transform:e=>!0===e?N:"focusable"===e?I:{}},layerStyle:{processResult:!0,transform:(e,t,n)=>L(t,`layerStyles.${e}`,n)},textStyle:{processResult:!0,transform:(e,t,n)=>L(t,`textStyles.${e}`,n)},apply:{processResult:!0,transform:(e,t,n)=>L(t,e,n)}},B,j,U,W,V,q,$,M,H),ew=Object.keys(Object.assign({},U,R,T,A,B)),ex=[...Object.keys(ek),...ef],e_={...ek,...ep},eS=e=>e in e_,eE=e=>t=>{if(!t.__breakpoints)return e;let{isResponsive:n,toArrayValue:i,media:o}=t.__breakpoints,a={};for(let s in e){let l=(0,r.Pu)(e[s],t);if(null==l)continue;if(!Array.isArray(l=(0,r.Kn)(l)&&n(l)?i(l):l)){a[s]=l;continue}let u=l.slice(0,o.length).length;for(let e=0;ee.startsWith("--")&&"string"==typeof t&&!/^var\(--.+\)$/.test(t),eC=(e,t)=>{var n,r;if(null==t)return t;let i=t=>{var n,r;return null==(r=null==(n=e.__cssMap)?void 0:n[t])?void 0:r.varRef},o=e=>{var t;return null!=(t=i(e))?t:e},[a,s]=function(e){let t=[],n="",r=!1;for(let i=0;it=>{let n=function(e){let{configs:t={},pseudos:n={},theme:o}=e,a=(e,s=!1)=>{var l,u,c;let d=(0,r.Pu)(e,o),h=eE(d)(o),p={};for(let e in h){let f=h[e],m=(0,r.Pu)(f,o);e in n&&(e=n[e]),eD(e,m)&&(m=eC(o,m));let g=t[e];if(!0===g&&(g={property:e}),(0,r.Kn)(m)){p[e]=null!=(l=p[e])?l:{},p[e]=i({},p[e],a(m,!0));continue}let v=null!=(c=null==(u=null==g?void 0:g.transform)?void 0:u.call(g,m,o,d))?c:m;v=(null==g?void 0:g.processResult)?a(v,!0):v;let y=(0,r.Pu)(null==g?void 0:g.property,o);if(!s&&(null==g?void 0:g.static)){let e=(0,r.Pu)(g.static,o);p=i({},p,e)}if(y&&Array.isArray(y)){for(let e of y)p[e]=v;continue}if(y){"&"===y&&(0,r.Kn)(v)?p=i({},p,v):p[y]=v;continue}if((0,r.Kn)(v)){p=i({},p,v);continue}p[e]=v}return p};return a}({theme:t,pseudos:ep,configs:ek});return n(e)};function eO(e){return e}function eT(e){return e}function eA(e){return{definePartsStyle:e=>e,defineMultiStyleConfig:t=>({parts:e,...t})}}function eP(e){return t=>{var n;let{variant:o,size:a,theme:s}=t,l=function(e){let t=e.__breakpoints;return function(e,n,o,a){var s,l,u;if(!t)return;let c={},d=(u=t.toArrayValue,Array.isArray(o)?o:(0,r.Kn)(o)?u(o):null!=o?[o]:void 0);if(!d)return c;let h=d.length,p=1===h,f=!!e.parts;for(let o=0;o{i(c,{[e]:p?g[e]:{[m]:g[e]}})});continue}if(!f){p?i(c,g):c[m]=g;continue}c[m]=g}}return c}}(s);return i({},(0,r.Pu)(null!=(n=e.baseStyle)?n:{},t),l(e,"sizes",a,t),l(e,"variants",o,t))}}function eR(e){return function(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}(e,["styleConfig","size","variant","colorScheme"])}},41098:function(e,t,n){"use strict";n.d(t,{r:function(){return d}});var r=n(28448),i=n(31053),o=n(68023),a=n(91982),s=n(84586),l=n(59576),u=n(2784),c=n(52322),d=(0,o.G)(function(e,t){let n=(0,a.jC)("Switch",e),{spacing:o="0.5rem",children:d,...h}=(0,s.Lr)(e),{getIndicatorProps:p,getInputProps:f,getCheckboxProps:m,getRootProps:g,getLabelProps:v}=(0,r.O)(h),y=(0,u.useMemo)(()=>({display:"inline-block",position:"relative",verticalAlign:"middle",lineHeight:0,...n.container}),[n.container]),b=(0,u.useMemo)(()=>({display:"inline-flex",flexShrink:0,justifyContent:"flex-start",boxSizing:"content-box",cursor:"pointer",...n.track}),[n.track]),k=(0,u.useMemo)(()=>({userSelect:"none",marginStart:o,...n.label}),[o,n.label]);return(0,c.jsxs)(l.m.label,{...g(),className:(0,i.cx)("chakra-switch",e.className),__css:y,children:[(0,c.jsx)("input",{className:"chakra-switch__input",...f({},t)}),(0,c.jsx)(l.m.span,{...m(),className:"chakra-switch__track",__css:b,children:(0,c.jsx)(l.m.span,{__css:n.thumb,className:"chakra-switch__thumb",...p()})}),d&&(0,c.jsx)(l.m.span,{className:"chakra-switch__label",...v(),__css:k,children:d})]})});d.displayName="Switch"},48929:function(e,t,n){"use strict";n.d(t,{LP:function(){return s},dQ:function(){return a},uP:function(){return o}});var r=n(91148),i=n(50019);function o(){let e=(0,i.If)(),t=(0,r.F)();return{...e,theme:t}}function a(e,t,n){let i=(0,r.F)();return s(e,t,n)(i)}function s(e,t,n){let r=Array.isArray(t)?t:[t],i=Array.isArray(n)?n:[n];return n=>{let o=i.filter(Boolean),a=r.map((t,r)=>{var i,a;if("breakpoints"===e)return function(e,t,n){var r,i;if(null==t)return t;let o=t=>{var n,r;return null==(r=null==(n=e.__breakpoints)?void 0:n.asArray)?void 0:r[t]};return null!=(i=null!=(r=o(t))?r:o(n))?i:n}(n,t,null!=(i=o[r])?i:t);let s=`${e}.${t}`;return function(e,t,n){var r,i;if(null==t)return t;let o=t=>{var n,r;return null==(r=null==(n=e.__cssMap)?void 0:n[t])?void 0:r.value};return null!=(i=null!=(r=o(t))?r:o(n))?i:n}(n,s,null!=(a=o[r])?a:t)});return Array.isArray(t)?a:a[0]}}},91982:function(e,t,n){"use strict";n.d(t,{jC:function(){return d},mq:function(){return c}});var r=n(48929),i=n(84586),o=n(82115),a=n(63637),s=n(2784),l=n(17743);function u(e,t={}){var n;let{styleConfig:u,...c}=t,{theme:d,colorMode:h}=(0,r.uP)(),p=e?(0,o.Wf)(d,`components.${e}`):void 0,f=u||p,m=a({theme:d,colorMode:h},null!=(n=null==f?void 0:f.defaultProps)?n:{},(0,o.YU)((0,o.CE)(c,["children"]))),g=(0,s.useRef)({});if(f){let e=(0,i.Ud)(f),t=e(m),n=l(g.current,t);n||(g.current=t)}return g.current}function c(e,t={}){return u(e,t)}function d(e,t={}){return u(e,t)}},8989:function(e,t,n){"use strict";n.d(t,{x:function(){return a}});var r=n(84586),i=new Set([...r.cC,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),o=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function a(e){return o.has(e)||!i.has(e)}},15706:function(e,t,n){"use strict";n.d(t,{ZL:function(){return g},f6:function(){return h}});var r=n(50019),i=n(81821),o=n(84586),a=n(82115),s=n(79729),l=n(94281),u=n(28165),c=n(2784),d=n(52322);function h(e){let{cssVarsRoot:t,theme:n,children:r}=e,i=(0,c.useMemo)(()=>(0,o.c0)(n),[n]);return(0,d.jsxs)(l.a,{theme:i,children:[(0,d.jsx)(p,{root:t}),r]})}function p({root:e=":host, :root"}){let t=[e,"[data-theme]"].join(",");return(0,d.jsx)(u.xB,{styles:e=>({[t]:e.__cssVars})})}var[f,m]=(0,i.k)({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "});function g(){let{colorMode:e}=(0,r.If)();return(0,d.jsx)(u.xB,{styles:t=>{let n=(0,a.Wf)(t,"styles.global"),r=(0,s.Pu)(n,{theme:t,colorMode:e});if(!r)return;let i=(0,o.iv)(r)(t);return i}})}},91148:function(e,t,n){"use strict";n.d(t,{F:function(){return o}});var r=n(94281),i=n(2784);function o(){let e=(0,i.useContext)(r.T);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `` or ``");return e}},59576:function(e,t,n){"use strict";n.d(t,{m:function(){return I}});var r,i,o=n(8989),a=n(50019),s=n(84586),l=n(82115),u=n(79729),c=n(2784);function d(){return(d=Object.assign?Object.assign.bind():function(e){for(var t=1;te.charCodeAt(2)}),m=n(94281),g=n(82792),v=n(79003),y=n(69409),b=/[A-Z]|^ms/g,k=/_EMO_([^_]+?)_([^]*?)_EMO_/g,w=function(e){return 45===e.charCodeAt(1)},x=function(e){return null!=e&&"boolean"!=typeof e},_=(0,h.Z)(function(e){return w(e)?e:e.replace(b,"-$&").toLowerCase()}),S=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(k,function(e,t,n){return r={name:t,styles:n,next:r},t})}return 1===y.Z[e]||w(e)||"number"!=typeof t||0===t?t:t+"px"};function E(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return r={name:n.name,styles:n.styles,next:r},n.name;if(void 0!==n.styles){var i=n.next;if(void 0!==i)for(;void 0!==i;)r={name:i.name,styles:i.styles,next:r},i=i.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i96?f:O},A=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},P=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return(0,g.hC)(t,n,r),(0,j.L)(function(){return(0,g.My)(t,n,r)}),null},R=(function e(t,n){var r,i,o=t.__emotion_real===t,a=o&&t.__emotion_base||t;void 0!==n&&(r=n.label,i=n.target);var s=A(t,n,o),l=s||T(a),u=!l("as");return function(){var h=arguments,p=o&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&p.push("label:"+r+";"),null==h[0]||void 0===h[0].raw)p.push.apply(p,h);else{p.push(h[0][0]);for(var f=h.length,v=1;vt=>{let{theme:n,css:r,__css:i,sx:o,...a}=t,c=(0,l.lw)(a,(e,t)=>(0,s.ZR)(t)),d=(0,u.Pu)(e,t),h=function(e,...t){if(null==e)throw TypeError("Cannot convert undefined or null to object");let n={...e};for(let e of t)if(null!=e)for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(t in n&&delete n[t],n[t]=e[t]);return n}({},i,d,(0,l.YU)(c),o),p=(0,s.iv)(h)(t.theme);return r?[p,r]:p};function N(e,t){let{baseStyle:n,...r}=null!=t?t:{};r.shouldForwardProp||(r.shouldForwardProp=o.x);let i=F({baseStyle:n}),s=M(e,r)(i),l=c.forwardRef(function(e,t){let{colorMode:n,forced:r}=(0,a.If)();return c.createElement(s,{ref:t,"data-theme":r?n:void 0,...e})});return l}var I=function(){let e=new Map;return new Proxy(N,{apply:(e,t,n)=>N(...n),get:(t,n)=>(e.has(n)||e.set(n,N(n)),e.get(n))})}()},68023:function(e,t,n){"use strict";n.d(t,{G:function(){return i}});var r=n(2784);function i(e){return(0,r.forwardRef)(e)}},70189:function(e,t,n){"use strict";n.d(t,{i:function(){return h},p:function(){return d}});var r=n(68023),i=n(91982),o=n(84586),a=n(59576),s=n(31053),l=n(9165),u=n(52322),[c,d]=(0,l.k)({name:"TableStylesContext",errorMessage:"useTableStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),h=(0,r.G)((e,t)=>{let n=(0,i.jC)("Table",e),{className:r,layout:l,...d}=(0,o.Lr)(e);return(0,u.jsx)(c,{value:n,children:(0,u.jsx)(a.m.table,{ref:t,__css:{tableLayout:l,...n.table},className:(0,s.cx)("chakra-table",r),...d})})});h.displayName="Table"},80774:function(e,t,n){"use strict";n.d(t,{Tr:function(){return s}});var r=n(70189),i=n(68023),o=n(59576),a=n(52322),s=(0,i.G)((e,t)=>{let n=(0,r.p)();return(0,a.jsx)(o.m.tr,{...e,ref:t,__css:n.tr})})},66983:function(e,t,n){"use strict";n.d(t,{p:function(){return s}});var r=n(70189),i=n(68023),o=n(59576),a=n(52322),s=(0,i.G)((e,t)=>{let n=(0,r.p)();return(0,a.jsx)(o.m.tbody,{...e,ref:t,__css:n.tbody})})},14093:function(e,t,n){"use strict";n.d(t,{x:function(){return s}});var r=n(68023),i=n(59576),o=n(31053),a=n(52322),s=(0,r.G)((e,t)=>{var n;let{overflow:r,overflowX:s,className:l,...u}=e;return(0,a.jsx)(i.m.div,{ref:t,className:(0,o.cx)("chakra-table__container",l),...u,__css:{display:"block",whiteSpace:"nowrap",WebkitOverflowScrolling:"touch",overflowX:null!=(n=null!=r?r:s)?n:"auto",overflowY:"hidden",maxWidth:"100%"}})})},79443:function(e,t,n){"use strict";n.d(t,{Td:function(){return s}});var r=n(70189),i=n(68023),o=n(59576),a=n(52322),s=(0,i.G)(({isNumeric:e,...t},n)=>{let i=(0,r.p)();return(0,a.jsx)(o.m.td,{...t,ref:n,__css:i.td,"data-is-numeric":e})})},3181:function(e,t,n){"use strict";n.d(t,{n:function(){return u}});var r=n(36371),i=n(35286),o=n(31053),a=n(68023),s=n(59576),l=n(52322),u=(0,a.G)(function(e,t){let n=(0,i.bt)(e),a=(0,r.s)();return(0,l.jsx)(s.m.div,{...n,width:"100%",ref:t,className:(0,o.cx)("chakra-tabs__tab-panels",e.className),__css:a.tabpanels})});u.displayName="TabPanels"},73582:function(e,t,n){"use strict";n.d(t,{t:function(){return u}});var r=n(36371),i=n(35286),o=n(31053),a=n(68023),s=n(59576),l=n(52322),u=(0,a.G)(function(e,t){let n=(0,i.hp)({...e,ref:t}),a=(0,r.s)(),u={display:"flex",...a.tablist};return(0,l.jsx)(s.m.div,{...n,className:(0,o.cx)("chakra-tabs__tablist",e.className),__css:u})});u.displayName="TabList"},36371:function(e,t,n){"use strict";n.d(t,{m:function(){return f},s:function(){return p}});var r=n(35286),i=n(9165),o=n(68023),a=n(91982),s=n(84586),l=n(59576),u=n(31053),c=n(2784),d=n(52322),[h,p]=(0,i.k)({name:"TabsStylesContext",errorMessage:"useTabsStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),f=(0,o.G)(function(e,t){let n=(0,a.jC)("Tabs",e),{children:i,className:o,...p}=(0,s.Lr)(e),{htmlProps:f,descendants:m,...g}=(0,r.YE)(p),v=(0,c.useMemo)(()=>g,[g]),{isFitted:y,...b}=f,k={position:"relative",...n.root};return(0,d.jsx)(r.mE,{value:m,children:(0,d.jsx)(r.X,{value:v,children:(0,d.jsx)(h,{value:n,children:(0,d.jsx)(l.m.div,{className:(0,u.cx)("chakra-tabs",o),ref:t,...b,__css:k,children:i})})})})});f.displayName="Tabs"},2969:function(e,t,n){"use strict";n.d(t,{O:function(){return u}});var r=n(36371),i=n(35286),o=n(31053),a=n(68023),s=n(59576),l=n(52322),u=(0,a.G)(function(e,t){let n=(0,r.s)(),a=(0,i.xD)({...e,ref:t}),u={outline:"0",display:"flex",alignItems:"center",justifyContent:"center",...n.tab};return(0,l.jsx)(s.m.button,{...a,className:(0,o.cx)("chakra-tabs__tab",e.className),__css:u})});u.displayName="Tab"},13272:function(e,t,n){"use strict";n.d(t,{x:function(){return u}});var r=n(36371),i=n(35286),o=n(31053),a=n(68023),s=n(59576),l=n(52322),u=(0,a.G)(function(e,t){let n=(0,i.WE)({...e,ref:t}),a=(0,r.s)();return(0,l.jsx)(s.m.div,{outline:"0",...n,className:(0,o.cx)("chakra-tabs__tab-panel",e.className),__css:a.tabpanel})});u.displayName="TabPanel"},35286:function(e,t,n){"use strict";n.d(t,{WE:function(){return S},X:function(){return v},YE:function(){return g},bt:function(){return _},hp:function(){return b},mE:function(){return h},xD:function(){return k}});var r=n(30350),i=n(81550),o=n(9165),a=n(59572),s=n(25578),l=n(85244),u=n(4028),c=n(31053),d=n(2784),[h,p,f,m]=(0,i.n)();function g(e){var t;let{defaultIndex:n,onChange:r,index:i,isManual:o,isLazy:s,lazyBehavior:l="unmount",orientation:u="horizontal",direction:c="ltr",...h}=e,[p,m]=(0,d.useState)(null!=n?n:0),[g,v]=(0,a.T)({defaultValue:null!=n?n:0,value:i,onChange:r});(0,d.useEffect)(()=>{null!=i&&m(i)},[i]);let y=f(),b=(0,d.useId)(),k=null!=(t=e.id)?t:b,w=`tabs-${k}`;return{id:w,selectedIndex:g,focusedIndex:p,setSelectedIndex:v,setFocusedIndex:m,isManual:o,isLazy:s,lazyBehavior:l,orientation:u,descendants:y,direction:c,htmlProps:h}}var[v,y]=(0,o.k)({name:"TabsContext",errorMessage:"useTabsContext: `context` is undefined. Seems you forgot to wrap all tabs components within "});function b(e){let{focusedIndex:t,orientation:n,direction:r}=y(),i=p(),o=(0,d.useCallback)(e=>{let o=()=>{var e;let n=i.nextEnabled(t);n&&(null==(e=n.node)||e.focus())},a=()=>{var e;let n=i.prevEnabled(t);n&&(null==(e=n.node)||e.focus())},s="horizontal"===n,l="vertical"===n,u=e.key,c="ltr"===r?"ArrowLeft":"ArrowRight",d="ltr"===r?"ArrowRight":"ArrowLeft",h={[c]:()=>s&&a(),[d]:()=>s&&o(),ArrowDown:()=>l&&o(),ArrowUp:()=>l&&a(),Home:()=>{var e;let t=i.firstEnabled();t&&(null==(e=t.node)||e.focus())},End:()=>{var e;let t=i.lastEnabled();t&&(null==(e=t.node)||e.focus())}}[u];h&&(e.preventDefault(),h(e))},[i,t,n,r]);return{...e,role:"tablist","aria-orientation":n,onKeyDown:(0,c.v0)(e.onKeyDown,o)}}function k(e){let{isDisabled:t=!1,isFocusable:n=!1,...i}=e,{setSelectedIndex:o,isManual:a,id:s,setFocusedIndex:u,selectedIndex:d}=y(),{index:h,register:p}=m({disabled:t&&!n}),f=h===d,g=(0,r.h)({...i,ref:(0,l.lq)(p,e.ref),isDisabled:t,isFocusable:n,onClick:(0,c.v0)(e.onClick,()=>{o(h)})});return{...g,id:E(s,h),role:"tab",tabIndex:f?0:-1,type:"button","aria-selected":f,"aria-controls":D(s,h),onFocus:t?void 0:(0,c.v0)(e.onFocus,()=>{u(h);let e=t&&n;a||e||o(h)})}}var[w,x]=(0,o.k)({});function _(e){let t=y(),{id:n,selectedIndex:r}=t,i=(0,s.W)(e.children),o=i.map((e,t)=>(0,d.createElement)(w,{key:t,value:{isSelected:t===r,id:D(n,t),tabId:E(n,t),selectedIndex:r}},e));return{...e,children:o}}function S(e){let{children:t,...n}=e,{isLazy:r,lazyBehavior:i}=y(),{isSelected:o,id:a,tabId:s}=x(),l=(0,d.useRef)(!1);o&&(l.current=!0);let c=(0,u.k)({wasSelected:l.current,isSelected:o,enabled:r,mode:i});return{tabIndex:0,...n,children:c?t:null,role:"tabpanel","aria-labelledby":s,hidden:!o,id:a}}function E(e,t){return`${e}--tab-${t}`}function D(e,t){return`${e}--tabpanel-${t}`}},16556:function(e,t,n){"use strict";n.d(t,{AD:function(){return f},Sn:function(){return p},Vp:function(){return h}});var r=n(62929),i=n(9165),o=n(68023),a=n(91982),s=n(84586),l=n(59576),u=n(52322),[c,d]=(0,i.k)({name:"TagStylesContext",errorMessage:"useTagStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),h=(0,o.G)((e,t)=>{let n=(0,a.jC)("Tag",e),r=(0,s.Lr)(e),i={display:"inline-flex",verticalAlign:"top",alignItems:"center",maxWidth:"100%",...n.container};return(0,u.jsx)(c,{value:n,children:(0,u.jsx)(l.m.span,{ref:t,...r,__css:i})})});h.displayName="Tag";var p=(0,o.G)((e,t)=>{let n=d();return(0,u.jsx)(l.m.span,{ref:t,noOfLines:1,...e,__css:n.label})});p.displayName="TagLabel";var f=(0,o.G)((e,t)=>(0,u.jsx)(r.J,{ref:t,verticalAlign:"top",marginEnd:"0.5rem",...e}));f.displayName="TagLeftIcon",(0,o.G)((e,t)=>(0,u.jsx)(r.J,{ref:t,verticalAlign:"top",marginStart:"0.5rem",...e})).displayName="TagRightIcon";var m=e=>(0,u.jsx)(r.J,{verticalAlign:"inherit",viewBox:"0 0 512 512",...e,children:(0,u.jsx)("path",{fill:"currentColor",d:"M289.94 256l95-95A24 24 0 00351 127l-95 95-95-95a24 24 0 00-34 34l95 95-95 95a24 24 0 1034 34l95-95 95 95a24 24 0 0034-34z"})});m.displayName="TagCloseIcon",(0,o.G)((e,t)=>{let{isDisabled:n,children:r,...i}=e,o=d(),a={display:"flex",alignItems:"center",justifyContent:"center",outline:"0",...o.closeButton};return(0,u.jsx)(l.m.button,{ref:t,"aria-label":"close",...i,type:"button",disabled:n,__css:a,children:r||(0,u.jsx)(m,{})})}).displayName="TagCloseButton"},29494:function(e,t,n){"use strict";n.d(t,{g:function(){return d}});var r=n(76874),i=n(68023),o=n(91982),a=n(84586),s=n(59576),l=n(31053),u=n(52322),c=["h","minH","height","minHeight"],d=(0,i.G)((e,t)=>{let n=(0,o.mq)("Textarea",e),{className:i,rows:d,...h}=(0,a.Lr)(e),p=(0,r.Y)(h),f=d?function(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}(n,c):n;return(0,u.jsx)(s.m.textarea,{ref:t,rows:d,...p,className:(0,l.cx)("chakra-textarea",i),__css:f})});d.displayName="Textarea"},39279:function(e,t,n){"use strict";function r(e,t){return n=>"dark"===n.colorMode?t:e}function i(e){let{orientation:t,vertical:n,horizontal:r}=e;return t?"vertical"===t?n:r:{}}n.d(t,{f:function(){return i},x:function(){return r}})},10868:function(e,t,n){"use strict";n.d(t,{n:function(){return o}});var r=n(62202),i=n(31053);function o({variant:e,components:t}){return n=>{let o=Object.keys(n.components||{});return Array.isArray(t)?o=t:(0,i.Kn)(t)&&(o=Object.keys(t)),(0,r.Pv)(n,{components:Object.fromEntries(o.map(t=>[t,{defaultProps:{variant:e}}]))})}}},15193:function(e,t,n){"use strict";n.d(t,{A:function(){return o}});var r=n(62202),i=n(31053);function o({colorScheme:e,components:t}){return n=>{let o=Object.keys(n.components||{});return Array.isArray(t)?o=t:(0,i.Kn)(t)&&(o=Object.keys(t)),(0,r.Pv)(n,{components:Object.fromEntries(o.map(t=>[t,{defaultProps:{colorScheme:e}}]))})}}},62202:function(e,t,n){"use strict";n.d(t,{B1:function(){return u},Pv:function(){return c}});var r=n(31053),i=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"],o=n(48696),a=n(63637);function s(e){return"function"==typeof e}var l=e=>function(...t){var n;let o=[...t],a=t[t.length-1];return(n=a,(0,r.Kn)(n)&&i.every(e=>Object.prototype.hasOwnProperty.call(n,e))&&o.length>1)?o=o.slice(0,o.length-1):a=e,(function(...e){return t=>e.reduce((e,t)=>t(e),t)})(...o.map(e=>t=>s(e)?e(t):c(t,e)))(a)},u=l(o.rS);function c(...e){return a({},...e,d)}function d(e,t,n,r){if((s(e)||s(t))&&Object.prototype.hasOwnProperty.call(r,n))return(...n)=>{let r=s(e)?e(...n):e,i=s(t)?t(...n):t;return a({},r,i,d)}}l(o.wE)},48696:function(e,t,n){"use strict";n.d(t,{wE:function(){return i0},rS:function(){return iQ}});var r,i,o,a,s,l,u,c,d,h,p,f,m,g,v,y,b,k,w,x,_,S,E,D={letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeights:{normal:"normal",none:1,shorter:1.25,short:1.375,base:1.5,tall:1.625,taller:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},fonts:{heading:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',body:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',mono:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'},fontSizes:{"3xs":"0.45rem","2xs":"0.625rem",xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"}},C={px:"1px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},j={...C,max:"max-content",min:"min-content",full:"100%","3xs":"14rem","2xs":"16rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem","8xl":"90rem",prose:"60ch",container:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px"}},O={breakpoints:{base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},zIndices:{hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800},radii:{none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},blur:{none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},colors:{transparent:"transparent",current:"currentColor",black:"#000000",white:"#FFFFFF",whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"},blackAlpha:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.06)",200:"rgba(0, 0, 0, 0.08)",300:"rgba(0, 0, 0, 0.16)",400:"rgba(0, 0, 0, 0.24)",500:"rgba(0, 0, 0, 0.36)",600:"rgba(0, 0, 0, 0.48)",700:"rgba(0, 0, 0, 0.64)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.92)"},gray:{50:"#F7FAFC",100:"#EDF2F7",200:"#E2E8F0",300:"#CBD5E0",400:"#A0AEC0",500:"#718096",600:"#4A5568",700:"#2D3748",800:"#1A202C",900:"#171923"},red:{50:"#FFF5F5",100:"#FED7D7",200:"#FEB2B2",300:"#FC8181",400:"#F56565",500:"#E53E3E",600:"#C53030",700:"#9B2C2C",800:"#822727",900:"#63171B"},orange:{50:"#FFFAF0",100:"#FEEBC8",200:"#FBD38D",300:"#F6AD55",400:"#ED8936",500:"#DD6B20",600:"#C05621",700:"#9C4221",800:"#7B341E",900:"#652B19"},yellow:{50:"#FFFFF0",100:"#FEFCBF",200:"#FAF089",300:"#F6E05E",400:"#ECC94B",500:"#D69E2E",600:"#B7791F",700:"#975A16",800:"#744210",900:"#5F370E"},green:{50:"#F0FFF4",100:"#C6F6D5",200:"#9AE6B4",300:"#68D391",400:"#48BB78",500:"#38A169",600:"#2F855A",700:"#276749",800:"#22543D",900:"#1C4532"},teal:{50:"#E6FFFA",100:"#B2F5EA",200:"#81E6D9",300:"#4FD1C5",400:"#38B2AC",500:"#319795",600:"#2C7A7B",700:"#285E61",800:"#234E52",900:"#1D4044"},blue:{50:"#ebf8ff",100:"#bee3f8",200:"#90cdf4",300:"#63b3ed",400:"#4299e1",500:"#3182ce",600:"#2b6cb0",700:"#2c5282",800:"#2a4365",900:"#1A365D"},cyan:{50:"#EDFDFD",100:"#C4F1F9",200:"#9DECF9",300:"#76E4F7",400:"#0BC5EA",500:"#00B5D8",600:"#00A3C4",700:"#0987A0",800:"#086F83",900:"#065666"},purple:{50:"#FAF5FF",100:"#E9D8FD",200:"#D6BCFA",300:"#B794F4",400:"#9F7AEA",500:"#805AD5",600:"#6B46C1",700:"#553C9A",800:"#44337A",900:"#322659"},pink:{50:"#FFF5F7",100:"#FED7E2",200:"#FBB6CE",300:"#F687B3",400:"#ED64A6",500:"#D53F8C",600:"#B83280",700:"#97266D",800:"#702459",900:"#521B41"},linkedin:{50:"#E8F4F9",100:"#CFEDFB",200:"#9BDAF3",300:"#68C7EC",400:"#34B3E4",500:"#00A0DC",600:"#008CC9",700:"#0077B5",800:"#005E93",900:"#004471"},facebook:{50:"#E8F4F9",100:"#D9DEE9",200:"#B7C2DA",300:"#6482C0",400:"#4267B2",500:"#385898",600:"#314E89",700:"#29487D",800:"#223B67",900:"#1E355B"},messenger:{50:"#D0E6FF",100:"#B9DAFF",200:"#A2CDFF",300:"#7AB8FF",400:"#2E90FF",500:"#0078FF",600:"#0063D1",700:"#0052AC",800:"#003C7E",900:"#002C5C"},whatsapp:{50:"#dffeec",100:"#b9f5d0",200:"#90edb3",300:"#65e495",400:"#3cdd78",500:"#22c35e",600:"#179848",700:"#0c6c33",800:"#01421c",900:"#001803"},twitter:{50:"#E5F4FD",100:"#C8E9FB",200:"#A8DCFA",300:"#83CDF7",400:"#57BBF5",500:"#1DA1F2",600:"#1A94DA",700:"#1681BF",800:"#136B9E",900:"#0D4D71"},telegram:{50:"#E3F2F9",100:"#C5E4F3",200:"#A2D4EC",300:"#7AC1E4",400:"#47A9DA",500:"#0088CC",600:"#007AB8",700:"#006BA1",800:"#005885",900:"#003F5E"}},...D,sizes:j,shadows:{xs:"0 0 0 1px rgba(0, 0, 0, 0.05)",sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",base:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",outline:"0 0 0 3px rgba(66, 153, 225, 0.6)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",none:"none","dark-lg":"rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px"},space:C,borders:{none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},transition:{property:{common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",colors:"background-color, border-color, color, fill, stroke",dimensions:"width, height",position:"left, right, top, bottom",background:"background-color, background-image, background-position"},easing:{"ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},duration:{"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"}}},T=n(84586),{defineMultiStyleConfig:A,definePartsStyle:P}=(0,T.D)(["stepper","step","title","description","indicator","separator","icon","number"]),R=(0,T.gJ)("stepper-indicator-size"),M=(0,T.gJ)("stepper-icon-size"),F=(0,T.gJ)("stepper-title-font-size"),N=(0,T.gJ)("stepper-description-font-size"),I=(0,T.gJ)("stepper-accent-color"),L=A({baseStyle:P(({colorScheme:e})=>({stepper:{display:"flex",justifyContent:"space-between",gap:"4","&[data-orientation=vertical]":{flexDirection:"column",alignItems:"flex-start"},"&[data-orientation=horizontal]":{flexDirection:"row",alignItems:"center"},[I.variable]:`colors.${e}.500`,_dark:{[I.variable]:`colors.${e}.200`}},title:{fontSize:F.reference,fontWeight:"medium"},description:{fontSize:N.reference,color:"chakra-subtle-text"},number:{fontSize:F.reference},step:{flexShrink:0,position:"relative",display:"flex",gap:"2","&[data-orientation=horizontal]":{alignItems:"center"},flex:"1","&:last-of-type:not([data-stretch])":{flex:"initial"}},icon:{flexShrink:0,width:M.reference,height:M.reference},indicator:{flexShrink:0,borderRadius:"full",width:R.reference,height:R.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:I.reference},"&[data-status=complete]":{bg:I.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:I.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${R.reference} - 8px)`,top:`calc(${R.reference} + 4px)`,insetStart:`calc(${R.reference} / 2 - 1px)`}}})),sizes:{xs:P({stepper:{[R.variable]:"sizes.4",[M.variable]:"sizes.3",[F.variable]:"fontSizes.xs",[N.variable]:"fontSizes.xs"}}),sm:P({stepper:{[R.variable]:"sizes.6",[M.variable]:"sizes.4",[F.variable]:"fontSizes.sm",[N.variable]:"fontSizes.xs"}}),md:P({stepper:{[R.variable]:"sizes.8",[M.variable]:"sizes.5",[F.variable]:"fontSizes.md",[N.variable]:"fontSizes.sm"}}),lg:P({stepper:{[R.variable]:"sizes.10",[M.variable]:"sizes.6",[F.variable]:"fontSizes.lg",[N.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}});function B(e,t={}){let n=!1;function r(t){let n=["container","root"].includes(null!=t?t:"")?[e]:[e,t],r=n.filter(Boolean).join("__"),i=`chakra-${r}`,o={className:i,selector:`.${i}`,toString:()=>t};return o}return{parts:function(...i){for(let e of(!function(){if(!n){n=!0;return}throw Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}(),i))t[e]=r(e);return B(e,t)},toPart:r,extend:function(...n){for(let e of n)e in t||(t[e]=r(e));return B(e,t)},selectors:function(){let e=Object.fromEntries(Object.entries(t).map(([e,t])=>[e,t.selector]));return e},classnames:function(){let e=Object.fromEntries(Object.entries(t).map(([e,t])=>[e,t.className]));return e},get keys(){return Object.keys(t)},__type:{}}}var z=B("accordion").parts("root","container","button","panel").extend("icon"),U=B("alert").parts("title","description","container").extend("icon","spinner"),q=B("avatar").parts("label","badge","container").extend("excessLabel","group"),$=B("breadcrumb").parts("link","item","container").extend("separator");B("button").parts();var H=B("checkbox").parts("control","icon","container").extend("label");B("progress").parts("track","filledTrack").extend("label");var V=B("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),W=B("editable").parts("preview","input","textarea"),G=B("form").parts("container","requiredIndicator","helperText"),Y=B("formError").parts("text","icon"),Z=B("input").parts("addon","field","element","group"),K=B("list").parts("container","item","icon"),J=B("menu").parts("button","list","item").extend("groupTitle","icon","command","divider"),X=B("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),Q=B("numberinput").parts("root","field","stepperGroup","stepper");B("pininput").parts("field");var ee=B("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),et=B("progress").parts("label","filledTrack","track"),en=B("radio").parts("container","control","label"),er=B("select").parts("field","icon"),ei=B("slider").parts("container","track","thumb","filledTrack","mark"),eo=B("stat").parts("container","label","helpText","number","icon"),ea=B("switch").parts("container","track","thumb","label"),es=B("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),el=B("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),eu=B("tag").parts("container","label","closeButton"),ec=B("card").parts("container","header","body","footer");function ed(e){let t=function(e,t="-"){return e.replace(/\s+/g,t)}(e.toString());return t.includes("\\.")?e:Number.isInteger(parseFloat(e.toString()))?e:t.replace(".","\\.")}function eh(e,t){var n,r;let i=function(e,t=""){return`--${function(e,t=""){return[t,ed(e)].filter(Boolean).join("-")}(e,t)}`}(e,null==t?void 0:t.prefix);return{variable:i,reference:(n="string"==typeof(r=null==t?void 0:t.fallback)?r:null==r?void 0:r.reference,`var(${ed(i)}${n?`, ${n}`:""})`)}}B("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");var ep=n(31053);function ef(e){return(0,ep.Kn)(e)&&e.reference?e.reference:String(e)}var em=(e,...t)=>t.map(ef).join(` ${e} `).replace(/calc/g,""),eg=(...e)=>`calc(${em("+",...e)})`,ev=(...e)=>`calc(${em("-",...e)})`,ey=(...e)=>`calc(${em("*",...e)})`,eb=(...e)=>`calc(${em("/",...e)})`,ek=e=>{let t=ef(e);return null==t||Number.isNaN(parseFloat(t))?ey(t,-1):String(t).startsWith("-")?String(t).slice(1):`-${t}`},ew=Object.assign(e=>({add:(...t)=>ew(eg(e,...t)),subtract:(...t)=>ew(ev(e,...t)),multiply:(...t)=>ew(ey(e,...t)),divide:(...t)=>ew(eb(e,...t)),negate:()=>ew(ek(e)),toString:()=>e.toString()}),{add:eg,subtract:ev,multiply:ey,divide:eb,negate:ek}),{defineMultiStyleConfig:ex,definePartsStyle:e_}=(0,T.D)(ea.keys),eS=eh("switch-track-width"),eE=eh("switch-track-height"),eD=eh("switch-track-diff"),eC=ew.subtract(eS,eE),ej=eh("switch-thumb-x"),eO=eh("switch-bg"),eT=(0,T.k0)(e=>{let{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[eS.reference],height:[eE.reference],transitionProperty:"common",transitionDuration:"fast",[eO.variable]:"colors.gray.300",_dark:{[eO.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[eO.variable]:`colors.${t}.500`,_dark:{[eO.variable]:`colors.${t}.200`}},bg:eO.reference}}),eA=(0,T.k0)({bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[eE.reference],height:[eE.reference],_checked:{transform:`translateX(${ej.reference})`}}),eP=ex({baseStyle:e_(e=>({container:{[eD.variable]:eC,[ej.variable]:eD.reference,_rtl:{[ej.variable]:ew(eD).negate().toString()}},track:eT(e),thumb:eA})),sizes:{sm:e_({container:{[eS.variable]:"1.375rem",[eE.variable]:"sizes.3"}}),md:e_({container:{[eS.variable]:"1.875rem",[eE.variable]:"sizes.4"}}),lg:e_({container:{[eS.variable]:"2.875rem",[eE.variable]:"sizes.6"}})},defaultProps:{size:"md",colorScheme:"blue"}}),eR=n(39279),{defineMultiStyleConfig:eM,definePartsStyle:eF}=(0,T.D)(es.keys),eN=eF({table:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full"},th:{fontFamily:"heading",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"wider",textAlign:"start"},td:{textAlign:"start"},caption:{mt:4,fontFamily:"heading",textAlign:"center",fontWeight:"medium"}}),eI=(0,T.k0)({"&[data-is-numeric=true]":{textAlign:"end"}}),eL=eM({baseStyle:eN,variants:{simple:eF(e=>{let{colorScheme:t}=e;return{th:{color:(0,eR.x)("gray.600","gray.400")(e),borderBottom:"1px",borderColor:(0,eR.x)(`${t}.100`,`${t}.700`)(e),...eI},td:{borderBottom:"1px",borderColor:(0,eR.x)(`${t}.100`,`${t}.700`)(e),...eI},caption:{color:(0,eR.x)("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),striped:eF(e=>{let{colorScheme:t}=e;return{th:{color:(0,eR.x)("gray.600","gray.400")(e),borderBottom:"1px",borderColor:(0,eR.x)(`${t}.100`,`${t}.700`)(e),...eI},td:{borderBottom:"1px",borderColor:(0,eR.x)(`${t}.100`,`${t}.700`)(e),...eI},caption:{color:(0,eR.x)("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:(0,eR.x)(`${t}.100`,`${t}.700`)(e)},td:{background:(0,eR.x)(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),unstyled:(0,T.k0)({})},sizes:{sm:eF({th:{px:"4",py:"1",lineHeight:"4",fontSize:"xs"},td:{px:"4",py:"2",fontSize:"sm",lineHeight:"4"},caption:{px:"4",py:"2",fontSize:"xs"}}),md:eF({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:eF({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}});function eB(e,t,n){return Math.min(Math.max(e,n),t)}var ez=class extends Error{constructor(e){super(`Failed to parse color: "${e}"`)}};function eU(e){if("string"!=typeof e)throw new ez(e);if("transparent"===e.trim().toLowerCase())return[0,0,0,0];let t=e.trim();t=eZ.test(e)?function(e){let t=e.toLowerCase().trim(),n=e$[function(e){let t=5381,n=e.length;for(;n;)t=33*t^e.charCodeAt(--n);return(t>>>0)%2341}(t)];if(!n)throw new ez(e);return`#${n}`}(e):e;let n=eV.exec(t);if(n){let e=Array.from(n).slice(1);return[...e.slice(0,3).map(e=>parseInt(eH(e,2),16)),parseInt(eH(e[3]||"f",2),16)/255]}let r=eW.exec(t);if(r){let e=Array.from(r).slice(1);return[...e.slice(0,3).map(e=>parseInt(e,16)),parseInt(e[3]||"ff",16)/255]}let i=eG.exec(t);if(i){let e=Array.from(i).slice(1);return[...e.slice(0,3).map(e=>parseInt(e,10)),parseFloat(e[3]||"1")]}let o=eY.exec(t);if(o){let[t,n,r,i]=Array.from(o).slice(1).map(parseFloat);if(eB(0,100,n)!==n||eB(0,100,r)!==r)throw new ez(e);return[...eJ(t,n,r),Number.isNaN(i)?1:i]}throw new ez(e)}let eq=e=>parseInt(e.replace(/_/g,""),36),e$="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((e,t)=>{let n=eq(t.substring(0,3)),r=eq(t.substring(3)).toString(16),i="";for(let e=0;e<6-r.length;e++)i+="0";return e[n]=`${i}${r}`,e},{}),eH=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),eV=RegExp(`^#${eH("([a-f0-9])",3)}([a-f0-9])?$`,"i"),eW=RegExp(`^#${eH("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),eG=RegExp(`^rgba?\\(\\s*(\\d+)\\s*${eH(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),eY=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,eZ=/^[a-z]+$/i,eK=e=>Math.round(255*e),eJ=(e,t,n)=>{let r=n/100;if(0===t)return[r,r,r].map(eK);let i=(e%360+360)%360/60,o=(1-Math.abs(2*r-1))*(t/100),a=o*(1-Math.abs(i%2-1)),s=0,l=0,u=0;i>=0&&i<1?(s=o,l=a):i>=1&&i<2?(s=a,l=o):i>=2&&i<3?(l=o,u=a):i>=3&&i<4?(l=a,u=o):i>=4&&i<5?(s=a,u=o):i>=5&&i<6&&(s=o,u=a);let c=r-o/2,d=s+c,h=l+c,p=u+c;return[d,h,p].map(eK)};var eX=e=>0===Object.keys(e).length,eQ=(e,t,n)=>{let r=function(e,t,n,r,i){for(t=t.split?t.split("."):t,r=0;r{let t=eB(0,255,e).toString(16);return 1===t.length?`0${t}`:t};o(t),o(n),o(r),i<1&&o(Math.round(255*i))}(r),r}catch{return null!=n?n:"#000000"}},e0=e=>{let[t,n,r]=eU(e);return(299*t+587*n+114*r)/1e3},e1=e=>t=>{let n=eQ(t,e),r=e0(n);return r<128?"dark":"light"},e2=e=>t=>"dark"===e1(e)(t),e3=(e,t)=>n=>{let r=eQ(n,e);return function(e,t){let[n,r,i,o]=eU(e);return`rgba(${eB(0,255,n).toFixed()}, ${eB(0,255,r).toFixed()}, ${eB(0,255,i).toFixed()}, ${parseFloat(eB(0,1,o-t).toFixed(3))})`}(r,1-t)};function e5(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient( 45deg, ${t} 25%, transparent 25%, transparent 50%, ${t} 50%, ${t} 75%, transparent 75%, transparent )`,backgroundSize:`${e} ${e}`}}var e4=()=>`#${Math.floor(16777215*Math.random()).toString(16).padEnd(6,"0")}`,e6=(0,T.gJ)("tabs-color"),e8=(0,T.gJ)("tabs-bg"),e9=(0,T.gJ)("tabs-border-color"),{defineMultiStyleConfig:e7,definePartsStyle:te}=(0,T.D)(el.keys),tt=(0,T.k0)(e=>{let{orientation:t}=e;return{display:"vertical"===t?"flex":"block"}}),tn=(0,T.k0)(e=>{let{isFitted:t}=e;return{flex:t?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focusVisible:{zIndex:1,boxShadow:"outline"},_disabled:{cursor:"not-allowed",opacity:.4}}}),tr=(0,T.k0)(e=>{let{align:t="start",orientation:n}=e;return{justifyContent:({end:"flex-end",center:"center",start:"flex-start"})[t],flexDirection:"vertical"===n?"column":"row"}}),ti=(0,T.k0)({p:4}),to=e7({baseStyle:te(e=>({root:tt(e),tab:tn(e),tablist:tr(e),tabpanel:ti})),sizes:{sm:te({tab:{py:1,px:4,fontSize:"sm"}}),md:te({tab:{fontSize:"md",py:2,px:4}}),lg:te({tab:{fontSize:"lg",py:3,px:4}})},variants:{line:te(e=>{let{colorScheme:t,orientation:n}=e,r="vertical"===n,i=r?"borderStart":"borderBottom";return{tablist:{[i]:"2px solid",borderColor:"inherit"},tab:{[i]:"2px solid",borderColor:"transparent",[r?"marginStart":"marginBottom"]:"-2px",_selected:{[e6.variable]:`colors.${t}.600`,_dark:{[e6.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[e8.variable]:"colors.gray.200",_dark:{[e8.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:e6.reference,bg:e8.reference}}}),enclosed:te(e=>{let{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[e9.variable]:"transparent",_selected:{[e6.variable]:`colors.${t}.600`,[e9.variable]:"colors.white",_dark:{[e6.variable]:`colors.${t}.300`,[e9.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:e9.reference},color:e6.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),"enclosed-colored":te(e=>{let{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[e8.variable]:"colors.gray.50",_dark:{[e8.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[e8.variable]:"colors.white",[e6.variable]:`colors.${t}.600`,_dark:{[e8.variable]:"colors.gray.800",[e6.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:e6.reference,bg:e8.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),"soft-rounded":te(e=>{let{colorScheme:t,theme:n}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:eQ(n,`${t}.700`),bg:eQ(n,`${t}.100`)}}}}),"solid-rounded":te(e=>{let{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[e6.variable]:"colors.gray.600",_dark:{[e6.variable]:"inherit"},_selected:{[e6.variable]:"colors.white",[e8.variable]:`colors.${t}.600`,_dark:{[e6.variable]:"colors.gray.800",[e8.variable]:`colors.${t}.300`}},color:e6.reference,bg:e8.reference}}}),unstyled:te({})},defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),ta=(0,T._6)("badge",["bg","color","shadow"]),ts=(0,T.k0)({px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:ta.bg.reference,color:ta.color.reference,boxShadow:ta.shadow.reference}),tl=(0,T.k0)(e=>{let{colorScheme:t,theme:n}=e,r=e3(`${t}.500`,.6)(n);return{[ta.bg.variable]:`colors.${t}.500`,[ta.color.variable]:"colors.white",_dark:{[ta.bg.variable]:r,[ta.color.variable]:"colors.whiteAlpha.800"}}}),tu=(0,T.k0)(e=>{let{colorScheme:t,theme:n}=e,r=e3(`${t}.200`,.16)(n);return{[ta.bg.variable]:`colors.${t}.100`,[ta.color.variable]:`colors.${t}.800`,_dark:{[ta.bg.variable]:r,[ta.color.variable]:`colors.${t}.200`}}}),tc=(0,T.k0)(e=>{let{colorScheme:t,theme:n}=e,r=e3(`${t}.200`,.8)(n);return{[ta.color.variable]:`colors.${t}.500`,_dark:{[ta.color.variable]:r},[ta.shadow.variable]:`inset 0 0 0px 1px ${ta.color.reference}`}}),td=(0,T.fj)({baseStyle:ts,variants:{solid:tl,subtle:tu,outline:tc},defaultProps:{variant:"subtle",colorScheme:"gray"}}),{defineMultiStyleConfig:th,definePartsStyle:tp}=(0,T.D)(eu.keys),tf=(0,T.gJ)("tag-bg"),tm=(0,T.gJ)("tag-color"),tg=(0,T.gJ)("tag-shadow"),tv=(0,T.gJ)("tag-min-height"),ty=(0,T.gJ)("tag-min-width"),tb=(0,T.gJ)("tag-font-size"),tk=(0,T.gJ)("tag-padding-inline"),tw=tp({container:(0,T.k0)({fontWeight:"medium",lineHeight:1.2,outline:0,[tm.variable]:ta.color.reference,[tf.variable]:ta.bg.reference,[tg.variable]:ta.shadow.reference,color:tm.reference,bg:tf.reference,boxShadow:tg.reference,borderRadius:"md",minH:tv.reference,minW:ty.reference,fontSize:tb.reference,px:tk.reference,_focusVisible:{[tg.variable]:"shadows.outline"}}),label:(0,T.k0)({lineHeight:1.2,overflow:"visible"}),closeButton:(0,T.k0)({fontSize:"lg",w:"5",h:"5",transitionProperty:"common",transitionDuration:"normal",borderRadius:"full",marginStart:"1.5",marginEnd:"-1",opacity:.5,_disabled:{opacity:.4},_focusVisible:{boxShadow:"outline",bg:"rgba(0, 0, 0, 0.14)"},_hover:{opacity:.8},_active:{opacity:1}})}),tx={sm:tp({container:{[tv.variable]:"sizes.5",[ty.variable]:"sizes.5",[tb.variable]:"fontSizes.xs",[tk.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:tp({container:{[tv.variable]:"sizes.6",[ty.variable]:"sizes.6",[tb.variable]:"fontSizes.sm",[tk.variable]:"space.2"}}),lg:tp({container:{[tv.variable]:"sizes.8",[ty.variable]:"sizes.8",[tb.variable]:"fontSizes.md",[tk.variable]:"space.3"}})},t_=th({variants:{subtle:tp(e=>{var t;return{container:null==(t=td.variants)?void 0:t.subtle(e)}}),solid:tp(e=>{var t;return{container:null==(t=td.variants)?void 0:t.solid(e)}}),outline:tp(e=>{var t;return{container:null==(t=td.variants)?void 0:t.outline(e)}})},baseStyle:tw,sizes:tx,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),{definePartsStyle:tS,defineMultiStyleConfig:tE}=(0,T.D)(Z.keys),tD=(0,T.gJ)("input-height"),tC=(0,T.gJ)("input-font-size"),tj=(0,T.gJ)("input-padding"),tO=(0,T.gJ)("input-border-radius"),tT=tS({addon:{height:tD.reference,fontSize:tC.reference,px:tj.reference,borderRadius:tO.reference},field:{width:"100%",height:tD.reference,fontSize:tC.reference,px:tj.reference,borderRadius:tO.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),tA={lg:(0,T.k0)({[tC.variable]:"fontSizes.lg",[tj.variable]:"space.4",[tO.variable]:"radii.md",[tD.variable]:"sizes.12"}),md:(0,T.k0)({[tC.variable]:"fontSizes.md",[tj.variable]:"space.4",[tO.variable]:"radii.md",[tD.variable]:"sizes.10"}),sm:(0,T.k0)({[tC.variable]:"fontSizes.sm",[tj.variable]:"space.3",[tO.variable]:"radii.sm",[tD.variable]:"sizes.8"}),xs:(0,T.k0)({[tC.variable]:"fontSizes.xs",[tj.variable]:"space.2",[tO.variable]:"radii.sm",[tD.variable]:"sizes.6"})};function tP(e){let{focusBorderColor:t,errorBorderColor:n}=e;return{focusBorderColor:t||(0,eR.x)("blue.500","blue.300")(e),errorBorderColor:n||(0,eR.x)("red.500","red.300")(e)}}var tR=tE({baseStyle:tT,sizes:{lg:tS({field:tA.lg,group:tA.lg}),md:tS({field:tA.md,group:tA.md}),sm:tS({field:tA.sm,group:tA.sm}),xs:tS({field:tA.xs,group:tA.xs})},variants:{outline:tS(e=>{let{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=tP(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:(0,eR.x)("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:eQ(t,r),boxShadow:`0 0 0 1px ${eQ(t,r)}`},_focusVisible:{zIndex:1,borderColor:eQ(t,n),boxShadow:`0 0 0 1px ${eQ(t,n)}`}},addon:{border:"1px solid",borderColor:(0,eR.x)("inherit","whiteAlpha.50")(e),bg:(0,eR.x)("gray.100","whiteAlpha.300")(e)}}}),filled:tS(e=>{let{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=tP(e);return{field:{border:"2px solid",borderColor:"transparent",bg:(0,eR.x)("gray.100","whiteAlpha.50")(e),_hover:{bg:(0,eR.x)("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:eQ(t,r)},_focusVisible:{bg:"transparent",borderColor:eQ(t,n)}},addon:{border:"2px solid",borderColor:"transparent",bg:(0,eR.x)("gray.100","whiteAlpha.50")(e)}}}),flushed:tS(e=>{let{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=tP(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:eQ(t,r),boxShadow:`0px 1px 0px 0px ${eQ(t,r)}`},_focusVisible:{borderColor:eQ(t,n),boxShadow:`0px 1px 0px 0px ${eQ(t,n)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),unstyled:tS({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}})},defaultProps:{size:"md",variant:"outline"}}),tM=(0,T.k0)({...null==(r=tR.baseStyle)?void 0:r.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"}),tF={outline:(0,T.k0)(e=>{var t,n;return null!=(n=null==(t=tR.variants)?void 0:t.outline(e).field)?n:{}}),flushed:(0,T.k0)(e=>{var t,n;return null!=(n=null==(t=tR.variants)?void 0:t.flushed(e).field)?n:{}}),filled:(0,T.k0)(e=>{var t,n;return null!=(n=null==(t=tR.variants)?void 0:t.filled(e).field)?n:{}}),unstyled:null!=(o=null==(i=tR.variants)?void 0:i.unstyled.field)?o:{}},tN={xs:null!=(s=null==(a=tR.sizes)?void 0:a.xs.field)?s:{},sm:null!=(u=null==(l=tR.sizes)?void 0:l.sm.field)?u:{},md:null!=(d=null==(c=tR.sizes)?void 0:c.md.field)?d:{},lg:null!=(p=null==(h=tR.sizes)?void 0:h.lg.field)?p:{}},tI=(0,T.fj)({baseStyle:tM,sizes:tN,variants:tF,defaultProps:{size:"md",variant:"outline"}}),tL=eh("tooltip-bg"),tB=eh("tooltip-fg"),tz=eh("popper-arrow-bg"),tU=(0,T.k0)({bg:tL.reference,color:tB.reference,[tL.variable]:"colors.gray.700",[tB.variable]:"colors.whiteAlpha.900",_dark:{[tL.variable]:"colors.gray.300",[tB.variable]:"colors.gray.900"},[tz.variable]:tL.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"}),tq=(0,T.fj)({baseStyle:tU}),{defineMultiStyleConfig:t$,definePartsStyle:tH}=(0,T.D)(et.keys),tV=(0,T.k0)(e=>{let{colorScheme:t,theme:n,isIndeterminate:r,hasStripe:i}=e,o=(0,eR.x)(e5(),e5("1rem","rgba(0,0,0,0.1)"))(e),a=(0,eR.x)(`${t}.500`,`${t}.200`)(e),s=`linear-gradient( to right, transparent 0%, ${eQ(n,a)} 50%, transparent 100% )`;return{...!r&&i&&o,...r?{bgImage:s}:{bgColor:a}}}),tW=(0,T.k0)({lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"}),tG=(0,T.k0)(e=>({bg:(0,eR.x)("gray.100","whiteAlpha.300")(e)})),tY=(0,T.k0)(e=>({transitionProperty:"common",transitionDuration:"slow",...tV(e)})),tZ=tH(e=>({label:tW,filledTrack:tY(e),track:tG(e)})),tK=t$({sizes:{xs:tH({track:{h:"1"}}),sm:tH({track:{h:"2"}}),md:tH({track:{h:"3"}}),lg:tH({track:{h:"4"}})},baseStyle:tZ,defaultProps:{size:"md",colorScheme:"blue"}}),tJ=e=>"function"==typeof e;function tX(e,...t){return tJ(e)?e(...t):e}var{definePartsStyle:tQ,defineMultiStyleConfig:t0}=(0,T.D)(H.keys),t1=(0,T.gJ)("checkbox-size"),t2=(0,T.k0)(e=>{let{colorScheme:t}=e;return{w:t1.reference,h:t1.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:(0,eR.x)(`${t}.500`,`${t}.200`)(e),borderColor:(0,eR.x)(`${t}.500`,`${t}.200`)(e),color:(0,eR.x)("white","gray.900")(e),_hover:{bg:(0,eR.x)(`${t}.600`,`${t}.300`)(e),borderColor:(0,eR.x)(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:(0,eR.x)("gray.200","transparent")(e),bg:(0,eR.x)("gray.200","whiteAlpha.300")(e),color:(0,eR.x)("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:(0,eR.x)(`${t}.500`,`${t}.200`)(e),borderColor:(0,eR.x)(`${t}.500`,`${t}.200`)(e),color:(0,eR.x)("white","gray.900")(e)},_disabled:{bg:(0,eR.x)("gray.100","whiteAlpha.100")(e),borderColor:(0,eR.x)("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:(0,eR.x)("red.500","red.300")(e)}}}),t3=(0,T.k0)({_disabled:{cursor:"not-allowed"}}),t5=(0,T.k0)({userSelect:"none",_disabled:{opacity:.4}}),t4=(0,T.k0)({transitionProperty:"transform",transitionDuration:"normal"}),t6=t0({baseStyle:tQ(e=>({icon:t4,container:t3,control:tX(t2,e),label:t5})),sizes:{sm:tQ({control:{[t1.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:tQ({control:{[t1.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:tQ({control:{[t1.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:t8,definePartsStyle:t9}=(0,T.D)(en.keys),t7=(0,T.k0)(e=>{var t;let n=null==(t=tX(t6.baseStyle,e))?void 0:t.control;return{...n,borderRadius:"full",_checked:{...null==n?void 0:n._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}}),ne=t8({baseStyle:t9(e=>{var t,n;return{label:null==(t=t6.baseStyle)?void 0:t.call(t6,e).label,container:null==(n=t6.baseStyle)?void 0:n.call(t6,e).container,control:t7(e)}}),sizes:{md:t9({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:t9({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:t9({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:nt,definePartsStyle:nn}=(0,T.D)(er.keys),nr=(0,T.gJ)("select-bg"),ni=nn({field:(0,T.k0)({...null==(f=tR.baseStyle)?void 0:f.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:nr.reference,[nr.variable]:"colors.white",_dark:{[nr.variable]:"colors.gray.700"},"> option, > optgroup":{bg:nr.reference}}),icon:(0,T.k0)({width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}})}),no=(0,T.k0)({paddingInlineEnd:"8"}),na=nt({baseStyle:ni,sizes:{lg:{...null==(m=tR.sizes)?void 0:m.lg,field:{...null==(g=tR.sizes)?void 0:g.lg.field,...no}},md:{...null==(v=tR.sizes)?void 0:v.md,field:{...null==(y=tR.sizes)?void 0:y.md.field,...no}},sm:{...null==(b=tR.sizes)?void 0:b.sm,field:{...null==(k=tR.sizes)?void 0:k.sm.field,...no}},xs:{...null==(w=tR.sizes)?void 0:w.xs,field:{...null==(x=tR.sizes)?void 0:x.xs.field,...no},icon:{insetEnd:"1"}}},variants:tR.variants,defaultProps:tR.defaultProps}),ns=(0,T.gJ)("skeleton-start-color"),nl=(0,T.gJ)("skeleton-end-color"),nu=(0,T.k0)({[ns.variable]:"colors.gray.100",[nl.variable]:"colors.gray.400",_dark:{[ns.variable]:"colors.gray.800",[nl.variable]:"colors.gray.600"},background:ns.reference,borderColor:nl.reference,opacity:.7,borderRadius:"sm"}),nc=(0,T.fj)({baseStyle:nu}),nd=(0,T.gJ)("skip-link-bg"),nh=(0,T.k0)({borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[nd.variable]:"colors.white",_dark:{[nd.variable]:"colors.gray.700"},bg:nd.reference}}),np=(0,T.fj)({baseStyle:nh}),{defineMultiStyleConfig:nf,definePartsStyle:nm}=(0,T.D)(ei.keys),ng=(0,T.gJ)("slider-thumb-size"),nv=(0,T.gJ)("slider-track-size"),ny=(0,T.gJ)("slider-bg"),nb=(0,T.k0)(e=>{let{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...(0,eR.f)({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}}),nk=(0,T.k0)(e=>{let t=(0,eR.f)({orientation:e.orientation,horizontal:{h:nv.reference},vertical:{w:nv.reference}});return{...t,overflow:"hidden",borderRadius:"sm",[ny.variable]:"colors.gray.200",_dark:{[ny.variable]:"colors.whiteAlpha.200"},_disabled:{[ny.variable]:"colors.gray.300",_dark:{[ny.variable]:"colors.whiteAlpha.300"}},bg:ny.reference}}),nw=(0,T.k0)(e=>{let{orientation:t}=e,n=(0,eR.f)({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",_active:{transform:"translateX(-50%) scale(1.15)"}},horizontal:{top:"50%",transform:"translateY(-50%)",_active:{transform:"translateY(-50%) scale(1.15)"}}});return{...n,w:ng.reference,h:ng.reference,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{bg:"gray.300"}}}),nx=(0,T.k0)(e=>{let{colorScheme:t}=e;return{width:"inherit",height:"inherit",[ny.variable]:`colors.${t}.500`,_dark:{[ny.variable]:`colors.${t}.200`},bg:ny.reference}}),n_=nf({baseStyle:nm(e=>({container:nb(e),track:nk(e),thumb:nw(e),filledTrack:nx(e)})),sizes:{lg:nm({container:{[ng.variable]:"sizes.4",[nv.variable]:"sizes.1"}}),md:nm({container:{[ng.variable]:"sizes.3.5",[nv.variable]:"sizes.1"}}),sm:nm({container:{[ng.variable]:"sizes.2.5",[nv.variable]:"sizes.0.5"}})},defaultProps:{size:"md",colorScheme:"blue"}}),nS=eh("spinner-size"),nE=(0,T.k0)({width:[nS.reference],height:[nS.reference]}),nD={xs:(0,T.k0)({[nS.variable]:"sizes.3"}),sm:(0,T.k0)({[nS.variable]:"sizes.4"}),md:(0,T.k0)({[nS.variable]:"sizes.6"}),lg:(0,T.k0)({[nS.variable]:"sizes.8"}),xl:(0,T.k0)({[nS.variable]:"sizes.12"})},nC=(0,T.fj)({baseStyle:nE,sizes:nD,defaultProps:{size:"md"}}),{defineMultiStyleConfig:nj,definePartsStyle:nO}=(0,T.D)(eo.keys),nT=nj({baseStyle:nO({container:{},label:(0,T.k0)({fontWeight:"medium"}),helpText:(0,T.k0)({opacity:.8,marginBottom:"2"}),number:(0,T.k0)({verticalAlign:"baseline",fontWeight:"semibold"}),icon:(0,T.k0)({marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"})}),sizes:{md:nO({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},defaultProps:{size:"md"}}),nA=(0,T.gJ)("kbd-bg"),nP=(0,T.k0)({[nA.variable]:"colors.gray.100",_dark:{[nA.variable]:"colors.whiteAlpha.100"},bg:nA.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"}),nR=(0,T.fj)({baseStyle:nP}),nM=(0,T.k0)({transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}}),nF=(0,T.fj)({baseStyle:nM}),{defineMultiStyleConfig:nN,definePartsStyle:nI}=(0,T.D)(K.keys),nL=nN({baseStyle:nI({icon:(0,T.k0)({marginEnd:"2",display:"inline",verticalAlign:"text-bottom"})})}),{defineMultiStyleConfig:nB,definePartsStyle:nz}=(0,T.D)(J.keys),nU=(0,T.gJ)("menu-bg"),nq=(0,T.gJ)("menu-shadow"),n$=(0,T.k0)({[nU.variable]:"#fff",[nq.variable]:"shadows.sm",_dark:{[nU.variable]:"colors.gray.700",[nq.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px",bg:nU.reference,boxShadow:nq.reference}),nH=(0,T.k0)({py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[nU.variable]:"colors.gray.100",_dark:{[nU.variable]:"colors.whiteAlpha.100"}},_active:{[nU.variable]:"colors.gray.200",_dark:{[nU.variable]:"colors.whiteAlpha.200"}},_expanded:{[nU.variable]:"colors.gray.100",_dark:{[nU.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:nU.reference}),nV=(0,T.k0)({mx:4,my:2,fontWeight:"semibold",fontSize:"sm"}),nW=(0,T.k0)({display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0}),nG=(0,T.k0)({opacity:.6}),nY=(0,T.k0)({border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6}),nZ=nB({baseStyle:nz({button:(0,T.k0)({transitionProperty:"common",transitionDuration:"normal"}),list:n$,item:nH,groupTitle:nV,icon:nW,command:nG,divider:nY})}),{defineMultiStyleConfig:nK,definePartsStyle:nJ}=(0,T.D)(X.keys),nX=(0,T.gJ)("modal-bg"),nQ=(0,T.gJ)("modal-shadow"),n0=(0,T.k0)({bg:"blackAlpha.600",zIndex:"modal"}),n1=(0,T.k0)(e=>{let{isCentered:t,scrollBehavior:n}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:"inside"===n?"hidden":"auto",overscrollBehaviorY:"none"}}),n2=(0,T.k0)(e=>{let{isCentered:t,scrollBehavior:n}=e;return{borderRadius:"md",color:"inherit",my:t?"auto":"16",mx:t?"auto":void 0,zIndex:"modal",maxH:"inside"===n?"calc(100% - 7.5rem)":void 0,[nX.variable]:"colors.white",[nQ.variable]:"shadows.lg",_dark:{[nX.variable]:"colors.gray.700",[nQ.variable]:"shadows.dark-lg"},bg:nX.reference,boxShadow:nQ.reference}}),n3=(0,T.k0)({px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"}),n5=(0,T.k0)({position:"absolute",top:"2",insetEnd:"3"}),n4=(0,T.k0)(e=>{let{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:"inside"===t?"auto":void 0}}),n6=(0,T.k0)({px:"6",py:"4"});function n8(e){return"full"===e?nJ({dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}):nJ({dialog:{maxW:e}})}var n9=nK({baseStyle:nJ(e=>({overlay:n0,dialogContainer:tX(n1,e),dialog:tX(n2,e),header:n3,closeButton:n5,body:tX(n4,e),footer:n6})),sizes:{xs:n8("xs"),sm:n8("sm"),md:n8("md"),lg:n8("lg"),xl:n8("xl"),"2xl":n8("2xl"),"3xl":n8("3xl"),"4xl":n8("4xl"),"5xl":n8("5xl"),"6xl":n8("6xl"),full:n8("full")},defaultProps:{size:"md"}}),{defineMultiStyleConfig:n7,definePartsStyle:re}=(0,T.D)(Q.keys),rt=eh("number-input-stepper-width"),rn=eh("number-input-input-padding"),rr=ew(rt).add("0.5rem").toString(),ri=eh("number-input-bg"),ro=eh("number-input-color"),ra=eh("number-input-border-color"),rs=(0,T.k0)({[rt.variable]:"sizes.6",[rn.variable]:rr}),rl=(0,T.k0)(e=>{var t,n;return null!=(n=null==(t=tX(tR.baseStyle,e))?void 0:t.field)?n:{}}),ru=(0,T.k0)({width:rt.reference}),rc=(0,T.k0)({borderStart:"1px solid",borderStartColor:ra.reference,color:ro.reference,bg:ri.reference,[ro.variable]:"colors.chakra-body-text",[ra.variable]:"colors.chakra-border-color",_dark:{[ro.variable]:"colors.whiteAlpha.800",[ra.variable]:"colors.whiteAlpha.300"},_active:{[ri.variable]:"colors.gray.200",_dark:{[ri.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}});function rd(e){var t,n,r;let i=null==(t=tR.sizes)?void 0:t[e],o={lg:"md",md:"md",sm:"sm",xs:"sm"},a=null!=(r=null==(n=i.field)?void 0:n.fontSize)?r:"md",s=D.fontSizes[a];return re({field:{...i.field,paddingInlineEnd:rn.reference,verticalAlign:"top"},stepper:{fontSize:ew(s).multiply(.75).toString(),_first:{borderTopEndRadius:o[e]},_last:{borderBottomEndRadius:o[e],mt:"-1px",borderTopWidth:1}}})}var rh=n7({baseStyle:re(e=>{var t;return{root:rs,field:null!=(t=tX(rl,e))?t:{},stepperGroup:ru,stepper:rc}}),sizes:{xs:rd("xs"),sm:rd("sm"),md:rd("md"),lg:rd("lg")},variants:tR.variants,defaultProps:tR.defaultProps}),rp=(0,T.k0)({...null==(_=tR.baseStyle)?void 0:_.field,textAlign:"center"}),rf={lg:(0,T.k0)({fontSize:"lg",w:12,h:12,borderRadius:"md"}),md:(0,T.k0)({fontSize:"md",w:10,h:10,borderRadius:"md"}),sm:(0,T.k0)({fontSize:"sm",w:8,h:8,borderRadius:"sm"}),xs:(0,T.k0)({fontSize:"xs",w:6,h:6,borderRadius:"sm"})},rm={outline:(0,T.k0)(e=>{var t,n,r;return null!=(r=null==(n=tX(null==(t=tR.variants)?void 0:t.outline,e))?void 0:n.field)?r:{}}),flushed:(0,T.k0)(e=>{var t,n,r;return null!=(r=null==(n=tX(null==(t=tR.variants)?void 0:t.flushed,e))?void 0:n.field)?r:{}}),filled:(0,T.k0)(e=>{var t,n,r;return null!=(r=null==(n=tX(null==(t=tR.variants)?void 0:t.filled,e))?void 0:n.field)?r:{}}),unstyled:null!=(E=null==(S=tR.variants)?void 0:S.unstyled.field)?E:{}},rg=(0,T.fj)({baseStyle:rp,sizes:rf,variants:rm,defaultProps:tR.defaultProps}),{defineMultiStyleConfig:rv,definePartsStyle:ry}=(0,T.D)(ee.keys),rb=eh("popper-bg"),rk=eh("popper-arrow-bg"),rw=eh("popper-arrow-shadow-color"),rx=rv({baseStyle:ry({popper:(0,T.k0)({zIndex:10}),content:(0,T.k0)({[rb.variable]:"colors.white",bg:rb.reference,[rk.variable]:rb.reference,[rw.variable]:"colors.gray.200",_dark:{[rb.variable]:"colors.gray.700",[rw.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}}),header:(0,T.k0)({px:3,py:2,borderBottomWidth:"1px"}),body:(0,T.k0)({px:3,py:2}),footer:(0,T.k0)({px:3,py:2,borderTopWidth:"1px"}),closeButton:(0,T.k0)({position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2})})}),{definePartsStyle:r_,defineMultiStyleConfig:rS}=(0,T.D)(V.keys),rE=(0,T.gJ)("drawer-bg"),rD=(0,T.gJ)("drawer-box-shadow");function rC(e){return"full"===e?r_({dialog:{maxW:"100vw",h:"100vh"}}):r_({dialog:{maxW:e}})}var rj=(0,T.k0)({bg:"blackAlpha.600",zIndex:"modal"}),rO=(0,T.k0)({display:"flex",zIndex:"modal",justifyContent:"center"}),rT=(0,T.k0)(e=>{let{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[rE.variable]:"colors.white",[rD.variable]:"shadows.lg",_dark:{[rE.variable]:"colors.gray.700",[rD.variable]:"shadows.dark-lg"},bg:rE.reference,boxShadow:rD.reference}}),rA=(0,T.k0)({px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"}),rP=(0,T.k0)({position:"absolute",top:"2",insetEnd:"3"}),rR=(0,T.k0)({px:"6",py:"2",flex:"1",overflow:"auto"}),rM=(0,T.k0)({px:"6",py:"4"}),rF=rS({baseStyle:r_(e=>({overlay:rj,dialogContainer:rO,dialog:tX(rT,e),header:rA,closeButton:rP,body:rR,footer:rM})),sizes:{xs:rC("xs"),sm:rC("md"),md:rC("lg"),lg:rC("2xl"),xl:rC("4xl"),full:rC("full")},defaultProps:{size:"xs"}}),{definePartsStyle:rN,defineMultiStyleConfig:rI}=(0,T.D)(W.keys),rL=rI({baseStyle:rN({preview:(0,T.k0)({borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"}),input:(0,T.k0)({borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}}),textarea:(0,T.k0)({borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}})})}),{definePartsStyle:rB,defineMultiStyleConfig:rz}=(0,T.D)(G.keys),rU=(0,T.gJ)("form-control-color"),rq=rz({baseStyle:rB({container:{width:"100%",position:"relative"},requiredIndicator:(0,T.k0)({marginStart:"1",[rU.variable]:"colors.red.500",_dark:{[rU.variable]:"colors.red.300"},color:rU.reference}),helperText:(0,T.k0)({mt:"2",[rU.variable]:"colors.gray.600",_dark:{[rU.variable]:"colors.whiteAlpha.600"},color:rU.reference,lineHeight:"normal",fontSize:"sm"})})}),{definePartsStyle:r$,defineMultiStyleConfig:rH}=(0,T.D)(Y.keys),rV=(0,T.gJ)("form-error-color"),rW=rH({baseStyle:r$({text:(0,T.k0)({[rV.variable]:"colors.red.500",_dark:{[rV.variable]:"colors.red.300"},color:rV.reference,mt:"2",fontSize:"sm",lineHeight:"normal"}),icon:(0,T.k0)({marginEnd:"0.5em",[rV.variable]:"colors.red.500",_dark:{[rV.variable]:"colors.red.300"},color:rV.reference})})}),rG=(0,T.k0)({fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}}),rY=(0,T.fj)({baseStyle:rG}),rZ=(0,T.k0)({fontFamily:"heading",fontWeight:"bold"}),rK={"4xl":(0,T.k0)({fontSize:["6xl",null,"7xl"],lineHeight:1}),"3xl":(0,T.k0)({fontSize:["5xl",null,"6xl"],lineHeight:1}),"2xl":(0,T.k0)({fontSize:["4xl",null,"5xl"],lineHeight:[1.2,null,1]}),xl:(0,T.k0)({fontSize:["3xl",null,"4xl"],lineHeight:[1.33,null,1.2]}),lg:(0,T.k0)({fontSize:["2xl",null,"3xl"],lineHeight:[1.33,null,1.2]}),md:(0,T.k0)({fontSize:"xl",lineHeight:1.2}),sm:(0,T.k0)({fontSize:"md",lineHeight:1.2}),xs:(0,T.k0)({fontSize:"sm",lineHeight:1.2})},rJ=(0,T.fj)({baseStyle:rZ,sizes:rK,defaultProps:{size:"xl"}}),{defineMultiStyleConfig:rX,definePartsStyle:rQ}=(0,T.D)($.keys),r0=(0,T.gJ)("breadcrumb-link-decor"),r1=rX({baseStyle:rQ({link:(0,T.k0)({transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:r0.reference,[r0.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[r0.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}})})}),r2=(0,T.k0)({lineHeight:"1.2",borderRadius:"md",fontWeight:"semibold",transitionProperty:"common",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{_disabled:{bg:"initial"}}}),r3=(0,T.k0)(e=>{let{colorScheme:t,theme:n}=e;if("gray"===t)return{color:(0,eR.x)("gray.800","whiteAlpha.900")(e),_hover:{bg:(0,eR.x)("gray.100","whiteAlpha.200")(e)},_active:{bg:(0,eR.x)("gray.200","whiteAlpha.300")(e)}};let r=e3(`${t}.200`,.12)(n),i=e3(`${t}.200`,.24)(n);return{color:(0,eR.x)(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:(0,eR.x)(`${t}.50`,r)(e)},_active:{bg:(0,eR.x)(`${t}.100`,i)(e)}}}),r5=(0,T.k0)(e=>{let{colorScheme:t}=e,n=(0,eR.x)("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:"gray"===t?n:"currentColor",".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)":{marginEnd:"-1px"},".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)":{marginBottom:"-1px"},...tX(r3,e)}}),r4={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},r6=(0,T.k0)(e=>{var t;let{colorScheme:n}=e;if("gray"===n){let t=(0,eR.x)("gray.100","whiteAlpha.200")(e);return{bg:t,color:(0,eR.x)("gray.800","whiteAlpha.900")(e),_hover:{bg:(0,eR.x)("gray.200","whiteAlpha.300")(e),_disabled:{bg:t}},_active:{bg:(0,eR.x)("gray.300","whiteAlpha.400")(e)}}}let{bg:r=`${n}.500`,color:i="white",hoverBg:o=`${n}.600`,activeBg:a=`${n}.700`}=null!=(t=r4[n])?t:{},s=(0,eR.x)(r,`${n}.200`)(e);return{bg:s,color:(0,eR.x)(i,"gray.800")(e),_hover:{bg:(0,eR.x)(o,`${n}.300`)(e),_disabled:{bg:s}},_active:{bg:(0,eR.x)(a,`${n}.400`)(e)}}}),r8=(0,T.k0)(e=>{let{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:(0,eR.x)(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:(0,eR.x)(`${t}.700`,`${t}.500`)(e)}}}),r9=(0,T.k0)({bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"}),r7={lg:(0,T.k0)({h:"12",minW:"12",fontSize:"lg",px:"6"}),md:(0,T.k0)({h:"10",minW:"10",fontSize:"md",px:"4"}),sm:(0,T.k0)({h:"8",minW:"8",fontSize:"sm",px:"3"}),xs:(0,T.k0)({h:"6",minW:"6",fontSize:"xs",px:"2"})},ie=(0,T.fj)({baseStyle:r2,variants:{ghost:r3,outline:r5,solid:r6,link:r8,unstyled:r9},sizes:r7,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}}),{definePartsStyle:it,defineMultiStyleConfig:ir}=(0,T.D)(ec.keys),ii=(0,T.gJ)("card-bg"),io=(0,T.gJ)("card-padding"),ia=(0,T.gJ)("card-shadow"),is=(0,T.gJ)("card-radius"),il=(0,T.gJ)("card-border-width","0"),iu=(0,T.gJ)("card-border-color"),ic=it({container:{[ii.variable]:"colors.chakra-body-bg",backgroundColor:ii.reference,boxShadow:ia.reference,borderRadius:is.reference,color:"chakra-body-text",borderWidth:il.reference,borderColor:iu.reference},body:{padding:io.reference,flex:"1 1 0%"},header:{padding:io.reference},footer:{padding:io.reference}}),id={sm:it({container:{[is.variable]:"radii.base",[io.variable]:"space.3"}}),md:it({container:{[is.variable]:"radii.md",[io.variable]:"space.5"}}),lg:it({container:{[is.variable]:"radii.xl",[io.variable]:"space.7"}})},ih=ir({baseStyle:ic,variants:{elevated:it({container:{[ia.variable]:"shadows.base",_dark:{[ii.variable]:"colors.gray.700"}}}),outline:it({container:{[il.variable]:"1px",[iu.variable]:"colors.chakra-border-color"}}),filled:it({container:{[ii.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[io.variable]:0},header:{[io.variable]:0},footer:{[io.variable]:0}}},sizes:id,defaultProps:{variant:"elevated",size:"md"}}),ip=eh("close-button-size"),im=eh("close-button-bg"),ig=(0,T.k0)({w:[ip.reference],h:[ip.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[im.variable]:"colors.blackAlpha.100",_dark:{[im.variable]:"colors.whiteAlpha.100"}},_active:{[im.variable]:"colors.blackAlpha.200",_dark:{[im.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:im.reference}),iv={lg:(0,T.k0)({[ip.variable]:"sizes.10",fontSize:"md"}),md:(0,T.k0)({[ip.variable]:"sizes.8",fontSize:"xs"}),sm:(0,T.k0)({[ip.variable]:"sizes.6",fontSize:"2xs"})},iy=(0,T.fj)({baseStyle:ig,sizes:iv,defaultProps:{size:"md"}}),{variants:ib,defaultProps:ik}=td,iw=(0,T.k0)({fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:ta.bg.reference,color:ta.color.reference,boxShadow:ta.shadow.reference}),ix=(0,T.fj)({baseStyle:iw,variants:ib,defaultProps:ik}),i_=(0,T.k0)({w:"100%",mx:"auto",maxW:"prose",px:"4"}),iS=(0,T.fj)({baseStyle:i_}),iE=(0,T.k0)({opacity:.6,borderColor:"inherit"}),iD=(0,T.k0)({borderStyle:"solid"}),iC=(0,T.k0)({borderStyle:"dashed"}),ij=(0,T.fj)({baseStyle:iE,variants:{solid:iD,dashed:iC},defaultProps:{variant:"solid"}}),{definePartsStyle:iO,defineMultiStyleConfig:iT}=(0,T.D)(z.keys),iA=iT({baseStyle:iO({container:(0,T.k0)({borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}}),button:(0,T.k0)({transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"}),panel:(0,T.k0)({pt:"2",px:"4",pb:"5"}),icon:(0,T.k0)({fontSize:"1.25em"})})}),{definePartsStyle:iP,defineMultiStyleConfig:iR}=(0,T.D)(U.keys),iM=(0,T.gJ)("alert-fg"),iF=(0,T.gJ)("alert-bg");function iN(e){let{theme:t,colorScheme:n}=e,r=e3(`${n}.200`,.16)(t);return{light:`colors.${n}.100`,dark:r}}var iI=iR({baseStyle:iP({container:{bg:iF.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:iM.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:iM.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}}),variants:{subtle:iP(e=>{let{colorScheme:t}=e,n=iN(e);return{container:{[iM.variable]:`colors.${t}.600`,[iF.variable]:n.light,_dark:{[iM.variable]:`colors.${t}.200`,[iF.variable]:n.dark}}}}),"left-accent":iP(e=>{let{colorScheme:t}=e,n=iN(e);return{container:{[iM.variable]:`colors.${t}.600`,[iF.variable]:n.light,_dark:{[iM.variable]:`colors.${t}.200`,[iF.variable]:n.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:iM.reference}}}),"top-accent":iP(e=>{let{colorScheme:t}=e,n=iN(e);return{container:{[iM.variable]:`colors.${t}.600`,[iF.variable]:n.light,_dark:{[iM.variable]:`colors.${t}.200`,[iF.variable]:n.dark},pt:"2",borderTopWidth:"4px",borderTopColor:iM.reference}}}),solid:iP(e=>{let{colorScheme:t}=e;return{container:{[iM.variable]:"colors.white",[iF.variable]:`colors.${t}.600`,_dark:{[iM.variable]:"colors.gray.900",[iF.variable]:`colors.${t}.200`},color:iM.reference}}})},defaultProps:{variant:"subtle",colorScheme:"blue"}}),{definePartsStyle:iL,defineMultiStyleConfig:iB}=(0,T.D)(q.keys),iz=(0,T.gJ)("avatar-border-color"),iU=(0,T.gJ)("avatar-bg"),iq=(0,T.gJ)("avatar-font-size"),i$=(0,T.gJ)("avatar-size"),iH=(0,T.k0)({borderRadius:"full",border:"0.2em solid",borderColor:iz.reference,[iz.variable]:"white",_dark:{[iz.variable]:"colors.gray.800"}}),iV=(0,T.k0)({bg:iU.reference,fontSize:iq.reference,width:i$.reference,height:i$.reference,lineHeight:"1",[iU.variable]:"colors.gray.200",_dark:{[iU.variable]:"colors.whiteAlpha.400"}}),iW=(0,T.k0)(e=>{let{name:t,theme:n}=e,r=t?function(e){var t;let n=e4();return!e||eX(e)?n:e.string&&e.colors?function(e,t){let n=0;if(0===e.length)return t[0];for(let t=0;t>8*e&255;n+=`00${r.toString(16)}`.substr(-2)}return n}(e.string):e.colors&&!e.string?(t=e.colors)[Math.floor(Math.random()*t.length)]:n}({string:t}):"colors.gray.400",i=e2(r)(n),o="white";return i||(o="gray.800"),{bg:iU.reference,fontSize:iq.reference,color:o,borderColor:iz.reference,verticalAlign:"top",width:i$.reference,height:i$.reference,"&:not([data-loaded])":{[iU.variable]:r},[iz.variable]:"colors.white",_dark:{[iz.variable]:"colors.gray.800"}}}),iG=(0,T.k0)({fontSize:iq.reference,lineHeight:"1"});function iY(e){let t="100%"!==e?j[e]:void 0;return iL({container:{[i$.variable]:null!=t?t:e,[iq.variable]:`calc(${null!=t?t:e} / 2.5)`},excessLabel:{[i$.variable]:null!=t?t:e,[iq.variable]:`calc(${null!=t?t:e} / 2.5)`}})}var iZ=iB({baseStyle:iL(e=>({badge:tX(iH,e),excessLabel:tX(iV,e),container:tX(iW,e),label:iG})),sizes:{"2xs":iY(4),xs:iY(6),sm:iY(8),md:iY(12),lg:iY(16),xl:iY(24),"2xl":iY(32),full:iY("100%")},defaultProps:{size:"md"}}),iK={colors:{"chakra-body-text":{_light:"gray.800",_dark:"whiteAlpha.900"},"chakra-body-bg":{_light:"white",_dark:"gray.800"},"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.300"},"chakra-inverse-text":{_light:"white",_dark:"gray.800"},"chakra-subtle-bg":{_light:"gray.100",_dark:"gray.700"},"chakra-subtle-text":{_light:"gray.600",_dark:"gray.400"},"chakra-placeholder-color":{_light:"gray.500",_dark:"whiteAlpha.400"}}},iJ={global:{body:{fontFamily:"body",color:"chakra-body-text",bg:"chakra-body-bg",transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:"chakra-placeholder-color"},"*, *::before, &::after":{borderColor:"chakra-border-color"}}},iX={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},iQ={semanticTokens:iK,direction:"ltr",...O,components:{Accordion:iA,Alert:iI,Avatar:iZ,Badge:td,Breadcrumb:r1,Button:ie,Checkbox:t6,CloseButton:iy,Code:ix,Container:iS,Divider:ij,Drawer:rF,Editable:rL,Form:rq,FormError:rW,FormLabel:rY,Heading:rJ,Input:tR,Kbd:nR,Link:nF,List:nL,Menu:nZ,Modal:n9,NumberInput:rh,PinInput:rg,Popover:rx,Progress:tK,Radio:ne,Select:na,Skeleton:nc,SkipLink:np,Slider:n_,Spinner:nC,Stat:nT,Switch:eP,Table:eL,Tabs:to,Tag:t_,Textarea:tI,Tooltip:tq,Card:ih,Stepper:L},styles:iJ,config:iX},i0={semanticTokens:iK,direction:"ltr",components:{},...O,styles:iJ,config:iX}},64836:function(e,t,n){"use strict";n.d(t,{Qi:function(){return v},VW:function(){return b},OX:function(){return y}});var r=n(28347),i=n(2784),o=n(90359),a=n(3171),s=n(31053),l=n(58175),u=n(7165),c=n(59576),d=n(52322),h={initial:e=>{let{position:t}=e,n=["top","bottom"].includes(t)?"y":"x",r=["top-right","bottom-right"].includes(t)?1:-1;return"bottom"===t&&(r=1),{opacity:0,[n]:24*r}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},p=(0,i.memo)(e=>{let{id:t,message:n,onCloseComplete:p,onRequestRemove:f,requestClose:m=!1,position:g="bottom",duration:v=5e3,containerStyle:y,motionVariants:b=h,toastSpacing:k="0.5rem"}=e,[w,x]=(0,i.useState)(v),_=(0,l.hO)();(0,a.r)(()=>{_||null==p||p()},[_]),(0,a.r)(()=>{x(v)},[v]);let S=()=>{_&&f()};(0,i.useEffect)(()=>{_&&m&&f()},[_,m,f]),function(e,t){let n=(0,o.W)(e);(0,i.useEffect)(()=>{if(null==t)return;let e=null;return e=window.setTimeout(()=>{n()},t),()=>{e&&window.clearTimeout(e)}},[t,n])}(S,w);let E=(0,i.useMemo)(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:k,...y}),[y,k]),D=(0,i.useMemo)(()=>(0,r.sv)(g),[g]);return(0,d.jsx)(u.E.div,{layout:!0,className:"chakra-toast",variants:b,initial:"initial",animate:"animate",exit:"exit",onHoverStart:()=>x(null),onHoverEnd:()=>x(v),custom:{position:g},style:D,children:(0,d.jsx)(c.m.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:E,children:(0,s.Pu)(n,{id:t,onClose:S})})})});p.displayName="ToastComponent";var f=n(13905),m=n(88241),g=n(332),[v,y]=(0,n(9165).k)({name:"ToastOptionsContext",strict:!1}),b=e=>{let t=(0,i.useSyncExternalStore)(f.fp.subscribe,f.fp.getState,f.fp.getState),{motionVariants:n,component:o=p,portalProps:a}=e,s=Object.keys(t),l=s.map(e=>{let i=t[e];return(0,d.jsx)("div",{role:"region","aria-live":"polite","aria-label":`Notifications-${e}`,id:`chakra-toast-manager-${e}`,style:(0,r.IW)(e),children:(0,d.jsx)(m.M,{initial:!1,children:i.map(e=>(0,d.jsx)(o,{motionVariants:n,...e},e.id))})},e)});return(0,d.jsx)(g.h,{...a,children:l})}},70065:function(e,t,n){"use strict";n.d(t,{p:function(){return s}});var r=n(64836),i=n(13905),o=n(48929),a=n(2784);function s(e){let{theme:t}=(0,o.uP)(),n=(0,r.OX)();return(0,a.useMemo)(()=>(0,i.Cj)(t.direction,{...n,...e}),[e,t.direction,n])}},54839:function(e,t,n){"use strict";n.d(t,{I:function(){return c}});var r=n(64836),i=n(13905),o=n(15706),a=n(50019),s=n(48696),l=n(52322),u={theme:s.rS,colorMode:"light",toggleColorMode:()=>{},setColorMode:()=>{},defaultOptions:{duration:5e3,variant:"solid"},forced:!1};function c({theme:e=u.theme,colorMode:t=u.colorMode,toggleColorMode:n=u.toggleColorMode,setColorMode:s=u.setColorMode,defaultOptions:c=u.defaultOptions,motionVariants:d,toastSpacing:h,component:p,forced:f}=u){let m={colorMode:t,setColorMode:s,toggleColorMode:n,forced:f};return{ToastContainer:()=>(0,l.jsx)(o.f6,{theme:e,children:(0,l.jsx)(a.kc.Provider,{value:m,children:(0,l.jsx)(r.VW,{defaultOptions:c,motionVariants:d,toastSpacing:h,component:p})})}),toast:(0,i.Cj)(e.direction,c)}}},13905:function(e,t,n){"use strict";n.d(t,{Cj:function(){return g},fp:function(){return h}});var r=n(28347),i=n(47443),o=n(52929),a=n(80877),s=n(74444),l=n(59576),u=n(81672),c=n(31053),d=n(52322),h=function(e){let t=e,n=new Set,i=e=>{t=e(t),n.forEach(e=>e())};return{getState:()=>t,subscribe:t=>(n.add(t),()=>{i(()=>e),n.delete(t)}),removeToast:(e,t)=>{i(n=>({...n,[t]:n[t].filter(t=>t.id!=e)}))},notify:(e,t)=>{let n=function(e,t={}){var n,r;p+=1;let i=null!=(n=t.id)?n:p,o=null!=(r=t.position)?r:"bottom";return{id:i,message:e,position:o,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>h.removeToast(String(i),o),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}(e,t),{position:r,id:o}=n;return i(e=>{var t,i;let o=r.includes("top"),a=o?[n,...null!=(t=e[r])?t:[]]:[...null!=(i=e[r])?i:[],n];return{...e,[r]:a}}),o},update:(e,t)=>{e&&i(n=>{let i={...n},{position:o,index:a}=(0,r.Dn)(i,e);return o&&-1!==a&&(i[o][a]={...i[o][a],...t,message:m(t)}),i})},closeAll:({positions:e}={})=>{i(t=>(null!=e?e:["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((e,n)=>(e[n]=t[n].map(e=>({...e,requestClose:!0})),e),{...t}))},close:e=>{i(t=>{let n=(0,r.ym)(t,e);return n?{...t,[n]:t[n].map(t=>t.id==e?{...t,requestClose:!0}:t)}:t})},isActive:e=>!!(0,r.Dn)(h.getState(),e).position}}({top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]}),p=0,f=e=>{let{status:t,variant:n="solid",id:r,title:c,isClosable:h,onClose:p,description:f,colorScheme:m,icon:g}=e,v=r?{root:`toast-${r}`,title:`toast-${r}-title`,description:`toast-${r}-description`}:void 0;return(0,d.jsxs)(i.b,{addRole:!1,status:t,variant:n,id:null==v?void 0:v.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:m,children:[(0,d.jsx)(o.z,{children:g}),(0,d.jsxs)(l.m.div,{flex:"1",maxWidth:"100%",children:[c&&(0,d.jsx)(a.C,{id:null==v?void 0:v.title,children:c}),f&&(0,d.jsx)(s.X,{id:null==v?void 0:v.description,display:"block",children:f})]}),h&&(0,d.jsx)(u.P,{size:"sm",onClick:p,position:"absolute",insetEnd:1,top:1})]})};function m(e={}){let{render:t,toastComponent:n=f}=e;return r=>"function"==typeof t?t({...r,...e}):(0,d.jsx)(n,{...r,...e})}function g(e,t){let n=n=>{var r;return{...t,...n,position:function(e,t){var n;let r=null!=e?e:"bottom",i={"top-start":{ltr:"top-left",rtl:"top-right"},"top-end":{ltr:"top-right",rtl:"top-left"},"bottom-start":{ltr:"bottom-left",rtl:"bottom-right"},"bottom-end":{ltr:"bottom-right",rtl:"bottom-left"}}[r];return null!=(n=null==i?void 0:i[t])?n:r}(null!=(r=null==n?void 0:n.position)?r:null==t?void 0:t.position,e)}},r=e=>{let t=n(e),r=m(t);return h.notify(r,t)};return r.update=(e,t)=>{h.update(e,n(t))},r.promise=(e,t)=>{let n=r({...t.loading,status:"loading",duration:null});e.then(e=>r.update(n,{status:"success",duration:5e3,...(0,c.Pu)(t.success,e)})).catch(e=>r.update(n,{status:"error",duration:5e3,...(0,c.Pu)(t.error,e)}))},r.closeAll=h.closeAll,r.close=h.close,r.isActive=h.isActive,r}},28347:function(e,t,n){"use strict";n.d(t,{Dn:function(){return i},IW:function(){return s},sv:function(){return a},ym:function(){return o}});var r=(e,t)=>e.find(e=>e.id===t);function i(e,t){let n=o(e,t),r=n?e[n].findIndex(e=>e.id===t):-1;return{position:n,index:r}}function o(e,t){for(let[n,i]of Object.entries(e))if(r(i,t))return n}function a(e){let t=e.includes("right"),n=e.includes("left"),r="center";return t&&(r="flex-end"),n&&(r="flex-start"),{display:"flex",flexDirection:"column",alignItems:r}}function s(e){let t=e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,n=e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,r=e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",i=e.includes("right")?void 0:"env(safe-area-inset-left, 0px)";return{position:"fixed",zIndex:"var(--toast-z-index, 5500)",pointerEvents:"none",display:"flex",flexDirection:"column",margin:"top"===e||"bottom"===e?"0 auto":void 0,top:t,bottom:n,right:r,left:i}}},41914:function(e,t,n){"use strict";n.d(t,{Lj:function(){return r},Sh:function(){return a},js:function(){return o},p$:function(){return s}});var r={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},i={slideLeft:{position:{left:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"-100%",y:0}},slideRight:{position:{right:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"100%",y:0}},slideUp:{position:{top:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"-100%"}},slideDown:{position:{bottom:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"100%"}}};function o(e){var t;let n=null!=(t=null==e?void 0:e.direction)?t:"right";switch(n){case"right":default:return i.slideRight;case"left":return i.slideLeft;case"bottom":return i.slideDown;case"top":return i.slideUp}}var a={enter:{duration:.2,ease:r.easeOut},exit:{duration:.1,ease:r.easeIn}},s={enter:(e,t)=>({...e,delay:"number"==typeof t?t:null==t?void 0:t.enter}),exit:(e,t)=>({...e,delay:"number"==typeof t?t:null==t?void 0:t.exit})}},55070:function(e,t,n){"use strict";n.d(t,{M:function(){return d}});var r=n(41914),i=n(31053),o=n(88241),a=n(7165),s=n(2784),l=n(52322),u={exit:{duration:.15,ease:r.Lj.easeInOut},enter:{type:"spring",damping:25,stiffness:180}},c={exit:({direction:e,transition:t,transitionEnd:n,delay:i})=>{var o;let{exit:a}=(0,r.js)({direction:e});return{...a,transition:null!=(o=null==t?void 0:t.exit)?o:r.p$.exit(u.exit,i),transitionEnd:null==n?void 0:n.exit}},enter:({direction:e,transitionEnd:t,transition:n,delay:i})=>{var o;let{enter:a}=(0,r.js)({direction:e});return{...a,transition:null!=(o=null==n?void 0:n.enter)?o:r.p$.enter(u.enter,i),transitionEnd:null==t?void 0:t.enter}}},d=(0,s.forwardRef)(function(e,t){let{direction:n="right",style:s,unmountOnExit:u,in:d,className:h,transition:p,transitionEnd:f,delay:m,motionProps:g,...v}=e,y=(0,r.js)({direction:n}),b=Object.assign({position:"fixed"},y.position,s),k=!u||d&&u,w=d||u?"enter":"exit",x={transitionEnd:f,transition:p,direction:n,delay:m};return(0,l.jsx)(o.M,{custom:x,children:k&&(0,l.jsx)(a.E.div,{...v,ref:t,initial:"exit",className:(0,i.cx)("chakra-slide",h),animate:w,exit:"exit",custom:x,variants:c,style:b,...g})})});d.displayName="Slide"},87651:function(e,t,n){"use strict";n.d(t,{U:function(){return h}});var r=n(41914),i=n(31053),o=n(88241),a=n(7165),s=n(2784),l=n(52322),u=e=>null!=e&&parseInt(e.toString(),10)>0,c={exit:{height:{duration:.2,ease:r.Lj.ease},opacity:{duration:.3,ease:r.Lj.ease}},enter:{height:{duration:.3,ease:r.Lj.ease},opacity:{duration:.4,ease:r.Lj.ease}}},d={exit:({animateOpacity:e,startingHeight:t,transition:n,transitionEnd:i,delay:o})=>{var a;return{...e&&{opacity:u(t)?1:0},height:t,transitionEnd:null==i?void 0:i.exit,transition:null!=(a=null==n?void 0:n.exit)?a:r.p$.exit(c.exit,o)}},enter:({animateOpacity:e,endingHeight:t,transition:n,transitionEnd:i,delay:o})=>{var a;return{...e&&{opacity:1},height:t,transitionEnd:null==i?void 0:i.enter,transition:null!=(a=null==n?void 0:n.enter)?a:r.p$.enter(c.enter,o)}}},h=(0,s.forwardRef)((e,t)=>{let{in:n,unmountOnExit:r,animateOpacity:u=!0,startingHeight:c=0,endingHeight:h="auto",style:p,className:f,transition:m,transitionEnd:g,...v}=e,[y,b]=(0,s.useState)(!1);(0,s.useEffect)(()=>{let e=setTimeout(()=>{b(!0)});return()=>clearTimeout(e)},[]),(0,i.ZK)({condition:Number(c)>0&&!!r,message:"startingHeight and unmountOnExit are mutually exclusive. You can't use them together"});let k=parseFloat(c.toString())>0,w={startingHeight:c,endingHeight:h,animateOpacity:u,transition:y?m:{enter:{duration:0}},transitionEnd:{enter:null==g?void 0:g.enter,exit:r?null==g?void 0:g.exit:{...null==g?void 0:g.exit,display:k?"block":"none"}}},x=!r||n,_=n||r?"enter":"exit";return(0,l.jsx)(o.M,{initial:!1,custom:w,children:x&&(0,l.jsx)(a.E.div,{ref:t,...v,className:(0,i.cx)("chakra-collapse",f),style:{overflow:"hidden",display:"block",...p},custom:w,variants:d,initial:!!r&&"exit",animate:_,exit:"exit"})})});h.displayName="Collapse"},78071:function(e,t,n){"use strict";n.d(t,{p:function(){return c},u:function(){return u}});var r=n(41914),i=n(31053),o=n(88241),a=n(7165),s=n(2784),l=n(52322),u={initial:"exit",animate:"enter",exit:"exit",variants:{enter:({transition:e,transitionEnd:t,delay:n}={})=>{var i;return{opacity:1,transition:null!=(i=null==e?void 0:e.enter)?i:r.p$.enter(r.Sh.enter,n),transitionEnd:null==t?void 0:t.enter}},exit:({transition:e,transitionEnd:t,delay:n}={})=>{var i;return{opacity:0,transition:null!=(i=null==e?void 0:e.exit)?i:r.p$.exit(r.Sh.exit,n),transitionEnd:null==t?void 0:t.exit}}}},c=(0,s.forwardRef)(function(e,t){let{unmountOnExit:n,in:r,className:s,transition:c,transitionEnd:d,delay:h,...p}=e,f=r||n?"enter":"exit",m=!n||r&&n,g={transition:c,transitionEnd:d,delay:h};return(0,l.jsx)(o.M,{custom:g,children:m&&(0,l.jsx)(a.E.div,{ref:t,className:(0,i.cx)("chakra-fade",s),custom:g,...u,animate:f,...p})})});c.displayName="Fade"},85954:function(e,t,n){"use strict";n.d(t,{t5:function(){return o}});var r=n(4428),i=e=>e.offsetWidth>0&&e.offsetHeight>0;function o(e){let t=Array.from(e.querySelectorAll("input:not(:disabled):not([disabled]),select:not(:disabled):not([disabled]),textarea:not(:disabled):not([disabled]),embed,iframe,object,a[href],area[href],button:not(:disabled):not([disabled]),[tabindex],audio[controls],video[controls],*[tabindex]:not([aria-disabled]),*[contenteditable]"));return t.unshift(e),t.filter(e=>(0,r.EB)(e)&&i(e))}},2208:function(e,t,n){"use strict";n.d(t,{y:function(){return d},px:function(){return o}});var r=n(82115),i=n(93429);function o(e){if(null==e)return e;let{unitless:t}=function(e){let t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}(e);return t||(0,i.hj)(e)?`${e}px`:e}var a=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,s=e=>(0,r.sq)(Object.entries(e).sort(a));function l(e){let t=s(e);return Object.assign(Object.values(t),t)}function u(e){var t;if(!e)return e;e=null!=(t=o(e))?t:e;let n=e.endsWith("px")?-.02:-.01;return(0,i.hj)(e)?`${e+n}`:e.replace(/(\d+\.?\d*)/u,e=>`${parseFloat(e)+n}`)}function c(e,t){let n=["@media screen"];return e&&n.push("and",`(min-width: ${o(e)})`),t&&n.push("and",`(max-width: ${o(t)})`),n.join(" ")}function d(e){var t;if(!e)return null;e.base=null!=(t=e.base)?t:"0px";let n=l(e),r=Object.entries(e).sort(a).map(([e,t],n,r)=>{var i;let[,o]=null!=(i=r[n+1])?i:[];return o=parseFloat(o)>0?u(o):void 0,{_minW:u(t),breakpoint:e,minW:t,maxW:o,maxWQuery:c(null,o),minWQuery:c(t),minMaxQuery:c(t,o)}}),o=function(e){let t=Object.keys(s(e));return new Set(t)}(e),d=Array.from(o.values());return{keys:o,normalized:n,isResponsive(e){let t=Object.keys(e);return t.length>0&&t.every(e=>o.has(e))},asObject:s(e),asArray:l(e),details:r,media:[null,...n.map(e=>c(e)).slice(1)],toArrayValue(e){if(!(0,i.Kn)(e))throw Error("toArrayValue: value must be an object");let t=d.map(t=>{var n;return null!=(n=e[t])?n:null});for(;null===function(e){let t=null==e?0:e.length;return t?e[t-1]:void 0}(t);)t.pop();return t},toObjectValue(e){if(!Array.isArray(e))throw Error("toObjectValue: value must be an array");return e.reduce((e,t,n)=>{let r=d[n];return null!=r&&null!=t&&(e[r]=t),e},{})}}}},85642:function(e,t,n){"use strict";n.d(t,{Yq:function(){return i}});var r=Object.freeze(["base","sm","md","lg","xl","2xl"]);function i(e,t=r){let n={};return e.forEach((e,r)=>{let i=t[r];null!=e&&(n[i]=e)}),n}},79729:function(e,t,n){"use strict";let r;n.d(t,{Pu:function(){return a},ZK:function(){return u},ZT:function(){return l},v0:function(){return s}});var i,o=n(93429);function a(e,...t){return(0,o.mf)(e)?e(...t):e}function s(...e){return function(t){e.some(e=>(null==e||e(t),null==t?void 0:t.defaultPrevented))}}var l=()=>{},u=(i=e=>()=>{let{condition:t,message:n}=e;t&&o.Ts&&console.warn(n)},function(...e){return i&&(r=i.apply(this,e),i=null),r})},73200:function(e,t,n){"use strict";function r(e){return null!=e&&"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function i(e){var t;if(!r(e))return!1;let n=null!=(t=e.ownerDocument.defaultView)?t:window;return e instanceof n.HTMLElement}function o(e){var t;return r(e)&&null!=(t=e.ownerDocument)?t:document}n.d(t,{Re:function(){return i},cx:function(){return s},jU:function(){return a},lZ:function(){return o}});var a=!!("undefined"!=typeof window&&window.document&&window.document.createElement),s=(...e)=>e.filter(Boolean).join(" ")},4428:function(e,t,n){"use strict";n.d(t,{EB:function(){return s},H9:function(){return a},cK:function(){return o}});var r=n(73200),i=e=>e.hasAttribute("tabindex");function o(e){return(0,r.Re)(e)&&"input"===e.localName&&"select"in e}function a(e){let t=(0,r.Re)(e)?(0,r.lZ)(e):document;return t.activeElement===e}function s(e){var t;if(!(0,r.Re)(e)||function e(t){return!!(t.parentElement&&e(t.parentElement))||t.hidden}(e)||!0==!!(t=e).getAttribute("disabled")||!0==!!t.getAttribute("aria-disabled"))return!1;let{localName:n}=e;if(["input","select","textarea","button"].indexOf(n)>=0)return!0;let o={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return n in o?o[n]():!!function(e){let t=e.getAttribute("contenteditable");return"false"!==t&&null!=t}(e)||i(e)}},99903:function(e,t,n){"use strict";n.d(t,{T:function(){return a}});var r=n(4428),i=n(73200),o=n(79729);function a(e,t={}){let{isActive:n=r.H9,nextTick:a,preventScroll:l=!0,selectTextIfInput:u=!0}=t;if(!e||n(e))return -1;function c(){if(!e){(0,o.ZK)({condition:!0,message:"[chakra-ui]: can't call focus() on `null` or `undefined` element"});return}if(function(){if(null==s){s=!1;try{let e=document.createElement("div");e.focus({get preventScroll(){return s=!0,!0}})}catch(e){}}return s}())e.focus({preventScroll:l});else if(e.focus(),l){let t=function(e){var t;let n=(0,i.lZ)(e),r=null!=(t=n.defaultView)?t:window,o=e.parentNode,a=[],s=n.scrollingElement||n.documentElement;for(;o instanceof r.HTMLElement&&o!==s;)(o.offsetHeight{t.includes(r)||(n[r]=e[r])}),n}function i(e,t){let n={};return t.forEach(t=>{t in e&&(n[t]=e[t])}),n}n.d(t,{CE:function(){return r},K1:function(){return u},Wf:function(){return o},YU:function(){return s},ei:function(){return i},lw:function(){return a},sq:function(){return l}}),n(63637);var o=(e=>{let t=new WeakMap;return(n,r,i,o)=>{if(void 0===n)return e(n,r,i);t.has(n)||t.set(n,new Map);let a=t.get(n);if(a.has(r))return a.get(r);let s=e(n,r,i,o);return a.set(r,s),s}})(function(e,t,n,r){let i="string"==typeof t?t.split("."):[t];for(r=0;r{let i=e[r],o=t(i,r,e);o&&(n[r]=i)}),n}var s=e=>a(e,e=>null!=e),l=e=>e.reduce((e,[t,n])=>(e[t]=n,e),{}),u=(e,t,n)=>{var r,i,o;return null!=(o=null==(i=null==(r=e.__cssMap)?void 0:r[`${t}.${n}`])?void 0:i.varRef)?o:n}},51679:function(e,t,n){"use strict";n.d(t,{N:function(){return r}});var r={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"}},50423:function(e,t,n){"use strict";n.d(t,{TX:function(){return o}});var r=n(51679),i=n(59576),o=(0,i.m)("span",{baseStyle:r.N});o.displayName="VisuallyHidden",(0,i.m)("input",{baseStyle:r.N}).displayName="VisuallyHiddenInput"},81674:function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n0;)t+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return t}function ep(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function ef(e){return e.classList?ep(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(e){return e})}function em(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function eg(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function ev(e){return e.size!==ed.size||e.x!==ed.x||e.y!==ed.y||e.rotate!==ed.rotate||e.flipX||e.flipY}function ey(){var e=eu.cssPrefix,t=eu.replacementClass,n=':root, :host {\n --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";\n --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";\n --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";\n --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";\n --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";\n --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 6 Sharp";\n --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";\n}\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n overflow: visible;\n box-sizing: content-box;\n}\n\n.svg-inline--fa {\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-2xs {\n vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n vertical-align: -0.0714285705em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n top: 0.25em;\n}\n.svg-inline--fa.fa-fw {\n width: var(--fa-fw-width, 1.25em);\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: var(--fa-counter-background-color, #ff253a);\n border-radius: var(--fa-counter-border-radius, 1em);\n box-sizing: border-box;\n color: var(--fa-inverse, #fff);\n line-height: var(--fa-counter-line-height, 1);\n max-width: var(--fa-counter-max-width, 5em);\n min-width: var(--fa-counter-min-width, 1.5em);\n overflow: hidden;\n padding: var(--fa-counter-padding, 0.25em 0.5em);\n right: var(--fa-right, 0);\n text-overflow: ellipsis;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-counter-scale, 0.25));\n transform: scale(var(--fa-counter-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: var(--fa-bottom, 0);\n right: var(--fa-right, 0);\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: var(--fa-bottom, 0);\n left: var(--fa-left, 0);\n right: auto;\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n top: var(--fa-top, 0);\n right: var(--fa-right, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: var(--fa-left, 0);\n right: auto;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-2xs {\n font-size: 0.625em;\n line-height: 0.1em;\n vertical-align: 0.225em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n line-height: 0.0833333337em;\n vertical-align: 0.125em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n line-height: 0.0714285718em;\n vertical-align: 0.0535714295em;\n}\n\n.fa-lg {\n font-size: 1.25em;\n line-height: 0.05em;\n vertical-align: -0.075em;\n}\n\n.fa-xl {\n font-size: 1.5em;\n line-height: 0.0416666682em;\n vertical-align: -0.125em;\n}\n\n.fa-2xl {\n font-size: 2em;\n line-height: 0.03125em;\n vertical-align: -0.1875em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: var(--fa-li-margin, 2.5em);\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: calc(var(--fa-li-width, 2em) * -1);\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n.fa-border {\n border-color: var(--fa-border-color, #eee);\n border-radius: var(--fa-border-radius, 0.1em);\n border-style: var(--fa-border-style, solid);\n border-width: var(--fa-border-width, 0.08em);\n padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\n}\n\n.fa-pull-left {\n float: left;\n margin-right: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right {\n float: right;\n margin-left: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n -webkit-animation-name: fa-beat;\n animation-name: fa-beat;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n -webkit-animation-name: fa-bounce;\n animation-name: fa-bounce;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n -webkit-animation-name: fa-fade;\n animation-name: fa-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n -webkit-animation-name: fa-beat-fade;\n animation-name: fa-beat-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n -webkit-animation-name: fa-flip;\n animation-name: fa-flip;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n -webkit-animation-name: fa-shake;\n animation-name: fa-shake;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 2s);\n animation-duration: var(--fa-animation-duration, 2s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, steps(8));\n animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fa-beat,\n.fa-bounce,\n.fa-fade,\n.fa-beat-fade,\n.fa-flip,\n.fa-pulse,\n.fa-shake,\n.fa-spin,\n.fa-spin-pulse {\n -webkit-animation-delay: -1ms;\n animation-delay: -1ms;\n -webkit-animation-duration: 1ms;\n animation-duration: 1ms;\n -webkit-animation-iteration-count: 1;\n animation-iteration-count: 1;\n -webkit-transition-delay: 0s;\n transition-delay: 0s;\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n }\n}\n@-webkit-keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@-webkit-keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@-webkit-keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@-webkit-keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@-webkit-keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@-webkit-keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n -webkit-transform: rotate(var(--fa-rotate-angle, 0));\n transform: rotate(var(--fa-rotate-angle, 0));\n}\n\n.fa-stack {\n display: inline-block;\n vertical-align: middle;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n z-index: var(--fa-stack-z-index, auto);\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse,\n.fa-duotone.fa-inverse {\n color: var(--fa-inverse, #fff);\n}';if("fa"!==e||t!==M){var r=RegExp("\\.".concat("fa","\\-"),"g"),i=RegExp("\\--".concat("fa","\\-"),"g"),o=RegExp("\\.".concat(M),"g");n=n.replace(r,".".concat(e,"-")).replace(i,"--".concat(e,"-")).replace(o,".".concat(t))}return n}var eb=!1;function ek(){eu.autoAddCss&&!eb&&(!function(e){if(e&&A){var t=j.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=j.head.childNodes,r=null,i=n.length-1;i>-1;i--){var o=n[i];["STYLE","LINK"].indexOf((o.tagName||"").toUpperCase())>-1&&(r=o)}j.head.insertBefore(t,r)}}(ey()),eb=!0)}var ew=C||{};ew[R]||(ew[R]={}),ew[R].styles||(ew[R].styles={}),ew[R].hooks||(ew[R].hooks={}),ew[R].shims||(ew[R].shims=[]);var ex=ew[R],e_=[],eS=!1;function eE(e){var t,n=e.tag,r=e.attributes,i=e.children;return"string"==typeof e?em(e):"<".concat(n," ").concat(Object.keys((t=void 0===r?{}:r)||{}).reduce(function(e,n){return e+"".concat(n,'="').concat(em(t[n]),'" ')},"").trim(),">").concat((void 0===i?[]:i).map(eE).join(""),"")}function eD(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}!A||(eS=(j.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(j.readyState))||j.addEventListener("DOMContentLoaded",function e(){j.removeEventListener("DOMContentLoaded",e),eS=1,e_.map(function(e){return e()})});var eC=function(e,t,n,r){var i,o,a,s=Object.keys(e),l=s.length,u=void 0!==r?function(e,n,i,o){return t.call(r,e,n,i,o)}:t;for(void 0===n?(i=1,a=e[s[0]]):(i=0,a=n);i=55296&&i<=56319&&n2&&void 0!==arguments[2]?arguments[2]:{},r=n.skipHooks,o=eO(t);"function"!=typeof ex.hooks.addPack||void 0!==r&&r?ex.styles[e]=i(i({},ex.styles[e]||{}),o):ex.hooks.addPack(e,eO(t)),"fas"===e&&eT("fa",t)}var eA=ex.styles,eP=ex.shims,eR=(s(v={},q,Object.values(Y[q])),s(v,$,Object.values(Y[$])),v),eM=null,eF={},eN={},eI={},eL={},eB={},ez=(s(y={},q,Object.keys(W[q])),s(y,$,Object.keys(W[$])),y),eU=function(){var e=function(e){return eC(eA,function(t,n,r){return t[r]=eC(n,e,{}),t},{})};eF=e(function(e,t,n){return t[3]&&(e[t[3]]=n),t[2]&&t[2].filter(function(e){return"number"==typeof e}).forEach(function(t){e[t.toString(16)]=n}),e}),eN=e(function(e,t,n){return e[n]=n,t[2]&&t[2].filter(function(e){return"string"==typeof e}).forEach(function(t){e[t]=n}),e}),eB=e(function(e,t,n){var r=t[2];return e[n]=n,r.forEach(function(t){e[t]=n}),e});var t="far"in eA||eu.autoFetchSvg,n=eC(eP,function(e,n){var r=n[0],i=n[1],o=n[2];return"far"!==i||t||(i="fas"),"string"==typeof r&&(e.names[r]={prefix:i,iconName:o}),"number"==typeof r&&(e.unicodes[r.toString(16)]={prefix:i,iconName:o}),e},{names:{},unicodes:{}});eI=n.names,eL=n.unicodes,eM=eW(eu.styleDefault,{family:eu.familyDefault})};function eq(e,t){return(eF[e]||{})[t]}function e$(e,t){return(eB[e]||{})[t]}function eH(e){return eI[e]||{prefix:null,iconName:null}}ec.push(function(e){eM=eW(e.styleDefault,{family:eu.familyDefault})}),eU();var eV=function(){return{prefix:null,iconName:null,rest:[]}};function eW(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.family,r=void 0===n?q:n,i=W[r][e],o=G[r][e]||G[r][i],a=e in ex.styles?e:null;return o||a||null}var eG=(s(b={},q,Object.keys(Y[q])),s(b,$,Object.keys(Y[$])),b);function eY(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.skipLookups,i=void 0!==r&&r,o=(s(t={},q,"".concat(eu.cssPrefix,"-").concat(q)),s(t,$,"".concat(eu.cssPrefix,"-").concat($)),t),a=null,l=q;(e.includes(o[q])||e.some(function(e){return eG[q].includes(e)}))&&(l=q),(e.includes(o[$])||e.some(function(e){return eG[$].includes(e)}))&&(l=$);var u=e.reduce(function(e,t){var n,r,s,u,c=(n=eu.cssPrefix,s=(r=t.split("-"))[0],u=r.slice(1).join("-"),s!==n||""===u||~eo.indexOf(u)?null:u);if(eA[t]?(a=t=eR[l].includes(t)?Z[l][t]:t,e.prefix=t):ez[l].indexOf(t)>-1?(a=t,e.prefix=eW(t,{family:l})):c?e.iconName=c:t!==eu.replacementClass&&t!==o[q]&&t!==o[$]&&e.rest.push(t),!i&&e.prefix&&e.iconName){var d="fa"===a?eH(e.iconName):{},h=e$(e.prefix,e.iconName);d.prefix&&(a=null),e.iconName=d.iconName||h||e.iconName,e.prefix=d.prefix||e.prefix,"far"!==e.prefix||eA.far||!eA.fas||eu.autoFetchSvg||(e.prefix="fas")}return e},eV());return(e.includes("fa-brands")||e.includes("fab"))&&(u.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(u.prefix="fad"),!u.prefix&&l===$&&(eA.fass||eu.autoFetchSvg)&&(u.prefix="fass",u.iconName=e$(u.prefix,u.iconName)||u.iconName),("fa"===u.prefix||"fa"===a)&&(u.prefix=eM||"fas"),u}var eZ=function(){var e,t;function n(){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,n),this.definitions={}}return e=[{key:"add",value:function(){for(var e=this,t=arguments.length,n=Array(t),r=0;r0&&s.forEach(function(t){"string"==typeof t&&(e[i][t]=a)}),e[i][o]=a}),e}}],a(n.prototype,e),t&&a(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}(),eK=[],eJ={},eX={},eQ=Object.keys(eX);function e0(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i1?t-1:0),r=1;r0&&void 0!==arguments[0]?arguments[0]:{};return A?(e1("beforeI2svg",e),e2("pseudoElements2svg",e),e2("i2svg",e)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.autoReplaceSvgRoot;!1===eu.autoReplaceSvg&&(eu.autoReplaceSvg=!0),eu.observeMutations=!0,e=function(){e6({autoReplaceSvgRoot:n}),e1("watch",t)},A&&(eS?setTimeout(e,0):e_.push(e))}},parse:{icon:function(e){if(null===e)return null;if("object"===o(e)&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:e$(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&2===e.length){var t=0===e[1].indexOf("fa-")?e[1].slice(3):e[1],n=eW(e[0]);return{prefix:n,iconName:e$(n,t)||t}}if("string"==typeof e&&(e.indexOf("".concat(eu.cssPrefix,"-"))>-1||e.match(K))){var r=eY(e.split(" "),{skipLookups:!0});return{prefix:r.prefix||eM,iconName:e$(r.prefix,r.iconName)||r.iconName}}if("string"==typeof e){var i=eM;return{prefix:i,iconName:e$(i,e)||e}}}},library:e5,findIconDefinition:e3,toHtml:eE},e6=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.autoReplaceSvgRoot,n=void 0===t?j:t;(Object.keys(ex.styles).length>0||eu.autoFetchSvg)&&A&&eu.autoReplaceSvg&&e4.dom.i2svg({node:n})};function e8(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(e){return eE(e)})}}),Object.defineProperty(e,"node",{get:function(){if(A){var t=j.createElement("div");return t.innerHTML=e.html,t.children}}}),e}function e9(e){var t,n,r,o,a,s,l=e.icons,u=l.main,c=l.mask,d=e.prefix,h=e.iconName,p=e.transform,f=e.symbol,m=e.title,g=e.maskId,v=e.titleId,y=e.extra,b=e.watchable,k=c.found?c:u,w=k.width,x=k.height,_="fak"===d,S=[eu.replacementClass,h?"".concat(eu.cssPrefix,"-").concat(h):""].filter(function(e){return -1===y.classes.indexOf(e)}).filter(function(e){return""!==e||!!e}).concat(y.classes).join(" "),E={children:[],attributes:i(i({},y.attributes),{},{"data-prefix":d,"data-icon":h,class:S,role:y.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(w," ").concat(x)})},D=_&&!~y.classes.indexOf("fa-fw")?{width:"".concat(w/x*1,"em")}:{};void 0!==b&&b&&(E.attributes[F]=""),m&&(E.children.push({tag:"title",attributes:{id:E.attributes["aria-labelledby"]||"title-".concat(v||eh())},children:[m]}),delete E.attributes.title);var C=i(i({},E),{},{prefix:d,iconName:h,main:u,mask:c,maskId:g,transform:p,symbol:f,styles:i(i({},D),y.styles)}),j=c.found&&u.found?e2("generateAbstractMask",C)||{children:[],attributes:{}}:e2("generateAbstractIcon",C)||{children:[],attributes:{}},O=j.children,T=j.attributes;return(C.children=O,C.attributes=T,f)?(t=C.prefix,n=C.iconName,r=C.children,o=C.attributes,s=!0===(a=C.symbol)?"".concat(t,"-").concat(eu.cssPrefix,"-").concat(n):a,[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:i(i({},o),{},{id:s}),children:r}]}]):function(e){var t=e.children,n=e.main,r=e.mask,o=e.attributes,a=e.styles,s=e.transform;if(ev(s)&&n.found&&!r.found){var l={x:n.width/n.height/2,y:.5};o.style=eg(i(i({},a),{},{"transform-origin":"".concat(l.x+s.x/16,"em ").concat(l.y+s.y/16,"em")}))}return[{tag:"svg",attributes:o,children:t}]}(C)}function e7(e){var t,n,r,o,a,s,l,u=e.content,c=e.width,d=e.height,h=e.transform,p=e.title,f=e.extra,m=e.watchable,g=i(i(i({},f.attributes),p?{title:p}:{}),{},{class:f.classes.join(" ")});void 0!==m&&m&&(g[F]="");var v=i({},f.styles);ev(h)&&(v.transform=(n=(t={transform:h,startCentered:!0,width:c,height:d}).transform,r=t.width,o=t.height,s=void 0!==(a=t.startCentered)&&a,l="",s&&P?l+="translate(".concat(n.x/16-(void 0===r?16:r)/2,"em, ").concat(n.y/16-(void 0===o?16:o)/2,"em) "):s?l+="translate(calc(-50% + ".concat(n.x/16,"em), calc(-50% + ").concat(n.y/16,"em)) "):l+="translate(".concat(n.x/16,"em, ").concat(n.y/16,"em) "),l+="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") ")+"rotate(".concat(n.rotate,"deg) ")),v["-webkit-transform"]=v.transform);var y=eg(v);y.length>0&&(g.style=y);var b=[];return b.push({tag:"span",attributes:g,children:[u]}),p&&b.push({tag:"span",attributes:{class:"sr-only"},children:[p]}),b}var te=ex.styles;function tt(e){var t=e[0],n=e[1],r=l(e.slice(4),1)[0];return{found:!0,width:t,height:n,icon:Array.isArray(r)?{tag:"g",attributes:{class:"".concat(eu.cssPrefix,"-").concat(er.GROUP)},children:[{tag:"path",attributes:{class:"".concat(eu.cssPrefix,"-").concat(er.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(eu.cssPrefix,"-").concat(er.PRIMARY),fill:"currentColor",d:r[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:r}}}}var tn={found:!1,width:512,height:512};function tr(e,t){var n=t;return"fa"===t&&null!==eu.styleDefault&&(t=eM),new Promise(function(r,o){if(e2("missingIconAbstract"),"fa"===n){var a,s,l=eH(e)||{};e=l.iconName||e,t=l.prefix||t}if(e&&t&&te[t]&&te[t][e])return r(tt(te[t][e]));a=e,s=t,U||eu.showMissingIcons||!a||console.error('Icon with name "'.concat(a,'" and prefix "').concat(s,'" is missing.')),r(i(i({},tn),{},{icon:eu.showMissingIcons&&e&&e2("missingIconAbstract")||{}}))})}var ti=function(){},to=eu.measurePerformance&&T&&T.mark&&T.measure?T:{mark:ti,measure:ti},ta='FA "6.5.2"',ts=function(e){to.mark("".concat(ta," ").concat(e," ends")),to.measure("".concat(ta," ").concat(e),"".concat(ta," ").concat(e," begins"),"".concat(ta," ").concat(e," ends"))},tl={begin:function(e){return to.mark("".concat(ta," ").concat(e," begins")),function(){return ts(e)}},end:ts},tu=function(){};function tc(e){return"string"==typeof(e.getAttribute?e.getAttribute(F):null)}function td(e){return j.createElementNS("http://www.w3.org/2000/svg",e)}function th(e){return j.createElement(e)}var tp={replace:function(e){var t=e[0];if(t.parentNode){if(e[1].forEach(function(e){t.parentNode.insertBefore(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.ceFn,i=void 0===r?"svg"===t.tag?td:th:r;if("string"==typeof t)return j.createTextNode(t);var o=i(t.tag);return Object.keys(t.attributes||[]).forEach(function(e){o.setAttribute(e,t.attributes[e])}),(t.children||[]).forEach(function(t){o.appendChild(e(t,{ceFn:i}))}),o}(e),t)}),null===t.getAttribute(F)&&eu.keepOriginalSource){var n,r=j.createComment((n=" ".concat(t.outerHTML," "),n="".concat(n,"Font Awesome fontawesome.com ")));t.parentNode.replaceChild(r,t)}else t.remove()}},nest:function(e){var t=e[0],n=e[1];if(~ef(t).indexOf(eu.replacementClass))return tp.replace(e);var r=new RegExp("".concat(eu.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){var i=n[0].attributes.class.split(" ").reduce(function(e,t){return t===eu.replacementClass||t.match(r)?e.toSvg.push(t):e.toNode.push(t),e},{toNode:[],toSvg:[]});n[0].attributes.class=i.toSvg.join(" "),0===i.toNode.length?t.removeAttribute("class"):t.setAttribute("class",i.toNode.join(" "))}var o=n.map(function(e){return eE(e)}).join("\n");t.setAttribute(F,""),t.innerHTML=o}};function tf(e){e()}function tm(e,t){var n="function"==typeof t?t:tu;if(0===e.length)n();else{var r=tf;"async"===eu.mutateApproach&&(r=C.requestAnimationFrame||tf),r(function(){var t=!0===eu.autoReplaceSvg?tp.replace:tp[eu.autoReplaceSvg]||tp.replace,r=tl.begin("mutate");e.map(t),r(),n()})}}var tg=!1,tv=null;function ty(e){if(O&&eu.observeMutations){var t=e.treeCallback,n=void 0===t?tu:t,r=e.nodeCallback,i=void 0===r?tu:r,o=e.pseudoElementsCallback,a=void 0===o?tu:o,s=e.observeMutationsRoot,l=void 0===s?j:s;tv=new O(function(e){if(!tg){var t=eM;ep(e).forEach(function(e){if("childList"===e.type&&e.addedNodes.length>0&&!tc(e.addedNodes[0])&&(eu.searchPseudoElements&&a(e.target),n(e.target)),"attributes"===e.type&&e.target.parentNode&&eu.searchPseudoElements&&a(e.target.parentNode),"attributes"===e.type&&tc(e.target)&&~en.indexOf(e.attributeName)){if("class"===e.attributeName&&(o=(r=e.target).getAttribute?r.getAttribute(I):null,s=r.getAttribute?r.getAttribute(L):null,o&&s)){var r,o,s,l,u=eY(ef(e.target)),c=u.prefix,d=u.iconName;e.target.setAttribute(I,c||t),d&&e.target.setAttribute(L,d)}else(l=e.target)&&l.classList&&l.classList.contains&&l.classList.contains(eu.replacementClass)&&i(e.target)}})}}),A&&tv.observe(l,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function tb(e){var t,n,r,o,a,s,l,u,c,d,h,p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},f=(r=e.getAttribute("data-prefix"),o=e.getAttribute("data-icon"),a=void 0!==e.innerText?e.innerText.trim():"",(s=eY(ef(e))).prefix||(s.prefix=eM),r&&o&&(s.prefix=r,s.iconName=o),s.iconName&&s.prefix||(s.prefix&&a.length>0&&(s.iconName=(t=s.prefix,n=e.innerText,(eN[t]||{})[n]||eq(s.prefix,ej(e.innerText)))),!s.iconName&&eu.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(s.iconName=e.firstChild.data)),s),m=f.iconName,g=f.prefix,v=f.rest,y=(l=ep(e.attributes).reduce(function(e,t){return"class"!==e.name&&"style"!==e.name&&(e[t.name]=t.value),e},{}),u=e.getAttribute("title"),c=e.getAttribute("data-fa-title-id"),eu.autoA11y&&(u?l["aria-labelledby"]="".concat(eu.replacementClass,"-title-").concat(c||eh()):(l["aria-hidden"]="true",l.focusable="false")),l),b=e0("parseNodeAttributes",{},e),k=p.styleParser?(d=e.getAttribute("style"),h=[],d&&(h=d.split(";").reduce(function(e,t){var n=t.split(":"),r=n[0],i=n.slice(1);return r&&i.length>0&&(e[r]=i.join(":").trim()),e},{})),h):[];return i({iconName:m,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:g,transform:ed,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:v,styles:k,attributes:y}},b)}var tk=ex.styles;function tw(e){var t="nest"===eu.autoReplaceSvg?tb(e,{styleParser:!1}):tb(e);return~t.extra.classes.indexOf(J)?e2("generateLayersText",e,t):e2("generateSvgReplacementMutation",e,t)}var tx=new Set;function t_(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!A)return Promise.resolve();var n=j.documentElement.classList,r=function(e){return n.add("".concat(B,"-").concat(e))},i=function(e){return n.remove("".concat(B,"-").concat(e))},o=eu.autoFetchSvg?tx:H.map(function(e){return"fa-".concat(e)}).concat(Object.keys(tk));o.includes("fa")||o.push("fa");var a=[".".concat(J,":not([").concat(F,"])")].concat(o.map(function(e){return".".concat(e,":not([").concat(F,"])")})).join(", ");if(0===a.length)return Promise.resolve();var s=[];try{s=ep(e.querySelectorAll(a))}catch(e){}if(!(s.length>0))return Promise.resolve();r("pending"),i("complete");var l=tl.begin("onTree"),u=s.reduce(function(e,t){try{var n=tw(t);n&&e.push(n)}catch(e){U||"MissingIcon"!==e.name||console.error(e)}return e},[]);return new Promise(function(e,n){Promise.all(u).then(function(n){tm(n,function(){r("active"),r("complete"),i("pending"),"function"==typeof t&&t(),l(),e()})}).catch(function(e){l(),n(e)})})}function tS(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;tw(e).then(function(e){e&&tm([e],t)})}H.map(function(e){tx.add("fa-".concat(e))}),Object.keys(W[q]).map(tx.add.bind(tx)),Object.keys(W[$]).map(tx.add.bind(tx)),tx=u(tx);var tE=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,r=void 0===n?ed:n,o=t.symbol,a=void 0!==o&&o,s=t.mask,l=void 0===s?null:s,u=t.maskId,c=void 0===u?null:u,d=t.title,h=void 0===d?null:d,p=t.titleId,f=void 0===p?null:p,m=t.classes,g=void 0===m?[]:m,v=t.attributes,y=void 0===v?{}:v,b=t.styles,k=void 0===b?{}:b;if(e){var w=e.prefix,x=e.iconName,_=e.icon;return e8(i({type:"icon"},e),function(){return e1("beforeDOMElementCreation",{iconDefinition:e,params:t}),eu.autoA11y&&(h?y["aria-labelledby"]="".concat(eu.replacementClass,"-title-").concat(f||eh()):(y["aria-hidden"]="true",y.focusable="false")),e9({icons:{main:tt(_),mask:l?tt(l.icon):{found:!1,width:null,height:null,icon:{}}},prefix:w,iconName:x,transform:i(i({},ed),r),symbol:a,title:h,maskId:c,titleId:f,extra:{attributes:y,styles:k,classes:g}})})}},tD=RegExp('"',"ug");function tC(e,t){var n="".concat("data-fa-pseudo-element-pending").concat(t.replace(":","-"));return new Promise(function(r,o){if(null!==e.getAttribute(n))return r();var a=ep(e.children).filter(function(e){return e.getAttribute(N)===t})[0],s=C.getComputedStyle(e,t),l=s.getPropertyValue("font-family").match(X),u=s.getPropertyValue("font-weight"),c=s.getPropertyValue("content");if(a&&!l)return e.removeChild(a),r();if(l&&"none"!==c&&""!==c){var d=s.getPropertyValue("content"),h=~["Sharp"].indexOf(l[2])?$:q,p=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(l[2])?G[h][l[2].toLowerCase()]:Q[h][u],f=(_=(w=k=d.replace(tD,"")).length,E=(S=w.charCodeAt(0))>=55296&&S<=56319&&_>1&&(x=w.charCodeAt(1))>=56320&&x<=57343?(S-55296)*1024+x-56320+65536:S,{value:(D=2===k.length&&k[0]===k[1])?ej(k[0]):ej(k),isSecondary:E>=1105920&&E<=1112319||D}),m=f.value,g=f.isSecondary,v=l[0].startsWith("FontAwesome"),y=eq(p,m),b=y;if(v){var k,w,x,_,S,E,D,O,T,A=(O=eL[m],T=eq("fas",m),O||(T?{prefix:"fas",iconName:T}:null)||{prefix:null,iconName:null});A.iconName&&A.prefix&&(y=A.iconName,p=A.prefix)}if(!y||g||a&&a.getAttribute(I)===p&&a.getAttribute(L)===b)r();else{e.setAttribute(n,b),a&&e.removeChild(a);var P={iconName:null,title:null,titleId:null,prefix:null,transform:ed,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}},R=P.extra;R.attributes[N]=t,tr(y,p).then(function(o){var a=e9(i(i({},P),{},{icons:{main:o,mask:eV()},prefix:p,iconName:b,extra:R,watchable:!0})),s=j.createElementNS("http://www.w3.org/2000/svg","svg");"::before"===t?e.insertBefore(s,e.firstChild):e.appendChild(s),s.outerHTML=a.map(function(e){return eE(e)}).join("\n"),e.removeAttribute(n),r()}).catch(o)}}else r()})}function tj(e){return Promise.all([tC(e,"::before"),tC(e,"::after")])}function tO(e){return e.parentNode!==document.head&&!~z.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(N)&&(!e.parentNode||"svg"!==e.parentNode.tagName)}function tT(e){if(A)return new Promise(function(t,n){var r=ep(e.querySelectorAll("*")).filter(tO).map(tj),i=tl.begin("searchPseudoElements");tg=!0,Promise.all(r).then(function(){i(),tg=!1,t()}).catch(function(){i(),tg=!1,n()})})}var tA=!1,tP=function(e){return e.toLowerCase().split(" ").reduce(function(e,t){var n=t.toLowerCase().split("-"),r=n[0],i=n.slice(1).join("-");if(r&&"h"===i)return e.flipX=!0,e;if(r&&"v"===i)return e.flipY=!0,e;if(isNaN(i=parseFloat(i)))return e;switch(r){case"grow":e.size=e.size+i;break;case"shrink":e.size=e.size-i;break;case"left":e.x=e.x-i;break;case"right":e.x=e.x+i;break;case"up":e.y=e.y-i;break;case"down":e.y=e.y+i;break;case"rotate":e.rotate=e.rotate+i}return e},{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})},tR={x:0,y:0,width:"100%",height:"100%"};function tM(e){var t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}eK=[{mixout:function(){return{dom:{css:ey,insertCss:ek}}},hooks:function(){return{beforeDOMElementCreation:function(){ek()},beforeI2svg:function(){ek()}}}},{mixout:function(){return{icon:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(e||{}).icon?e:e3(e||{}),r=t.mask;return r&&(r=(r||{}).icon?r:e3(r||{})),tE(n,i(i({},t),{},{mask:r}))}}},hooks:function(){return{mutationObserverCallbacks:function(e){return e.treeCallback=t_,e.nodeCallback=tS,e}}},provides:function(e){e.i2svg=function(e){var t=e.node,n=void 0===t?j:t,r=e.callback;return t_(n,void 0===r?function(){}:r)},e.generateSvgReplacementMutation=function(e,t){var n=t.iconName,r=t.title,i=t.titleId,o=t.prefix,a=t.transform,s=t.symbol,u=t.mask,c=t.maskId,d=t.extra;return new Promise(function(t,h){Promise.all([tr(n,o),u.iconName?tr(u.iconName,u.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(u){var h=l(u,2);t([e,e9({icons:{main:h[0],mask:h[1]},prefix:o,iconName:n,transform:a,symbol:s,maskId:c,title:r,titleId:i,extra:d,watchable:!0})])}).catch(h)})},e.generateAbstractIcon=function(e){var t,n=e.children,r=e.attributes,i=e.main,o=e.transform,a=eg(e.styles);return a.length>0&&(r.style=a),ev(o)&&(t=e2("generateAbstractTransformGrouping",{main:i,transform:o,containerWidth:i.width,iconWidth:i.width})),n.push(t||i.icon),{children:n,attributes:r}}}},{mixout:function(){return{layer:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.classes,r=void 0===n?[]:n;return e8({type:"layer"},function(){e1("beforeDOMElementCreation",{assembler:e,params:t});var n=[];return e(function(e){Array.isArray(e)?e.map(function(e){n=n.concat(e.abstract)}):n=n.concat(e.abstract)}),[{tag:"span",attributes:{class:["".concat(eu.cssPrefix,"-layers")].concat(u(r)).join(" ")},children:n}]})}}}},{mixout:function(){return{counter:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.title,r=void 0===n?null:n,o=t.classes,a=void 0===o?[]:o,s=t.attributes,l=void 0===s?{}:s,c=t.styles,d=void 0===c?{}:c;return e8({type:"counter",content:e},function(){var n,o,s,c,h,p,f;return e1("beforeDOMElementCreation",{content:e,params:t}),o=(n={content:e.toString(),title:r,extra:{attributes:l,styles:d,classes:["".concat(eu.cssPrefix,"-layers-counter")].concat(u(a))}}).content,s=n.title,h=i(i(i({},(c=n.extra).attributes),s?{title:s}:{}),{},{class:c.classes.join(" ")}),(p=eg(c.styles)).length>0&&(h.style=p),(f=[]).push({tag:"span",attributes:h,children:[o]}),s&&f.push({tag:"span",attributes:{class:"sr-only"},children:[s]}),f})}}}},{mixout:function(){return{text:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,r=void 0===n?ed:n,o=t.title,a=void 0===o?null:o,s=t.classes,l=void 0===s?[]:s,c=t.attributes,d=void 0===c?{}:c,h=t.styles,p=void 0===h?{}:h;return e8({type:"text",content:e},function(){return e1("beforeDOMElementCreation",{content:e,params:t}),e7({content:e,transform:i(i({},ed),r),title:a,extra:{attributes:d,styles:p,classes:["".concat(eu.cssPrefix,"-layers-text")].concat(u(l))}})})}}},provides:function(e){e.generateLayersText=function(e,t){var n=t.title,r=t.transform,i=t.extra,o=null,a=null;if(P){var s=parseInt(getComputedStyle(e).fontSize,10),l=e.getBoundingClientRect();o=l.width/s,a=l.height/s}return eu.autoA11y&&!n&&(i.attributes["aria-hidden"]="true"),Promise.resolve([e,e7({content:e.innerHTML,width:o,height:a,transform:r,title:n,extra:i,watchable:!0})])}}},{hooks:function(){return{mutationObserverCallbacks:function(e){return e.pseudoElementsCallback=tT,e}}},provides:function(e){e.pseudoElements2svg=function(e){var t=e.node,n=void 0===t?j:t;eu.searchPseudoElements&&tT(n)}}},{mixout:function(){return{dom:{unwatch:function(){tg=!0,tA=!0}}}},hooks:function(){return{bootstrap:function(){ty(e0("mutationObserverCallbacks",{}))},noAuto:function(){tv&&tv.disconnect()},watch:function(e){var t=e.observeMutationsRoot;tA?tg=!1:ty(e0("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}},{mixout:function(){return{parse:{transform:function(e){return tP(e)}}}},hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-transform");return n&&(e.transform=tP(n)),e}}},provides:function(e){e.generateAbstractTransformGrouping=function(e){var t=e.main,n=e.transform,r=e.containerWidth,o=e.iconWidth,a="translate(".concat(32*n.x,", ").concat(32*n.y,") "),s="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") "),l="rotate(".concat(n.rotate," 0 0)"),u={transform:"".concat(a," ").concat(s," ").concat(l)},c={outer:{transform:"translate(".concat(r/2," 256)")},inner:u,path:{transform:"translate(".concat(-(o/2*1)," -256)")}};return{tag:"g",attributes:i({},c.outer),children:[{tag:"g",attributes:i({},c.inner),children:[{tag:t.icon.tag,children:t.icon.children,attributes:i(i({},t.icon.attributes),c.path)}]}]}}}},{hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-mask"),r=n?eY(n.split(" ").map(function(e){return e.trim()})):eV();return r.prefix||(r.prefix=eM),e.mask=r,e.maskId=t.getAttribute("data-fa-mask-id"),e}}},provides:function(e){e.generateAbstractMask=function(e){var t,n,r,o,a,s,l,u,c=e.children,d=e.attributes,h=e.main,p=e.mask,f=e.maskId,m=e.transform,g=h.width,v=h.icon,y=p.width,b=p.icon,k=(n=(t={transform:m,containerWidth:y,iconWidth:g}).transform,r=t.containerWidth,o=t.iconWidth,a="translate(".concat(32*n.x,", ").concat(32*n.y,") "),s="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") "),l="rotate(".concat(n.rotate," 0 0)"),u={transform:"".concat(a," ").concat(s," ").concat(l)},{outer:{transform:"translate(".concat(r/2," 256)")},inner:u,path:{transform:"translate(".concat(-(o/2*1)," -256)")}}),w={tag:"rect",attributes:i(i({},tR),{},{fill:"white"})},x=v.children?{children:v.children.map(tM)}:{},_={tag:"g",attributes:i({},k.inner),children:[tM(i({tag:v.tag,attributes:i(i({},v.attributes),k.path)},x))]},S={tag:"g",attributes:i({},k.outer),children:[_]},E="mask-".concat(f||eh()),D="clip-".concat(f||eh()),C={tag:"mask",attributes:i(i({},tR),{},{id:E,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[w,S]},j={tag:"defs",children:[{tag:"clipPath",attributes:{id:D},children:"g"===b.tag?b.children:[b]},C]};return c.push(j,{tag:"rect",attributes:i({fill:"currentColor","clip-path":"url(#".concat(D,")"),mask:"url(#".concat(E,")")},tR)}),{children:c,attributes:d}}}},{provides:function(e){var t=!1;C.matchMedia&&(t=C.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){var e=[],n={fill:"currentColor"},r={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};e.push({tag:"path",attributes:i(i({},n),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var o=i(i({},r),{},{attributeName:"opacity"}),a={tag:"circle",attributes:i(i({},n),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||a.children.push({tag:"animate",attributes:i(i({},r),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:i(i({},o),{},{values:"1;0;1;1;0;1;"})}),e.push(a),e.push({tag:"path",attributes:i(i({},n),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:t?[]:[{tag:"animate",attributes:i(i({},o),{},{values:"1;0;0;0;0;1;"})}]}),t||e.push({tag:"path",attributes:i(i({},n),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:i(i({},o),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:e}}}},{hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-symbol");return e.symbol=null!==n&&(""===n||n),e}}}}],eJ={},Object.keys(eX).forEach(function(e){-1===eQ.indexOf(e)&&delete eX[e]}),eK.forEach(function(e){var t=e.mixout?e.mixout():{};if(Object.keys(t).forEach(function(e){"function"==typeof t[e]&&(e4[e]=t[e]),"object"===o(t[e])&&Object.keys(t[e]).forEach(function(n){e4[e]||(e4[e]={}),e4[e][n]=t[e][n]})}),e.hooks){var n=e.hooks();Object.keys(n).forEach(function(e){eJ[e]||(eJ[e]=[]),eJ[e].push(n[e])})}e.provides&&e.provides(eX)}),e4.noAuto;var tF=e4.config;e4.library,e4.dom;var tN=e4.parse;e4.findIconDefinition,e4.toHtml;var tI=e4.icon;e4.layer,e4.text,e4.counter},857:function(e,t,n){"use strict";n.d(t,{JR:function(){return a},SF:function(){return l}});var r=n(69180);let i=e=>Error(e),o=()=>{throw i("Unexpected case")},a=(e,t,n)=>{if(0===e)return r.w$(t,0);let i=null===t._first?null:t._first.content.type;for(;null!==i&&t!==i;){if(i instanceof r.eI){if(i._length>=e)return r.w$(i,e);if(e-=i._length,null!==i._item&&null!==i._item.next)i=i._item.next.content.type;else{do i=null===i._item?null:i._item.parent,e--;while(i!==t&&null!==i&&null!==i._item&&null===i._item.next);null!==i&&i!==t&&(i=null===i._item?null:i._item.next.content.type)}}else{let o=(n.get(i)||{nodeSize:0}).nodeSize;if(null!==i._first&&e1)return new r.Zi(null===i._item?null:i._item.id,null===i._item?r.BW(i):null,null);if(e-=o,null!==i._item&&null!==i._item.next)i=i._item.next.content.type;else{if(0===e)return i=null===i._item?i:i._item.parent,new r.Zi(null===i._item?null:i._item.id,null===i._item?r.BW(i):null,null);do i=i._item.parent,e--;while(i!==t&&null===i._item.next);i!==t&&(i=i._item.next.content.type)}}}if(null===i)throw o();if(0===e&&i.constructor!==r.eI&&i!==t)return s(i._item.parent,i._item)}return r.w$(t,t._length)},s=(e,t)=>{let n=null,i=null;return null===e._item?i=r.BW(e):n=r.at(e._item.id.client,e._item.id.clock),new r.Zi(n,i,t.id)},l=(e,t,n,i)=>{let o=r.or(n,e);if(null===o||o.type!==t&&!r.$4(t,o.type._item))return null;let a=o.type,s=0;if(a.constructor===r.eI)s=o.index;else if(null===a._item||!a._item.deleted){let e=a._first,t=0;for(;t{let t=r.Gk.getState(e).undoManager;if(null!=t)return t.undo(),!0}},87254:function(e,t,n){"use strict";n.d(t,{ag:function(){return E}});var r=n(62770);let i=e=>"string"==typeof e,o=e=>"function"==typeof e,a=new Map;function s(e){let t=Array.isArray(e)?e:[e];return[...t,"en"]}function l(e,t,n){let r=s(e),o=d(()=>h("date",r,n),()=>new Intl.DateTimeFormat(r,n));return o.format(i(t)?new Date(t):t)}function u(e,t,n){let r=s(e),i=d(()=>h("number",r,n),()=>new Intl.NumberFormat(r,n));return i.format(t)}function c(e,t,n,{offset:r=0,...i}){let o=s(e),a=t?d(()=>h("plural-ordinal",o),()=>new Intl.PluralRules(o,{type:"ordinal"})):d(()=>h("plural-cardinal",o),()=>new Intl.PluralRules(o,{type:"cardinal"}));return i[n]??i[a.select(n-r)]??i.other}function d(e,t){let n=e(),r=a.get(n);return r||(r=t(),a.set(n,r)),r}function h(e,t,n){let r=t.join("-");return`${e}-${r}-${JSON.stringify(n)}`}let p=/\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/g,f=(e,t,n={})=>{let r=t||e,i=e=>"object"==typeof e?e:n[e]||{style:e},o=(e,t)=>{let o=Object.keys(n).length?i("number"):void 0,a=u(r,e,o);return t.replace("#",a)};return{plural:(e,t)=>{let{offset:n=0}=t,i=c(r,!1,e,t);return o(e-n,i)},selectordinal:(e,t)=>{let{offset:n=0}=t,i=c(r,!0,e,t);return o(e-n,i)},select:m,number:(e,t)=>u(r,e,i(t)),date:(e,t)=>l(r,e,i(t)),undefined:g}},m=(e,t)=>t[e]??t.other,g=e=>e;var v=Object.defineProperty,y=(e,t,n)=>t in e?v(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,b=(e,t,n)=>(y(e,"symbol"!=typeof t?t+"":t,n),n);class k{constructor(){b(this,"_events",{})}on(e,t){var n;return(n=this._events)[e]??(n[e]=[]),this._events[e].push(t),()=>this.removeListener(e,t)}removeListener(e,t){let n=this._getListeners(e);if(!n)return;let r=n.indexOf(t);~r&&n.splice(r,1)}emit(e,...t){let n=this._getListeners(e);n&&n.map(e=>e.apply(this,t))}_getListeners(e){let t=this._events[e];return!!Array.isArray(t)&&t}}var w=Object.defineProperty,x=(e,t,n)=>t in e?w(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,_=(e,t,n)=>(x(e,"symbol"!=typeof t?t+"":t,n),n);class S extends k{constructor(e){super(),_(this,"_locale",""),_(this,"_locales"),_(this,"_localeData",{}),_(this,"_messages",{}),_(this,"_missing"),_(this,"t",this._.bind(this)),null!=e.missing&&(this._missing=e.missing),null!=e.messages&&this.load(e.messages),null!=e.localeData&&this.loadLocaleData(e.localeData),("string"==typeof e.locale||e.locales)&&this.activate(e.locale??"en",e.locales)}get locale(){return this._locale}get locales(){return this._locales}get messages(){return this._messages[this._locale]??{}}get localeData(){return this._localeData[this._locale]??{}}_loadLocaleData(e,t){let n=this._localeData[e];n?Object.assign(n,t):this._localeData[e]=t}loadLocaleData(e,t){null!=t?this._loadLocaleData(e,t):Object.keys(e).forEach(t=>this._loadLocaleData(t,e[t])),this.emit("change")}_load(e,t){let n=this._messages[e];n?Object.assign(n,t):this._messages[e]=t}load(e,t){"string"==typeof e&&"object"==typeof t?this._load(e,t):Object.entries(e).forEach(([e,t])=>this._load(e,t)),this.emit("change")}loadAndActivate({locale:e,locales:t,messages:n}){this._locale=e,this._locales=t||void 0,this._messages[this._locale]=n,this.emit("change")}activate(e,t){this._locale=e,this._locales=t,this.emit("change")}_(e,t,n){var a,s;let l=n?.message;i(e)||(t=e.values||t,l=e.message,e=e.id);let u=this.messages[e],c=void 0===u,d=this._missing;if(d&&c)return o(d)?d(this._locale,e):d;c&&this.emit("missing",{id:e,locale:this._locale});let h=u||l||e;return i(h)&&p.test(h)?JSON.parse(`"${h}"`):i(h)?h:(a=this._locale,s=this._locales,(e={},t)=>{let n=f(a,s,t),o=t=>Array.isArray(t)?t.reduce((t,r)=>{if(i(r))return t+r;let[a,s,l]=r,u={};null!=l&&"object"==typeof l?Object.entries(l).forEach(([e,t])=>{u[e]=o(t)}):u=l;let c=n[s],d=c(e[a],u);return null==d?t:t+d},""):t,l=o(h);return i(l)&&p.test(l)?r(l.trim()):i(l)?l.trim():l?String(l):""})(t,n?.formats)}date(e,t){return l(this._locales||this._locale,e,t)}number(e,t){return u(this._locales||this._locale,e,t)}}let E=function(e={}){return new S(e)}()},5879:function(e,t,n){"use strict";n.d(t,{bd:function(){return h},cC:function(){return p},mV:function(){return d}});var r=n(2784);let i=/<([a-zA-Z0-9]+)>(.*?)<\/\1>|<([a-zA-Z0-9]+)\/>/,o=/(?:\r\n|\r|\n)/g,a={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},s=(e=0,t="")=>()=>`${t}_${e++}`;function l(e){let{render:t,component:n,id:l,message:c,formats:d,lingui:{i18n:h,defaultComponent:p}}=e,f={...e.values},m={...e.components};f&&Object.keys(f).forEach(e=>{let t=f[e],n=r.isValidElement(t)||Array.isArray(t)&&t.every(r.isValidElement);if(!n)return;let i=Object.keys(m).length;m[i]=t,f[e]=`<${i}/>`});let g=h&&"function"==typeof h._?h._(l,f,{message:c,formats:d}):l,v=g?function e(t,n={}){let l=s(0,"$lingui$"),u=t.replace(o,"").split(i);if(1===u.length)return t;let c=[],d=u.shift();for(let[t,i,o]of(d&&c.push(d),function e(t){if(!t.length)return[];let[n,r,i,o]=t.slice(0,4);return[[n||i,r||"",o]].concat(e(t.slice(4,t.length)))}(u))){let s=void 0!==t?n[t]:void 0;(!s||a[s.type]&&i)&&(s?console.error(`${s.type} is a void element tag therefore it must have no children`):console.error(`Can't use element at index '${t}' as it is not declared in the original translation`),s=r.createElement(r.Fragment)),Array.isArray(s)&&(s=r.createElement(r.Fragment,{},s)),c.push(r.cloneElement(s,{key:l()},i?e(i,n):s.props.children)),o&&c.push(o)}return c}(g,m):null;if(null===t||null===n)return v;let y=p||u,b={id:l,message:c,translation:v,isTranslated:l!==v&&c!==v,children:v};if(t&&n)console.error("You can't use both `component` and `render` prop at the same time. `component` is ignored.");else if(t&&"function"!=typeof t)console.error(`Invalid value supplied to prop \`render\`. It must be a function, provided ${t}`);else if(n&&"function"!=typeof n)return console.error(`Invalid value supplied to prop \`component\`. It must be a React component, provided ${n}`),r.createElement(y,b,v);if("function"==typeof t)return t(b);let k=n||y;return r.createElement(k,b,v)}let u=({children:e})=>r.createElement(r.Fragment,null,e),c=r.createContext(null);function d(){let e=r.useContext(c);return e}let h=({i18n:e,defaultComponent:t,children:n})=>{let i=r.useRef(e.locale),o=r.useCallback(()=>({i18n:e,defaultComponent:t,_:e.t.bind(e)}),[e,t]),[a,s]=r.useState(o());return(r.useEffect(()=>{let t=()=>{i.current=e.locale,s(o())},n=e.on("change",t);return i.current!==e.locale&&t(),n},[e,o]),i.current)?r.createElement(c.Provider,{value:a},n):null};function p(e){let t=d();return r.createElement(l,{...e,lingui:t})}},17831:function(e,t,n){"use strict";n.d(t,{v4:function(){return a}});for(var r,i=256,o=[];i--;)o[i]=(i+256).toString(16).substring(1);function a(){var e,t=0,n="";if(!r||i+16>256){for(r=Array(t=256);t--;)r[t]=256*Math.random()|0;t=i=0}for(;t<16;t++)e=r[i+t],6==t?n+=o[15&e|64]:8==t?n+=o[63&e|128]:n+=o[e],1&t&&t>1&&t<11&&(n+="-");return i++,n}},54333:function(e,t,n){"use strict";n.d(t,{k:function(){return i}});var r=n(34406);function i(e,t,...n){if(void 0!==r&&void 0===t)throw Error("invariant requires an error message argument");if(!e){let e;if(void 0===t)e=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let r=0;(e=Error(t.replace(/%s/g,function(){return n[r++]}))).name="Invariant Violation"}throw e.framesToPop=1,e}}},72057:function(e,t,n){"use strict";function r(e,t,n,r){let i=n?n.call(r,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;let o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;let s=Object.prototype.hasOwnProperty.bind(t);for(let a=0;a!1,currentStep:0,setCurrentStep:()=>0,steps:[],setSteps:()=>[],setMeta:()=>"",disabledActions:!1,setDisabledActions:()=>!1,components:{}});function o(){return(0,r.useContext)(i)}},43866:function(e,t,n){"use strict";n.d(t,{E6:function(){return l},Th:function(){return Q},zo:function(){return et}});var r,i=n(2784),o="colors",a="sizes",s="space",l={gap:s,gridGap:s,columnGap:s,gridColumnGap:s,rowGap:s,gridRowGap:s,inset:s,insetBlock:s,insetBlockEnd:s,insetBlockStart:s,insetInline:s,insetInlineEnd:s,insetInlineStart:s,margin:s,marginTop:s,marginRight:s,marginBottom:s,marginLeft:s,marginBlock:s,marginBlockEnd:s,marginBlockStart:s,marginInline:s,marginInlineEnd:s,marginInlineStart:s,padding:s,paddingTop:s,paddingRight:s,paddingBottom:s,paddingLeft:s,paddingBlock:s,paddingBlockEnd:s,paddingBlockStart:s,paddingInline:s,paddingInlineEnd:s,paddingInlineStart:s,top:s,right:s,bottom:s,left:s,scrollMargin:s,scrollMarginTop:s,scrollMarginRight:s,scrollMarginBottom:s,scrollMarginLeft:s,scrollMarginX:s,scrollMarginY:s,scrollMarginBlock:s,scrollMarginBlockEnd:s,scrollMarginBlockStart:s,scrollMarginInline:s,scrollMarginInlineEnd:s,scrollMarginInlineStart:s,scrollPadding:s,scrollPaddingTop:s,scrollPaddingRight:s,scrollPaddingBottom:s,scrollPaddingLeft:s,scrollPaddingX:s,scrollPaddingY:s,scrollPaddingBlock:s,scrollPaddingBlockEnd:s,scrollPaddingBlockStart:s,scrollPaddingInline:s,scrollPaddingInlineEnd:s,scrollPaddingInlineStart:s,fontSize:"fontSizes",background:o,backgroundColor:o,backgroundImage:o,borderImage:o,border:o,borderBlock:o,borderBlockEnd:o,borderBlockStart:o,borderBottom:o,borderBottomColor:o,borderColor:o,borderInline:o,borderInlineEnd:o,borderInlineStart:o,borderLeft:o,borderLeftColor:o,borderRight:o,borderRightColor:o,borderTop:o,borderTopColor:o,caretColor:o,color:o,columnRuleColor:o,fill:o,outline:o,outlineColor:o,stroke:o,textDecorationColor:o,fontFamily:"fonts",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",blockSize:a,minBlockSize:a,maxBlockSize:a,inlineSize:a,minInlineSize:a,maxInlineSize:a,width:a,minWidth:a,maxWidth:a,height:a,minHeight:a,maxHeight:a,flexBasis:a,gridTemplateColumns:a,gridTemplateRows:a,borderWidth:"borderWidths",borderTopWidth:"borderWidths",borderRightWidth:"borderWidths",borderBottomWidth:"borderWidths",borderLeftWidth:"borderWidths",borderStyle:"borderStyles",borderTopStyle:"borderStyles",borderRightStyle:"borderStyles",borderBottomStyle:"borderStyles",borderLeftStyle:"borderStyles",borderRadius:"radii",borderTopLeftRadius:"radii",borderTopRightRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",boxShadow:"shadows",textShadow:"shadows",transition:"transitions",zIndex:"zIndices"},u=(e,t)=>"function"==typeof t?{"()":Function.prototype.toString.call(t)}:t,c=()=>{let e=Object.create(null);return(t,n,...r)=>{let i=JSON.stringify(t,u);return i in e?e[i]:e[i]=n(t,...r)}},d=Symbol.for("sxs.internal"),h=(e,t)=>Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)),p=e=>{for(let t in e)return!0;return!1},{hasOwnProperty:f}=Object.prototype,m=e=>e.includes("-")?e:e.replace(/[A-Z]/g,e=>"-"+e.toLowerCase()),g=/\s+(?![^()]*\))/,v=e=>t=>e(..."string"==typeof t?String(t).split(g):[t]),y={appearance:e=>({WebkitAppearance:e,appearance:e}),backfaceVisibility:e=>({WebkitBackfaceVisibility:e,backfaceVisibility:e}),backdropFilter:e=>({WebkitBackdropFilter:e,backdropFilter:e}),backgroundClip:e=>({WebkitBackgroundClip:e,backgroundClip:e}),boxDecorationBreak:e=>({WebkitBoxDecorationBreak:e,boxDecorationBreak:e}),clipPath:e=>({WebkitClipPath:e,clipPath:e}),content:e=>({content:e.includes('"')||e.includes("'")||/^([A-Za-z]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)$/.test(e)?e:`"${e}"`}),hyphens:e=>({WebkitHyphens:e,hyphens:e}),maskImage:e=>({WebkitMaskImage:e,maskImage:e}),maskSize:e=>({WebkitMaskSize:e,maskSize:e}),tabSize:e=>({MozTabSize:e,tabSize:e}),textSizeAdjust:e=>({WebkitTextSizeAdjust:e,textSizeAdjust:e}),userSelect:e=>({WebkitUserSelect:e,userSelect:e}),marginBlock:v((e,t)=>({marginBlockStart:e,marginBlockEnd:t||e})),marginInline:v((e,t)=>({marginInlineStart:e,marginInlineEnd:t||e})),maxSize:v((e,t)=>({maxBlockSize:e,maxInlineSize:t||e})),minSize:v((e,t)=>({minBlockSize:e,minInlineSize:t||e})),paddingBlock:v((e,t)=>({paddingBlockStart:e,paddingBlockEnd:t||e})),paddingInline:v((e,t)=>({paddingInlineStart:e,paddingInlineEnd:t||e}))},b=/([\d.]+)([^]*)/,k=(e,t)=>e.length?e.reduce((e,n)=>(e.push(...t.map(e=>e.includes("&")?e.replace(/&/g,/[ +>|~]/.test(n)&&/&.*&/.test(e)?`:is(${n})`:n):n+" "+e)),e),[]):t,w=(e,t)=>e in x&&"string"==typeof t?t.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/,(t,n,r,i)=>n+("stretch"===r?`-moz-available${i};${m(e)}:${n}-webkit-fill-available`:`-moz-fit-content${i};${m(e)}:${n}fit-content`)+i):String(t),x={blockSize:1,height:1,inlineSize:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,width:1},_=e=>e?e+"-":"",S=(e,t,n)=>e.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g,(e,r,i,o,a)=>"$"==o==!!i?e:(r||"--"==o?"calc(":"")+"var(--"+("$"===o?_(t)+(a.includes("$")?"":_(n))+a.replace(/\$/g,"-"):a)+")"+(r||"--"==o?"*"+(r||"")+(i||"1")+")":"")),E=/\s*,\s*(?![^()]*\))/,D=Object.prototype.toString,C=(e,t,n,r,i)=>{let o,a,s;let l=(e,t,n)=>{let u,c;let d=e=>{var h;for(u in e){let p=64===u.charCodeAt(0),f=p&&Array.isArray(e[u])?e[u]:[e[u]];for(c of f){let e=/[A-Z]/.test(h=u)?h:h.replace(/-[^]/g,e=>e[1].toUpperCase()),f="object"==typeof c&&c&&c.toString===D&&(!r.utils[e]||!t.length);if(e in r.utils&&!f){let t=r.utils[e];if(t!==a){a=t,d(t(c)),a=null;continue}}else if(e in y){let t=y[e];if(t!==s){s=t,d(t(c)),s=null;continue}}if(p&&(u=(u.slice(1) in r.media?"@media "+r.media[u.slice(1)]:u).replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g,(e,t,n,r,i,o)=>{let a=b.test(t),s=.0625*(a?-1:1),[l,u]=a?[r,t]:[t,r];return"("+("="===n[0]?"":">"===n[0]===a?"max-":"min-")+l+":"+("="!==n[0]&&1===n.length?u.replace(b,(e,t,r)=>Number(t)+s*(">"===n?1:-1)+r):u)+(i?") and ("+(">"===i[0]?"min-":"max-")+l+":"+(1===i.length?o.replace(b,(e,t,n)=>Number(t)+s*(">"===i?-1:1)+n):o):"")+")"})),f){let e=p?n.concat(u):[...n],r=p?[...t]:k(t,u.split(E));void 0!==o&&i(j(...o)),o=void 0,l(c,r,e)}else void 0===o&&(o=[[],t,n]),u=p||36!==u.charCodeAt(0)?u:`--${_(r.prefix)}${u.slice(1).replace(/\$/g,"-")}`,c=f?c:"number"==typeof c?c&&e in O?String(c)+"px":String(c):S(w(e,null==c?"":c),r.prefix,r.themeMap[e]),o[0].push(`${p?`${u} `:`${m(u)}:`}${c}`)}}};d(e),void 0!==o&&i(j(...o)),o=void 0};l(e,t,n)},j=(e,t,n)=>`${n.map(e=>`${e}{`).join("")}${t.length?`${t.join(",")}{`:""}${e.join(";")}${t.length?"}":""}${Array(n.length?n.length+1:0).join("}")}`,O={animationDelay:1,animationDuration:1,backgroundSize:1,blockSize:1,border:1,borderBlock:1,borderBlockEnd:1,borderBlockEndWidth:1,borderBlockStart:1,borderBlockStartWidth:1,borderBlockWidth:1,borderBottom:1,borderBottomLeftRadius:1,borderBottomRightRadius:1,borderBottomWidth:1,borderEndEndRadius:1,borderEndStartRadius:1,borderInlineEnd:1,borderInlineEndWidth:1,borderInlineStart:1,borderInlineStartWidth:1,borderInlineWidth:1,borderLeft:1,borderLeftWidth:1,borderRadius:1,borderRight:1,borderRightWidth:1,borderSpacing:1,borderStartEndRadius:1,borderStartStartRadius:1,borderTop:1,borderTopLeftRadius:1,borderTopRightRadius:1,borderTopWidth:1,borderWidth:1,bottom:1,columnGap:1,columnRule:1,columnRuleWidth:1,columnWidth:1,containIntrinsicSize:1,flexBasis:1,fontSize:1,gap:1,gridAutoColumns:1,gridAutoRows:1,gridTemplateColumns:1,gridTemplateRows:1,height:1,inlineSize:1,inset:1,insetBlock:1,insetBlockEnd:1,insetBlockStart:1,insetInline:1,insetInlineEnd:1,insetInlineStart:1,left:1,letterSpacing:1,margin:1,marginBlock:1,marginBlockEnd:1,marginBlockStart:1,marginBottom:1,marginInline:1,marginInlineEnd:1,marginInlineStart:1,marginLeft:1,marginRight:1,marginTop:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,offsetDistance:1,offsetRotate:1,outline:1,outlineOffset:1,outlineWidth:1,overflowClipMargin:1,padding:1,paddingBlock:1,paddingBlockEnd:1,paddingBlockStart:1,paddingBottom:1,paddingInline:1,paddingInlineEnd:1,paddingInlineStart:1,paddingLeft:1,paddingRight:1,paddingTop:1,perspective:1,right:1,rowGap:1,scrollMargin:1,scrollMarginBlock:1,scrollMarginBlockEnd:1,scrollMarginBlockStart:1,scrollMarginBottom:1,scrollMarginInline:1,scrollMarginInlineEnd:1,scrollMarginInlineStart:1,scrollMarginLeft:1,scrollMarginRight:1,scrollMarginTop:1,scrollPadding:1,scrollPaddingBlock:1,scrollPaddingBlockEnd:1,scrollPaddingBlockStart:1,scrollPaddingBottom:1,scrollPaddingInline:1,scrollPaddingInlineEnd:1,scrollPaddingInlineStart:1,scrollPaddingLeft:1,scrollPaddingRight:1,scrollPaddingTop:1,shapeMargin:1,textDecoration:1,textDecorationThickness:1,textIndent:1,textUnderlineOffset:1,top:1,transitionDelay:1,transitionDuration:1,verticalAlign:1,width:1,wordSpacing:1},T=e=>String.fromCharCode(e+(e>25?39:97)),A=e=>(e=>{let t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=T(t%52)+n;return T(t%52)+n})(((e,t)=>{let n=t.length;for(;n;)e=33*e^t.charCodeAt(--n);return e})(5381,JSON.stringify(e))>>>0),P=["themed","global","styled","onevar","resonevar","allvar","inline"],R=e=>{if(e.href&&!e.href.startsWith(location.origin))return!1;try{return!!e.cssRules}catch(e){return!1}},M=e=>{let t;let n=()=>{let{cssRules:e}=t.sheet;return[].map.call(e,(n,r)=>{let{cssText:i}=n,o="";if(i.startsWith("--sxs"))return"";if(e[r-1]&&(o=e[r-1].cssText).startsWith("--sxs")){if(!n.cssRules.length)return"";for(let e in t.rules)if(t.rules[e].group===n)return`--sxs{--sxs:${[...t.rules[e].cache].join(" ")}}${i}`;return n.cssRules.length?`${o}${i}`:""}return i}).join("")},r=()=>{if(t){let{rules:e,sheet:n}=t;if(!n.deleteRule){for(;3===Object(Object(n.cssRules)[0]).type;)n.cssRules.splice(0,1);n.cssRules=[]}for(let t in e)delete e[t]}let i=Object(e).styleSheets||[];for(let e of i)if(R(e)){for(let i=0,o=e.cssRules;o[i];++i){let a=Object(o[i]);if(1!==a.type)continue;let s=Object(o[i+1]);if(4!==s.type)continue;++i;let{cssText:l}=a;if(!l.startsWith("--sxs"))continue;let u=l.slice(14,-3).trim().split(/\s+/),c=P[u[0]];c&&(t||(t={sheet:e,reset:r,rules:{},toString:n}),t.rules[c]={group:s,index:i,cache:new Set(u)})}if(t)break}if(!t){let i=(e,t)=>({type:t,cssRules:[],insertRule(e,t){this.cssRules.splice(t,0,i(e,{import:3,undefined:1}[(e.toLowerCase().match(/^@([a-z]+)/)||[])[1]]||4))},get cssText(){return"@media{}"===e?`@media{${[].map.call(this.cssRules,e=>e.cssText).join("")}}`:e}});t={sheet:e?(e.head||e).appendChild(document.createElement("style")).sheet:i("","text/css"),rules:{},reset:r,toString:n}}let{sheet:o,rules:a}=t;for(let e=P.length-1;e>=0;--e){let t=P[e];if(!a[t]){let n=P[e+1],r=a[n]?a[n].index:o.cssRules.length;o.insertRule("@media{}",r),o.insertRule(`--sxs{--sxs:${e}}`,r),a[t]={group:o.cssRules[r+1],index:r,cache:new Set([e])}}F(a[t])}};return r(),t},F=e=>{let t=e.group,n=t.cssRules.length;e.apply=e=>{try{t.insertRule(e,n),++n}catch(e){}}},N=Symbol(),I=c(),L=(e,t)=>I(e,()=>(...n)=>{let r={type:null,composers:new Set};for(let t of n)if(null!=t){if(t[d])for(let e of(null==r.type&&(r.type=t[d].type),t[d].composers))r.composers.add(e);else t.constructor!==Object||t.$$typeof?null==r.type&&(r.type=t):r.composers.add(B(t,e))}return null==r.type&&(r.type="span"),r.composers.size||r.composers.add(["PJLV",{},[],[],{},[]]),z(e,r,t)}),B=({variants:e,compoundVariants:t,defaultVariants:n,...r},i)=>{let o=`${_(i.prefix)}c-${A(r)}`,a=[],s=[],l=Object.create(null),u=[];for(let e in n)l[e]=String(n[e]);if("object"==typeof e&&e)for(let t in e){f.call(l,t)||(l[t]="undefined");let n=e[t];for(let e in n){let r={[t]:String(e)};"undefined"===String(e)&&u.push(t);let i=n[e],o=[r,i,!p(i)];a.push(o)}}if("object"==typeof t&&t)for(let e of t){let{css:t,...n}=e;for(let e in t="object"==typeof t&&t||{},n)n[e]=String(n[e]);let r=[n,t,!p(t)];s.push(r)}return[o,r,a,s,l,u]},z=(e,t,n)=>{let[r,i,o,a]=U(t.composers),s="function"==typeof t.type||t.type.$$typeof?(e=>{function t(){for(let n=0;nt.rules[e]={apply:n=>t[N].push([e,n])}),t})(n):null,l=(s||n).rules,u=`.${r}${i.length>1?`:where(.${i.slice(1).join(".")})`:""}`,c=c=>{c="object"==typeof c&&c||$;let{css:d,...h}=c,p={};for(let e in o)if(delete h[e],e in c){let t=c[e];"object"==typeof t&&t?p[e]={"@initial":o[e],...t}:(t=String(t),p[e]="undefined"!==t||a.has(e)?t:o[e])}else p[e]=o[e];let f=new Set([...i]);for(let[r,i,o,a]of t.composers){n.rules.styled.cache.has(r)||(n.rules.styled.cache.add(r),C(i,[`.${r}`],[],e,e=>{l.styled.apply(e)}));let t=q(o,p,e.media),s=q(a,p,e.media,!0);for(let i of t)if(void 0!==i)for(let[t,o,a]of i){let i=`${r}-${A(o)}-${t}`;f.add(i);let s=(a?n.rules.resonevar:n.rules.onevar).cache,u=a?l.resonevar:l.onevar;s.has(i)||(s.add(i),C(o,[`.${i}`],[],e,e=>{u.apply(e)}))}for(let t of s)if(void 0!==t)for(let[i,o]of t){let t=`${r}-${A(o)}-${i}`;f.add(t),n.rules.allvar.cache.has(t)||(n.rules.allvar.cache.add(t),C(o,[`.${t}`],[],e,e=>{l.allvar.apply(e)}))}}if("object"==typeof d&&d){let t=`${r}-i${A(d)}-css`;f.add(t),n.rules.inline.cache.has(t)||(n.rules.inline.cache.add(t),C(d,[`.${t}`],[],e,e=>{l.inline.apply(e)}))}for(let e of String(c.className||"").trim().split(/\s+/))e&&f.add(e);let m=h.className=[...f].join(" ");return{type:t.type,className:m,selector:u,props:h,toString:()=>m,deferredInjector:s}};return h(c,{className:r,selector:u,[d]:t,toString:()=>(n.rules.styled.cache.has(r)||c(),r)})},U=e=>{let t="",n=[],r={},i=[];for(let[o,,,,a,s]of e)for(let e in""===t&&(t=o),n.push(o),i.push(...s),a){let t=a[e];(void 0===r[e]||"undefined"!==t||s.includes(t))&&(r[e]=t)}return[t,n,r,new Set(i)]},q=(e,t,n,r)=>{let i=[];i:for(let[o,a,s]of e){if(s)continue;let e,l=0,u=!1;for(e in o){let r=o[e],i=t[e];if(i!==r){if("object"!=typeof i||!i)continue i;{let e,t,o=0;for(let a in i){if(r===String(i[a])){if("@initial"!==a){let e=a.slice(1);(t=t||[]).push(e in n?n[e]:a.replace(/^@media ?/,"")),u=!0}l+=o,e=!0}++o}if(t&&t.length&&(a={["@media "+t.join(", ")]:a}),!e)continue i}}}(i[l]=i[l]||[]).push([r?"cv":`${e}-${o[e]}`,a,u])}return i},$={},H=c(),V=(e,t)=>H(e,()=>(...n)=>{let r=()=>{for(let r of n){let n=A(r="object"==typeof r&&r||{});if(!t.rules.global.cache.has(n)){if(t.rules.global.cache.add(n),"@import"in r){let e=[].indexOf.call(t.sheet.cssRules,t.rules.themed.group)-1;for(let n of[].concat(r["@import"]))n=n.includes('"')||n.includes("'")?n:`"${n}"`,t.sheet.insertRule(`@import ${n};`,e++);delete r["@import"]}C(r,[],[],e,e=>{t.rules.global.apply(e)})}}return""};return h(r,{toString:r})}),W=c(),G=(e,t)=>W(e,()=>n=>{let r=`${_(e.prefix)}k-${A(n)}`,i=()=>{if(!t.rules.global.cache.has(r)){t.rules.global.cache.add(r);let i=[];C(n,[],[],e,e=>i.push(e));let o=`@keyframes ${r}{${i.join("")}}`;t.rules.global.apply(o)}return r};return h(i,{get name(){return i()},toString:i})}),Y=class{constructor(e,t,n,r){this.token=null==e?"":String(e),this.value=null==t?"":String(t),this.scale=null==n?"":String(n),this.prefix=null==r?"":String(r)}get computedValue(){return"var("+this.variable+")"}get variable(){return"--"+_(this.prefix)+_(this.scale)+this.token}toString(){return this.computedValue}},Z=c(),K=(e,t)=>Z(e,()=>(n,r)=>{r="object"==typeof n&&n||Object(r);let i=`.${n=(n="string"==typeof n?n:"")||`${_(e.prefix)}t-${A(r)}`}`,o={},a=[];for(let t in r)for(let n in o[t]={},r[t]){let i=`--${_(e.prefix)}${t}-${n}`,s=S(String(r[t][n]),e.prefix,t);o[t][n]=new Y(n,s,t,e.prefix),a.push(`${i}:${s}`)}let s=()=>{if(a.length&&!t.rules.themed.cache.has(n)){t.rules.themed.cache.add(n);let i=`${r===e.theme?":root,":""}.${n}{${a.join(";")}}`;t.rules.themed.apply(i)}return n};return{...o,get className(){return s()},selector:i,toString:s}}),J=c(),X=c(),Q=e=>{let t=(e=>{let t=!1,n=J(e,e=>{t=!0;let n="prefix"in(e="object"==typeof e&&e||{})?String(e.prefix):"",r="object"==typeof e.media&&e.media||{},i="object"==typeof e.root?e.root||null:globalThis.document||null,o="object"==typeof e.theme&&e.theme||{},a={prefix:n,media:r,theme:o,themeMap:"object"==typeof e.themeMap&&e.themeMap||{...l},utils:"object"==typeof e.utils&&e.utils||{}},s=M(i),u={css:L(a,s),globalCss:V(a,s),keyframes:G(a,s),createTheme:K(a,s),reset(){s.reset(),u.theme.toString()},theme:{},sheet:s,config:a,prefix:n,getCssText:s.toString,toString:s.toString};return String(u.theme=u.createTheme(o)),u});return t||n.reset(),n})(e);return t.styled=(({config:e,sheet:t})=>X(e,()=>{let n=L(e,t);return(...e)=>{let t=n(...e),r=t[d].type,o=i.forwardRef((e,n)=>{let o=e&&e.as||r,{props:a,deferredInjector:s}=t(e);return delete a.as,a.ref=n,s?i.createElement(i.Fragment,null,i.createElement(o,a),i.createElement(s,null)):i.createElement(o,a)});return o.className=t.className,o.displayName=`Styled.${r.displayName||r.name||r}`,o.selector=t.selector,o.toString=()=>t.selector,o[d]=t[d],o}}))(t),t},ee=()=>r||(r=Q()),et=(...e)=>ee().styled(...e)},73235:function(e,t,n){"use strict";function r(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.d(t,{_:function(){return r}})},79609:function(e,t,n){"use strict";n.d(t,{V6:function(){return o},ZP:function(){return o}});var r=n(37243);let i=/^\s*>\s$/,o=r.NB.create({name:"blockquote",addOptions:()=>({HTMLAttributes:{}}),content:"block+",group:"block",defining:!0,parseHTML:()=>[{tag:"blockquote"}],renderHTML({HTMLAttributes:e}){return["blockquote",(0,r.P1)(this.options.HTMLAttributes,e),0]},addCommands(){return{setBlockquote:()=>({commands:e})=>e.wrapIn(this.name),toggleBlockquote:()=>({commands:e})=>e.toggleWrap(this.name),unsetBlockquote:()=>({commands:e})=>e.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}},addInputRules(){return[(0,r.S0)({find:i,type:this.type})]}})},86900:function(e,t,n){"use strict";n.d(t,{ZP:function(){return l},d8:function(){return l}});var r=n(37243);let i=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,o=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,a=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,s=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,l=r.vc.create({name:"bold",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"strong"},{tag:"b",getAttrs:e=>"normal"!==e.style.fontWeight&&null},{style:"font-weight",getAttrs:e=>/^(bold(er)?|[5-9]\d{2,})$/.test(e)&&null}],renderHTML({HTMLAttributes:e}){return["strong",(0,r.P1)(this.options.HTMLAttributes,e),0]},addCommands(){return{setBold:()=>({commands:e})=>e.setMark(this.name),toggleBold:()=>({commands:e})=>e.toggleMark(this.name),unsetBold:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[(0,r.Cf)({find:i,type:this.type}),(0,r.Cf)({find:a,type:this.type})]},addPasteRules(){return[(0,r.K9)({find:o,type:this.type}),(0,r.K9)({find:s,type:this.type})]}})},25059:function(e,t,n){"use strict";n.d(t,{ZP:function(){return s},dn:function(){return s}});var r=n(37243),i=n(27191);let o=/^```([a-z]+)?[\s\n]$/,a=/^~~~([a-z]+)?[\s\n]$/,s=r.NB.create({name:"codeBlock",addOptions:()=>({languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,HTMLAttributes:{}}),content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:null,parseHTML:e=>{var t;let{languageClassPrefix:n}=this.options,r=[...(null===(t=e.firstElementChild)||void 0===t?void 0:t.classList)||[]],i=r.filter(e=>e.startsWith(n)).map(e=>e.replace(n,"")),o=i[0];return o||null},rendered:!1}}},parseHTML:()=>[{tag:"pre",preserveWhitespace:"full"}],renderHTML({node:e,HTMLAttributes:t}){return["pre",(0,r.P1)(this.options.HTMLAttributes,t),["code",{class:e.attrs.language?this.options.languageClassPrefix+e.attrs.language:null},0]]},addCommands(){return{setCodeBlock:e=>({commands:t})=>t.setNode(this.name,e),toggleCodeBlock:e=>({commands:t})=>t.toggleNode(this.name,"paragraph",e)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{let{empty:e,$anchor:t}=this.editor.state.selection,n=1===t.pos;return!!e&&t.parent.type.name===this.name&&(!!n||!t.parent.textContent.length)&&this.editor.commands.clearNodes()},Enter:({editor:e})=>{if(!this.options.exitOnTripleEnter)return!1;let{state:t}=e,{selection:n}=t,{$from:r,empty:i}=n;if(!i||r.parent.type!==this.type)return!1;let o=r.parentOffset===r.parent.nodeSize-2,a=r.parent.textContent.endsWith("\n\n");return!!o&&!!a&&e.chain().command(({tr:e})=>(e.delete(r.pos-2,r.pos),!0)).exitCode().run()},ArrowDown:({editor:e})=>{if(!this.options.exitOnArrowDown)return!1;let{state:t}=e,{selection:n,doc:r}=t,{$from:i,empty:o}=n;if(!o||i.parent.type!==this.type)return!1;let a=i.parentOffset===i.parent.nodeSize-2;if(!a)return!1;let s=i.after();if(void 0===s)return!1;let l=r.nodeAt(s);return!l&&e.commands.exitCode()}}},addInputRules(){return[(0,r.zK)({find:o,type:this.type,getAttributes:e=>({language:e[1]})}),(0,r.zK)({find:a,type:this.type,getAttributes:e=>({language:e[1]})})]},addProseMirrorPlugins(){return[new i.Sy({key:new i.H$("codeBlockVSCodeHandler"),props:{handlePaste:(e,t)=>{if(!t.clipboardData||this.editor.isActive(this.type.name))return!1;let n=t.clipboardData.getData("text/plain"),r=t.clipboardData.getData("vscode-editor-data"),o=r?JSON.parse(r):void 0,a=null==o?void 0:o.mode;if(!n||!a)return!1;let{tr:s}=e.state;return e.state.selection.from===e.state.doc.nodeSize-(1+2*e.state.selection.$to.depth)?s.insert(e.state.selection.from-1,this.type.create({language:a})):s.replaceSelectionWith(this.type.create({language:a})),s.setSelection(i.Bs.near(s.doc.resolve(Math.max(0,s.selection.from-2)))),s.insertText(n.replace(/\r\n?/g,"\n")),s.setMeta("paste",!0),e.dispatch(s),!0}}})]}})},31187:function(e,t,n){"use strict";n.d(t,{EK:function(){return a},ZP:function(){return a}});var r=n(37243);let i=/(?:^|\s)(`(?!\s+`)((?:[^`]+))`(?!\s+`))$/,o=/(?:^|\s)(`(?!\s+`)((?:[^`]+))`(?!\s+`))/g,a=r.vc.create({name:"code",addOptions:()=>({HTMLAttributes:{}}),excludes:"_",code:!0,exitable:!0,parseHTML:()=>[{tag:"code"}],renderHTML({HTMLAttributes:e}){return["code",(0,r.P1)(this.options.HTMLAttributes,e),0]},addCommands(){return{setCode:()=>({commands:e})=>e.setMark(this.name),toggleCode:()=>({commands:e})=>e.toggleMark(this.name),unsetCode:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[(0,r.Cf)({find:i,type:this.type})]},addPasteRules(){return[(0,r.K9)({find:o,type:this.type})]}})},42626:function(e,t,n){"use strict";n.d(t,{B:function(){return i}});var r=n(37243);let i=r.NB.create({name:"doc",topNode:!0,content:"block+"})},36518:function(e,t,n){"use strict";n.d(t,{f:function(){return o}});var r=n(37243),i=n(3027);let o=r.hj.create({name:"gapCursor",addProseMirrorPlugins:()=>[(0,i.d)()],extendNodeSchema(e){var t;let n={name:e.name,options:e.options,storage:e.storage};return{allowGapCursor:null!==(t=(0,r.nU)((0,r.Nl)(e,"allowGapCursor",n)))&&void 0!==t?t:null}}})},39949:function(e,t,n){"use strict";n.d(t,{U:function(){return i}});var r=n(37243);let i=r.NB.create({name:"hardBreak",addOptions:()=>({keepMarks:!0,HTMLAttributes:{}}),inline:!0,group:"inline",selectable:!1,parseHTML:()=>[{tag:"br"}],renderHTML({HTMLAttributes:e}){return["br",(0,r.P1)(this.options.HTMLAttributes,e)]},renderText:()=>"\n",addCommands(){return{setHardBreak:()=>({commands:e,chain:t,state:n,editor:r})=>e.first([()=>e.exitCode(),()=>e.command(()=>{let{selection:e,storedMarks:i}=n;if(e.$from.parent.type.spec.isolating)return!1;let{keepMarks:o}=this.options,{splittableMarks:a}=r.extensionManager,s=i||e.$to.parentOffset&&e.$from.marks();return t().insertContent({type:this.name}).command(({tr:e,dispatch:t})=>{if(t&&s&&o){let t=s.filter(e=>a.includes(e.type.name));e.ensureMarks(t)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}})},71391:function(e,t,n){"use strict";n.d(t,{X:function(){return i}});var r=n(37243);let i=r.NB.create({name:"heading",addOptions:()=>({levels:[1,2,3,4,5,6],HTMLAttributes:{}}),content:"inline*",group:"block",defining:!0,addAttributes:()=>({level:{default:1,rendered:!1}}),parseHTML(){return this.options.levels.map(e=>({tag:`h${e}`,attrs:{level:e}}))},renderHTML({node:e,HTMLAttributes:t}){let n=this.options.levels.includes(e.attrs.level),i=n?e.attrs.level:this.options.levels[0];return[`h${i}`,(0,r.P1)(this.options.HTMLAttributes,t),0]},addCommands(){return{setHeading:e=>({commands:t})=>!!this.options.levels.includes(e.level)&&t.setNode(this.name,e),toggleHeading:e=>({commands:t})=>!!this.options.levels.includes(e.level)&&t.toggleNode(this.name,"paragraph",e)}},addKeyboardShortcuts(){return this.options.levels.reduce((e,t)=>({...e,[`Mod-Alt-${t}`]:()=>this.editor.commands.toggleHeading({level:t})}),{})},addInputRules(){return this.options.levels.map(e=>(0,r.zK)({find:RegExp(`^(#{1,${e}})\\s$`),type:this.type,getAttributes:{level:e}}))}})},6776:function(e,t,n){"use strict";n.d(t,{ZP:function(){return a}});var r=n(37243);let i=/(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))$/,o=/(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))/g,a=r.vc.create({name:"highlight",addOptions:()=>({multicolor:!1,HTMLAttributes:{}}),addAttributes(){return this.options.multicolor?{color:{default:null,parseHTML:e=>e.getAttribute("data-color")||e.style.backgroundColor,renderHTML:e=>e.color?{"data-color":e.color,style:`background-color: ${e.color}; color: inherit`}:{}}}:{}},parseHTML:()=>[{tag:"mark"}],renderHTML({HTMLAttributes:e}){return["mark",(0,r.P1)(this.options.HTMLAttributes,e),0]},addCommands(){return{setHighlight:e=>({commands:t})=>t.setMark(this.name,e),toggleHighlight:e=>({commands:t})=>t.toggleMark(this.name,e),unsetHighlight:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-h":()=>this.editor.commands.toggleHighlight()}},addInputRules(){return[(0,r.Cf)({find:i,type:this.type})]},addPasteRules(){return[(0,r.K9)({find:o,type:this.type})]}})},86509:function(e,t,n){"use strict";n.d(t,{A:function(){return _}});var r=n(37243),i=function(){};i.prototype.append=function(e){return e.length?(e=i.from(e),!this.length&&e||e.length<200&&this.leafAppend(e)||this.length<200&&e.leafPrepend(this)||this.appendInner(e)):this},i.prototype.prepend=function(e){return e.length?i.from(e).append(this):this},i.prototype.appendInner=function(e){return new a(this,e)},i.prototype.slice=function(e,t){return(void 0===e&&(e=0),void 0===t&&(t=this.length),e>=t)?i.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,t))},i.prototype.get=function(e){if(!(e<0)&&!(e>=this.length))return this.getInner(e)},i.prototype.forEach=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=this.length),t<=n?this.forEachInner(e,t,n,0):this.forEachInvertedInner(e,t,n,0)},i.prototype.map=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=this.length);var r=[];return this.forEach(function(t,n){return r.push(e(t,n))},t,n),r},i.from=function(e){return e instanceof i?e:e&&e.length?new o(e):i.empty};var o=function(e){function t(t){e.call(this),this.values=t}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={length:{configurable:!0},depth:{configurable:!0}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(e,n){return 0==e&&n==this.length?this:new t(this.values.slice(e,n))},t.prototype.getInner=function(e){return this.values[e]},t.prototype.forEachInner=function(e,t,n,r){for(var i=t;i=n;i--)if(!1===e(this.values[i],r+i))return!1},t.prototype.leafAppend=function(e){if(this.length+e.length<=200)return new t(this.values.concat(e.flatten()))},t.prototype.leafPrepend=function(e){if(this.length+e.length<=200)return new t(e.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(t.prototype,n),t}(i);i.empty=new o([]);var a=function(e){function t(t,n){e.call(this),this.left=t,this.right=n,this.length=t.length+n.length,this.depth=Math.max(t.depth,n.depth)+1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(e){return ei&&!1===this.right.forEachInner(e,Math.max(t-i,0),Math.min(this.length,n)-i,r+i))return!1},t.prototype.forEachInvertedInner=function(e,t,n,r){var i=this.left.length;if(t>i&&!1===this.right.forEachInvertedInner(e,t-i,Math.max(n,i)-i,r+i)||n=n?this.right.slice(e-n,t-n):this.left.slice(e,n).append(this.right.slice(0,t-n))},t.prototype.leafAppend=function(e){var n=this.right.leafAppend(e);if(n)return new t(this.left,n)},t.prototype.leafPrepend=function(e){var n=this.left.leafPrepend(e);if(n)return new t(n,this.right)},t.prototype.appendInner=function(e){return this.left.depth>=Math.max(this.right.depth,e.depth)+1?new t(this.left,new t(this.right,e)):new t(this,e)},t}(i),s=n(26151),l=n(27191);class u{constructor(e,t){this.items=e,this.eventCount=t}popEvent(e,t){let n,r,i,o;if(0==this.eventCount)return null;let a=this.items.length;for(;;a--)if(this.items.get(a-1).selection){--a;break}t&&(r=(n=this.remapping(a,this.items.length)).maps.length);let s=e.tr,l=[],d=[];return this.items.forEach((e,t)=>{if(!e.step){n||(r=(n=this.remapping(a,t+1)).maps.length),r--,d.push(e);return}if(n){d.push(new c(e.map));let t=e.step.map(n.slice(r)),i;t&&s.maybeStep(t).doc&&(i=s.mapping.maps[s.mapping.maps.length-1],l.push(new c(i,void 0,void 0,l.length+d.length))),r--,i&&n.appendMap(i,r)}else s.maybeStep(e.step);if(e.selection)return i=n?e.selection.map(n.slice(r)):e.selection,o=new u(this.items.slice(0,a).append(d.reverse().concat(l)),this.eventCount-1),!1},this.items.length,0),{remaining:o,transform:s,selection:i}}addTransform(e,t,n,r){var i,o;let a,s=[],l=this.eventCount,d=this.items,p=!r&&d.length?d.get(d.length-1):null;for(let n=0;nh&&(i=d,o=f,i.forEach((e,t)=>{if(e.selection&&0==o--)return a=t,!1}),d=i.slice(a),l-=f),new u(d.append(s),l)}remapping(e,t){let n=new s.vs;return this.items.forEach((t,r)=>{let i=null!=t.mirrorOffset&&r-t.mirrorOffset>=e?n.maps.length-t.mirrorOffset:void 0;n.appendMap(t.map,i)},e,t),n}addMaps(e){return 0==this.eventCount?this:new u(this.items.append(e.map(e=>new c(e))),this.eventCount)}rebased(e,t){if(!this.eventCount)return this;let n=[],r=Math.max(0,this.items.length-t),i=e.mapping,o=e.steps.length,a=this.eventCount;this.items.forEach(e=>{e.selection&&a--},r);let s=t;this.items.forEach(t=>{let r=i.getMirror(--s);if(null==r)return;o=Math.min(o,r);let l=i.maps[r];if(t.step){let o=e.steps[r].invert(e.docs[r]),u=t.selection&&t.selection.map(i.slice(s+1,r));u&&a++,n.push(new c(l,o,u))}else n.push(new c(l))},r);let l=[];for(let e=t;e500&&(h=h.compress(this.items.length-n.length)),h}emptyItemCount(){let e=0;return this.items.forEach(t=>{!t.step&&e++}),e}compress(e=this.items.length){let t=this.remapping(0,e),n=t.maps.length,r=[],o=0;return this.items.forEach((i,a)=>{if(a>=e)r.push(i),i.selection&&o++;else if(i.step){let e=i.step.map(t.slice(n)),a=e&&e.getMap();if(n--,a&&t.appendMap(a,n),e){let s=i.selection&&i.selection.map(t.slice(n));s&&o++;let l=new c(a.invert(),e,s),u,d=r.length-1;(u=r.length&&r[d].merge(l))?r[d]=u:r.push(l)}}else i.map&&n--},this.items.length,0),new u(i.from(r.reverse()),o)}}u.empty=new u(i.empty,0);class c{constructor(e,t,n,r){this.map=e,this.step=t,this.selection=n,this.mirrorOffset=r}merge(e){if(this.step&&e.step&&!e.selection){let t=e.step.merge(this.step);if(t)return new c(t.getMap().invert(),t,this.selection)}}}class d{constructor(e,t,n,r,i){this.done=e,this.undone=t,this.prevRanges=n,this.prevTime=r,this.prevComposition=i}}let h=20;function p(e){let t=[];return e.forEach((e,n,r,i)=>t.push(r,i)),t}function f(e,t){if(!e)return null;let n=[];for(let r=0;r{let i=y.getState(n);if(!i||0==(e?i.undone:i.done).eventCount)return!1;if(r){let o=function(e,t,n){let r=v(t),i=y.get(t).spec.config,o=(n?e.undone:e.done).popEvent(t,r);if(!o)return null;let a=o.selection.resolve(o.transform.doc),s=(n?e.done:e.undone).addTransform(o.transform,t.selection.getBookmark(),i,r),l=new d(n?s:o.remaining,n?o.remaining:s,null,0,-1);return o.transform.setSelection(a).setMeta(y,{redo:n,historyState:l})}(i,n,e);o&&r(t?o.scrollIntoView():o)}return!0}}let w=k(!1,!0),x=k(!0,!0);k(!1,!1),k(!0,!1);let _=r.hj.create({name:"history",addOptions:()=>({depth:100,newGroupDelay:500}),addCommands:()=>({undo:()=>({state:e,dispatch:t})=>w(e,t),redo:()=>({state:e,dispatch:t})=>x(e,t)}),addProseMirrorPlugins(){return[function(e={}){return e={depth:e.depth||100,newGroupDelay:e.newGroupDelay||500},new l.Sy({key:y,state:{init:()=>new d(u.empty,u.empty,null,0,-1),apply:(t,n,r)=>(function(e,t,n,r){let i=n.getMeta(y),o;if(i)return i.historyState;n.getMeta(b)&&(e=new d(e.done,e.undone,null,0,-1));let a=n.getMeta("appendedTransaction");if(0==n.steps.length)return e;if(a&&a.getMeta(y))return a.getMeta(y).redo?new d(e.done.addTransform(n,void 0,r,v(t)),e.undone,p(n.mapping.maps[n.steps.length-1]),e.prevTime,e.prevComposition):new d(e.done,e.undone.addTransform(n,void 0,r,v(t)),null,e.prevTime,e.prevComposition);if(!1===n.getMeta("addToHistory")||a&&!1===a.getMeta("addToHistory"))return(o=n.getMeta("rebased"))?new d(e.done.rebased(n,o),e.undone.rebased(n,o),f(e.prevRanges,n.mapping),e.prevTime,e.prevComposition):new d(e.done.addMaps(n.mapping.maps),e.undone.addMaps(n.mapping.maps),f(e.prevRanges,n.mapping),e.prevTime,e.prevComposition);{let i=n.getMeta("composition"),o=0==e.prevTime||!a&&e.prevComposition!=i&&(e.prevTime<(n.time||0)-r.newGroupDelay||!function(e,t){if(!t)return!1;if(!e.docChanged)return!0;let n=!1;return e.mapping.maps[0].forEach((e,r)=>{for(let i=0;i=t[i]&&(n=!0)}),n}(n,e.prevRanges)),s=a?f(e.prevRanges,n.mapping):p(n.mapping.maps[n.steps.length-1]);return new d(e.done.addTransform(n,o?t.selection.getBookmark():void 0,r,v(t)),u.empty,s,n.time,null==i?e.prevComposition:i)}})(n,r,t,e)},config:e,props:{handleDOMEvents:{beforeinput(e,t){let n=t.inputType,r="historyUndo"==n?w:"historyRedo"==n?x:null;return!!r&&(t.preventDefault(),r(e.state,e.dispatch))}}}})}(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}})},24424:function(e,t,n){"use strict";n.d(t,{ZP:function(){return o}});var r=n(37243);let i=/(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/,o=r.NB.create({name:"image",addOptions:()=>({inline:!1,allowBase64:!1,HTMLAttributes:{}}),inline(){return this.options.inline},group(){return this.options.inline?"inline":"block"},draggable:!0,addAttributes:()=>({src:{default:null},alt:{default:null},title:{default:null}}),parseHTML(){return[{tag:this.options.allowBase64?"img[src]":'img[src]:not([src^="data:"])'}]},renderHTML({HTMLAttributes:e}){return["img",(0,r.P1)(this.options.HTMLAttributes,e)]},addCommands(){return{setImage:e=>({commands:t})=>t.insertContent({type:this.name,attrs:e})}},addInputRules(){return[(0,r.x2)({find:i,type:this.type,getAttributes:e=>{let[,,t,n,r]=e;return{src:n,alt:t,title:r}}})]}})},9432:function(e,t,n){"use strict";n.d(t,{Tx:function(){return l},ZP:function(){return l}});var r=n(37243);let i=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,o=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,a=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,s=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,l=r.vc.create({name:"italic",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"em"},{tag:"i",getAttrs:e=>"normal"!==e.style.fontStyle&&null},{style:"font-style=italic"}],renderHTML({HTMLAttributes:e}){return["em",(0,r.P1)(this.options.HTMLAttributes,e),0]},addCommands(){return{setItalic:()=>({commands:e})=>e.setMark(this.name),toggleItalic:()=>({commands:e})=>e.toggleMark(this.name),unsetItalic:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[(0,r.Cf)({find:i,type:this.type}),(0,r.Cf)({find:a,type:this.type})]},addPasteRules(){return[(0,r.K9)({find:o,type:this.type}),(0,r.K9)({find:s,type:this.type})]}})},70675:function(e,t,n){"use strict";n.d(t,{ZP:function(){return eO}});var r=n(37243);let i=(e,t)=>{for(let n in t)e[n]=t[n];return e},o="numeric",a="ascii",s="alpha",l="asciinumeric",u="alphanumeric",c="domain",d="emoji",h="whitespace";function p(e,t,n){for(let r in t[o]&&(t[l]=!0,t[u]=!0),t[a]&&(t[l]=!0,t[s]=!0),t[l]&&(t[u]=!0),t[s]&&(t[u]=!0),t[u]&&(t[c]=!0),t[d]&&(t[c]=!0),t){let t=(r in n||(n[r]=[]),n[r]);0>t.indexOf(e)&&t.push(e)}}function f(e){void 0===e&&(e=null),this.j={},this.jr=[],this.jd=null,this.t=e}f.groups={},f.prototype={accepts(){return!!this.t},go(e){let t=this.j[e];if(t)return t;for(let t=0;t=0&&(n[r]=!0);return n}(o.t,r),n);p(t,e,r)}else n&&p(t,n,r)}o.t=t}return this.j[e]=o,o}};let m=(e,t,n,r,i)=>e.ta(t,n,r,i),g=(e,t,n,r,i)=>e.tr(t,n,r,i),v=(e,t,n,r,i)=>e.ts(t,n,r,i),y=(e,t,n,r,i)=>e.tt(t,n,r,i),b="WORD",k="UWORD",w="LOCALHOST",x="UTLD",_="SCHEME",S="SLASH_SCHEME",E="OPENBRACE",D="OPENBRACKET",C="OPENANGLEBRACKET",j="OPENPAREN",O="CLOSEBRACE",T="CLOSEBRACKET",A="CLOSEANGLEBRACKET",P="CLOSEPAREN",R="AMPERSAND",M="APOSTROPHE",F="ASTERISK",N="BACKSLASH",I="BACKTICK",L="CARET",B="COLON",z="COMMA",U="DOLLAR",q="EQUALS",$="EXCLAMATION",H="HYPHEN",V="PERCENT",W="PIPE",G="PLUS",Y="POUND",Z="QUERY",K="QUOTE",J="SEMI",X="SLASH",Q="TILDE",ee="UNDERSCORE",et="EMOJI";var en=Object.freeze({__proto__:null,WORD:b,UWORD:k,LOCALHOST:w,TLD:"TLD",UTLD:x,SCHEME:_,SLASH_SCHEME:S,NUM:"NUM",WS:"WS",NL:"NL",OPENBRACE:E,OPENBRACKET:D,OPENANGLEBRACKET:C,OPENPAREN:j,CLOSEBRACE:O,CLOSEBRACKET:T,CLOSEANGLEBRACKET:A,CLOSEPAREN:P,AMPERSAND:R,APOSTROPHE:M,ASTERISK:F,AT:"AT",BACKSLASH:N,BACKTICK:I,CARET:L,COLON:B,COMMA:z,DOLLAR:U,DOT:"DOT",EQUALS:q,EXCLAMATION:$,HYPHEN:H,PERCENT:V,PIPE:W,PLUS:G,POUND:Y,QUERY:Z,QUOTE:K,SEMI:J,SLASH:X,TILDE:Q,UNDERSCORE:ee,EMOJI:et,SYM:"SYM"});let er=/[a-z]/,ei=/\p{L}/u,eo=/\p{Emoji}/u,ea=/\d/,es=/\s/,el=null,eu=null;function ec(e,t,n,r,i){let o;let a=t.length;for(let n=0;n=0;)i++;if(i>0){t.push(n.join(""));let o=parseInt(e.substring(r,r+i),10);for(;o>0;o--)n.pop();r+=i}else"_"===e[r]?t.push(n.join("")):n.push(e[r]),r++}return t}let eh={defaultProtocol:"http",events:null,format:ef,formatHref:ef,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function ep(e,t){void 0===t&&(t=null);let n=i({},eh);e&&(n=i(n,e instanceof ep?e.o:e));let r=n.ignoreTags,o=[];for(let e=0;ee,check(e){return this.get("validate",e.toString(),e)},get(e,t,n){let r=null!=t,i=this.o[e];return i&&("object"==typeof i?"function"==typeof(i=n.t in i?i[n.t]:eh[e])&&r&&(i=i(t,n)):"function"==typeof i&&r&&(i=i(t,n.t,n))),i},getObj(e,t,n){let r=this.o[e];return"function"==typeof r&&null!=t&&(r=r(t,n.t,n)),r},render(e){let t=e.render(this),n=this.get("render",null,e)||this.defaultRender;return n(t,e.t,e)}},em.prototype={isLink:!1,toString(){return this.v},toHref(e){return this.toString()},toFormattedString(e){let t=this.toString(),n=e.get("truncate",t,this),r=e.get("format",t,this);return n&&r.length>n?r.substring(0,n)+"…":r},toFormattedHref(e){return e.get("formatHref",this.toHref(e.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(e){return void 0===e&&(e=eh.defaultProtocol),{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(e),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(e){return{type:this.t,value:this.toFormattedString(e),isLink:this.isLink,href:this.toFormattedHref(e),start:this.startIndex(),end:this.endIndex()}},validate(e){return e.get("validate",this.toString(),this)},render(e){let t=this.toFormattedHref(e),n=e.get("tagName",t,this),r=this.toFormattedString(e),o={},a=e.get("className",t,this),s=e.get("target",t,this),l=e.get("rel",t,this),u=e.getObj("attributes",t,this),c=e.getObj("events",t,this);return o.href=t,a&&(o.class=a),s&&(o.target=s),l&&(o.rel=l),u&&i(o,u),{tagName:n,attributes:o,content:r,eventListeners:c}}};let ev=eg("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),ey=eg("text"),eb=eg("nl"),ek=eg("url",{isLink:!0,toHref(e){return void 0===e&&(e=eh.defaultProtocol),this.hasProtocol()?this.v:`${e}://${this.v}`},hasProtocol(){let e=this.tk;return e.length>=2&&e[0].t!==w&&e[1].t===B}}),ew=e=>new f(e);function ex(e,t,n){let r=n[0].s,i=n[n.length-1].e,o=t.slice(r,i);return new e(o,n)}let e_="undefined"!=typeof console&&console&&console.warn||(()=>{}),eS={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function eE(e,t){if(void 0===t&&(t=!1),eS.initialized&&e_(`linkifyjs: already initialized - will not register custom scheme "${e}" until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(e))throw Error('linkifyjs: incorrect scheme format.\n 1. Must only contain digits, lowercase ASCII letters or "-"\n 2. Cannot start or end with "-"\n 3. "-" cannot repeat');eS.customSchemes.push([e,t])}function eD(e){return eS.initialized||function(){eS.scanner=function(e){void 0===e&&(e=[]);let t={};f.groups=t;let n=new f;null==el&&(el=ed("aaa1rp3barth4b_ott3vie4c1le2ogado5udhabi7c_ademy5centure6ountant_s9o1tor4d_s1ult4e_g1ro2tna4f_l1rica5g_akhan5ency5i_g1rbus3force5tel5kdn3l_faromeo7ibaba4pay4lfinanz6state5y2sace3tom5m_azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o_l2partments8p_le4q_uarelle8r_ab1mco4chi3my2pa2t_e3s_da2ia2sociates9t_hleta5torney7u_ction5di_ble3o3spost5thor3o_s4vianca6w_s2x_a2z_ure5ba_by2idu3namex3narepublic11d1k2r_celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b_c1t1va3cg1n2d1e_ats2uty4er2ntley5rlin4st_buy5t2f1g1h_arti5i_ble3d1ke2ng_o3o1z2j1lack_friday9ockbuster8g1omberg7ue3m_s1w2n_pparibas9o_ats3ehringer8fa2m1nd2o_k_ing5sch2tik2on4t1utique6x2r_adesco6idgestone9oadway5ker3ther5ussels7s1t1uild_ers6siness6y1zz3v1w1y1z_h3ca_b1fe2l_l1vinklein9m_era3p2non3petown5ital_one8r_avan4ds2e_er_s4s2sa1e1h1ino4t_ering5holic7ba1n1re2s2c1d1enter4o1rn3f_a1d2g1h_anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i_priani6rcle4sco3tadel4i_c2y_eats7k1l_aims4eaning6ick2nic1que6othing5ud3ub_med6m1n1o_ach3des3ffee4llege4ogne5m_cast4mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking_channel11l1p2rsica5untry4pon_s4rses6pa2r_edit_card4union9icket5own3s1uise_s6u_isinella9v1w1x1y_mru3ou3z2dabur3d1nce3ta1e1ing3sun4y2clk3ds2e_al_er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si_gn4v2hl2iamonds6et2gital5rect_ory7scount3ver5h2y2j1k1m1np2o_cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c_o2deka3u_cation8e1g1mail3erck5nergy4gineer_ing9terprises10pson4quipment8r_icsson6ni3s_q1tate5t_isalat7u_rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n_s2rm_ers5shion4t3edex3edback6rrari3ero6i_at2delity5o2lm2nal1nce1ial7re_stone6mdale6sh_ing5t_ness6j1k1lickr3ghts4r2orist4wers5y2m1o_o_d_network8tball6rd1ex2sale4um3undation8x2r_ee1senius7l1ogans4ntdoor4ier7tr2ujitsu5n_d2rniture7tbol5yi3ga_l_lery3o1up4me_s3p1rden4y2b_iz3d_n2e_a1nt_ing5orge5f1g_ee3h1i_ft_s3ves2ing5l_ass3e1obal2o4m_ail3bh2o1x2n1odaddy5ld_point6f2o_dyear5g_le4p1t1v2p1q1r_ainger5phics5tis4een3ipe3ocery4up4s1t1u_ardian6cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc_bank7ealth_care8lp1sinki6re1mes5gtv3iphop4samitsu7tachi5v2k_t2m1n1ockey4ldings5iday5medepot5goods5s_ense7nda3rse3spital5t_ing5t_eles2s3mail5use3w2r1sbc3t1u_ghes5yatt3undai7ibm2cbc2e1u2d1e_ee3fm2kano4l1m_amat4db2mo_bilien9n_c1dustries8finiti5o2g1k1stitute6urance4e4t_ernational10uit4vestments10o1piranga7q1r_ish4s_maili5t_anbul7t_au2v3jaguar4va3cb2e_ep2tzt3welry6io2ll2m_p2nj2o_bs1urg4t1y2p_morgan6rs3uegos4niper7kaufen5ddi3e_rryhotels6logistics9properties14fh2g1h1i_a1ds2m1nder2le4tchen5wi3m1n1oeln3matsu5sher5p_mg2n2r_d1ed3uokgroup8w1y_oto4z2la_caixa5mborghini8er3ncaster5ia3d_rover6xess5salle5t_ino3robe5w_yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i_dl2fe_insurance9style7ghting6ke2lly3mited4o2ncoln4de2k2psy3ve1ing5k1lc1p2oan_s3cker3us3l1ndon4tte1o3ve3pl_financial11r1s1t_d_a3u_ndbeck6xe1ury5v1y2ma_cys3drid4if1son4keup4n_agement7go3p1rket_ing3s4riott5shalls7serati6ttel5ba2c_kinsey7d1e_d_ia3et2lbourne7me1orial6n_u2rckmsd7g1h1iami3crosoft7l1ni1t2t_subishi9k1l_b1s2m_a2n1o_bi_le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to_rcycles9v_ie4p1q1r1s_d2t_n1r2u_seum3ic3tual5v1w1x1y1z2na_b1goya4me2tura4vy3ba2c1e_c1t_bank4flix4work5ustar5w_s2xt_direct7us4f_l2g_o2hk2i_co2ke1on3nja3ssan1y5l1o_kia3rthwesternmutual14on4w_ruz3tv4p1r_a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan_group9dnavy5lo3m_ega4ne1g1l_ine5oo2pen3racle3nge4g_anic5igins6saka4tsuka4t2vh3pa_ge2nasonic7ris2s1tners4s1y3ssagens7y2ccw3e_t2f_izer5g1h_armacy6d1ilips5one2to_graphy6s4ysio5ics1tet2ures6d1n_g1k2oneer5zza4k1l_ace2y_station9umbing5s3m1n_c2ohl2ker3litie5rn2st3r_america6xi3ess3ime3o_d_uctions8f1gressive8mo2perties3y5tection8u_dential9s1t1ub2w_c2y2qa1pon3uebec3st5racing4dio4e_ad1lestate6tor2y4cipes5d_stone5umbrella9hab3ise_n3t2liance6n_t_als5pair3ort3ublican8st_aurant8view_s5xroth6ich_ardli6oh3l1o1p2o_cher3ks3deo3gers4om3s_vp3u_gby3hr2n2w_e2yukyu6sa_arland6fe_ty4kura4le1on3msclub4ung5ndvik_coromant12ofi4p1rl2s1ve2xo3b_i1s2c_a1b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e_arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x_y3fr2g1h_angrila6rp2w2ell3ia1ksha5oes2p_ping5uji3w_time7i_lk2na1gles5te3j1k_i_n2y_pe4l_ing4m_art3ile4n_cf3o_ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa_ce3ort2t3r_l2s1t_ada2ples4r1tebank4farm7c_group6ockholm6rage3e3ream4udio2y3yle4u_cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y_dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x_i3c_i2d_k2eam2ch_nology8l1masek5nnis4va3f1g1h_d1eater2re6iaa2ckets5enda4ffany5ps2res2ol4j_maxx4x2k_maxx5l1m_all4n1o_day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r_ade1ing4ining5vel_channel7ers_insurance16ust3v2t1ube2i1nes3shu4v_s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va_cations7na1guard7c1e_gas3ntures6risign5m\xf6gensberater2ung14sicherung10t2g1i_ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lkswagen7vo3te1ing3o2yage5u_elos6wales2mart4ter4ng_gou5tch_es6eather_channel12bcam3er2site5d_ding5ibo2r3f1hoswho6ien2ki2lliamhill9n_dows4e1ners6me2olterskluwer11odside6rk_s2ld3w2s1tc1f3xbox3erox4finity6ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u_tube6t1un3za_ppos4ra3ero3ip2m1one3uerich6w2")),null==eu&&(eu=ed("ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5تصالات6رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत_म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里_大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2")),y(n,"'",M),y(n,"{",E),y(n,"[",D),y(n,"<",C),y(n,"(",j),y(n,"}",O),y(n,"]",T),y(n,">",A),y(n,")",P),y(n,"&",R),y(n,"*",F),y(n,"@","AT"),y(n,"`",I),y(n,"^",L),y(n,":",B),y(n,",",z),y(n,"$",U),y(n,".","DOT"),y(n,"=",q),y(n,"!",$),y(n,"-",H),y(n,"%",V),y(n,"|",W),y(n,"+",G),y(n,"#",Y),y(n,"?",Z),y(n,'"',K),y(n,"/",X),y(n,";",J),y(n,"~",Q),y(n,"_",ee),y(n,"\\",N);let r=g(n,ea,"NUM",{[o]:!0});g(r,ea,r);let u=g(n,er,b,{[a]:!0});g(u,er,u);let m=g(n,ei,k,{[s]:!0});g(m,er),g(m,ei,m);let eh=g(n,es,"WS",{[h]:!0});y(n,"\n","NL",{[h]:!0}),y(eh,"\n"),g(eh,es,eh);let ep=g(n,eo,et,{[d]:!0});g(ep,eo,ep),y(ep,"️",ep);let ef=y(ep,"‍");g(ef,eo,ep);let em=[[er,u]],eg=[[er,null],[ei,m]];for(let e=0;ee[0]>t[0]?1:-1);for(let t=0;t=0?s[c]=!0:er.test(r)?ea.test(r)?s[l]=!0:s[a]=!0:s[o]=!0,v(n,r,r,s)}return v(n,"localhost",w,{ascii:!0}),n.jd=new f("SYM"),{start:n,tokens:i({groups:t},en)}}(eS.customSchemes);for(let e=0;e=0&&h++,i++,c++;if(h<0)(i-=c)0&&(o.push(ex(ey,t,a)),a=[]),i-=h,c-=h;let e=d.t,r=n.slice(i-c,i);o.push(ex(e,t,r))}}return a.length>0&&o.push(ex(ey,t,a)),o}(eS.parser.start,e,function(e,t){let n=function(e){let t=[],n=e.length,r=0;for(;r56319||r+1===n||(i=e.charCodeAt(r+1))<56320||i>57343?e[r]:e.slice(r,r+2);t.push(a),r+=a.length}return t}(t.replace(/[A-Z]/g,e=>e.toLowerCase())),r=n.length,i=[],o=0,a=0;for(;a=0&&(d+=n[a].length,h++),u+=n[a].length,o+=n[a].length,a++;o-=d,a-=h,u-=d,i.push({t:c.t,v:t.slice(o-u,o),s:o-u,e:o})}return i}(eS.scanner.start,e))}function eC(e,t,n){if(void 0===t&&(t=null),void 0===n&&(n=null),t&&"object"==typeof t){if(n)throw Error(`linkifyjs: Invalid link type ${t}; must be a string`);n=t,t=null}let r=new ep(n),i=eD(e),o=[];for(let e=0;e{if("string"==typeof e){eE(e);return}eE(e.scheme,e.optionalSlashes)})},onDestroy(){f.groups={},eS.scanner=null,eS.parser=null,eS.tokenQueue=[],eS.pluginQueue=[],eS.customSchemes=[],eS.initialized=!1},inclusive(){return this.options.autolink},addOptions:()=>({openOnClick:!0,linkOnPaste:!0,autolink:!0,protocols:[],HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},validate:void 0}),addAttributes(){return{href:{default:null},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class}}},parseHTML:()=>[{tag:'a[href]:not([href *= "javascript:" i])'}],renderHTML({HTMLAttributes:e}){var t;return(null===(t=e.href)||void 0===t?void 0:t.startsWith("javascript:"))?["a",(0,r.P1)(this.options.HTMLAttributes,{...e,href:""}),0]:["a",(0,r.P1)(this.options.HTMLAttributes,e),0]},addCommands(){return{setLink:e=>({chain:t})=>t().setMark(this.name,e).setMeta("preventAutolink",!0).run(),toggleLink:e=>({chain:t})=>t().toggleMark(this.name,e,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run(),unsetLink:()=>({chain:e})=>e().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[(0,r.K9)({find:e=>{let t=[];if(e){let n=eC(e).filter(e=>e.isLink);n.length&&n.forEach(e=>t.push({text:e.value,data:{href:e.href},index:e.start}))}return t},type:this.type,getAttributes:e=>{var t;return{href:null===(t=e.data)||void 0===t?void 0:t.href}}})]},addProseMirrorPlugins(){var e,t,n;let i=[];return this.options.autolink&&i.push((e={type:this.type,validate:this.options.validate},new ej.Sy({key:new ej.H$("autolink"),appendTransaction:(t,n,i)=>{let o=t.some(e=>e.docChanged)&&!n.doc.eq(i.doc),a=t.some(e=>e.getMeta("preventAutolink"));if(!o||a)return;let{tr:s}=i,l=(0,r.XP)(n.doc,[...t]),u=(0,r.QC)(l);if(u.forEach(({newRange:t})=>{let n,o;let a=(0,r.b5)(i.doc,t,e=>e.isTextblock);if(a.length>1?(n=a[0],o=i.doc.textBetween(n.pos,n.pos+n.node.nodeSize,void 0," ")):a.length&&i.doc.textBetween(t.from,t.to," "," ").endsWith(" ")&&(n=a[0],o=i.doc.textBetween(n.pos,t.to,void 0," ")),n&&o){let t=o.split(" ").filter(e=>""!==e);if(t.length<=0)return!1;let a=t[t.length-1],l=n.pos+o.lastIndexOf(a);if(!a)return!1;let u=eD(a).map(e=>e.toObject());if(!(1===u.length?u[0].isLink:3===u.length&&!!u[1].isLink&&["()","[]"].includes(u[0].value+u[2].value)))return!1;u.filter(e=>e.isLink).map(e=>({...e,from:l+e.start+1,to:l+e.end+1})).filter(e=>!i.schema.marks.code||!i.doc.rangeHasMark(e.from,e.to,i.schema.marks.code)).filter(t=>!e.validate||e.validate(t.value)).forEach(t=>{(0,r.tI)(t.from,t.to,i.doc).some(t=>t.mark.type===e.type)||s.addMark(t.from,t.to,e.type.create({href:t.href}))})}}),s.steps.length)return s}}))),this.options.openOnClick&&i.push((t={type:this.type,whenNotEditable:"whenNotEditable"===this.options.openOnClick},new ej.Sy({key:new ej.H$("handleClickLink"),props:{handleClick:(e,n,i)=>{var o,a;if(t.whenNotEditable&&e.editable||0!==i.button)return!1;let s=i.target,l=[];for(;"DIV"!==s.nodeName;)l.push(s),s=s.parentNode;if(!l.find(e=>"A"===e.nodeName))return!1;let u=(0,r.u9)(e.state,t.type.name),c=i.target,d=null!==(o=null==c?void 0:c.href)&&void 0!==o?o:u.href,h=null!==(a=null==c?void 0:c.target)&&void 0!==a?a:u.target;return!!c&&!!d&&(window.open(d,h),!0)}}}))),this.options.linkOnPaste&&i.push((n={editor:this.editor,type:this.type},new ej.Sy({key:new ej.H$("handlePasteLink"),props:{handlePaste:(e,t,r)=>{let{state:i}=e,{selection:o}=i,{empty:a}=o;if(a)return!1;let s="";r.content.forEach(e=>{s+=e.textContent});let l=eC(s).find(e=>e.isLink&&e.value===s);return!!s&&!!l&&(n.editor.commands.setMark(n.type,{href:l.href}),!0)}}}))),i}})},38438:function(e,t,n){"use strict";n.d(t,{Z:function(){return i},n:function(){return i}});var r=n(37243);let i=r.NB.create({name:"paragraph",priority:1e3,addOptions:()=>({HTMLAttributes:{}}),group:"block",content:"inline*",parseHTML:()=>[{tag:"p"}],renderHTML({HTMLAttributes:e}){return["p",(0,r.P1)(this.options.HTMLAttributes,e),0]},addCommands(){return{setParagraph:()=>({commands:e})=>e.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}})},78563:function(e,t,n){"use strict";n.d(t,{Re:function(){return a},ZP:function(){return a}});var r=n(37243);let i=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,o=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,a=r.vc.create({name:"strike",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:e=>!!e.includes("line-through")&&{}}],renderHTML({HTMLAttributes:e}){return["s",(0,r.P1)(this.options.HTMLAttributes,e),0]},addCommands(){return{setStrike:()=>({commands:e})=>e.setMark(this.name),toggleStrike:()=>({commands:e})=>e.toggleMark(this.name),unsetStrike:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[(0,r.Cf)({find:i,type:this.type})]},addPasteRules(){return[(0,r.K9)({find:o,type:this.type})]}})},39615:function(e,t,n){"use strict";n.d(t,{x:function(){return i}});var r=n(37243);let i=r.NB.create({name:"text",group:"inline"})},39475:function(e,t,n){"use strict";n.d(t,{Z:function(){return i},v:function(){return i}});var r=n(37243);let i=r.vc.create({name:"underline",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:e=>!!e.includes("underline")&&{}}],renderHTML({HTMLAttributes:e}){return["u",(0,r.P1)(this.options.HTMLAttributes,e),0]},addCommands(){return{setUnderline:()=>({commands:e})=>e.setMark(this.name),toggleUnderline:()=>({commands:e})=>e.toggleMark(this.name),unsetUnderline:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}})},85311:function(e,t,n){"use strict";n.d(t,{Z:function(){return A}});var r=n(37243),i=n(79609),o=n(86900);let a=r.NB.create({name:"listItem",addOptions:()=>({HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}),content:"paragraph block*",defining:!0,parseHTML:()=>[{tag:"li"}],renderHTML({HTMLAttributes:e}){return["li",(0,r.P1)(this.options.HTMLAttributes,e),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),s=r.vc.create({name:"textStyle",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"span",getAttrs:e=>{let t=e.hasAttribute("style");return!!t&&{}}}],renderHTML({HTMLAttributes:e}){return["span",(0,r.P1)(this.options.HTMLAttributes,e),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:e,commands:t})=>{let n=(0,r.Jo)(e,this.type),i=Object.entries(n).some(([,e])=>!!e);return!!i||t.unsetMark(this.name)}}}}),l=/^\s*([-+*])\s$/,u=r.NB.create({name:"bulletList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}),group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML:()=>[{tag:"ul"}],renderHTML({HTMLAttributes:e}){return["ul",(0,r.P1)(this.options.HTMLAttributes,e),0]},addCommands(){return{toggleBulletList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(a.name,this.editor.getAttributes(s.name)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let e=(0,r.S0)({find:l,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(e=(0,r.S0)({find:l,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(s.name),editor:this.editor})),[e]}});var c=n(31187),d=n(25059),h=n(42626),p=n(27191),f=n(26151);class m{constructor(e,t){var n;this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=null!==(n=t.width)&&void 0!==n?n:1,this.color=!1===t.color?void 0:t.color||"black",this.class=t.class,this.handlers=["dragover","dragend","drop","dragleave"].map(t=>{let n=e=>{this[t](e)};return e.dom.addEventListener(t,n),{name:t,handler:n}})}destroy(){this.handlers.forEach(({name:e,handler:t})=>this.editorView.dom.removeEventListener(e,t))}update(e,t){null!=this.cursorPos&&t.doc!=e.state.doc&&(this.cursorPos>e.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,null==e?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e,t,n=this.editorView.state.doc.resolve(this.cursorPos),r=!n.parent.inlineContent,i;if(r){let e=n.nodeBefore,t=n.nodeAfter;if(e||t){let n=this.editorView.nodeDOM(this.cursorPos-(e?e.nodeSize:0));if(n){let r=n.getBoundingClientRect(),o=e?r.bottom:r.top;e&&t&&(o=(o+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),i={left:r.left,right:r.right,top:o-this.width/2,bottom:o+this.width/2}}}}if(!i){let e=this.editorView.coordsAtPos(this.cursorPos);i={left:e.left-this.width/2,right:e.left+this.width/2,top:e.top,bottom:e.bottom}}let o=this.editorView.dom.offsetParent;if(!this.element&&(this.element=o.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",r),this.element.classList.toggle("prosemirror-dropcursor-inline",!r),o&&(o!=document.body||"static"!=getComputedStyle(o).position)){let n=o.getBoundingClientRect();e=n.left-o.scrollLeft,t=n.top-o.scrollTop}else e=-pageXOffset,t=-pageYOffset;this.element.style.left=i.left-e+"px",this.element.style.top=i.top-t+"px",this.element.style.width=i.right-i.left+"px",this.element.style.height=i.bottom-i.top+"px"}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),e)}dragover(e){if(!this.editorView.editable)return;let t=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),n=t&&t.inside>=0&&this.editorView.state.doc.nodeAt(t.inside),r=n&&n.type.spec.disableDropCursor,i="function"==typeof r?r(this.editorView,t,e):r;if(t&&!i){let e=t.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let t=(0,f.nj)(this.editorView.state.doc,e,this.editorView.dragging.slice);null!=t&&(e=t)}this.setCursor(e),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){e.target!=this.editorView.dom&&this.editorView.dom.contains(e.relatedTarget)||this.setCursor(null)}}let g=r.hj.create({name:"dropCursor",addOptions:()=>({color:"currentColor",width:1,class:void 0}),addProseMirrorPlugins(){return[function(e={}){return new p.Sy({view:t=>new m(t,e)})}(this.options)]}});var v=n(36518),y=n(39949),b=n(71391),k=n(86509);let w=r.NB.create({name:"horizontalRule",addOptions:()=>({HTMLAttributes:{}}),group:"block",parseHTML:()=>[{tag:"hr"}],renderHTML({HTMLAttributes:e}){return["hr",(0,r.P1)(this.options.HTMLAttributes,e)]},addCommands(){return{setHorizontalRule:()=>({chain:e,state:t})=>{let{$to:n}=t.selection,r=e();return 0===n.parentOffset?r.insertContentAt(Math.max(n.pos-2,0),{type:this.name}):r.insertContent({type:this.name}),r.command(({tr:e,dispatch:t})=>{var n;if(t){let{$to:t}=e.selection,r=t.end();if(t.nodeAfter)t.nodeAfter.isTextblock?e.setSelection(p.Bs.create(e.doc,t.pos+1)):t.nodeAfter.isBlock?e.setSelection(p.qv.create(e.doc,t.pos)):e.setSelection(p.Bs.create(e.doc,t.pos));else{let i=null===(n=t.parent.type.contentMatch.defaultType)||void 0===n?void 0:n.create();i&&(e.insert(r,i),e.setSelection(p.Bs.create(e.doc,r+1)))}e.scrollIntoView()}return!0}).run()}}},addInputRules(){return[(0,r.x2)({find:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.type})]}});var x=n(9432);let _=r.NB.create({name:"listItem",addOptions:()=>({HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}),content:"paragraph block*",defining:!0,parseHTML:()=>[{tag:"li"}],renderHTML({HTMLAttributes:e}){return["li",(0,r.P1)(this.options.HTMLAttributes,e),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),S=r.NB.create({name:"listItem",addOptions:()=>({HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}),content:"paragraph block*",defining:!0,parseHTML:()=>[{tag:"li"}],renderHTML({HTMLAttributes:e}){return["li",(0,r.P1)(this.options.HTMLAttributes,e),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),E=r.vc.create({name:"textStyle",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"span",getAttrs:e=>{let t=e.hasAttribute("style");return!!t&&{}}}],renderHTML({HTMLAttributes:e}){return["span",(0,r.P1)(this.options.HTMLAttributes,e),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:e,commands:t})=>{let n=(0,r.Jo)(e,this.type),i=Object.entries(n).some(([,e])=>!!e);return!!i||t.unsetMark(this.name)}}}}),D=/^(\d+)\.\s$/,C=r.NB.create({name:"orderedList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}),group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes:()=>({start:{default:1,parseHTML:e=>e.hasAttribute("start")?parseInt(e.getAttribute("start")||"",10):1}}),parseHTML:()=>[{tag:"ol"}],renderHTML({HTMLAttributes:e}){let{start:t,...n}=e;return 1===t?["ol",(0,r.P1)(this.options.HTMLAttributes,n),0]:["ol",(0,r.P1)(this.options.HTMLAttributes,e),0]},addCommands(){return{toggleOrderedList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(S.name,this.editor.getAttributes(E.name)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let e=(0,r.S0)({find:D,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(e=(0,r.S0)({find:D,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(E.name)}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1],editor:this.editor})),[e]}});var j=n(38438),O=n(78563),T=n(39615);let A=r.hj.create({name:"starterKit",addExtensions(){var e,t,n,r,a,s,l,p,f,m,S,E,D,A,P,R,M,F;let N=[];return!1!==this.options.blockquote&&N.push(i.V6.configure(null===(e=this.options)||void 0===e?void 0:e.blockquote)),!1!==this.options.bold&&N.push(o.d8.configure(null===(t=this.options)||void 0===t?void 0:t.bold)),!1!==this.options.bulletList&&N.push(u.configure(null===(n=this.options)||void 0===n?void 0:n.bulletList)),!1!==this.options.code&&N.push(c.EK.configure(null===(r=this.options)||void 0===r?void 0:r.code)),!1!==this.options.codeBlock&&N.push(d.dn.configure(null===(a=this.options)||void 0===a?void 0:a.codeBlock)),!1!==this.options.document&&N.push(h.B.configure(null===(s=this.options)||void 0===s?void 0:s.document)),!1!==this.options.dropcursor&&N.push(g.configure(null===(l=this.options)||void 0===l?void 0:l.dropcursor)),!1!==this.options.gapcursor&&N.push(v.f.configure(null===(p=this.options)||void 0===p?void 0:p.gapcursor)),!1!==this.options.hardBreak&&N.push(y.U.configure(null===(f=this.options)||void 0===f?void 0:f.hardBreak)),!1!==this.options.heading&&N.push(b.X.configure(null===(m=this.options)||void 0===m?void 0:m.heading)),!1!==this.options.history&&N.push(k.A.configure(null===(S=this.options)||void 0===S?void 0:S.history)),!1!==this.options.horizontalRule&&N.push(w.configure(null===(E=this.options)||void 0===E?void 0:E.horizontalRule)),!1!==this.options.italic&&N.push(x.Tx.configure(null===(D=this.options)||void 0===D?void 0:D.italic)),!1!==this.options.listItem&&N.push(_.configure(null===(A=this.options)||void 0===A?void 0:A.listItem)),!1!==this.options.orderedList&&N.push(C.configure(null===(P=this.options)||void 0===P?void 0:P.orderedList)),!1!==this.options.paragraph&&N.push(j.n.configure(null===(R=this.options)||void 0===R?void 0:R.paragraph)),!1!==this.options.strike&&N.push(O.Re.configure(null===(M=this.options)||void 0===M?void 0:M.strike)),!1!==this.options.text&&N.push(T.x.configure(null===(F=this.options)||void 0===F?void 0:F.text)),N}})},75054:function(e,t,n){"use strict";n.d(t,{G7:function(){return tx},Th:function(){return tw},gk:function(){return e2},P0:function(){return eL},NI:function(){return t_},cQ:function(){return eq}});var r,i,o,a,s=n(2784),l=n(51987);let u={toVector:(e,t)=>(void 0===e&&(e=t),Array.isArray(e)?e:[e,e]),add:(e,t)=>[e[0]+t[0],e[1]+t[1]],sub:(e,t)=>[e[0]-t[0],e[1]-t[1]],addTo(e,t){e[0]+=t[0],e[1]+=t[1]},subTo(e,t){e[0]-=t[0],e[1]-=t[1]}};function c(e,t,n){return 0===t||Math.abs(t)===1/0?Math.pow(e,5*n):e*t*n/(t+n*e)}function d(e,t,n,r=.15){return 0===r?Math.max(t,Math.min(e,n)):en?+c(e-n,n-t,r)+n:e}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function f(e){for(var t=1;tt.includes(e.identifier));return x(n,r)}function S(e){let t=w(e);return b(e)?t.identifier:t.pointerId}function E(e){let t=w(e);return[t.clientX,t.clientY]}function D(e){let{deltaX:t,deltaY:n,deltaMode:r}=e;return 1===r?(t*=40,n*=40):2===r&&(t*=800,n*=800),[t,n]}function C(e,...t){return"function"==typeof e?e(...t):e}function j(){}function O(e,t){return Object.assign({},t,e||{})}class T{constructor(e,t,n){this.ctrl=e,this.args=t,this.key=n,this.state||(this.state={},this.computeValues([0,0]),this.computeInitial(),this.init&&this.init(),this.reset())}get state(){return this.ctrl.state[this.key]}set state(e){this.ctrl.state[this.key]=e}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){let{state:e,shared:t,ingKey:n,args:r}=this;t[n]=e._active=e.active=e._blocked=e._force=!1,e._step=[!1,!1],e.intentional=!1,e._movement=[0,0],e._distance=[0,0],e._direction=[0,0],e._delta=[0,0],e._bounds=[[-1/0,1/0],[-1/0,1/0]],e.args=r,e.axis=void 0,e.memo=void 0,e.elapsedTime=0,e.direction=[0,0],e.distance=[0,0],e.overflow=[0,0],e._movementBound=[!1,!1],e.velocity=[0,0],e.movement=[0,0],e.delta=[0,0],e.timeStamp=0}start(e){let t=this.state,n=this.config;t._active||(this.reset(),this.computeInitial(),t._active=!0,t.target=e.target,t.currentTarget=e.currentTarget,t.lastOffset=n.from?C(n.from,t):t.offset,t.offset=t.lastOffset),t.startTime=t.timeStamp=e.timeStamp}computeValues(e){let t=this.state;t._values=e,t.values=this.config.transform(e)}computeInitial(){let e=this.state;e._initial=e._values,e.initial=e.values}compute(e){let{state:t,config:n,shared:r}=this;t.args=this.args;let i=0;if(e&&(t.event=e,n.preventDefault&&e.cancelable&&t.event.preventDefault(),t.type=e.type,r.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,r.locked=!!document.pointerLockElement,Object.assign(r,function(e){let t={};if("buttons"in e&&(t.buttons=e.buttons),"shiftKey"in e){let{shiftKey:n,altKey:r,metaKey:i,ctrlKey:o}=e;Object.assign(t,{shiftKey:n,altKey:r,metaKey:i,ctrlKey:o})}return t}(e)),r.down=r.pressed=r.buttons%2==1||r.touches>0,i=e.timeStamp-t.timeStamp,t.timeStamp=e.timeStamp,t.elapsedTime=t.timeStamp-t.startTime),t._active){let e=t._delta.map(Math.abs);u.addTo(t._distance,e)}this.axisIntent&&this.axisIntent(e);let[o,a]=t._movement,[s,l]=n.threshold,{_step:c,values:h}=t;if(n.hasCustomTransform?(!1===c[0]&&(c[0]=Math.abs(o)>=s&&h[0]),!1===c[1]&&(c[1]=Math.abs(a)>=l&&h[1])):(!1===c[0]&&(c[0]=Math.abs(o)>=s&&Math.sign(o)*s),!1===c[1]&&(c[1]=Math.abs(a)>=l&&Math.sign(a)*l)),t.intentional=!1!==c[0]||!1!==c[1],!t.intentional)return;let p=[0,0];if(n.hasCustomTransform){let[e,t]=h;p[0]=!1!==c[0]?e-c[0]:0,p[1]=!1!==c[1]?t-c[1]:0}else p[0]=!1!==c[0]?o-c[0]:0,p[1]=!1!==c[1]?a-c[1]:0;this.restrictToAxis&&!t._blocked&&this.restrictToAxis(p);let f=t.offset,m=t._active&&!t._blocked||t.active;m&&(t.first=t._active&&!t.active,t.last=!t._active&&t.active,t.active=r[this.ingKey]=t._active,e&&(t.first&&("bounds"in n&&(t._bounds=C(n.bounds,t)),this.setup&&this.setup()),t.movement=p,this.computeOffset()));let[g,v]=t.offset,[[y,b],[k,w]]=t._bounds;t.overflow=[gb?1:0,vw?1:0],t._movementBound[0]=!!t.overflow[0]&&(!1===t._movementBound[0]?t._movement[0]:t._movementBound[0]),t._movementBound[1]=!!t.overflow[1]&&(!1===t._movementBound[1]?t._movement[1]:t._movementBound[1]);let x=t._active&&n.rubberband||[0,0];if(t.offset=function(e,[t,n],[r,i]){let[[o,a],[s,l]]=e;return[d(t,o,a,r),d(n,s,l,i)]}(t._bounds,t.offset,x),t.delta=u.sub(t.offset,f),this.computeMovement(),m&&(!t.last||i>32)){t.delta=u.sub(t.offset,f);let e=t.delta.map(Math.abs);u.addTo(t.distance,e),t.direction=t.delta.map(Math.sign),t._direction=t._delta.map(Math.sign),!t.first&&i>0&&(t.velocity=[e[0]/i,e[1]/i])}}emit(){let e=this.state,t=this.shared,n=this.config;if(e._active||this.clean(),(e._blocked||!e.intentional)&&!e._force&&!n.triggerAllEvents)return;let r=this.handler(f(f(f({},t),e),{},{[this.aliasKey]:e.values}));void 0!==r&&(e.memo=r)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}class A extends T{constructor(...e){super(...e),h(this,"aliasKey","xy")}reset(){super.reset(),this.state.axis=void 0}init(){this.state.offset=[0,0],this.state.lastOffset=[0,0]}computeOffset(){this.state.offset=u.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=u.sub(this.state.offset,this.state.lastOffset)}axisIntent(e){let t=this.state,n=this.config;if(!t.axis&&e){let r="object"==typeof n.axisThreshold?n.axisThreshold[k(e)]:n.axisThreshold;t.axis=function([e,t],n){let r=Math.abs(e),i=Math.abs(t);return r>i&&r>n?"x":i>r&&i>n?"y":void 0}(t._movement,r)}t._blocked=(n.lockDirection||!!n.axis)&&!t.axis||!!n.axis&&n.axis!==t.axis}restrictToAxis(e){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":e[1]=0;break;case"y":e[0]=0}}}let P=e=>e,R={enabled:(e=!0)=>e,eventOptions:(e,t,n)=>f(f({},n.shared.eventOptions),e),preventDefault:(e=!1)=>e,triggerAllEvents:(e=!1)=>e,rubberband(e=0){switch(e){case!0:return[.15,.15];case!1:return[0,0];default:return u.toVector(e)}},from:e=>"function"==typeof e?e:null!=e?u.toVector(e):void 0,transform(e,t,n){let r=e||n.shared.transform;return this.hasCustomTransform=!!r,r||P},threshold:e=>u.toVector(e,0)},M=0,F=f(f({},R),{},{axis(e,t,{axis:n}){if(this.lockDirection="lock"===n,!this.lockDirection)return n},axisThreshold:(e=M)=>e,bounds(e={}){if("function"==typeof e)return t=>F.bounds(e(t));if("current"in e)return()=>e.current;if("function"==typeof HTMLElement&&e instanceof HTMLElement)return e;let{left:t=-1/0,right:n=1/0,top:r=-1/0,bottom:i=1/0}=e;return[[t,n],[r,i]]}}),N={ArrowRight:(e=1)=>[10*e,0],ArrowLeft:(e=1)=>[-10*e,0],ArrowUp:(e=1)=>[0,-10*e],ArrowDown:(e=1)=>[0,10*e]},I="undefined"!=typeof window&&window.document&&window.document.createElement;function L(){return I&&"ontouchstart"in window||I&&window.navigator.maxTouchPoints>1}let B={isBrowser:I,gesture:function(){try{return"constructor"in GestureEvent}catch(e){return!1}}(),touch:L(),touchscreen:L(),pointer:I&&"onpointerdown"in window,pointerLock:I&&"exitPointerLock"in window.document},z={mouse:0,touch:0,pen:8},U=f(f({},F),{},{device(e,t,{pointer:{touch:n=!1,lock:r=!1,mouse:i=!1}={}}){return(this.pointerLock=r&&B.pointerLock,B.touch&&n)?"touch":this.pointerLock?"mouse":B.pointer&&!i?"pointer":B.touch?"touch":"mouse"},preventScrollAxis(e,t,{preventScroll:n}){if(this.preventScrollDelay="number"==typeof n?n:n||void 0===n&&e?250:void 0,B.touchscreen&&!1!==n)return e||(void 0!==n?"y":void 0)},pointerCapture(e,t,{pointer:{capture:n=!0,buttons:r=1}={}}){return this.pointerButtons=r,!this.pointerLock&&"pointer"===this.device&&n},keys:(e=!0)=>e,threshold(e,t,{filterTaps:n=!1,tapsThreshold:r=3,axis:i}){let o=u.toVector(e,n?r:i?1:0);return this.filterTaps=n,this.tapsThreshold=r,o},swipe({velocity:e=.5,distance:t=50,duration:n=250}={}){return{velocity:this.transform(u.toVector(e)),distance:this.transform(u.toVector(t)),duration:n}},delay(e=0){switch(e){case!0:return 180;case!1:return 0;default:return e}},axisThreshold:e=>e?f(f({},z),e):z}),q=f(f({},R),{},{device(e,t,{shared:n,pointer:{touch:r=!1}={}}){if(n.target&&!B.touch&&B.gesture)return"gesture";if(B.touch&&r)return"touch";if(B.touchscreen){if(B.pointer)return"pointer";if(B.touch)return"touch"}},bounds(e,t,{scaleBounds:n={},angleBounds:r={}}){let i=e=>{let t=O(C(n,e),{min:-1/0,max:1/0});return[t.min,t.max]},o=e=>{let t=O(C(r,e),{min:-1/0,max:1/0});return[t.min,t.max]};return"function"!=typeof n&&"function"!=typeof r?[i(),o()]:e=>[i(e),o(e)]},threshold(e,t,n){this.lockDirection="lock"===n.axis;let r=u.toVector(e,this.lockDirection?[.1,3]:0);return r},modifierKey:e=>void 0===e?"ctrlKey":e}),$=f(f({},F),{},{mouseOnly:(e=!0)=>e}),H=f(f({},F),{},{mouseOnly:(e=!0)=>e}),V=new Map,W=new Map;function G(e){V.set(e.key,e.engine),W.set(e.key,e.resolver)}let Y={key:"drag",engine:class extends A{constructor(...e){super(...e),h(this,"ingKey","dragging")}reset(){super.reset();let e=this.state;e._pointerId=void 0,e._pointerActive=!1,e._keyboardActive=!1,e._preventScroll=!1,e._delayed=!1,e.swipe=[0,0],e.tap=!1,e.canceled=!1,e.cancel=this.cancel.bind(this)}setup(){let e=this.state;if(e._bounds instanceof HTMLElement){let t=e._bounds.getBoundingClientRect(),n=e.currentTarget.getBoundingClientRect(),r={left:t.left-n.left+e.offset[0],right:t.right-n.right+e.offset[0],top:t.top-n.top+e.offset[1],bottom:t.bottom-n.bottom+e.offset[1]};e._bounds=F.bounds(r)}}cancel(){let e=this.state;e.canceled||(e.canceled=!0,e._active=!1,setTimeout(()=>{this.compute(),this.emit()},0))}setActive(){this.state._active=this.state._pointerActive||this.state._keyboardActive}clean(){this.pointerClean(),this.state._pointerActive=!1,this.state._keyboardActive=!1,super.clean()}pointerDown(e){let t=this.config,n=this.state;if(null!=e.buttons&&(Array.isArray(t.pointerButtons)?!t.pointerButtons.includes(e.buttons):-1!==t.pointerButtons&&t.pointerButtons!==e.buttons))return;let r=this.ctrl.setEventIds(e);t.pointerCapture&&e.target.setPointerCapture(e.pointerId),r&&r.size>1&&n._pointerActive||(this.start(e),this.setupPointer(e),n._pointerId=S(e),n._pointerActive=!0,this.computeValues(E(e)),this.computeInitial(),t.preventScrollAxis&&"mouse"!==k(e)?(n._active=!1,this.setupScrollPrevention(e)):t.delay>0?(this.setupDelayTrigger(e),t.triggerAllEvents&&(this.compute(e),this.emit())):this.startPointerDrag(e))}startPointerDrag(e){let t=this.state;t._active=!0,t._preventScroll=!0,t._delayed=!1,this.compute(e),this.emit()}pointerMove(e){let t=this.state,n=this.config;if(!t._pointerActive||t.type===e.type&&e.timeStamp===t.timeStamp)return;let r=S(e);if(void 0!==t._pointerId&&r!==t._pointerId)return;let i=E(e);if(document.pointerLockElement===e.target?t._delta=[e.movementX,e.movementY]:(t._delta=u.sub(i,t._values),this.computeValues(i)),u.addTo(t._movement,t._delta),this.compute(e),t._delayed&&t.intentional){this.timeoutStore.remove("dragDelay"),t.active=!1,this.startPointerDrag(e);return}if(n.preventScrollAxis&&!t._preventScroll){if(!t.axis)return;if(t.axis===n.preventScrollAxis||"xy"===n.preventScrollAxis){t._active=!1,this.clean();return}this.timeoutStore.remove("startPointerDrag"),this.startPointerDrag(e);return}this.emit()}pointerUp(e){this.ctrl.setEventIds(e);try{this.config.pointerCapture&&e.target.hasPointerCapture(e.pointerId)&&e.target.releasePointerCapture(e.pointerId)}catch(e){}let t=this.state,n=this.config;if(!t._active||!t._pointerActive)return;let r=S(e);if(void 0!==t._pointerId&&r!==t._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(e);let[i,o]=t._distance;if(t.tap=i<=n.tapsThreshold&&o<=n.tapsThreshold,t.tap&&n.filterTaps)t._force=!0;else{let[e,r]=t.direction,[i,o]=t.velocity,[a,s]=t.movement,[l,u]=n.swipe.velocity,[c,d]=n.swipe.distance,h=n.swipe.duration;t.elapsedTimel&&Math.abs(a)>c&&(t.swipe[0]=e),Math.abs(o)>u&&Math.abs(s)>d&&(t.swipe[1]=r))}this.emit()}pointerClick(e){!this.state.tap&&e.detail>0&&(e.preventDefault(),e.stopPropagation())}setupPointer(e){let t=this.config,n=t.device;t.pointerLock&&e.currentTarget.requestPointerLock(),t.pointerCapture||(this.eventStore.add(this.sharedConfig.window,n,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,n,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,n,"cancel",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(e){this.state._preventScroll&&e.cancelable&&e.preventDefault()}setupScrollPrevention(e){this.state._preventScroll=!1,"persist"in e&&"function"==typeof e.persist&&e.persist();let t=this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1});this.eventStore.add(this.sharedConfig.window,"touch","end",t),this.eventStore.add(this.sharedConfig.window,"touch","cancel",t),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScrollDelay,e)}setupDelayTrigger(e){this.state._delayed=!0,this.timeoutStore.add("dragDelay",()=>{this.state._step=[0,0],this.startPointerDrag(e)},this.config.delay)}keyDown(e){let t=N[e.key];if(t){let n=this.state,r=e.shiftKey?10:e.altKey?.1:1;this.start(e),n._delta=t(r),n._keyboardActive=!0,u.addTo(n._movement,n._delta),this.compute(e),this.emit()}}keyUp(e){e.key in N&&(this.state._keyboardActive=!1,this.setActive(),this.compute(e),this.emit())}bind(e){let t=this.config.device;e(t,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(e(t,"change",this.pointerMove.bind(this)),e(t,"end",this.pointerUp.bind(this)),e(t,"cancel",this.pointerUp.bind(this)),e("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&&(e("key","down",this.keyDown.bind(this)),e("key","up",this.keyUp.bind(this))),this.config.filterTaps&&e("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}},resolver:U},Z={key:"hover",engine:class extends A{constructor(...e){super(...e),h(this,"ingKey","hovering")}enter(e){this.config.mouseOnly&&"mouse"!==e.pointerType||(this.start(e),this.computeValues(E(e)),this.compute(e),this.emit())}leave(e){if(this.config.mouseOnly&&"mouse"!==e.pointerType)return;let t=this.state;if(!t._active)return;t._active=!1;let n=E(e);t._movement=t._delta=u.sub(n,t._values),this.computeValues(n),this.compute(e),t.delta=t.movement,this.emit()}bind(e){e("pointer","enter",this.enter.bind(this)),e("pointer","leave",this.leave.bind(this))}},resolver:H},K={key:"move",engine:class extends A{constructor(...e){super(...e),h(this,"ingKey","moving")}move(e){this.config.mouseOnly&&"mouse"!==e.pointerType||(this.state._active?this.moveChange(e):this.moveStart(e),this.timeoutStore.add("moveEnd",this.moveEnd.bind(this)))}moveStart(e){this.start(e),this.computeValues(E(e)),this.compute(e),this.computeInitial(),this.emit()}moveChange(e){if(!this.state._active)return;let t=E(e),n=this.state;n._delta=u.sub(t,n._values),u.addTo(n._movement,n._delta),this.computeValues(t),this.compute(e),this.emit()}moveEnd(e){this.state._active&&(this.state._active=!1,this.compute(e),this.emit())}bind(e){e("pointer","change",this.move.bind(this)),e("pointer","leave",this.moveEnd.bind(this))}},resolver:$},J={key:"pinch",engine:class extends T{constructor(...e){super(...e),h(this,"ingKey","pinching"),h(this,"aliasKey","da")}init(){this.state.offset=[1,0],this.state.lastOffset=[1,0],this.state._pointerEvents=new Map}reset(){super.reset();let e=this.state;e._touchIds=[],e.canceled=!1,e.cancel=this.cancel.bind(this),e.turns=0}computeOffset(){let{type:e,movement:t,lastOffset:n}=this.state;"wheel"===e?this.state.offset=u.add(t,n):this.state.offset=[(1+t[0])*n[0],t[1]+n[1]]}computeMovement(){let{offset:e,lastOffset:t}=this.state;this.state.movement=[e[0]/t[0],e[1]-t[1]]}axisIntent(){let e=this.state,[t,n]=e._movement;if(!e.axis){let r=30*Math.abs(t)-Math.abs(n);r<0?e.axis="angle":r>0&&(e.axis="scale")}}restrictToAxis(e){this.config.lockDirection&&("scale"===this.state.axis?e[1]=0:"angle"===this.state.axis&&(e[0]=0))}cancel(){let e=this.state;e.canceled||setTimeout(()=>{e.canceled=!0,e._active=!1,this.compute(),this.emit()},0)}touchStart(e){this.ctrl.setEventIds(e);let t=this.state,n=this.ctrl.touchIds;if(t._active&&t._touchIds.every(e=>n.has(e))||n.size<2)return;this.start(e),t._touchIds=Array.from(n).slice(0,2);let r=_(e,t._touchIds);this.pinchStart(e,r)}pointerStart(e){if(null!=e.buttons&&e.buttons%2!=1)return;this.ctrl.setEventIds(e),e.target.setPointerCapture(e.pointerId);let t=this.state,n=t._pointerEvents,r=this.ctrl.pointerIds;if(t._active&&Array.from(n.keys()).every(e=>r.has(e))||(n.size<2&&n.set(e.pointerId,e),t._pointerEvents.size<2))return;this.start(e);let i=x(...Array.from(n.values()));this.pinchStart(e,i)}pinchStart(e,t){let n=this.state;n.origin=t.origin,this.computeValues([t.distance,t.angle]),this.computeInitial(),this.compute(e),this.emit()}touchMove(e){if(!this.state._active)return;let t=_(e,this.state._touchIds);this.pinchMove(e,t)}pointerMove(e){let t=this.state._pointerEvents;if(t.has(e.pointerId)&&t.set(e.pointerId,e),!this.state._active)return;let n=x(...Array.from(t.values()));this.pinchMove(e,n)}pinchMove(e,t){let n=this.state,r=n._values[1],i=t.angle-r,o=0;Math.abs(i)>270&&(o+=Math.sign(i)),this.computeValues([t.distance,t.angle-360*o]),n.origin=t.origin,n.turns=o,n._movement=[n._values[0]/n._initial[0]-1,n._values[1]-n._initial[1]],this.compute(e),this.emit()}touchEnd(e){this.ctrl.setEventIds(e),this.state._active&&this.state._touchIds.some(e=>!this.ctrl.touchIds.has(e))&&(this.state._active=!1,this.compute(e),this.emit())}pointerEnd(e){let t=this.state;this.ctrl.setEventIds(e);try{e.target.releasePointerCapture(e.pointerId)}catch(e){}t._pointerEvents.has(e.pointerId)&&t._pointerEvents.delete(e.pointerId),t._active&&t._pointerEvents.size<2&&(t._active=!1,this.compute(e),this.emit())}gestureStart(e){e.cancelable&&e.preventDefault();let t=this.state;t._active||(this.start(e),this.computeValues([e.scale,e.rotation]),t.origin=[e.clientX,e.clientY],this.compute(e),this.emit())}gestureMove(e){if(e.cancelable&&e.preventDefault(),!this.state._active)return;let t=this.state;this.computeValues([e.scale,e.rotation]),t.origin=[e.clientX,e.clientY];let n=t._movement;t._movement=[e.scale-1,e.rotation],t._delta=u.sub(t._movement,n),this.compute(e),this.emit()}gestureEnd(e){this.state._active&&(this.state._active=!1,this.compute(e),this.emit())}wheel(e){let t=this.config.modifierKey;(!t||e[t])&&(this.state._active?this.wheelChange(e):this.wheelStart(e),this.timeoutStore.add("wheelEnd",this.wheelEnd.bind(this)))}wheelStart(e){this.start(e),this.wheelChange(e)}wheelChange(e){let t="uv"in e;!t&&e.cancelable&&e.preventDefault();let n=this.state;n._delta=[-D(e)[1]/100*n.offset[0],0],u.addTo(n._movement,n._delta),this.state.origin=[e.clientX,e.clientY],this.compute(e),this.emit()}wheelEnd(){this.state._active&&(this.state._active=!1,this.compute(),this.emit())}bind(e){let t=this.config.device;t&&(e(t,"start",this[t+"Start"].bind(this)),e(t,"change",this[t+"Move"].bind(this)),e(t,"end",this[t+"End"].bind(this)),e(t,"cancel",this[t+"End"].bind(this))),e("wheel","",this.wheel.bind(this),{passive:!1})}},resolver:q},X={key:"scroll",engine:class extends A{constructor(...e){super(...e),h(this,"ingKey","scrolling")}scroll(e){this.state._active||this.start(e),this.scrollChange(e),this.timeoutStore.add("scrollEnd",this.scrollEnd.bind(this))}scrollChange(e){e.cancelable&&e.preventDefault();let t=this.state,n=function(e){var t,n;let{scrollX:r,scrollY:i,scrollLeft:o,scrollTop:a}=e.currentTarget;return[null!==(t=null!=r?r:o)&&void 0!==t?t:0,null!==(n=null!=i?i:a)&&void 0!==n?n:0]}(e);t._delta=u.sub(n,t._values),u.addTo(t._movement,t._delta),this.computeValues(n),this.compute(e),this.emit()}scrollEnd(){this.state._active&&(this.state._active=!1,this.compute(),this.emit())}bind(e){e("scroll","",this.scroll.bind(this))}},resolver:F},Q={key:"wheel",engine:class extends A{constructor(...e){super(...e),h(this,"ingKey","wheeling")}wheel(e){this.state._active||this.start(e),this.wheelChange(e),this.timeoutStore.add("wheelEnd",this.wheelEnd.bind(this))}wheelChange(e){let t=this.state;t._delta=D(e),u.addTo(t._movement,t._delta);let[n,r]=t.overflow,[i,o]=t._delta,[a,s]=t._direction;(n<0&&i>0&&a<0||n>0&&i<0&&a>0)&&(t._movement[0]=t._movementBound[0]),(r<0&&o>0&&s<0||r>0&&o<0&&s>0)&&(t._movement[1]=t._movementBound[1]),this.compute(e),this.emit()}wheelEnd(){this.state._active&&(this.state._active=!1,this.compute(),this.emit())}bind(e){e("wheel","",this.wheel.bind(this))}},resolver:F},ee={target(e){if(e)return()=>"current"in e?e.current:e},enabled:(e=!0)=>e,window:(e=B.isBrowser?window:void 0)=>e,eventOptions:({passive:e=!0,capture:t=!1}={})=>({passive:e,capture:t}),transform:e=>e},et=["target","eventOptions","window","enabled","transform"];function en(e={},t){let n={};for(let[r,i]of Object.entries(t))switch(typeof i){case"function":n[r]=i.call(n,e[r],r,e);break;case"object":n[r]=en(e[r],i);break;case"boolean":i&&(n[r]=e[r])}return n}class er{constructor(e,t){h(this,"_listeners",new Set),this._ctrl=e,this._gestureKey=t}add(e,t,n,r,i){let o=this._listeners,a=function(e,t=""){let n=m[e],r=n&&n[t]||t;return e+r}(t,n),s=this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{},l=f(f({},s),i);e.addEventListener(a,r,l);let u=()=>{e.removeEventListener(a,r,l),o.delete(u)};return o.add(u),u}clean(){this._listeners.forEach(e=>e()),this._listeners.clear()}}class ei{constructor(){h(this,"_timeouts",new Map)}add(e,t,n=140,...r){this.remove(e),this._timeouts.set(e,window.setTimeout(t,n,...r))}remove(e){let t=this._timeouts.get(e);t&&window.clearTimeout(t)}clean(){this._timeouts.forEach(e=>void window.clearTimeout(e)),this._timeouts.clear()}}class eo{constructor(e){h(this,"gestures",new Set),h(this,"_targetEventStore",new er(this)),h(this,"gestureEventStores",{}),h(this,"gestureTimeoutStores",{}),h(this,"handlers",{}),h(this,"config",{}),h(this,"pointerIds",new Set),h(this,"touchIds",new Set),h(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),e.drag&&ea(this,"drag"),e.wheel&&ea(this,"wheel"),e.scroll&&ea(this,"scroll"),e.move&&ea(this,"move"),e.pinch&&ea(this,"pinch"),e.hover&&ea(this,"hover")}setEventIds(e){return b(e)?(this.touchIds=new Set(Array.from(e.touches).filter(t=>{var n,r;return t.target===e.currentTarget||(null===(n=e.currentTarget)||void 0===n?void 0:null===(r=n.contains)||void 0===r?void 0:r.call(n,t.target))}).map(e=>e.identifier)),this.touchIds):"pointerId"in e?("pointerup"===e.type||"pointercancel"===e.type?this.pointerIds.delete(e.pointerId):"pointerdown"===e.type&&this.pointerIds.add(e.pointerId),this.pointerIds):void 0}applyHandlers(e,t){this.handlers=e,this.nativeHandlers=t}applyConfig(e,t){this.config=function(e,t){let{target:n,eventOptions:r,window:i,enabled:o,transform:a}=e,s=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,et),l={shared:en({target:n,eventOptions:r,window:i,enabled:o,transform:a},ee)};if(t){let e=W.get(t);l[t]=en(f({shared:l.shared},s),e)}else for(let e in s){let t=W.get(e);t&&(l[e]=en(f({shared:l.shared},s[e]),t))}return l}(e,t)}clean(){for(let e of(this._targetEventStore.clean(),this.gestures))this.gestureEventStores[e].clean(),this.gestureTimeoutStores[e].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...e){let t;let n=this.config.shared,r={};if(!n.target||(t=n.target())){if(n.enabled){for(let n of this.gestures){let i=this.config[n],o=es(r,i.eventOptions,!!t);if(i.enabled){let t=V.get(n);new t(this,e,n).bind(o)}}let i=es(r,n.eventOptions,!!t);for(let t in this.nativeHandlers)i(t,"",n=>this.nativeHandlers[t](f(f({},this.state.shared),{},{event:n,args:e})),void 0,!0)}for(let e in r)r[e]=function(...e){return 0===e.length?j:1===e.length?e[0]:function(){let t;for(let n of e)t=n.apply(this,arguments)||t;return t}}(...r[e]);if(!t)return r;for(let e in r){let{device:n,capture:i,passive:o}=function(e){let t=e.substring(2).toLowerCase(),n=!!~t.indexOf("passive");n&&(t=t.replace("passive",""));let r=y.includes(t)?"capturecapture":"capture",i=!!~t.indexOf(r);return i&&(t=t.replace("capture","")),{device:t,capture:i,passive:n}}(e);this._targetEventStore.add(t,n,"",r[e],{capture:i,passive:o})}}}}function ea(e,t){e.gestures.add(t),e.gestureEventStores[t]=new er(e,t),e.gestureTimeoutStores[t]=new ei}let es=(e,t,n)=>(r,i,o,a={},s=!1)=>{var l,u;let c=null!==(l=a.capture)&&void 0!==l?l:t.capture,d=null!==(u=a.passive)&&void 0!==u?u:t.passive,h=s?r:function(e,t="",n=!1){let r=m[e],i=r&&r[t]||t;return"on"+g(e)+g(i)+(!function(e=!1,t){return e&&!v.includes(t)}(n,i)?"":"Capture")}(r,i,c);n&&d&&(h+="Passive"),e[h]=e[h]||[],e[h].push(o)},el=/^on(Drag|Wheel|Scroll|Move|Pinch|Hover)/;function eu(e,t,n,r,i,o){if(!e.has(n)||!V.has(r))return;let a=n+"Start",s=n+"End";i[r]=e=>{let r;return e.first&&a in t&&t[a](e),n in t&&(r=t[n](e)),e.last&&s in t&&t[s](e),r},o[r]=o[r]||{}}function ec(e,t,n,r=e=>e){return e*r(.5-t*(.5-n))}function ed(e,t){return[e[0]+t[0],e[1]+t[1]]}function eh(e,t){return[e[0]-t[0],e[1]-t[1]]}function ep(e,t){return[e[0]*t,e[1]*t]}function ef(e){return[e[1],-e[0]]}function em(e,t){var n;return(n=eh(e,t))[0]*n[0]+n[1]*n[1]}function eg(e){var t;return t=Math.hypot(e[0],e[1]),[e[0]/t,e[1]/t]}function ev(e,t,n){let r=Math.sin(n),i=Math.cos(n),o=e[0]-t[0],a=e[1]-t[1];return[o*i-a*r+t[0],o*r+a*i+t[1]]}function ey(e,t,n){return ed(e,ep(eh(t,e),n))}var{min:eb,PI:ek}=Math,ew=ek+1e-4,ex=n(17947),e_=Object.defineProperty,eS=Object.defineProperties,eE=Object.getOwnPropertyDescriptors,eD=Object.getOwnPropertySymbols,eC=Object.prototype.hasOwnProperty,ej=Object.prototype.propertyIsEnumerable,eO=(e,t,n)=>t in e?e_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,eT=(e,t)=>{for(var n in t||(t={}))eC.call(t,n)&&eO(e,n,t[n]);if(eD)for(var n of eD(t))ej.call(t,n)&&eO(e,n,t[n]);return e},eA=(e,t)=>eS(e,eE(t)),eP=(e,t)=>{var n={};for(var r in e)eC.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&eD)for(var r of eD(e))0>t.indexOf(r)&&ej.call(e,r)&&(n[r]=e[r]);return n},eR=(e,t,n)=>(eO(e,"symbol"!=typeof t?t+"":t,n),n),eM=s.createContext({});function eF(){return s.useContext(eM)}var eN=((r=eN||{}).TransformSelected="transform_selected",r.TranslateSelected="translate_selected",r.TransformAll="transform_all",r.TranslateAll="translate_all",r),eI=((i=eI||{}).Top="top_edge",i.Right="right_edge",i.Bottom="bottom_edge",i.Left="left_edge",i),eL=((o=eL||{}).TopLeft="top_left_corner",o.TopRight="top_right_corner",o.BottomRight="bottom_right_corner",o.BottomLeft="bottom_left_corner",o),eB=((a=eB||{}).minX="minX",a.midX="midX",a.maxX="maxX",a.minY="minY",a.midY="midY",a.maxY="maxY",a);String.prototype.replaceAll||(String.prototype.replaceAll=function(e,t){return"[object regexp]"===Object.prototype.toString.call(e).toLowerCase()?this.replace(e,t):this.replace(RegExp(e,"g"),t)});var ez=2*Math.PI,eU=class{static lerp(e,t,n){return e*(1-(n=eU.clamp(n,0,1)))+t*n}static lerpColor(e,t,n=.5){function r(e){let t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}let i=r(e)||[0,0,0],o=r(t)||[0,0,0],a=i.slice();for(let e=0;e<3;e++)a[e]=Math.round(a[e]+n*(o[e]-i[e]));return"#"+(16777216+(a[0]<<16)+(a[1]<<8)+a[2]).toString(16).slice(1)}static modulate(e,t,n,r=!1){let[i,o]=t,[a,s]=n,l=a+(e-i)/(o-i)*(s-a);return r?at[n]="object"==typeof e[n]?eU.deepClone(e[n]):e[n]),t}return e}static rng(e=""){let t=0,n=0,r=0,i=0;function o(){let e=t^t<<11;return t=n,n=r,r=i,(i^=(i>>>19^e^e>>>8)>>>0)/4294967296}for(let n=0;nr}static degreesToRadians(e){return e*Math.PI/180}static radiansToDegrees(e){return 180*e/Math.PI}static getArcLength(e,t,n,r){return t*(2*Math.PI)*(eU.getSweep(e,n,r)/(2*Math.PI))}static getSweepFlag(e,t,n){let r=l.B.angle(e,n);return(l.B.angle(e,t)-r+3*Math.PI)%(2*Math.PI)-Math.PI>0?0:1}static getLargeArcFlag(e,t,n){let r=l.B.angle(n,e);return Math.abs((l.B.angle(n,t)-r+3*Math.PI)%(2*Math.PI)-Math.PI)>Math.PI/2?0:1}static getArcDashOffset(e,t,n,r,i){let o=eU.getSweepFlag(e,n,r),a=eU.getArcLength(e,t,n,r);return-(o<0?a:2*Math.PI*e[2]-a)/2+i}static getEllipseDashOffset(e,t){return-(2*Math.PI*e[2])/2+-t}static pointInCircle(e,t,n){return l.B.dist(e,t)<=n}static pointInEllipse(e,t,n,r,i=0){let o=Math.cos(i=i||0),a=Math.sin(i),s=l.B.sub(e,t),u=o*s[0]+a*s[1],c=a*s[0]-o*s[1];return u*u/(n*n)+c*c/(r*r)<=1}static pointInRect(e,t){return!(e[0]e[0]+t[0]||e[1]e[1]+t[1])}static pointInPolygon(e,t){let n=0;return t.forEach((r,i)=>{let o=t[(i+1)%t.length];r[1]<=e[1]?o[1]>e[1]&&l.B.cross(r,o,e)>0&&(n+=1):o[1]<=e[1]&&0>l.B.cross(r,o,e)&&(n-=1)}),0!==n}static pointInBounds(e,t){return!(e[0]t.maxX||e[1]t.maxY)}static pointInPolyline(e,t,n=3){for(let r=1;rt.maxX||e.maxYt.maxY)}static boundsContain(e,t){return e.minXt.maxY&&e.maxX>t.maxX}static boundsContained(e,t){return eU.boundsContain(t,e)}static boundsAreEqual(e,t){return!(t.maxX!==e.maxX||t.minX!==e.minX||t.maxY!==e.maxY||t.minY!==e.minY)}static getBoundsFromPoints(e,t=0){let n=1/0,r=1/0,i=-1/0,o=-1/0;if(e.length<2)n=0,r=0,i=1,o=1;else for(let[t,a]of e)n=Math.min(t,n),r=Math.min(a,r),i=Math.max(t,i),o=Math.max(a,o);return 0!==t?eU.getBoundsFromPoints(e.map(e=>l.B.rotWith(e,[(n+i)/2,(r+o)/2],t))):{minX:n,minY:r,maxX:i,maxY:o,width:Math.max(1,i-n),height:Math.max(1,o-r)}}static centerBounds(e,t){let n=this.getBoundsCenter(e),r=t[0]-n[0],i=t[1]-n[1];return this.translateBounds(e,[r,i])}static snapBoundsToGrid(e,t){let n=Math.round(e.minX/t)*t,r=Math.round(e.minY/t)*t,i=Math.round(e.maxX/t)*t,o=Math.round(e.maxY/t)*t;return{minX:n,minY:r,maxX:i,maxY:o,width:Math.max(1,i-n),height:Math.max(1,o-r)}}static translateBounds(e,t){return{minX:e.minX+t[0],minY:e.minY+t[1],maxX:e.maxX+t[0],maxY:e.maxY+t[1],width:e.width,height:e.height}}static rotateBounds(e,t,n){let[r,i]=l.B.rotWith([e.minX,e.minY],t,n),[o,a]=l.B.rotWith([e.maxX,e.maxY],t,n);return{minX:r,minY:i,maxX:o,maxY:a,width:e.width,height:e.height}}static getRotatedEllipseBounds(e,t,n,r,i=0){let o=Math.cos(i),a=Math.sin(i),s=Math.hypot(n*o,r*a),l=Math.hypot(n*a,r*o);return{minX:e+n-s,minY:t+r-l,maxX:e+n+s,maxY:t+r+l,width:2*s,height:2*l}}static getExpandedBounds(e,t){let n=Math.min(e.minX,t.minX),r=Math.min(e.minY,t.minY),i=Math.max(e.maxX,t.maxX),o=Math.max(e.maxY,t.maxY),a=Math.abs(i-n),s=Math.abs(o-r);return{minX:n,minY:r,maxX:i,maxY:o,width:a,height:s}}static getCommonBounds(e){if(e.length<2)return e[0];let t=e[0];for(let n=1;nl.B.rotWith(e,n,t))}static getTransformedBoundingBox(e,t,n,r=0,i=!1){let[o,a]=[e.minX,e.minY],[s,u]=[e.maxX,e.maxY],[c,d]=[e.minX,e.minY],[h,p]=[e.maxX,e.maxY];if("center"===t)return{minX:c+n[0],minY:d+n[1],maxX:h+n[0],maxY:p+n[1],width:h-c,height:p-d,scaleX:1,scaleY:1};let[f,m]=l.B.rot(n,-r);switch(t){case"top_edge":case"top_left_corner":case"top_right_corner":d+=m;break;case"bottom_edge":case"bottom_left_corner":case"bottom_right_corner":p+=m}switch(t){case"left_edge":case"top_left_corner":case"bottom_left_corner":c+=f;break;case"right_edge":case"top_right_corner":case"bottom_right_corner":h+=f}let g=s-o,v=u-a,y=(h-c)/g,b=(p-d)/v,k=Math.abs(h-c),w=Math.abs(p-d);if(i){let e=g/v,n=el.B.rotWith(e,n,t)),i=eU.getBoundsFromPoints(r);return[i.width,i.height]}static getBoundsCenter(e){return[e.minX+e.width/2,e.minY+e.height/2]}static getBoundsWithCenter(e){let t=eU.getBoundsCenter(e);return eA(eT({},e),{midX:t[0],midY:t[1]})}static getCommonTopLeft(e){let t=[1/0,1/0];return e.forEach(e=>{t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1])}),t}static getFromCache(e,t,n){let r=e.get(t);if(void 0===r&&(e.set(t,n()),void 0===(r=e.get(t))))throw Error("Cache did not include item!");return r}static uniqueId(e=""){return e?((Number(e)^16*Math.random())>>Number(e)/4).toString(16):"10000000-1000-4000-8000-100000000000".replace(/[018]/g,eU.uniqueId)}static rotateArray(e,t){return e.map((n,r)=>e[(r+t)%e.length])}static debounce(e,t=0){let n;return function(...r){clearTimeout(n),n=setTimeout(()=>e.apply(r),t)}}static getSvgPathFromStroke(e){let t=e.length;if(!t)return"";let n=e[0],r=`M${n[0].toFixed(3)},${n[1].toFixed(3)}Q`;for(let n=0,a=t-1;nn=!1,t),r=e(...i)),r}}static isDarwin(){return/Mac|iPod|iPhone|iPad/.test(window.navigator.platform)}static metaKey(e){return eU.isDarwin()?e.metaKey:e.ctrlKey}static lns(e){let t=e.split("");return t.push(...t.splice(0,Math.round(t.length/5))),t.push(...t.splice(0,Math.round(t.length/4))),t.push(...t.splice(0,Math.round(t.length/3))),t.push(...t.splice(0,Math.round(t.length/2))),t.reverse().map(e=>+e?5>+e?5+ +e:+e>5?+e-5:e:e).join("")}},eq=eU;eR(eq,"getSnapPoints",(e,t,n)=>{let r=eT({},e),i=[0,0],o=[],a={minX:{id:"minX",isSnapped:!1},midX:{id:"midX",isSnapped:!1},maxX:{id:"maxX",isSnapped:!1},minY:{id:"minY",isSnapped:!1},midY:{id:"midY",isSnapped:!1},maxY:{id:"maxY",isSnapped:!1}},s=["midX","minX","maxX"],l=["midY","minY","maxY"],u=t.map(e=>{let t=s.flatMap((t,n)=>s.map((i,o)=>{let a=r[t]-e[i],s=Math.abs(a);return{f:t,t:i,gap:a,distance:s,isCareful:0===n||n+o===3}})),n=l.flatMap((t,n)=>l.map((i,o)=>{let a=r[t]-e[i],s=Math.abs(a);return{f:t,t:i,gap:a,distance:s,isCareful:0===n||n+o===3}}));return[e,t,n]}),c=1/0,d=1/0,h=1/0,p=1/0;return u.forEach(([e,t,r])=>{t.forEach(e=>{e.distance{e.distance{c!==1/0&&t.forEach(t=>{2>Math.abs(t.gap-c)&&(a[t.f]=eA(eT({},a[t.f]),{isSnapped:!0,to:e[t.t],B:e,distance:t.distance}))}),d!==1/0&&n.forEach(t=>{2>Math.abs(t.gap-d)&&(a[t.f]=eA(eT({},a[t.f]),{isSnapped:!0,to:e[t.t],B:e,distance:t.distance}))})}),i[0]=c===1/0?0:c,i[1]=d===1/0?0:d,r.minX-=i[0],r.midX-=i[0],r.maxX-=i[0],r.minY-=i[1],r.midY-=i[1],r.maxY-=i[1],s.forEach(e=>{let t=a[e];if(!t.isSnapped)return;let{id:n,B:i}=t,s=r[n];o.push("minX"===n?[[s,r.midY],[s,i.minY],[s,i.maxY]]:[[s,r.minY],[s,r.maxY],[s,i.minY],[s,i.maxY]])}),l.forEach(e=>{let t=a[e];if(!t.isSnapped)return;let{id:n,B:i}=t,s=r[n];o.push("midY"===n?[[r.midX,s],[i.minX,s],[i.maxX,s]]:[[r.minX,s],[r.maxX,s],[i.minX,s],[i.maxX,s]])}),{offset:i,snapLines:o}}),eR(eq,"deepMerge",(e,t)=>{let n=eT({},e);for(let[e,r]of Object.entries(t))n[e]=r!==Object(r)||Array.isArray(r)?r:eU.deepMerge(n[e],r);return n});var e$=new Map,eH={accent:"rgb(255, 0, 0)",brushFill:"rgba(0,0,0,.05)",brushStroke:"rgba(0,0,0,.25)",brushDashStroke:"rgba(0,0,0,.6)",selectStroke:"rgb(66, 133, 244)",selectFill:"rgba(65, 132, 244, 0.05)",binding:"rgba(65, 132, 244, 0.12)",background:"rgb(248, 249, 250)",foreground:"rgb(51, 51, 51)",grid:"rgba(144, 144, 144, 1)"},eV=((e,...t)=>e.reduce((e,n,r)=>e+n+(r * { stroke: var(--tl-selectFill); } .tl-handle:active .tl-handle-bg { cursor: grabbing; fill: var(--tl-selectFill); } .tl-handle:active .tl-handle-bg > * { stroke: var(--tl-selectFill); } .tl-handle { fill: var(--tl-background); stroke: var(--tl-selectStroke); stroke-width: 1.5px; } .tl-handle-bg { fill: transparent; stroke: none; pointer-events: all; r: calc(16px / max(1, var(--tl-zoom))); } .tl-binding-indicator { fill: transparent; stroke: var(--tl-binding); } .tl-centered-g { transform: translate(var(--tl-padding), var(--tl-padding)); } .tl-current-parent > *[data-shy='true'] { opacity: 1; } .tl-binding { fill: none; stroke: var(--tl-selectStroke); stroke-width: calc(2px * var(--tl-scale)); } .tl-grid-dot { fill: var(--tl-grid); } .tl-erase-line { stroke-linejoin: round; stroke-linecap: round; pointer-events: none; fill: var(--tl-grid); opacity: 0.32; } `;function eW(e){let{callbacks:t,inputs:n}=eF(),r=s.useCallback(r=>{var i,o,a;if(r.dead||(r.dead=!0,!n.pointerIsValid(r)))return;let s=n.pointerDown(r,e);if(2===r.button){null==(i=t.onRightPointBoundsHandle)||i.call(t,s,r);return}0===r.button&&(null==(o=t.onPointBoundsHandle)||o.call(t,s,r)),null==(a=t.onPointerDown)||a.call(t,s,r)},[n,t,e]),i=s.useCallback(r=>{var i,o,a;if(r.dead||(r.dead=!0,2===r.button||!n.pointerIsValid(r)))return;let s=n.pointerUp(r,e),l=n.isDoubleClick();0===r.button&&(l&&!(s.altKey||s.metaKey)&&(null==(i=t.onDoubleClickBoundsHandle)||i.call(t,s,r)),null==(o=t.onReleaseBoundsHandle)||o.call(t,s,r)),null==(a=t.onPointerUp)||a.call(t,s,r)},[n,t,e]),o=s.useCallback(r=>{var i,o;if(r.dead||(r.dead=!0,!n.pointerIsValid(r))||2===r.buttons)return;let a=n.pointerMove(r,e);1===r.buttons&&r.currentTarget.hasPointerCapture(r.pointerId)&&(null==(i=t.onDragBoundsHandle)||i.call(t,a,r)),null==(o=t.onPointerMove)||o.call(t,a,r)},[n,t,e]);return{onPointerDown:r,onPointerUp:i,onPointerEnter:s.useCallback(r=>{var i;n.pointerIsValid(r)&&null!=(i=t.onHoverBoundsHandle)&&i.call(t,n.pointerEnter(r,e),r)},[n,t,e]),onPointerMove:o,onPointerLeave:s.useCallback(r=>{var i;n.pointerIsValid(r)&&null!=(i=t.onUnhoverBoundsHandle)&&i.call(t,n.pointerEnter(r,e),r)},[n,t,e])}}function eG(e,t){return[(e[0]+t.point[0])*t.zoom,(e[1]+t.point[1])*t.zoom]}function eY(e,t=0){let n=s.useRef(null);return s.useLayoutEffect(()=>{let r=n.current,i=` translate( calc(${e.minX}px - var(--tl-padding)), calc(${e.minY}px - var(--tl-padding)) ) rotate(${t+(e.rotation||0)}rad)`;r.style.setProperty("transform",i),r.style.setProperty("width",`calc(${Math.floor(e.width)}px + (var(--tl-padding) * 2))`),r.style.setProperty("height",`calc(${Math.floor(e.height)}px + (var(--tl-padding) * 2))`)},[e,t]),n}var eZ=s.memo(function(e){var{id:t,bounds:n,rotation:r=0,isGhost:i=!1,isSelected:o=!1,children:a}=e,l=eP(e,["id","bounds","rotation","isGhost","isSelected","children"]);let u=eY(n,r);return s.createElement("div",eT({id:t,ref:u,className:`tl-positioned${i?" tl-ghost":""}${o?" tl-positioned-selected":""}`,"aria-label":"container","data-testid":"container"},l),a)}),eK=s.memo(function({brush:e,zoom:t,dashed:n}){return s.createElement(eZ,{bounds:e,rotation:0},s.createElement(e2,null,s.createElement("rect",{className:"tl-brush"+(n?" dashed":""),opacity:1,x:0,y:0,width:e.width,height:e.height,"aria-label":"brush"}),n&&s.createElement("g",{className:"tl-dashed-brush-line"},s.createElement(eJ,{x1:0,y1:0,x2:e.width,y2:0,zoom:t}),s.createElement(eJ,{x1:e.width,y1:0,x2:e.width,y2:e.height,zoom:t}),s.createElement(eJ,{x1:0,y1:e.height,x2:e.width,y2:e.height,zoom:t}),s.createElement(eJ,{x1:0,y1:0,x2:0,y2:e.height,zoom:t}))))});function eJ({x1:e,y1:t,x2:n,y2:r,zoom:i}){let o=eq.getPerfectDashProps(Math.hypot(n-e,r-t),1/i,"dashed",1,!0,3);return s.createElement("line",{x1:e,y1:t,x2:n,y2:r,strokeWidth:1/i,strokeDasharray:o.strokeDasharray,strokeDashoffset:o.strokeDashoffset})}var eX=s.memo(function({points:e,zoom:t}){if(0===e.length)return null;let n=eq.getSvgPathFromStroke(function(e,t={}){return function(e,t={}){var n,r;let{size:i=16,smoothing:o=.5,thinning:a=.5,simulatePressure:s=!0,easing:l=e=>e,start:u={},end:c={},last:d=!1}=t,{cap:h=!0,easing:p=e=>e*(2-e)}=u,{cap:f=!0,easing:m=e=>--e*e*e+1}=c;if(0===e.length||i<=0)return[];let g=e[e.length-1].runningLength,v=!1===u.taper?0:!0===u.taper?Math.max(i,g):u.taper,y=!1===c.taper?0:!0===c.taper?Math.max(i,g):c.taper,b=Math.pow(i*o,2),k=[],w=[],x=e.slice(0,10).reduce((e,t)=>{let n=t.pressure;if(s){let r=eb(1,t.distance/i),o=eb(1,1-r);n=eb(1,e+(o-e)*(.275*r))}return(e+n)/2},e[0].pressure),_=ec(i,a,e[e.length-1].pressure,l),S,E=e[0].vector,D=e[0].point,C=D,j=D,O=C;for(let t=0;tb)&&(k.push(j),D=j),O=ed(r,f),(t<=1||em(C,O)>b)&&(w.push(O),C=O),x=n,E=o}let T=e[0].point.slice(0,2),A=e.length>1?e[e.length-1].point.slice(0,2):ed(e[0].point,[1,1]),P=[],R=[];if(1===e.length){if(!(v||y)||d){let e=(n=eg(ef(eh(T,A))),ed(T,ep(n,-(S||_)))),t=[];for(let n=1/13,r=n;r<=1;r+=n)t.push(ev(e,T,2*ew*r));return t}}else{if(!(v||y&&1===e.length)){if(h)for(let e=1/13,t=e;t<=1;t+=e){let e=ev(w[0],T,ew*t);P.push(e)}else{let e=eh(k[0],w[0]),t=ep(e,.5),n=ep(e,.51);P.push(eh(T,t),eh(T,n),ed(T,n),ed(T,t))}}let t=ef([-(r=e[e.length-1].vector)[0],-r[1]]);if(y||v&&1===e.length)R.push(A);else if(f){let e=ed(A,ep(t,_));for(let t=1/29,n=t;n<1;n+=t)R.push(ev(e,A,3*ew*n))}else R.push(ed(A,ep(t,_)),ed(A,ep(t,.99*_)),eh(A,ep(t,.99*_)),eh(A,ep(t,_)))}return k.concat(R,w.reverse(),P)}(function(e,t={}){var n,r,i;let{streamline:o=.5,size:a=16,last:s=!1}=t;if(0===e.length)return[];let l=.15+(1-o)*.85,u=Array.isArray(e[0])?e:e.map(({x:e,y:t,pressure:n=.5})=>[e,t,n]);if(2===u.length){let e=u[1];u=u.slice(0,-1);for(let t=1;t<5;t++)u.push(ey(u[0],e,t/4))}1===u.length&&(u=[...u,[...ed(u[0],[1,1]),...u[0].slice(2)]]);let c=[{point:[u[0][0],u[0][1]],pressure:u[0][2]>=0?u[0][2]:.25,vector:[1,1],distance:0,runningLength:0}],d=!1,h=0,p=c[0],f=u.length-1;for(let e=1;e=0?u[e][2]:.5,vector:eg(eh(p.point,t)),distance:n,runningLength:h},c.push(p)}return c[0].vector=(null==(n=c[1])?void 0:n.vector)||[0,0],c}(e,t),t)}(e,{size:16/t,start:{taper:!0}}));return s.createElement("path",{d:n,className:"tl-erase-line"})}),eQ=[[-1,.15,64],[.05,.375,16],[.15,1,4],[.7,2.5,1]];function e0({grid:e,camera:t}){return s.createElement("svg",{className:"tl-grid",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},s.createElement("defs",null,eQ.map(([n,r,i],o)=>{let a=i*e*t.zoom,l=t.point[0]*t.zoom,u=t.point[1]*t.zoom,c=t.zoom0?l%a:a+l%a,cy:u>0?u%a:a+u%a,r:1,opacity:c}))})),eQ.map((e,t)=>s.createElement("rect",{key:`grid-rect-${t}`,width:"100%",height:"100%",fill:`url(#grid-${t})`})))}var e1=s.memo(function({camera:{zoom:e,point:t},children:n}){let r=2.5/e;return s.createElement("svg",{className:"tl-overlay"},s.createElement("defs",null,s.createElement("g",{id:"tl-snap-point"},s.createElement("path",{className:"tl-snap-point",d:`M ${-r},${-r} L ${r},${r} M ${-r},${r} L ${r},${-r}`}))),s.createElement("g",{transform:`scale(${e}) translate(${t})`},n))}),e2=s.memo(s.forwardRef(function(e,t){var{id:n,className:r="",children:i,shapeStyle:o}=e,a=eP(e,["id","className","children","shapeStyle"]);let l=o?{"data-color":o.color,"data-fill":o.isFilled}:{};return s.createElement("svg",eT({ref:t,className:`tl-positioned-svg ${r}`},a),s.createElement("g",eT({id:n,className:"tl-centered-g"},l),i))})),e3=s.memo(function({bounds:e,isLocked:t,isHidden:n}){return s.createElement("rect",{className:["tl-bounds-center",t?"tl-dashed":""].join(" "),x:-1,y:-1,width:e.width+2,height:e.height+2,opacity:n?0:1,pointerEvents:"none","aria-label":"center handle"})}),e5={right:0,bottomRight:45,bottom:90,bottomLeft:135,left:180,topLeft:225,top:270,topRight:315},e4=s.memo(function({bounds:e,side:t,targetSize:n,size:r}){let i=2*n,o={left:-i,topLeft:-i,bottomLeft:-i,right:e.width,topRight:e.width,bottomRight:e.width,top:e.width/2-i/2,bottom:e.width/2-i/2}[t],a={left:e.height/2-i/2,right:e.height/2-i/2,top:-(2*i),topLeft:-i,topRight:-i,bottom:e.height,bottomLeft:e.height,bottomRight:e.height}[t],{callbacks:l,inputs:u}=eF(),c=s.useCallback(e=>{var n;e.stopPropagation();let r=u.pointerDown(e,t);null==(n=l.onShapeClone)||n.call(l,r,e)},[l.onShapeClone]);return s.createElement("g",{className:"tl-clone-target",transform:`translate(${o}, ${a})`,"aria-label":"clone button"},s.createElement("rect",{className:"tl-transparent",width:2*n,height:2*n}),s.createElement("g",{className:"tl-clone-button-target",onPointerDown:c,transform:`translate(${n}, ${n}) rotate(${e5[t]})`},s.createElement("circle",{className:"tl-transparent ",r:n}),s.createElement("path",{className:"tl-clone-button",d:`M -${r/2},-${r/2} L ${r/2},0 -${r/2},${r/2} Z`,strokeLinejoin:"round"})))}),e6=s.memo(function({targetSize:e,size:t,bounds:n}){return s.createElement(s.Fragment,null,s.createElement(e4,{targetSize:e,size:t,bounds:n,side:"top"}),s.createElement(e4,{targetSize:e,size:t,bounds:n,side:"right"}),s.createElement(e4,{targetSize:e,size:t,bounds:n,side:"bottom"}),s.createElement(e4,{targetSize:e,size:t,bounds:n,side:"left"}),s.createElement(e4,{targetSize:e,size:t,bounds:n,side:"topLeft"}),s.createElement(e4,{targetSize:e,size:t,bounds:n,side:"topRight"}),s.createElement(e4,{targetSize:e,size:t,bounds:n,side:"bottomLeft"}),s.createElement(e4,{targetSize:e,size:t,bounds:n,side:"bottomRight"}))}),e8={top_left_corner:"tl-cursor-nwse",top_right_corner:"tl-cursor-nesw",bottom_right_corner:"tl-cursor-nwse",bottom_left_corner:"tl-cursor-nesw"},e9=s.memo(function({size:e,targetSize:t,isHidden:n,corner:r,bounds:i}){let o=eW(r),a="top_left_corner"===r||"top_right_corner"===r,l="top_left_corner"===r||"bottom_left_corner"===r;return s.createElement("g",{opacity:n?0:1},s.createElement("rect",eT({className:"tl-transparent "+(n?"":e8[r]),"aria-label":"corner transparent",x:(l?-1:i.width+1)-t,y:(a?-1:i.height+1)-t,width:2*t,height:2*t,pointerEvents:n?"none":"all"},o)),s.createElement("rect",{className:"tl-corner-handle","aria-label":"corner handle",x:(l?-1:i.width+1)-e/2,y:(a?-1:i.height+1)-e/2,width:e,height:e,pointerEvents:"none"}))}),e7={top_edge:"tl-cursor-ns",right_edge:"tl-cursor-ew",bottom_edge:"tl-cursor-ns",left_edge:"tl-cursor-ew"},te=s.memo(function({size:e,isHidden:t,bounds:n,edge:r}){let i=eW(r),o="top_edge"===r||"bottom_edge"===r,a="right_edge"===r||"bottom_edge"===r,{height:l,width:u}=n;return s.createElement("rect",eT({pointerEvents:t?"none":"all",className:"tl-transparent tl-edge-handle "+(t?"":e7[r]),"aria-label":`${r} handle`,opacity:t?0:1,x:o?e/2:(a?u+1:-1)-e/2,y:o?(a?l+1:-1)-e/2:e/2,width:o?Math.max(0,u+1-e):e,height:o?e:Math.max(0,l+1-e)},i))}),tt=s.memo(function({size:e,bounds:t,isHidden:n}){let r=eW("left"),i=eW("center"),o=eW("right");return s.createElement("g",{cursor:"grab",transform:`translate(${t.width/2-4*e}, ${t.height+2*e})`,"aria-label":"link handle"},s.createElement("g",{className:"tl-transparent",pointerEvents:n?"none":"all"},s.createElement("rect",eT({x:0,y:0,width:2*e,height:2*e},r)),s.createElement("rect",eT({x:3*e,y:0,width:2*e,height:2*e},i)),s.createElement("rect",eT({x:6*e,y:0,width:2*e,height:2*e},o))),s.createElement("g",{className:"tl-rotate-handle",transform:`translate(${e/2}, ${e/2})`,"aria-label":"link rotate handle"},s.createElement("path",{d:`M 0,${e/2} L ${e},${e} ${e},0 Z`,pointerEvents:"none",opacity:n?0:1}),s.createElement("path",{transform:`translate(${3*e}, 0)`,d:`M 0,0 L ${e},0 ${e/2},${e} Z`,pointerEvents:"none",opacity:n?0:1}),s.createElement("path",{transform:`translate(${6*e}, 0)`,d:`M ${e},${e/2} L 0,0 0,${e} Z`,pointerEvents:"none",opacity:n?0:1})))}),tn=s.memo(function({bounds:e,targetSize:t,size:n,isHidden:r}){let i=eW("rotate");return s.createElement("g",{cursor:"grab",opacity:r?0:1},s.createElement("circle",eT({className:"tl-transparent","aria-label":"rotate handle transparent",cx:e.width/2,cy:-2*n,r:t,pointerEvents:r?"none":"all"},i)),s.createElement("circle",{className:"tl-rotate-handle","aria-label":"rotate handle",cx:e.width/2,cy:-2*n,r:n/2,pointerEvents:"none"}))}),tr=s.memo(function({zoom:e,bounds:t,viewportWidth:n,rotation:r,isHidden:i,isLocked:o,hideCloneHandles:a,hideResizeHandles:l,hideRotateHandle:u,hideBindingHandles:c}){let d=(n<768?16:8)/e,h=8/e,p=Math.min(t.width,t.height)*e,f=!u&&!i&&!o&&p>32,m=!i&&!o&&p>24,g=!i&&!o&&p>20;return s.createElement(eZ,{bounds:t,rotation:r},s.createElement(e2,null,s.createElement(e3,{bounds:t,isLocked:o,isHidden:i}),l||o?null:s.createElement(s.Fragment,null,s.createElement(te,{targetSize:d,size:h,bounds:t,edge:"top_edge",isHidden:!m}),s.createElement(te,{targetSize:d,size:h,bounds:t,edge:"right_edge",isHidden:!m}),s.createElement(te,{targetSize:d,size:h,bounds:t,edge:"bottom_edge",isHidden:!m}),s.createElement(te,{targetSize:d,size:h,bounds:t,edge:"left_edge",isHidden:!m}),s.createElement(e9,{targetSize:d,size:h,bounds:t,isHidden:i||!g,corner:"top_left_corner"}),s.createElement(e9,{targetSize:d,size:h,bounds:t,isHidden:i||!g,corner:"top_right_corner"}),s.createElement(e9,{targetSize:d,size:h,bounds:t,isHidden:i||!g,corner:"bottom_right_corner"}),s.createElement(e9,{targetSize:d,size:h,bounds:t,isHidden:i||!g,corner:"bottom_left_corner"})),f&&s.createElement(tn,{targetSize:d,size:h,bounds:t,isHidden:!m}),!a&&p>24&&s.createElement(e6,{bounds:t,targetSize:d,size:h}),!c&&s.createElement(tt,{targetSize:d,size:h,bounds:t,isHidden:!m})))}),ti=s.memo(function({bounds:e,rotation:t,isHidden:n}){let r=function(){let{callbacks:e,inputs:t}=eF();return s.useMemo(()=>({onPointerDown:n=>{var r,i,o,a;if(n.dead||(n.dead=!0,!t.pointerIsValid(n)))return;if(2===n.button){null==(r=e.onRightPointBounds)||r.call(e,t.pointerDown(n,"bounds"),n);return}let s=t.pointerDown(n,"bounds");null==(i=n.currentTarget)||i.setPointerCapture(n.pointerId),0===n.button&&(null==(o=e.onPointBounds)||o.call(e,s,n)),null==(a=e.onPointerDown)||a.call(e,s,n)},onPointerUp:n=>{var r,i,o,a;if(n.dead||(n.dead=!0,2===n.button)||(t.activePointer=void 0,!t.pointerIsValid(n)))return;let s=t.isDoubleClick(),l=t.pointerUp(n,"bounds");n.currentTarget.hasPointerCapture(n.pointerId)&&(null==(r=n.currentTarget)||r.releasePointerCapture(n.pointerId)),0===n.button&&(s&&!(l.altKey||l.metaKey)&&(null==(i=e.onDoubleClickBounds)||i.call(e,l,n)),null==(o=e.onReleaseBounds)||o.call(e,l,n)),null==(a=e.onPointerUp)||a.call(e,l,n)},onPointerMove:n=>{var r,i;if(n.dead||(n.dead=!0,!t.pointerIsValid(n)))return;1===n.buttons&&n.currentTarget.hasPointerCapture(n.pointerId)&&(null==(r=e.onDragBounds)||r.call(e,t.pointerMove(n,"bounds"),n));let o=t.pointerMove(n,"bounds");null==(i=e.onPointerMove)||i.call(e,o,n)},onPointerEnter:n=>{var r;t.pointerIsValid(n)&&null!=(r=e.onHoverBounds)&&r.call(e,t.pointerEnter(n,"bounds"),n)},onPointerLeave:n=>{var r;t.pointerIsValid(n)&&null!=(r=e.onUnhoverBounds)&&r.call(e,t.pointerEnter(n,"bounds"),n)}}),[t,e])}();return s.createElement(eZ,{bounds:e,rotation:t},s.createElement(e2,null,s.createElement("rect",eT({className:"tl-bounds-bg","aria-label":"bounds bg",width:e.width,height:e.height,opacity:n?0:1},r))))}),to=s.memo(function({id:e,point:t}){let n=function(e){let{inputs:t,callbacks:n}=eF();return s.useMemo(()=>({onPointerDown:r=>{var i,o,a;if(r.dead||(r.dead=!0,!t.pointerIsValid(r))||2===r.button)return;null==(i=r.currentTarget)||i.setPointerCapture(r.pointerId);let s=t.pointerDown(r,e);0===r.button&&(null==(o=n.onPointHandle)||o.call(n,s,r)),null==(a=n.onPointerDown)||a.call(n,s,r)},onPointerUp:r=>{var i,o,a,s;if(r.dead||(r.dead=!0,!t.pointerIsValid(r))||2===r.button)return;let l=t.isDoubleClick(),u=t.pointerUp(r,e);r.currentTarget.hasPointerCapture(r.pointerId)&&(null==(i=r.currentTarget)||i.releasePointerCapture(r.pointerId),0===r.button&&(l&&!(u.altKey||u.metaKey)&&(null==(o=n.onDoubleClickHandle)||o.call(n,u,r)),null==(a=n.onReleaseHandle)||a.call(n,u,r))),null==(s=n.onPointerUp)||s.call(n,u,r)},onPointerMove:r=>{var i,o;if(r.dead||(r.dead=!0,!t.pointerIsValid(r))||2===r.buttons)return;let a=t.pointerMove(r,e);1===r.buttons&&r.currentTarget.hasPointerCapture(r.pointerId)&&(null==(i=n.onDragHandle)||i.call(n,a,r)),null==(o=n.onPointerMove)||o.call(n,a,r)},onPointerEnter:r=>{var i;if(!t.pointerIsValid(r))return;let o=t.pointerEnter(r,e);null==(i=n.onHoverHandle)||i.call(n,o,r)},onPointerLeave:r=>{var i;if(!t.pointerIsValid(r))return;let o=t.pointerEnter(r,e);null==(i=n.onUnhoverHandle)||i.call(n,o,r)}}),[t,n,e])}(e);return s.createElement(eZ,{bounds:eq.translateBounds({minX:0,minY:0,maxX:0,maxY:0,width:0,height:0},t)},s.createElement(e2,null,s.createElement("g",eT({className:"tl-handle","aria-label":"handle"},n),s.createElement("circle",{className:"tl-handle-bg",pointerEvents:"all"}),s.createElement("circle",{className:"tl-counter-scaled tl-handle",pointerEvents:"none",r:4}))))}),ta=s.memo(function({shape:e,zoom:t}){if(void 0===e.handles)return null;let n=null,r=Object.values(e.handles).reduce((r,i)=>{let o=l.B.add(i.point,e.point);return(!n||l.B.dist(o,n)*t>=32)&&(r.push(i),n=o),r},[]);return 1===r.length?null:s.createElement(s.Fragment,null,r.map(t=>s.createElement(to,{key:e.id+"_"+t.id,id:t.id,point:l.B.add(t.point,e.point)})))}),ts=s.memo(function(e){let t=e.utils.getRef(e.shape);return s.createElement(e.utils.Component,eT({ref:t},e))},(e,t)=>e.isHovered===t.isHovered&&e.isSelected===t.isSelected&&e.isEditing===t.isEditing&&e.isBinding===t.isBinding&&e.isGhost===t.isGhost&&e.meta===t.meta&&(t.shape===e.shape||!t.utils.shouldRender(t.shape,e.shape))),tl=s.memo(function(e){var{shape:t,utils:n,meta:r}=e,i=eP(e,["shape","utils","meta"]);let{callbacks:o}=eF(),a=n.getBounds(t),l=function(e){let{rPageState:t,rSelectionBounds:n,callbacks:r,inputs:i}=s.useContext(eM);return s.useMemo(()=>({onPointerDown:o=>{var a,s,l,u,c,d,h;if(o.dead||(o.dead=!0,!i.pointerIsValid(o)))return;if(2===o.button){null==(a=r.onRightPointShape)||a.call(r,i.pointerDown(o,e),o);return}let p=i.pointerDown(o,e);if(null==(s=o.currentTarget)||s.setPointerCapture(o.pointerId),n.current&&eq.pointInBounds(p.point,n.current)&&!t.current.selectedIds.includes(e)){0===o.button&&(null==(l=r.onPointBounds)||l.call(r,i.pointerDown(o,"bounds"),o),null==(u=r.onPointShape)||u.call(r,p,o)),null==(c=r.onPointerDown)||c.call(r,p,o);return}0===o.button&&(null==(d=r.onPointShape)||d.call(r,p,o)),null==(h=r.onPointerDown)||h.call(r,p,o)},onPointerUp:t=>{var n,o,a,s;if(t.dead||(t.dead=!0,!i.pointerIsValid(t))||2===t.button)return;i.activePointer=void 0;let l=i.isDoubleClick(),u=i.pointerUp(t,e);t.pointerId&&t.currentTarget.hasPointerCapture(t.pointerId)&&(null==(n=t.currentTarget)||n.releasePointerCapture(t.pointerId)),0===t.button&&(l&&!(u.altKey||u.metaKey)&&(null==(o=r.onDoubleClickShape)||o.call(r,u,t)),null==(a=r.onReleaseShape)||a.call(r,u,t)),null==(s=r.onPointerUp)||s.call(r,u,t)},onPointerMove:t=>{var n,o;if(t.dead||(t.dead=!0,2===t.buttons||!i.pointerIsValid(t)||i.pointer&&t.pointerId!==i.pointer.pointerId))return;let a=i.pointerMove(t,e);1===t.buttons&&t.currentTarget.hasPointerCapture(t.pointerId)&&(null==(n=r.onDragShape)||n.call(r,a,t)),null==(o=r.onPointerMove)||o.call(r,a,t)},onPointerEnter:t=>{var n;if(!i.pointerIsValid(t))return;let o=i.pointerEnter(t,e);null==(n=r.onHoverShape)||n.call(r,o,t)},onPointerLeave:t=>{var n;if(!i.pointerIsValid(t))return;let o=i.pointerEnter(t,e);null==(n=r.onUnhoverShape)||n.call(r,o,t)}}),[i,r,e])}(t.id);return s.createElement(eZ,{id:t.id,bounds:a,rotation:t.rotation,"data-shape":t.type,isGhost:i.isGhost,isSelected:i.isSelected},s.createElement(ts,eT({shape:t,utils:n,meta:r,events:l,bounds:a,onShapeChange:o.onShapeChange,onShapeBlur:o.onShapeBlur},i)))}),tu=s.memo(function(e){var{shape:t,utils:n,meta:r,children:i}=e,o=eP(e,["shape","utils","meta","children"]);return s.createElement(s.Fragment,null,s.createElement(tl,eT({shape:t,utils:n[t.type],meta:r},o)),i&&i.map(e=>s.createElement(tu,eT({key:e.shape.id,utils:n},e))))}),tc=s.memo(function({isHovered:e=!1,isSelected:t=!1,isEditing:n=!1,shape:r,user:i,meta:o}){let{shapeUtils:a}=eF(),l=a[r.type],u=l.getBounds(r),c=eY(u,r.rotation);return s.createElement("div",{ref:c,draggable:!1,className:["tl-indicator","tl-absolute",t&&!i?"tl-selected":"tl-hovered",n?"tl-editing":"",r.isLocked?"tl-locked":""].join(" ")},s.createElement("svg",{width:"100%",height:"100%"},s.createElement("g",{className:"tl-centered-g",stroke:null==i?void 0:i.color},s.createElement(l.Indicator,{shape:r,meta:o,user:i,bounds:u,isSelected:t,isHovered:e}))))}),td=s.memo(function({page:e,pageState:t,assets:n,hideBounds:r,hideHandles:i,hideIndicators:o,hideBindingHandles:a,hideCloneHandles:u,hideRotateHandle:c,hideResizeHandles:d,meta:h}){let{bounds:p,shapeUtils:f}=eF(),m=function(e,t,n,r){let{callbacks:i,shapeUtils:o,bounds:a}=eF(),u=s.useRef(),c=s.useRef(-1),d=s.useRef(new Set),h=s.useRef(new Set),{selectedIds:p,camera:f}=t,[m,g]=l.B.sub(l.B.div([0,0],f.zoom),f.point),[v,y]=l.B.sub(l.B.div([a.width,a.height],f.zoom),f.point),b={minX:m,minY:g,maxX:v,maxY:y,height:v-m,width:y-g},k=h.current,w=d.current;k.clear(),w.clear(),Object.values(e.shapes).filter(e=>{var t;return o[e.type].isStateful||p.includes(e.id)||(t=o[e.type].getBounds(e),eq.boundsContain(b,t)||eq.boundsCollide(b,t))}).forEach(t=>{if(t.parentId===e.id){w.add(t.id),k.add(t);return}let n=e.shapes[t.parentId];if(void 0===n)throw Error(`A shape (${t.id}) has a parent (${t.parentId}) that does not exist!`);w.add(n.id),k.add(n)}),k.size!==c.current&&(u.current&&clearTimeout(u.current),u.current=requestAnimationFrame(()=>{var e;null==(e=i.onRenderCountChange)||e.call(i,Array.from(w.values()))}),c.current=k.size);let x=t.bindingId?e.bindings[t.bindingId].toId:void 0,_=[];return k.forEach(i=>{if(void 0===i)throw Error("Rendered shapes included a missing shape");(function e(t,n,r,i,o,a=!1,s=!1,l){let u={shape:t,asset:t.assetId?o[t.assetId]:void 0,meta:l,isChildOfSelected:s,isGhost:t.isGhost||a,isEditing:i.editingId===t.id,isBinding:i.bindingTargetId===t.id,isSelected:i.selectedIds.includes(t.id),isHovered:i.hoveredId===t.id||void 0!==t.children&&(i.hoveredId&&t.children.includes(i.hoveredId)||t.children.some(e=>i.selectedIds.includes(e)))};n.push(u),t.children&&(u.children=[],t.children.map(e=>r[e]).filter(e=>r[e.id]).sort((e,t)=>e.childIndex-t.childIndex).forEach(t=>e(t,u.children,r,i,o,u.isGhost,u.isSelected||u.isChildOfSelected,l)))})(i,_,e.shapes,eA(eT({},t),{bindingTargetId:x}),n,i.isGhost,!1,r)}),_.sort((e,t)=>e.shape.childIndex-t.shape.childIndex),_}(e,t,n,h),{bounds:g,isLinked:v,isLocked:y,rotation:b}=function(e,t,n){let{rSelectionBounds:r}=eF(),{selectedIds:i}=t,o=s.useRef(),a,l=0,u=!1,c=!1;if(1===i.length){let t=i[0],r=e.shapes[t];if(!r)throw Error(`selectedIds is set to the id of a shape that doesn't exist: ${t}`);l=r.rotation||0,u=r.isLocked||!1;let o=n[r.type];a=o.hideBounds?void 0:o.getBounds(r)}else if(i.length>1){let t=i.map(t=>e.shapes[t]);l=0,u=t.every(e=>e.isLocked),a=t.reduce((e,t,r)=>0===r?n[t.type].getRotatedBounds(t):eq.getExpandedBounds(e,n[t.type].getRotatedBounds(t)),{})}if(a){let[n,o]=eG([a.minX,a.minY],t.camera),[s,l]=eG([a.maxX,a.maxY],t.camera);c=!!Object.values(e.bindings).find(e=>i.includes(e.toId)||i.includes(e.fromId)),r.current={minX:n,minY:o,maxX:s,maxY:l,width:s-n,height:l-o}}else r.current=null;let d=o.current;return d&&a?a&&d.minX===a.minX&&d.minY===a.minY&&d.maxX===a.maxX&&d.maxY===a.maxY&&(a=o.current):o.current=a,{bounds:a,rotation:l,isLocked:u,isLinked:c}}(e,t,f),{selectedIds:k,hoveredId:w,editingId:x,camera:{zoom:_}}=t,S=o,E=!0,D=!1,C,j=k.map(t=>e.shapes[t]);if(1===j.length){let e=j[0];(D=x===e.id)&&(S=!0);let t=f[e.type];E=u||!t.showCloneHandles,void 0===e.handles||D||(C=e)}return s.createElement(s.Fragment,null,g&&s.createElement(ti,{bounds:g,rotation:b,isHidden:r}),m.map(e=>s.createElement(tu,eT({key:e.shape.id,utils:f},e))),!S&&j.map(e=>s.createElement(tc,{key:"selected_"+e.id,shape:e,meta:h,isSelected:!0,isEditing:D})),!S&&w&&w!==x&&s.createElement(tc,{key:"hovered_"+w,shape:e.shapes[w],meta:h,isHovered:!0}),g&&s.createElement(tr,{zoom:_,bounds:g,viewportWidth:p.width,isLocked:y,rotation:b,isHidden:r,hideRotateHandle:c,hideResizeHandles:d,hideBindingHandles:a||!v,hideCloneHandles:E}),!i&&C&&s.createElement(ta,{shape:C,zoom:_}))}),th=s.memo(function({snapLine:e}){let t=eq.getBoundsFromPoints(e);return s.createElement(s.Fragment,null,s.createElement("line",{className:"tl-snap-line",x1:t.minX,y1:t.minY,x2:t.maxX,y2:t.maxY}),e.map(([e,t],n)=>s.createElement("use",{key:n,href:"#tl-snap-point",x:e,y:t})))}),tp=s.memo(function({snapLines:e}){return s.createElement(s.Fragment,null,e.map((e,t)=>s.createElement(th,{key:t,snapLine:e})))});function tf({user:e}){let t=s.useRef(null);return s.useLayoutEffect(()=>{t.current&&(t.current.style.transform=`translate(${e.point[0]}px, ${e.point[1]}px)`)},[e.point]),s.createElement("svg",{ref:t,className:`tl-absolute tl-user tl-counter-scaled ${e.session?"":"tl-animated"}`,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 35 35",fill:"none",fillRule:"evenodd"},s.createElement("g",{fill:"rgba(0,0,0,.2)",transform:"translate(1,1)"},s.createElement("path",{d:"m12 24.4219v-16.015l11.591 11.619h-6.781l-.411.124z"}),s.createElement("path",{d:"m21.0845 25.0962-3.605 1.535-4.682-11.089 3.686-1.553z"})),s.createElement("g",{fill:"white"},s.createElement("path",{d:"m12 24.4219v-16.015l11.591 11.619h-6.781l-.411.124z"}),s.createElement("path",{d:"m21.0845 25.0962-3.605 1.535-4.682-11.089 3.686-1.553z"})),s.createElement("g",{fill:e.color},s.createElement("path",{d:"m19.751 24.4155-1.844.774-3.1-7.374 1.841-.775z"}),s.createElement("path",{d:"m13 10.814v11.188l2.969-2.866.428-.139h4.768z"})))}function tm({userId:e,users:t}){return s.createElement(s.Fragment,null,Object.values(t).filter(t=>t&&t.id!==e).map(e=>s.createElement(tf,{key:e.id,user:e})))}function tg({userId:e,users:t,meta:n,page:r}){let{shapeUtils:i}=eF();return s.createElement(s.Fragment,null,Object.values(t).filter(Boolean).filter(t=>t.id!==e&&t.selectedIds.length>0).map(e=>{let t=e.selectedIds.map(e=>r.shapes[e]).filter(Boolean);if(0===t.length)return null;let o=eq.getCommonBounds(t.map(e=>i[e.type].getBounds(e)));return s.createElement(s.Fragment,{key:e.id+"_shapes"},s.createElement("div",{className:"tl-absolute tl-user-indicator-bounds",style:{backgroundColor:e.color+"0d",borderColor:e.color+"78",transform:`translate(${o.minX}px, ${o.minY}px)`,width:o.width,height:o.height,pointerEvents:"none"}}),t.map(t=>s.createElement(tc,{key:`${e.id}_${t.id}_indicator`,shape:t,user:e,meta:n,isHovered:!0})))}))}var tv=e=>{let t=e.parentElement;for(;t&&t!==document.body;){let{overflowY:e}=window.getComputedStyle(t);if(t.scrollHeight>t.clientHeight&&("auto"===e||"scroll"===e||"overlay"===e))return t;t=t.parentElement}return document},ty=s.memo(function({id:e,page:t,pageState:n,assets:r,snapLines:i,eraseLine:o,grid:a,users:u,userId:c,meta:d,performanceMode:h,externalContainerRef:p,showDashedBrush:f,hideHandles:m,hideBounds:g,hideIndicators:v,hideBindingHandles:y,hideCloneHandles:b,hideResizeHandles:k,hideRotateHandle:w,hideGrid:x,onBoundsChange:_}){let S,E,D=s.useRef(null),C=s.useRef(n.camera.zoom);C.current=n.camera.zoom,function(e,t){let n=s.useRef(void 0),r=s.useRef(void 0),i=s.useRef([0,0]),{inputs:o,bounds:a,callbacks:u}=eF();s.useEffect(()=>{let e=e=>e.preventDefault();return document.addEventListener("gesturestart",e),document.addEventListener("gesturechange",e),()=>{document.removeEventListener("gesturestart",e),document.removeEventListener("gesturechange",e)}},[]),function(e,t){let n=([Y,J,X,Q,K,Z].forEach(G),function(e,t){let{handlers:n,nativeHandlers:r,config:i}=function(e,t){let[n,r,i]=function(e){let t={},n={},r=new Set;for(let i in e)el.test(i)?(r.add(RegExp.lastMatch),n[i]=e[i]):t[i]=e[i];return[n,t,r]}(e),o={};return eu(i,n,"onDrag","drag",o,t),eu(i,n,"onWheel","wheel",o,t),eu(i,n,"onScroll","scroll",o,t),eu(i,n,"onPinch","pinch",o,t),eu(i,n,"onMove","move",o,t),eu(i,n,"onHover","hover",o,t),{handlers:o,config:t,nativeHandlers:r}}(e,t||{});return function(e,t={},n,r){let i=s.useMemo(()=>new eo(e),[]);if(i.applyHandlers(e,r),i.applyConfig(t,n),s.useEffect(i.effect.bind(i)),s.useEffect(()=>i.clean.bind(i),[]),void 0===t.target)return i.bind.bind(i)}(n,i,void 0,r)});n(e,t||{})}({onWheel:s.useCallback(({event:e})=>{var t,n,r,i;if(e.preventDefault(),o.isPinching)return;let[s,c,d]=function(e){let{deltaY:t,deltaX:n}=e,r=0;if(e.ctrlKey||e.metaKey){let n=Math.sign(e.deltaY),i=Math.abs(e.deltaY),o=t;i>10&&(o=10*n),r=o}return[n,t,r]}(e);if((e.altKey||e.ctrlKey||e.metaKey)&&0===e.buttons){let i=[...null!=(n=null==(t=o.pointer)?void 0:t.point)?n:[a.width/2,a.height/2],.618*d],s=o.pan(i,e);null==(r=u.onZoom)||r.call(u,eA(eT({},s),{delta:i}),e);return}let h=l.B.mul(e.shiftKey&&!eq.isDarwin?[c,0]:[s,c],.5);if(l.B.isEqual(h,[0,0]))return;let p=o.pan(h,e);null==(i=u.onPan)||i.call(u,p,e)},[u,o,a]),onPinchStart:s.useCallback(({origin:e,event:a})=>{var s;if(a instanceof WheelEvent)return;let l=t.current;if(!l||!(a.target===l||l.contains(a.target)))return;let c=o.pinch(e,e);o.isPinching=!0,null==(s=u.onPinchStart)||s.call(u,c,a),r.current=c.point,n.current=c.origin,i.current=[0,0]},[u,o,a]),onPinch:s.useCallback(({origin:e,offset:a,event:s})=>{var c;if(s instanceof WheelEvent)return;let d=t.current;if(!(s.target===d||(null==d?void 0:d.contains(s.target)))||!n.current)return;let h=o.pinch(e,n.current),p=l.B.sub(h.delta,i.current);i.current=h.delta,null==(c=u.onPinch)||c.call(u,eA(eT({},h),{point:h.point,origin:n.current,delta:[...p,a[0]]}),s),r.current=e},[u,o,a]),onPinchEnd:s.useCallback(({origin:e,event:a})=>{var s;let l=t.current;if(!(a.target===l||(null==l?void 0:l.contains(a.target))))return;let c=o.pinch(e,e);o.isPinching=!1,null==(s=u.onPinchEnd)||s.call(u,c,a),r.current=void 0,n.current=void 0,i.current=[0,0]},[])},{target:t,eventOptions:{passive:!1},pinch:{from:[e.current,0],scaleBounds:()=>({from:e.current,max:5,min:.1})}})}(C,p||D),function(e,t){let{inputs:n,callbacks:r}=eF(),i=s.useRef(!1),o=s.useCallback(()=>{var o,a;if(i.current){let i=null==(o=e.current)?void 0:o.getBoundingClientRect();if(i){let e={minX:i.left,maxX:i.left+i.width,minY:i.top,maxY:i.top+i.height,width:i.width,height:i.height};n.bounds=e,t(e),null==(a=r.onBoundsChange)||a.call(r,e)}}else i.current=!0},[e,n,r.onBoundsChange]);s.useEffect(()=>{let t=e.current?tv(e.current):document,n=eq.debounce(o,100);return t.addEventListener("scroll",n),window.addEventListener("resize",n),()=>{t.removeEventListener("scroll",n),window.removeEventListener("resize",n)}},[]),s.useEffect(()=>{let t=new ResizeObserver(e=>{n.isPinching||e[0].contentRect&&o()});return e.current&&t.observe(e.current),()=>{t.disconnect()}},[e,n]),s.useEffect(()=>{o()},[e])}(D,_),function(){let{callbacks:e}=eF();(0,s.useEffect)(()=>{function t(){var t;null==(t=e.onShapeBlur)||t.call(e)}return eq.isMobileSafari()?(document.addEventListener("focusout",t),()=>document.removeEventListener("focusout",t)):()=>null},[e])}(),function(e){let{bounds:t}=eF();s.useEffect(()=>{let n=e=>{e.preventDefault()},r=e=>{let n=e.touches[0].pageX,r=e.touches[0].radiusX||0;(n-r<10||n+r>t.width-10)&&e.preventDefault()},i=e.current;return i?(i.addEventListener("gestureend",n),i.addEventListener("gesturechange",n),i.addEventListener("gesturestart",n),i.addEventListener("touchstart",r),()=>{i&&(i.removeEventListener("gestureend",n),i.removeEventListener("gesturechange",n),i.removeEventListener("gesturestart",n),i.removeEventListener("touchstart",r))}):()=>{}},[e,t.width])}(D);let j=s.useRef(null),O=s.useRef(null);S=s.useRef(),E=s.useRef(),s.useLayoutEffect(()=>{let{zoom:e,point:t}=n.camera,r=e!==S.current,i=t!==E.current;if(S.current=e,E.current=t,r||i){let n=O.current;if(j&&"current"in j){let i=j.current;r&&i&&i.style.setProperty("--tl-zoom",e.toString()),n&&n.style.setProperty("transform",`scale(${e}) translateX(${t[0]}px) translateY(${t[1]}px)`)}}},[n.camera.zoom,n.camera.point]),s.useLayoutEffect(()=>{if(j&&"current"in j){let e=null==j?void 0:j.current;if(e)switch(h){case"transform_selected":e.style.setProperty("--tl-performance-all","auto"),e.style.setProperty("--tl-performance-selected","transform, contents");break;case"transform_all":e.style.setProperty("--tl-performance-all","transform, contents"),e.style.setProperty("--tl-performance-selected","transform, contents");break;case"translate_selected":e.style.setProperty("--tl-performance-all","auto"),e.style.setProperty("--tl-performance-selected","transform");break;case"translate_all":e.style.setProperty("--tl-performance-all","transform"),e.style.setProperty("--tl-performance-selected","transform");break;default:e.style.setProperty("--tl-performance-all","auto"),e.style.setProperty("--tl-performance-selected","auto")}}},[h]),function(){let{inputs:e,callbacks:t}=eF();s.useEffect(()=>{let n=n=>{var r;null==(r=t.onKeyDown)||r.call(t,n.key,e.keydown(n),n)},r=n=>{var r;e.keyup(n),null==(r=t.onKeyUp)||r.call(t,n.key,e.keyup(n),n)};return window.addEventListener("keydown",n),window.addEventListener("keyup",r),()=>{window.removeEventListener("keydown",n),window.removeEventListener("keyup",r)}},[e,t])}();let T=function(){let{callbacks:e,inputs:t}=eF();return s.useMemo(()=>({onPointerDown:n=>{var r,i;if(n.dead||(n.dead=!0,!t.pointerIsValid(n))||2===n.button)return;n.currentTarget.setPointerCapture(n.pointerId);let o=t.pointerDown(n,"canvas");0===n.button&&(null==(r=e.onPointCanvas)||r.call(e,o,n)),null==(i=e.onPointerDown)||i.call(e,o,n)},onPointerMove:n=>{var r,i;if(n.dead||(n.dead=!0,!t.pointerIsValid(n)))return;let o=t.pointerMove(n,"canvas");1===n.buttons&&n.currentTarget.hasPointerCapture(n.pointerId)&&(null==(r=e.onDragCanvas)||r.call(e,o,n)),null==(i=e.onPointerMove)||i.call(e,o,n)},onPointerUp:n=>{var r,i,o,a;if(n.dead||(n.dead=!0,t.activePointer=void 0,!t.pointerIsValid(n))||2===n.button)return;let s=t.pointerUp(n,"canvas"),l=t.isDoubleClick();n.currentTarget.hasPointerCapture(n.pointerId)&&(null==(r=n.currentTarget)||r.releasePointerCapture(n.pointerId)),0===n.button&&(l&&!(s.altKey||s.metaKey)&&(null==(i=e.onDoubleClickCanvas)||i.call(e,s,n)),null==(o=e.onReleaseCanvas)||o.call(e,s,n)),null==(a=e.onPointerUp)||a.call(e,s,n)},onDrop:e.onDrop,onDragOver:e.onDragOver}),[e,t])}();return s.createElement("div",{id:e,className:"tl-container",ref:j},s.createElement("div",eT({id:"canvas",className:"tl-absolute tl-canvas",ref:D},T),!x&&a&&s.createElement(e0,{grid:a,camera:n.camera}),s.createElement("div",{ref:O,className:"tl-absolute tl-layer","data-testid":"layer"},s.createElement(td,{page:t,pageState:n,assets:r,hideBounds:g,hideIndicators:v,hideHandles:m,hideBindingHandles:y,hideCloneHandles:b,hideResizeHandles:k,hideRotateHandle:w,meta:d}),u&&c&&s.createElement(tg,{userId:c,users:u,page:t,meta:d}),n.brush&&s.createElement(eK,{brush:n.brush,dashed:f,zoom:n.camera.zoom}),u&&s.createElement(tm,{userId:c,users:u})),s.createElement(e1,{camera:n.camera},o&&s.createElement(eX,{points:o,zoom:n.camera.zoom}),i&&s.createElement(tp,{snapLines:i}))))}),tb=class{constructor(){eR(this,"pointer"),eR(this,"keyboard"),eR(this,"keys",{}),eR(this,"isPinching",!1),eR(this,"bounds",{minX:0,maxX:640,minY:0,maxY:480,width:640,height:480}),eR(this,"pointerUpTime",0),eR(this,"activePointer"),eR(this,"panStart",e=>{var t,n;let{shiftKey:r,ctrlKey:i,metaKey:o,altKey:a}=e,s={target:"wheel",pointerId:(null==(t=this.pointer)?void 0:t.pointerId)||0,origin:(null==(n=this.pointer)?void 0:n.origin)||[0,0],delta:[0,0],pressure:.5,point:tb.getPoint(e,this.bounds),shiftKey:r,ctrlKey:i,metaKey:o,altKey:a,spaceKey:this.keys[" "]};return this.pointer=s,s}),eR(this,"pan",(e,t)=>{if(!this.pointer||"wheel"!==this.pointer.target)return this.panStart(t);let{shiftKey:n,ctrlKey:r,metaKey:i,altKey:o}=t,a=this.pointer,s=tb.getPoint(t,this.bounds),l=eA(eT({},a),{target:"wheel",delta:e,point:s,shiftKey:n,ctrlKey:r,metaKey:i,altKey:o,spaceKey:this.keys[" "]});return this.pointer=l,l}),eR(this,"keydown",e=>{var t,n;let{shiftKey:r,ctrlKey:i,metaKey:o,altKey:a}=e;return this.keys[e.key]=!0,{point:(null==(t=this.pointer)?void 0:t.point)||[0,0],origin:(null==(n=this.pointer)?void 0:n.origin)||[0,0],key:e.key,keys:Object.keys(this.keys),shiftKey:r,ctrlKey:i,metaKey:eq.isDarwin()?o:i,altKey:a}}),eR(this,"keyup",e=>{var t,n;let{shiftKey:r,ctrlKey:i,metaKey:o,altKey:a}=e;return delete this.keys[e.key],{point:(null==(t=this.pointer)?void 0:t.point)||[0,0],origin:(null==(n=this.pointer)?void 0:n.origin)||[0,0],key:e.key,keys:Object.keys(this.keys),shiftKey:r,ctrlKey:i,metaKey:eq.isDarwin()?o:i,altKey:a}})}pointerIsValid(e){if("pointerId"in e&&this.activePointer&&this.activePointer!==e.pointerId)return!1;if("touches"in e){let t=e.changedTouches[0];if(this.activePointer&&this.activePointer!==t.identifier)return!1}return!0}touchStart(e,t){let{shiftKey:n,ctrlKey:r,metaKey:i,altKey:o}=e,a=e.changedTouches[0];this.activePointer=a.identifier;let s={target:t,pointerId:a.identifier,origin:tb.getPoint(a,this.bounds),delta:[0,0],point:tb.getPoint(a,this.bounds),pressure:tb.getPressure(a),shiftKey:n,ctrlKey:r,metaKey:eq.isDarwin()?i:r,altKey:o,spaceKey:this.keys[" "]};return this.pointer=s,s}touchEnd(e,t){let{shiftKey:n,ctrlKey:r,metaKey:i,altKey:o}=e,a=e.changedTouches[0],s={target:t,pointerId:a.identifier,origin:tb.getPoint(a,this.bounds),delta:[0,0],point:tb.getPoint(a,this.bounds),pressure:tb.getPressure(a),shiftKey:n,ctrlKey:r,metaKey:eq.isDarwin()?i:r,altKey:o,spaceKey:this.keys[" "]};return this.pointer=s,this.activePointer=void 0,s}touchMove(e,t){let{shiftKey:n,ctrlKey:r,metaKey:i,altKey:o}=e,a=e.changedTouches[0],s=this.pointer,u=tb.getPoint(a,this.bounds),c=(null==s?void 0:s.point)?l.B.sub(u,s.point):[0,0],d=eA(eT({origin:u},s),{target:t,pointerId:a.identifier,point:u,delta:c,pressure:tb.getPressure(a),shiftKey:n,ctrlKey:r,metaKey:eq.isDarwin()?i:r,altKey:o,spaceKey:this.keys[" "]});return this.pointer=d,d}pointerDown(e,t){let{shiftKey:n,ctrlKey:r,metaKey:i,altKey:o}=e,a=tb.getPoint(e,this.bounds);this.activePointer=e.pointerId;let s={target:t,pointerId:e.pointerId,origin:a,point:a,delta:[0,0],pressure:tb.getPressure(e),shiftKey:n,ctrlKey:r,metaKey:eq.isDarwin()?i:r,altKey:o,spaceKey:this.keys[" "]};return this.pointer=s,s}pointerEnter(e,t){let{shiftKey:n,ctrlKey:r,metaKey:i,altKey:o}=e,a=tb.getPoint(e,this.bounds),s={target:t,pointerId:e.pointerId,origin:a,delta:[0,0],point:a,pressure:tb.getPressure(e),shiftKey:n,ctrlKey:r,metaKey:eq.isDarwin()?i:r,altKey:o,spaceKey:this.keys[" "]};return this.pointer=s,s}pointerMove(e,t){let{shiftKey:n,ctrlKey:r,metaKey:i,altKey:o}=e,a=this.pointer,s=tb.getPoint(e,this.bounds),u=(null==a?void 0:a.point)?l.B.sub(s,a.point):[0,0],c=eA(eT({origin:s},a),{target:t,pointerId:e.pointerId,point:s,delta:u,pressure:tb.getPressure(e),shiftKey:n,ctrlKey:r,metaKey:eq.isDarwin()?i:r,altKey:o,spaceKey:this.keys[" "]});return this.pointer=c,c}pointerUp(e,t){let{shiftKey:n,ctrlKey:r,metaKey:i,altKey:o}=e,a=this.pointer,s=tb.getPoint(e,this.bounds),u=(null==a?void 0:a.point)?l.B.sub(s,a.point):[0,0];this.activePointer=void 0;let c=eA(eT({origin:s},a),{target:t,pointerId:e.pointerId,point:s,delta:u,pressure:tb.getPressure(e),shiftKey:n,ctrlKey:r,metaKey:eq.isDarwin()?i:r,altKey:o,spaceKey:this.keys[" "]});return this.pointer=c,this.pointerUpTime=performance.now(),c}isDoubleClick(){if(!this.pointer)return!1;let{origin:e,point:t}=this.pointer,n=performance.now()-this.pointerUpTime<250&&4>l.B.dist(e,t);return n&&(this.activePointer=void 0),n}clear(){this.pointer=void 0}resetDoubleClick(){this.pointerUpTime=0}pinch(e,t){let{shiftKey:n,ctrlKey:r,metaKey:i,altKey:o}=this.keys,a=l.B.sub(t,e),s={pointerId:0,target:"pinch",origin:t,delta:a,point:l.B.sub(l.B.toFixed(e),[this.bounds.minX,this.bounds.minY]),pressure:.5,shiftKey:n,ctrlKey:r,metaKey:eq.isDarwin()?i:r,altKey:o,spaceKey:this.keys[" "]};return this.pointer=s,s}reset(){this.pointerUpTime=0,this.pointer=void 0,this.keyboard=void 0,this.activePointer=void 0,this.keys={}}static getPoint(e,t){return[+e.clientX.toFixed(2)-t.minX,+e.clientY.toFixed(2)-t.minY]}static getPressure(e){return"pressure"in e&&+e.pressure.toFixed(2)||.5}static commandKey(){return eq.isDarwin()?"⌘":"Ctrl"}};new tb;var tk={},tw=s.memo(function(e){var t,{id:n="tl",shapeUtils:r,page:i,pageState:o,assets:a=tk,users:l,userId:u,theme:c,meta:d,snapLines:h,eraseLine:p,grid:f,containerRef:m,performanceMode:g,hideHandles:v=!1,hideIndicators:y=!1,hideCloneHandles:b=!1,hideBindingHandles:k=!1,hideResizeHandles:w=!1,hideRotateHandles:x=!1,hideBounds:_=!1,hideGrid:S=!0,showDashedBrush:E=!1}=e,D=eP(e,["id","shapeUtils","page","pageState","assets","users","userId","theme","meta","snapLines","eraseLine","grid","containerRef","performanceMode","hideHandles","hideIndicators","hideCloneHandles","hideBindingHandles","hideResizeHandles","hideRotateHandles","hideBounds","hideGrid","showDashedBrush"]);(function(e,t,n=":root"){s.useLayoutEffect(()=>{let r=document.createElement("style"),i=Object.keys(t).reduce((n,r)=>{let i=t[r];return i?n+`--${e}-${r}: ${i}; `:n},"");return r.setAttribute("id",`${e}-theme`),r.setAttribute("data-selector",n),r.innerHTML=` ${n} { ${i} } `,document.head.appendChild(r),()=>{r&&document.head.contains(r)&&document.head.removeChild(r)}},[e,t,n])})("tl",s.useMemo(()=>eT(eT({},eH),c),[c]),"#"+n),t="tl-canvas",s.useLayoutEffect(()=>{if(e$.get(t))return()=>{};let e=document.createElement("style");return e.innerHTML=eV,e.setAttribute("id",t),document.head.appendChild(e),e$.set(t,e),()=>{e&&document.head.contains(e)&&(document.head.removeChild(e),e$.delete(t))}},[t,eV]);let C=s.useRef(null),j=s.useRef(o);s.useEffect(()=>{j.current=o},[o]);let[O,T]=s.useState(()=>({callbacks:D,shapeUtils:r,rSelectionBounds:C,rPageState:j,bounds:{minX:0,minY:0,maxX:1/0,maxY:1/0,width:1/0,height:1/0},inputs:new tb})),A=s.useCallback(e=>{T(t=>eA(eT({},t),{bounds:e}))},[]);return s.createElement(eM.Provider,{value:O},s.createElement(ty,{id:n,page:i,pageState:o,assets:a,snapLines:h,eraseLine:p,grid:f,users:l,userId:u,externalContainerRef:m,hideBounds:_,hideIndicators:y,hideHandles:v,hideCloneHandles:b,hideBindingHandles:k,hideRotateHandle:x,hideResizeHandles:w,hideGrid:S,showDashedBrush:E,onBoundsChange:A,performanceMode:g,meta:d}))}),tx=s.memo(s.forwardRef(function(e,t){var{children:n,className:r=""}=e,i=eP(e,["children","className"]);return s.createElement("div",eT({ref:t,className:`tl-positioned-div ${r}`,draggable:!1},i),s.createElement("div",{className:"tl-inner-div"},n))})),t_=class{constructor(){eR(this,"refMap",new Map),eR(this,"boundsCache",new WeakMap),eR(this,"showCloneHandles",!1),eR(this,"hideBounds",!1),eR(this,"isStateful",!1),eR(this,"shouldRender",(e,t)=>!0),eR(this,"getRef",e=>(this.refMap.has(e.id)||this.refMap.set(e.id,s.createRef()),this.refMap.get(e.id))),eR(this,"hitTestBounds",(e,t)=>{let n=this.getBounds(e),r=eq.getRotatedCorners(n,e.rotation);return r.every(e=>eq.pointInBounds(e,t))||(0,ex.S3)(r,t).length>0}),eR(this,"getRotatedBounds",e=>eq.getBoundsFromPoints(eq.getRotatedCorners(this.getBounds(e),e.rotation)))}};eR(t_,"Component",e=>s.forwardRef(e)),eR(t_,"Indicator",e=>e);/** * String.prototype.replaceAll() polyfill * https://gomakethings.com/how-to-replace-a-section-of-a-string-with-another-one-with-vanilla-js/ * @author Chris Ferdinandi * @license MIT */},17947:function(e,t,n){"use strict";n.d(t,{Bc:function(){return E},Gc:function(){return _},Rt:function(){return j},S3:function(){return P},Sn:function(){return O},T9:function(){return b},VB:function(){return m},VC:function(){return D},WU:function(){return x},Zz:function(){return v},bO:function(){return C},bW:function(){return y},oA:function(){return g},ou:function(){return A},qx:function(){return w},zb:function(){return T}});var r=n(51987),i=Object.defineProperty,o=Object.defineProperties,a=Object.getOwnPropertyDescriptors,s=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,c=(e,t,n)=>t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,d=(e,t)=>{for(var n in t||(t={}))l.call(t,n)&&c(e,n,t[n]);if(s)for(var n of s(t))u.call(t,n)&&c(e,n,t[n]);return e},h=(e,t)=>o(e,a(t));function p(e,...t){let n=t.length>0;return{didIntersect:n,message:e,points:t}}function f(e,t,n=0){let i=[e[0]+t[0]/2,e[1]+t[1]/2],o=r.B.rotWith(e,i,n),a=r.B.rotWith(r.B.add(e,[t[0],0]),i,n),s=r.B.rotWith(r.B.add(e,t),i,n),l=r.B.rotWith(r.B.add(e,[0,t[1]]),i,n);return[["top",[o,a]],["right",[a,s]],["bottom",[s,l]],["left",[l,o]]]}function m(e,t){let n=r.B.slope(e[0],e[1]),i=r.B.slope(t[0],t[1]);if(n===i)return;if(Number.isNaN(n)&&!Number.isNaN(i))return[e[0][0],(e[0][0]-t[0][0])*i+t[0][1]];if(Number.isNaN(i)&&!Number.isNaN(n))return[t[0][0],(t[0][0]-e[0][0])*n+e[0][1]];let o=(n*e[0][0]-i*t[0][0]+t[0][1]-e[0][1])/(n-i),a=i*(o-t[0][0])+t[0][1];return[o,a]}function g(e,t,n,r){let[i,o]=e,[a,s]=t,[l,u]=n,[c,d]=r;if(s/a!=(d-u)/(c-l)){let e=a*(d-u)-s*(c-l);if(0!==e){let t=((o-u)*(c-l)-(i-l)*(d-u))/e,n=((o-u)*a-(i-l)*s)/e;if(t>=0&&n>=0&&n<=1)return p("intersection",[i+t*a,o+t*s])}}return p("no intersection")}function v(e,t,n,i,o,a){let s=r.B.mul(t,999999999);return w(e,s,n,i,o,a)}function y(e,t,n,r=0){let{minX:i,minY:o,width:a,height:s}=n;return function(e,t,n,r,i=0){return function(e,t,n,r,i){let o=f(e,t,n).reduce((e,[t,[n,o]])=>{let a=g(r,i,n,o);return a&&e.push(p(t,...a.points)),e},[]);return o.filter(e=>e.didIntersect)}(n,r,i,e,t)}(e,t,[i,o],[a,s],r)}function b(e,t,n,i){let o=r.B.sub(e,n),a=r.B.sub(i,n),s=r.B.sub(t,e),l=a[0]*o[1]-a[1]*o[0],u=s[0]*o[1]-s[1]*o[0],c=a[1]*s[0]-a[0]*s[1];if(0===l||0===u)return p("coincident");if(0===c)return p("parallel");if(0!==c){let t=l/c,n=u/c;if(0<=t&&t<=1&&0<=n&&n<=1)return p("intersection",r.B.add(e,r.B.mul(s,t)))}return p("no intersection")}function k(e,t,n,i){let o=(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]),a=2*((t[0]-e[0])*(e[0]-n[0])+(t[1]-e[1])*(e[1]-n[1])),s=n[0]*n[0]+n[1]*n[1]+e[0]*e[0]+e[1]*e[1]-2*(n[0]*e[0]+n[1]*e[1])-i*i,l=a*a-4*o*s;if(l<0)return p("outside");if(0===l)return p("tangent");let u=Math.sqrt(l),c=(-a+u)/(2*o),d=(-a-u)/(2*o);if((c<0||c>1)&&(d<0||d>1))return c<0&&d<0||c>1&&d>1?p("outside"):p("inside");let h=[];return 0<=c&&c<=1&&h.push(r.B.lrp(e,t,c)),0<=d&&d<=1&&h.push(r.B.lrp(e,t,d)),p("intersection",...h)}function w(e,t,n,i,o,a=0){if(0===i||0===o||r.B.isEqual(e,t))return p("no intersection");i=i<0?i:-i,o=o<0?o:-o,e=r.B.sub(r.B.rotWith(e,n,-a),n),t=r.B.sub(r.B.rotWith(t,n,-a),n);let s=r.B.sub(t,e),l=s[0]*s[0]/i/i+s[1]*s[1]/o/o,u=2*e[0]*s[0]/i/i+2*e[1]*s[1]/o/o,c=e[0]*e[0]/i/i+e[1]*e[1]/o/o-1,d=[],h=u*u-4*l*c;if(0===h)d.push(-u/2/l);else if(h>0){let e=Math.sqrt(h);d.push((-u+e)/2/l),d.push((-u-e)/2/l)}let f=d.filter(e=>e>=0&&e<=1).map(i=>r.B.add(n,r.B.add(e,r.B.mul(r.B.sub(t,e),i)))).map(e=>r.B.rotWith(e,n,a));return p("intersection",...f)}function x(e,t,n){return function(e,t,n){let{minX:r,minY:i,width:o,height:a}=e;return S([r,i],[o,a],t,n)}(n,e,t)}function _(e,t,n){let r=[];for(let i=1;i{let a=b(n,r,i,o);return a&&e.push(p(t,...a.points)),e},[]);return i.filter(e=>e.didIntersect)}function E(e,t,n,i,o){let{minX:a,minY:s,width:l,height:u}=o;return function(e,t,n,i,o,a){let s=f(e,t).reduce((e,[t,[s,l]])=>{let u=function(e,t,n,i,o,a){let s=r.B.angle(n,o),l=r.B.angle(n,a),u=function(e,t,n,r=0,i,o){return t===n?k(i,o,e,t):w(i,o,e,t,n,r)}(n,i,i,0,e,t);if(!u.didIntersect)return p("no intersection");let c=u.points.filter(e=>(function(e,t,n){if(n===e||n===t)return!0;let r=2*Math.PI,i=(t-e+r)%r;return i<=Math.PI!=(n-e+r)%r>i})(s,l,r.B.angle(n,e)));return 0===c.length?p("no intersection"):p("intersection",...c)}(s,l,n,i,o,a);return u&&e.push(h(d({},u),{message:t})),e},[]);return s.filter(e=>e.didIntersect)}([a,s],[l,u],e,t,n,i)}function D(e,t,n,r){return k(n,r,e,t)}function C(e,t,n,r){let i=n[0]-e[0],o=n[1]-e[1],a=Math.sqrt(i*i+o*o),s=(a*a-r*r+t*t)/(2*a),l=Math.sqrt(t*t-s*s);return i/=a,o/=a,p("intersection",[e[0]+i*s-o*l,e[1]+o*s+i*l],[e[0]+i*s+o*l,e[1]+o*s-i*l])}function j(e,t,n,r,i){let{minX:o,minY:a,width:s,height:l}=i;return function(e,t,n,r=0,i,o){return t===n?function(e,t,n,r){let i=f(e,t).reduce((e,[t,[i,o]])=>{let a=k(i,o,n,r);return a&&e.push(h(d({},a),{message:t})),e},[]);return i.filter(e=>e.didIntersect)}(i,o,e,t):function(e,t,n,r,i,o=0){let a=f(e,t).reduce((e,[t,[a,s]])=>{let l=w(a,s,n,r,i,o);return l&&e.push(h(d({},l),{message:t})),e},[]);return a.filter(e=>e.didIntersect)}(i,o,e,t,n,r)}(e,t,n,r,[o,a],[s,l])}function O(e,t){return function(e,t,n,r){let i=f(e,t).reduce((e,[t,[i,o]])=>{let a=S(n,r,i,o);return e.push(...a.map(e=>p(`${t} ${e.message}`,...e.points))),e},[]);return i.filter(e=>e.didIntersect)}([e.minX,e.minY],[e.width,e.height],[t.minX,t.minY],[t.width,t.height])}function T(e,t){return function(e,t,n){let r=f(e,t).reduce((e,[t,[r,i]])=>{let o=_(r,i,n);return o.didIntersect&&e.push(p(t,...o.points)),e},[]);return r.filter(e=>e.didIntersect)}([e.minX,e.minY],[e.width,e.height],t)}function A(e,t){return P(t,e)}function P(e,t){return function(e,t,n){let r=f(e,t).reduce((e,[t,[r,i]])=>{let o=function(e,t,n){let r=[];for(let i=1;ie.didIntersect)}([t.minX,t.minY],[t.width,t.height],e)}},51987:function(e,t,n){"use strict";n.d(t,{B:function(){return s},Z:function(){return l}});var r=Object.defineProperty,i=(e,t,n)=>t in e?r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,o=(e,t,n)=>(i(e,"symbol"!=typeof t?t+"":t,n),n),a=class{static clamp(e,t,n){return Math.max(t,void 0!==n?Math.min(e,n):e)}static clampV(e,t,n){return e.map(e=>n?a.clamp(e,t,n):a.clamp(e,t))}static cross(e,t,n){return(t[0]-e[0])*(n[1]-e[1])-(n[0]-e[0])*(t[1]-e[1])}static snap(e,t=1){return[Math.round(e[0]/t)*t,Math.round(e[1]/t)*t]}},s=a;o(s,"neg",e=>[-e[0],-e[1]]),o(s,"add",(e,t)=>[e[0]+t[0],e[1]+t[1]]),o(s,"addScalar",(e,t)=>[e[0]+t,e[1]+t]),o(s,"sub",(e,t)=>[e[0]-t[0],e[1]-t[1]]),o(s,"subScalar",(e,t)=>[e[0]-t,e[1]-t]),o(s,"vec",(e,t)=>[t[0]-e[0],t[1]-e[1]]),o(s,"mul",(e,t)=>[e[0]*t,e[1]*t]),o(s,"mulV",(e,t)=>[e[0]*t[0],e[1]*t[1]]),o(s,"div",(e,t)=>[e[0]/t,e[1]/t]),o(s,"divV",(e,t)=>[e[0]/t[0],e[1]/t[1]]),o(s,"per",e=>[e[1],-e[0]]),o(s,"dpr",(e,t)=>e[0]*t[0]+e[1]*t[1]),o(s,"cpr",(e,t)=>e[0]*t[1]-t[0]*e[1]),o(s,"len2",e=>e[0]*e[0]+e[1]*e[1]),o(s,"len",e=>Math.hypot(e[0],e[1])),o(s,"pry",(e,t)=>a.dpr(e,t)/a.len(t)),o(s,"uni",e=>a.div(e,a.len(e))),o(s,"normalize",e=>a.uni(e)),o(s,"tangent",(e,t)=>a.uni(a.sub(e,t))),o(s,"dist2",(e,t)=>a.len2(a.sub(e,t))),o(s,"dist",(e,t)=>Math.hypot(e[1]-t[1],e[0]-t[0])),o(s,"fastDist",(e,t)=>{let n=[t[0]-e[0],t[1]-e[1]],r=[Math.abs(n[0]),Math.abs(n[1])],i=1/Math.max(r[0],r[1]);return[n[0]*(i*=1.29289-(r[0]+r[1])*i*.29289),n[1]*i]}),o(s,"ang",(e,t)=>Math.atan2(a.cpr(e,t),a.dpr(e,t))),o(s,"angle",(e,t)=>Math.atan2(t[1]-e[1],t[0]-e[0])),o(s,"med",(e,t)=>a.mul(a.add(e,t),.5)),o(s,"rot",(e,t=0)=>[e[0]*Math.cos(t)-e[1]*Math.sin(t),e[0]*Math.sin(t)+e[1]*Math.cos(t)]),o(s,"rotWith",(e,t,n=0)=>{if(0===n)return e;let r=Math.sin(n),i=Math.cos(n),o=e[0]-t[0],a=e[1]-t[1];return[o*i-a*r+t[0],o*r+a*i+t[1]]}),o(s,"isEqual",(e,t)=>e[0]===t[0]&&e[1]===t[1]),o(s,"lrp",(e,t,n)=>a.add(e,a.mul(a.sub(t,e),n))),o(s,"int",(e,t,n,r,i=1)=>{let o=(a.clamp(n,r)-n)/(r-n);return a.add(a.mul(e,1-o),a.mul(t,i))}),o(s,"ang3",(e,t,n)=>{let r=a.vec(t,e),i=a.vec(t,n);return a.ang(r,i)}),o(s,"abs",e=>[Math.abs(e[0]),Math.abs(e[1])]),o(s,"rescale",(e,t)=>{let n=a.len(e);return[t*e[0]/n,t*e[1]/n]}),o(s,"isLeft",(e,t,n)=>(t[0]-e[0])*(n[1]-e[1])-(n[0]-e[0])*(t[1]-e[1])),o(s,"clockwise",(e,t,n)=>a.isLeft(e,t,n)>0),o(s,"toFixed",e=>e.map(e=>Math.round(100*e)/100)),o(s,"nearestPointOnLineThroughPoint",(e,t,n)=>a.add(e,a.mul(t,a.pry(a.sub(n,e),t)))),o(s,"distanceToLineThroughPoint",(e,t,n)=>a.dist(n,a.nearestPointOnLineThroughPoint(e,t,n))),o(s,"nearestPointOnLineSegment",(e,t,n,r=!0)=>{let i=a.uni(a.sub(t,e)),o=a.add(e,a.mul(i,a.pry(a.sub(n,e),i)));if(r){if(o[0]Math.max(e[0],t[0]))return e[0]>t[0]?e:t;if(o[1]Math.max(e[1],t[1]))return e[1]>t[1]?e:t}return o}),o(s,"distanceToLineSegment",(e,t,n,r=!0)=>a.dist(n,a.nearestPointOnLineSegment(e,t,n,r))),o(s,"nearestPointOnBounds",(e,t)=>[a.clamp(t[0],e.minX,e.maxX),a.clamp(t[1],e.minY,e.maxY)]),o(s,"distanceToBounds",(e,t)=>a.dist(t,a.nearestPointOnBounds(e,t))),o(s,"nudge",(e,t,n)=>a.isEqual(e,t)?e:a.add(e,a.mul(a.uni(a.sub(t,e)),n))),o(s,"nudgeAtAngle",(e,t,n)=>[Math.cos(t)*n+e[0],Math.sin(t)*n+e[1]]),o(s,"toPrecision",(e,t=4)=>[+e[0].toPrecision(t),+e[1].toPrecision(t)]),o(s,"pointsBetween",(e,t,n=6)=>Array.from(Array(n)).map((r,i)=>{let o=i/(n-1),s=Math.min(1,.5+Math.abs(.5-o));return[...a.lrp(e,t,o),s]})),o(s,"slope",(e,t)=>e[0]===t[0]?NaN:(e[1]-t[1])/(e[0]-t[0])),o(s,"max",(...e)=>[Math.max(...e.map(e=>e[0])),Math.max(...e.map(e=>e[1]))]),o(s,"min",(...e)=>[Math.min(...e.map(e=>e[0])),Math.min(...e.map(e=>e[1]))]);var l=s},5617:function(e,t,n){"use strict";let r,i,o;n.d(t,{zt:function(){return E},C$:function(){return y},sk:function(){return F}});var a={};n.r(a),n.d(a,{getItem:function(){return x},removeItem:function(){return _},setItem:function(){return w}});var s=n(47491),l=n(75386),u=class extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}};function c(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError("attempted to use private field on non-instance");return e}var d=0;function h(e){return"__private_"+d+++"_"+e}async function p(e){if(401===e.status)throw new u;let t=e.json();if(e.ok)return t;let n=`Failed request with status: ${e.status}. ${e.statusText}`;try{let e=await t;n=e.message?`${n} message: ${e.message}`:n,n=e.requestId?`${n} request-Id: ${e.requestId}`:n}catch{}throw Error(n)}let f=new Map;var m=h("companionHeaders"),g=h("getUrl"),v=h("request");r=Symbol.for("uppy test: getCompanionHeaders");class y{constructor(e,t){Object.defineProperty(this,v,{value:k}),Object.defineProperty(this,g,{value:b}),Object.defineProperty(this,m,{writable:!0,value:void 0}),this.uppy=e,this.opts=t,this.onReceiveResponse=this.onReceiveResponse.bind(this),c(this,m)[m]=null==t?void 0:t.companionHeaders}setCompanionHeaders(e){c(this,m)[m]=e}[r](){return c(this,m)[m]}get hostname(){let{companion:e}=this.uppy.getState(),t=this.opts.companionUrl;return(e&&e[t]?e[t]:t).replace(/\/$/,"")}async headers(){let e={Accept:"application/json","Content-Type":"application/json","Uppy-Versions":`@uppy/companion-client=${y.VERSION}`};return{...e,...c(this,m)[m]}}onReceiveResponse(e){let{headers:t}=e,n=this.uppy.getState(),r=n.companion||{},i=this.opts.companionUrl;t.has("i-am")&&t.get("i-am")!==r[i]&&this.uppy.setState({companion:{...r,[i]:t.get("i-am")}})}async preflight(e){let t=f.get(this.hostname);if(null!=t)return t;let n=["accept","content-type","uppy-auth-token"],r=(async()=>{try{let t=await fetch(c(this,g)[g](e),{method:"OPTIONS"}),r=t.headers.get("access-control-allow-headers");if(null==r||"*"===r)return f.set(this.hostname,n),n;this.uppy.log(`[CompanionClient] adding allowed preflight headers to companion cache: ${this.hostname} ${r}`);let i=r.split(",").map(e=>e.trim().toLowerCase());return f.set(this.hostname,i),i}catch(e){return this.uppy.log(`[CompanionClient] unable to make preflight request ${e}`,"warning"),f.delete(this.hostname),n}})();return f.set(this.hostname,r),r}async preflightAndHeaders(e){let[t,n]=await Promise.all([this.preflight(e),this.headers()]);return Object.fromEntries(Object.entries(n).filter(e=>{let[n]=e;return!!t.includes(n.toLowerCase())||(this.uppy.log(`[CompanionClient] excluding disallowed header ${n}`),!1)}))}async get(e,t){return void 0===t&&(t=void 0),"boolean"==typeof t&&(t={skipPostResponse:t}),c(this,v)[v]({...t,path:e})}async post(e,t,n){return void 0===n&&(n=void 0),"boolean"==typeof n&&(n={skipPostResponse:n}),c(this,v)[v]({...n,path:e,method:"POST",data:t})}async delete(e,t,n){return void 0===t&&(t=void 0),"boolean"==typeof n&&(n={skipPostResponse:n}),c(this,v)[v]({...n,path:e,method:"DELETE",data:t})}}function b(e){return/^(https?:|)\/\//.test(e)?e:`${this.hostname}/${e}`}async function k(e){let{path:t,method:n="GET",data:r,skipPostResponse:i,signal:o}=e;try{let e=await this.preflightAndHeaders(t),a=await (0,s.Z)(c(this,g)[g](t),{method:n,signal:o,headers:e,credentials:this.opts.companionCookiesRule||"same-origin",body:r?JSON.stringify(r):null});return i||this.onReceiveResponse(a),p(a)}catch(e){if(null!=e&&e.isAuthError)throw e;throw new l.Z(`Could not ${n} ${c(this,g)[g](t)}`,{cause:e})}}function w(e,t){return new Promise(n=>{localStorage.setItem(e,t),n()})}function x(e){return Promise.resolve(localStorage.getItem(e))}function _(e){return new Promise(t=>{localStorage.removeItem(e),t()})}y.VERSION="3.1.1";let S=e=>e.split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ");class E extends y{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||S(this.id),this.pluginId=this.opts.pluginId,this.tokenKey=`companion-${this.pluginId}-auth-token`,this.companionKeysParams=this.opts.companionKeysParams,this.preAuthToken=null}async headers(){let[e,t]=await Promise.all([super.headers(),this.getAuthToken()]),n={};return t&&(n["uppy-auth-token"]=t),this.companionKeysParams&&(n["uppy-credentials-params"]=btoa(JSON.stringify({params:this.companionKeysParams}))),{...e,...n}}onReceiveResponse(e){super.onReceiveResponse(e);let t=this.uppy.getPlugin(this.pluginId),n=t.getPluginState().authenticated,r=n?401!==e.status:e.status<400;return t.setPluginState({authenticated:r}),e}setAuthToken(e){return this.uppy.getPlugin(this.pluginId).storage.setItem(this.tokenKey,e)}getAuthToken(){return this.uppy.getPlugin(this.pluginId).storage.getItem(this.tokenKey)}async ensurePreAuth(){if(this.companionKeysParams&&!this.preAuthToken&&(await this.fetchPreAuthToken(),!this.preAuthToken))throw Error("Could not load authentication data required for third-party login. Please try again later.")}authUrl(e){void 0===e&&(e={});let t=new URLSearchParams(e);return this.preAuthToken&&t.set("uppyPreAuthToken",this.preAuthToken),`${this.hostname}/${this.id}/connect?${t}`}fileUrl(e){return`${this.hostname}/${this.id}/get/${e}`}async fetchPreAuthToken(){if(this.companionKeysParams)try{let e=await this.post(`${this.id}/preauth/`,{params:this.companionKeysParams});this.preAuthToken=e.token}catch(e){this.uppy.log(`[CompanionClient] unable to fetch preAuthToken ${e}`,"warning")}}list(e){return this.get(`${this.id}/list/${e||""}`)}logout(){return this.get(`${this.id}/logout`).then(e=>Promise.all([e,this.uppy.getPlugin(this.pluginId).storage.removeItem(this.tokenKey)])).then(e=>{let[t]=e;return t})}static initPlugin(e,t,n){if(e.type="acquirer",e.files=[],n&&(e.opts={...n,...t}),t.serverUrl||t.serverPattern)throw Error("`serverUrl` and `serverPattern` have been renamed to `companionUrl` and `companionAllowedHosts` respectively in the 0.30.5 release. Please consult the docs (for example, https://uppy.io/docs/instagram/ for the Instagram plugin) and use the updated options.`");if(t.companionAllowedHosts){let n=t.companionAllowedHosts;if("string"!=typeof n&&!Array.isArray(n)&&!(n instanceof RegExp))throw TypeError(`${e.id}: the option "companionAllowedHosts" must be one of string, Array, RegExp`);e.opts.companionAllowedHosts=n}else/^(?!https?:\/\/).*$/i.test(t.companionUrl)?e.opts.companionAllowedHosts=`https://${t.companionUrl.replace(/^\/\//,"")}`:e.opts.companionAllowedHosts=new URL(t.companionUrl).origin;e.storage=e.opts.storage||a}}var D=n(5450);function C(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError("attempted to use private field on non-instance");return e}var j=0;function O(e){return"__private_"+j+++"_"+e}var T=O("queued"),A=O("emitter"),P=O("isOpen"),R=O("socket"),M=O("handleMessage");i=Symbol.for("uppy test: getSocket"),o=Symbol.for("uppy test: getQueued");class F{constructor(e){Object.defineProperty(this,T,{writable:!0,value:[]}),Object.defineProperty(this,A,{writable:!0,value:D()}),Object.defineProperty(this,P,{writable:!0,value:!1}),Object.defineProperty(this,R,{writable:!0,value:void 0}),Object.defineProperty(this,M,{writable:!0,value:e=>{try{let t=JSON.parse(e.data);this.emit(t.action,t.payload)}catch(e){console.log(e)}}}),this.opts=e,e&&!1===e.autoOpen||this.open()}get isOpen(){return C(this,P)[P]}[i](){return C(this,R)[R]}[o](){return C(this,T)[T]}open(){C(this,R)[R]=new WebSocket(this.opts.target),C(this,R)[R].onopen=()=>{for(C(this,P)[P]=!0;C(this,T)[T].length>0&&C(this,P)[P];){let e=C(this,T)[T].shift();this.send(e.action,e.payload)}},C(this,R)[R].onclose=()=>{C(this,P)[P]=!1},C(this,R)[R].onmessage=C(this,M)[M]}close(){var e;null==(e=C(this,R)[R])||e.close()}send(e,t){if(!C(this,P)[P]){C(this,T)[T].push({action:e,payload:t});return}C(this,R)[R].send(JSON.stringify({action:e,payload:t}))}on(e,t){C(this,A)[A].on(e,t)}emit(e,t){C(this,A)[A].emit(e,t)}once(e,t){C(this,A)[A].once(e,t)}}},60587:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(6744);class i{constructor(e,t){void 0===t&&(t={}),this.uppy=e,this.opts=t}getPluginState(){let{plugins:e}=this.uppy.getState();return e[this.id]||{}}setPluginState(e){let{plugins:t}=this.uppy.getState();this.uppy.setState({plugins:{...t,[this.id]:{...t[this.id],...e}}})}setOptions(e){this.opts={...this.opts,...e},this.setPluginState(),this.i18nInit()}i18nInit(){let e=new r.Z([this.defaultLocale,this.uppy.locale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.setPluginState()}addTarget(){throw Error("Extend the addTarget method to add your plugin to another plugin's target")}install(){}uninstall(){}render(){throw Error("Extend the render method to add your plugin to a DOM element")}update(){}afterUpdate(){}}},65616:function(e,t,n){"use strict";let r,i;n.d(t,{di:function(){return ey},hS:function(){return eu},ZP:function(){return eu}});var o=n(6744),a=n(5450);let s=(e=21)=>{let t="",n=e;for(;n--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t};var l=n(98357);function u(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError("attempted to use private field on non-instance");return e}var c=0;function d(e){return"__private_"+c+++"_"+e}var h=d("callbacks"),p=d("publish");class f{constructor(){Object.defineProperty(this,p,{value:m}),Object.defineProperty(this,h,{writable:!0,value:new Set}),this.state={}}getState(){return this.state}setState(e){let t={...this.state},n={...this.state,...e};this.state=n,u(this,p)[p](t,n,e)}subscribe(e){return u(this,h)[h].add(e),()=>{u(this,h)[h].delete(e)}}}function m(){for(var e=arguments.length,t=Array(e),n=0;n{e(...t)})}function g(e){let t=e.lastIndexOf(".");return -1===t||t===e.length-1?{name:e,extension:void 0}:{name:e.slice(0,t),extension:e.slice(t+1)}}f.VERSION="3.0.2";var v=n(13326);function y(e){let t="";return e.replace(/[^A-Z0-9]/ig,e=>(t+=`-${e.charCodeAt(0).toString(32)}`,"/"))+t}function b(e){return e<10?`0${e}`:e.toString()}function k(){let e=new Date,t=b(e.getHours()),n=b(e.getMinutes()),r=b(e.getSeconds());return`${t}:${n}:${r}`}let w={debug:()=>{},warn:()=>{},error:function(){for(var e=arguments.length,t=Array(e),n=0;n{let t=e();if(null!=t.restrictions.allowedFileTypes&&!Array.isArray(t.restrictions.allowedFileTypes))throw TypeError("`restrictions.allowedFileTypes` must be an array");return t}}validate(e,t){let{maxFileSize:n,minFileSize:r,maxTotalFileSize:i,maxNumberOfFiles:o,allowedFileTypes:a}=this.getOpts().restrictions;if(o){let e=t.filter(e=>!e.isGhost);if(e.length+1>o)throw new D(`${this.i18n("youCanOnlyUploadX",{smart_count:o})}`)}if(a){let t=a.some(t=>t.includes("/")?!!e.type&&S(e.type.replace(/;.*?$/,""),t):"."===t[0]&&!!e.extension&&e.extension.toLowerCase()===t.slice(1).toLowerCase());if(!t){let e=a.join(", ");throw new D(this.i18n("youCanOnlyUploadFileTypes",{types:e}))}}if(i&&null!=e.size){let n=t.reduce((e,t)=>e+t.size,e.size);if(n>i)throw new D(this.i18n("exceedsSize",{size:_(i),file:e.name}))}if(n&&null!=e.size&&e.size>n)throw new D(this.i18n("exceedsSize",{size:_(n),file:e.name}));if(r&&null!=e.size&&e.sizee,onBeforeUpload:e=>e,store:new f,logger:w,infoTimeout:5e3};this.opts={...t,...e,restrictions:{...t.restrictions,...e&&e.restrictions}},e&&e.logger&&e.debug?this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.","warning"):e&&e.debug&&(this.opts.logger=x),this.log(`Using Core v${this.constructor.VERSION}`),this.i18nInit(),this.calculateProgress=l(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:function(e){if(null==e&&"undefined"!=typeof navigator&&(e=navigator.userAgent),!e)return!0;let t=/Edge\/(\d+\.\d+)/.exec(e);if(!t)return!0;let n=t[1],[r,i]=n.split(".");return r=parseInt(r,10),i=parseInt(i,10),r<15||15===r&&i<15063||r>18||18===r&&i>=18218}(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),O(this,R)[R]=new C(()=>this.opts,this.i18n),O(this,M)[M]=this.store.subscribe((e,t,n)=>{this.emit("state-update",e,t,n),this.updateAll(t)}),this.opts.debug&&"undefined"!=typeof window&&(window[this.opts.id]=this),O(this,V)[V]()}emit(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r{t.update(e)})}setState(e){this.store.setState(e)}getState(){return this.store.getState()}setFileState(e,t){if(!this.getState().files[e])throw Error(`Can’t set state for ${e} (the file could have been removed)`);this.setState({files:{...this.getState().files,[e]:{...this.getState().files[e],...t}}})}i18nInit(){let e=new o.Z([this.defaultLocale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.locale=e.locale}setOptions(e){this.opts={...this.opts,...e,restrictions:{...this.opts.restrictions,...e&&e.restrictions}},e.meta&&this.setMeta(e.meta),this.i18nInit(),e.locale&&this.iteratePlugins(e=>{e.setOptions()}),this.setState()}resetProgress(){let e={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},t={...this.getState().files},n={};Object.keys(t).forEach(r=>{let i={...t[r]};i.progress={...i.progress,...e},n[r]=i}),this.setState({files:n,totalProgress:0}),this.emit("reset-progress")}addPreProcessor(e){O(this,N)[N].add(e)}removePreProcessor(e){return O(this,N)[N].delete(e)}addPostProcessor(e){O(this,L)[L].add(e)}removePostProcessor(e){return O(this,L)[L].delete(e)}addUploader(e){O(this,I)[I].add(e)}removeUploader(e){return O(this,I)[I].delete(e)}setMeta(e){let t={...this.getState().meta,...e},n={...this.getState().files};Object.keys(n).forEach(t=>{n[t]={...n[t],meta:{...n[t].meta,...e}}}),this.log("Adding metadata:"),this.log(e),this.setState({meta:t,files:n})}setFileMeta(e,t){let n={...this.getState().files};if(!n[e]){this.log("Was trying to set metadata for a file that has been removed: ",e);return}let r={...n[e].meta,...t};n[e]={...n[e],meta:r},this.setState({files:n})}getFile(e){return this.getState().files[e]}getFiles(){let{files:e}=this.getState();return Object.values(e)}getObjectOfFilesPerState(){let{files:e,totalProgress:t,error:n}=this.getState(),r=Object.values(e),i=r.filter(e=>{let{progress:t}=e;return!t.uploadComplete&&t.uploadStarted}),o=r.filter(e=>!e.progress.uploadStarted),a=r.filter(e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess),s=r.filter(e=>e.progress.uploadStarted),l=r.filter(e=>e.isPaused),u=r.filter(e=>e.progress.uploadComplete),c=r.filter(e=>e.error),d=i.filter(e=>!e.isPaused),h=r.filter(e=>e.progress.preprocess||e.progress.postprocess);return{newFiles:o,startedFiles:a,uploadStartedFiles:s,pausedFiles:l,completeFiles:u,erroredFiles:c,inProgressFiles:i,inProgressNotPausedFiles:d,processingFiles:h,isUploadStarted:s.length>0,isAllComplete:100===t&&u.length===r.length&&0===h.length,isAllErrored:!!n&&c.length===r.length,isAllPaused:0!==i.length&&l.length===i.length,isUploadInProgress:i.length>0,isSomeGhost:r.some(e=>e.isGhost)}}validateRestrictions(e,t){void 0===t&&(t=this.getFiles());try{O(this,R)[R].validate(e,t)}catch(e){return e}return null}checkIfFileAlreadyExists(e){let{files:t}=this.getState();return!!t[e]&&!t[e].isGhost}addFile(e){O(this,q)[q](e);let{files:t}=this.getState(),n=O(this,$)[$](t,e);return t[n.id]&&t[n.id].isGhost&&(n={...t[n.id],data:e.data,isGhost:!1},this.log(`Replaced the blob in the restored ghost file: ${n.name}, ${n.id}`)),this.setState({files:{...t,[n.id]:n}}),this.emit("file-added",n),this.emit("files-added",[n]),this.log(`Added file: ${n.name}, ${n.id}, mime type: ${n.type}`),O(this,H)[H](),n.id}addFiles(e){O(this,q)[q]();let t={...this.getState().files},n=[],r=[];for(let i=0;i{this.emit("file-added",e)}),this.emit("files-added",n),n.length>5?this.log(`Added batch of ${n.length} files`):Object.keys(n).forEach(e=>{this.log(`Added file: ${n[e].name} id: ${n[e].id} type: ${n[e].type}`)}),n.length>0&&O(this,H)[H](),r.length>0){let e="Multiple errors occurred while adding files:\n";if(r.forEach(t=>{e+=` * ${t.message}`}),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:r.length}),details:e},"error",this.opts.infoTimeout),"function"==typeof AggregateError)throw AggregateError(r,e);{let t=Error(e);throw t.errors=r,t}}}removeFiles(e,t){let{files:n,currentUploads:r}=this.getState(),i={...n},o={...r},a=Object.create(null);function s(e){return void 0===a[e]}e.forEach(e=>{n[e]&&(a[e]=n[e],delete i[e])}),Object.keys(o).forEach(e=>{let t=r[e].fileIDs.filter(s);if(0===t.length){delete o[e];return}let{capabilities:n}=this.getState();if(t.length!==r[e].fileIDs.length&&!n.individualCancellation)throw Error("individualCancellation is disabled");o[e]={...r[e],fileIDs:t}});let l={currentUploads:o,files:i};0===Object.keys(i).length&&(l.allowNewUpload=!0,l.error=null,l.recoveredState=null),this.setState(l),this.calculateTotalProgress();let u=Object.keys(a);u.forEach(e=>{this.emit("file-removed",a[e],t)}),u.length>5?this.log(`Removed ${u.length} files`):this.log(`Removed files: ${u.join(", ")}`)}removeFile(e,t){void 0===t&&(t=null),this.removeFiles([e],t)}pauseResume(e){if(!this.getState().capabilities.resumableUploads||this.getFile(e).uploadComplete)return;let t=this.getFile(e).isPaused||!1,n=!t;return this.setFileState(e,{isPaused:n}),this.emit("upload-pause",e,n),n}pauseAll(){let e={...this.getState().files},t=Object.keys(e).filter(t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted);t.forEach(t=>{let n={...e[t],isPaused:!0};e[t]=n}),this.setState({files:e}),this.emit("pause-all")}resumeAll(){let e={...this.getState().files},t=Object.keys(e).filter(t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted);t.forEach(t=>{let n={...e[t],isPaused:!1,error:null};e[t]=n}),this.setState({files:e}),this.emit("resume-all")}retryAll(){let e={...this.getState().files},t=Object.keys(e).filter(t=>e[t].error);if(t.forEach(t=>{let n={...e[t],isPaused:!1,error:null};e[t]=n}),this.setState({files:e,error:null}),this.emit("retry-all",t),0===t.length)return Promise.resolve({successful:[],failed:[]});let n=O(this,G)[G](t,{forceAllowNewUpload:!0});return O(this,K)[K](n)}cancelAll(e){let{reason:t="user"}=void 0===e?{}:e;if(this.emit("cancel-all",{reason:t}),"user"===t){let{files:e}=this.getState(),t=Object.keys(e);t.length&&this.removeFiles(t,"cancel-all"),this.setState({totalProgress:0,error:null,recoveredState:null})}}retryUpload(e){this.setFileState(e,{error:null,isPaused:!1}),this.emit("upload-retry",e);let t=O(this,G)[G]([e],{forceAllowNewUpload:!0});return O(this,K)[K](t)}logout(){this.iteratePlugins(e=>{e.provider&&e.provider.logout&&e.provider.logout()})}calculateProgress(e,t){if(null==e||!this.getFile(e.id)){this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);return}let n=Number.isFinite(t.bytesTotal)&&t.bytesTotal>0;this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,bytesUploaded:t.bytesUploaded,bytesTotal:t.bytesTotal,percentage:n?Math.round(t.bytesUploaded/t.bytesTotal*100):0}}),this.calculateTotalProgress()}calculateTotalProgress(){let e=this.getFiles(),t=e.filter(e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess);if(0===t.length){this.emit("progress",0),this.setState({totalProgress:0});return}let n=t.filter(e=>null!=e.progress.bytesTotal),r=t.filter(e=>null==e.progress.bytesTotal);if(0===n.length){let e=100*t.length,n=r.reduce((e,t)=>e+t.progress.percentage,0),i=Math.round(n/e*100);this.setState({totalProgress:i});return}let i=n.reduce((e,t)=>e+t.progress.bytesTotal,0),o=i/n.length;i+=o*r.length;let a=0;n.forEach(e=>{a+=e.progress.bytesUploaded}),r.forEach(e=>{a+=o*(e.progress.percentage||0)/100});let s=0===i?0:Math.round(a/i*100);s>100&&(s=100),this.setState({totalProgress:s}),this.emit("progress",s)}updateOnlineStatus(){let e=void 0===window.navigator.onLine||window.navigator.onLine;e?(this.emit("is-online"),this.wasOffline&&(this.emit("back-online"),this.info(this.i18n("connectedToInternet"),"success",3e3),this.wasOffline=!1)):(this.emit("is-offline"),this.info(this.i18n("noInternetConnection"),"error",0),this.wasOffline=!0)}getID(){return this.opts.id}use(e,t){if("function"!=typeof e){let t=`Expected a plugin class, but got ${null===e?"null":typeof e}. Please verify that the plugin was imported and spelled correctly.`;throw TypeError(t)}let n=new e(this,t),r=n.id;if(!r)throw Error("Your plugin must have an id");if(!n.type)throw Error("Your plugin must have a type");let i=this.getPlugin(r);if(i){let e=`Already found a plugin named '${i.id}'. Tried to use: '${r}'. Uppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw Error(e)}return e.VERSION&&this.log(`Using ${r} v${e.VERSION}`),n.type in O(this,P)[P]?O(this,P)[P][n.type].push(n):O(this,P)[P][n.type]=[n],n.install(),this}getPlugin(e){for(let t of Object.values(O(this,P)[P])){let n=t.find(t=>t.id===e);if(null!=n)return n}}[r](e){return O(this,P)[P][e]}iteratePlugins(e){Object.values(O(this,P)[P]).flat(1).forEach(e)}removePlugin(e){this.log(`Removing plugin ${e.id}`),this.emit("plugin-remove",e),e.uninstall&&e.uninstall();let t=O(this,P)[P][e.type],n=t.findIndex(t=>t.id===e.id);-1!==n&&t.splice(n,1);let r=this.getState(),i={plugins:{...r.plugins,[e.id]:void 0}};this.setState(i)}close(e){let{reason:t}=void 0===e?{}:e;this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.cancelAll({reason:t}),O(this,M)[M](),this.iteratePlugins(e=>{this.removePlugin(e)}),"undefined"!=typeof window&&window.removeEventListener&&(window.removeEventListener("online",O(this,W)[W]),window.removeEventListener("offline",O(this,W)[W]))}hideInfo(){let{info:e}=this.getState();this.setState({info:e.slice(1)}),this.emit("info-hidden")}info(e,t,n){void 0===t&&(t="info"),void 0===n&&(n=3e3);let r="object"==typeof e;this.setState({info:[...this.getState().info,{type:t,message:r?e.message:e,details:r?e.details:null}]}),setTimeout(()=>this.hideInfo(),n),this.emit("info-visible")}log(e,t){let{logger:n}=this.opts;switch(t){case"error":n.error(e);break;case"warning":n.warn(e);break;default:n.debug(e)}}restore(e){return(this.log(`Core: attempting to restore upload "${e}"`),this.getState().currentUploads[e])?O(this,K)[K](e):(O(this,Z)[Z](e),Promise.reject(Error("Nonexistent upload")))}[i](){return O(this,G)[G](...arguments)}addResultData(e,t){if(!O(this,Y)[Y](e)){this.log(`Not setting result for an upload that has been removed: ${e}`);return}let{currentUploads:n}=this.getState(),r={...n[e],result:{...n[e].result,...t}};this.setState({currentUploads:{...n,[e]:r}})}upload(){var e;null!=(e=O(this,P)[P].uploader)&&e.length||this.log("No uploader type plugins are used","warning");let{files:t}=this.getState(),n=this.opts.onBeforeUpload(t);return!1===n?Promise.reject(Error("Not starting the upload because onBeforeUpload returned false")):(n&&"object"==typeof n&&(t=n,this.setState({files:t})),Promise.resolve().then(()=>O(this,R)[R].validateMinNumberOfFiles(t)).catch(e=>{throw O(this,B)[B](e),e}).then(()=>{if(!O(this,U)[U](t))throw new D(this.i18n("missingRequiredMetaField"))}).catch(e=>{throw e}).then(()=>{let{currentUploads:e}=this.getState(),n=Object.values(e).flatMap(e=>e.fileIDs),r=[];Object.keys(t).forEach(e=>{let t=this.getFile(e);t.progress.uploadStarted||-1!==n.indexOf(e)||r.push(t.id)});let i=O(this,G)[G](r);return O(this,K)[K](i)}).catch(e=>{throw this.emit("error",e),this.log(e,"error"),e}))}}function X(e,t){let{message:n,details:r=""}=e;e.isRestriction?this.emit("restriction-failed",t,e):this.emit("error",e),this.info({message:n,details:r},"error",this.opts.infoTimeout),this.log(e,"warning")}function Q(e){let{missingFields:t,error:n}=O(this,R)[R].getMissingRequiredMetaFields(e);return!(t.length>0)||(this.setFileState(e.id,{missingRequiredMetaFields:t}),this.log(n.message),this.emit("restriction-failed",e,n),!1)}function ee(e){let t=!0;for(let n of Object.values(e))O(this,z)[z](n)||(t=!1);return t}function et(e){let{allowNewUpload:t}=this.getState();if(!1===t){let t=new D(this.i18n("noMoreFilesAllowed"));throw O(this,B)[B](t,e),t}}function en(e,t){var n,r;let i;t instanceof File&&(t={name:t.name,type:t.type,size:t.size,data:t});let o=function(e){var t;if(e.type)return e.type;let n=e.name?null==(t=g(e.name).extension)?void 0:t.toLowerCase():null;return n&&n in v.Z?v.Z[n]:"application/octet-stream"}(t),a=(n=t).name?n.name:"image"===o.split("/")[0]?`${o.split("/")[0]}.${o.split("/")[1]}`:"noname",s=g(a).extension,l=!!t.isRemote,u=(r={...t,type:o},i="uppy","string"==typeof r.name&&(i+=`-${y(r.name.toLowerCase())}`),void 0!==r.type&&(i+=`-${r.type}`),r.meta&&"string"==typeof r.meta.relativePath&&(i+=`-${y(r.meta.relativePath.toLowerCase())}`),void 0!==r.data.size&&(i+=`-${r.data.size}`),void 0!==r.data.lastModified&&(i+=`-${r.data.lastModified}`),i);if(this.checkIfFileAlreadyExists(u)){let e=new D(this.i18n("noDuplicates",{fileName:a}));throw O(this,B)[B](e,t),e}let c=t.meta||{};c.name=a,c.type=o;let d=Number.isFinite(t.data.size)?t.data.size:null,h={source:t.source||"",id:u,name:a,extension:s||"",meta:{...this.getState().meta,...c},type:o,data:t.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:d,uploadComplete:!1,uploadStarted:null},size:d,isRemote:l,remote:t.remote||"",preview:t.preview},p=this.opts.onBeforeFileAdded(h,e);if(!1===p){let e=new D("Cannot add the file because onBeforeFileAdded returned false.");throw this.emit("restriction-failed",t,e),e}"object"==typeof p&&null!==p&&(h=p);try{let t=Object.keys(e).map(t=>e[t]);O(this,R)[R].validate(h,t)}catch(e){throw O(this,B)[B](e,h),e}return h}function er(){this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout(()=>{this.scheduledAutoProceed=null,this.upload().catch(e=>{e.isRestriction||this.log(e.stack||e.message||e)})},4))}function ei(){let e;let t=(e,t,n)=>{let r=e.message||"Unknown error";e.details&&(r+=` ${e.details}`),this.setState({error:r}),null!=t&&t.id in this.getState().files&&this.setFileState(t.id,{error:r,response:n})};this.on("error",t),this.on("upload-error",(e,n,r)=>{if(t(n,e,r),"object"==typeof n&&n.message){let t=Error(n.message);t.details=n.message,n.details&&(t.details+=` ${n.details}`),t.message=this.i18n("failedToUpload",{file:null==e?void 0:e.name}),O(this,B)[B](t)}else O(this,B)[B](n)}),this.on("upload-stalled",(t,n)=>{let{message:r}=t,i=n.map(e=>e.meta.name).join(", ");e||(this.info({message:r,details:i},"warning",this.opts.infoTimeout),e=setTimeout(()=>{e=null},this.opts.infoTimeout)),this.log(`${r} ${i}`.trim(),"warning")}),this.on("upload",()=>{this.setState({error:null})}),this.on("upload-started",e=>{if(null==e||!this.getFile(e.id)){this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);return}this.setFileState(e.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:e.size}})}),this.on("upload-progress",this.calculateProgress),this.on("upload-success",(e,t)=>{if(null==e||!this.getFile(e.id)){this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);return}let n=this.getFile(e.id).progress;this.setFileState(e.id,{progress:{...n,postprocess:O(this,L)[L].size>0?{mode:"indeterminate"}:null,uploadComplete:!0,percentage:100,bytesUploaded:n.bytesTotal},response:t,uploadURL:t.uploadURL,isPaused:!1}),null==e.size&&this.setFileState(e.id,{size:t.bytesUploaded||n.bytesTotal}),this.calculateTotalProgress()}),this.on("preprocess-progress",(e,t)=>{if(null==e||!this.getFile(e.id)){this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);return}this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,preprocess:t}})}),this.on("preprocess-complete",e=>{if(null==e||!this.getFile(e.id)){this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);return}let t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.preprocess,this.setState({files:t})}),this.on("postprocess-progress",(e,t)=>{if(null==e||!this.getFile(e.id)){this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);return}this.setFileState(e.id,{progress:{...this.getState().files[e.id].progress,postprocess:t}})}),this.on("postprocess-complete",e=>{if(null==e||!this.getFile(e.id)){this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);return}let t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.postprocess,this.setState({files:t})}),this.on("restored",()=>{this.calculateTotalProgress()}),this.on("dashboard:file-edit-complete",e=>{e&&O(this,z)[z](e)}),"undefined"!=typeof window&&window.addEventListener&&(window.addEventListener("online",O(this,W)[W]),window.addEventListener("offline",O(this,W)[W]),setTimeout(O(this,W)[W],3e3))}function eo(e,t){void 0===t&&(t={});let{forceAllowNewUpload:n=!1}=t,{allowNewUpload:r,currentUploads:i}=this.getState();if(!r&&!n)throw Error("Cannot create a new upload: already uploading.");let o=s();return this.emit("upload",{id:o,fileIDs:e}),this.setState({allowNewUpload:!1!==this.opts.allowMultipleUploadBatches&&!1!==this.opts.allowMultipleUploads,currentUploads:{...i,[o]:{fileIDs:e,step:0,result:{}}}}),o}function ea(e){let{currentUploads:t}=this.getState();return t[e]}function es(e){let t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function el(e){let t,{currentUploads:n}=this.getState(),r=n[e],i=r.step||0,o=[...O(this,N)[N],...O(this,I)[I],...O(this,L)[L]];try{for(let t=i;t{let t=this.getFile(e);t&&t.progress.postprocess&&this.emit("postprocess-complete",t)});let t=r.fileIDs.map(e=>this.getFile(e)),i=t.filter(e=>!e.error),o=t.filter(e=>e.error);await this.addResultData(e,{successful:i,failed:o,uploadID:e}),r=(n=this.getState().currentUploads)[e]}return r&&(t=r.result,this.emit("complete",t),O(this,Z)[Z](e)),null==t&&this.log(`Not setting result for an upload that has been removed: ${e}`),t}J.VERSION="3.0.6";var eu=J,ec=n(33847),ed=n(95444),eh=n(87843),ep=n(60587);function ef(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError("attempted to use private field on non-instance");return e}var em=0,eg="__private_"+em+++"_updateUI";class ev extends ep.Z{constructor(){super(...arguments),Object.defineProperty(this,eg,{writable:!0,value:void 0})}getTargetPlugin(e){let t;return"object"==typeof e&&e instanceof ev?t=e:"function"==typeof e&&this.uppy.iteratePlugins(n=>{n instanceof e&&(t=n)}),t}mount(e,t){var n,r;let i=t.id,o=(void 0===n&&(n=document),"string"==typeof e)?n.querySelector(e):(0,ed.Z)(e)?e:null;if(o){let t,n;this.isTargetDOMEl=!0;let a=document.createElement("div");return a.classList.add("uppy-Root"),ef(this,eg)[eg]=(r=e=>{this.uppy.getPlugin(this.id)&&((0,ec.sY)(this.render(e),a),this.afterUpdate())},t=null,n=null,function(){for(var e=arguments.length,i=Array(e),o=0;o(t=null,r(...n)))),t}),this.uppy.log(`Installing ${i} to a DOM element '${e}'`),this.opts.replaceTargetContent&&(o.innerHTML=""),(0,ec.sY)(this.render(this.uppy.getState()),a),this.el=a,o.appendChild(a),a.dir=this.opts.direction||(0,eh.Z)(a)||"ltr",this.onMount(),this.el}let a=this.getTargetPlugin(e);if(a)return this.uppy.log(`Installing ${i} to ${a.id}`),this.parent=a,this.el=a.addTarget(t),this.onMount(),this.el;this.uppy.log(`Not installing ${i}`);let s=`Invalid target option given to ${i}.`;throw"function"==typeof e?s+=" The given target is not a Plugin class. Please check that you're not specifying a React Component instead of a plugin. If you are using @uppy/* packages directly, make sure you have only 1 version of @uppy/core installed: run `npm ls @uppy/core` on the command line and verify that all the versions match and are deduped correctly.":s+="If you meant to target an HTML element, please make sure that the element exists. Check that the