vibe-squire 6.2.0 → 6.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- var UN=Object.defineProperty;var LN=(e,t,a)=>t in e?UN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a;var qN=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Gr=(e,t,a)=>LN(e,typeof t!="symbol"?t+"":t,a);var w2=qN((z2,Kh)=>{function QN(e,t){for(var a=0;a<t.length;a++){const r=t[a];if(typeof r!="string"&&!Array.isArray(r)){for(const u in r)if(u!=="default"&&!(u in e)){const s=Object.getOwnPropertyDescriptor(r,u);s&&Object.defineProperty(e,u,s.get?s:{enumerable:!0,get:()=>r[u]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))r(u);new MutationObserver(u=>{for(const s of u)if(s.type==="childList")for(const c of s.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&r(c)}).observe(document,{childList:!0,subtree:!0});function a(u){const s={};return u.integrity&&(s.integrity=u.integrity),u.referrerPolicy&&(s.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?s.credentials="include":u.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(u){if(u.ep)return;u.ep=!0;const s=a(u);fetch(u.href,s)}})();function H0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Md={exports:{}},Nu={};/**
1
+ var LN=Object.defineProperty;var qN=(e,t,a)=>t in e?LN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a;var QN=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Gr=(e,t,a)=>qN(e,typeof t!="symbol"?t+"":t,a);var x2=QN((j2,Kh)=>{function BN(e,t){for(var a=0;a<t.length;a++){const r=t[a];if(typeof r!="string"&&!Array.isArray(r)){for(const u in r)if(u!=="default"&&!(u in e)){const s=Object.getOwnPropertyDescriptor(r,u);s&&Object.defineProperty(e,u,s.get?s:{enumerable:!0,get:()=>r[u]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))r(u);new MutationObserver(u=>{for(const s of u)if(s.type==="childList")for(const c of s.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&r(c)}).observe(document,{childList:!0,subtree:!0});function a(u){const s={};return u.integrity&&(s.integrity=u.integrity),u.referrerPolicy&&(s.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?s.credentials="include":u.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(u){if(u.ep)return;u.ep=!0;const s=a(u);fetch(u.href,s)}})();function $0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Md={exports:{}},Nu={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.js
4
4
  *
@@ -6,20 +6,20 @@ var UN=Object.defineProperty;var LN=(e,t,a)=>t in e?UN(e,t,{enumerable:!0,config
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var Qg;function BN(){if(Qg)return Nu;Qg=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function a(r,u,s){var c=null;if(s!==void 0&&(c=""+s),u.key!==void 0&&(c=""+u.key),"key"in u){s={};for(var d in u)d!=="key"&&(s[d]=u[d])}else s=u;return u=s.ref,{$$typeof:e,type:r,key:c,ref:u!==void 0?u:null,props:s}}return Nu.Fragment=t,Nu.jsx=a,Nu.jsxs=a,Nu}var Bg;function IN(){return Bg||(Bg=1,Md.exports=BN()),Md.exports}var S=IN(),vh=function(e,t){return vh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,r){a.__proto__=r}||function(a,r){for(var u in r)Object.prototype.hasOwnProperty.call(r,u)&&(a[u]=r[u])},vh(e,t)};function Xn(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");vh(e,t);function a(){this.constructor=e}e.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}var j=function(){return j=Object.assign||function(t){for(var a,r=1,u=arguments.length;r<u;r++){a=arguments[r];for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(t[s]=a[s])}return t},j.apply(this,arguments)};function Sn(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,r=Object.getOwnPropertySymbols(e);u<r.length;u++)t.indexOf(r[u])<0&&Object.prototype.propertyIsEnumerable.call(e,r[u])&&(a[r[u]]=e[r[u]]);return a}function ci(e,t,a,r){function u(s){return s instanceof a?s:new a(function(c){c(s)})}return new(a||(a=Promise))(function(s,c){function d(v){try{m(r.next(v))}catch(y){c(y)}}function p(v){try{m(r.throw(v))}catch(y){c(y)}}function m(v){v.done?s(v.value):u(v.value).then(d,p)}m((r=r.apply(e,t||[])).next())})}function fi(e,t){var a={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,u,s,c=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return c.next=d(0),c.throw=d(1),c.return=d(2),typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function d(m){return function(v){return p([m,v])}}function p(m){if(r)throw new TypeError("Generator is already executing.");for(;c&&(c=0,m[0]&&(a=0)),a;)try{if(r=1,u&&(s=m[0]&2?u.return:m[0]?u.throw||((s=u.return)&&s.call(u),0):u.next)&&!(s=s.call(u,m[1])).done)return s;switch(u=0,s&&(m=[m[0]&2,s.value]),m[0]){case 0:case 1:s=m;break;case 4:return a.label++,{value:m[1],done:!1};case 5:a.label++,u=m[1],m=[0];continue;case 7:m=a.ops.pop(),a.trys.pop();continue;default:if(s=a.trys,!(s=s.length>0&&s[s.length-1])&&(m[0]===6||m[0]===2)){a=0;continue}if(m[0]===3&&(!s||m[1]>s[0]&&m[1]<s[3])){a.label=m[1];break}if(m[0]===6&&a.label<s[1]){a.label=s[1],s=m;break}if(s&&a.label<s[2]){a.label=s[2],a.ops.push(m);break}s[2]&&a.ops.pop(),a.trys.pop();continue}m=t.call(e,a)}catch(v){m=[6,v],u=0}finally{r=s=0}if(m[0]&5)throw m[1];return{value:m[0]?m[1]:void 0,done:!0}}}function Dt(e,t,a){if(a||arguments.length===2)for(var r=0,u=t.length,s;r<u;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}var Fd="Invariant Violation",Ig=Object.setPrototypeOf,ZN=Ig===void 0?function(e,t){return e.__proto__=t,e}:Ig,$0=(function(e){Xn(t,e);function t(a){a===void 0&&(a=Fd);var r=e.call(this,typeof a=="number"?Fd+": "+a+" (see https://github.com/apollographql/invariant-packages)":a)||this;return r.framesToPop=1,r.name=Fd,ZN(r,t.prototype),r}return t})(Error);function Pi(e,t){if(!e)throw new $0(t)}var G0=["debug","log","warn","error","silent"],HN=G0.indexOf("log");function ks(e){return function(){if(G0.indexOf(e)>=HN){var t=console[e]||console.log;return t.apply(console,arguments)}}}(function(e){e.debug=ks("debug"),e.log=ks("log"),e.warn=ks("warn"),e.error=ks("error")})(Pi||(Pi={}));var Wh="3.14.1";function In(e){try{return e()}catch{}}const qs=In(function(){return globalThis})||In(function(){return window})||In(function(){return self})||In(function(){return global})||In(function(){return In.constructor("return this")()});var Zg=new Map;function yh(e){var t=Zg.get(e)||1;return Zg.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}function Y0(e,t){t===void 0&&(t=0);var a=yh("stringifyForDisplay");return JSON.stringify(e,function(r,u){return u===void 0?a:u},t).split(JSON.stringify(a)).join("<undefined>")}function Es(e){return function(t){for(var a=[],r=1;r<arguments.length;r++)a[r-1]=arguments[r];if(typeof t=="number"){var u=t;t=em(u),t||(t=tm(u,a),a=[])}e.apply(void 0,[t].concat(a))}}var ne=Object.assign(function(t,a){for(var r=[],u=2;u<arguments.length;u++)r[u-2]=arguments[u];t||Pi(t,em(a,r)||tm(a,r))},{debug:Es(Pi.debug),log:Es(Pi.log),warn:Es(Pi.warn),error:Es(Pi.error)});function Wt(e){for(var t=[],a=1;a<arguments.length;a++)t[a-1]=arguments[a];return new $0(em(e,t)||tm(e,t))}var Hg=Symbol.for("ApolloErrorMessageHandler_"+Wh);function P0(e){if(typeof e=="string")return e;try{return Y0(e,2).slice(0,1e3)}catch{return"<non-serializable>"}}function em(e,t){if(t===void 0&&(t=[]),!!e)return qs[Hg]&&qs[Hg](e,t.map(P0))}function tm(e,t){if(t===void 0&&(t=[]),!!e)return"An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#".concat(encodeURIComponent(JSON.stringify({version:Wh,message:e,args:t.map(P0)})))}function $N(e,t){if(!!!e)throw new Error(t)}const X0={Name:[],Document:["definitions"],OperationDefinition:["description","name","variableDefinitions","directives","selectionSet"],VariableDefinition:["description","variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["description","name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"],TypeCoordinate:["name"],MemberCoordinate:["name","memberName"],ArgumentCoordinate:["name","fieldName","argumentName"],DirectiveCoordinate:["name"],DirectiveArgumentCoordinate:["name","argumentName"]},GN=new Set(Object.keys(X0));function $g(e){const t=e==null?void 0:e.kind;return typeof t=="string"&&GN.has(t)}var gh;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(gh||(gh={}));var nt;(function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",e.TYPE_COORDINATE="TypeCoordinate",e.MEMBER_COORDINATE="MemberCoordinate",e.ARGUMENT_COORDINATE="ArgumentCoordinate",e.DIRECTIVE_COORDINATE="DirectiveCoordinate",e.DIRECTIVE_ARGUMENT_COORDINATE="DirectiveArgumentCoordinate"})(nt||(nt={}));function Gg(e){return e===9||e===32}function YN(e,t){const a=e.replace(/"""/g,'\\"""'),r=a.split(/\r\n|[\n\r]/g),u=r.length===1,s=r.length>1&&r.slice(1).every(_=>_.length===0||Gg(_.charCodeAt(0))),c=a.endsWith('\\"""'),d=e.endsWith('"')&&!c,p=e.endsWith("\\"),m=d||p,v=!u||e.length>70||m||s||c;let y="";const b=u&&Gg(e.charCodeAt(0));return(v&&!b||s)&&(y+=`
9
+ */var Qg;function IN(){if(Qg)return Nu;Qg=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function a(r,u,s){var c=null;if(s!==void 0&&(c=""+s),u.key!==void 0&&(c=""+u.key),"key"in u){s={};for(var d in u)d!=="key"&&(s[d]=u[d])}else s=u;return u=s.ref,{$$typeof:e,type:r,key:c,ref:u!==void 0?u:null,props:s}}return Nu.Fragment=t,Nu.jsx=a,Nu.jsxs=a,Nu}var Bg;function ZN(){return Bg||(Bg=1,Md.exports=IN()),Md.exports}var S=ZN(),vh=function(e,t){return vh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,r){a.__proto__=r}||function(a,r){for(var u in r)Object.prototype.hasOwnProperty.call(r,u)&&(a[u]=r[u])},vh(e,t)};function Xn(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");vh(e,t);function a(){this.constructor=e}e.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}var j=function(){return j=Object.assign||function(t){for(var a,r=1,u=arguments.length;r<u;r++){a=arguments[r];for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(t[s]=a[s])}return t},j.apply(this,arguments)};function Sn(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,r=Object.getOwnPropertySymbols(e);u<r.length;u++)t.indexOf(r[u])<0&&Object.prototype.propertyIsEnumerable.call(e,r[u])&&(a[r[u]]=e[r[u]]);return a}function ci(e,t,a,r){function u(s){return s instanceof a?s:new a(function(c){c(s)})}return new(a||(a=Promise))(function(s,c){function d(v){try{m(r.next(v))}catch(y){c(y)}}function p(v){try{m(r.throw(v))}catch(y){c(y)}}function m(v){v.done?s(v.value):u(v.value).then(d,p)}m((r=r.apply(e,t||[])).next())})}function fi(e,t){var a={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,u,s,c=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return c.next=d(0),c.throw=d(1),c.return=d(2),typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function d(m){return function(v){return p([m,v])}}function p(m){if(r)throw new TypeError("Generator is already executing.");for(;c&&(c=0,m[0]&&(a=0)),a;)try{if(r=1,u&&(s=m[0]&2?u.return:m[0]?u.throw||((s=u.return)&&s.call(u),0):u.next)&&!(s=s.call(u,m[1])).done)return s;switch(u=0,s&&(m=[m[0]&2,s.value]),m[0]){case 0:case 1:s=m;break;case 4:return a.label++,{value:m[1],done:!1};case 5:a.label++,u=m[1],m=[0];continue;case 7:m=a.ops.pop(),a.trys.pop();continue;default:if(s=a.trys,!(s=s.length>0&&s[s.length-1])&&(m[0]===6||m[0]===2)){a=0;continue}if(m[0]===3&&(!s||m[1]>s[0]&&m[1]<s[3])){a.label=m[1];break}if(m[0]===6&&a.label<s[1]){a.label=s[1],s=m;break}if(s&&a.label<s[2]){a.label=s[2],a.ops.push(m);break}s[2]&&a.ops.pop(),a.trys.pop();continue}m=t.call(e,a)}catch(v){m=[6,v],u=0}finally{r=s=0}if(m[0]&5)throw m[1];return{value:m[0]?m[1]:void 0,done:!0}}}function Dt(e,t,a){if(a||arguments.length===2)for(var r=0,u=t.length,s;r<u;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}var Fd="Invariant Violation",Ig=Object.setPrototypeOf,HN=Ig===void 0?function(e,t){return e.__proto__=t,e}:Ig,G0=(function(e){Xn(t,e);function t(a){a===void 0&&(a=Fd);var r=e.call(this,typeof a=="number"?Fd+": "+a+" (see https://github.com/apollographql/invariant-packages)":a)||this;return r.framesToPop=1,r.name=Fd,HN(r,t.prototype),r}return t})(Error);function Pi(e,t){if(!e)throw new G0(t)}var Y0=["debug","log","warn","error","silent"],$N=Y0.indexOf("log");function ks(e){return function(){if(Y0.indexOf(e)>=$N){var t=console[e]||console.log;return t.apply(console,arguments)}}}(function(e){e.debug=ks("debug"),e.log=ks("log"),e.warn=ks("warn"),e.error=ks("error")})(Pi||(Pi={}));var Wh="3.14.1";function In(e){try{return e()}catch{}}const qs=In(function(){return globalThis})||In(function(){return window})||In(function(){return self})||In(function(){return global})||In(function(){return In.constructor("return this")()});var Zg=new Map;function yh(e){var t=Zg.get(e)||1;return Zg.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}function P0(e,t){t===void 0&&(t=0);var a=yh("stringifyForDisplay");return JSON.stringify(e,function(r,u){return u===void 0?a:u},t).split(JSON.stringify(a)).join("<undefined>")}function Es(e){return function(t){for(var a=[],r=1;r<arguments.length;r++)a[r-1]=arguments[r];if(typeof t=="number"){var u=t;t=em(u),t||(t=tm(u,a),a=[])}e.apply(void 0,[t].concat(a))}}var ne=Object.assign(function(t,a){for(var r=[],u=2;u<arguments.length;u++)r[u-2]=arguments[u];t||Pi(t,em(a,r)||tm(a,r))},{debug:Es(Pi.debug),log:Es(Pi.log),warn:Es(Pi.warn),error:Es(Pi.error)});function Wt(e){for(var t=[],a=1;a<arguments.length;a++)t[a-1]=arguments[a];return new G0(em(e,t)||tm(e,t))}var Hg=Symbol.for("ApolloErrorMessageHandler_"+Wh);function X0(e){if(typeof e=="string")return e;try{return P0(e,2).slice(0,1e3)}catch{return"<non-serializable>"}}function em(e,t){if(t===void 0&&(t=[]),!!e)return qs[Hg]&&qs[Hg](e,t.map(X0))}function tm(e,t){if(t===void 0&&(t=[]),!!e)return"An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#".concat(encodeURIComponent(JSON.stringify({version:Wh,message:e,args:t.map(X0)})))}function GN(e,t){if(!!!e)throw new Error(t)}const J0={Name:[],Document:["definitions"],OperationDefinition:["description","name","variableDefinitions","directives","selectionSet"],VariableDefinition:["description","variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["description","name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"],TypeCoordinate:["name"],MemberCoordinate:["name","memberName"],ArgumentCoordinate:["name","fieldName","argumentName"],DirectiveCoordinate:["name"],DirectiveArgumentCoordinate:["name","argumentName"]},YN=new Set(Object.keys(J0));function $g(e){const t=e==null?void 0:e.kind;return typeof t=="string"&&YN.has(t)}var gh;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(gh||(gh={}));var nt;(function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",e.TYPE_COORDINATE="TypeCoordinate",e.MEMBER_COORDINATE="MemberCoordinate",e.ARGUMENT_COORDINATE="ArgumentCoordinate",e.DIRECTIVE_COORDINATE="DirectiveCoordinate",e.DIRECTIVE_ARGUMENT_COORDINATE="DirectiveArgumentCoordinate"})(nt||(nt={}));function Gg(e){return e===9||e===32}function PN(e,t){const a=e.replace(/"""/g,'\\"""'),r=a.split(/\r\n|[\n\r]/g),u=r.length===1,s=r.length>1&&r.slice(1).every(_=>_.length===0||Gg(_.charCodeAt(0))),c=a.endsWith('\\"""'),d=e.endsWith('"')&&!c,p=e.endsWith("\\"),m=d||p,v=!u||e.length>70||m||s||c;let y="";const b=u&&Gg(e.charCodeAt(0));return(v&&!b||s)&&(y+=`
10
10
  `),y+=a,(v||m)&&(y+=`
11
- `),'"""'+y+'"""'}const PN=10,J0=2;function XN(e){return ec(e,[])}function ec(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return JN(e,t);default:return String(e)}}function JN(e,t){if(e===null)return"null";if(t.includes(e))return"[Circular]";const a=[...t,e];if(KN(e)){const r=e.toJSON();if(r!==e)return typeof r=="string"?r:ec(r,a)}else if(Array.isArray(e))return eT(e,a);return WN(e,a)}function KN(e){return typeof e.toJSON=="function"}function WN(e,t){const a=Object.entries(e);return a.length===0?"{}":t.length>J0?"["+tT(e)+"]":"{ "+a.map(([u,s])=>u+": "+ec(s,t)).join(", ")+" }"}function eT(e,t){if(e.length===0)return"[]";if(t.length>J0)return"[Array]";const a=Math.min(PN,e.length),r=e.length-a,u=[];for(let s=0;s<a;++s)u.push(ec(e[s],t));return r===1?u.push("... 1 more item"):r>1&&u.push(`... ${r} more items`),"["+u.join(", ")+"]"}function tT(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor=="function"){const a=e.constructor.name;if(typeof a=="string"&&a!=="")return a}return t}function nT(e){return`"${e.replace(aT,iT)}"`}const aT=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function iT(e){return rT[e.charCodeAt(0)]}const rT=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"],tc=Object.freeze({});function Yn(e,t,a=X0){const r=new Map;for(const N of Object.values(nt))r.set(N,lT(t,N));let u,s=Array.isArray(e),c=[e],d=-1,p=[],m=e,v,y;const b=[],_=[];do{d++;const N=d===c.length,w=N&&p.length!==0;if(N){if(v=_.length===0?void 0:b[b.length-1],m=y,y=_.pop(),w)if(s){m=m.slice();let M=0;for(const[z,Z]of p){const $=z-M;Z===null?(m.splice($,1),M++):m[$]=Z}}else{m={...m};for(const[M,z]of p)m[M]=z}d=u.index,c=u.keys,p=u.edits,s=u.inArray,u=u.prev}else if(y){if(v=s?d:c[d],m=y[v],m==null)continue;b.push(v)}let O;if(!Array.isArray(m)){var E,T;$g(m)||$N(!1,`Invalid AST Node: ${XN(m)}.`);const M=N?(E=r.get(m.kind))===null||E===void 0?void 0:E.leave:(T=r.get(m.kind))===null||T===void 0?void 0:T.enter;if(O=M==null?void 0:M.call(t,m,v,y,b,_),O===tc)break;if(O===!1){if(!N){b.pop();continue}}else if(O!==void 0&&(p.push([v,O]),!N))if($g(O))m=O;else{b.pop();continue}}if(O===void 0&&w&&p.push([v,m]),N)b.pop();else{var D;u={inArray:s,index:d,keys:c,edits:p,prev:u},s=Array.isArray(m),c=s?m:(D=a[m.kind])!==null&&D!==void 0?D:[],d=-1,p=[],y&&_.push(y),y=m}}while(u!==void 0);return p.length!==0?p[p.length-1][1]:e}function lT(e,t){const a=e[t];return typeof a=="object"?a:typeof a=="function"?{enter:a,leave:void 0}:{enter:e.enter,leave:e.leave}}function uT(e){return Yn(e,sT)}const oT=80,sT={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>de(e.definitions,`
11
+ `),'"""'+y+'"""'}const XN=10,K0=2;function JN(e){return ec(e,[])}function ec(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return KN(e,t);default:return String(e)}}function KN(e,t){if(e===null)return"null";if(t.includes(e))return"[Circular]";const a=[...t,e];if(WN(e)){const r=e.toJSON();if(r!==e)return typeof r=="string"?r:ec(r,a)}else if(Array.isArray(e))return tT(e,a);return eT(e,a)}function WN(e){return typeof e.toJSON=="function"}function eT(e,t){const a=Object.entries(e);return a.length===0?"{}":t.length>K0?"["+nT(e)+"]":"{ "+a.map(([u,s])=>u+": "+ec(s,t)).join(", ")+" }"}function tT(e,t){if(e.length===0)return"[]";if(t.length>K0)return"[Array]";const a=Math.min(XN,e.length),r=e.length-a,u=[];for(let s=0;s<a;++s)u.push(ec(e[s],t));return r===1?u.push("... 1 more item"):r>1&&u.push(`... ${r} more items`),"["+u.join(", ")+"]"}function nT(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor=="function"){const a=e.constructor.name;if(typeof a=="string"&&a!=="")return a}return t}function aT(e){return`"${e.replace(iT,rT)}"`}const iT=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function rT(e){return lT[e.charCodeAt(0)]}const lT=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"],tc=Object.freeze({});function Yn(e,t,a=J0){const r=new Map;for(const N of Object.values(nt))r.set(N,uT(t,N));let u,s=Array.isArray(e),c=[e],d=-1,p=[],m=e,v,y;const b=[],_=[];do{d++;const N=d===c.length,w=N&&p.length!==0;if(N){if(v=_.length===0?void 0:b[b.length-1],m=y,y=_.pop(),w)if(s){m=m.slice();let M=0;for(const[z,Z]of p){const $=z-M;Z===null?(m.splice($,1),M++):m[$]=Z}}else{m={...m};for(const[M,z]of p)m[M]=z}d=u.index,c=u.keys,p=u.edits,s=u.inArray,u=u.prev}else if(y){if(v=s?d:c[d],m=y[v],m==null)continue;b.push(v)}let O;if(!Array.isArray(m)){var E,T;$g(m)||GN(!1,`Invalid AST Node: ${JN(m)}.`);const M=N?(E=r.get(m.kind))===null||E===void 0?void 0:E.leave:(T=r.get(m.kind))===null||T===void 0?void 0:T.enter;if(O=M==null?void 0:M.call(t,m,v,y,b,_),O===tc)break;if(O===!1){if(!N){b.pop();continue}}else if(O!==void 0&&(p.push([v,O]),!N))if($g(O))m=O;else{b.pop();continue}}if(O===void 0&&w&&p.push([v,m]),N)b.pop();else{var D;u={inArray:s,index:d,keys:c,edits:p,prev:u},s=Array.isArray(m),c=s?m:(D=a[m.kind])!==null&&D!==void 0?D:[],d=-1,p=[],y&&_.push(y),y=m}}while(u!==void 0);return p.length!==0?p[p.length-1][1]:e}function uT(e,t){const a=e[t];return typeof a=="object"?a:typeof a=="function"?{enter:a,leave:void 0}:{enter:e.enter,leave:e.leave}}function oT(e){return Yn(e,cT)}const sT=80,cT={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>de(e.definitions,`
12
12
 
13
13
  `)},OperationDefinition:{leave(e){const t=Vd(e.variableDefinitions)?Oe(`(
14
14
  `,de(e.variableDefinitions,`
15
15
  `),`
16
16
  )`):Oe("(",de(e.variableDefinitions,", "),")"),a=Oe("",e.description,`
17
17
  `)+de([e.operation,de([e.name,t]),de(e.directives," ")]," ");return(a==="query"?"":a+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:a,directives:r,description:u})=>Oe("",u,`
18
- `)+e+": "+t+Oe(" = ",a)+Oe(" ",de(r," "))},SelectionSet:{leave:({selections:e})=>Qn(e)},Field:{leave({alias:e,name:t,arguments:a,directives:r,selectionSet:u}){const s=Oe("",e,": ")+t;let c=s+Oe("(",de(a,", "),")");return c.length>oT&&(c=s+Oe(`(
18
+ `)+e+": "+t+Oe(" = ",a)+Oe(" ",de(r," "))},SelectionSet:{leave:({selections:e})=>Qn(e)},Field:{leave({alias:e,name:t,arguments:a,directives:r,selectionSet:u}){const s=Oe("",e,": ")+t;let c=s+Oe("(",de(a,", "),")");return c.length>sT&&(c=s+Oe(`(
19
19
  `,As(de(a,`
20
20
  `)),`
21
21
  )`)),de([c,de(r," "),u]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+Oe(" ",de(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:a})=>de(["...",Oe("on ",e),de(t," "),a]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:a,directives:r,selectionSet:u,description:s})=>Oe("",s,`
22
- `)+`fragment ${e}${Oe("(",de(a,", "),")")} on ${t} ${Oe("",de(r," ")," ")}`+u},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?YN(e):nT(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+de(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+de(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+Oe("(",de(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:a})=>Oe("",e,`
22
+ `)+`fragment ${e}${Oe("(",de(a,", "),")")} on ${t} ${Oe("",de(r," ")," ")}`+u},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?PN(e):aT(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+de(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+de(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+Oe("(",de(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:a})=>Oe("",e,`
23
23
  `)+de(["schema",de(t," "),Qn(a)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:a})=>Oe("",e,`
24
24
  `)+de(["scalar",t,de(a," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:a,directives:r,fields:u})=>Oe("",e,`
25
25
  `)+de(["type",t,Oe("implements ",de(a," & ")),de(r," "),Qn(u)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:a,type:r,directives:u})=>Oe("",e,`
@@ -41,13 +41,13 @@ var UN=Object.defineProperty;var LN=(e,t,a)=>t in e?UN(e,t,{enumerable:!0,config
41
41
  `)),`
42
42
  }`)}function Oe(e,t,a=""){return t!=null&&t!==""?e+t+a:""}function As(e){return Oe(" ",e.replace(/\n/g,`
43
43
  `))}function Vd(e){var t;return(t=e==null?void 0:e.some(a=>a.includes(`
44
- `)))!==null&&t!==void 0?t:!1}function Yg(e){return e.kind===nt.FIELD||e.kind===nt.FRAGMENT_SPREAD||e.kind===nt.INLINE_FRAGMENT}function Ku(e,t){var a=e.directives;return!a||!a.length?!0:dT(a).every(function(r){var u=r.directive,s=r.ifArgument,c=!1;return s.value.kind==="Variable"?(c=t&&t[s.value.name.value],ne(c!==void 0,105,u.name.value)):c=s.value.value,u.name.value==="skip"?!c:c})}function $u(e,t,a){var r=new Set(e),u=r.size;return Yn(t,{Directive:function(s){if(r.delete(s.name.value)&&(!a||!r.size))return tc}}),a?!r.size:r.size<u}function cT(e){return e&&$u(["client","export"],e,!0)}function fT(e){var t=e.name.value;return t==="skip"||t==="include"}function dT(e){var t=[];return e&&e.length&&e.forEach(function(a){if(fT(a)){var r=a.arguments,u=a.name.value;ne(r&&r.length===1,106,u);var s=r[0];ne(s.name&&s.name.value==="if",107,u);var c=s.value;ne(c&&(c.kind==="Variable"||c.kind==="BooleanValue"),108,u),t.push({directive:a,ifArgument:s})}}),t}function hT(e){var t,a,r=(t=e.directives)===null||t===void 0?void 0:t.find(function(s){var c=s.name;return c.value==="unmask"});if(!r)return"mask";var u=(a=r.arguments)===null||a===void 0?void 0:a.find(function(s){var c=s.name;return c.value==="mode"});return globalThis.__DEV__!==!1&&u&&(u.value.kind===nt.VARIABLE?globalThis.__DEV__!==!1&&ne.warn(109):u.value.kind!==nt.STRING?globalThis.__DEV__!==!1&&ne.warn(110):u.value.value!=="migrate"&&globalThis.__DEV__!==!1&&ne.warn(111,u.value.value)),u&&"value"in u.value&&u.value.value==="migrate"?"migrate":"unmask"}const mT=()=>Object.create(null),{forEach:pT,slice:Pg}=Array.prototype,{hasOwnProperty:vT}=Object.prototype;class Va{constructor(t=!0,a=mT){this.weakness=t,this.makeData=a}lookup(){return this.lookupArray(arguments)}lookupArray(t){let a=this;return pT.call(t,r=>a=a.getChildTrie(r)),vT.call(a,"data")?a.data:a.data=this.makeData(Pg.call(t))}peek(){return this.peekArray(arguments)}peekArray(t){let a=this;for(let r=0,u=t.length;a&&r<u;++r){const s=a.mapFor(t[r],!1);a=s&&s.get(t[r])}return a&&a.data}remove(){return this.removeArray(arguments)}removeArray(t){let a;if(t.length){const r=t[0],u=this.mapFor(r,!1),s=u&&u.get(r);s&&(a=s.removeArray(Pg.call(t,1)),!s.data&&!s.weak&&!(s.strong&&s.strong.size)&&u.delete(r))}else a=this.data,delete this.data;return a}getChildTrie(t){const a=this.mapFor(t,!0);let r=a.get(t);return r||a.set(t,r=new Va(this.weakness,this.makeData)),r}mapFor(t,a){return this.weakness&&yT(t)?this.weak||(a?this.weak=new WeakMap:void 0):this.strong||(a?this.strong=new Map:void 0)}}function yT(e){switch(typeof e){case"object":if(e===null)break;case"function":return!0}return!1}var K0=In(function(){return navigator.product})=="ReactNative",ar=typeof WeakMap=="function"&&!(K0&&!global.HermesInternal),nm=typeof WeakSet=="function",am=typeof Symbol=="function"&&typeof Symbol.for=="function",nc=am&&Symbol.asyncIterator,W0=typeof In(function(){return window.document.createElement})=="function",gT=In(function(){return navigator.userAgent.indexOf("jsdom")>=0})||!1,bT=(W0||K0)&&!gT;function ut(e){return e!==null&&typeof e=="object"}function _T(e,t){var a=t,r=[];e.definitions.forEach(function(s){if(s.kind==="OperationDefinition")throw Wt(112,s.operation,s.name?" named '".concat(s.name.value,"'"):"");s.kind==="FragmentDefinition"&&r.push(s)}),typeof a>"u"&&(ne(r.length===1,113,r.length),a=r[0].name.value);var u=j(j({},e),{definitions:Dt([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:a}}]}}],e.definitions,!0)});return u}function yl(e){e===void 0&&(e=[]);var t={};return e.forEach(function(a){t[a.name.value]=a}),t}function ac(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":{var a=e.name.value;if(typeof t=="function")return t(a);var r=t&&t[a];return ne(r,114,a),r||null}default:return null}}function ST(e){var t=!0;return Yn(e,{FragmentSpread:function(a){if(t=!!a.directives&&a.directives.some(function(r){return r.name.value==="unmask"}),!t)return tc}}),t}function kT(){}class bh{constructor(t=1/0,a=kT){this.max=t,this.dispose=a,this.map=new Map,this.newest=null,this.oldest=null}has(t){return this.map.has(t)}get(t){const a=this.getNode(t);return a&&a.value}get size(){return this.map.size}getNode(t){const a=this.map.get(t);if(a&&a!==this.newest){const{older:r,newer:u}=a;u&&(u.older=r),r&&(r.newer=u),a.older=this.newest,a.older.newer=a,a.newer=null,this.newest=a,a===this.oldest&&(this.oldest=u)}return a}set(t,a){let r=this.getNode(t);return r?r.value=a:(r={key:t,value:a,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.map.set(t,r),r.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(t){const a=this.map.get(t);return a?(a===this.newest&&(this.newest=a.older),a===this.oldest&&(this.oldest=a.newer),a.newer&&(a.newer.older=a.older),a.older&&(a.older.newer=a.newer),this.map.delete(t),this.dispose(a.value,t),!0):!1}}function _h(){}const ET=_h,NT=typeof WeakRef<"u"?WeakRef:function(e){return{deref:()=>e}},TT=typeof WeakMap<"u"?WeakMap:Map,OT=typeof FinalizationRegistry<"u"?FinalizationRegistry:function(){return{register:_h,unregister:_h}},wT=10024;class Qs{constructor(t=1/0,a=ET){this.max=t,this.dispose=a,this.map=new TT,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{const r=this.unfinalizedNodes.values();for(let u=0;u<wT;u++){const s=r.next().value;if(!s)break;this.unfinalizedNodes.delete(s);const c=s.key;delete s.key,s.keyRef=new NT(c),this.registry.register(c,s,s)}this.unfinalizedNodes.size>0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new OT(this.deleteNode.bind(this))}has(t){return this.map.has(t)}get(t){const a=this.getNode(t);return a&&a.value}getNode(t){const a=this.map.get(t);if(a&&a!==this.newest){const{older:r,newer:u}=a;u&&(u.older=r),r&&(r.newer=u),a.older=this.newest,a.older.newer=a,a.newer=null,this.newest=a,a===this.oldest&&(this.oldest=u)}return a}set(t,a){let r=this.getNode(t);return r?r.value=a:(r={key:t,value:a,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.scheduleFinalization(r),this.map.set(t,r),this.size++,r.value)}clean(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}deleteNode(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.size--;const a=t.key||t.keyRef&&t.keyRef.deref();this.dispose(t.value,a),t.keyRef?this.registry.unregister(t):this.unfinalizedNodes.delete(t),a&&this.map.delete(a)}delete(t){const a=this.map.get(t);return a?(this.deleteNode(a),!0):!1}scheduleFinalization(t){this.unfinalizedNodes.add(t),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}}var Ud=new WeakSet;function e_(e){e.size<=(e.max||-1)||Ud.has(e)||(Ud.add(e),setTimeout(function(){e.clean(),Ud.delete(e)},100))}var im=function(e,t){var a=new Qs(e,t);return a.set=function(r,u){var s=Qs.prototype.set.call(this,r,u);return e_(this),s},a},DT=function(e,t){var a=new bh(e,t);return a.set=function(r,u){var s=bh.prototype.set.call(this,r,u);return e_(this),s},a},xT=Symbol.for("apollo.cacheSize"),ua=j({},qs[xT]),Gi={};function rm(e,t){Gi[e]=t}var RT=globalThis.__DEV__!==!1?jT:void 0,AT=globalThis.__DEV__!==!1?MT:void 0,zT=globalThis.__DEV__!==!1?t_:void 0;function CT(){var e={parser:1e3,canonicalStringify:1e3,print:2e3,"documentTransform.cache":2e3,"queryManager.getDocumentInfo":2e3,"PersistedQueryLink.persistedQueryHashes":2e3,"fragmentRegistry.transform":2e3,"fragmentRegistry.lookup":1e3,"fragmentRegistry.findFragmentSpreads":4e3,"cache.fragmentQueryDocuments":1e3,"removeTypenameFromVariables.getVariableDefinitions":2e3,"inMemoryCache.maybeBroadcastWatch":5e3,"inMemoryCache.executeSelectionSet":5e4,"inMemoryCache.executeSubSelectedArray":1e4};return Object.fromEntries(Object.entries(e).map(function(t){var a=t[0],r=t[1];return[a,ua[a]||r]}))}function jT(){var e,t,a,r,u;if(globalThis.__DEV__===!1)throw new Error("only supported in development mode");return{limits:CT(),sizes:j({print:(e=Gi.print)===null||e===void 0?void 0:e.call(Gi),parser:(t=Gi.parser)===null||t===void 0?void 0:t.call(Gi),canonicalStringify:(a=Gi.canonicalStringify)===null||a===void 0?void 0:a.call(Gi),links:kh(this.link),queryManager:{getDocumentInfo:this.queryManager.transformCache.size,documentTransforms:a_(this.queryManager.documentTransform)}},(u=(r=this.cache).getMemoryInternals)===null||u===void 0?void 0:u.call(r))}}function t_(){return{cache:{fragmentQueryDocuments:di(this.getFragmentDoc)}}}function MT(){var e=this.config.fragments;return j(j({},t_.apply(this)),{addTypenameDocumentTransform:a_(this.addTypenameTransform),inMemoryCache:{executeSelectionSet:di(this.storeReader.executeSelectionSet),executeSubSelectedArray:di(this.storeReader.executeSubSelectedArray),maybeBroadcastWatch:di(this.maybeBroadcastWatch)},fragmentRegistry:{findFragmentSpreads:di(e==null?void 0:e.findFragmentSpreads),lookup:di(e==null?void 0:e.lookup),transform:di(e==null?void 0:e.transform)}})}function FT(e){return!!e&&"dirtyKey"in e}function di(e){return FT(e)?e.size:void 0}function n_(e){return e!=null}function a_(e){return Sh(e).map(function(t){return{cache:t}})}function Sh(e){return e?Dt(Dt([di(e==null?void 0:e.performWork)],Sh(e==null?void 0:e.left),!0),Sh(e==null?void 0:e.right),!0).filter(n_):[]}function kh(e){var t;return e?Dt(Dt([(t=e==null?void 0:e.getMemoryInternals)===null||t===void 0?void 0:t.call(e)],kh(e==null?void 0:e.left),!0),kh(e==null?void 0:e.right),!0).filter(n_):[]}var vi=Object.assign(function(t){return JSON.stringify(t,VT)},{reset:function(){nl=new DT(ua.canonicalStringify||1e3)}});globalThis.__DEV__!==!1&&rm("canonicalStringify",function(){return nl.size});var nl;vi.reset();function VT(e,t){if(t&&typeof t=="object"){var a=Object.getPrototypeOf(t);if(a===Object.prototype||a===null){var r=Object.keys(t);if(r.every(UT))return t;var u=JSON.stringify(r),s=nl.get(u);if(!s){r.sort();var c=JSON.stringify(r);s=nl.get(c)||r,nl.set(u,s),nl.set(c,s)}var d=Object.create(a);return s.forEach(function(p){d[p]=t[p]}),d}}return t}function UT(e,t,a){return t===0||a[t-1]<=e}function ol(e){return{__ref:String(e)}}function $e(e){return!!(e&&typeof e=="object"&&typeof e.__ref=="string")}function LT(e){return ut(e)&&e.kind==="Document"&&Array.isArray(e.definitions)}function qT(e){return e.kind==="StringValue"}function QT(e){return e.kind==="BooleanValue"}function BT(e){return e.kind==="IntValue"}function IT(e){return e.kind==="FloatValue"}function ZT(e){return e.kind==="Variable"}function HT(e){return e.kind==="ObjectValue"}function $T(e){return e.kind==="ListValue"}function GT(e){return e.kind==="EnumValue"}function YT(e){return e.kind==="NullValue"}function dl(e,t,a,r){if(BT(a)||IT(a))e[t.value]=Number(a.value);else if(QT(a)||qT(a))e[t.value]=a.value;else if(HT(a)){var u={};a.fields.map(function(c){return dl(u,c.name,c.value,r)}),e[t.value]=u}else if(ZT(a)){var s=(r||{})[a.name.value];e[t.value]=s}else if($T(a))e[t.value]=a.values.map(function(c){var d={};return dl(d,t,c,r),d[t.value]});else if(GT(a))e[t.value]=a.value;else if(YT(a))e[t.value]=null;else throw Wt(123,t.value,a.kind)}function PT(e,t){var a=null;e.directives&&(a={},e.directives.forEach(function(u){a[u.name.value]={},u.arguments&&u.arguments.forEach(function(s){var c=s.name,d=s.value;return dl(a[u.name.value],c,d,t)})}));var r=null;return e.arguments&&e.arguments.length&&(r={},e.arguments.forEach(function(u){var s=u.name,c=u.value;return dl(r,s,c,t)})),i_(e.name.value,r,a)}var XT=["connection","include","skip","client","rest","export","nonreactive"],Tu=vi,i_=Object.assign(function(e,t,a){if(t&&a&&a.connection&&a.connection.key)if(a.connection.filter&&a.connection.filter.length>0){var r=a.connection.filter?a.connection.filter:[];r.sort();var u={};return r.forEach(function(d){u[d]=t[d]}),"".concat(a.connection.key,"(").concat(Tu(u),")")}else return a.connection.key;var s=e;if(t){var c=Tu(t);s+="(".concat(c,")")}return a&&Object.keys(a).forEach(function(d){XT.indexOf(d)===-1&&(a[d]&&Object.keys(a[d]).length?s+="@".concat(d,"(").concat(Tu(a[d]),")"):s+="@".concat(d))}),s},{setStringify:function(e){var t=Tu;return Tu=e,t}});function ic(e,t){if(e.arguments&&e.arguments.length){var a={};return e.arguments.forEach(function(r){var u=r.name,s=r.value;return dl(a,u,s,t)}),a}return null}function ja(e){return e.alias?e.alias.value:e.name.value}function Eh(e,t,a){for(var r,u=0,s=t.selections;u<s.length;u++){var c=s[u];if(yi(c)){if(c.name.value==="__typename")return e[ja(c)]}else r?r.push(c):r=[c]}if(typeof e.__typename=="string")return e.__typename;if(r)for(var d=0,p=r;d<p.length;d++){var c=p[d],m=Eh(e,ac(c,a).selectionSet,a);if(typeof m=="string")return m}}function yi(e){return e.kind==="Field"}function JT(e){return e.kind==="InlineFragment"}function gl(e){ne(e&&e.kind==="Document",115);var t=e.definitions.filter(function(a){return a.kind!=="FragmentDefinition"}).map(function(a){if(a.kind!=="OperationDefinition")throw Wt(116,a.kind);return a});return ne(t.length<=1,117,t.length),e}function er(e){return gl(e),e.definitions.filter(function(t){return t.kind==="OperationDefinition"})[0]}function Cu(e){return e.definitions.filter(function(t){return t.kind==="OperationDefinition"&&!!t.name}).map(function(t){return t.name.value})[0]||null}function bl(e){return e.definitions.filter(function(t){return t.kind==="FragmentDefinition"})}function r_(e){var t=er(e);return ne(t&&t.operation==="query",118),t}function l_(e){ne(e.kind==="Document",119),ne(e.definitions.length<=1,120);var t=e.definitions[0];return ne(t.kind==="FragmentDefinition",121),t}function _l(e){gl(e);for(var t,a=0,r=e.definitions;a<r.length;a++){var u=r[a];if(u.kind==="OperationDefinition"){var s=u.operation;if(s==="query"||s==="mutation"||s==="subscription")return u}u.kind==="FragmentDefinition"&&!t&&(t=u)}if(t)return t;throw Wt(122)}function lm(e){var t=Object.create(null),a=e&&e.variableDefinitions;return a&&a.length&&a.forEach(function(r){r.defaultValue&&dl(t,r.variable.name,r.defaultValue)}),t}let It=null;const Xg={};let KT=1;const WT=()=>class{constructor(){this.id=["slot",KT++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let t=It;t;t=t.parent)if(this.id in t.slots){const a=t.slots[this.id];if(a===Xg)break;return t!==It&&(It.slots[this.id]=a),!0}return It&&(It.slots[this.id]=Xg),!1}getValue(){if(this.hasValue())return It.slots[this.id]}withValue(t,a,r,u){const s={__proto__:null,[this.id]:t},c=It;It={parent:c,slots:s};try{return a.apply(u,r)}finally{It=c}}static bind(t){const a=It;return function(){const r=It;try{return It=a,t.apply(this,arguments)}finally{It=r}}}static noContext(t,a,r){if(It){const u=It;try{return It=null,t.apply(r,a)}finally{It=u}}else return t.apply(r,a)}};function Jg(e){try{return e()}catch{}}const Ld="@wry/context:Slot",eO=Jg(()=>globalThis)||Jg(()=>global)||Object.create(null),Kg=eO,Sl=Kg[Ld]||Array[Ld]||(function(e){try{Object.defineProperty(Kg,Ld,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}})(WT()),{bind:R2,noContext:A2}=Sl,rc=new Sl,{hasOwnProperty:tO}=Object.prototype,um=Array.from||function(e){const t=[];return e.forEach(a=>t.push(a)),t};function om(e){const{unsubscribe:t}=e;typeof t=="function"&&(e.unsubscribe=void 0,t())}const Gu=[],nO=100;function hl(e,t){if(!e)throw new Error(t||"assertion failure")}function u_(e,t){const a=e.length;return a>0&&a===t.length&&e[a-1]===t[a-1]}function o_(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}function s_(e){return e.slice(0)}class lc{constructor(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,++lc.count}peek(){if(this.value.length===1&&!gi(this))return Wg(this),this.value[0]}recompute(t){return hl(!this.recomputing,"already recomputing"),Wg(this),gi(this)?aO(this,t):o_(this.value)}setDirty(){this.dirty||(this.dirty=!0,c_(this),om(this))}dispose(){this.setDirty(),p_(this),sm(this,(t,a)=>{t.setDirty(),v_(t,this)})}forget(){this.dispose()}dependOn(t){t.add(this),this.deps||(this.deps=Gu.pop()||new Set),this.deps.add(t)}forgetDeps(){this.deps&&(um(this.deps).forEach(t=>t.delete(this)),this.deps.clear(),Gu.push(this.deps),this.deps=null)}}lc.count=0;function Wg(e){const t=rc.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),gi(e)?d_(t,e):h_(t,e),t}function aO(e,t){return p_(e),rc.withValue(e,iO,[e,t]),lO(e,t)&&rO(e),o_(e.value)}function iO(e,t){e.recomputing=!0;const{normalizeResult:a}=e;let r;a&&e.value.length===1&&(r=s_(e.value)),e.value.length=0;try{if(e.value[0]=e.fn.apply(null,t),a&&r&&!u_(r,e.value))try{e.value[0]=a(e.value[0],r[0])}catch{}}catch(u){e.value[1]=u}e.recomputing=!1}function gi(e){return e.dirty||!!(e.dirtyChildren&&e.dirtyChildren.size)}function rO(e){e.dirty=!1,!gi(e)&&f_(e)}function c_(e){sm(e,d_)}function f_(e){sm(e,h_)}function sm(e,t){const a=e.parents.size;if(a){const r=um(e.parents);for(let u=0;u<a;++u)t(r[u],e)}}function d_(e,t){hl(e.childValues.has(t)),hl(gi(t));const a=!gi(e);if(!e.dirtyChildren)e.dirtyChildren=Gu.pop()||new Set;else if(e.dirtyChildren.has(t))return;e.dirtyChildren.add(t),a&&c_(e)}function h_(e,t){hl(e.childValues.has(t)),hl(!gi(t));const a=e.childValues.get(t);a.length===0?e.childValues.set(t,s_(t.value)):u_(a,t.value)||e.setDirty(),m_(e,t),!gi(e)&&f_(e)}function m_(e,t){const a=e.dirtyChildren;a&&(a.delete(t),a.size===0&&(Gu.length<nO&&Gu.push(a),e.dirtyChildren=null))}function p_(e){e.childValues.size>0&&e.childValues.forEach((t,a)=>{v_(e,a)}),e.forgetDeps(),hl(e.dirtyChildren===null)}function v_(e,t){t.parents.delete(e),e.childValues.delete(t),m_(e,t)}function lO(e,t){if(typeof e.subscribe=="function")try{om(e),e.unsubscribe=e.subscribe.apply(null,t)}catch{return e.setDirty(),!1}return!0}const uO={setDirty:!0,dispose:!0,forget:!0};function y_(e){const t=new Map;function a(r){const u=rc.getValue();if(u){let s=t.get(r);s||t.set(r,s=new Set),u.dependOn(s)}}return a.dirty=function(u,s){const c=t.get(u);if(c){const d=s&&tO.call(uO,s)?s:"setDirty";um(c).forEach(p=>p[d]()),t.delete(u),om(c)}},a}let eb;function oO(...e){return(eb||(eb=new Va(typeof WeakMap=="function"))).lookupArray(e)}const qd=new Set;function Yu(e,{max:t=Math.pow(2,16),keyArgs:a,makeCacheKey:r=oO,normalizeResult:u,subscribe:s,cache:c=bh}=Object.create(null)){const d=typeof c=="function"?new c(t,b=>b.dispose()):c,p=function(){const b=r.apply(null,a?a.apply(null,arguments):arguments);if(b===void 0)return e.apply(null,arguments);let _=d.get(b);_||(d.set(b,_=new lc(e)),_.normalizeResult=u,_.subscribe=s,_.forget=()=>d.delete(b));const E=_.recompute(Array.prototype.slice.call(arguments));return d.set(b,_),qd.add(d),rc.hasValue()||(qd.forEach(T=>T.clean()),qd.clear()),E};Object.defineProperty(p,"size",{get:()=>d.size,configurable:!1,enumerable:!1}),Object.freeze(p.options={max:t,keyArgs:a,makeCacheKey:r,normalizeResult:u,subscribe:s,cache:d});function m(b){const _=b&&d.get(b);_&&_.setDirty()}p.dirtyKey=m,p.dirty=function(){m(r.apply(null,arguments))};function v(b){const _=b&&d.get(b);if(_)return _.peek()}p.peekKey=v,p.peek=function(){return v(r.apply(null,arguments))};function y(b){return b?d.delete(b):!1}return p.forgetKey=y,p.forget=function(){return y(r.apply(null,arguments))},p.makeCacheKey=r,p.getKey=a?function(){return r.apply(null,a.apply(null,arguments))}:r,Object.freeze(p)}function sO(e){return e}var g_=(function(){function e(t,a){a===void 0&&(a=Object.create(null)),this.resultCache=nm?new WeakSet:new Set,this.transform=t,a.getCacheKey&&(this.getCacheKey=a.getCacheKey),this.cached=a.cache!==!1,this.resetCache()}return e.prototype.getCacheKey=function(t){return[t]},e.identity=function(){return new e(sO,{cache:!1})},e.split=function(t,a,r){return r===void 0&&(r=e.identity()),Object.assign(new e(function(u){var s=t(u)?a:r;return s.transformDocument(u)},{cache:!1}),{left:a,right:r})},e.prototype.resetCache=function(){var t=this;if(this.cached){var a=new Va(ar);this.performWork=Yu(e.prototype.performWork.bind(this),{makeCacheKey:function(r){var u=t.getCacheKey(r);if(u)return ne(Array.isArray(u),104),a.lookupArray(u)},max:ua["documentTransform.cache"],cache:Qs})}},e.prototype.performWork=function(t){return gl(t),this.transform(t)},e.prototype.transformDocument=function(t){if(this.resultCache.has(t))return t;var a=this.performWork(t);return this.resultCache.add(a),a},e.prototype.concat=function(t){var a=this;return Object.assign(new e(function(r){return t.transformDocument(a.transformDocument(r))},{cache:!1}),{left:this,right:t})},e})(),Uu,pi=Object.assign(function(e){var t=Uu.get(e);return t||(t=uT(e),Uu.set(e,t)),t},{reset:function(){Uu=new im(ua.print||2e3)}});pi.reset();globalThis.__DEV__!==!1&&rm("print",function(){return Uu?Uu.size:0});var vt=Array.isArray;function Fn(e){return Array.isArray(e)&&e.length>0}var tb={kind:nt.FIELD,name:{kind:nt.NAME,value:"__typename"}};function b_(e,t){return!e||e.selectionSet.selections.every(function(a){return a.kind===nt.FRAGMENT_SPREAD&&b_(t[a.name.value],t)})}function cO(e){return b_(er(e)||l_(e),yl(bl(e)))?null:e}function fO(e){var t=new Map,a=new Map;return e.forEach(function(r){r&&(r.name?t.set(r.name,r):r.test&&a.set(r.test,r))}),function(r){var u=t.get(r.name.value);return!u&&a.size&&a.forEach(function(s,c){c(r)&&(u=s)}),u}}function nb(e){var t=new Map;return function(r){r===void 0&&(r=e);var u=t.get(r);return u||t.set(r,u={variables:new Set,fragmentSpreads:new Set}),u}}function __(e,t){gl(t);for(var a=nb(""),r=nb(""),u=function(N){for(var w=0,O=void 0;w<N.length&&(O=N[w]);++w)if(!vt(O)){if(O.kind===nt.OPERATION_DEFINITION)return a(O.name&&O.name.value);if(O.kind===nt.FRAGMENT_DEFINITION)return r(O.name.value)}return globalThis.__DEV__!==!1&&ne.error(124),null},s=0,c=t.definitions.length-1;c>=0;--c)t.definitions[c].kind===nt.OPERATION_DEFINITION&&++s;var d=fO(e),p=function(N){return Fn(N)&&N.map(d).some(function(w){return w&&w.remove})},m=new Map,v=!1,y={enter:function(N){if(p(N.directives))return v=!0,null}},b=Yn(t,{Field:y,InlineFragment:y,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(N,w,O,M,z){var Z=u(z);Z&&Z.variables.add(N.name.value)}},FragmentSpread:{enter:function(N,w,O,M,z){if(p(N.directives))return v=!0,null;var Z=u(z);Z&&Z.fragmentSpreads.add(N.name.value)}},FragmentDefinition:{enter:function(N,w,O,M){m.set(JSON.stringify(M),N)},leave:function(N,w,O,M){var z=m.get(JSON.stringify(M));if(N===z)return N;if(s>0&&N.selectionSet.selections.every(function(Z){return Z.kind===nt.FIELD&&Z.name.value==="__typename"}))return r(N.name.value).removed=!0,v=!0,null}},Directive:{leave:function(N){if(d(N))return v=!0,null}}});if(!v)return t;var _=function(N){return N.transitiveVars||(N.transitiveVars=new Set(N.variables),N.removed||N.fragmentSpreads.forEach(function(w){_(r(w)).transitiveVars.forEach(function(O){N.transitiveVars.add(O)})})),N},E=new Set;b.definitions.forEach(function(N){N.kind===nt.OPERATION_DEFINITION?_(a(N.name&&N.name.value)).fragmentSpreads.forEach(function(w){E.add(w)}):N.kind===nt.FRAGMENT_DEFINITION&&s===0&&!r(N.name.value).removed&&E.add(N.name.value)}),E.forEach(function(N){_(r(N)).fragmentSpreads.forEach(function(w){E.add(w)})});var T=function(N){return!!(!E.has(N)||r(N).removed)},D={enter:function(N){if(T(N.name.value))return null}};return cO(Yn(b,{FragmentSpread:D,FragmentDefinition:D,OperationDefinition:{leave:function(N){if(N.variableDefinitions){var w=_(a(N.name&&N.name.value)).transitiveVars;if(w.size<N.variableDefinitions.length)return j(j({},N),{variableDefinitions:N.variableDefinitions.filter(function(O){return w.has(O.variable.name.value)})})}}}}))}var cm=Object.assign(function(e){return Yn(e,{SelectionSet:{enter:function(t,a,r){if(!(r&&r.kind===nt.OPERATION_DEFINITION)){var u=t.selections;if(u){var s=u.some(function(d){return yi(d)&&(d.name.value==="__typename"||d.name.value.lastIndexOf("__",0)===0)});if(!s){var c=r;if(!(yi(c)&&c.directives&&c.directives.some(function(d){return d.name.value==="export"})))return j(j({},t),{selections:Dt(Dt([],u,!0),[tb],!1)})}}}}}})},{added:function(e){return e===tb}});function dO(e){var t=_l(e),a=t.operation;if(a==="query")return e;var r=Yn(e,{OperationDefinition:{enter:function(u){return j(j({},u),{operation:"query"})}}});return r}function S_(e){gl(e);var t=__([{test:function(a){return a.name.value==="client"},remove:!0}],e);return t}function hO(e){return gl(e),Yn(e,{FragmentSpread:function(t){var a;if(!(!((a=t.directives)===null||a===void 0)&&a.some(function(r){return r.name.value==="unmask"})))return j(j({},t),{directives:Dt(Dt([],t.directives||[],!0),[{kind:nt.DIRECTIVE,name:{kind:nt.NAME,value:"nonreactive"}}],!1)})}})}var mO=Object.prototype.hasOwnProperty;function Bs(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return uc(e)}function uc(e){var t=e[0]||{},a=e.length;if(a>1)for(var r=new bi,u=1;u<a;++u)t=r.merge(t,e[u]);return t}var pO=function(e,t,a){return this.merge(e[a],t[a])},bi=(function(){function e(t){t===void 0&&(t=pO),this.reconciler=t,this.isObject=ut,this.pastCopies=new Set}return e.prototype.merge=function(t,a){for(var r=this,u=[],s=2;s<arguments.length;s++)u[s-2]=arguments[s];return ut(a)&&ut(t)?(Object.keys(a).forEach(function(c){if(mO.call(t,c)){var d=t[c];if(a[c]!==d){var p=r.reconciler.apply(r,Dt([t,a,c],u,!1));p!==d&&(t=r.shallowCopyForMerge(t),t[c]=p)}}else t=r.shallowCopyForMerge(t),t[c]=a[c]}),t):a},e.prototype.shallowCopyForMerge=function(t){return ut(t)&&(this.pastCopies.has(t)||(Array.isArray(t)?t=t.slice(0):t=j({__proto__:Object.getPrototypeOf(t)},t),this.pastCopies.add(t))),t},e})();function vO(e){return e===void 0&&(e=!1),{keyArgs:e,read:function(t,a){var r=a.canRead,u=a.readField;if(!t)return t;var s=[],c="",d="";t.edges.forEach(function(y){r(u("node",y))&&(s.push(y),y.cursor&&(c=c||y.cursor||"",d=y.cursor||d))}),s.length>1&&c===d&&(c="");var p=t.pageInfo||{},m=p.startCursor,v=p.endCursor;return j(j({},Qd(t)),{edges:s,pageInfo:j(j({},t.pageInfo),{startCursor:m||c,endCursor:v||d})})},merge:function(t,a,r){var u=r.args,s=r.isReference,c=r.readField;if(t||(t=gO()),!a)return t;var d=a.edges?a.edges.map(function(W){return s(W=j({},W))&&(W.cursor=c("cursor",W)),W}):[];if(a.pageInfo){var p=a.pageInfo,m=p.startCursor,v=p.endCursor,y=d[0],b=d[d.length-1];y&&m&&(y.cursor=m),b&&v&&(b.cursor=v);var _=y&&y.cursor;_&&!m&&(a=Bs(a,{pageInfo:{startCursor:_}}));var E=b&&b.cursor;E&&!v&&(a=Bs(a,{pageInfo:{endCursor:E}}))}var T=t.edges,D=[];if(u&&u.after){var N=T.findIndex(function(W){return W.cursor===u.after});N>=0&&(T=T.slice(0,N+1))}else if(u&&u.before){var N=T.findIndex(function(se){return se.cursor===u.before});D=N<0?T:T.slice(N),T=[]}else a.edges&&(T=[]);var w=Dt(Dt(Dt([],T,!0),d,!0),D,!0),O=j(j({},a.pageInfo),t.pageInfo);if(a.pageInfo){var M=a.pageInfo,z=M.hasPreviousPage,Z=M.hasNextPage,m=M.startCursor,v=M.endCursor,$=Sn(M,["hasPreviousPage","hasNextPage","startCursor","endCursor"]);Object.assign(O,$),T.length||(z!==void 0&&(O.hasPreviousPage=z),m!==void 0&&(O.startCursor=m)),D.length||(Z!==void 0&&(O.hasNextPage=Z),v!==void 0&&(O.endCursor=v))}return j(j(j({},Qd(t)),Qd(a)),{edges:w,pageInfo:O})}}}var Qd=function(e){return Sn(e,yO)},yO=["edges","pageInfo"];function gO(){return{edges:[],pageInfo:{hasPreviousPage:!1,hasNextPage:!0,startCursor:"",endCursor:""}}}function bO(e,t){var a=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(a)return(a=a.call(e)).next.bind(a);if(Array.isArray(e)||(a=_O(e))||t){a&&(e=a);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
45
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _O(e,t){if(e){if(typeof e=="string")return ab(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return Array.from(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return ab(e,t)}}function ab(e,t){(t==null||t>e.length)&&(t=e.length);for(var a=0,r=new Array(t);a<t;a++)r[a]=e[a];return r}function ib(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function fm(e,t,a){return t&&ib(e.prototype,t),a&&ib(e,a),Object.defineProperty(e,"prototype",{writable:!1}),e}var dm=function(){return typeof Symbol=="function"},hm=function(e){return dm()&&!!Symbol[e]},mm=function(e){return hm(e)?Symbol[e]:"@@"+e};dm()&&!hm("observable")&&(Symbol.observable=Symbol("observable"));var SO=mm("iterator"),Nh=mm("observable"),k_=mm("species");function Is(e,t){var a=e[t];if(a!=null){if(typeof a!="function")throw new TypeError(a+" is not a function");return a}}function Ou(e){var t=e.constructor;return t!==void 0&&(t=t[k_],t===null&&(t=void 0)),t!==void 0?t:et}function kO(e){return e instanceof et}function ml(e){ml.log?ml.log(e):setTimeout(function(){throw e})}function zs(e){Promise.resolve().then(function(){try{e()}catch(t){ml(t)}})}function E_(e){var t=e._cleanup;if(t!==void 0&&(e._cleanup=void 0,!!t))try{if(typeof t=="function")t();else{var a=Is(t,"unsubscribe");a&&a.call(t)}}catch(r){ml(r)}}function Th(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function EO(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var a=0;a<t.length&&(N_(e,t[a].type,t[a].value),e._state!=="closed");++a);}}function N_(e,t,a){e._state="running";var r=e._observer;try{var u=Is(r,t);switch(t){case"next":u&&u.call(r,a);break;case"error":if(Th(e),u)u.call(r,a);else throw a;break;case"complete":Th(e),u&&u.call(r);break}}catch(s){ml(s)}e._state==="closed"?E_(e):e._state==="running"&&(e._state="ready")}function Bd(e,t,a){if(e._state!=="closed"){if(e._state==="buffering"){e._queue.push({type:t,value:a});return}if(e._state!=="ready"){e._state="buffering",e._queue=[{type:t,value:a}],zs(function(){return EO(e)});return}N_(e,t,a)}}var NO=(function(){function e(a,r){this._cleanup=void 0,this._observer=a,this._queue=void 0,this._state="initializing";var u=new TO(this);try{this._cleanup=r.call(void 0,u)}catch(s){u.error(s)}this._state==="initializing"&&(this._state="ready")}var t=e.prototype;return t.unsubscribe=function(){this._state!=="closed"&&(Th(this),E_(this))},fm(e,[{key:"closed",get:function(){return this._state==="closed"}}]),e})(),TO=(function(){function e(a){this._subscription=a}var t=e.prototype;return t.next=function(r){Bd(this._subscription,"next",r)},t.error=function(r){Bd(this._subscription,"error",r)},t.complete=function(){Bd(this._subscription,"complete")},fm(e,[{key:"closed",get:function(){return this._subscription._state==="closed"}}]),e})(),et=(function(){function e(a){if(!(this instanceof e))throw new TypeError("Observable cannot be called as a function");if(typeof a!="function")throw new TypeError("Observable initializer must be a function");this._subscriber=a}var t=e.prototype;return t.subscribe=function(r){return(typeof r!="object"||r===null)&&(r={next:r,error:arguments[1],complete:arguments[2]}),new NO(r,this._subscriber)},t.forEach=function(r){var u=this;return new Promise(function(s,c){if(typeof r!="function"){c(new TypeError(r+" is not a function"));return}function d(){p.unsubscribe(),s()}var p=u.subscribe({next:function(m){try{r(m,d)}catch(v){c(v),p.unsubscribe()}},error:c,complete:s})})},t.map=function(r){var u=this;if(typeof r!="function")throw new TypeError(r+" is not a function");var s=Ou(this);return new s(function(c){return u.subscribe({next:function(d){try{d=r(d)}catch(p){return c.error(p)}c.next(d)},error:function(d){c.error(d)},complete:function(){c.complete()}})})},t.filter=function(r){var u=this;if(typeof r!="function")throw new TypeError(r+" is not a function");var s=Ou(this);return new s(function(c){return u.subscribe({next:function(d){try{if(!r(d))return}catch(p){return c.error(p)}c.next(d)},error:function(d){c.error(d)},complete:function(){c.complete()}})})},t.reduce=function(r){var u=this;if(typeof r!="function")throw new TypeError(r+" is not a function");var s=Ou(this),c=arguments.length>1,d=!1,p=arguments[1],m=p;return new s(function(v){return u.subscribe({next:function(y){var b=!d;if(d=!0,!b||c)try{m=r(m,y)}catch(_){return v.error(_)}else m=y},error:function(y){v.error(y)},complete:function(){if(!d&&!c)return v.error(new TypeError("Cannot reduce an empty sequence"));v.next(m),v.complete()}})})},t.concat=function(){for(var r=this,u=arguments.length,s=new Array(u),c=0;c<u;c++)s[c]=arguments[c];var d=Ou(this);return new d(function(p){var m,v=0;function y(b){m=b.subscribe({next:function(_){p.next(_)},error:function(_){p.error(_)},complete:function(){v===s.length?(m=void 0,p.complete()):y(d.from(s[v++]))}})}return y(r),function(){m&&(m.unsubscribe(),m=void 0)}})},t.flatMap=function(r){var u=this;if(typeof r!="function")throw new TypeError(r+" is not a function");var s=Ou(this);return new s(function(c){var d=[],p=u.subscribe({next:function(v){if(r)try{v=r(v)}catch(b){return c.error(b)}var y=s.from(v).subscribe({next:function(b){c.next(b)},error:function(b){c.error(b)},complete:function(){var b=d.indexOf(y);b>=0&&d.splice(b,1),m()}});d.push(y)},error:function(v){c.error(v)},complete:function(){m()}});function m(){p.closed&&d.length===0&&c.complete()}return function(){d.forEach(function(v){return v.unsubscribe()}),p.unsubscribe()}})},t[Nh]=function(){return this},e.from=function(r){var u=typeof this=="function"?this:e;if(r==null)throw new TypeError(r+" is not an object");var s=Is(r,Nh);if(s){var c=s.call(r);if(Object(c)!==c)throw new TypeError(c+" is not an object");return kO(c)&&c.constructor===u?c:new u(function(d){return c.subscribe(d)})}if(hm("iterator")&&(s=Is(r,SO),s))return new u(function(d){zs(function(){if(!d.closed){for(var p=bO(s.call(r)),m;!(m=p()).done;){var v=m.value;if(d.next(v),d.closed)return}d.complete()}})});if(Array.isArray(r))return new u(function(d){zs(function(){if(!d.closed){for(var p=0;p<r.length;++p)if(d.next(r[p]),d.closed)return;d.complete()}})});throw new TypeError(r+" is not observable")},e.of=function(){for(var r=arguments.length,u=new Array(r),s=0;s<r;s++)u[s]=arguments[s];var c=typeof this=="function"?this:e;return new c(function(d){zs(function(){if(!d.closed){for(var p=0;p<u.length;++p)if(d.next(u[p]),d.closed)return;d.complete()}})})},fm(e,null,[{key:k_,get:function(){return this}}]),e})();dm()&&Object.defineProperty(et,Symbol("extensions"),{value:{symbol:Nh,hostReportError:ml},configurable:!0});function OO(e){var t,a=e.Symbol;if(typeof a=="function")if(a.observable)t=a.observable;else{typeof a.for=="function"?t=a.for("https://github.com/benlesh/symbol-observable"):t=a("https://github.com/benlesh/symbol-observable");try{a.observable=t}catch{}}else t="@@observable";return t}var Xr;typeof self<"u"?Xr=self:typeof window<"u"?Xr=window:typeof global<"u"?Xr=global:typeof Kh<"u"?Xr=Kh:Xr=Function("return this")();OO(Xr);var rb=et.prototype,lb="@@observable";rb[lb]||(rb[lb]=function(){return this});function wO(e){return e.catch(function(){}),e}var DO=Object.prototype.toString;function T_(e){return Oh(e)}function Oh(e,t){switch(DO.call(e)){case"[object Array]":{if(t=t||new Map,t.has(e))return t.get(e);var a=e.slice(0);return t.set(e,a),a.forEach(function(u,s){a[s]=Oh(u,t)}),a}case"[object Object]":{if(t=t||new Map,t.has(e))return t.get(e);var r=Object.create(Object.getPrototypeOf(e));return t.set(e,r),Object.keys(e).forEach(function(u){r[u]=Oh(e[u],t)}),r}default:return e}}function xO(e){var t=new Set([e]);return t.forEach(function(a){ut(a)&&RO(a)===a&&Object.getOwnPropertyNames(a).forEach(function(r){ut(a[r])&&t.add(a[r])})}),e}function RO(e){if(globalThis.__DEV__!==!1&&!Object.isFrozen(e))try{Object.freeze(e)}catch(t){if(t instanceof TypeError)return null;throw t}return e}function pl(e){return globalThis.__DEV__!==!1&&xO(e),e}function Lu(e,t,a){var r=[];e.forEach(function(u){return u[t]&&r.push(u)}),r.forEach(function(u){return u[t](a)})}function Id(e,t,a){return new et(function(r){var u={then:function(p){return new Promise(function(m){return m(p())})}};function s(p,m){return function(v){if(p){var y=function(){return r.closed?0:p(v)};u=u.then(y,y).then(function(b){return r.next(b)},function(b){return r.error(b)})}else r[m](v)}}var c={next:s(t,"next"),error:s(a,"error"),complete:function(){u.then(function(){return r.complete()})}},d=e.subscribe(c);return function(){return d.unsubscribe()}})}function O_(e){function t(a){Object.defineProperty(e,a,{value:et})}return am&&Symbol.species&&t(Symbol.species),t("@@species"),e}function ub(e){return e&&typeof e.then=="function"}var Jr=(function(e){Xn(t,e);function t(a){var r=e.call(this,function(u){return r.addObserver(u),function(){return r.removeObserver(u)}})||this;return r.observers=new Set,r.promise=new Promise(function(u,s){r.resolve=u,r.reject=s}),r.handlers={next:function(u){r.sub!==null&&(r.latest=["next",u],r.notify("next",u),Lu(r.observers,"next",u))},error:function(u){var s=r.sub;s!==null&&(s&&setTimeout(function(){return s.unsubscribe()}),r.sub=null,r.latest=["error",u],r.reject(u),r.notify("error",u),Lu(r.observers,"error",u))},complete:function(){var u=r,s=u.sub,c=u.sources,d=c===void 0?[]:c;if(s!==null){var p=d.shift();p?ub(p)?p.then(function(m){return r.sub=m.subscribe(r.handlers)},r.handlers.error):r.sub=p.subscribe(r.handlers):(s&&setTimeout(function(){return s.unsubscribe()}),r.sub=null,r.latest&&r.latest[0]==="next"?r.resolve(r.latest[1]):r.resolve(),r.notify("complete"),Lu(r.observers,"complete"))}}},r.nextResultListeners=new Set,r.cancel=function(u){r.reject(u),r.sources=[],r.handlers.error(u)},r.promise.catch(function(u){}),typeof a=="function"&&(a=[new et(a)]),ub(a)?a.then(function(u){return r.start(u)},r.handlers.error):r.start(a),r}return t.prototype.start=function(a){this.sub===void 0&&(this.sources=Array.from(a),this.handlers.complete())},t.prototype.deliverLastMessage=function(a){if(this.latest){var r=this.latest[0],u=a[r];u&&u.call(a,this.latest[1]),this.sub===null&&r==="next"&&a.complete&&a.complete()}},t.prototype.addObserver=function(a){this.observers.has(a)||(this.deliverLastMessage(a),this.observers.add(a))},t.prototype.removeObserver=function(a){this.observers.delete(a)&&this.observers.size<1&&this.handlers.complete()},t.prototype.notify=function(a,r){var u=this.nextResultListeners;u.size&&(this.nextResultListeners=new Set,u.forEach(function(s){return s(a,r)}))},t.prototype.beforeNext=function(a){var r=!1;this.nextResultListeners.add(function(u,s){r||(r=!0,a(u,s))})},t})(et);O_(Jr);function sl(e){return"incremental"in e}function AO(e){return"hasNext"in e&&"data"in e}function zO(e){return sl(e)||AO(e)}function CO(e){return ut(e)&&"payload"in e}function w_(e,t){var a=e,r=new bi;return sl(t)&&Fn(t.incremental)&&t.incremental.forEach(function(u){for(var s=u.data,c=u.path,d=c.length-1;d>=0;--d){var p=c[d],m=!isNaN(+p),v=m?[]:{};v[p]=s,s=v}a=r.merge(a,s)}),a}function Cs(e){var t=wh(e);return Fn(t)}function wh(e){var t=Fn(e.errors)?e.errors.slice(0):[];return sl(e)&&Fn(e.incremental)&&e.incremental.forEach(function(a){a.errors&&t.push.apply(t,a.errors)}),t}function tr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var a=Object.create(null);return e.forEach(function(r){r&&Object.keys(r).forEach(function(u){var s=r[u];s!==void 0&&(a[u]=s)})}),a}function qu(e,t){return tr(e,t,t.variables&&{variables:tr(j(j({},e&&e.variables),t.variables))})}var Zd,jO=Symbol.for("apollo.deprecations"),ob=Symbol.for("apollo.deprecations.slot"),Dh=qs,xh=(Zd=Dh[ob])!==null&&Zd!==void 0?Zd:Dh[ob]=new Sl;function MO(e){return Dh[jO]||(xh.getValue()||[]).includes(e)}function Mt(e){for(var t=[],a=1;a<arguments.length;a++)t[a-1]=arguments[a];return xh.withValue.apply(xh,Dt([Array.isArray(e)?e:[e]],t,!1))}function pt(e,t,a,r){r===void 0&&(r="Please remove this option."),hi(t,function(){t in e&&globalThis.__DEV__!==!1&&ne.warn(103,a,t,r)})}function hi(e,t){MO(e)||t()}function Hd(e){return new et(function(t){t.error(e)})}var D_=function(e,t,a){var r=new Error(a);throw r.name="ServerError",r.response=e,r.statusCode=e.status,r.result=t,r};function FO(e){for(var t=["query","operationName","variables","extensions","context"],a=0,r=Object.keys(e);a<r.length;a++){var u=r[a];if(t.indexOf(u)<0)throw Wt(58,u)}return e}function VO(e,t){var a=j({},e),r=function(s){typeof s=="function"?a=j(j({},a),s(a)):a=j(j({},a),s)},u=function(){return j({},a)};return Object.defineProperty(t,"setContext",{enumerable:!1,value:r}),Object.defineProperty(t,"getContext",{enumerable:!1,value:u}),t}function UO(e){var t={variables:e.variables||{},extensions:e.extensions||{},operationName:e.operationName,query:e.query};return t.operationName||(t.operationName=typeof t.query!="string"?Cu(t.query)||void 0:""),t}function LO(e,t){var a=j({},e),r=new Set(Object.keys(e));return Yn(t,{Variable:function(u,s,c){c&&c.kind!=="VariableDefinition"&&r.delete(u.name.value)}}),r.forEach(function(u){delete a[u]}),a}function sb(e,t){return t?t(e):et.of()}function wu(e){return typeof e=="function"?new ir(e):e}function Ns(e){return e.request.length<=1}var ir=(function(){function e(t){t&&(this.request=t)}return e.empty=function(){return new e(function(){return et.of()})},e.from=function(t){return t.length===0?e.empty():t.map(wu).reduce(function(a,r){return a.concat(r)})},e.split=function(t,a,r){var u=wu(a),s=wu(r||new e(sb)),c;return Ns(u)&&Ns(s)?c=new e(function(d){return t(d)?u.request(d)||et.of():s.request(d)||et.of()}):c=new e(function(d,p){return t(d)?u.request(d,p)||et.of():s.request(d,p)||et.of()}),Object.assign(c,{left:u,right:s})},e.execute=function(t,a){return t.request(VO(a.context,UO(FO(a))))||et.of()},e.concat=function(t,a){var r=wu(t);if(Ns(r))return globalThis.__DEV__!==!1&&ne.warn(47,r),r;var u=wu(a),s;return Ns(u)?s=new e(function(c){return r.request(c,function(d){return u.request(d)||et.of()})||et.of()}):s=new e(function(c,d){return r.request(c,function(p){return u.request(p,d)||et.of()})||et.of()}),Object.assign(s,{left:r,right:u})},e.prototype.split=function(t,a,r){return this.concat(e.split(t,a,r||new e(sb)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(t,a){throw Wt(48)},e.prototype.onError=function(t,a){if(globalThis.__DEV__!==!1&&hi("onError",function(){globalThis.__DEV__!==!1&&ne.warn(49)}),a&&a.error)return a.error(t),!1;throw t},e.prototype.setOnError=function(t){return globalThis.__DEV__!==!1&&globalThis.__DEV__!==!1&&ne.warn(50),this.onError=t,this},e})(),qO=ir.split,Rh=ir.execute;function QO(e){var t,a=e[Symbol.asyncIterator]();return t={next:function(){return a.next()}},t[Symbol.asyncIterator]=function(){return this},t}function BO(e){var t=null,a=null,r=!1,u=[],s=[];function c(y){if(!a){if(s.length){var b=s.shift();if(Array.isArray(b)&&b[0])return b[0]({value:y,done:!1})}u.push(y)}}function d(y){a=y;var b=s.slice();b.forEach(function(_){_[1](y)}),!t||t()}function p(){r=!0;var y=s.slice();y.forEach(function(b){b[0]({value:void 0,done:!0})}),!t||t()}t=function(){t=null,e.removeListener("data",c),e.removeListener("error",d),e.removeListener("end",p),e.removeListener("finish",p),e.removeListener("close",p)},e.on("data",c),e.on("error",d),e.on("end",p),e.on("finish",p),e.on("close",p);function m(){return new Promise(function(y,b){if(a)return b(a);if(u.length)return y({value:u.shift(),done:!1});if(r)return y({value:void 0,done:!0});s.push([y,b])})}var v={next:function(){return m()}};return nc&&(v[Symbol.asyncIterator]=function(){return this}),v}function IO(e){var t=!1,a={next:function(){return t?Promise.resolve({value:void 0,done:!0}):(t=!0,new Promise(function(r,u){e.then(function(s){r({value:s,done:!1})}).catch(u)}))}};return nc&&(a[Symbol.asyncIterator]=function(){return this}),a}function cb(e){var t={next:function(){return e.read()}};return nc&&(t[Symbol.asyncIterator]=function(){return this}),t}function ZO(e){return!!e.body}function HO(e){return!!e.getReader}function $O(e){return!!(nc&&e[Symbol.asyncIterator])}function GO(e){return!!e.stream}function YO(e){return!!e.arrayBuffer}function PO(e){return!!e.pipe}function XO(e){var t=e;if(ZO(e)&&(t=e.body),$O(t))return QO(t);if(HO(t))return cb(t.getReader());if(GO(t))return cb(t.stream().getReader());if(YO(t))return IO(t.arrayBuffer());if(PO(t))return BO(t);throw new Error("Unknown body type for responseIterator. Please pass a streamable response.")}var pm=Symbol();function JO(e){return e.extensions?Array.isArray(e.extensions[pm]):!1}function x_(e){return e.hasOwnProperty("graphQLErrors")}var KO=function(e){var t=Dt(Dt(Dt([],e.graphQLErrors,!0),e.clientErrors,!0),e.protocolErrors,!0);return e.networkError&&t.push(e.networkError),t.map(function(a){return ut(a)&&a.message||"Error message not found."}).join(`
46
- `)},cn=(function(e){Xn(t,e);function t(a){var r=a.graphQLErrors,u=a.protocolErrors,s=a.clientErrors,c=a.networkError,d=a.errorMessage,p=a.extraInfo,m=e.call(this,d)||this;return m.name="ApolloError",m.graphQLErrors=r||[],m.protocolErrors=u||[],m.clientErrors=s||[],m.networkError=c||null,m.message=d||KO(m),m.extraInfo=p,m.cause=Dt(Dt(Dt([c],r||[],!0),u||[],!0),s||[],!0).find(function(v){return!!v})||null,m.__proto__=t.prototype,m}return t})(Error),fb=Object.prototype.hasOwnProperty;function WO(e,t){return ci(this,void 0,void 0,function(){var a,r,u,s,c,d,p,m,v,y,b,_,E,T,D,N,w,O,M,z,Z,$,W,se;return fi(this,function(Ne){switch(Ne.label){case 0:if(TextDecoder===void 0)throw new Error("TextDecoder must be defined in the environment: please import a polyfill.");a=new TextDecoder("utf-8"),r=(se=e.headers)===null||se===void 0?void 0:se.get("content-type"),u="boundary=",s=r!=null&&r.includes(u)?r==null?void 0:r.substring((r==null?void 0:r.indexOf(u))+u.length).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",c=`\r
47
- --`.concat(s),d="",p=XO(e),m=!0,Ne.label=1;case 1:return m?[4,p.next()]:[3,3];case 2:for(v=Ne.sent(),y=v.value,b=v.done,_=typeof y=="string"?y:a.decode(y),E=d.length-c.length+1,m=!b,d+=_,T=d.indexOf(c,E);T>-1;){if(D=void 0,$=[d.slice(0,T),d.slice(T+c.length)],D=$[0],d=$[1],N=D.indexOf(`\r
44
+ `)))!==null&&t!==void 0?t:!1}function Yg(e){return e.kind===nt.FIELD||e.kind===nt.FRAGMENT_SPREAD||e.kind===nt.INLINE_FRAGMENT}function Ku(e,t){var a=e.directives;return!a||!a.length?!0:hT(a).every(function(r){var u=r.directive,s=r.ifArgument,c=!1;return s.value.kind==="Variable"?(c=t&&t[s.value.name.value],ne(c!==void 0,105,u.name.value)):c=s.value.value,u.name.value==="skip"?!c:c})}function $u(e,t,a){var r=new Set(e),u=r.size;return Yn(t,{Directive:function(s){if(r.delete(s.name.value)&&(!a||!r.size))return tc}}),a?!r.size:r.size<u}function fT(e){return e&&$u(["client","export"],e,!0)}function dT(e){var t=e.name.value;return t==="skip"||t==="include"}function hT(e){var t=[];return e&&e.length&&e.forEach(function(a){if(dT(a)){var r=a.arguments,u=a.name.value;ne(r&&r.length===1,106,u);var s=r[0];ne(s.name&&s.name.value==="if",107,u);var c=s.value;ne(c&&(c.kind==="Variable"||c.kind==="BooleanValue"),108,u),t.push({directive:a,ifArgument:s})}}),t}function mT(e){var t,a,r=(t=e.directives)===null||t===void 0?void 0:t.find(function(s){var c=s.name;return c.value==="unmask"});if(!r)return"mask";var u=(a=r.arguments)===null||a===void 0?void 0:a.find(function(s){var c=s.name;return c.value==="mode"});return globalThis.__DEV__!==!1&&u&&(u.value.kind===nt.VARIABLE?globalThis.__DEV__!==!1&&ne.warn(109):u.value.kind!==nt.STRING?globalThis.__DEV__!==!1&&ne.warn(110):u.value.value!=="migrate"&&globalThis.__DEV__!==!1&&ne.warn(111,u.value.value)),u&&"value"in u.value&&u.value.value==="migrate"?"migrate":"unmask"}const pT=()=>Object.create(null),{forEach:vT,slice:Pg}=Array.prototype,{hasOwnProperty:yT}=Object.prototype;class Va{constructor(t=!0,a=pT){this.weakness=t,this.makeData=a}lookup(){return this.lookupArray(arguments)}lookupArray(t){let a=this;return vT.call(t,r=>a=a.getChildTrie(r)),yT.call(a,"data")?a.data:a.data=this.makeData(Pg.call(t))}peek(){return this.peekArray(arguments)}peekArray(t){let a=this;for(let r=0,u=t.length;a&&r<u;++r){const s=a.mapFor(t[r],!1);a=s&&s.get(t[r])}return a&&a.data}remove(){return this.removeArray(arguments)}removeArray(t){let a;if(t.length){const r=t[0],u=this.mapFor(r,!1),s=u&&u.get(r);s&&(a=s.removeArray(Pg.call(t,1)),!s.data&&!s.weak&&!(s.strong&&s.strong.size)&&u.delete(r))}else a=this.data,delete this.data;return a}getChildTrie(t){const a=this.mapFor(t,!0);let r=a.get(t);return r||a.set(t,r=new Va(this.weakness,this.makeData)),r}mapFor(t,a){return this.weakness&&gT(t)?this.weak||(a?this.weak=new WeakMap:void 0):this.strong||(a?this.strong=new Map:void 0)}}function gT(e){switch(typeof e){case"object":if(e===null)break;case"function":return!0}return!1}var W0=In(function(){return navigator.product})=="ReactNative",ar=typeof WeakMap=="function"&&!(W0&&!global.HermesInternal),nm=typeof WeakSet=="function",am=typeof Symbol=="function"&&typeof Symbol.for=="function",nc=am&&Symbol.asyncIterator,e_=typeof In(function(){return window.document.createElement})=="function",bT=In(function(){return navigator.userAgent.indexOf("jsdom")>=0})||!1,_T=(e_||W0)&&!bT;function ut(e){return e!==null&&typeof e=="object"}function ST(e,t){var a=t,r=[];e.definitions.forEach(function(s){if(s.kind==="OperationDefinition")throw Wt(112,s.operation,s.name?" named '".concat(s.name.value,"'"):"");s.kind==="FragmentDefinition"&&r.push(s)}),typeof a>"u"&&(ne(r.length===1,113,r.length),a=r[0].name.value);var u=j(j({},e),{definitions:Dt([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:a}}]}}],e.definitions,!0)});return u}function yl(e){e===void 0&&(e=[]);var t={};return e.forEach(function(a){t[a.name.value]=a}),t}function ac(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":{var a=e.name.value;if(typeof t=="function")return t(a);var r=t&&t[a];return ne(r,114,a),r||null}default:return null}}function kT(e){var t=!0;return Yn(e,{FragmentSpread:function(a){if(t=!!a.directives&&a.directives.some(function(r){return r.name.value==="unmask"}),!t)return tc}}),t}function ET(){}class bh{constructor(t=1/0,a=ET){this.max=t,this.dispose=a,this.map=new Map,this.newest=null,this.oldest=null}has(t){return this.map.has(t)}get(t){const a=this.getNode(t);return a&&a.value}get size(){return this.map.size}getNode(t){const a=this.map.get(t);if(a&&a!==this.newest){const{older:r,newer:u}=a;u&&(u.older=r),r&&(r.newer=u),a.older=this.newest,a.older.newer=a,a.newer=null,this.newest=a,a===this.oldest&&(this.oldest=u)}return a}set(t,a){let r=this.getNode(t);return r?r.value=a:(r={key:t,value:a,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.map.set(t,r),r.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(t){const a=this.map.get(t);return a?(a===this.newest&&(this.newest=a.older),a===this.oldest&&(this.oldest=a.newer),a.newer&&(a.newer.older=a.older),a.older&&(a.older.newer=a.newer),this.map.delete(t),this.dispose(a.value,t),!0):!1}}function _h(){}const NT=_h,TT=typeof WeakRef<"u"?WeakRef:function(e){return{deref:()=>e}},OT=typeof WeakMap<"u"?WeakMap:Map,wT=typeof FinalizationRegistry<"u"?FinalizationRegistry:function(){return{register:_h,unregister:_h}},DT=10024;class Qs{constructor(t=1/0,a=NT){this.max=t,this.dispose=a,this.map=new OT,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{const r=this.unfinalizedNodes.values();for(let u=0;u<DT;u++){const s=r.next().value;if(!s)break;this.unfinalizedNodes.delete(s);const c=s.key;delete s.key,s.keyRef=new TT(c),this.registry.register(c,s,s)}this.unfinalizedNodes.size>0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new wT(this.deleteNode.bind(this))}has(t){return this.map.has(t)}get(t){const a=this.getNode(t);return a&&a.value}getNode(t){const a=this.map.get(t);if(a&&a!==this.newest){const{older:r,newer:u}=a;u&&(u.older=r),r&&(r.newer=u),a.older=this.newest,a.older.newer=a,a.newer=null,this.newest=a,a===this.oldest&&(this.oldest=u)}return a}set(t,a){let r=this.getNode(t);return r?r.value=a:(r={key:t,value:a,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.scheduleFinalization(r),this.map.set(t,r),this.size++,r.value)}clean(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}deleteNode(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.size--;const a=t.key||t.keyRef&&t.keyRef.deref();this.dispose(t.value,a),t.keyRef?this.registry.unregister(t):this.unfinalizedNodes.delete(t),a&&this.map.delete(a)}delete(t){const a=this.map.get(t);return a?(this.deleteNode(a),!0):!1}scheduleFinalization(t){this.unfinalizedNodes.add(t),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}}var Ud=new WeakSet;function t_(e){e.size<=(e.max||-1)||Ud.has(e)||(Ud.add(e),setTimeout(function(){e.clean(),Ud.delete(e)},100))}var im=function(e,t){var a=new Qs(e,t);return a.set=function(r,u){var s=Qs.prototype.set.call(this,r,u);return t_(this),s},a},xT=function(e,t){var a=new bh(e,t);return a.set=function(r,u){var s=bh.prototype.set.call(this,r,u);return t_(this),s},a},RT=Symbol.for("apollo.cacheSize"),ua=j({},qs[RT]),Gi={};function rm(e,t){Gi[e]=t}var AT=globalThis.__DEV__!==!1?MT:void 0,zT=globalThis.__DEV__!==!1?FT:void 0,CT=globalThis.__DEV__!==!1?n_:void 0;function jT(){var e={parser:1e3,canonicalStringify:1e3,print:2e3,"documentTransform.cache":2e3,"queryManager.getDocumentInfo":2e3,"PersistedQueryLink.persistedQueryHashes":2e3,"fragmentRegistry.transform":2e3,"fragmentRegistry.lookup":1e3,"fragmentRegistry.findFragmentSpreads":4e3,"cache.fragmentQueryDocuments":1e3,"removeTypenameFromVariables.getVariableDefinitions":2e3,"inMemoryCache.maybeBroadcastWatch":5e3,"inMemoryCache.executeSelectionSet":5e4,"inMemoryCache.executeSubSelectedArray":1e4};return Object.fromEntries(Object.entries(e).map(function(t){var a=t[0],r=t[1];return[a,ua[a]||r]}))}function MT(){var e,t,a,r,u;if(globalThis.__DEV__===!1)throw new Error("only supported in development mode");return{limits:jT(),sizes:j({print:(e=Gi.print)===null||e===void 0?void 0:e.call(Gi),parser:(t=Gi.parser)===null||t===void 0?void 0:t.call(Gi),canonicalStringify:(a=Gi.canonicalStringify)===null||a===void 0?void 0:a.call(Gi),links:kh(this.link),queryManager:{getDocumentInfo:this.queryManager.transformCache.size,documentTransforms:i_(this.queryManager.documentTransform)}},(u=(r=this.cache).getMemoryInternals)===null||u===void 0?void 0:u.call(r))}}function n_(){return{cache:{fragmentQueryDocuments:di(this.getFragmentDoc)}}}function FT(){var e=this.config.fragments;return j(j({},n_.apply(this)),{addTypenameDocumentTransform:i_(this.addTypenameTransform),inMemoryCache:{executeSelectionSet:di(this.storeReader.executeSelectionSet),executeSubSelectedArray:di(this.storeReader.executeSubSelectedArray),maybeBroadcastWatch:di(this.maybeBroadcastWatch)},fragmentRegistry:{findFragmentSpreads:di(e==null?void 0:e.findFragmentSpreads),lookup:di(e==null?void 0:e.lookup),transform:di(e==null?void 0:e.transform)}})}function VT(e){return!!e&&"dirtyKey"in e}function di(e){return VT(e)?e.size:void 0}function a_(e){return e!=null}function i_(e){return Sh(e).map(function(t){return{cache:t}})}function Sh(e){return e?Dt(Dt([di(e==null?void 0:e.performWork)],Sh(e==null?void 0:e.left),!0),Sh(e==null?void 0:e.right),!0).filter(a_):[]}function kh(e){var t;return e?Dt(Dt([(t=e==null?void 0:e.getMemoryInternals)===null||t===void 0?void 0:t.call(e)],kh(e==null?void 0:e.left),!0),kh(e==null?void 0:e.right),!0).filter(a_):[]}var vi=Object.assign(function(t){return JSON.stringify(t,UT)},{reset:function(){nl=new xT(ua.canonicalStringify||1e3)}});globalThis.__DEV__!==!1&&rm("canonicalStringify",function(){return nl.size});var nl;vi.reset();function UT(e,t){if(t&&typeof t=="object"){var a=Object.getPrototypeOf(t);if(a===Object.prototype||a===null){var r=Object.keys(t);if(r.every(LT))return t;var u=JSON.stringify(r),s=nl.get(u);if(!s){r.sort();var c=JSON.stringify(r);s=nl.get(c)||r,nl.set(u,s),nl.set(c,s)}var d=Object.create(a);return s.forEach(function(p){d[p]=t[p]}),d}}return t}function LT(e,t,a){return t===0||a[t-1]<=e}function ol(e){return{__ref:String(e)}}function $e(e){return!!(e&&typeof e=="object"&&typeof e.__ref=="string")}function qT(e){return ut(e)&&e.kind==="Document"&&Array.isArray(e.definitions)}function QT(e){return e.kind==="StringValue"}function BT(e){return e.kind==="BooleanValue"}function IT(e){return e.kind==="IntValue"}function ZT(e){return e.kind==="FloatValue"}function HT(e){return e.kind==="Variable"}function $T(e){return e.kind==="ObjectValue"}function GT(e){return e.kind==="ListValue"}function YT(e){return e.kind==="EnumValue"}function PT(e){return e.kind==="NullValue"}function dl(e,t,a,r){if(IT(a)||ZT(a))e[t.value]=Number(a.value);else if(BT(a)||QT(a))e[t.value]=a.value;else if($T(a)){var u={};a.fields.map(function(c){return dl(u,c.name,c.value,r)}),e[t.value]=u}else if(HT(a)){var s=(r||{})[a.name.value];e[t.value]=s}else if(GT(a))e[t.value]=a.values.map(function(c){var d={};return dl(d,t,c,r),d[t.value]});else if(YT(a))e[t.value]=a.value;else if(PT(a))e[t.value]=null;else throw Wt(123,t.value,a.kind)}function XT(e,t){var a=null;e.directives&&(a={},e.directives.forEach(function(u){a[u.name.value]={},u.arguments&&u.arguments.forEach(function(s){var c=s.name,d=s.value;return dl(a[u.name.value],c,d,t)})}));var r=null;return e.arguments&&e.arguments.length&&(r={},e.arguments.forEach(function(u){var s=u.name,c=u.value;return dl(r,s,c,t)})),r_(e.name.value,r,a)}var JT=["connection","include","skip","client","rest","export","nonreactive"],Tu=vi,r_=Object.assign(function(e,t,a){if(t&&a&&a.connection&&a.connection.key)if(a.connection.filter&&a.connection.filter.length>0){var r=a.connection.filter?a.connection.filter:[];r.sort();var u={};return r.forEach(function(d){u[d]=t[d]}),"".concat(a.connection.key,"(").concat(Tu(u),")")}else return a.connection.key;var s=e;if(t){var c=Tu(t);s+="(".concat(c,")")}return a&&Object.keys(a).forEach(function(d){JT.indexOf(d)===-1&&(a[d]&&Object.keys(a[d]).length?s+="@".concat(d,"(").concat(Tu(a[d]),")"):s+="@".concat(d))}),s},{setStringify:function(e){var t=Tu;return Tu=e,t}});function ic(e,t){if(e.arguments&&e.arguments.length){var a={};return e.arguments.forEach(function(r){var u=r.name,s=r.value;return dl(a,u,s,t)}),a}return null}function ja(e){return e.alias?e.alias.value:e.name.value}function Eh(e,t,a){for(var r,u=0,s=t.selections;u<s.length;u++){var c=s[u];if(yi(c)){if(c.name.value==="__typename")return e[ja(c)]}else r?r.push(c):r=[c]}if(typeof e.__typename=="string")return e.__typename;if(r)for(var d=0,p=r;d<p.length;d++){var c=p[d],m=Eh(e,ac(c,a).selectionSet,a);if(typeof m=="string")return m}}function yi(e){return e.kind==="Field"}function KT(e){return e.kind==="InlineFragment"}function gl(e){ne(e&&e.kind==="Document",115);var t=e.definitions.filter(function(a){return a.kind!=="FragmentDefinition"}).map(function(a){if(a.kind!=="OperationDefinition")throw Wt(116,a.kind);return a});return ne(t.length<=1,117,t.length),e}function er(e){return gl(e),e.definitions.filter(function(t){return t.kind==="OperationDefinition"})[0]}function Cu(e){return e.definitions.filter(function(t){return t.kind==="OperationDefinition"&&!!t.name}).map(function(t){return t.name.value})[0]||null}function bl(e){return e.definitions.filter(function(t){return t.kind==="FragmentDefinition"})}function l_(e){var t=er(e);return ne(t&&t.operation==="query",118),t}function u_(e){ne(e.kind==="Document",119),ne(e.definitions.length<=1,120);var t=e.definitions[0];return ne(t.kind==="FragmentDefinition",121),t}function _l(e){gl(e);for(var t,a=0,r=e.definitions;a<r.length;a++){var u=r[a];if(u.kind==="OperationDefinition"){var s=u.operation;if(s==="query"||s==="mutation"||s==="subscription")return u}u.kind==="FragmentDefinition"&&!t&&(t=u)}if(t)return t;throw Wt(122)}function lm(e){var t=Object.create(null),a=e&&e.variableDefinitions;return a&&a.length&&a.forEach(function(r){r.defaultValue&&dl(t,r.variable.name,r.defaultValue)}),t}let It=null;const Xg={};let WT=1;const eO=()=>class{constructor(){this.id=["slot",WT++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let t=It;t;t=t.parent)if(this.id in t.slots){const a=t.slots[this.id];if(a===Xg)break;return t!==It&&(It.slots[this.id]=a),!0}return It&&(It.slots[this.id]=Xg),!1}getValue(){if(this.hasValue())return It.slots[this.id]}withValue(t,a,r,u){const s={__proto__:null,[this.id]:t},c=It;It={parent:c,slots:s};try{return a.apply(u,r)}finally{It=c}}static bind(t){const a=It;return function(){const r=It;try{return It=a,t.apply(this,arguments)}finally{It=r}}}static noContext(t,a,r){if(It){const u=It;try{return It=null,t.apply(r,a)}finally{It=u}}else return t.apply(r,a)}};function Jg(e){try{return e()}catch{}}const Ld="@wry/context:Slot",tO=Jg(()=>globalThis)||Jg(()=>global)||Object.create(null),Kg=tO,Sl=Kg[Ld]||Array[Ld]||(function(e){try{Object.defineProperty(Kg,Ld,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}})(eO()),{bind:z2,noContext:C2}=Sl,rc=new Sl,{hasOwnProperty:nO}=Object.prototype,um=Array.from||function(e){const t=[];return e.forEach(a=>t.push(a)),t};function om(e){const{unsubscribe:t}=e;typeof t=="function"&&(e.unsubscribe=void 0,t())}const Gu=[],aO=100;function hl(e,t){if(!e)throw new Error(t||"assertion failure")}function o_(e,t){const a=e.length;return a>0&&a===t.length&&e[a-1]===t[a-1]}function s_(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}function c_(e){return e.slice(0)}class lc{constructor(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,++lc.count}peek(){if(this.value.length===1&&!gi(this))return Wg(this),this.value[0]}recompute(t){return hl(!this.recomputing,"already recomputing"),Wg(this),gi(this)?iO(this,t):s_(this.value)}setDirty(){this.dirty||(this.dirty=!0,f_(this),om(this))}dispose(){this.setDirty(),v_(this),sm(this,(t,a)=>{t.setDirty(),y_(t,this)})}forget(){this.dispose()}dependOn(t){t.add(this),this.deps||(this.deps=Gu.pop()||new Set),this.deps.add(t)}forgetDeps(){this.deps&&(um(this.deps).forEach(t=>t.delete(this)),this.deps.clear(),Gu.push(this.deps),this.deps=null)}}lc.count=0;function Wg(e){const t=rc.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),gi(e)?h_(t,e):m_(t,e),t}function iO(e,t){return v_(e),rc.withValue(e,rO,[e,t]),uO(e,t)&&lO(e),s_(e.value)}function rO(e,t){e.recomputing=!0;const{normalizeResult:a}=e;let r;a&&e.value.length===1&&(r=c_(e.value)),e.value.length=0;try{if(e.value[0]=e.fn.apply(null,t),a&&r&&!o_(r,e.value))try{e.value[0]=a(e.value[0],r[0])}catch{}}catch(u){e.value[1]=u}e.recomputing=!1}function gi(e){return e.dirty||!!(e.dirtyChildren&&e.dirtyChildren.size)}function lO(e){e.dirty=!1,!gi(e)&&d_(e)}function f_(e){sm(e,h_)}function d_(e){sm(e,m_)}function sm(e,t){const a=e.parents.size;if(a){const r=um(e.parents);for(let u=0;u<a;++u)t(r[u],e)}}function h_(e,t){hl(e.childValues.has(t)),hl(gi(t));const a=!gi(e);if(!e.dirtyChildren)e.dirtyChildren=Gu.pop()||new Set;else if(e.dirtyChildren.has(t))return;e.dirtyChildren.add(t),a&&f_(e)}function m_(e,t){hl(e.childValues.has(t)),hl(!gi(t));const a=e.childValues.get(t);a.length===0?e.childValues.set(t,c_(t.value)):o_(a,t.value)||e.setDirty(),p_(e,t),!gi(e)&&d_(e)}function p_(e,t){const a=e.dirtyChildren;a&&(a.delete(t),a.size===0&&(Gu.length<aO&&Gu.push(a),e.dirtyChildren=null))}function v_(e){e.childValues.size>0&&e.childValues.forEach((t,a)=>{y_(e,a)}),e.forgetDeps(),hl(e.dirtyChildren===null)}function y_(e,t){t.parents.delete(e),e.childValues.delete(t),p_(e,t)}function uO(e,t){if(typeof e.subscribe=="function")try{om(e),e.unsubscribe=e.subscribe.apply(null,t)}catch{return e.setDirty(),!1}return!0}const oO={setDirty:!0,dispose:!0,forget:!0};function g_(e){const t=new Map;function a(r){const u=rc.getValue();if(u){let s=t.get(r);s||t.set(r,s=new Set),u.dependOn(s)}}return a.dirty=function(u,s){const c=t.get(u);if(c){const d=s&&nO.call(oO,s)?s:"setDirty";um(c).forEach(p=>p[d]()),t.delete(u),om(c)}},a}let eb;function sO(...e){return(eb||(eb=new Va(typeof WeakMap=="function"))).lookupArray(e)}const qd=new Set;function Yu(e,{max:t=Math.pow(2,16),keyArgs:a,makeCacheKey:r=sO,normalizeResult:u,subscribe:s,cache:c=bh}=Object.create(null)){const d=typeof c=="function"?new c(t,b=>b.dispose()):c,p=function(){const b=r.apply(null,a?a.apply(null,arguments):arguments);if(b===void 0)return e.apply(null,arguments);let _=d.get(b);_||(d.set(b,_=new lc(e)),_.normalizeResult=u,_.subscribe=s,_.forget=()=>d.delete(b));const E=_.recompute(Array.prototype.slice.call(arguments));return d.set(b,_),qd.add(d),rc.hasValue()||(qd.forEach(T=>T.clean()),qd.clear()),E};Object.defineProperty(p,"size",{get:()=>d.size,configurable:!1,enumerable:!1}),Object.freeze(p.options={max:t,keyArgs:a,makeCacheKey:r,normalizeResult:u,subscribe:s,cache:d});function m(b){const _=b&&d.get(b);_&&_.setDirty()}p.dirtyKey=m,p.dirty=function(){m(r.apply(null,arguments))};function v(b){const _=b&&d.get(b);if(_)return _.peek()}p.peekKey=v,p.peek=function(){return v(r.apply(null,arguments))};function y(b){return b?d.delete(b):!1}return p.forgetKey=y,p.forget=function(){return y(r.apply(null,arguments))},p.makeCacheKey=r,p.getKey=a?function(){return r.apply(null,a.apply(null,arguments))}:r,Object.freeze(p)}function cO(e){return e}var b_=(function(){function e(t,a){a===void 0&&(a=Object.create(null)),this.resultCache=nm?new WeakSet:new Set,this.transform=t,a.getCacheKey&&(this.getCacheKey=a.getCacheKey),this.cached=a.cache!==!1,this.resetCache()}return e.prototype.getCacheKey=function(t){return[t]},e.identity=function(){return new e(cO,{cache:!1})},e.split=function(t,a,r){return r===void 0&&(r=e.identity()),Object.assign(new e(function(u){var s=t(u)?a:r;return s.transformDocument(u)},{cache:!1}),{left:a,right:r})},e.prototype.resetCache=function(){var t=this;if(this.cached){var a=new Va(ar);this.performWork=Yu(e.prototype.performWork.bind(this),{makeCacheKey:function(r){var u=t.getCacheKey(r);if(u)return ne(Array.isArray(u),104),a.lookupArray(u)},max:ua["documentTransform.cache"],cache:Qs})}},e.prototype.performWork=function(t){return gl(t),this.transform(t)},e.prototype.transformDocument=function(t){if(this.resultCache.has(t))return t;var a=this.performWork(t);return this.resultCache.add(a),a},e.prototype.concat=function(t){var a=this;return Object.assign(new e(function(r){return t.transformDocument(a.transformDocument(r))},{cache:!1}),{left:this,right:t})},e})(),Uu,pi=Object.assign(function(e){var t=Uu.get(e);return t||(t=oT(e),Uu.set(e,t)),t},{reset:function(){Uu=new im(ua.print||2e3)}});pi.reset();globalThis.__DEV__!==!1&&rm("print",function(){return Uu?Uu.size:0});var vt=Array.isArray;function Fn(e){return Array.isArray(e)&&e.length>0}var tb={kind:nt.FIELD,name:{kind:nt.NAME,value:"__typename"}};function __(e,t){return!e||e.selectionSet.selections.every(function(a){return a.kind===nt.FRAGMENT_SPREAD&&__(t[a.name.value],t)})}function fO(e){return __(er(e)||u_(e),yl(bl(e)))?null:e}function dO(e){var t=new Map,a=new Map;return e.forEach(function(r){r&&(r.name?t.set(r.name,r):r.test&&a.set(r.test,r))}),function(r){var u=t.get(r.name.value);return!u&&a.size&&a.forEach(function(s,c){c(r)&&(u=s)}),u}}function nb(e){var t=new Map;return function(r){r===void 0&&(r=e);var u=t.get(r);return u||t.set(r,u={variables:new Set,fragmentSpreads:new Set}),u}}function S_(e,t){gl(t);for(var a=nb(""),r=nb(""),u=function(N){for(var w=0,O=void 0;w<N.length&&(O=N[w]);++w)if(!vt(O)){if(O.kind===nt.OPERATION_DEFINITION)return a(O.name&&O.name.value);if(O.kind===nt.FRAGMENT_DEFINITION)return r(O.name.value)}return globalThis.__DEV__!==!1&&ne.error(124),null},s=0,c=t.definitions.length-1;c>=0;--c)t.definitions[c].kind===nt.OPERATION_DEFINITION&&++s;var d=dO(e),p=function(N){return Fn(N)&&N.map(d).some(function(w){return w&&w.remove})},m=new Map,v=!1,y={enter:function(N){if(p(N.directives))return v=!0,null}},b=Yn(t,{Field:y,InlineFragment:y,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(N,w,O,M,z){var Z=u(z);Z&&Z.variables.add(N.name.value)}},FragmentSpread:{enter:function(N,w,O,M,z){if(p(N.directives))return v=!0,null;var Z=u(z);Z&&Z.fragmentSpreads.add(N.name.value)}},FragmentDefinition:{enter:function(N,w,O,M){m.set(JSON.stringify(M),N)},leave:function(N,w,O,M){var z=m.get(JSON.stringify(M));if(N===z)return N;if(s>0&&N.selectionSet.selections.every(function(Z){return Z.kind===nt.FIELD&&Z.name.value==="__typename"}))return r(N.name.value).removed=!0,v=!0,null}},Directive:{leave:function(N){if(d(N))return v=!0,null}}});if(!v)return t;var _=function(N){return N.transitiveVars||(N.transitiveVars=new Set(N.variables),N.removed||N.fragmentSpreads.forEach(function(w){_(r(w)).transitiveVars.forEach(function(O){N.transitiveVars.add(O)})})),N},E=new Set;b.definitions.forEach(function(N){N.kind===nt.OPERATION_DEFINITION?_(a(N.name&&N.name.value)).fragmentSpreads.forEach(function(w){E.add(w)}):N.kind===nt.FRAGMENT_DEFINITION&&s===0&&!r(N.name.value).removed&&E.add(N.name.value)}),E.forEach(function(N){_(r(N)).fragmentSpreads.forEach(function(w){E.add(w)})});var T=function(N){return!!(!E.has(N)||r(N).removed)},D={enter:function(N){if(T(N.name.value))return null}};return fO(Yn(b,{FragmentSpread:D,FragmentDefinition:D,OperationDefinition:{leave:function(N){if(N.variableDefinitions){var w=_(a(N.name&&N.name.value)).transitiveVars;if(w.size<N.variableDefinitions.length)return j(j({},N),{variableDefinitions:N.variableDefinitions.filter(function(O){return w.has(O.variable.name.value)})})}}}}))}var cm=Object.assign(function(e){return Yn(e,{SelectionSet:{enter:function(t,a,r){if(!(r&&r.kind===nt.OPERATION_DEFINITION)){var u=t.selections;if(u){var s=u.some(function(d){return yi(d)&&(d.name.value==="__typename"||d.name.value.lastIndexOf("__",0)===0)});if(!s){var c=r;if(!(yi(c)&&c.directives&&c.directives.some(function(d){return d.name.value==="export"})))return j(j({},t),{selections:Dt(Dt([],u,!0),[tb],!1)})}}}}}})},{added:function(e){return e===tb}});function hO(e){var t=_l(e),a=t.operation;if(a==="query")return e;var r=Yn(e,{OperationDefinition:{enter:function(u){return j(j({},u),{operation:"query"})}}});return r}function k_(e){gl(e);var t=S_([{test:function(a){return a.name.value==="client"},remove:!0}],e);return t}function mO(e){return gl(e),Yn(e,{FragmentSpread:function(t){var a;if(!(!((a=t.directives)===null||a===void 0)&&a.some(function(r){return r.name.value==="unmask"})))return j(j({},t),{directives:Dt(Dt([],t.directives||[],!0),[{kind:nt.DIRECTIVE,name:{kind:nt.NAME,value:"nonreactive"}}],!1)})}})}var pO=Object.prototype.hasOwnProperty;function Bs(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return uc(e)}function uc(e){var t=e[0]||{},a=e.length;if(a>1)for(var r=new bi,u=1;u<a;++u)t=r.merge(t,e[u]);return t}var vO=function(e,t,a){return this.merge(e[a],t[a])},bi=(function(){function e(t){t===void 0&&(t=vO),this.reconciler=t,this.isObject=ut,this.pastCopies=new Set}return e.prototype.merge=function(t,a){for(var r=this,u=[],s=2;s<arguments.length;s++)u[s-2]=arguments[s];return ut(a)&&ut(t)?(Object.keys(a).forEach(function(c){if(pO.call(t,c)){var d=t[c];if(a[c]!==d){var p=r.reconciler.apply(r,Dt([t,a,c],u,!1));p!==d&&(t=r.shallowCopyForMerge(t),t[c]=p)}}else t=r.shallowCopyForMerge(t),t[c]=a[c]}),t):a},e.prototype.shallowCopyForMerge=function(t){return ut(t)&&(this.pastCopies.has(t)||(Array.isArray(t)?t=t.slice(0):t=j({__proto__:Object.getPrototypeOf(t)},t),this.pastCopies.add(t))),t},e})();function yO(e){return e===void 0&&(e=!1),{keyArgs:e,read:function(t,a){var r=a.canRead,u=a.readField;if(!t)return t;var s=[],c="",d="";t.edges.forEach(function(y){r(u("node",y))&&(s.push(y),y.cursor&&(c=c||y.cursor||"",d=y.cursor||d))}),s.length>1&&c===d&&(c="");var p=t.pageInfo||{},m=p.startCursor,v=p.endCursor;return j(j({},Qd(t)),{edges:s,pageInfo:j(j({},t.pageInfo),{startCursor:m||c,endCursor:v||d})})},merge:function(t,a,r){var u=r.args,s=r.isReference,c=r.readField;if(t||(t=bO()),!a)return t;var d=a.edges?a.edges.map(function(W){return s(W=j({},W))&&(W.cursor=c("cursor",W)),W}):[];if(a.pageInfo){var p=a.pageInfo,m=p.startCursor,v=p.endCursor,y=d[0],b=d[d.length-1];y&&m&&(y.cursor=m),b&&v&&(b.cursor=v);var _=y&&y.cursor;_&&!m&&(a=Bs(a,{pageInfo:{startCursor:_}}));var E=b&&b.cursor;E&&!v&&(a=Bs(a,{pageInfo:{endCursor:E}}))}var T=t.edges,D=[];if(u&&u.after){var N=T.findIndex(function(W){return W.cursor===u.after});N>=0&&(T=T.slice(0,N+1))}else if(u&&u.before){var N=T.findIndex(function(se){return se.cursor===u.before});D=N<0?T:T.slice(N),T=[]}else a.edges&&(T=[]);var w=Dt(Dt(Dt([],T,!0),d,!0),D,!0),O=j(j({},a.pageInfo),t.pageInfo);if(a.pageInfo){var M=a.pageInfo,z=M.hasPreviousPage,Z=M.hasNextPage,m=M.startCursor,v=M.endCursor,$=Sn(M,["hasPreviousPage","hasNextPage","startCursor","endCursor"]);Object.assign(O,$),T.length||(z!==void 0&&(O.hasPreviousPage=z),m!==void 0&&(O.startCursor=m)),D.length||(Z!==void 0&&(O.hasNextPage=Z),v!==void 0&&(O.endCursor=v))}return j(j(j({},Qd(t)),Qd(a)),{edges:w,pageInfo:O})}}}var Qd=function(e){return Sn(e,gO)},gO=["edges","pageInfo"];function bO(){return{edges:[],pageInfo:{hasPreviousPage:!1,hasNextPage:!0,startCursor:"",endCursor:""}}}function _O(e,t){var a=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(a)return(a=a.call(e)).next.bind(a);if(Array.isArray(e)||(a=SO(e))||t){a&&(e=a);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
45
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function SO(e,t){if(e){if(typeof e=="string")return ab(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return Array.from(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return ab(e,t)}}function ab(e,t){(t==null||t>e.length)&&(t=e.length);for(var a=0,r=new Array(t);a<t;a++)r[a]=e[a];return r}function ib(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function fm(e,t,a){return t&&ib(e.prototype,t),a&&ib(e,a),Object.defineProperty(e,"prototype",{writable:!1}),e}var dm=function(){return typeof Symbol=="function"},hm=function(e){return dm()&&!!Symbol[e]},mm=function(e){return hm(e)?Symbol[e]:"@@"+e};dm()&&!hm("observable")&&(Symbol.observable=Symbol("observable"));var kO=mm("iterator"),Nh=mm("observable"),E_=mm("species");function Is(e,t){var a=e[t];if(a!=null){if(typeof a!="function")throw new TypeError(a+" is not a function");return a}}function Ou(e){var t=e.constructor;return t!==void 0&&(t=t[E_],t===null&&(t=void 0)),t!==void 0?t:et}function EO(e){return e instanceof et}function ml(e){ml.log?ml.log(e):setTimeout(function(){throw e})}function zs(e){Promise.resolve().then(function(){try{e()}catch(t){ml(t)}})}function N_(e){var t=e._cleanup;if(t!==void 0&&(e._cleanup=void 0,!!t))try{if(typeof t=="function")t();else{var a=Is(t,"unsubscribe");a&&a.call(t)}}catch(r){ml(r)}}function Th(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function NO(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var a=0;a<t.length&&(T_(e,t[a].type,t[a].value),e._state!=="closed");++a);}}function T_(e,t,a){e._state="running";var r=e._observer;try{var u=Is(r,t);switch(t){case"next":u&&u.call(r,a);break;case"error":if(Th(e),u)u.call(r,a);else throw a;break;case"complete":Th(e),u&&u.call(r);break}}catch(s){ml(s)}e._state==="closed"?N_(e):e._state==="running"&&(e._state="ready")}function Bd(e,t,a){if(e._state!=="closed"){if(e._state==="buffering"){e._queue.push({type:t,value:a});return}if(e._state!=="ready"){e._state="buffering",e._queue=[{type:t,value:a}],zs(function(){return NO(e)});return}T_(e,t,a)}}var TO=(function(){function e(a,r){this._cleanup=void 0,this._observer=a,this._queue=void 0,this._state="initializing";var u=new OO(this);try{this._cleanup=r.call(void 0,u)}catch(s){u.error(s)}this._state==="initializing"&&(this._state="ready")}var t=e.prototype;return t.unsubscribe=function(){this._state!=="closed"&&(Th(this),N_(this))},fm(e,[{key:"closed",get:function(){return this._state==="closed"}}]),e})(),OO=(function(){function e(a){this._subscription=a}var t=e.prototype;return t.next=function(r){Bd(this._subscription,"next",r)},t.error=function(r){Bd(this._subscription,"error",r)},t.complete=function(){Bd(this._subscription,"complete")},fm(e,[{key:"closed",get:function(){return this._subscription._state==="closed"}}]),e})(),et=(function(){function e(a){if(!(this instanceof e))throw new TypeError("Observable cannot be called as a function");if(typeof a!="function")throw new TypeError("Observable initializer must be a function");this._subscriber=a}var t=e.prototype;return t.subscribe=function(r){return(typeof r!="object"||r===null)&&(r={next:r,error:arguments[1],complete:arguments[2]}),new TO(r,this._subscriber)},t.forEach=function(r){var u=this;return new Promise(function(s,c){if(typeof r!="function"){c(new TypeError(r+" is not a function"));return}function d(){p.unsubscribe(),s()}var p=u.subscribe({next:function(m){try{r(m,d)}catch(v){c(v),p.unsubscribe()}},error:c,complete:s})})},t.map=function(r){var u=this;if(typeof r!="function")throw new TypeError(r+" is not a function");var s=Ou(this);return new s(function(c){return u.subscribe({next:function(d){try{d=r(d)}catch(p){return c.error(p)}c.next(d)},error:function(d){c.error(d)},complete:function(){c.complete()}})})},t.filter=function(r){var u=this;if(typeof r!="function")throw new TypeError(r+" is not a function");var s=Ou(this);return new s(function(c){return u.subscribe({next:function(d){try{if(!r(d))return}catch(p){return c.error(p)}c.next(d)},error:function(d){c.error(d)},complete:function(){c.complete()}})})},t.reduce=function(r){var u=this;if(typeof r!="function")throw new TypeError(r+" is not a function");var s=Ou(this),c=arguments.length>1,d=!1,p=arguments[1],m=p;return new s(function(v){return u.subscribe({next:function(y){var b=!d;if(d=!0,!b||c)try{m=r(m,y)}catch(_){return v.error(_)}else m=y},error:function(y){v.error(y)},complete:function(){if(!d&&!c)return v.error(new TypeError("Cannot reduce an empty sequence"));v.next(m),v.complete()}})})},t.concat=function(){for(var r=this,u=arguments.length,s=new Array(u),c=0;c<u;c++)s[c]=arguments[c];var d=Ou(this);return new d(function(p){var m,v=0;function y(b){m=b.subscribe({next:function(_){p.next(_)},error:function(_){p.error(_)},complete:function(){v===s.length?(m=void 0,p.complete()):y(d.from(s[v++]))}})}return y(r),function(){m&&(m.unsubscribe(),m=void 0)}})},t.flatMap=function(r){var u=this;if(typeof r!="function")throw new TypeError(r+" is not a function");var s=Ou(this);return new s(function(c){var d=[],p=u.subscribe({next:function(v){if(r)try{v=r(v)}catch(b){return c.error(b)}var y=s.from(v).subscribe({next:function(b){c.next(b)},error:function(b){c.error(b)},complete:function(){var b=d.indexOf(y);b>=0&&d.splice(b,1),m()}});d.push(y)},error:function(v){c.error(v)},complete:function(){m()}});function m(){p.closed&&d.length===0&&c.complete()}return function(){d.forEach(function(v){return v.unsubscribe()}),p.unsubscribe()}})},t[Nh]=function(){return this},e.from=function(r){var u=typeof this=="function"?this:e;if(r==null)throw new TypeError(r+" is not an object");var s=Is(r,Nh);if(s){var c=s.call(r);if(Object(c)!==c)throw new TypeError(c+" is not an object");return EO(c)&&c.constructor===u?c:new u(function(d){return c.subscribe(d)})}if(hm("iterator")&&(s=Is(r,kO),s))return new u(function(d){zs(function(){if(!d.closed){for(var p=_O(s.call(r)),m;!(m=p()).done;){var v=m.value;if(d.next(v),d.closed)return}d.complete()}})});if(Array.isArray(r))return new u(function(d){zs(function(){if(!d.closed){for(var p=0;p<r.length;++p)if(d.next(r[p]),d.closed)return;d.complete()}})});throw new TypeError(r+" is not observable")},e.of=function(){for(var r=arguments.length,u=new Array(r),s=0;s<r;s++)u[s]=arguments[s];var c=typeof this=="function"?this:e;return new c(function(d){zs(function(){if(!d.closed){for(var p=0;p<u.length;++p)if(d.next(u[p]),d.closed)return;d.complete()}})})},fm(e,null,[{key:E_,get:function(){return this}}]),e})();dm()&&Object.defineProperty(et,Symbol("extensions"),{value:{symbol:Nh,hostReportError:ml},configurable:!0});function wO(e){var t,a=e.Symbol;if(typeof a=="function")if(a.observable)t=a.observable;else{typeof a.for=="function"?t=a.for("https://github.com/benlesh/symbol-observable"):t=a("https://github.com/benlesh/symbol-observable");try{a.observable=t}catch{}}else t="@@observable";return t}var Xr;typeof self<"u"?Xr=self:typeof window<"u"?Xr=window:typeof global<"u"?Xr=global:typeof Kh<"u"?Xr=Kh:Xr=Function("return this")();wO(Xr);var rb=et.prototype,lb="@@observable";rb[lb]||(rb[lb]=function(){return this});function DO(e){return e.catch(function(){}),e}var xO=Object.prototype.toString;function O_(e){return Oh(e)}function Oh(e,t){switch(xO.call(e)){case"[object Array]":{if(t=t||new Map,t.has(e))return t.get(e);var a=e.slice(0);return t.set(e,a),a.forEach(function(u,s){a[s]=Oh(u,t)}),a}case"[object Object]":{if(t=t||new Map,t.has(e))return t.get(e);var r=Object.create(Object.getPrototypeOf(e));return t.set(e,r),Object.keys(e).forEach(function(u){r[u]=Oh(e[u],t)}),r}default:return e}}function RO(e){var t=new Set([e]);return t.forEach(function(a){ut(a)&&AO(a)===a&&Object.getOwnPropertyNames(a).forEach(function(r){ut(a[r])&&t.add(a[r])})}),e}function AO(e){if(globalThis.__DEV__!==!1&&!Object.isFrozen(e))try{Object.freeze(e)}catch(t){if(t instanceof TypeError)return null;throw t}return e}function pl(e){return globalThis.__DEV__!==!1&&RO(e),e}function Lu(e,t,a){var r=[];e.forEach(function(u){return u[t]&&r.push(u)}),r.forEach(function(u){return u[t](a)})}function Id(e,t,a){return new et(function(r){var u={then:function(p){return new Promise(function(m){return m(p())})}};function s(p,m){return function(v){if(p){var y=function(){return r.closed?0:p(v)};u=u.then(y,y).then(function(b){return r.next(b)},function(b){return r.error(b)})}else r[m](v)}}var c={next:s(t,"next"),error:s(a,"error"),complete:function(){u.then(function(){return r.complete()})}},d=e.subscribe(c);return function(){return d.unsubscribe()}})}function w_(e){function t(a){Object.defineProperty(e,a,{value:et})}return am&&Symbol.species&&t(Symbol.species),t("@@species"),e}function ub(e){return e&&typeof e.then=="function"}var Jr=(function(e){Xn(t,e);function t(a){var r=e.call(this,function(u){return r.addObserver(u),function(){return r.removeObserver(u)}})||this;return r.observers=new Set,r.promise=new Promise(function(u,s){r.resolve=u,r.reject=s}),r.handlers={next:function(u){r.sub!==null&&(r.latest=["next",u],r.notify("next",u),Lu(r.observers,"next",u))},error:function(u){var s=r.sub;s!==null&&(s&&setTimeout(function(){return s.unsubscribe()}),r.sub=null,r.latest=["error",u],r.reject(u),r.notify("error",u),Lu(r.observers,"error",u))},complete:function(){var u=r,s=u.sub,c=u.sources,d=c===void 0?[]:c;if(s!==null){var p=d.shift();p?ub(p)?p.then(function(m){return r.sub=m.subscribe(r.handlers)},r.handlers.error):r.sub=p.subscribe(r.handlers):(s&&setTimeout(function(){return s.unsubscribe()}),r.sub=null,r.latest&&r.latest[0]==="next"?r.resolve(r.latest[1]):r.resolve(),r.notify("complete"),Lu(r.observers,"complete"))}}},r.nextResultListeners=new Set,r.cancel=function(u){r.reject(u),r.sources=[],r.handlers.error(u)},r.promise.catch(function(u){}),typeof a=="function"&&(a=[new et(a)]),ub(a)?a.then(function(u){return r.start(u)},r.handlers.error):r.start(a),r}return t.prototype.start=function(a){this.sub===void 0&&(this.sources=Array.from(a),this.handlers.complete())},t.prototype.deliverLastMessage=function(a){if(this.latest){var r=this.latest[0],u=a[r];u&&u.call(a,this.latest[1]),this.sub===null&&r==="next"&&a.complete&&a.complete()}},t.prototype.addObserver=function(a){this.observers.has(a)||(this.deliverLastMessage(a),this.observers.add(a))},t.prototype.removeObserver=function(a){this.observers.delete(a)&&this.observers.size<1&&this.handlers.complete()},t.prototype.notify=function(a,r){var u=this.nextResultListeners;u.size&&(this.nextResultListeners=new Set,u.forEach(function(s){return s(a,r)}))},t.prototype.beforeNext=function(a){var r=!1;this.nextResultListeners.add(function(u,s){r||(r=!0,a(u,s))})},t})(et);w_(Jr);function sl(e){return"incremental"in e}function zO(e){return"hasNext"in e&&"data"in e}function CO(e){return sl(e)||zO(e)}function jO(e){return ut(e)&&"payload"in e}function D_(e,t){var a=e,r=new bi;return sl(t)&&Fn(t.incremental)&&t.incremental.forEach(function(u){for(var s=u.data,c=u.path,d=c.length-1;d>=0;--d){var p=c[d],m=!isNaN(+p),v=m?[]:{};v[p]=s,s=v}a=r.merge(a,s)}),a}function Cs(e){var t=wh(e);return Fn(t)}function wh(e){var t=Fn(e.errors)?e.errors.slice(0):[];return sl(e)&&Fn(e.incremental)&&e.incremental.forEach(function(a){a.errors&&t.push.apply(t,a.errors)}),t}function tr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var a=Object.create(null);return e.forEach(function(r){r&&Object.keys(r).forEach(function(u){var s=r[u];s!==void 0&&(a[u]=s)})}),a}function qu(e,t){return tr(e,t,t.variables&&{variables:tr(j(j({},e&&e.variables),t.variables))})}var Zd,MO=Symbol.for("apollo.deprecations"),ob=Symbol.for("apollo.deprecations.slot"),Dh=qs,xh=(Zd=Dh[ob])!==null&&Zd!==void 0?Zd:Dh[ob]=new Sl;function FO(e){return Dh[MO]||(xh.getValue()||[]).includes(e)}function Mt(e){for(var t=[],a=1;a<arguments.length;a++)t[a-1]=arguments[a];return xh.withValue.apply(xh,Dt([Array.isArray(e)?e:[e]],t,!1))}function pt(e,t,a,r){r===void 0&&(r="Please remove this option."),hi(t,function(){t in e&&globalThis.__DEV__!==!1&&ne.warn(103,a,t,r)})}function hi(e,t){FO(e)||t()}function Hd(e){return new et(function(t){t.error(e)})}var x_=function(e,t,a){var r=new Error(a);throw r.name="ServerError",r.response=e,r.statusCode=e.status,r.result=t,r};function VO(e){for(var t=["query","operationName","variables","extensions","context"],a=0,r=Object.keys(e);a<r.length;a++){var u=r[a];if(t.indexOf(u)<0)throw Wt(58,u)}return e}function UO(e,t){var a=j({},e),r=function(s){typeof s=="function"?a=j(j({},a),s(a)):a=j(j({},a),s)},u=function(){return j({},a)};return Object.defineProperty(t,"setContext",{enumerable:!1,value:r}),Object.defineProperty(t,"getContext",{enumerable:!1,value:u}),t}function LO(e){var t={variables:e.variables||{},extensions:e.extensions||{},operationName:e.operationName,query:e.query};return t.operationName||(t.operationName=typeof t.query!="string"?Cu(t.query)||void 0:""),t}function qO(e,t){var a=j({},e),r=new Set(Object.keys(e));return Yn(t,{Variable:function(u,s,c){c&&c.kind!=="VariableDefinition"&&r.delete(u.name.value)}}),r.forEach(function(u){delete a[u]}),a}function sb(e,t){return t?t(e):et.of()}function wu(e){return typeof e=="function"?new ir(e):e}function Ns(e){return e.request.length<=1}var ir=(function(){function e(t){t&&(this.request=t)}return e.empty=function(){return new e(function(){return et.of()})},e.from=function(t){return t.length===0?e.empty():t.map(wu).reduce(function(a,r){return a.concat(r)})},e.split=function(t,a,r){var u=wu(a),s=wu(r||new e(sb)),c;return Ns(u)&&Ns(s)?c=new e(function(d){return t(d)?u.request(d)||et.of():s.request(d)||et.of()}):c=new e(function(d,p){return t(d)?u.request(d,p)||et.of():s.request(d,p)||et.of()}),Object.assign(c,{left:u,right:s})},e.execute=function(t,a){return t.request(UO(a.context,LO(VO(a))))||et.of()},e.concat=function(t,a){var r=wu(t);if(Ns(r))return globalThis.__DEV__!==!1&&ne.warn(47,r),r;var u=wu(a),s;return Ns(u)?s=new e(function(c){return r.request(c,function(d){return u.request(d)||et.of()})||et.of()}):s=new e(function(c,d){return r.request(c,function(p){return u.request(p,d)||et.of()})||et.of()}),Object.assign(s,{left:r,right:u})},e.prototype.split=function(t,a,r){return this.concat(e.split(t,a,r||new e(sb)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(t,a){throw Wt(48)},e.prototype.onError=function(t,a){if(globalThis.__DEV__!==!1&&hi("onError",function(){globalThis.__DEV__!==!1&&ne.warn(49)}),a&&a.error)return a.error(t),!1;throw t},e.prototype.setOnError=function(t){return globalThis.__DEV__!==!1&&globalThis.__DEV__!==!1&&ne.warn(50),this.onError=t,this},e})(),QO=ir.split,Rh=ir.execute;function BO(e){var t,a=e[Symbol.asyncIterator]();return t={next:function(){return a.next()}},t[Symbol.asyncIterator]=function(){return this},t}function IO(e){var t=null,a=null,r=!1,u=[],s=[];function c(y){if(!a){if(s.length){var b=s.shift();if(Array.isArray(b)&&b[0])return b[0]({value:y,done:!1})}u.push(y)}}function d(y){a=y;var b=s.slice();b.forEach(function(_){_[1](y)}),!t||t()}function p(){r=!0;var y=s.slice();y.forEach(function(b){b[0]({value:void 0,done:!0})}),!t||t()}t=function(){t=null,e.removeListener("data",c),e.removeListener("error",d),e.removeListener("end",p),e.removeListener("finish",p),e.removeListener("close",p)},e.on("data",c),e.on("error",d),e.on("end",p),e.on("finish",p),e.on("close",p);function m(){return new Promise(function(y,b){if(a)return b(a);if(u.length)return y({value:u.shift(),done:!1});if(r)return y({value:void 0,done:!0});s.push([y,b])})}var v={next:function(){return m()}};return nc&&(v[Symbol.asyncIterator]=function(){return this}),v}function ZO(e){var t=!1,a={next:function(){return t?Promise.resolve({value:void 0,done:!0}):(t=!0,new Promise(function(r,u){e.then(function(s){r({value:s,done:!1})}).catch(u)}))}};return nc&&(a[Symbol.asyncIterator]=function(){return this}),a}function cb(e){var t={next:function(){return e.read()}};return nc&&(t[Symbol.asyncIterator]=function(){return this}),t}function HO(e){return!!e.body}function $O(e){return!!e.getReader}function GO(e){return!!(nc&&e[Symbol.asyncIterator])}function YO(e){return!!e.stream}function PO(e){return!!e.arrayBuffer}function XO(e){return!!e.pipe}function JO(e){var t=e;if(HO(e)&&(t=e.body),GO(t))return BO(t);if($O(t))return cb(t.getReader());if(YO(t))return cb(t.stream().getReader());if(PO(t))return ZO(t.arrayBuffer());if(XO(t))return IO(t);throw new Error("Unknown body type for responseIterator. Please pass a streamable response.")}var pm=Symbol();function KO(e){return e.extensions?Array.isArray(e.extensions[pm]):!1}function R_(e){return e.hasOwnProperty("graphQLErrors")}var WO=function(e){var t=Dt(Dt(Dt([],e.graphQLErrors,!0),e.clientErrors,!0),e.protocolErrors,!0);return e.networkError&&t.push(e.networkError),t.map(function(a){return ut(a)&&a.message||"Error message not found."}).join(`
46
+ `)},cn=(function(e){Xn(t,e);function t(a){var r=a.graphQLErrors,u=a.protocolErrors,s=a.clientErrors,c=a.networkError,d=a.errorMessage,p=a.extraInfo,m=e.call(this,d)||this;return m.name="ApolloError",m.graphQLErrors=r||[],m.protocolErrors=u||[],m.clientErrors=s||[],m.networkError=c||null,m.message=d||WO(m),m.extraInfo=p,m.cause=Dt(Dt(Dt([c],r||[],!0),u||[],!0),s||[],!0).find(function(v){return!!v})||null,m.__proto__=t.prototype,m}return t})(Error),fb=Object.prototype.hasOwnProperty;function ew(e,t){return ci(this,void 0,void 0,function(){var a,r,u,s,c,d,p,m,v,y,b,_,E,T,D,N,w,O,M,z,Z,$,W,se;return fi(this,function(Ne){switch(Ne.label){case 0:if(TextDecoder===void 0)throw new Error("TextDecoder must be defined in the environment: please import a polyfill.");a=new TextDecoder("utf-8"),r=(se=e.headers)===null||se===void 0?void 0:se.get("content-type"),u="boundary=",s=r!=null&&r.includes(u)?r==null?void 0:r.substring((r==null?void 0:r.indexOf(u))+u.length).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",c=`\r
47
+ --`.concat(s),d="",p=JO(e),m=!0,Ne.label=1;case 1:return m?[4,p.next()]:[3,3];case 2:for(v=Ne.sent(),y=v.value,b=v.done,_=typeof y=="string"?y:a.decode(y),E=d.length-c.length+1,m=!b,d+=_,T=d.indexOf(c,E);T>-1;){if(D=void 0,$=[d.slice(0,T),d.slice(T+c.length)],D=$[0],d=$[1],N=D.indexOf(`\r
48
48
  \r
49
- `),w=ew(D.slice(0,N)),O=w["content-type"],O&&O.toLowerCase().indexOf("application/json")===-1)throw new Error("Unsupported patch content type: application/json is required.");if(M=D.slice(N),M){if(z=R_(e,M),Object.keys(z).length>1||"data"in z||"incremental"in z||"errors"in z||"payload"in z)if(CO(z)){if(Z={},"payload"in z){if(Object.keys(z).length===1&&z.payload===null)return[2];Z=j({},z.payload)}"errors"in z&&(Z=j(j({},Z),{extensions:j(j({},"extensions"in Z?Z.extensions:null),(W={},W[pm]=z.errors,W))})),t(Z)}else t(z);else if(Object.keys(z).length===1&&"hasNext"in z&&!z.hasNext)return[2]}T=d.indexOf(c)}return[3,1];case 3:return[2]}})})}function ew(e){var t={};return e.split(`
50
- `).forEach(function(a){var r=a.indexOf(":");if(r>-1){var u=a.slice(0,r).trim().toLowerCase(),s=a.slice(r+1).trim();t[u]=s}}),t}function R_(e,t){if(e.status>=300){var a=function(){try{return JSON.parse(t)}catch{return t}};D_(e,a(),"Response not successful: Received status code ".concat(e.status))}try{return JSON.parse(t)}catch(u){var r=u;throw r.name="ServerParseError",r.response=e,r.statusCode=e.status,r.bodyText=t,r}}function tw(e,t){e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e)}function nw(e){return function(t){return t.text().then(function(a){return R_(t,a)}).then(function(a){return!Array.isArray(a)&&!fb.call(a,"data")&&!fb.call(a,"errors")&&D_(t,a,"Server response was missing for query '".concat(Array.isArray(e)?e.map(function(r){return r.operationName}):e.operationName,"'.")),a})}}var Ah=function(e,t){var a;try{a=JSON.stringify(e)}catch(u){var r=Wt(54,t,u.message);throw r.parseError=u,r}return a},aw={includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},iw={accept:"*/*","content-type":"application/json"},rw={method:"POST"},lw={http:aw,headers:iw,options:rw},uw=function(e,t){return t(e)};function ow(e,t){for(var a=[],r=2;r<arguments.length;r++)a[r-2]=arguments[r];var u={},s={};a.forEach(function(y){u=j(j(j({},u),y.options),{headers:j(j({},u.headers),y.headers)}),y.credentials&&(u.credentials=y.credentials),s=j(j({},s),y.http)}),u.headers&&(u.headers=sw(u.headers,s.preserveHeaderCase));var c=e.operationName,d=e.extensions,p=e.variables,m=e.query,v={operationName:c,variables:p};return s.includeExtensions&&(v.extensions=d),s.includeQuery&&(v.query=t(m,pi)),{options:u,body:v}}function sw(e,t){if(!t){var a={};return Object.keys(Object(e)).forEach(function(s){a[s.toLowerCase()]=e[s]}),a}var r={};Object.keys(Object(e)).forEach(function(s){r[s.toLowerCase()]={originalName:s,value:e[s]}});var u={};return Object.keys(r).forEach(function(s){u[r[s].originalName]=r[s].value}),u}var cw=function(e){if(!e&&typeof fetch>"u")throw Wt(51)},fw=function(e,t){var a=e.getContext(),r=a.uri;return r||(typeof t=="function"?t(e):t||"/graphql")};function dw(e,t){var a=[],r=function(y,b){a.push("".concat(y,"=").concat(encodeURIComponent(b)))};if("query"in t&&r("query",t.query),t.operationName&&r("operationName",t.operationName),t.variables){var u=void 0;try{u=Ah(t.variables,"Variables map")}catch(y){return{parseError:y}}r("variables",u)}if(t.extensions){var s=void 0;try{s=Ah(t.extensions,"Extensions map")}catch(y){return{parseError:y}}r("extensions",s)}var c="",d=e,p=e.indexOf("#");p!==-1&&(c=e.substr(p),d=e.substr(0,p));var m=d.indexOf("?")===-1?"?":"&",v=d+m+a.join("&")+c;return{newURI:v}}var db=In(function(){return fetch}),hw=function(e){e===void 0&&(e={});var t=e.uri,a=t===void 0?"/graphql":t,r=e.fetch,u=e.print,s=u===void 0?uw:u,c=e.includeExtensions,d=e.preserveHeaderCase,p=e.useGETForQueries,m=e.includeUnusedVariables,v=m===void 0?!1:m,y=Sn(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);globalThis.__DEV__!==!1&&cw(r||db);var b={http:{includeExtensions:c,preserveHeaderCase:d},options:y.fetchOptions,credentials:y.credentials,headers:y.headers};return new ir(function(_){var E=fw(_,a),T=_.getContext(),D={};if(T.clientAwareness){var N=T.clientAwareness,w=N.name,O=N.version;w&&(D["apollographql-client-name"]=w),O&&(D["apollographql-client-version"]=O)}var M=j(j({},D),T.headers),z={http:T.http,options:T.fetchOptions,credentials:T.credentials,headers:M};if($u(["client"],_.query)){globalThis.__DEV__!==!1&&globalThis.__DEV__!==!1&&ne.warn(52);var Z=S_(_.query);if(!Z)return Hd(new Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));_.query=Z}var $=ow(_,s,lw,b,z),W=$.options,se=$.body;se.variables&&!v&&(se.variables=LO(se.variables,_.query));var Ne;!W.signal&&typeof AbortController<"u"&&(Ne=new AbortController,W.signal=Ne.signal);var Be=function(me){return me.kind==="OperationDefinition"&&me.operation==="mutation"},le=function(me){return me.kind==="OperationDefinition"&&me.operation==="subscription"},fe=le(_l(_.query)),ee=$u(["defer"],_.query);if(p&&!_.query.definitions.some(Be)&&(W.method="GET"),ee||fe){W.headers=W.headers||{};var ce="multipart/mixed;";fe&&ee&&globalThis.__DEV__!==!1&&ne.warn(53),fe?ce+="boundary=graphql;subscriptionSpec=1.0,application/json":ee&&(ce+="deferSpec=20220824,application/json"),W.headers.accept=ce}if(W.method==="GET"){var U=dw(E,se),P=U.newURI,ie=U.parseError;if(ie)return Hd(ie);E=P}else try{W.body=Ah(se,"Payload")}catch(me){return Hd(me)}return new et(function(me){var ve=r||In(function(){return fetch})||db,A=me.next.bind(me);return ve(E,W).then(function(G){var ae;_.setContext({response:G});var oe=(ae=G.headers)===null||ae===void 0?void 0:ae.get("content-type");return oe!==null&&/^multipart\/mixed/i.test(oe)?WO(G,A):nw(_)(G).then(A)}).then(function(){Ne=void 0,me.complete()}).catch(function(G){Ne=void 0,tw(G,me)}),function(){Ne&&Ne.abort()}})})},A_=(function(e){Xn(t,e);function t(a){a===void 0&&(a={});var r=e.call(this,hw(a).request)||this;return r.options=a,r}return t})(ir);const{toString:hb,hasOwnProperty:mw}=Object.prototype,mb=Function.prototype.toString,zh=new Map;function Qe(e,t){try{return Ch(e,t)}finally{zh.clear()}}function Ch(e,t){if(e===t)return!0;const a=hb.call(e),r=hb.call(t);if(a!==r)return!1;switch(a){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":{if(vb(e,t))return!0;const u=pb(e),s=pb(t),c=u.length;if(c!==s.length)return!1;for(let d=0;d<c;++d)if(!mw.call(t,u[d]))return!1;for(let d=0;d<c;++d){const p=u[d];if(!Ch(e[p],t[p]))return!1}return!0}case"[object Error]":return e.name===t.name&&e.message===t.message;case"[object Number]":if(e!==e)return t!==t;case"[object Boolean]":case"[object Date]":return+e==+t;case"[object RegExp]":case"[object String]":return e==`${t}`;case"[object Map]":case"[object Set]":{if(e.size!==t.size)return!1;if(vb(e,t))return!0;const u=e.entries(),s=a==="[object Map]";for(;;){const c=u.next();if(c.done)break;const[d,p]=c.value;if(!t.has(d)||s&&!Ch(p,t.get(d)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":e=new Uint8Array(e),t=new Uint8Array(t);case"[object DataView]":{let u=e.byteLength;if(u===t.byteLength)for(;u--&&e[u]===t[u];);return u===-1}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{const u=mb.call(e);return u!==mb.call(t)?!1:!yw(u,vw)}}return!1}function pb(e){return Object.keys(e).filter(pw,e)}function pw(e){return this[e]!==void 0}const vw="{ [native code] }";function yw(e,t){const a=e.length-t.length;return a>=0&&e.indexOf(t,a)===a}function vb(e,t){let a=zh.get(e);if(a){if(a.has(t))return!0}else zh.set(e,a=new Set);return a.add(t),!1}function z_(e,t,a,r){var u=t.data,s=Sn(t,["data"]),c=a.data,d=Sn(a,["data"]);return Qe(s,d)&&js(_l(e).selectionSet,u,c,{fragmentMap:yl(bl(e)),variables:r})}function js(e,t,a,r){if(t===a)return!0;var u=new Set;return e.selections.every(function(s){if(u.has(s)||(u.add(s),!Ku(s,r.variables))||yb(s))return!0;if(yi(s)){var c=ja(s),d=t&&t[c],p=a&&a[c],m=s.selectionSet;if(!m)return Qe(d,p);var v=Array.isArray(d),y=Array.isArray(p);if(v!==y)return!1;if(v&&y){var b=d.length;if(p.length!==b)return!1;for(var _=0;_<b;++_)if(!js(m,d[_],p[_],r))return!1;return!0}return js(m,d,p,r)}else{var E=ac(s,r.fragmentMap);if(E)return yb(E)?!0:js(E.selectionSet,t,a,r)}})}function yb(e){return!!e.directives&&e.directives.some(gw)}function gw(e){return e.name.value==="nonreactive"}var C_=ar?WeakMap:Map,j_=nm?WeakSet:Set,vm=new Sl,gb=!1;function M_(){gb||(gb=!0,globalThis.__DEV__!==!1&&ne.warn(64))}function F_(e,t,a){return vm.withValue(!0,function(){var r=ju(e,t,a,!1);return Object.isFrozen(e)&&pl(r),r})}function bw(e,t){if(t.has(e))return t.get(e);var a=Array.isArray(e)?[]:Object.create(null);return t.set(e,a),a}function ju(e,t,a,r,u){var s,c=a.knownChanged,d=bw(e,a.mutableTargets);if(Array.isArray(e)){for(var p=0,m=Array.from(e.entries());p<m.length;p++){var v=m[p],y=v[0],b=v[1];if(b===null){d[y]=null;continue}var _=ju(b,t,a,r,globalThis.__DEV__!==!1?"".concat(u||"","[").concat(y,"]"):void 0);c.has(_)&&c.add(d),d[y]=_}return c.has(d)?d:e}for(var E=0,T=t.selections;E<T.length;E++){var D=T[E],N=void 0;if(r&&c.add(d),D.kind===nt.FIELD){var w=ja(D),O=D.selectionSet;if(N=d[w]||e[w],N===void 0)continue;if(O&&N!==null){var _=ju(e[w],O,a,r,globalThis.__DEV__!==!1?"".concat(u||"",".").concat(w):void 0);c.has(_)&&(N=_)}globalThis.__DEV__===!1&&(d[w]=N),globalThis.__DEV__!==!1&&(r&&w!=="__typename"&&!(!((s=Object.getOwnPropertyDescriptor(d,w))===null||s===void 0)&&s.value)?Object.defineProperty(d,w,_w(w,N,u||"",a.operationName,a.operationType)):(delete d[w],d[w]=N))}if(D.kind===nt.INLINE_FRAGMENT&&(!D.typeCondition||a.cache.fragmentMatches(D,e.__typename))&&(N=ju(e,D.selectionSet,a,r,u)),D.kind===nt.FRAGMENT_SPREAD){var M=D.name.value,z=a.fragmentMap[M]||(a.fragmentMap[M]=a.cache.lookupFragment(M));ne(z,59,M);var Z=hT(D);Z!=="mask"&&(N=ju(e,z.selectionSet,a,Z==="migrate",u))}c.has(N)&&c.add(d)}return"__typename"in e&&!("__typename"in d)&&(d.__typename=e.__typename),Object.keys(d).length!==Object.keys(e).length&&c.add(d),c.has(d)?d:e}function _w(e,t,a,r,u){var s=function(){return vm.getValue()||(globalThis.__DEV__!==!1&&ne.warn(60,r?"".concat(u," '").concat(r,"'"):"anonymous ".concat(u),"".concat(a,".").concat(e).replace(/^\./,"")),s=function(){return t}),t};return{get:function(){return s()},set:function(c){s=function(){return c}},enumerable:!0,configurable:!0}}function V_(e,t,a,r){if(!a.fragmentMatches)return globalThis.__DEV__!==!1&&M_(),e;var u=t.definitions.filter(function(c){return c.kind===nt.FRAGMENT_DEFINITION});typeof r>"u"&&(ne(u.length===1,61,u.length),r=u[0].name.value);var s=u.find(function(c){return c.name.value===r});return ne(!!s,62,r),e==null||Qe(e,{})?e:F_(e,s.selectionSet,{operationType:"fragment",operationName:s.name.value,fragmentMap:yl(bl(t)),cache:a,mutableTargets:new C_,knownChanged:new j_})}function Sw(e,t,a){var r;if(!a.fragmentMatches)return globalThis.__DEV__!==!1&&M_(),e;var u=er(t);return ne(u,63),e==null?e:F_(e,u.selectionSet,{operationType:u.operation,operationName:(r=u.name)===null||r===void 0?void 0:r.value,fragmentMap:yl(bl(t)),cache:a,mutableTargets:new C_,knownChanged:new j_})}var U_=(function(){function e(){this.assumeImmutableResults=!1,this.getFragmentDoc=Yu(_T,{max:ua["cache.fragmentQueryDocuments"]||1e3,cache:Qs})}return e.prototype.lookupFragment=function(t){return null},e.prototype.batch=function(t){var a=this,r=typeof t.optimistic=="string"?t.optimistic:t.optimistic===!1?null:void 0,u;return this.performTransaction(function(){return u=t.update(a)},r),u},e.prototype.recordOptimisticTransaction=function(t,a){this.performTransaction(t,a)},e.prototype.transformDocument=function(t){return t},e.prototype.transformForLink=function(t){return t},e.prototype.identify=function(t){},e.prototype.gc=function(){return[]},e.prototype.modify=function(t){return!1},e.prototype.readQuery=function(t,a){var r=this;return a===void 0&&(a=!!t.optimistic),globalThis.__DEV__!==!1&&pt(t,"canonizeResults","cache.readQuery"),Mt("canonizeResults",function(){return r.read(j(j({},t),{rootId:t.id||"ROOT_QUERY",optimistic:a}))})},e.prototype.watchFragment=function(t){var a=this,r=t.fragment,u=t.fragmentName,s=t.from,c=t.optimistic,d=c===void 0?!0:c,p=Sn(t,["fragment","fragmentName","from","optimistic"]),m=this.getFragmentDoc(r,u),v=typeof s>"u"||typeof s=="string"?s:this.identify(s),y=!!t[Symbol.for("apollo.dataMasking")];if(globalThis.__DEV__!==!1){var b=u||l_(r).name.value;v||globalThis.__DEV__!==!1&&ne.warn(1,b)}var _=j(j({},p),{returnPartialData:!0,id:v,query:m,optimistic:d}),E;return new et(function(T){return a.watch(j(j({},_),{immediate:!0,callback:function(D){var N=y?V_(D.result,r,a,u):D.result;if(!(E&&z_(m,{data:E.result},{data:N},t.variables))){var w={data:N,complete:!!D.complete};D.missing&&(w.missing=uc(D.missing.map(function(O){return O.missing}))),E=j(j({},D),{result:N}),T.next(w)}}}))})},e.prototype.readFragment=function(t,a){var r=this;return a===void 0&&(a=!!t.optimistic),globalThis.__DEV__!==!1&&pt(t,"canonizeResults","cache.readFragment"),Mt("canonizeResults",function(){return r.read(j(j({},t),{query:r.getFragmentDoc(t.fragment,t.fragmentName),rootId:t.id,optimistic:a}))})},e.prototype.writeQuery=function(t){var a=t.id,r=t.data,u=Sn(t,["id","data"]);return this.write(Object.assign(u,{dataId:a||"ROOT_QUERY",result:r}))},e.prototype.writeFragment=function(t){var a=t.id,r=t.data,u=t.fragment,s=t.fragmentName,c=Sn(t,["id","data","fragment","fragmentName"]);return this.write(Object.assign(c,{query:this.getFragmentDoc(u,s),dataId:a,result:r}))},e.prototype.updateQuery=function(t,a){return globalThis.__DEV__!==!1&&pt(t,"canonizeResults","cache.updateQuery"),this.batch({update:function(r){var u=Mt("canonizeResults",function(){return r.readQuery(t)}),s=a(u);return s==null?u:(r.writeQuery(j(j({},t),{data:s})),s)}})},e.prototype.updateFragment=function(t,a){return globalThis.__DEV__!==!1&&pt(t,"canonizeResults","cache.updateFragment"),this.batch({update:function(r){var u=Mt("canonizeResults",function(){return r.readFragment(t)}),s=a(u);return s==null?u:(r.writeFragment(j(j({},t),{data:s})),s)}})},e})();globalThis.__DEV__!==!1&&(U_.prototype.getMemoryInternals=zT);var L_=(function(e){Xn(t,e);function t(a,r,u,s){var c,d=e.call(this,a)||this;if(d.message=a,d.path=r,d.query=u,d.variables=s,Array.isArray(d.path)){d.missing=d.message;for(var p=d.path.length-1;p>=0;--p)d.missing=(c={},c[d.path[p]]=d.missing,c)}else d.missing=d.path;return d.__proto__=t.prototype,d}return t})(Error),jt=Object.prototype.hasOwnProperty;function Du(e){return e==null}function q_(e,t){var a=e.__typename,r=e.id,u=e._id;if(typeof a=="string"&&(t&&(t.keyObject=Du(r)?Du(u)?void 0:{_id:u}:{id:r}),Du(r)&&!Du(u)&&(r=u),!Du(r)))return"".concat(a,":").concat(typeof r=="number"||typeof r=="string"?r:JSON.stringify(r))}var Q_={dataIdFromObject:q_,addTypename:!0,resultCaching:!0,canonizeResults:!1};function kw(e){return tr(Q_,e)}function B_(e){var t=e.canonizeResults;return t===void 0?Q_.canonizeResults:t}function Ew(e,t){return $e(t)?e.get(t.__ref,"__typename"):t&&t.__typename}var I_=/^[_a-z][_0-9a-z]*/i;function _i(e){var t=e.match(I_);return t?t[0]:e}function jh(e,t,a){return ut(t)?vt(t)?t.every(function(r){return jh(e,r,a)}):e.selections.every(function(r){if(yi(r)&&Ku(r,a)){var u=ja(r);return jt.call(t,u)&&(!r.selectionSet||jh(r.selectionSet,t[u],a))}return!0}):!1}function al(e){return ut(e)&&!$e(e)&&!vt(e)}function Nw(){return new bi}function Z_(e,t){var a=yl(bl(e));return{fragmentMap:a,lookupFragment:function(r){var u=a[r];return!u&&t&&(u=t.lookup(r)),u||null}}}var Ms=Object.create(null),$d=function(){return Ms},bb=Object.create(null),Pu=(function(){function e(t,a){var r=this;this.policies=t,this.group=a,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(u,s){return pl($e(u)?r.get(u.__ref,s):u&&u[s])},this.canRead=function(u){return $e(u)?r.has(u.__ref):typeof u=="object"},this.toReference=function(u,s){if(typeof u=="string")return ol(u);if($e(u))return u;var c=r.policies.identify(u)[0];if(c){var d=ol(c);return s&&r.merge(c,u),d}}}return e.prototype.toObject=function(){return j({},this.data)},e.prototype.has=function(t){return this.lookup(t,!0)!==void 0},e.prototype.get=function(t,a){if(this.group.depend(t,a),jt.call(this.data,t)){var r=this.data[t];if(r&&jt.call(r,a))return r[a]}if(a==="__typename"&&jt.call(this.policies.rootTypenamesById,t))return this.policies.rootTypenamesById[t];if(this instanceof si)return this.parent.get(t,a)},e.prototype.lookup=function(t,a){if(a&&this.group.depend(t,"__exists"),jt.call(this.data,t))return this.data[t];if(this instanceof si)return this.parent.lookup(t,a);if(this.policies.rootTypenamesById[t])return Object.create(null)},e.prototype.merge=function(t,a){var r=this,u;$e(t)&&(t=t.__ref),$e(a)&&(a=a.__ref);var s=typeof t=="string"?this.lookup(u=t):t,c=typeof a=="string"?this.lookup(u=a):a;if(c){ne(typeof u=="string",2);var d=new bi(Ow).merge(s,c);if(this.data[u]=d,d!==s&&(delete this.refs[u],this.group.caching)){var p=Object.create(null);s||(p.__exists=1),Object.keys(c).forEach(function(m){if(!s||s[m]!==d[m]){p[m]=1;var v=_i(m);v!==m&&!r.policies.hasKeyArgs(d.__typename,v)&&(p[v]=1),d[m]===void 0&&!(r instanceof si)&&delete d[m]}}),p.__typename&&!(s&&s.__typename)&&this.policies.rootTypenamesById[u]===d.__typename&&delete p.__typename,Object.keys(p).forEach(function(m){return r.group.dirty(u,m)})}}},e.prototype.modify=function(t,a){var r=this,u=this.lookup(t);if(u){var s=Object.create(null),c=!1,d=!0,p={DELETE:Ms,INVALIDATE:bb,isReference:$e,toReference:this.toReference,canRead:this.canRead,readField:function(m,v){return r.policies.readField(typeof m=="string"?{fieldName:m,from:v||ol(t)}:m,{store:r})}};if(Object.keys(u).forEach(function(m){var v=_i(m),y=u[m];if(y!==void 0){var b=typeof a=="function"?a:a[m]||a[v];if(b){var _=b===$d?Ms:b(pl(y),j(j({},p),{fieldName:v,storeFieldName:m,storage:r.getStorage(t,m)}));if(_===bb)r.group.dirty(t,m);else if(_===Ms&&(_=void 0),_!==y&&(s[m]=_,c=!0,y=_,globalThis.__DEV__!==!1)){var E=function(z){if(r.lookup(z.__ref)===void 0)return globalThis.__DEV__!==!1&&ne.warn(3,z),!0};if($e(_))E(_);else if(Array.isArray(_))for(var T=!1,D=void 0,N=0,w=_;N<w.length;N++){var O=w[N];if($e(O)){if(T=!0,E(O))break}else if(typeof O=="object"&&O){var M=r.policies.identify(O)[0];M&&(D=O)}if(T&&D!==void 0){globalThis.__DEV__!==!1&&ne.warn(4,D);break}}}}y!==void 0&&(d=!1)}}),c)return this.merge(t,s),d&&(this instanceof si?this.data[t]=void 0:delete this.data[t],this.group.dirty(t,"__exists")),!0}return!1},e.prototype.delete=function(t,a,r){var u,s=this.lookup(t);if(s){var c=this.getFieldValue(s,"__typename"),d=a&&r?this.policies.getStoreFieldName({typename:c,fieldName:a,args:r}):a;return this.modify(t,d?(u={},u[d]=$d,u):$d)}return!1},e.prototype.evict=function(t,a){var r=!1;return t.id&&(jt.call(this.data,t.id)&&(r=this.delete(t.id,t.fieldName,t.args)),this instanceof si&&this!==a&&(r=this.parent.evict(t,a)||r),(t.fieldName||r)&&this.group.dirty(t.id,t.fieldName||"__exists")),r},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var t=this,a=this.toObject(),r=[];return this.getRootIdSet().forEach(function(u){jt.call(t.policies.rootTypenamesById,u)||r.push(u)}),r.length&&(a.__META={extraRootIds:r.sort()}),a},e.prototype.replace=function(t){var a=this;if(Object.keys(this.data).forEach(function(s){t&&jt.call(t,s)||a.delete(s)}),t){var r=t.__META,u=Sn(t,["__META"]);Object.keys(u).forEach(function(s){a.merge(s,u[s])}),r&&r.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(t){return this.rootIds[t]=(this.rootIds[t]||0)+1},e.prototype.release=function(t){if(this.rootIds[t]>0){var a=--this.rootIds[t];return a||delete this.rootIds[t],a}return 0},e.prototype.getRootIdSet=function(t){return t===void 0&&(t=new Set),Object.keys(this.rootIds).forEach(t.add,t),this instanceof si?this.parent.getRootIdSet(t):Object.keys(this.policies.rootTypenamesById).forEach(t.add,t),t},e.prototype.gc=function(){var t=this,a=this.getRootIdSet(),r=this.toObject();a.forEach(function(c){jt.call(r,c)&&(Object.keys(t.findChildRefIds(c)).forEach(a.add,a),delete r[c])});var u=Object.keys(r);if(u.length){for(var s=this;s instanceof si;)s=s.parent;u.forEach(function(c){return s.delete(c)})}return u},e.prototype.findChildRefIds=function(t){if(!jt.call(this.refs,t)){var a=this.refs[t]=Object.create(null),r=this.data[t];if(!r)return a;var u=new Set([r]);u.forEach(function(s){$e(s)&&(a[s.__ref]=!0),ut(s)&&Object.keys(s).forEach(function(c){var d=s[c];ut(d)&&u.add(d)})})}return this.refs[t]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e})(),H_=(function(){function e(t,a){a===void 0&&(a=null),this.caching=t,this.parent=a,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?y_():null,this.keyMaker=new Va(ar)},e.prototype.depend=function(t,a){if(this.d){this.d(Gd(t,a));var r=_i(a);r!==a&&this.d(Gd(t,r)),this.parent&&this.parent.depend(t,a)}},e.prototype.dirty=function(t,a){this.d&&this.d.dirty(Gd(t,a),a==="__exists"?"forget":"setDirty")},e})();function Gd(e,t){return t+"#"+e}function _b(e,t){Qu(e)&&e.group.depend(t,"__exists")}(function(e){var t=(function(a){Xn(r,a);function r(u){var s=u.policies,c=u.resultCaching,d=c===void 0?!0:c,p=u.seed,m=a.call(this,s,new H_(d))||this;return m.stump=new Tw(m),m.storageTrie=new Va(ar),p&&m.replace(p),m}return r.prototype.addLayer=function(u,s){return this.stump.addLayer(u,s)},r.prototype.removeLayer=function(){return this},r.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},r})(e);e.Root=t})(Pu||(Pu={}));var si=(function(e){Xn(t,e);function t(a,r,u,s){var c=e.call(this,r.policies,s)||this;return c.id=a,c.parent=r,c.replay=u,c.group=s,u(c),c}return t.prototype.addLayer=function(a,r){return new t(a,this,r,this.group)},t.prototype.removeLayer=function(a){var r=this,u=this.parent.removeLayer(a);return a===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(s){var c=r.data[s],d=u.lookup(s);d?c?c!==d&&Object.keys(c).forEach(function(p){Qe(c[p],d[p])||r.group.dirty(s,p)}):(r.group.dirty(s,"__exists"),Object.keys(d).forEach(function(p){r.group.dirty(s,p)})):r.delete(s)}),u):u===this.parent?this:u.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return j(j({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(a){var r=this.parent.findChildRefIds(a);return jt.call(this.data,a)?j(j({},r),e.prototype.findChildRefIds.call(this,a)):r},t.prototype.getStorage=function(){for(var a=this.parent;a.parent;)a=a.parent;return a.getStorage.apply(a,arguments)},t})(Pu),Tw=(function(e){Xn(t,e);function t(a){return e.call(this,"EntityStore.Stump",a,function(){},new H_(a.group.caching,a.group))||this}return t.prototype.removeLayer=function(){return this},t.prototype.merge=function(a,r){return this.parent.merge(a,r)},t})(si);function Ow(e,t,a){var r=e[a],u=t[a];return Qe(r,u)?r:u}function Qu(e){return!!(e instanceof Pu&&e.group.caching)}function ww(e){return ut(e)?vt(e)?e.slice(0):j({__proto__:Object.getPrototypeOf(e)},e):e}var Sb=(function(){function e(){this.known=new(nm?WeakSet:Set),this.pool=new Va(ar),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(t){return ut(t)&&this.known.has(t)},e.prototype.pass=function(t){if(ut(t)){var a=ww(t);return this.passes.set(a,t),a}return t},e.prototype.admit=function(t){var a=this;if(ut(t)){var r=this.passes.get(t);if(r)return r;var u=Object.getPrototypeOf(t);switch(u){case Array.prototype:{if(this.known.has(t))return t;var s=t.map(this.admit,this),c=this.pool.lookupArray(s);return c.array||(this.known.add(c.array=s),globalThis.__DEV__!==!1&&Object.freeze(s)),c.array}case null:case Object.prototype:{if(this.known.has(t))return t;var d=Object.getPrototypeOf(t),p=[d],m=this.sortedKeys(t);p.push(m.json);var v=p.length;m.sorted.forEach(function(_){p.push(a.admit(t[_]))});var c=this.pool.lookupArray(p);if(!c.object){var y=c.object=Object.create(d);this.known.add(y),m.sorted.forEach(function(_,E){y[_]=p[v+E]}),globalThis.__DEV__!==!1&&Object.freeze(y)}return c.object}}}return t},e.prototype.sortedKeys=function(t){var a=Object.keys(t),r=this.pool.lookupArray(a);if(!r.keys){a.sort();var u=JSON.stringify(a);(r.keys=this.keysByJSON.get(u))||this.keysByJSON.set(u,r.keys={sorted:a,json:u})}return r.keys},e})();function kb(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var Dw=(function(){function e(t){var a=this;this.knownResults=new(ar?WeakMap:Map),this.config=tr(t,{addTypename:t.addTypename!==!1,canonizeResults:B_(t)}),this.canon=t.canon||new Sb,this.executeSelectionSet=Yu(function(r){var u,s=r.context.canonizeResults,c=kb(r);c[3]=!s;var d=(u=a.executeSelectionSet).peek.apply(u,c);return d?s?j(j({},d),{result:a.canon.admit(d.result)}):d:(_b(r.context.store,r.enclosingRef.__ref),a.execSelectionSetImpl(r))},{max:this.config.resultCacheMaxSize||ua["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:kb,makeCacheKey:function(r,u,s,c){if(Qu(s.store))return s.store.makeCacheKey(r,$e(u)?u.__ref:u,s.varString,c)}}),this.executeSubSelectedArray=Yu(function(r){return _b(r.context.store,r.enclosingRef.__ref),a.execSubSelectedArrayImpl(r)},{max:this.config.resultCacheMaxSize||ua["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey:function(r){var u=r.field,s=r.array,c=r.context;if(Qu(c.store))return c.store.makeCacheKey(u,s,c.varString)}})}return e.prototype.resetCanon=function(){this.canon=new Sb},e.prototype.diffQueryAgainstStore=function(t){var a=t.store,r=t.query,u=t.rootId,s=u===void 0?"ROOT_QUERY":u,c=t.variables,d=t.returnPartialData,p=d===void 0?!0:d,m=t.canonizeResults,v=m===void 0?this.config.canonizeResults:m,y=this.config.cache.policies;c=j(j({},lm(r_(r))),c);var b=ol(s),_=this.executeSelectionSet({selectionSet:_l(r).selectionSet,objectOrReference:b,enclosingRef:b,context:j({store:a,query:r,policies:y,variables:c,varString:vi(c),canonizeResults:v},Z_(r,this.config.fragments))}),E;if(_.missing&&(E=[new L_(xw(_.missing),_.missing,r,c)],!p))throw E[0];return{result:_.result,complete:!E,missing:E}},e.prototype.isFresh=function(t,a,r,u){if(Qu(u.store)&&this.knownResults.get(t)===r){var s=this.executeSelectionSet.peek(r,a,u,this.canon.isKnown(t));if(s&&t===s.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(t){var a=this,r=t.selectionSet,u=t.objectOrReference,s=t.enclosingRef,c=t.context;if($e(u)&&!c.policies.rootTypenamesById[u.__ref]&&!c.store.has(u.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(u.__ref," object")};var d=c.variables,p=c.policies,m=c.store,v=m.getFieldValue(u,"__typename"),y=[],b,_=new bi;this.config.addTypename&&typeof v=="string"&&!p.rootIdsByTypename[v]&&y.push({__typename:v});function E(O,M){var z;return O.missing&&(b=_.merge(b,(z={},z[M]=O.missing,z))),O.result}var T=new Set(r.selections);T.forEach(function(O){var M,z;if(Ku(O,d))if(yi(O)){var Z=p.readField({fieldName:O.name.value,field:O,variables:c.variables,from:u},c),$=ja(O);Z===void 0?cm.added(O)||(b=_.merge(b,(M={},M[$]="Can't find field '".concat(O.name.value,"' on ").concat($e(u)?u.__ref+" object":"object "+JSON.stringify(u,null,2)),M))):vt(Z)?Z.length>0&&(Z=E(a.executeSubSelectedArray({field:O,array:Z,enclosingRef:s,context:c}),$)):O.selectionSet?Z!=null&&(Z=E(a.executeSelectionSet({selectionSet:O.selectionSet,objectOrReference:Z,enclosingRef:$e(Z)?Z:s,context:c}),$)):c.canonizeResults&&(Z=a.canon.pass(Z)),Z!==void 0&&y.push((z={},z[$]=Z,z))}else{var W=ac(O,c.lookupFragment);if(!W&&O.kind===nt.FRAGMENT_SPREAD)throw Wt(10,O.name.value);W&&p.fragmentMatches(W,v)&&W.selectionSet.selections.forEach(T.add,T)}});var D=uc(y),N={result:D,missing:b},w=c.canonizeResults?this.canon.admit(N):pl(N);return w.result&&this.knownResults.set(w.result,r),w},e.prototype.execSubSelectedArrayImpl=function(t){var a=this,r=t.field,u=t.array,s=t.enclosingRef,c=t.context,d,p=new bi;function m(v,y){var b;return v.missing&&(d=p.merge(d,(b={},b[y]=v.missing,b))),v.result}return r.selectionSet&&(u=u.filter(c.store.canRead)),u=u.map(function(v,y){return v===null?null:vt(v)?m(a.executeSubSelectedArray({field:r,array:v,enclosingRef:s,context:c}),y):r.selectionSet?m(a.executeSelectionSet({selectionSet:r.selectionSet,objectOrReference:v,enclosingRef:$e(v)?v:s,context:c}),y):(globalThis.__DEV__!==!1&&Rw(c.store,r,v),v)}),{result:c.canonizeResults?this.canon.admit(u):u,missing:d}},e})();function xw(e){try{JSON.stringify(e,function(t,a){if(typeof a=="string")throw a;return a})}catch(t){return t}}function Rw(e,t,a){if(!t.selectionSet){var r=new Set([a]);r.forEach(function(u){ut(u)&&(ne(!$e(u),11,Ew(e,u),t.name.value),Object.values(u).forEach(r.add,r))})}}var ym=new Sl,Eb=new WeakMap;function Bu(e){var t=Eb.get(e);return t||Eb.set(e,t={vars:new Set,dep:y_()}),t}function Nb(e){Bu(e).vars.forEach(function(t){return t.forgetCache(e)})}function Aw(e){Bu(e).vars.forEach(function(t){return t.attachCache(e)})}function zw(e){var t=new Set,a=new Set,r=function(s){if(arguments.length>0){if(e!==s){e=s,t.forEach(function(p){Bu(p).dep.dirty(r),Cw(p)});var c=Array.from(a);a.clear(),c.forEach(function(p){return p(e)})}}else{var d=ym.getValue();d&&(u(d),Bu(d).dep(r))}return e};r.onNextChange=function(s){return a.add(s),function(){a.delete(s)}};var u=r.attachCache=function(s){return t.add(s),Bu(s).vars.add(r),r};return r.forgetCache=function(s){return t.delete(s)},r}function Cw(e){e.broadcastWatches&&e.broadcastWatches()}var Tb=Object.create(null);function gm(e){var t=JSON.stringify(e);return Tb[t]||(Tb[t]=Object.create(null))}function Ob(e){var t=gm(e);return t.keyFieldsFn||(t.keyFieldsFn=function(a,r){var u=function(c,d){return r.readField(d,c)},s=r.keyObject=bm(e,function(c){var d=cl(r.storeObject,c,u);return d===void 0&&a!==r.storeObject&&jt.call(a,c[0])&&(d=cl(a,c,G_)),ne(d!==void 0,5,c.join("."),a),d});return"".concat(r.typename,":").concat(JSON.stringify(s))})}function wb(e){var t=gm(e);return t.keyArgsFn||(t.keyArgsFn=function(a,r){var u=r.field,s=r.variables,c=r.fieldName,d=bm(e,function(m){var v=m[0],y=v.charAt(0);if(y==="@"){if(u&&Fn(u.directives)){var b=v.slice(1),_=u.directives.find(function(N){return N.name.value===b}),E=_&&ic(_,s);return E&&cl(E,m.slice(1))}return}if(y==="$"){var T=v.slice(1);if(s&&jt.call(s,T)){var D=m.slice(0);return D[0]=T,cl(s,D)}return}if(a)return cl(a,m)}),p=JSON.stringify(d);return(a||p!=="{}")&&(c+=":"+p),c})}function bm(e,t){var a=new bi;return $_(e).reduce(function(r,u){var s,c=t(u);if(c!==void 0){for(var d=u.length-1;d>=0;--d)c=(s={},s[u[d]]=c,s);r=a.merge(r,c)}return r},Object.create(null))}function $_(e){var t=gm(e);if(!t.paths){var a=t.paths=[],r=[];e.forEach(function(u,s){vt(u)?($_(u).forEach(function(c){return a.push(r.concat(c))}),r.length=0):(r.push(u),vt(e[s+1])||(a.push(r.slice(0)),r.length=0))})}return t.paths}function G_(e,t){return e[t]}function cl(e,t,a){return a=a||G_,Y_(t.reduce(function r(u,s){return vt(u)?u.map(function(c){return r(c,s)}):u&&a(u,s)},e))}function Y_(e){return ut(e)?vt(e)?e.map(Y_):bm(Object.keys(e).sort(),function(t){return cl(e,t)}):e}function Mh(e){return e.args!==void 0?e.args:e.field?ic(e.field,e.variables):null}var jw=function(){},Db=function(e,t){return t.fieldName},xb=function(e,t,a){var r=a.mergeObjects;return r(e,t)},Rb=function(e,t){return t},Mw=(function(){function e(t){this.config=t,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=j({dataIdFromObject:q_},t),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),t.possibleTypes&&this.addPossibleTypes(t.possibleTypes),t.typePolicies&&this.addTypePolicies(t.typePolicies)}return e.prototype.identify=function(t,a){var r,u=this,s=a&&(a.typename||((r=a.storeObject)===null||r===void 0?void 0:r.__typename))||t.__typename;if(s===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];var c=a&&a.storeObject||t,d=j(j({},a),{typename:s,storeObject:c,readField:a&&a.readField||function(){var y=_m(arguments,c);return u.readField(y,{store:u.cache.data,variables:y.variables})}}),p,m=s&&this.getTypePolicy(s),v=m&&m.keyFn||this.config.dataIdFromObject;return vm.withValue(!0,function(){for(;v;){var y=v(j(j({},t),c),d);if(vt(y))v=Ob(y);else{p=y;break}}}),p=p?String(p):void 0,d.keyObject?[p,d.keyObject]:[p]},e.prototype.addTypePolicies=function(t){var a=this;Object.keys(t).forEach(function(r){var u=t[r],s=u.queryType,c=u.mutationType,d=u.subscriptionType,p=Sn(u,["queryType","mutationType","subscriptionType"]);s&&a.setRootTypename("Query",r),c&&a.setRootTypename("Mutation",r),d&&a.setRootTypename("Subscription",r),jt.call(a.toBeAdded,r)?a.toBeAdded[r].push(p):a.toBeAdded[r]=[p]})},e.prototype.updateTypePolicy=function(t,a,r){var u=this.getTypePolicy(t),s=a.keyFields,c=a.fields;function d(p,m){p.merge=typeof m=="function"?m:m===!0?xb:m===!1?Rb:p.merge}d(u,a.merge),u.keyFn=s===!1?jw:vt(s)?Ob(s):typeof s=="function"?s:u.keyFn,c&&Object.keys(c).forEach(function(p){var m=r[p];(!m||(m==null?void 0:m.typename)!==t)&&(m=r[p]={typename:t});var v=c[p];if(typeof v=="function")m.read=v;else{var y=v.keyArgs,b=v.read,_=v.merge;m.keyFn=y===!1?Db:vt(y)?wb(y):typeof y=="function"?y:m.keyFn,typeof b=="function"&&(m.read=b),d(m,_)}m.read&&m.merge&&(m.keyFn=m.keyFn||Db)})},e.prototype.setRootTypename=function(t,a){a===void 0&&(a=t);var r="ROOT_"+t.toUpperCase(),u=this.rootTypenamesById[r];a!==u&&(ne(!u||u===t,6,t),u&&delete this.rootIdsByTypename[u],this.rootIdsByTypename[a]=r,this.rootTypenamesById[r]=a)},e.prototype.addPossibleTypes=function(t){var a=this;this.usingPossibleTypes=!0,Object.keys(t).forEach(function(r){a.getSupertypeSet(r,!0),t[r].forEach(function(u){a.getSupertypeSet(u,!0).add(r);var s=u.match(I_);(!s||s[0]!==u)&&a.fuzzySubtypes.set(u,new RegExp(u))})})},e.prototype.getTypePolicy=function(t){var a=this;if(!jt.call(this.typePolicies,t)){var r=this.typePolicies[t]=Object.create(null);r.fields=Object.create(null);var u=this.supertypeMap.get(t);!u&&this.fuzzySubtypes.size&&(u=this.getSupertypeSet(t,!0),this.fuzzySubtypes.forEach(function(c,d){if(c.test(t)){var p=a.supertypeMap.get(d);p&&p.forEach(function(m){return u.add(m)})}})),u&&u.size&&u.forEach(function(c){var d=a.getTypePolicy(c),p=d.fields,m=Sn(d,["fields"]);Object.assign(r,m),Object.assign(r.fields,p)})}var s=this.toBeAdded[t];return s&&s.length&&s.splice(0).forEach(function(c){a.updateTypePolicy(t,c,a.typePolicies[t].fields)}),this.typePolicies[t]},e.prototype.getFieldPolicy=function(t,a){if(t)return this.getTypePolicy(t).fields[a]},e.prototype.getSupertypeSet=function(t,a){var r=this.supertypeMap.get(t);return!r&&a&&this.supertypeMap.set(t,r=new Set),r},e.prototype.fragmentMatches=function(t,a,r,u){var s=this;if(!t.typeCondition)return!0;if(!a)return!1;var c=t.typeCondition.name.value;if(a===c)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(c))for(var d=this.getSupertypeSet(a,!0),p=[d],m=function(E){var T=s.getSupertypeSet(E,!1);T&&T.size&&p.indexOf(T)<0&&p.push(T)},v=!!(r&&this.fuzzySubtypes.size),y=!1,b=0;b<p.length;++b){var _=p[b];if(_.has(c))return d.has(c)||(y&&globalThis.__DEV__!==!1&&ne.warn(7,a,c),d.add(c)),!0;_.forEach(m),v&&b===p.length-1&&jh(t.selectionSet,r,u)&&(v=!1,y=!0,this.fuzzySubtypes.forEach(function(E,T){var D=a.match(E);D&&D[0]===a&&m(T)}))}return!1},e.prototype.hasKeyArgs=function(t,a){var r=this.getFieldPolicy(t,a);return!!(r&&r.keyFn)},e.prototype.getStoreFieldName=function(t){var a=t.typename,r=t.fieldName,u=this.getFieldPolicy(a,r),s,c=u&&u.keyFn;if(c&&a)for(var d={typename:a,fieldName:r,field:t.field||null,variables:t.variables},p=Mh(t);c;){var m=c(p,d);if(vt(m))c=wb(m);else{s=m||r;break}}return s===void 0&&(s=t.field?PT(t.field,t.variables):i_(r,Mh(t))),s===!1?r:r===_i(s)?s:r+":"+s},e.prototype.readField=function(t,a){var r=t.from;if(r){var u=t.field||t.fieldName;if(u){if(t.typename===void 0){var s=a.store.getFieldValue(r,"__typename");s&&(t.typename=s)}var c=this.getStoreFieldName(t),d=_i(c),p=a.store.getFieldValue(r,c),m=this.getFieldPolicy(t.typename,d),v=m&&m.read;if(v){var y=Ab(this,r,t,a,a.store.getStorage($e(r)?r.__ref:r,c));return ym.withValue(this.cache,v,[p,y])}return p}}},e.prototype.getReadFunction=function(t,a){var r=this.getFieldPolicy(t,a);return r&&r.read},e.prototype.getMergeFunction=function(t,a,r){var u=this.getFieldPolicy(t,a),s=u&&u.merge;return!s&&r&&(u=this.getTypePolicy(r),s=u&&u.merge),s},e.prototype.runMergeFunction=function(t,a,r,u,s){var c=r.field,d=r.typename,p=r.merge;return p===xb?P_(u.store)(t,a):p===Rb?a:(u.overwrite&&(t=void 0),p(t,a,Ab(this,void 0,{typename:d,fieldName:c.name.value,field:c,variables:u.variables},u,s||Object.create(null))))},e})();function Ab(e,t,a,r,u){var s=e.getStoreFieldName(a),c=_i(s),d=a.variables||r.variables,p=r.store,m=p.toReference,v=p.canRead;return{args:Mh(a),field:a.field||null,fieldName:c,storeFieldName:s,variables:d,isReference:$e,toReference:m,storage:u,cache:e.cache,canRead:v,readField:function(){return e.readField(_m(arguments,t,d),r)},mergeObjects:P_(r.store)}}function _m(e,t,a){var r=e[0],u=e[1],s=e.length,c;return typeof r=="string"?c={fieldName:r,from:s>1?u:t}:(c=j({},r),jt.call(c,"from")||(c.from=t)),globalThis.__DEV__!==!1&&c.from===void 0&&globalThis.__DEV__!==!1&&ne.warn(8,Y0(Array.from(e))),c.variables===void 0&&(c.variables=a),c}function P_(e){return function(a,r){if(vt(a)||vt(r))throw Wt(9);if(ut(a)&&ut(r)){var u=e.getFieldValue(a,"__typename"),s=e.getFieldValue(r,"__typename"),c=u&&s&&u!==s;if(c)return r;if($e(a)&&al(r))return e.merge(a.__ref,r),a;if(al(a)&&$e(r))return e.merge(a,r.__ref),r;if(al(a)&&al(r))return j(j({},a),r)}return r}}function Yd(e,t,a){var r="".concat(t).concat(a),u=e.flavors.get(r);return u||e.flavors.set(r,u=e.clientOnly===t&&e.deferred===a?e:j(j({},e),{clientOnly:t,deferred:a})),u}var Fw=(function(){function e(t,a,r){this.cache=t,this.reader=a,this.fragments=r}return e.prototype.writeToStore=function(t,a){var r=this,u=a.query,s=a.result,c=a.dataId,d=a.variables,p=a.overwrite,m=er(u),v=Nw();d=j(j({},lm(m)),d);var y=j(j({store:t,written:Object.create(null),merge:function(_,E){return v.merge(_,E)},variables:d,varString:vi(d)},Z_(u,this.fragments)),{overwrite:!!p,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),b=this.processSelectionSet({result:s||Object.create(null),dataId:c,selectionSet:m.selectionSet,mergeTree:{map:new Map},context:y});if(!$e(b))throw Wt(12,s);return y.incomingById.forEach(function(_,E){var T=_.storeObject,D=_.mergeTree,N=_.fieldNodeSet,w=ol(E);if(D&&D.map.size){var O=r.applyMerges(D,w,T,y);if($e(O))return;T=O}if(globalThis.__DEV__!==!1&&!y.overwrite){var M=Object.create(null);N.forEach(function($){$.selectionSet&&(M[$.name.value]=!0)});var z=function($){return M[_i($)]===!0},Z=function($){var W=D&&D.map.get($);return!!(W&&W.info&&W.info.merge)};Object.keys(T).forEach(function($){z($)&&!Z($)&&Vw(w,T,$,y.store)})}t.merge(E,T)}),t.retain(b.__ref),b},e.prototype.processSelectionSet=function(t){var a=this,r=t.dataId,u=t.result,s=t.selectionSet,c=t.context,d=t.mergeTree,p=this.cache.policies,m=Object.create(null),v=r&&p.rootTypenamesById[r]||Eh(u,s,c.fragmentMap)||r&&c.store.get(r,"__typename");typeof v=="string"&&(m.__typename=v);var y=function(){var O=_m(arguments,m,c.variables);if($e(O.from)){var M=c.incomingById.get(O.from.__ref);if(M){var z=p.readField(j(j({},O),{from:M.storeObject}),c);if(z!==void 0)return z}}return p.readField(O,c)},b=new Set;this.flattenFields(s,u,c,v).forEach(function(O,M){var z,Z=ja(M),$=u[Z];if(b.add(M),$!==void 0){var W=p.getStoreFieldName({typename:v,fieldName:M.name.value,field:M,variables:O.variables}),se=zb(d,W),Ne=a.processFieldValue($,M,M.selectionSet?Yd(O,!1,!1):O,se),Be=void 0;M.selectionSet&&($e(Ne)||al(Ne))&&(Be=y("__typename",Ne));var le=p.getMergeFunction(v,M.name.value,Be);le?se.info={field:M,typename:v,merge:le}:Cb(d,W),m=O.merge(m,(z={},z[W]=Ne,z))}else globalThis.__DEV__!==!1&&!O.clientOnly&&!O.deferred&&!cm.added(M)&&!p.getReadFunction(v,M.name.value)&&globalThis.__DEV__!==!1&&ne.error(13,ja(M),u)});try{var _=p.identify(u,{typename:v,selectionSet:s,fragmentMap:c.fragmentMap,storeObject:m,readField:y}),E=_[0],T=_[1];r=r||E,T&&(m=c.merge(m,T))}catch(O){if(!r)throw O}if(typeof r=="string"){var D=ol(r),N=c.written[r]||(c.written[r]=[]);if(N.indexOf(s)>=0||(N.push(s),this.reader&&this.reader.isFresh(u,D,s,c)))return D;var w=c.incomingById.get(r);return w?(w.storeObject=c.merge(w.storeObject,m),w.mergeTree=Fh(w.mergeTree,d),b.forEach(function(O){return w.fieldNodeSet.add(O)})):c.incomingById.set(r,{storeObject:m,mergeTree:Zs(d)?void 0:d,fieldNodeSet:b}),D}return m},e.prototype.processFieldValue=function(t,a,r,u){var s=this;return!a.selectionSet||t===null?globalThis.__DEV__!==!1?T_(t):t:vt(t)?t.map(function(c,d){var p=s.processFieldValue(c,a,r,zb(u,d));return Cb(u,d),p}):this.processSelectionSet({result:t,selectionSet:a.selectionSet,context:r,mergeTree:u})},e.prototype.flattenFields=function(t,a,r,u){u===void 0&&(u=Eh(a,t,r.fragmentMap));var s=new Map,c=this.cache.policies,d=new Va(!1);return(function p(m,v){var y=d.lookup(m,v.clientOnly,v.deferred);y.visited||(y.visited=!0,m.selections.forEach(function(b){if(Ku(b,r.variables)){var _=v.clientOnly,E=v.deferred;if(!(_&&E)&&Fn(b.directives)&&b.directives.forEach(function(N){var w=N.name.value;if(w==="client"&&(_=!0),w==="defer"){var O=ic(N,r.variables);(!O||O.if!==!1)&&(E=!0)}}),yi(b)){var T=s.get(b);T&&(_=_&&T.clientOnly,E=E&&T.deferred),s.set(b,Yd(r,_,E))}else{var D=ac(b,r.lookupFragment);if(!D&&b.kind===nt.FRAGMENT_SPREAD)throw Wt(14,b.name.value);D&&c.fragmentMatches(D,u,a,r.variables)&&p(D.selectionSet,Yd(r,_,E))}}}))})(t,r),s},e.prototype.applyMerges=function(t,a,r,u,s){var c,d=this;if(t.map.size&&!$e(r)){var p=!vt(r)&&($e(a)||al(a))?a:void 0,m=r;p&&!s&&(s=[$e(p)?p.__ref:p]);var v,y=function(b,_){return vt(b)?typeof _=="number"?b[_]:void 0:u.store.getFieldValue(b,String(_))};t.map.forEach(function(b,_){var E=y(p,_),T=y(m,_);if(T!==void 0){s&&s.push(_);var D=d.applyMerges(b,E,T,u,s);D!==T&&(v=v||new Map,v.set(_,D)),s&&ne(s.pop()===_)}}),v&&(r=vt(m)?m.slice(0):j({},m),v.forEach(function(b,_){r[_]=b}))}return t.info?this.cache.policies.runMergeFunction(a,r,t.info,u,s&&(c=u.store).getStorage.apply(c,s)):r},e})(),X_=[];function zb(e,t){var a=e.map;return a.has(t)||a.set(t,X_.pop()||{map:new Map}),a.get(t)}function Fh(e,t){if(e===t||!t||Zs(t))return e;if(!e||Zs(e))return t;var a=e.info&&t.info?j(j({},e.info),t.info):e.info||t.info,r=e.map.size&&t.map.size,u=r?new Map:e.map.size?e.map:t.map,s={info:a,map:u};if(r){var c=new Set(t.map.keys());e.map.forEach(function(d,p){s.map.set(p,Fh(d,t.map.get(p))),c.delete(p)}),c.forEach(function(d){s.map.set(d,Fh(t.map.get(d),e.map.get(d)))})}return s}function Zs(e){return!e||!(e.info||e.map.size)}function Cb(e,t){var a=e.map,r=a.get(t);r&&Zs(r)&&(X_.push(r),a.delete(t))}var jb=new Set;function Vw(e,t,a,r){var u=function(y){var b=r.getFieldValue(y,a);return typeof b=="object"&&b},s=u(e);if(s){var c=u(t);if(c&&!$e(s)&&!Qe(s,c)&&!Object.keys(s).every(function(y){return r.getFieldValue(c,y)!==void 0})){var d=r.getFieldValue(e,"__typename")||r.getFieldValue(t,"__typename"),p=_i(a),m="".concat(d,".").concat(p);if(!jb.has(m)){jb.add(m);var v=[];!vt(s)&&!vt(c)&&[s,c].forEach(function(y){var b=r.getFieldValue(y,"__typename");typeof b=="string"&&!v.includes(b)&&v.push(b)}),globalThis.__DEV__!==!1&&ne.warn(15,p,d,v.length?"either ensure all objects of type "+v.join(" and ")+" have an ID or a custom merge function, or ":"",m,j({},s),j({},c))}}}}var J_=(function(e){Xn(t,e);function t(a){a===void 0&&(a={});var r=e.call(this)||this;return r.watches=new Set,r.addTypenameTransform=new g_(cm),r.assumeImmutableResults=!0,r.makeVar=zw,r.txCount=0,globalThis.__DEV__!==!1&&(pt(a,"addTypename","InMemoryCache","Please remove the `addTypename` option when initializing `InMemoryCache`."),pt(a,"canonizeResults","InMemoryCache","Please remove the `canonizeResults` option when initializing `InMemoryCache`.")),r.config=kw(a),r.addTypename=!!r.config.addTypename,r.policies=new Mw({cache:r,dataIdFromObject:r.config.dataIdFromObject,possibleTypes:r.config.possibleTypes,typePolicies:r.config.typePolicies}),r.init(),r}return t.prototype.init=function(){var a=this.data=new Pu.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=a.stump,this.resetResultCache()},t.prototype.resetResultCache=function(a){var r=this,u=this.storeReader,s=this.config.fragments;this.addTypenameTransform.resetCache(),s==null||s.resetCaches(),this.storeWriter=new Fw(this,this.storeReader=new Dw({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:B_(this.config),canon:a?void 0:u&&u.canon,fragments:s}),s),this.maybeBroadcastWatch=Yu(function(c,d){return r.broadcastWatch(c,d)},{max:this.config.resultCacheMaxSize||ua["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:function(c){var d=c.optimistic?r.optimisticData:r.data;if(Qu(d)){var p=c.optimistic,m=c.id,v=c.variables;return d.makeCacheKey(c.query,c.callback,vi({optimistic:p,id:m,variables:v}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(c){return c.resetCaching()})},t.prototype.restore=function(a){return this.init(),a&&this.data.replace(a),this},t.prototype.extract=function(a){return a===void 0&&(a=!1),(a?this.optimisticData:this.data).extract()},t.prototype.read=function(a){globalThis.__DEV__!==!1&&pt(a,"canonizeResults","cache.read");var r=a.returnPartialData,u=r===void 0?!1:r;try{return this.storeReader.diffQueryAgainstStore(j(j({},a),{store:a.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:u})).result||null}catch(s){if(s instanceof L_)return null;throw s}},t.prototype.write=function(a){try{return++this.txCount,this.storeWriter.writeToStore(this.data,a)}finally{!--this.txCount&&a.broadcast!==!1&&this.broadcastWatches()}},t.prototype.modify=function(a){if(jt.call(a,"id")&&!a.id)return!1;var r=a.optimistic?this.optimisticData:this.data;try{return++this.txCount,r.modify(a.id||"ROOT_QUERY",a.fields)}finally{!--this.txCount&&a.broadcast!==!1&&this.broadcastWatches()}},t.prototype.diff=function(a){return globalThis.__DEV__!==!1&&pt(a,"canonizeResults","cache.diff"),this.storeReader.diffQueryAgainstStore(j(j({},a),{store:a.optimistic?this.optimisticData:this.data,rootId:a.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(a){var r=this;return this.watches.size||Aw(this),this.watches.add(a),a.immediate&&this.maybeBroadcastWatch(a),function(){r.watches.delete(a)&&!r.watches.size&&Nb(r),r.maybeBroadcastWatch.forget(a)}},t.prototype.gc=function(a){globalThis.__DEV__!==!1&&pt(a||{},"resetResultIdentities","cache.gc","First ensure all usages of `canonizeResults` are removed, then remove this option."),vi.reset(),pi.reset();var r=this.optimisticData.gc();return a&&!this.txCount&&(a.resetResultCache?this.resetResultCache(a.resetResultIdentities):a.resetResultIdentities&&this.storeReader.resetCanon()),r},t.prototype.retain=function(a,r){return(r?this.optimisticData:this.data).retain(a)},t.prototype.release=function(a,r){return(r?this.optimisticData:this.data).release(a)},t.prototype.identify=function(a){if($e(a))return a.__ref;try{return this.policies.identify(a)[0]}catch(r){globalThis.__DEV__!==!1&&ne.warn(r)}},t.prototype.evict=function(a){if(!a.id){if(jt.call(a,"id"))return!1;a=j(j({},a),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(a,this.data)}finally{!--this.txCount&&a.broadcast!==!1&&this.broadcastWatches()}},t.prototype.reset=function(a){var r=this;return this.init(),vi.reset(),a&&a.discardWatches?(this.watches.forEach(function(u){return r.maybeBroadcastWatch.forget(u)}),this.watches.clear(),Nb(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(a){var r=this.optimisticData.removeLayer(a);r!==this.optimisticData&&(this.optimisticData=r,this.broadcastWatches())},t.prototype.batch=function(a){var r=this,u=a.update,s=a.optimistic,c=s===void 0?!0:s,d=a.removeOptimistic,p=a.onWatchUpdated,m,v=function(b){var _=r,E=_.data,T=_.optimisticData;++r.txCount,b&&(r.data=r.optimisticData=b);try{return m=u(r)}finally{--r.txCount,r.data=E,r.optimisticData=T}},y=new Set;return p&&!this.txCount&&this.broadcastWatches(j(j({},a),{onWatchUpdated:function(b){return y.add(b),!1}})),typeof c=="string"?this.optimisticData=this.optimisticData.addLayer(c,v):c===!1?v(this.data):v(),typeof d=="string"&&(this.optimisticData=this.optimisticData.removeLayer(d)),p&&y.size?(this.broadcastWatches(j(j({},a),{onWatchUpdated:function(b,_){var E=p.call(this,b,_);return E!==!1&&y.delete(b),E}})),y.size&&y.forEach(function(b){return r.maybeBroadcastWatch.dirty(b)})):this.broadcastWatches(a),m},t.prototype.performTransaction=function(a,r){return this.batch({update:a,optimistic:r||r!==null})},t.prototype.transformDocument=function(a){return this.addTypenameToDocument(this.addFragmentsToDocument(a))},t.prototype.fragmentMatches=function(a,r){return this.policies.fragmentMatches(a,r)},t.prototype.lookupFragment=function(a){var r;return((r=this.config.fragments)===null||r===void 0?void 0:r.lookup(a))||null},t.prototype.broadcastWatches=function(a){var r=this;this.txCount||this.watches.forEach(function(u){return r.maybeBroadcastWatch(u,a)})},t.prototype.addFragmentsToDocument=function(a){var r=this.config.fragments;return r?r.transform(a):a},t.prototype.addTypenameToDocument=function(a){return this.addTypename?this.addTypenameTransform.transformDocument(a):a},t.prototype.broadcastWatch=function(a,r){var u=this,s=a.lastDiff,c=Mt("canonizeResults",function(){return u.diff(a)});r&&(a.optimistic&&typeof r.optimistic=="string"&&(c.fromOptimisticTransaction=!0),r.onWatchUpdated&&r.onWatchUpdated.call(this,a,c,s)===!1)||(!s||!Qe(s.result,c.result))&&a.callback(a.lastDiff=c,s)},t})(U_);globalThis.__DEV__!==!1&&(J_.prototype.getMemoryInternals=AT);var Ue;(function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error"})(Ue||(Ue={}));function il(e){return e?e<7:!1}var Mb=Object.assign,Uw=Object.hasOwnProperty,Iu=(function(e){Xn(t,e);function t(a){var r=a.queryManager,u=a.queryInfo,s=a.options,c=this,d=t.inactiveOnCreation.getValue();c=e.call(this,function(N){c._getOrCreateQuery();try{var w=N._subscription._observer;w&&!w.error&&(w.error=Lw)}catch{}var O=!c.observers.size;c.observers.add(N);var M=c.last;return M&&M.error?N.error&&N.error(M.error):M&&M.result&&N.next&&N.next(c.maskResult(M.result)),O&&c.reobserve().catch(function(){}),function(){c.observers.delete(N)&&!c.observers.size&&c.tearDownQuery()}})||this,c.observers=new Set,c.subscriptions=new Set,c.dirty=!1,c._getOrCreateQuery=function(){return d&&(r.queries.set(c.queryId,u),d=!1),c.queryManager.getOrCreateQuery(c.queryId)},c.queryInfo=u,c.queryManager=r,c.waitForOwnResult=Pd(s.fetchPolicy),c.isTornDown=!1,c.subscribeToMore=c.subscribeToMore.bind(c),c.maskResult=c.maskResult.bind(c);var p=r.defaultOptions.watchQuery,m=p===void 0?{}:p,v=m.fetchPolicy,y=v===void 0?"cache-first":v,b=s.fetchPolicy,_=b===void 0?y:b,E=s.initialFetchPolicy,T=E===void 0?_==="standby"?y:_:E;c.options=j(j({},s),{initialFetchPolicy:T,fetchPolicy:_}),c.queryId=u.queryId||r.generateQueryId();var D=er(c.query);return c.queryName=D&&D.name&&D.name.value,c}return Object.defineProperty(t.prototype,"query",{get:function(){return this.lastQuery||this.options.query},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var a=this;return globalThis.__DEV__!==!1&&hi("observableQuery.result",function(){globalThis.__DEV__!==!1&&ne.warn(23)}),new Promise(function(r,u){var s={next:function(d){r(d),a.observers.delete(s),a.observers.size||a.queryManager.removeQuery(a.queryId),setTimeout(function(){c.unsubscribe()},0)},error:u},c=a.subscribe(s)})},t.prototype.resetDiff=function(){this.queryInfo.resetDiff()},t.prototype.getCurrentFullResult=function(a){var r=this;a===void 0&&(a=!0);var u=Mt("getLastResult",function(){return r.getLastResult(!0)}),s=this.queryInfo.networkStatus||u&&u.networkStatus||Ue.ready,c=j(j({},u),{loading:il(s),networkStatus:s}),d=this.options.fetchPolicy,p=d===void 0?"cache-first":d;if(!(Pd(p)||this.queryManager.getDocumentInfo(this.query).hasForcedResolvers))if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var m=this.queryInfo.getDiff();(m.complete||this.options.returnPartialData)&&(c.data=m.result),Qe(c.data,{})&&(c.data=void 0),m.complete?(delete c.partial,m.complete&&c.networkStatus===Ue.loading&&(p==="cache-first"||p==="cache-only")&&(c.networkStatus=Ue.ready,c.loading=!1)):c.partial=!0,c.networkStatus===Ue.ready&&(c.error||c.errors)&&(c.networkStatus=Ue.error),globalThis.__DEV__!==!1&&!m.complete&&!this.options.partialRefetch&&!c.loading&&!c.data&&!c.error&&K_(m.missing)}return a&&this.updateLastResult(c),c},t.prototype.getCurrentResult=function(a){return a===void 0&&(a=!0),this.maskResult(this.getCurrentFullResult(a))},t.prototype.isDifferentFromLastResult=function(a,r){if(!this.last)return!0;var u=this.queryManager.getDocumentInfo(this.query),s=this.queryManager.dataMasking,c=s?u.nonReactiveQuery:this.query,d=s||u.hasNonreactiveDirective?!z_(c,this.last.result,a,this.variables):!Qe(this.last.result,a);return d||r&&!Qe(this.last.variables,r)},t.prototype.getLast=function(a,r){var u=this.last;if(u&&u[a]&&(!r||Qe(u.variables,this.variables)))return u[a]},t.prototype.getLastResult=function(a){return globalThis.__DEV__!==!1&&hi("getLastResult",function(){globalThis.__DEV__!==!1&&ne.warn(24)}),this.getLast("result",a)},t.prototype.getLastError=function(a){return globalThis.__DEV__!==!1&&hi("getLastError",function(){globalThis.__DEV__!==!1&&ne.warn(25)}),this.getLast("error",a)},t.prototype.resetLastResults=function(){globalThis.__DEV__!==!1&&hi("resetLastResults",function(){globalThis.__DEV__!==!1&&ne.warn(26)}),delete this.last,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){globalThis.__DEV__!==!1&&globalThis.__DEV__!==!1&&ne.warn(27),this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(a){var r,u={pollInterval:0},s=this.options.fetchPolicy;if(s==="no-cache"?u.fetchPolicy="no-cache":u.fetchPolicy="network-only",globalThis.__DEV__!==!1&&a&&Uw.call(a,"variables")){var c=r_(this.query),d=c.variableDefinitions;(!d||!d.some(function(p){return p.variable.name.value==="variables"}))&&globalThis.__DEV__!==!1&&ne.warn(28,a,((r=c.name)===null||r===void 0?void 0:r.value)||c)}return a&&!Qe(this.options.variables,a)&&(u.variables=this.options.variables=j(j({},this.options.variables),a)),this.queryInfo.resetLastWrite(),this.reobserve(u,Ue.refetch)},t.prototype.fetchMore=function(a){var r=this,u=j(j({},a.query?a:j(j(j(j({},this.options),{query:this.options.query}),a),{variables:j(j({},this.options.variables),a.variables)})),{fetchPolicy:"no-cache"});u.query=this.transformDocument(u.query);var s=this.queryManager.generateQueryId();this.lastQuery=a.query?this.transformDocument(this.options.query):u.query;var c=this.queryInfo,d=c.networkStatus;c.networkStatus=Ue.fetchMore,u.notifyOnNetworkStatusChange&&this.observe();var p=new Set,m=a==null?void 0:a.updateQuery,v=this.options.fetchPolicy!=="no-cache";return v||ne(m,29),this.queryManager.fetchQuery(s,u,Ue.fetchMore).then(function(y){if(r.queryManager.removeQuery(s),c.networkStatus===Ue.fetchMore&&(c.networkStatus=d),v)r.queryManager.cache.batch({update:function(E){var T=a.updateQuery;T?E.updateQuery({query:r.query,variables:r.variables,returnPartialData:!0,optimistic:!1},function(D){return T(D,{fetchMoreResult:y.data,variables:u.variables})}):E.writeQuery({query:u.query,variables:u.variables,data:y.data})},onWatchUpdated:function(E){p.add(E.query)}});else{var b=r.getLast("result"),_=m(b.data,{fetchMoreResult:y.data,variables:u.variables});r.reportResult(j(j({},b),{networkStatus:d,loading:il(d),data:_}),r.variables)}return r.maskResult(y)}).finally(function(){v&&!p.has(r.query)&&r.reobserveCacheFirst()})},t.prototype.subscribeToMore=function(a){var r=this,u=this.queryManager.startGraphQLSubscription({query:a.document,variables:a.variables,context:a.context}).subscribe({next:function(s){var c=a.updateQuery;c&&r.updateQuery(function(d,p){return c(d,j({subscriptionData:s},p))})},error:function(s){if(a.onError){a.onError(s);return}globalThis.__DEV__!==!1&&ne.error(30,s)}});return this.subscriptions.add(u),function(){r.subscriptions.delete(u)&&u.unsubscribe()}},t.prototype.setOptions=function(a){return globalThis.__DEV__!==!1&&(pt(a,"canonizeResults","setOptions"),hi("setOptions",function(){globalThis.__DEV__!==!1&&ne.warn(31)})),this.reobserve(a)},t.prototype.silentSetOptions=function(a){var r=tr(this.options,a||{});Mb(this.options,r)},t.prototype.setVariables=function(a){var r=this;return Qe(this.variables,a)?this.observers.size?Mt("observableQuery.result",function(){return r.result()}):Promise.resolve():(this.options.variables=a,this.observers.size?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:a},Ue.setVariables):Promise.resolve())},t.prototype.updateQuery=function(a){var r=this.queryManager,u=r.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}),s=u.result,c=u.complete,d=a(s,{variables:this.variables,complete:!!c,previousData:s});d&&(r.cache.writeQuery({query:this.options.query,data:d,variables:this.variables}),r.broadcastQueries())},t.prototype.startPolling=function(a){this.options.pollInterval=a,this.updatePolling()},t.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},t.prototype.applyNextFetchPolicy=function(a,r){if(r.nextFetchPolicy){var u=r.fetchPolicy,s=u===void 0?"cache-first":u,c=r.initialFetchPolicy,d=c===void 0?s:c;s==="standby"||(typeof r.nextFetchPolicy=="function"?r.fetchPolicy=r.nextFetchPolicy(s,{reason:a,options:r,observable:this,initialFetchPolicy:d}):a==="variables-changed"?r.fetchPolicy=d:r.fetchPolicy=r.nextFetchPolicy)}return r.fetchPolicy},t.prototype.fetch=function(a,r,u){var s=this._getOrCreateQuery();return s.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(s,a,r,u)},t.prototype.updatePolling=function(){var a=this;if(!this.queryManager.ssrMode){var r=this,u=r.pollingInfo,s=r.options.pollInterval;if(!s||!this.hasObservers()){u&&(clearTimeout(u.timeout),delete this.pollingInfo);return}if(!(u&&u.interval===s)){ne(s,32);var c=u||(this.pollingInfo={});c.interval=s;var d=function(){var m,v;a.pollingInfo&&(!il(a.queryInfo.networkStatus)&&!(!((v=(m=a.options).skipPollAttempt)===null||v===void 0)&&v.call(m))?a.reobserve({fetchPolicy:a.options.initialFetchPolicy==="no-cache"?"no-cache":"network-only"},Ue.poll).then(p,p):p())},p=function(){var m=a.pollingInfo;m&&(clearTimeout(m.timeout),m.timeout=setTimeout(d,m.interval))};p()}}},t.prototype.updateLastResult=function(a,r){var u=this;r===void 0&&(r=this.variables);var s=Mt("getLastError",function(){return u.getLastError()});return s&&this.last&&!Qe(r,this.last.variables)&&(s=void 0),this.last=j({result:this.queryManager.assumeImmutableResults?a:T_(a),variables:r},s?{error:s}:null)},t.prototype.reobserveAsConcast=function(a,r){var u=this;this.isTornDown=!1;var s=r===Ue.refetch||r===Ue.fetchMore||r===Ue.poll,c=this.options.variables,d=this.options.fetchPolicy,p=tr(this.options,a||{}),m=s?p:Mb(this.options,p),v=this.transformDocument(m.query);this.lastQuery=v,s||(this.updatePolling(),a&&a.variables&&!Qe(a.variables,c)&&m.fetchPolicy!=="standby"&&(m.fetchPolicy===d||typeof m.nextFetchPolicy=="function")&&(this.applyNextFetchPolicy("variables-changed",m),r===void 0&&(r=Ue.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=Pd(m.fetchPolicy));var y=function(){u.concast===E&&(u.waitForOwnResult=!1)},b=m.variables&&j({},m.variables),_=this.fetch(m,r,v),E=_.concast,T=_.fromLink,D={next:function(N){Qe(u.variables,b)&&(y(),u.reportResult(N,b))},error:function(N){Qe(u.variables,b)&&(x_(N)||(N=new cn({networkError:N})),y(),u.reportError(N,b))}};return!s&&(T||!this.concast)&&(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=E,this.observer=D),E.addObserver(D),E},t.prototype.reobserve=function(a,r){return wO(this.reobserveAsConcast(a,r).promise.then(this.maskResult))},t.prototype.resubscribeAfterError=function(){for(var a=this,r=[],u=0;u<arguments.length;u++)r[u]=arguments[u];var s=this.last;Mt("resetLastResults",function(){return a.resetLastResults()});var c=this.subscribe.apply(this,r);return this.last=s,c},t.prototype.observe=function(){this.reportResult(this.getCurrentFullResult(!1),this.variables)},t.prototype.reportResult=function(a,r){var u=this,s=Mt("getLastError",function(){return u.getLastError()}),c=this.isDifferentFromLastResult(a,r);(s||!a.partial||this.options.returnPartialData)&&this.updateLastResult(a,r),(s||c)&&Lu(this.observers,"next",this.maskResult(a))},t.prototype.reportError=function(a,r){var u=this,s=j(j({},Mt("getLastResult",function(){return u.getLastResult()})),{error:a,errors:a.graphQLErrors,networkStatus:Ue.error,loading:!1});this.updateLastResult(s,r),Lu(this.observers,"error",this.last.error=a)},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(a){return a.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t.prototype.transformDocument=function(a){return this.queryManager.transform(a)},t.prototype.maskResult=function(a){return a&&"data"in a?j(j({},a),{data:this.queryManager.maskOperation({document:this.query,data:a.data,fetchPolicy:this.options.fetchPolicy,id:this.queryId})}):a},t.prototype.resetNotifications=function(){this.cancelNotifyTimeout(),this.dirty=!1},t.prototype.cancelNotifyTimeout=function(){this.notifyTimeout&&(clearTimeout(this.notifyTimeout),this.notifyTimeout=void 0)},t.prototype.scheduleNotify=function(){var a=this;this.dirty||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return a.notify()},0)))},t.prototype.notify=function(){if(this.cancelNotifyTimeout(),this.dirty&&(this.options.fetchPolicy=="cache-only"||this.options.fetchPolicy=="cache-and-network"||!il(this.queryInfo.networkStatus))){var a=this.queryInfo.getDiff();a.fromOptimisticTransaction?this.observe():this.reobserveCacheFirst()}this.dirty=!1},t.prototype.reobserveCacheFirst=function(){var a=this.options,r=a.fetchPolicy,u=a.nextFetchPolicy;return r==="cache-and-network"||r==="network-only"?this.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(s,c){return this.nextFetchPolicy=u,typeof this.nextFetchPolicy=="function"?this.nextFetchPolicy(s,c):r}}):this.reobserve()},t.inactiveOnCreation=new Sl,t})(et);O_(Iu);function Lw(e){globalThis.__DEV__!==!1&&ne.error(33,e.message,e.stack)}function K_(e){globalThis.__DEV__!==!1&&e&&globalThis.__DEV__!==!1&&ne.debug(34,e)}function Pd(e){return e==="network-only"||e==="no-cache"||e==="standby"}var rl=new(ar?WeakMap:Map);function Xd(e,t){var a=e[t];typeof a=="function"&&(e[t]=function(){return rl.set(e,(rl.get(e)+1)%1e15),a.apply(this,arguments)})}var Jd=(function(){function e(t,a){a===void 0&&(a=t.generateQueryId()),this.queryId=a,this.document=null,this.lastRequestId=1,this.stopped=!1,this.observableQuery=null;var r=this.cache=t.cache;rl.has(r)||(rl.set(r,0),Xd(r,"evict"),Xd(r,"modify"),Xd(r,"reset"))}return e.prototype.init=function(t){var a=t.networkStatus||Ue.loading;return this.variables&&this.networkStatus!==Ue.loading&&!Qe(this.variables,t.variables)&&(a=Ue.setVariables),Qe(t.variables,this.variables)||(this.lastDiff=void 0,this.cancel()),Object.assign(this,{document:t.document,variables:t.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:a}),t.observableQuery&&this.setObservableQuery(t.observableQuery),t.lastRequestId&&(this.lastRequestId=t.lastRequestId),this},e.prototype.resetDiff=function(){this.lastDiff=void 0},e.prototype.getDiff=function(){var t=this,a=this.getDiffOptions();if(this.lastDiff&&Qe(a,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var r=this.observableQuery;if(r&&r.options.fetchPolicy==="no-cache")return{complete:!1};var u=Mt("canonizeResults",function(){return t.cache.diff(a)});return this.updateLastDiff(u,a),u},e.prototype.updateLastDiff=function(t,a){this.lastDiff=t?{diff:t,options:a||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(t){var a;return t===void 0&&(t=this.variables),{query:this.document,variables:t,returnPartialData:!0,optimistic:!0,canonizeResults:(a=this.observableQuery)===null||a===void 0?void 0:a.options.canonizeResults}},e.prototype.setDiff=function(t){var a=this,r,u=this.lastDiff&&this.lastDiff.diff;t&&!t.complete&&Mt("getLastError",function(){var s;return(s=a.observableQuery)===null||s===void 0?void 0:s.getLastError()})||(this.updateLastDiff(t),Qe(u&&u.result,t&&t.result)||(r=this.observableQuery)===null||r===void 0||r.scheduleNotify())},e.prototype.setObservableQuery=function(t){t!==this.observableQuery&&(this.observableQuery=t,t&&(t.queryInfo=this))},e.prototype.stop=function(){var t;if(!this.stopped){this.stopped=!0,(t=this.observableQuery)===null||t===void 0||t.resetNotifications(),this.cancel();var a=this.observableQuery;a&&a.stopPolling()}},e.prototype.cancel=function(){var t;(t=this.cancelWatch)===null||t===void 0||t.call(this),this.cancelWatch=void 0},e.prototype.updateWatch=function(t){var a=this;t===void 0&&(t=this.variables);var r=this.observableQuery;if(!(r&&r.options.fetchPolicy==="no-cache")){var u=j(j({},this.getDiffOptions(t)),{watcher:this,callback:function(s){return a.setDiff(s)}});(!this.lastWatch||!Qe(u,this.lastWatch))&&(this.cancel(),this.cancelWatch=this.cache.watch(this.lastWatch=u))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(t,a){var r=this.lastWrite;return!(r&&r.dmCount===rl.get(this.cache)&&Qe(a,r.variables)&&Qe(t.data,r.result.data))},e.prototype.markResult=function(t,a,r,u){var s=this,c,d=new bi,p=Fn(t.errors)?t.errors.slice(0):[];if((c=this.observableQuery)===null||c===void 0||c.resetNotifications(),"incremental"in t&&Fn(t.incremental)){var m=w_(this.getDiff().result,t);t.data=m}else if("hasNext"in t&&t.hasNext){var v=this.getDiff();t.data=d.merge(v.result,t.data)}this.graphQLErrors=p,r.fetchPolicy==="no-cache"?this.updateLastDiff({result:t.data,complete:!0},this.getDiffOptions(r.variables)):u!==0&&(Vh(t,r.errorPolicy)?this.cache.performTransaction(function(y){if(s.shouldWrite(t,r.variables))y.writeQuery({query:a,data:t.data,variables:r.variables,overwrite:u===1}),s.lastWrite={result:t,variables:r.variables,dmCount:rl.get(s.cache)};else if(s.lastDiff&&s.lastDiff.diff.complete){t.data=s.lastDiff.diff.result;return}var b=s.getDiffOptions(r.variables),_=Mt("canonizeResults",function(){return y.diff(b)});!s.stopped&&Qe(s.variables,r.variables)&&s.updateWatch(r.variables),s.updateLastDiff(_,b),_.complete&&(t.data=_.result)}):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=Ue.ready},e.prototype.markError=function(t){var a;return this.networkStatus=Ue.error,this.lastWrite=void 0,(a=this.observableQuery)===null||a===void 0||a.resetNotifications(),t.graphQLErrors&&(this.graphQLErrors=t.graphQLErrors),t.networkError&&(this.networkError=t.networkError),t},e})();function Vh(e,t){t===void 0&&(t="none");var a=t==="ignore"||t==="all",r=!Cs(e);return!r&&a&&e.data&&(r=!0),r}var qw=Object.prototype.hasOwnProperty,Fb=Object.create(null),Qw=(function(){function e(t){var a=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new im(ua["queryManager.getDocumentInfo"]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Va(!1),this.noCacheWarningsByQueryId=new Set;var r=new g_(function(s){return a.cache.transformDocument(s)},{cache:!1});this.cache=t.cache,this.link=t.link,this.defaultOptions=t.defaultOptions,this.queryDeduplication=t.queryDeduplication,this.clientAwareness=t.clientAwareness,this.localState=t.localState,this.ssrMode=t.ssrMode,this.assumeImmutableResults=t.assumeImmutableResults,this.dataMasking=t.dataMasking;var u=t.documentTransform;this.documentTransform=u?r.concat(u).concat(r):r,this.defaultContext=t.defaultContext||Object.create(null),(this.onBroadcast=t.onBroadcast)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var t=this;this.queries.forEach(function(a,r){t.stopQueryNoBroadcast(r)}),this.cancelPendingFetches(Wt(35))},e.prototype.cancelPendingFetches=function(t){this.fetchCancelFns.forEach(function(a){return a(t)}),this.fetchCancelFns.clear()},e.prototype.mutate=function(t){return ci(this,arguments,void 0,function(a){var r,u,s,c,d,p,m,v=a.mutation,y=a.variables,b=a.optimisticResponse,_=a.updateQueries,E=a.refetchQueries,T=E===void 0?[]:E,D=a.awaitRefetchQueries,N=D===void 0?!1:D,w=a.update,O=a.onQueryUpdated,M=a.fetchPolicy,z=M===void 0?((p=this.defaultOptions.mutate)===null||p===void 0?void 0:p.fetchPolicy)||"network-only":M,Z=a.errorPolicy,$=Z===void 0?((m=this.defaultOptions.mutate)===null||m===void 0?void 0:m.errorPolicy)||"none":Z,W=a.keepRootFields,se=a.context;return fi(this,function(Ne){switch(Ne.label){case 0:return ne(v,36),ne(z==="network-only"||z==="no-cache",37),r=this.generateMutationId(),v=this.cache.transformForLink(this.transform(v)),u=this.getDocumentInfo(v).hasClientExports,y=this.getVariables(v,y),u?[4,this.localState.addExportedVariables(v,y,se)]:[3,2];case 1:y=Ne.sent(),Ne.label=2;case 2:return s=this.mutationStore&&(this.mutationStore[r]={mutation:v,variables:y,loading:!0,error:null}),c=b&&this.markMutationOptimistic(b,{mutationId:r,document:v,variables:y,fetchPolicy:z,errorPolicy:$,context:se,updateQueries:_,update:w,keepRootFields:W}),this.broadcastQueries(),d=this,[2,new Promise(function(Be,le){return Id(d.getObservableFromLink(v,j(j({},se),{optimisticResponse:c?b:void 0}),y,{},!1),function(fe){if(Cs(fe)&&$==="none")throw new cn({graphQLErrors:wh(fe)});s&&(s.loading=!1,s.error=null);var ee=j({},fe);return typeof T=="function"&&(T=T(ee)),$==="ignore"&&Cs(ee)&&delete ee.errors,d.markMutationResult({mutationId:r,result:ee,document:v,variables:y,fetchPolicy:z,errorPolicy:$,context:se,update:w,updateQueries:_,awaitRefetchQueries:N,refetchQueries:T,removeOptimistic:c?r:void 0,onQueryUpdated:O,keepRootFields:W})}).subscribe({next:function(fe){d.broadcastQueries(),(!("hasNext"in fe)||fe.hasNext===!1)&&Be(j(j({},fe),{data:d.maskOperation({document:v,data:fe.data,fetchPolicy:z,id:r})}))},error:function(fe){s&&(s.loading=!1,s.error=fe),c&&d.cache.removeOptimistic(r),d.broadcastQueries(),le(fe instanceof cn?fe:new cn({networkError:fe}))}})})]}})})},e.prototype.markMutationResult=function(t,a){var r=this;a===void 0&&(a=this.cache);var u=t.result,s=[],c=t.fetchPolicy==="no-cache";if(!c&&Vh(u,t.errorPolicy)){if(sl(u)||s.push({result:u.data,dataId:"ROOT_MUTATION",query:t.document,variables:t.variables}),sl(u)&&Fn(u.incremental)){var d=a.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0}),p=void 0;d.result&&(p=w_(d.result,u)),typeof p<"u"&&(u.data=p,s.push({result:p,dataId:"ROOT_MUTATION",query:t.document,variables:t.variables}))}var m=t.updateQueries;m&&this.queries.forEach(function(y,b){var _=y.observableQuery,E=_&&_.queryName;if(!(!E||!qw.call(m,E))){var T=m[E],D=r.queries.get(b),N=D.document,w=D.variables,O=a.diff({query:N,variables:w,returnPartialData:!0,optimistic:!1}),M=O.result,z=O.complete;if(z&&M){var Z=T(M,{mutationResult:u,queryName:N&&Cu(N)||void 0,queryVariables:w});Z&&s.push({result:Z,dataId:"ROOT_QUERY",query:N,variables:w})}}})}if(s.length>0||(t.refetchQueries||"").length>0||t.update||t.onQueryUpdated||t.removeOptimistic){var v=[];if(this.refetchQueries({updateCache:function(y){c||s.forEach(function(T){return y.write(T)});var b=t.update,_=!zO(u)||sl(u)&&!u.hasNext;if(b){if(!c){var E=y.diff({id:"ROOT_MUTATION",query:r.getDocumentInfo(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0});E.complete&&(u=j(j({},u),{data:E.result}),"incremental"in u&&delete u.incremental,"hasNext"in u&&delete u.hasNext)}_&&b(y,u,{context:t.context,variables:t.variables})}!c&&!t.keepRootFields&&_&&y.modify({id:"ROOT_MUTATION",fields:function(T,D){var N=D.fieldName,w=D.DELETE;return N==="__typename"?T:w}})},include:t.refetchQueries,optimistic:!1,removeOptimistic:t.removeOptimistic,onQueryUpdated:t.onQueryUpdated||null}).forEach(function(y){return v.push(y)}),t.awaitRefetchQueries||t.onQueryUpdated)return Promise.all(v).then(function(){return u})}return Promise.resolve(u)},e.prototype.markMutationOptimistic=function(t,a){var r=this,u=typeof t=="function"?t(a.variables,{IGNORE:Fb}):t;return u===Fb?!1:(this.cache.recordOptimisticTransaction(function(s){try{r.markMutationResult(j(j({},a),{result:{data:u}}),s)}catch(c){globalThis.__DEV__!==!1&&ne.error(c)}},a.mutationId),!0)},e.prototype.fetchQuery=function(t,a,r){return this.fetchConcastWithInfo(this.getOrCreateQuery(t),a,r).concast.promise},e.prototype.getQueryStore=function(){var t=Object.create(null);return this.queries.forEach(function(a,r){t[r]={variables:a.variables,networkStatus:a.networkStatus,networkError:a.networkError,graphQLErrors:a.graphQLErrors}}),t},e.prototype.resetErrors=function(t){var a=this.queries.get(t);a&&(a.networkError=void 0,a.graphQLErrors=[])},e.prototype.transform=function(t){return this.documentTransform.transformDocument(t)},e.prototype.getDocumentInfo=function(t){var a=this.transformCache;if(!a.has(t)){var r={hasClientExports:cT(t),hasForcedResolvers:this.localState.shouldForceResolvers(t),hasNonreactiveDirective:$u(["nonreactive"],t),nonReactiveQuery:hO(t),clientQuery:this.localState.clientQuery(t),serverQuery:__([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"},{name:"unmask"}],t),defaultVars:lm(er(t)),asQuery:j(j({},t),{definitions:t.definitions.map(function(u){return u.kind==="OperationDefinition"&&u.operation!=="query"?j(j({},u),{operation:"query"}):u})})};a.set(t,r)}return a.get(t)},e.prototype.getVariables=function(t,a){return j(j({},this.getDocumentInfo(t).defaultVars),a)},e.prototype.watchQuery=function(t){var a=this.transform(t.query);t=j(j({},t),{variables:this.getVariables(a,t.variables)}),typeof t.notifyOnNetworkStatusChange>"u"&&(t.notifyOnNetworkStatusChange=!1);var r=new Jd(this),u=new Iu({queryManager:this,queryInfo:r,options:t});return u.lastQuery=a,Iu.inactiveOnCreation.getValue()||this.queries.set(u.queryId,r),r.init({document:a,observableQuery:u,variables:u.variables}),u},e.prototype.query=function(t,a){var r=this;a===void 0&&(a=this.generateQueryId()),ne(t.query,38),ne(t.query.kind==="Document",39),ne(!t.returnPartialData,40),ne(!t.pollInterval,41);var u=this.transform(t.query);return this.fetchQuery(a,j(j({},t),{query:u})).then(function(s){return s&&j(j({},s),{data:r.maskOperation({document:u,data:s.data,fetchPolicy:t.fetchPolicy,id:a})})}).finally(function(){return r.stopQuery(a)})},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(t){this.stopQueryInStoreNoBroadcast(t),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(t){var a=this.queries.get(t);a&&a.stop()},e.prototype.clearStore=function(t){return t===void 0&&(t={discardWatches:!0}),this.cancelPendingFetches(Wt(42)),this.queries.forEach(function(a){a.observableQuery?a.networkStatus=Ue.loading:a.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(t)},e.prototype.getObservableQueries=function(t){var a=this;t===void 0&&(t="active");var r=new Map,u=new Map,s=new Map,c=new Set;return Array.isArray(t)&&t.forEach(function(d){if(typeof d=="string")u.set(d,d),s.set(d,!1);else if(LT(d)){var p=pi(a.transform(d));u.set(p,Cu(d)),s.set(p,!1)}else ut(d)&&d.query&&c.add(d)}),this.queries.forEach(function(d,p){var m=d.observableQuery,v=d.document;if(m){if(t==="all"){r.set(p,m);return}var y=m.queryName,b=m.options.fetchPolicy;if(b==="standby"||t==="active"&&!m.hasObservers())return;(t==="active"||y&&s.has(y)||v&&s.has(pi(v)))&&(r.set(p,m),y&&s.set(y,!0),v&&s.set(pi(v),!0))}}),c.size&&c.forEach(function(d){var p=yh("legacyOneTimeQuery"),m=a.getOrCreateQuery(p).init({document:d.query,variables:d.variables}),v=new Iu({queryManager:a,queryInfo:m,options:j(j({},d),{fetchPolicy:"network-only"})});ne(v.queryId===p),m.setObservableQuery(v),r.set(p,v)}),globalThis.__DEV__!==!1&&s.size&&s.forEach(function(d,p){if(!d){var m=u.get(p);m?globalThis.__DEV__!==!1&&ne.warn(43,m):globalThis.__DEV__!==!1&&ne.warn(44)}}),r},e.prototype.reFetchObservableQueries=function(t){var a=this;t===void 0&&(t=!1);var r=[];return this.getObservableQueries(t?"all":"active").forEach(function(u,s){var c=u.options.fetchPolicy;Mt("resetLastResults",function(){return u.resetLastResults()}),(t||c!=="standby"&&c!=="cache-only")&&r.push(u.refetch()),(a.queries.get(s)||u.queryInfo).setDiff(null)}),this.broadcastQueries(),Promise.all(r)},e.prototype.startGraphQLSubscription=function(t){var a=this,r=t.query,u=t.variables,s=t.fetchPolicy,c=t.errorPolicy,d=c===void 0?"none":c,p=t.context,m=p===void 0?{}:p,v=t.extensions,y=v===void 0?{}:v;r=this.transform(r),u=this.getVariables(r,u);var b=function(E){return a.getObservableFromLink(r,m,E,y).map(function(T){s!=="no-cache"&&(Vh(T,d)&&a.cache.write({query:r,result:T.data,dataId:"ROOT_SUBSCRIPTION",variables:E}),a.broadcastQueries());var D=Cs(T),N=JO(T);if(D||N){var w={};if(D&&(w.graphQLErrors=T.errors),N&&(w.protocolErrors=T.extensions[pm]),d==="none"||N)throw new cn(w)}return d==="ignore"&&delete T.errors,T})};if(this.getDocumentInfo(r).hasClientExports){var _=this.localState.addExportedVariables(r,u,m).then(b);return new et(function(E){var T=null;return _.then(function(D){return T=D.subscribe(E)},E.error),function(){return T&&T.unsubscribe()}})}return b(u)},e.prototype.stopQuery=function(t){this.stopQueryNoBroadcast(t),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(t){this.stopQueryInStoreNoBroadcast(t),this.removeQuery(t)},e.prototype.removeQuery=function(t){var a;this.fetchCancelFns.delete(t),this.queries.has(t)&&((a=this.queries.get(t))===null||a===void 0||a.stop(),this.queries.delete(t))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(t){var a;return(a=t.observableQuery)===null||a===void 0?void 0:a.notify()})},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(t,a,r,u,s){var c=this,d;s===void 0&&(s=(d=a==null?void 0:a.queryDeduplication)!==null&&d!==void 0?d:this.queryDeduplication);var p,m=this.getDocumentInfo(t),v=m.serverQuery,y=m.clientQuery;if(v){var b=this,_=b.inFlightLinkObservables,E=b.link,T={query:v,variables:r,operationName:Cu(v)||void 0,context:this.prepareContext(j(j({},a),{forceFetch:!s})),extensions:u};if(a=T.context,s){var D=pi(v),N=vi(r),w=_.lookup(D,N);if(p=w.observable,!p){var O=new Jr([Rh(E,T)]);p=w.observable=O,O.beforeNext(function M(z,Z){z==="next"&&"hasNext"in Z&&Z.hasNext?O.beforeNext(M):_.remove(D,N)})}}else p=new Jr([Rh(E,T)])}else p=new Jr([et.of({data:{}})]),a=this.prepareContext(a);return y&&(p=Id(p,function(M){return c.localState.runResolvers({document:y,remoteResult:M,context:a,variables:r})})),p},e.prototype.getResultsFromLink=function(t,a,r){var u=t.lastRequestId=this.generateRequestId(),s=this.cache.transformForLink(r.query);return Id(this.getObservableFromLink(s,r.context,r.variables),function(c){var d=wh(c),p=d.length>0,m=r.errorPolicy;if(u>=t.lastRequestId){if(p&&m==="none")throw t.markError(new cn({graphQLErrors:d}));t.markResult(c,s,r,a),t.markReady()}var v={data:c.data,loading:!1,networkStatus:Ue.ready};return p&&m==="none"&&(v.data=void 0),p&&m!=="ignore"&&(v.errors=d,v.networkStatus=Ue.error),v},function(c){var d=x_(c)?c:new cn({networkError:c});throw u>=t.lastRequestId&&t.markError(d),d})},e.prototype.fetchConcastWithInfo=function(t,a,r,u){var s=this;r===void 0&&(r=Ue.loading),u===void 0&&(u=a.query);var c=this.getVariables(u,a.variables),d=this.defaultOptions.watchQuery,p=a.fetchPolicy,m=p===void 0?d&&d.fetchPolicy||"cache-first":p,v=a.errorPolicy,y=v===void 0?d&&d.errorPolicy||"none":v,b=a.returnPartialData,_=b===void 0?!1:b,E=a.notifyOnNetworkStatusChange,T=E===void 0?!1:E,D=a.context,N=D===void 0?{}:D,w=Object.assign({},a,{query:u,variables:c,fetchPolicy:m,errorPolicy:y,returnPartialData:_,notifyOnNetworkStatusChange:T,context:N}),O=function(W){w.variables=W;var se=s.fetchQueryByPolicy(t,w,r);return w.fetchPolicy!=="standby"&&se.sources.length>0&&t.observableQuery&&t.observableQuery.applyNextFetchPolicy("after-fetch",a),se},M=function(){return s.fetchCancelFns.delete(t.queryId)};this.fetchCancelFns.set(t.queryId,function(W){M(),setTimeout(function(){return z.cancel(W)})});var z,Z;if(this.getDocumentInfo(w.query).hasClientExports)z=new Jr(this.localState.addExportedVariables(w.query,w.variables,w.context).then(O).then(function(W){return W.sources})),Z=!0;else{var $=O(w.variables);Z=$.fromLink,z=new Jr($.sources)}return z.promise.then(M,M),{concast:z,fromLink:Z}},e.prototype.refetchQueries=function(t){var a=this,r=t.updateCache,u=t.include,s=t.optimistic,c=s===void 0?!1:s,d=t.removeOptimistic,p=d===void 0?c?yh("refetchQueries"):void 0:d,m=t.onQueryUpdated,v=new Map;u&&this.getObservableQueries(u).forEach(function(b,_){v.set(_,{oq:b,lastDiff:(a.queries.get(_)||b.queryInfo).getDiff()})});var y=new Map;return r&&this.cache.batch({update:r,optimistic:c&&p||!1,removeOptimistic:p,onWatchUpdated:function(b,_,E){var T=b.watcher instanceof Jd&&b.watcher.observableQuery;if(T){if(m){v.delete(T.queryId);var D=m(T,_,E);return D===!0&&(D=T.refetch()),D!==!1&&y.set(T,D),D}m!==null&&v.set(T.queryId,{oq:T,lastDiff:E,diff:_})}}}),v.size&&v.forEach(function(b,_){var E=b.oq,T=b.lastDiff,D=b.diff,N;m&&(D||(D=Mt("canonizeResults",function(){return a.cache.diff(E.queryInfo.getDiffOptions())})),N=m(E,D,T)),(!m||N===!0)&&(N=E.refetch()),N!==!1&&y.set(E,N),_.indexOf("legacyOneTimeQuery")>=0&&a.stopQueryNoBroadcast(_)}),p&&this.cache.removeOptimistic(p),y},e.prototype.maskOperation=function(t){var a,r,u,s=t.document,c=t.data;if(globalThis.__DEV__!==!1){var d=t.fetchPolicy,p=t.id,m=(a=er(s))===null||a===void 0?void 0:a.operation,v=((r=m==null?void 0:m[0])!==null&&r!==void 0?r:"o")+p;this.dataMasking&&d==="no-cache"&&!ST(s)&&!this.noCacheWarningsByQueryId.has(v)&&(this.noCacheWarningsByQueryId.add(v),globalThis.__DEV__!==!1&&ne.warn(45,(u=Cu(s))!==null&&u!==void 0?u:"Unnamed ".concat(m??"operation")))}return this.dataMasking?Sw(c,s,this.cache):c},e.prototype.maskFragment=function(t){var a=t.data,r=t.fragment,u=t.fragmentName;return this.dataMasking?V_(a,r,this.cache,u):a},e.prototype.fetchQueryByPolicy=function(t,a,r){var u=this,s=a.query,c=a.variables,d=a.fetchPolicy,p=a.refetchWritePolicy,m=a.errorPolicy,v=a.returnPartialData,y=a.context,b=a.notifyOnNetworkStatusChange,_=t.networkStatus;t.init({document:s,variables:c,networkStatus:r});var E=function(){return t.getDiff()},T=function(M,z){z===void 0&&(z=t.networkStatus||Ue.loading);var Z=M.result;globalThis.__DEV__!==!1&&!v&&!Qe(Z,{})&&K_(M.missing);var $=function(W){return et.of(j({data:W,loading:il(z),networkStatus:z},M.complete?null:{partial:!0}))};return Z&&u.getDocumentInfo(s).hasForcedResolvers?u.localState.runResolvers({document:s,remoteResult:{data:Z},context:y,variables:c,onlyRunForcedResolvers:!0}).then(function(W){return $(W.data||void 0)}):m==="none"&&z===Ue.refetch&&Array.isArray(M.missing)?$(void 0):$(Z)},D=d==="no-cache"?0:r===Ue.refetch&&p!=="merge"?1:2,N=function(){return u.getResultsFromLink(t,D,{query:s,variables:c,context:y,fetchPolicy:d,errorPolicy:m})},w=b&&typeof _=="number"&&_!==r&&il(r);switch(d){default:case"cache-first":{var O=E();return O.complete?{fromLink:!1,sources:[T(O,t.markReady())]}:v||w?{fromLink:!0,sources:[T(O),N()]}:{fromLink:!0,sources:[N()]}}case"cache-and-network":{var O=E();return O.complete||v||w?{fromLink:!0,sources:[T(O),N()]}:{fromLink:!0,sources:[N()]}}case"cache-only":return{fromLink:!1,sources:[T(E(),t.markReady())]};case"network-only":return w?{fromLink:!0,sources:[T(E()),N()]}:{fromLink:!0,sources:[N()]};case"no-cache":return w?{fromLink:!0,sources:[T(t.getDiff()),N()]}:{fromLink:!0,sources:[N()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getOrCreateQuery=function(t){return t&&!this.queries.has(t)&&this.queries.set(t,new Jd(this,t)),this.queries.get(t)},e.prototype.prepareContext=function(t){t===void 0&&(t={});var a=this.localState.prepareContext(t);return j(j(j({},this.defaultContext),a),{clientAwareness:this.clientAwareness})},e})(),Bw=(function(){function e(t){var a=t.cache,r=t.client,u=t.resolvers,s=t.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=a,r&&(this.client=r),u&&this.addResolvers(u),s&&this.setFragmentMatcher(s)}return e.prototype.addResolvers=function(t){var a=this;this.resolvers=this.resolvers||{},Array.isArray(t)?t.forEach(function(r){a.resolvers=Bs(a.resolvers,r)}):this.resolvers=Bs(this.resolvers,t)},e.prototype.setResolvers=function(t){this.resolvers={},this.addResolvers(t)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(t){return ci(this,arguments,void 0,function(a){var r=a.document,u=a.remoteResult,s=a.context,c=a.variables,d=a.onlyRunForcedResolvers,p=d===void 0?!1:d;return fi(this,function(m){return r?[2,this.resolveDocument(r,u.data,s,c,this.fragmentMatcher,p).then(function(v){return j(j({},u),{data:v.result})})]:[2,u]})})},e.prototype.setFragmentMatcher=function(t){this.fragmentMatcher=t},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(t){return $u(["client"],t)&&this.resolvers?t:null},e.prototype.serverQuery=function(t){return S_(t)},e.prototype.prepareContext=function(t){var a=this.cache;return j(j({},t),{cache:a,getCacheKey:function(r){return a.identify(r)}})},e.prototype.addExportedVariables=function(t){return ci(this,arguments,void 0,function(a,r,u){return r===void 0&&(r={}),u===void 0&&(u={}),fi(this,function(s){return a?[2,this.resolveDocument(a,this.buildRootValueFromCache(a,r)||{},this.prepareContext(u),r).then(function(c){return j(j({},r),c.exportedVariables)})]:[2,j({},r)]})})},e.prototype.shouldForceResolvers=function(t){var a=!1;return Yn(t,{Directive:{enter:function(r){if(r.name.value==="client"&&r.arguments&&(a=r.arguments.some(function(u){return u.name.value==="always"&&u.value.kind==="BooleanValue"&&u.value.value===!0}),a))return tc}}}),a},e.prototype.buildRootValueFromCache=function(t,a){return this.cache.diff({query:dO(t),variables:a,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(t,a){return ci(this,arguments,void 0,function(r,u,s,c,d,p){var m,v,y,b,_,E,T,D,N,w,O;return s===void 0&&(s={}),c===void 0&&(c={}),d===void 0&&(d=function(){return!0}),p===void 0&&(p=!1),fi(this,function(M){return m=_l(r),v=bl(r),y=yl(v),b=this.collectSelectionsToResolve(m,y),_=m.operation,E=_?_.charAt(0).toUpperCase()+_.slice(1):"Query",T=this,D=T.cache,N=T.client,w={fragmentMap:y,context:j(j({},s),{cache:D,client:N}),variables:c,fragmentMatcher:d,defaultOperationType:E,exportedVariables:{},selectionsToResolve:b,onlyRunForcedResolvers:p},O=!1,[2,this.resolveSelectionSet(m.selectionSet,O,u,w).then(function(z){return{result:z,exportedVariables:w.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(t,a,r,u){return ci(this,void 0,void 0,function(){var s,c,d,p,m,v=this;return fi(this,function(y){return s=u.fragmentMap,c=u.context,d=u.variables,p=[r],m=function(b){return ci(v,void 0,void 0,function(){var _,E;return fi(this,function(T){return!a&&!u.selectionsToResolve.has(b)?[2]:Ku(b,d)?yi(b)?[2,this.resolveField(b,a,r,u).then(function(D){var N;typeof D<"u"&&p.push((N={},N[ja(b)]=D,N))})]:(JT(b)?_=b:(_=s[b.name.value],ne(_,21,b.name.value)),_&&_.typeCondition&&(E=_.typeCondition.name.value,u.fragmentMatcher(r,E,c))?[2,this.resolveSelectionSet(_.selectionSet,a,r,u).then(function(D){p.push(D)})]:[2]):[2]})})},[2,Promise.all(t.selections.map(m)).then(function(){return uc(p)})]})})},e.prototype.resolveField=function(t,a,r,u){return ci(this,void 0,void 0,function(){var s,c,d,p,m,v,y,b,_,E=this;return fi(this,function(T){return r?(s=u.variables,c=t.name.value,d=ja(t),p=c!==d,m=r[d]||r[c],v=Promise.resolve(m),(!u.onlyRunForcedResolvers||this.shouldForceResolvers(t))&&(y=r.__typename||u.defaultOperationType,b=this.resolvers&&this.resolvers[y],b&&(_=b[p?c:d],_&&(v=Promise.resolve(ym.withValue(this.cache,_,[r,ic(t,s),u.context,{field:t,fragmentMap:u.fragmentMap}]))))),[2,v.then(function(D){var N,w;if(D===void 0&&(D=m),t.directives&&t.directives.forEach(function(M){M.name.value==="export"&&M.arguments&&M.arguments.forEach(function(z){z.name.value==="as"&&z.value.kind==="StringValue"&&(u.exportedVariables[z.value.value]=D)})}),!t.selectionSet||D==null)return D;var O=(w=(N=t.directives)===null||N===void 0?void 0:N.some(function(M){return M.name.value==="client"}))!==null&&w!==void 0?w:!1;if(Array.isArray(D))return E.resolveSubSelectedArray(t,a||O,D,u);if(t.selectionSet)return E.resolveSelectionSet(t.selectionSet,a||O,D,u)})]):[2,null]})})},e.prototype.resolveSubSelectedArray=function(t,a,r,u){var s=this;return Promise.all(r.map(function(c){if(c===null)return null;if(Array.isArray(c))return s.resolveSubSelectedArray(t,a,c,u);if(t.selectionSet)return s.resolveSelectionSet(t.selectionSet,a,c,u)}))},e.prototype.collectSelectionsToResolve=function(t,a){var r=function(c){return!Array.isArray(c)},u=this.selectionsToResolveCache;function s(c){if(!u.has(c)){var d=new Set;u.set(c,d),Yn(c,{Directive:function(p,m,v,y,b){p.name.value==="client"&&b.forEach(function(_){r(_)&&Yg(_)&&d.add(_)})},FragmentSpread:function(p,m,v,y,b){var _=a[p.name.value];ne(_,22,p.name.value);var E=s(_);E.size>0&&(b.forEach(function(T){r(T)&&Yg(T)&&d.add(T)}),d.add(p),E.forEach(function(T){d.add(T)}))}})}return u.get(c)}return s(t)},e})(),Vb=!1,W_=(function(){function e(t){var a=this,r,u,s;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!t.cache)throw Wt(16);var c=t.uri,d=t.credentials,p=t.headers,m=t.cache,v=t.documentTransform,y=t.ssrMode,b=y===void 0?!1:y,_=t.ssrForceFetchDelay,E=_===void 0?0:_,T=t.connectToDevTools,D=t.queryDeduplication,N=D===void 0?!0:D,w=t.defaultOptions,O=t.defaultContext,M=t.assumeImmutableResults,z=M===void 0?m.assumeImmutableResults:M,Z=t.resolvers,$=t.typeDefs,W=t.fragmentMatcher,se=t.clientAwareness,Ne=t.name,Be=t.version,le=t.devtools,fe=t.dataMasking;globalThis.__DEV__!==!1&&(pt(t,"connectToDevTools","ApolloClient","Please use `devtools.enabled` instead."),pt(t,"uri","ApolloClient","Please initialize an instance of `HttpLink` with `uri` instead."),pt(t,"credentials","ApolloClient","Please initialize an instance of `HttpLink` with `credentials` instead."),pt(t,"headers","ApolloClient","Please initialize an instance of `HttpLink` with `headers` instead."),pt(t,"name","ApolloClient","Please use the `clientAwareness.name` option instead."),pt(t,"version","ApolloClient","Please use the `clientAwareness.version` option instead."),pt(t,"typeDefs","ApolloClient"),t.link||globalThis.__DEV__!==!1&&ne.warn(17));var ee=t.link;ee||(ee=c?new A_({uri:c,credentials:d,headers:p}):ir.empty()),this.link=ee,this.cache=m,this.disableNetworkFetches=b||E>0,this.queryDeduplication=N,this.defaultOptions=w||Object.create(null),this.typeDefs=$,this.devtoolsConfig=j(j({},le),{enabled:(r=le==null?void 0:le.enabled)!==null&&r!==void 0?r:T}),this.devtoolsConfig.enabled===void 0&&(this.devtoolsConfig.enabled=globalThis.__DEV__!==!1),E&&setTimeout(function(){return a.disableNetworkFetches=!1},E),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),this.version=Wh,this.localState=new Bw({cache:m,client:this,resolvers:Z,fragmentMatcher:W}),this.queryManager=new Qw({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext:O,documentTransform:v,queryDeduplication:N,ssrMode:b,dataMasking:!!fe,clientAwareness:{name:(u=se==null?void 0:se.name)!==null&&u!==void 0?u:Ne,version:(s=se==null?void 0:se.version)!==null&&s!==void 0?s:Be},localState:this.localState,assumeImmutableResults:z,onBroadcast:this.devtoolsConfig.enabled?function(){a.devToolsHookCb&&a.devToolsHookCb({action:{},state:{queries:a.queryManager.getQueryStore(),mutations:a.queryManager.mutationStore||{}},dataWithOptimisticResults:a.cache.extract(!0)})}:void 0}),this.devtoolsConfig.enabled&&this.connectToDevTools()}return Object.defineProperty(e.prototype,"prioritizeCacheValues",{get:function(){return this.disableNetworkFetches},set:function(t){this.disableNetworkFetches=t},enumerable:!1,configurable:!0}),e.prototype.connectToDevTools=function(){if(!(typeof window>"u")){var t=window,a=Symbol.for("apollo.devtools");(t[a]=t[a]||[]).push(this),t.__APOLLO_CLIENT__=this,!Vb&&globalThis.__DEV__!==!1&&(Vb=!0,window.document&&window.top===window.self&&/^(https?|file):$/.test(window.location.protocol)&&setTimeout(function(){if(!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){var r=window.navigator,u=r&&r.userAgent,s=void 0;typeof u=="string"&&(u.indexOf("Chrome/")>-1?s="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":u.indexOf("Firefox/")>-1&&(s="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),s&&globalThis.__DEV__!==!1&&ne.log("Download the Apollo DevTools for a better development experience: %s",s)}},1e4))}},Object.defineProperty(e.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform},enumerable:!1,configurable:!0}),e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(t){return this.defaultOptions.watchQuery&&(t=qu(this.defaultOptions.watchQuery,t)),this.disableNetworkFetches&&(t.fetchPolicy==="network-only"||t.fetchPolicy==="cache-and-network")&&(t=j(j({},t),{fetchPolicy:"cache-first"})),globalThis.__DEV__!==!1&&(pt(t,"canonizeResults","client.watchQuery"),pt(t,"partialRefetch","client.watchQuery")),this.queryManager.watchQuery(t)},e.prototype.query=function(t){return this.defaultOptions.query&&(t=qu(this.defaultOptions.query,t)),ne(t.fetchPolicy!=="cache-and-network",18),this.disableNetworkFetches&&t.fetchPolicy==="network-only"&&(t=j(j({},t),{fetchPolicy:"cache-first"})),globalThis.__DEV__!==!1&&(pt(t,"canonizeResults","client.query"),pt(t,"notifyOnNetworkStatusChange","client.query","This option does not affect `client.query` and can be safely removed."),t.fetchPolicy==="standby"&&globalThis.__DEV__!==!1&&ne.warn(19)),this.queryManager.query(t)},e.prototype.mutate=function(t){return this.defaultOptions.mutate&&(t=qu(this.defaultOptions.mutate,t)),this.queryManager.mutate(t)},e.prototype.subscribe=function(t){var a=this,r=this.queryManager.generateQueryId();return this.queryManager.startGraphQLSubscription(t).map(function(u){return j(j({},u),{data:a.queryManager.maskOperation({document:t.query,data:u.data,fetchPolicy:t.fetchPolicy,id:r})})})},e.prototype.readQuery=function(t,a){return a===void 0&&(a=!1),this.cache.readQuery(t,a)},e.prototype.watchFragment=function(t){var a;return this.cache.watchFragment(j(j({},t),(a={},a[Symbol.for("apollo.dataMasking")]=this.queryManager.dataMasking,a)))},e.prototype.readFragment=function(t,a){return a===void 0&&(a=!1),this.cache.readFragment(t,a)},e.prototype.writeQuery=function(t){var a=this.cache.writeQuery(t);return t.broadcast!==!1&&this.queryManager.broadcastQueries(),a},e.prototype.writeFragment=function(t){var a=this.cache.writeFragment(t);return t.broadcast!==!1&&this.queryManager.broadcastQueries(),a},e.prototype.__actionHookForDevTools=function(t){this.devToolsHookCb=t},e.prototype.__requestRaw=function(t){return Rh(this.link,t)},e.prototype.resetStore=function(){var t=this;return Promise.resolve().then(function(){return t.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(t.resetStoreCallbacks.map(function(a){return a()}))}).then(function(){return t.reFetchObservableQueries()})},e.prototype.clearStore=function(){var t=this;return Promise.resolve().then(function(){return t.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(t.clearStoreCallbacks.map(function(a){return a()}))})},e.prototype.onResetStore=function(t){var a=this;return this.resetStoreCallbacks.push(t),function(){a.resetStoreCallbacks=a.resetStoreCallbacks.filter(function(r){return r!==t})}},e.prototype.onClearStore=function(t){var a=this;return this.clearStoreCallbacks.push(t),function(){a.clearStoreCallbacks=a.clearStoreCallbacks.filter(function(r){return r!==t})}},e.prototype.reFetchObservableQueries=function(t){return this.queryManager.reFetchObservableQueries(t)},e.prototype.refetchQueries=function(t){var a=this.queryManager.refetchQueries(t),r=[],u=[];a.forEach(function(c,d){r.push(d),u.push(c)});var s=Promise.all(u);return s.queries=r,s.results=u,s.catch(function(c){globalThis.__DEV__!==!1&&ne.debug(20,c)}),s},e.prototype.getObservableQueries=function(t){return t===void 0&&(t="active"),this.queryManager.getObservableQueries(t)},e.prototype.extract=function(t){return this.cache.extract(t)},e.prototype.restore=function(t){return this.cache.restore(t)},e.prototype.addResolvers=function(t){this.localState.addResolvers(t)},e.prototype.setResolvers=function(t){this.localState.setResolvers(t)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(t){this.localState.setFragmentMatcher(t)},e.prototype.setLink=function(t){this.link=this.queryManager.link=t},Object.defineProperty(e.prototype,"defaultContext",{get:function(){return this.queryManager.defaultContext},enumerable:!1,configurable:!0}),e})();globalThis.__DEV__!==!1&&(W_.prototype.getMemoryInternals=RT);var Kd={exports:{}},Wd={exports:{}},Te={};/**
49
+ `),w=tw(D.slice(0,N)),O=w["content-type"],O&&O.toLowerCase().indexOf("application/json")===-1)throw new Error("Unsupported patch content type: application/json is required.");if(M=D.slice(N),M){if(z=A_(e,M),Object.keys(z).length>1||"data"in z||"incremental"in z||"errors"in z||"payload"in z)if(jO(z)){if(Z={},"payload"in z){if(Object.keys(z).length===1&&z.payload===null)return[2];Z=j({},z.payload)}"errors"in z&&(Z=j(j({},Z),{extensions:j(j({},"extensions"in Z?Z.extensions:null),(W={},W[pm]=z.errors,W))})),t(Z)}else t(z);else if(Object.keys(z).length===1&&"hasNext"in z&&!z.hasNext)return[2]}T=d.indexOf(c)}return[3,1];case 3:return[2]}})})}function tw(e){var t={};return e.split(`
50
+ `).forEach(function(a){var r=a.indexOf(":");if(r>-1){var u=a.slice(0,r).trim().toLowerCase(),s=a.slice(r+1).trim();t[u]=s}}),t}function A_(e,t){if(e.status>=300){var a=function(){try{return JSON.parse(t)}catch{return t}};x_(e,a(),"Response not successful: Received status code ".concat(e.status))}try{return JSON.parse(t)}catch(u){var r=u;throw r.name="ServerParseError",r.response=e,r.statusCode=e.status,r.bodyText=t,r}}function nw(e,t){e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e)}function aw(e){return function(t){return t.text().then(function(a){return A_(t,a)}).then(function(a){return!Array.isArray(a)&&!fb.call(a,"data")&&!fb.call(a,"errors")&&x_(t,a,"Server response was missing for query '".concat(Array.isArray(e)?e.map(function(r){return r.operationName}):e.operationName,"'.")),a})}}var Ah=function(e,t){var a;try{a=JSON.stringify(e)}catch(u){var r=Wt(54,t,u.message);throw r.parseError=u,r}return a},iw={includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},rw={accept:"*/*","content-type":"application/json"},lw={method:"POST"},uw={http:iw,headers:rw,options:lw},ow=function(e,t){return t(e)};function sw(e,t){for(var a=[],r=2;r<arguments.length;r++)a[r-2]=arguments[r];var u={},s={};a.forEach(function(y){u=j(j(j({},u),y.options),{headers:j(j({},u.headers),y.headers)}),y.credentials&&(u.credentials=y.credentials),s=j(j({},s),y.http)}),u.headers&&(u.headers=cw(u.headers,s.preserveHeaderCase));var c=e.operationName,d=e.extensions,p=e.variables,m=e.query,v={operationName:c,variables:p};return s.includeExtensions&&(v.extensions=d),s.includeQuery&&(v.query=t(m,pi)),{options:u,body:v}}function cw(e,t){if(!t){var a={};return Object.keys(Object(e)).forEach(function(s){a[s.toLowerCase()]=e[s]}),a}var r={};Object.keys(Object(e)).forEach(function(s){r[s.toLowerCase()]={originalName:s,value:e[s]}});var u={};return Object.keys(r).forEach(function(s){u[r[s].originalName]=r[s].value}),u}var fw=function(e){if(!e&&typeof fetch>"u")throw Wt(51)},dw=function(e,t){var a=e.getContext(),r=a.uri;return r||(typeof t=="function"?t(e):t||"/graphql")};function hw(e,t){var a=[],r=function(y,b){a.push("".concat(y,"=").concat(encodeURIComponent(b)))};if("query"in t&&r("query",t.query),t.operationName&&r("operationName",t.operationName),t.variables){var u=void 0;try{u=Ah(t.variables,"Variables map")}catch(y){return{parseError:y}}r("variables",u)}if(t.extensions){var s=void 0;try{s=Ah(t.extensions,"Extensions map")}catch(y){return{parseError:y}}r("extensions",s)}var c="",d=e,p=e.indexOf("#");p!==-1&&(c=e.substr(p),d=e.substr(0,p));var m=d.indexOf("?")===-1?"?":"&",v=d+m+a.join("&")+c;return{newURI:v}}var db=In(function(){return fetch}),mw=function(e){e===void 0&&(e={});var t=e.uri,a=t===void 0?"/graphql":t,r=e.fetch,u=e.print,s=u===void 0?ow:u,c=e.includeExtensions,d=e.preserveHeaderCase,p=e.useGETForQueries,m=e.includeUnusedVariables,v=m===void 0?!1:m,y=Sn(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);globalThis.__DEV__!==!1&&fw(r||db);var b={http:{includeExtensions:c,preserveHeaderCase:d},options:y.fetchOptions,credentials:y.credentials,headers:y.headers};return new ir(function(_){var E=dw(_,a),T=_.getContext(),D={};if(T.clientAwareness){var N=T.clientAwareness,w=N.name,O=N.version;w&&(D["apollographql-client-name"]=w),O&&(D["apollographql-client-version"]=O)}var M=j(j({},D),T.headers),z={http:T.http,options:T.fetchOptions,credentials:T.credentials,headers:M};if($u(["client"],_.query)){globalThis.__DEV__!==!1&&globalThis.__DEV__!==!1&&ne.warn(52);var Z=k_(_.query);if(!Z)return Hd(new Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));_.query=Z}var $=sw(_,s,uw,b,z),W=$.options,se=$.body;se.variables&&!v&&(se.variables=qO(se.variables,_.query));var Ne;!W.signal&&typeof AbortController<"u"&&(Ne=new AbortController,W.signal=Ne.signal);var Be=function(me){return me.kind==="OperationDefinition"&&me.operation==="mutation"},le=function(me){return me.kind==="OperationDefinition"&&me.operation==="subscription"},fe=le(_l(_.query)),ee=$u(["defer"],_.query);if(p&&!_.query.definitions.some(Be)&&(W.method="GET"),ee||fe){W.headers=W.headers||{};var ce="multipart/mixed;";fe&&ee&&globalThis.__DEV__!==!1&&ne.warn(53),fe?ce+="boundary=graphql;subscriptionSpec=1.0,application/json":ee&&(ce+="deferSpec=20220824,application/json"),W.headers.accept=ce}if(W.method==="GET"){var U=hw(E,se),P=U.newURI,ie=U.parseError;if(ie)return Hd(ie);E=P}else try{W.body=Ah(se,"Payload")}catch(me){return Hd(me)}return new et(function(me){var ve=r||In(function(){return fetch})||db,A=me.next.bind(me);return ve(E,W).then(function(G){var ae;_.setContext({response:G});var oe=(ae=G.headers)===null||ae===void 0?void 0:ae.get("content-type");return oe!==null&&/^multipart\/mixed/i.test(oe)?ew(G,A):aw(_)(G).then(A)}).then(function(){Ne=void 0,me.complete()}).catch(function(G){Ne=void 0,nw(G,me)}),function(){Ne&&Ne.abort()}})})},z_=(function(e){Xn(t,e);function t(a){a===void 0&&(a={});var r=e.call(this,mw(a).request)||this;return r.options=a,r}return t})(ir);const{toString:hb,hasOwnProperty:pw}=Object.prototype,mb=Function.prototype.toString,zh=new Map;function Qe(e,t){try{return Ch(e,t)}finally{zh.clear()}}function Ch(e,t){if(e===t)return!0;const a=hb.call(e),r=hb.call(t);if(a!==r)return!1;switch(a){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":{if(vb(e,t))return!0;const u=pb(e),s=pb(t),c=u.length;if(c!==s.length)return!1;for(let d=0;d<c;++d)if(!pw.call(t,u[d]))return!1;for(let d=0;d<c;++d){const p=u[d];if(!Ch(e[p],t[p]))return!1}return!0}case"[object Error]":return e.name===t.name&&e.message===t.message;case"[object Number]":if(e!==e)return t!==t;case"[object Boolean]":case"[object Date]":return+e==+t;case"[object RegExp]":case"[object String]":return e==`${t}`;case"[object Map]":case"[object Set]":{if(e.size!==t.size)return!1;if(vb(e,t))return!0;const u=e.entries(),s=a==="[object Map]";for(;;){const c=u.next();if(c.done)break;const[d,p]=c.value;if(!t.has(d)||s&&!Ch(p,t.get(d)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":e=new Uint8Array(e),t=new Uint8Array(t);case"[object DataView]":{let u=e.byteLength;if(u===t.byteLength)for(;u--&&e[u]===t[u];);return u===-1}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{const u=mb.call(e);return u!==mb.call(t)?!1:!gw(u,yw)}}return!1}function pb(e){return Object.keys(e).filter(vw,e)}function vw(e){return this[e]!==void 0}const yw="{ [native code] }";function gw(e,t){const a=e.length-t.length;return a>=0&&e.indexOf(t,a)===a}function vb(e,t){let a=zh.get(e);if(a){if(a.has(t))return!0}else zh.set(e,a=new Set);return a.add(t),!1}function C_(e,t,a,r){var u=t.data,s=Sn(t,["data"]),c=a.data,d=Sn(a,["data"]);return Qe(s,d)&&js(_l(e).selectionSet,u,c,{fragmentMap:yl(bl(e)),variables:r})}function js(e,t,a,r){if(t===a)return!0;var u=new Set;return e.selections.every(function(s){if(u.has(s)||(u.add(s),!Ku(s,r.variables))||yb(s))return!0;if(yi(s)){var c=ja(s),d=t&&t[c],p=a&&a[c],m=s.selectionSet;if(!m)return Qe(d,p);var v=Array.isArray(d),y=Array.isArray(p);if(v!==y)return!1;if(v&&y){var b=d.length;if(p.length!==b)return!1;for(var _=0;_<b;++_)if(!js(m,d[_],p[_],r))return!1;return!0}return js(m,d,p,r)}else{var E=ac(s,r.fragmentMap);if(E)return yb(E)?!0:js(E.selectionSet,t,a,r)}})}function yb(e){return!!e.directives&&e.directives.some(bw)}function bw(e){return e.name.value==="nonreactive"}var j_=ar?WeakMap:Map,M_=nm?WeakSet:Set,vm=new Sl,gb=!1;function F_(){gb||(gb=!0,globalThis.__DEV__!==!1&&ne.warn(64))}function V_(e,t,a){return vm.withValue(!0,function(){var r=ju(e,t,a,!1);return Object.isFrozen(e)&&pl(r),r})}function _w(e,t){if(t.has(e))return t.get(e);var a=Array.isArray(e)?[]:Object.create(null);return t.set(e,a),a}function ju(e,t,a,r,u){var s,c=a.knownChanged,d=_w(e,a.mutableTargets);if(Array.isArray(e)){for(var p=0,m=Array.from(e.entries());p<m.length;p++){var v=m[p],y=v[0],b=v[1];if(b===null){d[y]=null;continue}var _=ju(b,t,a,r,globalThis.__DEV__!==!1?"".concat(u||"","[").concat(y,"]"):void 0);c.has(_)&&c.add(d),d[y]=_}return c.has(d)?d:e}for(var E=0,T=t.selections;E<T.length;E++){var D=T[E],N=void 0;if(r&&c.add(d),D.kind===nt.FIELD){var w=ja(D),O=D.selectionSet;if(N=d[w]||e[w],N===void 0)continue;if(O&&N!==null){var _=ju(e[w],O,a,r,globalThis.__DEV__!==!1?"".concat(u||"",".").concat(w):void 0);c.has(_)&&(N=_)}globalThis.__DEV__===!1&&(d[w]=N),globalThis.__DEV__!==!1&&(r&&w!=="__typename"&&!(!((s=Object.getOwnPropertyDescriptor(d,w))===null||s===void 0)&&s.value)?Object.defineProperty(d,w,Sw(w,N,u||"",a.operationName,a.operationType)):(delete d[w],d[w]=N))}if(D.kind===nt.INLINE_FRAGMENT&&(!D.typeCondition||a.cache.fragmentMatches(D,e.__typename))&&(N=ju(e,D.selectionSet,a,r,u)),D.kind===nt.FRAGMENT_SPREAD){var M=D.name.value,z=a.fragmentMap[M]||(a.fragmentMap[M]=a.cache.lookupFragment(M));ne(z,59,M);var Z=mT(D);Z!=="mask"&&(N=ju(e,z.selectionSet,a,Z==="migrate",u))}c.has(N)&&c.add(d)}return"__typename"in e&&!("__typename"in d)&&(d.__typename=e.__typename),Object.keys(d).length!==Object.keys(e).length&&c.add(d),c.has(d)?d:e}function Sw(e,t,a,r,u){var s=function(){return vm.getValue()||(globalThis.__DEV__!==!1&&ne.warn(60,r?"".concat(u," '").concat(r,"'"):"anonymous ".concat(u),"".concat(a,".").concat(e).replace(/^\./,"")),s=function(){return t}),t};return{get:function(){return s()},set:function(c){s=function(){return c}},enumerable:!0,configurable:!0}}function U_(e,t,a,r){if(!a.fragmentMatches)return globalThis.__DEV__!==!1&&F_(),e;var u=t.definitions.filter(function(c){return c.kind===nt.FRAGMENT_DEFINITION});typeof r>"u"&&(ne(u.length===1,61,u.length),r=u[0].name.value);var s=u.find(function(c){return c.name.value===r});return ne(!!s,62,r),e==null||Qe(e,{})?e:V_(e,s.selectionSet,{operationType:"fragment",operationName:s.name.value,fragmentMap:yl(bl(t)),cache:a,mutableTargets:new j_,knownChanged:new M_})}function kw(e,t,a){var r;if(!a.fragmentMatches)return globalThis.__DEV__!==!1&&F_(),e;var u=er(t);return ne(u,63),e==null?e:V_(e,u.selectionSet,{operationType:u.operation,operationName:(r=u.name)===null||r===void 0?void 0:r.value,fragmentMap:yl(bl(t)),cache:a,mutableTargets:new j_,knownChanged:new M_})}var L_=(function(){function e(){this.assumeImmutableResults=!1,this.getFragmentDoc=Yu(ST,{max:ua["cache.fragmentQueryDocuments"]||1e3,cache:Qs})}return e.prototype.lookupFragment=function(t){return null},e.prototype.batch=function(t){var a=this,r=typeof t.optimistic=="string"?t.optimistic:t.optimistic===!1?null:void 0,u;return this.performTransaction(function(){return u=t.update(a)},r),u},e.prototype.recordOptimisticTransaction=function(t,a){this.performTransaction(t,a)},e.prototype.transformDocument=function(t){return t},e.prototype.transformForLink=function(t){return t},e.prototype.identify=function(t){},e.prototype.gc=function(){return[]},e.prototype.modify=function(t){return!1},e.prototype.readQuery=function(t,a){var r=this;return a===void 0&&(a=!!t.optimistic),globalThis.__DEV__!==!1&&pt(t,"canonizeResults","cache.readQuery"),Mt("canonizeResults",function(){return r.read(j(j({},t),{rootId:t.id||"ROOT_QUERY",optimistic:a}))})},e.prototype.watchFragment=function(t){var a=this,r=t.fragment,u=t.fragmentName,s=t.from,c=t.optimistic,d=c===void 0?!0:c,p=Sn(t,["fragment","fragmentName","from","optimistic"]),m=this.getFragmentDoc(r,u),v=typeof s>"u"||typeof s=="string"?s:this.identify(s),y=!!t[Symbol.for("apollo.dataMasking")];if(globalThis.__DEV__!==!1){var b=u||u_(r).name.value;v||globalThis.__DEV__!==!1&&ne.warn(1,b)}var _=j(j({},p),{returnPartialData:!0,id:v,query:m,optimistic:d}),E;return new et(function(T){return a.watch(j(j({},_),{immediate:!0,callback:function(D){var N=y?U_(D.result,r,a,u):D.result;if(!(E&&C_(m,{data:E.result},{data:N},t.variables))){var w={data:N,complete:!!D.complete};D.missing&&(w.missing=uc(D.missing.map(function(O){return O.missing}))),E=j(j({},D),{result:N}),T.next(w)}}}))})},e.prototype.readFragment=function(t,a){var r=this;return a===void 0&&(a=!!t.optimistic),globalThis.__DEV__!==!1&&pt(t,"canonizeResults","cache.readFragment"),Mt("canonizeResults",function(){return r.read(j(j({},t),{query:r.getFragmentDoc(t.fragment,t.fragmentName),rootId:t.id,optimistic:a}))})},e.prototype.writeQuery=function(t){var a=t.id,r=t.data,u=Sn(t,["id","data"]);return this.write(Object.assign(u,{dataId:a||"ROOT_QUERY",result:r}))},e.prototype.writeFragment=function(t){var a=t.id,r=t.data,u=t.fragment,s=t.fragmentName,c=Sn(t,["id","data","fragment","fragmentName"]);return this.write(Object.assign(c,{query:this.getFragmentDoc(u,s),dataId:a,result:r}))},e.prototype.updateQuery=function(t,a){return globalThis.__DEV__!==!1&&pt(t,"canonizeResults","cache.updateQuery"),this.batch({update:function(r){var u=Mt("canonizeResults",function(){return r.readQuery(t)}),s=a(u);return s==null?u:(r.writeQuery(j(j({},t),{data:s})),s)}})},e.prototype.updateFragment=function(t,a){return globalThis.__DEV__!==!1&&pt(t,"canonizeResults","cache.updateFragment"),this.batch({update:function(r){var u=Mt("canonizeResults",function(){return r.readFragment(t)}),s=a(u);return s==null?u:(r.writeFragment(j(j({},t),{data:s})),s)}})},e})();globalThis.__DEV__!==!1&&(L_.prototype.getMemoryInternals=CT);var q_=(function(e){Xn(t,e);function t(a,r,u,s){var c,d=e.call(this,a)||this;if(d.message=a,d.path=r,d.query=u,d.variables=s,Array.isArray(d.path)){d.missing=d.message;for(var p=d.path.length-1;p>=0;--p)d.missing=(c={},c[d.path[p]]=d.missing,c)}else d.missing=d.path;return d.__proto__=t.prototype,d}return t})(Error),jt=Object.prototype.hasOwnProperty;function Du(e){return e==null}function Q_(e,t){var a=e.__typename,r=e.id,u=e._id;if(typeof a=="string"&&(t&&(t.keyObject=Du(r)?Du(u)?void 0:{_id:u}:{id:r}),Du(r)&&!Du(u)&&(r=u),!Du(r)))return"".concat(a,":").concat(typeof r=="number"||typeof r=="string"?r:JSON.stringify(r))}var B_={dataIdFromObject:Q_,addTypename:!0,resultCaching:!0,canonizeResults:!1};function Ew(e){return tr(B_,e)}function I_(e){var t=e.canonizeResults;return t===void 0?B_.canonizeResults:t}function Nw(e,t){return $e(t)?e.get(t.__ref,"__typename"):t&&t.__typename}var Z_=/^[_a-z][_0-9a-z]*/i;function _i(e){var t=e.match(Z_);return t?t[0]:e}function jh(e,t,a){return ut(t)?vt(t)?t.every(function(r){return jh(e,r,a)}):e.selections.every(function(r){if(yi(r)&&Ku(r,a)){var u=ja(r);return jt.call(t,u)&&(!r.selectionSet||jh(r.selectionSet,t[u],a))}return!0}):!1}function al(e){return ut(e)&&!$e(e)&&!vt(e)}function Tw(){return new bi}function H_(e,t){var a=yl(bl(e));return{fragmentMap:a,lookupFragment:function(r){var u=a[r];return!u&&t&&(u=t.lookup(r)),u||null}}}var Ms=Object.create(null),$d=function(){return Ms},bb=Object.create(null),Pu=(function(){function e(t,a){var r=this;this.policies=t,this.group=a,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(u,s){return pl($e(u)?r.get(u.__ref,s):u&&u[s])},this.canRead=function(u){return $e(u)?r.has(u.__ref):typeof u=="object"},this.toReference=function(u,s){if(typeof u=="string")return ol(u);if($e(u))return u;var c=r.policies.identify(u)[0];if(c){var d=ol(c);return s&&r.merge(c,u),d}}}return e.prototype.toObject=function(){return j({},this.data)},e.prototype.has=function(t){return this.lookup(t,!0)!==void 0},e.prototype.get=function(t,a){if(this.group.depend(t,a),jt.call(this.data,t)){var r=this.data[t];if(r&&jt.call(r,a))return r[a]}if(a==="__typename"&&jt.call(this.policies.rootTypenamesById,t))return this.policies.rootTypenamesById[t];if(this instanceof si)return this.parent.get(t,a)},e.prototype.lookup=function(t,a){if(a&&this.group.depend(t,"__exists"),jt.call(this.data,t))return this.data[t];if(this instanceof si)return this.parent.lookup(t,a);if(this.policies.rootTypenamesById[t])return Object.create(null)},e.prototype.merge=function(t,a){var r=this,u;$e(t)&&(t=t.__ref),$e(a)&&(a=a.__ref);var s=typeof t=="string"?this.lookup(u=t):t,c=typeof a=="string"?this.lookup(u=a):a;if(c){ne(typeof u=="string",2);var d=new bi(ww).merge(s,c);if(this.data[u]=d,d!==s&&(delete this.refs[u],this.group.caching)){var p=Object.create(null);s||(p.__exists=1),Object.keys(c).forEach(function(m){if(!s||s[m]!==d[m]){p[m]=1;var v=_i(m);v!==m&&!r.policies.hasKeyArgs(d.__typename,v)&&(p[v]=1),d[m]===void 0&&!(r instanceof si)&&delete d[m]}}),p.__typename&&!(s&&s.__typename)&&this.policies.rootTypenamesById[u]===d.__typename&&delete p.__typename,Object.keys(p).forEach(function(m){return r.group.dirty(u,m)})}}},e.prototype.modify=function(t,a){var r=this,u=this.lookup(t);if(u){var s=Object.create(null),c=!1,d=!0,p={DELETE:Ms,INVALIDATE:bb,isReference:$e,toReference:this.toReference,canRead:this.canRead,readField:function(m,v){return r.policies.readField(typeof m=="string"?{fieldName:m,from:v||ol(t)}:m,{store:r})}};if(Object.keys(u).forEach(function(m){var v=_i(m),y=u[m];if(y!==void 0){var b=typeof a=="function"?a:a[m]||a[v];if(b){var _=b===$d?Ms:b(pl(y),j(j({},p),{fieldName:v,storeFieldName:m,storage:r.getStorage(t,m)}));if(_===bb)r.group.dirty(t,m);else if(_===Ms&&(_=void 0),_!==y&&(s[m]=_,c=!0,y=_,globalThis.__DEV__!==!1)){var E=function(z){if(r.lookup(z.__ref)===void 0)return globalThis.__DEV__!==!1&&ne.warn(3,z),!0};if($e(_))E(_);else if(Array.isArray(_))for(var T=!1,D=void 0,N=0,w=_;N<w.length;N++){var O=w[N];if($e(O)){if(T=!0,E(O))break}else if(typeof O=="object"&&O){var M=r.policies.identify(O)[0];M&&(D=O)}if(T&&D!==void 0){globalThis.__DEV__!==!1&&ne.warn(4,D);break}}}}y!==void 0&&(d=!1)}}),c)return this.merge(t,s),d&&(this instanceof si?this.data[t]=void 0:delete this.data[t],this.group.dirty(t,"__exists")),!0}return!1},e.prototype.delete=function(t,a,r){var u,s=this.lookup(t);if(s){var c=this.getFieldValue(s,"__typename"),d=a&&r?this.policies.getStoreFieldName({typename:c,fieldName:a,args:r}):a;return this.modify(t,d?(u={},u[d]=$d,u):$d)}return!1},e.prototype.evict=function(t,a){var r=!1;return t.id&&(jt.call(this.data,t.id)&&(r=this.delete(t.id,t.fieldName,t.args)),this instanceof si&&this!==a&&(r=this.parent.evict(t,a)||r),(t.fieldName||r)&&this.group.dirty(t.id,t.fieldName||"__exists")),r},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var t=this,a=this.toObject(),r=[];return this.getRootIdSet().forEach(function(u){jt.call(t.policies.rootTypenamesById,u)||r.push(u)}),r.length&&(a.__META={extraRootIds:r.sort()}),a},e.prototype.replace=function(t){var a=this;if(Object.keys(this.data).forEach(function(s){t&&jt.call(t,s)||a.delete(s)}),t){var r=t.__META,u=Sn(t,["__META"]);Object.keys(u).forEach(function(s){a.merge(s,u[s])}),r&&r.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(t){return this.rootIds[t]=(this.rootIds[t]||0)+1},e.prototype.release=function(t){if(this.rootIds[t]>0){var a=--this.rootIds[t];return a||delete this.rootIds[t],a}return 0},e.prototype.getRootIdSet=function(t){return t===void 0&&(t=new Set),Object.keys(this.rootIds).forEach(t.add,t),this instanceof si?this.parent.getRootIdSet(t):Object.keys(this.policies.rootTypenamesById).forEach(t.add,t),t},e.prototype.gc=function(){var t=this,a=this.getRootIdSet(),r=this.toObject();a.forEach(function(c){jt.call(r,c)&&(Object.keys(t.findChildRefIds(c)).forEach(a.add,a),delete r[c])});var u=Object.keys(r);if(u.length){for(var s=this;s instanceof si;)s=s.parent;u.forEach(function(c){return s.delete(c)})}return u},e.prototype.findChildRefIds=function(t){if(!jt.call(this.refs,t)){var a=this.refs[t]=Object.create(null),r=this.data[t];if(!r)return a;var u=new Set([r]);u.forEach(function(s){$e(s)&&(a[s.__ref]=!0),ut(s)&&Object.keys(s).forEach(function(c){var d=s[c];ut(d)&&u.add(d)})})}return this.refs[t]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e})(),$_=(function(){function e(t,a){a===void 0&&(a=null),this.caching=t,this.parent=a,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?g_():null,this.keyMaker=new Va(ar)},e.prototype.depend=function(t,a){if(this.d){this.d(Gd(t,a));var r=_i(a);r!==a&&this.d(Gd(t,r)),this.parent&&this.parent.depend(t,a)}},e.prototype.dirty=function(t,a){this.d&&this.d.dirty(Gd(t,a),a==="__exists"?"forget":"setDirty")},e})();function Gd(e,t){return t+"#"+e}function _b(e,t){Qu(e)&&e.group.depend(t,"__exists")}(function(e){var t=(function(a){Xn(r,a);function r(u){var s=u.policies,c=u.resultCaching,d=c===void 0?!0:c,p=u.seed,m=a.call(this,s,new $_(d))||this;return m.stump=new Ow(m),m.storageTrie=new Va(ar),p&&m.replace(p),m}return r.prototype.addLayer=function(u,s){return this.stump.addLayer(u,s)},r.prototype.removeLayer=function(){return this},r.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},r})(e);e.Root=t})(Pu||(Pu={}));var si=(function(e){Xn(t,e);function t(a,r,u,s){var c=e.call(this,r.policies,s)||this;return c.id=a,c.parent=r,c.replay=u,c.group=s,u(c),c}return t.prototype.addLayer=function(a,r){return new t(a,this,r,this.group)},t.prototype.removeLayer=function(a){var r=this,u=this.parent.removeLayer(a);return a===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(s){var c=r.data[s],d=u.lookup(s);d?c?c!==d&&Object.keys(c).forEach(function(p){Qe(c[p],d[p])||r.group.dirty(s,p)}):(r.group.dirty(s,"__exists"),Object.keys(d).forEach(function(p){r.group.dirty(s,p)})):r.delete(s)}),u):u===this.parent?this:u.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return j(j({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(a){var r=this.parent.findChildRefIds(a);return jt.call(this.data,a)?j(j({},r),e.prototype.findChildRefIds.call(this,a)):r},t.prototype.getStorage=function(){for(var a=this.parent;a.parent;)a=a.parent;return a.getStorage.apply(a,arguments)},t})(Pu),Ow=(function(e){Xn(t,e);function t(a){return e.call(this,"EntityStore.Stump",a,function(){},new $_(a.group.caching,a.group))||this}return t.prototype.removeLayer=function(){return this},t.prototype.merge=function(a,r){return this.parent.merge(a,r)},t})(si);function ww(e,t,a){var r=e[a],u=t[a];return Qe(r,u)?r:u}function Qu(e){return!!(e instanceof Pu&&e.group.caching)}function Dw(e){return ut(e)?vt(e)?e.slice(0):j({__proto__:Object.getPrototypeOf(e)},e):e}var Sb=(function(){function e(){this.known=new(nm?WeakSet:Set),this.pool=new Va(ar),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(t){return ut(t)&&this.known.has(t)},e.prototype.pass=function(t){if(ut(t)){var a=Dw(t);return this.passes.set(a,t),a}return t},e.prototype.admit=function(t){var a=this;if(ut(t)){var r=this.passes.get(t);if(r)return r;var u=Object.getPrototypeOf(t);switch(u){case Array.prototype:{if(this.known.has(t))return t;var s=t.map(this.admit,this),c=this.pool.lookupArray(s);return c.array||(this.known.add(c.array=s),globalThis.__DEV__!==!1&&Object.freeze(s)),c.array}case null:case Object.prototype:{if(this.known.has(t))return t;var d=Object.getPrototypeOf(t),p=[d],m=this.sortedKeys(t);p.push(m.json);var v=p.length;m.sorted.forEach(function(_){p.push(a.admit(t[_]))});var c=this.pool.lookupArray(p);if(!c.object){var y=c.object=Object.create(d);this.known.add(y),m.sorted.forEach(function(_,E){y[_]=p[v+E]}),globalThis.__DEV__!==!1&&Object.freeze(y)}return c.object}}}return t},e.prototype.sortedKeys=function(t){var a=Object.keys(t),r=this.pool.lookupArray(a);if(!r.keys){a.sort();var u=JSON.stringify(a);(r.keys=this.keysByJSON.get(u))||this.keysByJSON.set(u,r.keys={sorted:a,json:u})}return r.keys},e})();function kb(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var xw=(function(){function e(t){var a=this;this.knownResults=new(ar?WeakMap:Map),this.config=tr(t,{addTypename:t.addTypename!==!1,canonizeResults:I_(t)}),this.canon=t.canon||new Sb,this.executeSelectionSet=Yu(function(r){var u,s=r.context.canonizeResults,c=kb(r);c[3]=!s;var d=(u=a.executeSelectionSet).peek.apply(u,c);return d?s?j(j({},d),{result:a.canon.admit(d.result)}):d:(_b(r.context.store,r.enclosingRef.__ref),a.execSelectionSetImpl(r))},{max:this.config.resultCacheMaxSize||ua["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:kb,makeCacheKey:function(r,u,s,c){if(Qu(s.store))return s.store.makeCacheKey(r,$e(u)?u.__ref:u,s.varString,c)}}),this.executeSubSelectedArray=Yu(function(r){return _b(r.context.store,r.enclosingRef.__ref),a.execSubSelectedArrayImpl(r)},{max:this.config.resultCacheMaxSize||ua["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey:function(r){var u=r.field,s=r.array,c=r.context;if(Qu(c.store))return c.store.makeCacheKey(u,s,c.varString)}})}return e.prototype.resetCanon=function(){this.canon=new Sb},e.prototype.diffQueryAgainstStore=function(t){var a=t.store,r=t.query,u=t.rootId,s=u===void 0?"ROOT_QUERY":u,c=t.variables,d=t.returnPartialData,p=d===void 0?!0:d,m=t.canonizeResults,v=m===void 0?this.config.canonizeResults:m,y=this.config.cache.policies;c=j(j({},lm(l_(r))),c);var b=ol(s),_=this.executeSelectionSet({selectionSet:_l(r).selectionSet,objectOrReference:b,enclosingRef:b,context:j({store:a,query:r,policies:y,variables:c,varString:vi(c),canonizeResults:v},H_(r,this.config.fragments))}),E;if(_.missing&&(E=[new q_(Rw(_.missing),_.missing,r,c)],!p))throw E[0];return{result:_.result,complete:!E,missing:E}},e.prototype.isFresh=function(t,a,r,u){if(Qu(u.store)&&this.knownResults.get(t)===r){var s=this.executeSelectionSet.peek(r,a,u,this.canon.isKnown(t));if(s&&t===s.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(t){var a=this,r=t.selectionSet,u=t.objectOrReference,s=t.enclosingRef,c=t.context;if($e(u)&&!c.policies.rootTypenamesById[u.__ref]&&!c.store.has(u.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(u.__ref," object")};var d=c.variables,p=c.policies,m=c.store,v=m.getFieldValue(u,"__typename"),y=[],b,_=new bi;this.config.addTypename&&typeof v=="string"&&!p.rootIdsByTypename[v]&&y.push({__typename:v});function E(O,M){var z;return O.missing&&(b=_.merge(b,(z={},z[M]=O.missing,z))),O.result}var T=new Set(r.selections);T.forEach(function(O){var M,z;if(Ku(O,d))if(yi(O)){var Z=p.readField({fieldName:O.name.value,field:O,variables:c.variables,from:u},c),$=ja(O);Z===void 0?cm.added(O)||(b=_.merge(b,(M={},M[$]="Can't find field '".concat(O.name.value,"' on ").concat($e(u)?u.__ref+" object":"object "+JSON.stringify(u,null,2)),M))):vt(Z)?Z.length>0&&(Z=E(a.executeSubSelectedArray({field:O,array:Z,enclosingRef:s,context:c}),$)):O.selectionSet?Z!=null&&(Z=E(a.executeSelectionSet({selectionSet:O.selectionSet,objectOrReference:Z,enclosingRef:$e(Z)?Z:s,context:c}),$)):c.canonizeResults&&(Z=a.canon.pass(Z)),Z!==void 0&&y.push((z={},z[$]=Z,z))}else{var W=ac(O,c.lookupFragment);if(!W&&O.kind===nt.FRAGMENT_SPREAD)throw Wt(10,O.name.value);W&&p.fragmentMatches(W,v)&&W.selectionSet.selections.forEach(T.add,T)}});var D=uc(y),N={result:D,missing:b},w=c.canonizeResults?this.canon.admit(N):pl(N);return w.result&&this.knownResults.set(w.result,r),w},e.prototype.execSubSelectedArrayImpl=function(t){var a=this,r=t.field,u=t.array,s=t.enclosingRef,c=t.context,d,p=new bi;function m(v,y){var b;return v.missing&&(d=p.merge(d,(b={},b[y]=v.missing,b))),v.result}return r.selectionSet&&(u=u.filter(c.store.canRead)),u=u.map(function(v,y){return v===null?null:vt(v)?m(a.executeSubSelectedArray({field:r,array:v,enclosingRef:s,context:c}),y):r.selectionSet?m(a.executeSelectionSet({selectionSet:r.selectionSet,objectOrReference:v,enclosingRef:$e(v)?v:s,context:c}),y):(globalThis.__DEV__!==!1&&Aw(c.store,r,v),v)}),{result:c.canonizeResults?this.canon.admit(u):u,missing:d}},e})();function Rw(e){try{JSON.stringify(e,function(t,a){if(typeof a=="string")throw a;return a})}catch(t){return t}}function Aw(e,t,a){if(!t.selectionSet){var r=new Set([a]);r.forEach(function(u){ut(u)&&(ne(!$e(u),11,Nw(e,u),t.name.value),Object.values(u).forEach(r.add,r))})}}var ym=new Sl,Eb=new WeakMap;function Bu(e){var t=Eb.get(e);return t||Eb.set(e,t={vars:new Set,dep:g_()}),t}function Nb(e){Bu(e).vars.forEach(function(t){return t.forgetCache(e)})}function zw(e){Bu(e).vars.forEach(function(t){return t.attachCache(e)})}function Cw(e){var t=new Set,a=new Set,r=function(s){if(arguments.length>0){if(e!==s){e=s,t.forEach(function(p){Bu(p).dep.dirty(r),jw(p)});var c=Array.from(a);a.clear(),c.forEach(function(p){return p(e)})}}else{var d=ym.getValue();d&&(u(d),Bu(d).dep(r))}return e};r.onNextChange=function(s){return a.add(s),function(){a.delete(s)}};var u=r.attachCache=function(s){return t.add(s),Bu(s).vars.add(r),r};return r.forgetCache=function(s){return t.delete(s)},r}function jw(e){e.broadcastWatches&&e.broadcastWatches()}var Tb=Object.create(null);function gm(e){var t=JSON.stringify(e);return Tb[t]||(Tb[t]=Object.create(null))}function Ob(e){var t=gm(e);return t.keyFieldsFn||(t.keyFieldsFn=function(a,r){var u=function(c,d){return r.readField(d,c)},s=r.keyObject=bm(e,function(c){var d=cl(r.storeObject,c,u);return d===void 0&&a!==r.storeObject&&jt.call(a,c[0])&&(d=cl(a,c,Y_)),ne(d!==void 0,5,c.join("."),a),d});return"".concat(r.typename,":").concat(JSON.stringify(s))})}function wb(e){var t=gm(e);return t.keyArgsFn||(t.keyArgsFn=function(a,r){var u=r.field,s=r.variables,c=r.fieldName,d=bm(e,function(m){var v=m[0],y=v.charAt(0);if(y==="@"){if(u&&Fn(u.directives)){var b=v.slice(1),_=u.directives.find(function(N){return N.name.value===b}),E=_&&ic(_,s);return E&&cl(E,m.slice(1))}return}if(y==="$"){var T=v.slice(1);if(s&&jt.call(s,T)){var D=m.slice(0);return D[0]=T,cl(s,D)}return}if(a)return cl(a,m)}),p=JSON.stringify(d);return(a||p!=="{}")&&(c+=":"+p),c})}function bm(e,t){var a=new bi;return G_(e).reduce(function(r,u){var s,c=t(u);if(c!==void 0){for(var d=u.length-1;d>=0;--d)c=(s={},s[u[d]]=c,s);r=a.merge(r,c)}return r},Object.create(null))}function G_(e){var t=gm(e);if(!t.paths){var a=t.paths=[],r=[];e.forEach(function(u,s){vt(u)?(G_(u).forEach(function(c){return a.push(r.concat(c))}),r.length=0):(r.push(u),vt(e[s+1])||(a.push(r.slice(0)),r.length=0))})}return t.paths}function Y_(e,t){return e[t]}function cl(e,t,a){return a=a||Y_,P_(t.reduce(function r(u,s){return vt(u)?u.map(function(c){return r(c,s)}):u&&a(u,s)},e))}function P_(e){return ut(e)?vt(e)?e.map(P_):bm(Object.keys(e).sort(),function(t){return cl(e,t)}):e}function Mh(e){return e.args!==void 0?e.args:e.field?ic(e.field,e.variables):null}var Mw=function(){},Db=function(e,t){return t.fieldName},xb=function(e,t,a){var r=a.mergeObjects;return r(e,t)},Rb=function(e,t){return t},Fw=(function(){function e(t){this.config=t,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=j({dataIdFromObject:Q_},t),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),t.possibleTypes&&this.addPossibleTypes(t.possibleTypes),t.typePolicies&&this.addTypePolicies(t.typePolicies)}return e.prototype.identify=function(t,a){var r,u=this,s=a&&(a.typename||((r=a.storeObject)===null||r===void 0?void 0:r.__typename))||t.__typename;if(s===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];var c=a&&a.storeObject||t,d=j(j({},a),{typename:s,storeObject:c,readField:a&&a.readField||function(){var y=_m(arguments,c);return u.readField(y,{store:u.cache.data,variables:y.variables})}}),p,m=s&&this.getTypePolicy(s),v=m&&m.keyFn||this.config.dataIdFromObject;return vm.withValue(!0,function(){for(;v;){var y=v(j(j({},t),c),d);if(vt(y))v=Ob(y);else{p=y;break}}}),p=p?String(p):void 0,d.keyObject?[p,d.keyObject]:[p]},e.prototype.addTypePolicies=function(t){var a=this;Object.keys(t).forEach(function(r){var u=t[r],s=u.queryType,c=u.mutationType,d=u.subscriptionType,p=Sn(u,["queryType","mutationType","subscriptionType"]);s&&a.setRootTypename("Query",r),c&&a.setRootTypename("Mutation",r),d&&a.setRootTypename("Subscription",r),jt.call(a.toBeAdded,r)?a.toBeAdded[r].push(p):a.toBeAdded[r]=[p]})},e.prototype.updateTypePolicy=function(t,a,r){var u=this.getTypePolicy(t),s=a.keyFields,c=a.fields;function d(p,m){p.merge=typeof m=="function"?m:m===!0?xb:m===!1?Rb:p.merge}d(u,a.merge),u.keyFn=s===!1?Mw:vt(s)?Ob(s):typeof s=="function"?s:u.keyFn,c&&Object.keys(c).forEach(function(p){var m=r[p];(!m||(m==null?void 0:m.typename)!==t)&&(m=r[p]={typename:t});var v=c[p];if(typeof v=="function")m.read=v;else{var y=v.keyArgs,b=v.read,_=v.merge;m.keyFn=y===!1?Db:vt(y)?wb(y):typeof y=="function"?y:m.keyFn,typeof b=="function"&&(m.read=b),d(m,_)}m.read&&m.merge&&(m.keyFn=m.keyFn||Db)})},e.prototype.setRootTypename=function(t,a){a===void 0&&(a=t);var r="ROOT_"+t.toUpperCase(),u=this.rootTypenamesById[r];a!==u&&(ne(!u||u===t,6,t),u&&delete this.rootIdsByTypename[u],this.rootIdsByTypename[a]=r,this.rootTypenamesById[r]=a)},e.prototype.addPossibleTypes=function(t){var a=this;this.usingPossibleTypes=!0,Object.keys(t).forEach(function(r){a.getSupertypeSet(r,!0),t[r].forEach(function(u){a.getSupertypeSet(u,!0).add(r);var s=u.match(Z_);(!s||s[0]!==u)&&a.fuzzySubtypes.set(u,new RegExp(u))})})},e.prototype.getTypePolicy=function(t){var a=this;if(!jt.call(this.typePolicies,t)){var r=this.typePolicies[t]=Object.create(null);r.fields=Object.create(null);var u=this.supertypeMap.get(t);!u&&this.fuzzySubtypes.size&&(u=this.getSupertypeSet(t,!0),this.fuzzySubtypes.forEach(function(c,d){if(c.test(t)){var p=a.supertypeMap.get(d);p&&p.forEach(function(m){return u.add(m)})}})),u&&u.size&&u.forEach(function(c){var d=a.getTypePolicy(c),p=d.fields,m=Sn(d,["fields"]);Object.assign(r,m),Object.assign(r.fields,p)})}var s=this.toBeAdded[t];return s&&s.length&&s.splice(0).forEach(function(c){a.updateTypePolicy(t,c,a.typePolicies[t].fields)}),this.typePolicies[t]},e.prototype.getFieldPolicy=function(t,a){if(t)return this.getTypePolicy(t).fields[a]},e.prototype.getSupertypeSet=function(t,a){var r=this.supertypeMap.get(t);return!r&&a&&this.supertypeMap.set(t,r=new Set),r},e.prototype.fragmentMatches=function(t,a,r,u){var s=this;if(!t.typeCondition)return!0;if(!a)return!1;var c=t.typeCondition.name.value;if(a===c)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(c))for(var d=this.getSupertypeSet(a,!0),p=[d],m=function(E){var T=s.getSupertypeSet(E,!1);T&&T.size&&p.indexOf(T)<0&&p.push(T)},v=!!(r&&this.fuzzySubtypes.size),y=!1,b=0;b<p.length;++b){var _=p[b];if(_.has(c))return d.has(c)||(y&&globalThis.__DEV__!==!1&&ne.warn(7,a,c),d.add(c)),!0;_.forEach(m),v&&b===p.length-1&&jh(t.selectionSet,r,u)&&(v=!1,y=!0,this.fuzzySubtypes.forEach(function(E,T){var D=a.match(E);D&&D[0]===a&&m(T)}))}return!1},e.prototype.hasKeyArgs=function(t,a){var r=this.getFieldPolicy(t,a);return!!(r&&r.keyFn)},e.prototype.getStoreFieldName=function(t){var a=t.typename,r=t.fieldName,u=this.getFieldPolicy(a,r),s,c=u&&u.keyFn;if(c&&a)for(var d={typename:a,fieldName:r,field:t.field||null,variables:t.variables},p=Mh(t);c;){var m=c(p,d);if(vt(m))c=wb(m);else{s=m||r;break}}return s===void 0&&(s=t.field?XT(t.field,t.variables):r_(r,Mh(t))),s===!1?r:r===_i(s)?s:r+":"+s},e.prototype.readField=function(t,a){var r=t.from;if(r){var u=t.field||t.fieldName;if(u){if(t.typename===void 0){var s=a.store.getFieldValue(r,"__typename");s&&(t.typename=s)}var c=this.getStoreFieldName(t),d=_i(c),p=a.store.getFieldValue(r,c),m=this.getFieldPolicy(t.typename,d),v=m&&m.read;if(v){var y=Ab(this,r,t,a,a.store.getStorage($e(r)?r.__ref:r,c));return ym.withValue(this.cache,v,[p,y])}return p}}},e.prototype.getReadFunction=function(t,a){var r=this.getFieldPolicy(t,a);return r&&r.read},e.prototype.getMergeFunction=function(t,a,r){var u=this.getFieldPolicy(t,a),s=u&&u.merge;return!s&&r&&(u=this.getTypePolicy(r),s=u&&u.merge),s},e.prototype.runMergeFunction=function(t,a,r,u,s){var c=r.field,d=r.typename,p=r.merge;return p===xb?X_(u.store)(t,a):p===Rb?a:(u.overwrite&&(t=void 0),p(t,a,Ab(this,void 0,{typename:d,fieldName:c.name.value,field:c,variables:u.variables},u,s||Object.create(null))))},e})();function Ab(e,t,a,r,u){var s=e.getStoreFieldName(a),c=_i(s),d=a.variables||r.variables,p=r.store,m=p.toReference,v=p.canRead;return{args:Mh(a),field:a.field||null,fieldName:c,storeFieldName:s,variables:d,isReference:$e,toReference:m,storage:u,cache:e.cache,canRead:v,readField:function(){return e.readField(_m(arguments,t,d),r)},mergeObjects:X_(r.store)}}function _m(e,t,a){var r=e[0],u=e[1],s=e.length,c;return typeof r=="string"?c={fieldName:r,from:s>1?u:t}:(c=j({},r),jt.call(c,"from")||(c.from=t)),globalThis.__DEV__!==!1&&c.from===void 0&&globalThis.__DEV__!==!1&&ne.warn(8,P0(Array.from(e))),c.variables===void 0&&(c.variables=a),c}function X_(e){return function(a,r){if(vt(a)||vt(r))throw Wt(9);if(ut(a)&&ut(r)){var u=e.getFieldValue(a,"__typename"),s=e.getFieldValue(r,"__typename"),c=u&&s&&u!==s;if(c)return r;if($e(a)&&al(r))return e.merge(a.__ref,r),a;if(al(a)&&$e(r))return e.merge(a,r.__ref),r;if(al(a)&&al(r))return j(j({},a),r)}return r}}function Yd(e,t,a){var r="".concat(t).concat(a),u=e.flavors.get(r);return u||e.flavors.set(r,u=e.clientOnly===t&&e.deferred===a?e:j(j({},e),{clientOnly:t,deferred:a})),u}var Vw=(function(){function e(t,a,r){this.cache=t,this.reader=a,this.fragments=r}return e.prototype.writeToStore=function(t,a){var r=this,u=a.query,s=a.result,c=a.dataId,d=a.variables,p=a.overwrite,m=er(u),v=Tw();d=j(j({},lm(m)),d);var y=j(j({store:t,written:Object.create(null),merge:function(_,E){return v.merge(_,E)},variables:d,varString:vi(d)},H_(u,this.fragments)),{overwrite:!!p,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),b=this.processSelectionSet({result:s||Object.create(null),dataId:c,selectionSet:m.selectionSet,mergeTree:{map:new Map},context:y});if(!$e(b))throw Wt(12,s);return y.incomingById.forEach(function(_,E){var T=_.storeObject,D=_.mergeTree,N=_.fieldNodeSet,w=ol(E);if(D&&D.map.size){var O=r.applyMerges(D,w,T,y);if($e(O))return;T=O}if(globalThis.__DEV__!==!1&&!y.overwrite){var M=Object.create(null);N.forEach(function($){$.selectionSet&&(M[$.name.value]=!0)});var z=function($){return M[_i($)]===!0},Z=function($){var W=D&&D.map.get($);return!!(W&&W.info&&W.info.merge)};Object.keys(T).forEach(function($){z($)&&!Z($)&&Uw(w,T,$,y.store)})}t.merge(E,T)}),t.retain(b.__ref),b},e.prototype.processSelectionSet=function(t){var a=this,r=t.dataId,u=t.result,s=t.selectionSet,c=t.context,d=t.mergeTree,p=this.cache.policies,m=Object.create(null),v=r&&p.rootTypenamesById[r]||Eh(u,s,c.fragmentMap)||r&&c.store.get(r,"__typename");typeof v=="string"&&(m.__typename=v);var y=function(){var O=_m(arguments,m,c.variables);if($e(O.from)){var M=c.incomingById.get(O.from.__ref);if(M){var z=p.readField(j(j({},O),{from:M.storeObject}),c);if(z!==void 0)return z}}return p.readField(O,c)},b=new Set;this.flattenFields(s,u,c,v).forEach(function(O,M){var z,Z=ja(M),$=u[Z];if(b.add(M),$!==void 0){var W=p.getStoreFieldName({typename:v,fieldName:M.name.value,field:M,variables:O.variables}),se=zb(d,W),Ne=a.processFieldValue($,M,M.selectionSet?Yd(O,!1,!1):O,se),Be=void 0;M.selectionSet&&($e(Ne)||al(Ne))&&(Be=y("__typename",Ne));var le=p.getMergeFunction(v,M.name.value,Be);le?se.info={field:M,typename:v,merge:le}:Cb(d,W),m=O.merge(m,(z={},z[W]=Ne,z))}else globalThis.__DEV__!==!1&&!O.clientOnly&&!O.deferred&&!cm.added(M)&&!p.getReadFunction(v,M.name.value)&&globalThis.__DEV__!==!1&&ne.error(13,ja(M),u)});try{var _=p.identify(u,{typename:v,selectionSet:s,fragmentMap:c.fragmentMap,storeObject:m,readField:y}),E=_[0],T=_[1];r=r||E,T&&(m=c.merge(m,T))}catch(O){if(!r)throw O}if(typeof r=="string"){var D=ol(r),N=c.written[r]||(c.written[r]=[]);if(N.indexOf(s)>=0||(N.push(s),this.reader&&this.reader.isFresh(u,D,s,c)))return D;var w=c.incomingById.get(r);return w?(w.storeObject=c.merge(w.storeObject,m),w.mergeTree=Fh(w.mergeTree,d),b.forEach(function(O){return w.fieldNodeSet.add(O)})):c.incomingById.set(r,{storeObject:m,mergeTree:Zs(d)?void 0:d,fieldNodeSet:b}),D}return m},e.prototype.processFieldValue=function(t,a,r,u){var s=this;return!a.selectionSet||t===null?globalThis.__DEV__!==!1?O_(t):t:vt(t)?t.map(function(c,d){var p=s.processFieldValue(c,a,r,zb(u,d));return Cb(u,d),p}):this.processSelectionSet({result:t,selectionSet:a.selectionSet,context:r,mergeTree:u})},e.prototype.flattenFields=function(t,a,r,u){u===void 0&&(u=Eh(a,t,r.fragmentMap));var s=new Map,c=this.cache.policies,d=new Va(!1);return(function p(m,v){var y=d.lookup(m,v.clientOnly,v.deferred);y.visited||(y.visited=!0,m.selections.forEach(function(b){if(Ku(b,r.variables)){var _=v.clientOnly,E=v.deferred;if(!(_&&E)&&Fn(b.directives)&&b.directives.forEach(function(N){var w=N.name.value;if(w==="client"&&(_=!0),w==="defer"){var O=ic(N,r.variables);(!O||O.if!==!1)&&(E=!0)}}),yi(b)){var T=s.get(b);T&&(_=_&&T.clientOnly,E=E&&T.deferred),s.set(b,Yd(r,_,E))}else{var D=ac(b,r.lookupFragment);if(!D&&b.kind===nt.FRAGMENT_SPREAD)throw Wt(14,b.name.value);D&&c.fragmentMatches(D,u,a,r.variables)&&p(D.selectionSet,Yd(r,_,E))}}}))})(t,r),s},e.prototype.applyMerges=function(t,a,r,u,s){var c,d=this;if(t.map.size&&!$e(r)){var p=!vt(r)&&($e(a)||al(a))?a:void 0,m=r;p&&!s&&(s=[$e(p)?p.__ref:p]);var v,y=function(b,_){return vt(b)?typeof _=="number"?b[_]:void 0:u.store.getFieldValue(b,String(_))};t.map.forEach(function(b,_){var E=y(p,_),T=y(m,_);if(T!==void 0){s&&s.push(_);var D=d.applyMerges(b,E,T,u,s);D!==T&&(v=v||new Map,v.set(_,D)),s&&ne(s.pop()===_)}}),v&&(r=vt(m)?m.slice(0):j({},m),v.forEach(function(b,_){r[_]=b}))}return t.info?this.cache.policies.runMergeFunction(a,r,t.info,u,s&&(c=u.store).getStorage.apply(c,s)):r},e})(),J_=[];function zb(e,t){var a=e.map;return a.has(t)||a.set(t,J_.pop()||{map:new Map}),a.get(t)}function Fh(e,t){if(e===t||!t||Zs(t))return e;if(!e||Zs(e))return t;var a=e.info&&t.info?j(j({},e.info),t.info):e.info||t.info,r=e.map.size&&t.map.size,u=r?new Map:e.map.size?e.map:t.map,s={info:a,map:u};if(r){var c=new Set(t.map.keys());e.map.forEach(function(d,p){s.map.set(p,Fh(d,t.map.get(p))),c.delete(p)}),c.forEach(function(d){s.map.set(d,Fh(t.map.get(d),e.map.get(d)))})}return s}function Zs(e){return!e||!(e.info||e.map.size)}function Cb(e,t){var a=e.map,r=a.get(t);r&&Zs(r)&&(J_.push(r),a.delete(t))}var jb=new Set;function Uw(e,t,a,r){var u=function(y){var b=r.getFieldValue(y,a);return typeof b=="object"&&b},s=u(e);if(s){var c=u(t);if(c&&!$e(s)&&!Qe(s,c)&&!Object.keys(s).every(function(y){return r.getFieldValue(c,y)!==void 0})){var d=r.getFieldValue(e,"__typename")||r.getFieldValue(t,"__typename"),p=_i(a),m="".concat(d,".").concat(p);if(!jb.has(m)){jb.add(m);var v=[];!vt(s)&&!vt(c)&&[s,c].forEach(function(y){var b=r.getFieldValue(y,"__typename");typeof b=="string"&&!v.includes(b)&&v.push(b)}),globalThis.__DEV__!==!1&&ne.warn(15,p,d,v.length?"either ensure all objects of type "+v.join(" and ")+" have an ID or a custom merge function, or ":"",m,j({},s),j({},c))}}}}var K_=(function(e){Xn(t,e);function t(a){a===void 0&&(a={});var r=e.call(this)||this;return r.watches=new Set,r.addTypenameTransform=new b_(cm),r.assumeImmutableResults=!0,r.makeVar=Cw,r.txCount=0,globalThis.__DEV__!==!1&&(pt(a,"addTypename","InMemoryCache","Please remove the `addTypename` option when initializing `InMemoryCache`."),pt(a,"canonizeResults","InMemoryCache","Please remove the `canonizeResults` option when initializing `InMemoryCache`.")),r.config=Ew(a),r.addTypename=!!r.config.addTypename,r.policies=new Fw({cache:r,dataIdFromObject:r.config.dataIdFromObject,possibleTypes:r.config.possibleTypes,typePolicies:r.config.typePolicies}),r.init(),r}return t.prototype.init=function(){var a=this.data=new Pu.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=a.stump,this.resetResultCache()},t.prototype.resetResultCache=function(a){var r=this,u=this.storeReader,s=this.config.fragments;this.addTypenameTransform.resetCache(),s==null||s.resetCaches(),this.storeWriter=new Vw(this,this.storeReader=new xw({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:I_(this.config),canon:a?void 0:u&&u.canon,fragments:s}),s),this.maybeBroadcastWatch=Yu(function(c,d){return r.broadcastWatch(c,d)},{max:this.config.resultCacheMaxSize||ua["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:function(c){var d=c.optimistic?r.optimisticData:r.data;if(Qu(d)){var p=c.optimistic,m=c.id,v=c.variables;return d.makeCacheKey(c.query,c.callback,vi({optimistic:p,id:m,variables:v}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(c){return c.resetCaching()})},t.prototype.restore=function(a){return this.init(),a&&this.data.replace(a),this},t.prototype.extract=function(a){return a===void 0&&(a=!1),(a?this.optimisticData:this.data).extract()},t.prototype.read=function(a){globalThis.__DEV__!==!1&&pt(a,"canonizeResults","cache.read");var r=a.returnPartialData,u=r===void 0?!1:r;try{return this.storeReader.diffQueryAgainstStore(j(j({},a),{store:a.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:u})).result||null}catch(s){if(s instanceof q_)return null;throw s}},t.prototype.write=function(a){try{return++this.txCount,this.storeWriter.writeToStore(this.data,a)}finally{!--this.txCount&&a.broadcast!==!1&&this.broadcastWatches()}},t.prototype.modify=function(a){if(jt.call(a,"id")&&!a.id)return!1;var r=a.optimistic?this.optimisticData:this.data;try{return++this.txCount,r.modify(a.id||"ROOT_QUERY",a.fields)}finally{!--this.txCount&&a.broadcast!==!1&&this.broadcastWatches()}},t.prototype.diff=function(a){return globalThis.__DEV__!==!1&&pt(a,"canonizeResults","cache.diff"),this.storeReader.diffQueryAgainstStore(j(j({},a),{store:a.optimistic?this.optimisticData:this.data,rootId:a.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(a){var r=this;return this.watches.size||zw(this),this.watches.add(a),a.immediate&&this.maybeBroadcastWatch(a),function(){r.watches.delete(a)&&!r.watches.size&&Nb(r),r.maybeBroadcastWatch.forget(a)}},t.prototype.gc=function(a){globalThis.__DEV__!==!1&&pt(a||{},"resetResultIdentities","cache.gc","First ensure all usages of `canonizeResults` are removed, then remove this option."),vi.reset(),pi.reset();var r=this.optimisticData.gc();return a&&!this.txCount&&(a.resetResultCache?this.resetResultCache(a.resetResultIdentities):a.resetResultIdentities&&this.storeReader.resetCanon()),r},t.prototype.retain=function(a,r){return(r?this.optimisticData:this.data).retain(a)},t.prototype.release=function(a,r){return(r?this.optimisticData:this.data).release(a)},t.prototype.identify=function(a){if($e(a))return a.__ref;try{return this.policies.identify(a)[0]}catch(r){globalThis.__DEV__!==!1&&ne.warn(r)}},t.prototype.evict=function(a){if(!a.id){if(jt.call(a,"id"))return!1;a=j(j({},a),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(a,this.data)}finally{!--this.txCount&&a.broadcast!==!1&&this.broadcastWatches()}},t.prototype.reset=function(a){var r=this;return this.init(),vi.reset(),a&&a.discardWatches?(this.watches.forEach(function(u){return r.maybeBroadcastWatch.forget(u)}),this.watches.clear(),Nb(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(a){var r=this.optimisticData.removeLayer(a);r!==this.optimisticData&&(this.optimisticData=r,this.broadcastWatches())},t.prototype.batch=function(a){var r=this,u=a.update,s=a.optimistic,c=s===void 0?!0:s,d=a.removeOptimistic,p=a.onWatchUpdated,m,v=function(b){var _=r,E=_.data,T=_.optimisticData;++r.txCount,b&&(r.data=r.optimisticData=b);try{return m=u(r)}finally{--r.txCount,r.data=E,r.optimisticData=T}},y=new Set;return p&&!this.txCount&&this.broadcastWatches(j(j({},a),{onWatchUpdated:function(b){return y.add(b),!1}})),typeof c=="string"?this.optimisticData=this.optimisticData.addLayer(c,v):c===!1?v(this.data):v(),typeof d=="string"&&(this.optimisticData=this.optimisticData.removeLayer(d)),p&&y.size?(this.broadcastWatches(j(j({},a),{onWatchUpdated:function(b,_){var E=p.call(this,b,_);return E!==!1&&y.delete(b),E}})),y.size&&y.forEach(function(b){return r.maybeBroadcastWatch.dirty(b)})):this.broadcastWatches(a),m},t.prototype.performTransaction=function(a,r){return this.batch({update:a,optimistic:r||r!==null})},t.prototype.transformDocument=function(a){return this.addTypenameToDocument(this.addFragmentsToDocument(a))},t.prototype.fragmentMatches=function(a,r){return this.policies.fragmentMatches(a,r)},t.prototype.lookupFragment=function(a){var r;return((r=this.config.fragments)===null||r===void 0?void 0:r.lookup(a))||null},t.prototype.broadcastWatches=function(a){var r=this;this.txCount||this.watches.forEach(function(u){return r.maybeBroadcastWatch(u,a)})},t.prototype.addFragmentsToDocument=function(a){var r=this.config.fragments;return r?r.transform(a):a},t.prototype.addTypenameToDocument=function(a){return this.addTypename?this.addTypenameTransform.transformDocument(a):a},t.prototype.broadcastWatch=function(a,r){var u=this,s=a.lastDiff,c=Mt("canonizeResults",function(){return u.diff(a)});r&&(a.optimistic&&typeof r.optimistic=="string"&&(c.fromOptimisticTransaction=!0),r.onWatchUpdated&&r.onWatchUpdated.call(this,a,c,s)===!1)||(!s||!Qe(s.result,c.result))&&a.callback(a.lastDiff=c,s)},t})(L_);globalThis.__DEV__!==!1&&(K_.prototype.getMemoryInternals=zT);var Ue;(function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error"})(Ue||(Ue={}));function il(e){return e?e<7:!1}var Mb=Object.assign,Lw=Object.hasOwnProperty,Iu=(function(e){Xn(t,e);function t(a){var r=a.queryManager,u=a.queryInfo,s=a.options,c=this,d=t.inactiveOnCreation.getValue();c=e.call(this,function(N){c._getOrCreateQuery();try{var w=N._subscription._observer;w&&!w.error&&(w.error=qw)}catch{}var O=!c.observers.size;c.observers.add(N);var M=c.last;return M&&M.error?N.error&&N.error(M.error):M&&M.result&&N.next&&N.next(c.maskResult(M.result)),O&&c.reobserve().catch(function(){}),function(){c.observers.delete(N)&&!c.observers.size&&c.tearDownQuery()}})||this,c.observers=new Set,c.subscriptions=new Set,c.dirty=!1,c._getOrCreateQuery=function(){return d&&(r.queries.set(c.queryId,u),d=!1),c.queryManager.getOrCreateQuery(c.queryId)},c.queryInfo=u,c.queryManager=r,c.waitForOwnResult=Pd(s.fetchPolicy),c.isTornDown=!1,c.subscribeToMore=c.subscribeToMore.bind(c),c.maskResult=c.maskResult.bind(c);var p=r.defaultOptions.watchQuery,m=p===void 0?{}:p,v=m.fetchPolicy,y=v===void 0?"cache-first":v,b=s.fetchPolicy,_=b===void 0?y:b,E=s.initialFetchPolicy,T=E===void 0?_==="standby"?y:_:E;c.options=j(j({},s),{initialFetchPolicy:T,fetchPolicy:_}),c.queryId=u.queryId||r.generateQueryId();var D=er(c.query);return c.queryName=D&&D.name&&D.name.value,c}return Object.defineProperty(t.prototype,"query",{get:function(){return this.lastQuery||this.options.query},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var a=this;return globalThis.__DEV__!==!1&&hi("observableQuery.result",function(){globalThis.__DEV__!==!1&&ne.warn(23)}),new Promise(function(r,u){var s={next:function(d){r(d),a.observers.delete(s),a.observers.size||a.queryManager.removeQuery(a.queryId),setTimeout(function(){c.unsubscribe()},0)},error:u},c=a.subscribe(s)})},t.prototype.resetDiff=function(){this.queryInfo.resetDiff()},t.prototype.getCurrentFullResult=function(a){var r=this;a===void 0&&(a=!0);var u=Mt("getLastResult",function(){return r.getLastResult(!0)}),s=this.queryInfo.networkStatus||u&&u.networkStatus||Ue.ready,c=j(j({},u),{loading:il(s),networkStatus:s}),d=this.options.fetchPolicy,p=d===void 0?"cache-first":d;if(!(Pd(p)||this.queryManager.getDocumentInfo(this.query).hasForcedResolvers))if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var m=this.queryInfo.getDiff();(m.complete||this.options.returnPartialData)&&(c.data=m.result),Qe(c.data,{})&&(c.data=void 0),m.complete?(delete c.partial,m.complete&&c.networkStatus===Ue.loading&&(p==="cache-first"||p==="cache-only")&&(c.networkStatus=Ue.ready,c.loading=!1)):c.partial=!0,c.networkStatus===Ue.ready&&(c.error||c.errors)&&(c.networkStatus=Ue.error),globalThis.__DEV__!==!1&&!m.complete&&!this.options.partialRefetch&&!c.loading&&!c.data&&!c.error&&W_(m.missing)}return a&&this.updateLastResult(c),c},t.prototype.getCurrentResult=function(a){return a===void 0&&(a=!0),this.maskResult(this.getCurrentFullResult(a))},t.prototype.isDifferentFromLastResult=function(a,r){if(!this.last)return!0;var u=this.queryManager.getDocumentInfo(this.query),s=this.queryManager.dataMasking,c=s?u.nonReactiveQuery:this.query,d=s||u.hasNonreactiveDirective?!C_(c,this.last.result,a,this.variables):!Qe(this.last.result,a);return d||r&&!Qe(this.last.variables,r)},t.prototype.getLast=function(a,r){var u=this.last;if(u&&u[a]&&(!r||Qe(u.variables,this.variables)))return u[a]},t.prototype.getLastResult=function(a){return globalThis.__DEV__!==!1&&hi("getLastResult",function(){globalThis.__DEV__!==!1&&ne.warn(24)}),this.getLast("result",a)},t.prototype.getLastError=function(a){return globalThis.__DEV__!==!1&&hi("getLastError",function(){globalThis.__DEV__!==!1&&ne.warn(25)}),this.getLast("error",a)},t.prototype.resetLastResults=function(){globalThis.__DEV__!==!1&&hi("resetLastResults",function(){globalThis.__DEV__!==!1&&ne.warn(26)}),delete this.last,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){globalThis.__DEV__!==!1&&globalThis.__DEV__!==!1&&ne.warn(27),this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(a){var r,u={pollInterval:0},s=this.options.fetchPolicy;if(s==="no-cache"?u.fetchPolicy="no-cache":u.fetchPolicy="network-only",globalThis.__DEV__!==!1&&a&&Lw.call(a,"variables")){var c=l_(this.query),d=c.variableDefinitions;(!d||!d.some(function(p){return p.variable.name.value==="variables"}))&&globalThis.__DEV__!==!1&&ne.warn(28,a,((r=c.name)===null||r===void 0?void 0:r.value)||c)}return a&&!Qe(this.options.variables,a)&&(u.variables=this.options.variables=j(j({},this.options.variables),a)),this.queryInfo.resetLastWrite(),this.reobserve(u,Ue.refetch)},t.prototype.fetchMore=function(a){var r=this,u=j(j({},a.query?a:j(j(j(j({},this.options),{query:this.options.query}),a),{variables:j(j({},this.options.variables),a.variables)})),{fetchPolicy:"no-cache"});u.query=this.transformDocument(u.query);var s=this.queryManager.generateQueryId();this.lastQuery=a.query?this.transformDocument(this.options.query):u.query;var c=this.queryInfo,d=c.networkStatus;c.networkStatus=Ue.fetchMore,u.notifyOnNetworkStatusChange&&this.observe();var p=new Set,m=a==null?void 0:a.updateQuery,v=this.options.fetchPolicy!=="no-cache";return v||ne(m,29),this.queryManager.fetchQuery(s,u,Ue.fetchMore).then(function(y){if(r.queryManager.removeQuery(s),c.networkStatus===Ue.fetchMore&&(c.networkStatus=d),v)r.queryManager.cache.batch({update:function(E){var T=a.updateQuery;T?E.updateQuery({query:r.query,variables:r.variables,returnPartialData:!0,optimistic:!1},function(D){return T(D,{fetchMoreResult:y.data,variables:u.variables})}):E.writeQuery({query:u.query,variables:u.variables,data:y.data})},onWatchUpdated:function(E){p.add(E.query)}});else{var b=r.getLast("result"),_=m(b.data,{fetchMoreResult:y.data,variables:u.variables});r.reportResult(j(j({},b),{networkStatus:d,loading:il(d),data:_}),r.variables)}return r.maskResult(y)}).finally(function(){v&&!p.has(r.query)&&r.reobserveCacheFirst()})},t.prototype.subscribeToMore=function(a){var r=this,u=this.queryManager.startGraphQLSubscription({query:a.document,variables:a.variables,context:a.context}).subscribe({next:function(s){var c=a.updateQuery;c&&r.updateQuery(function(d,p){return c(d,j({subscriptionData:s},p))})},error:function(s){if(a.onError){a.onError(s);return}globalThis.__DEV__!==!1&&ne.error(30,s)}});return this.subscriptions.add(u),function(){r.subscriptions.delete(u)&&u.unsubscribe()}},t.prototype.setOptions=function(a){return globalThis.__DEV__!==!1&&(pt(a,"canonizeResults","setOptions"),hi("setOptions",function(){globalThis.__DEV__!==!1&&ne.warn(31)})),this.reobserve(a)},t.prototype.silentSetOptions=function(a){var r=tr(this.options,a||{});Mb(this.options,r)},t.prototype.setVariables=function(a){var r=this;return Qe(this.variables,a)?this.observers.size?Mt("observableQuery.result",function(){return r.result()}):Promise.resolve():(this.options.variables=a,this.observers.size?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:a},Ue.setVariables):Promise.resolve())},t.prototype.updateQuery=function(a){var r=this.queryManager,u=r.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}),s=u.result,c=u.complete,d=a(s,{variables:this.variables,complete:!!c,previousData:s});d&&(r.cache.writeQuery({query:this.options.query,data:d,variables:this.variables}),r.broadcastQueries())},t.prototype.startPolling=function(a){this.options.pollInterval=a,this.updatePolling()},t.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},t.prototype.applyNextFetchPolicy=function(a,r){if(r.nextFetchPolicy){var u=r.fetchPolicy,s=u===void 0?"cache-first":u,c=r.initialFetchPolicy,d=c===void 0?s:c;s==="standby"||(typeof r.nextFetchPolicy=="function"?r.fetchPolicy=r.nextFetchPolicy(s,{reason:a,options:r,observable:this,initialFetchPolicy:d}):a==="variables-changed"?r.fetchPolicy=d:r.fetchPolicy=r.nextFetchPolicy)}return r.fetchPolicy},t.prototype.fetch=function(a,r,u){var s=this._getOrCreateQuery();return s.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(s,a,r,u)},t.prototype.updatePolling=function(){var a=this;if(!this.queryManager.ssrMode){var r=this,u=r.pollingInfo,s=r.options.pollInterval;if(!s||!this.hasObservers()){u&&(clearTimeout(u.timeout),delete this.pollingInfo);return}if(!(u&&u.interval===s)){ne(s,32);var c=u||(this.pollingInfo={});c.interval=s;var d=function(){var m,v;a.pollingInfo&&(!il(a.queryInfo.networkStatus)&&!(!((v=(m=a.options).skipPollAttempt)===null||v===void 0)&&v.call(m))?a.reobserve({fetchPolicy:a.options.initialFetchPolicy==="no-cache"?"no-cache":"network-only"},Ue.poll).then(p,p):p())},p=function(){var m=a.pollingInfo;m&&(clearTimeout(m.timeout),m.timeout=setTimeout(d,m.interval))};p()}}},t.prototype.updateLastResult=function(a,r){var u=this;r===void 0&&(r=this.variables);var s=Mt("getLastError",function(){return u.getLastError()});return s&&this.last&&!Qe(r,this.last.variables)&&(s=void 0),this.last=j({result:this.queryManager.assumeImmutableResults?a:O_(a),variables:r},s?{error:s}:null)},t.prototype.reobserveAsConcast=function(a,r){var u=this;this.isTornDown=!1;var s=r===Ue.refetch||r===Ue.fetchMore||r===Ue.poll,c=this.options.variables,d=this.options.fetchPolicy,p=tr(this.options,a||{}),m=s?p:Mb(this.options,p),v=this.transformDocument(m.query);this.lastQuery=v,s||(this.updatePolling(),a&&a.variables&&!Qe(a.variables,c)&&m.fetchPolicy!=="standby"&&(m.fetchPolicy===d||typeof m.nextFetchPolicy=="function")&&(this.applyNextFetchPolicy("variables-changed",m),r===void 0&&(r=Ue.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=Pd(m.fetchPolicy));var y=function(){u.concast===E&&(u.waitForOwnResult=!1)},b=m.variables&&j({},m.variables),_=this.fetch(m,r,v),E=_.concast,T=_.fromLink,D={next:function(N){Qe(u.variables,b)&&(y(),u.reportResult(N,b))},error:function(N){Qe(u.variables,b)&&(R_(N)||(N=new cn({networkError:N})),y(),u.reportError(N,b))}};return!s&&(T||!this.concast)&&(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=E,this.observer=D),E.addObserver(D),E},t.prototype.reobserve=function(a,r){return DO(this.reobserveAsConcast(a,r).promise.then(this.maskResult))},t.prototype.resubscribeAfterError=function(){for(var a=this,r=[],u=0;u<arguments.length;u++)r[u]=arguments[u];var s=this.last;Mt("resetLastResults",function(){return a.resetLastResults()});var c=this.subscribe.apply(this,r);return this.last=s,c},t.prototype.observe=function(){this.reportResult(this.getCurrentFullResult(!1),this.variables)},t.prototype.reportResult=function(a,r){var u=this,s=Mt("getLastError",function(){return u.getLastError()}),c=this.isDifferentFromLastResult(a,r);(s||!a.partial||this.options.returnPartialData)&&this.updateLastResult(a,r),(s||c)&&Lu(this.observers,"next",this.maskResult(a))},t.prototype.reportError=function(a,r){var u=this,s=j(j({},Mt("getLastResult",function(){return u.getLastResult()})),{error:a,errors:a.graphQLErrors,networkStatus:Ue.error,loading:!1});this.updateLastResult(s,r),Lu(this.observers,"error",this.last.error=a)},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(a){return a.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t.prototype.transformDocument=function(a){return this.queryManager.transform(a)},t.prototype.maskResult=function(a){return a&&"data"in a?j(j({},a),{data:this.queryManager.maskOperation({document:this.query,data:a.data,fetchPolicy:this.options.fetchPolicy,id:this.queryId})}):a},t.prototype.resetNotifications=function(){this.cancelNotifyTimeout(),this.dirty=!1},t.prototype.cancelNotifyTimeout=function(){this.notifyTimeout&&(clearTimeout(this.notifyTimeout),this.notifyTimeout=void 0)},t.prototype.scheduleNotify=function(){var a=this;this.dirty||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return a.notify()},0)))},t.prototype.notify=function(){if(this.cancelNotifyTimeout(),this.dirty&&(this.options.fetchPolicy=="cache-only"||this.options.fetchPolicy=="cache-and-network"||!il(this.queryInfo.networkStatus))){var a=this.queryInfo.getDiff();a.fromOptimisticTransaction?this.observe():this.reobserveCacheFirst()}this.dirty=!1},t.prototype.reobserveCacheFirst=function(){var a=this.options,r=a.fetchPolicy,u=a.nextFetchPolicy;return r==="cache-and-network"||r==="network-only"?this.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(s,c){return this.nextFetchPolicy=u,typeof this.nextFetchPolicy=="function"?this.nextFetchPolicy(s,c):r}}):this.reobserve()},t.inactiveOnCreation=new Sl,t})(et);w_(Iu);function qw(e){globalThis.__DEV__!==!1&&ne.error(33,e.message,e.stack)}function W_(e){globalThis.__DEV__!==!1&&e&&globalThis.__DEV__!==!1&&ne.debug(34,e)}function Pd(e){return e==="network-only"||e==="no-cache"||e==="standby"}var rl=new(ar?WeakMap:Map);function Xd(e,t){var a=e[t];typeof a=="function"&&(e[t]=function(){return rl.set(e,(rl.get(e)+1)%1e15),a.apply(this,arguments)})}var Jd=(function(){function e(t,a){a===void 0&&(a=t.generateQueryId()),this.queryId=a,this.document=null,this.lastRequestId=1,this.stopped=!1,this.observableQuery=null;var r=this.cache=t.cache;rl.has(r)||(rl.set(r,0),Xd(r,"evict"),Xd(r,"modify"),Xd(r,"reset"))}return e.prototype.init=function(t){var a=t.networkStatus||Ue.loading;return this.variables&&this.networkStatus!==Ue.loading&&!Qe(this.variables,t.variables)&&(a=Ue.setVariables),Qe(t.variables,this.variables)||(this.lastDiff=void 0,this.cancel()),Object.assign(this,{document:t.document,variables:t.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:a}),t.observableQuery&&this.setObservableQuery(t.observableQuery),t.lastRequestId&&(this.lastRequestId=t.lastRequestId),this},e.prototype.resetDiff=function(){this.lastDiff=void 0},e.prototype.getDiff=function(){var t=this,a=this.getDiffOptions();if(this.lastDiff&&Qe(a,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var r=this.observableQuery;if(r&&r.options.fetchPolicy==="no-cache")return{complete:!1};var u=Mt("canonizeResults",function(){return t.cache.diff(a)});return this.updateLastDiff(u,a),u},e.prototype.updateLastDiff=function(t,a){this.lastDiff=t?{diff:t,options:a||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(t){var a;return t===void 0&&(t=this.variables),{query:this.document,variables:t,returnPartialData:!0,optimistic:!0,canonizeResults:(a=this.observableQuery)===null||a===void 0?void 0:a.options.canonizeResults}},e.prototype.setDiff=function(t){var a=this,r,u=this.lastDiff&&this.lastDiff.diff;t&&!t.complete&&Mt("getLastError",function(){var s;return(s=a.observableQuery)===null||s===void 0?void 0:s.getLastError()})||(this.updateLastDiff(t),Qe(u&&u.result,t&&t.result)||(r=this.observableQuery)===null||r===void 0||r.scheduleNotify())},e.prototype.setObservableQuery=function(t){t!==this.observableQuery&&(this.observableQuery=t,t&&(t.queryInfo=this))},e.prototype.stop=function(){var t;if(!this.stopped){this.stopped=!0,(t=this.observableQuery)===null||t===void 0||t.resetNotifications(),this.cancel();var a=this.observableQuery;a&&a.stopPolling()}},e.prototype.cancel=function(){var t;(t=this.cancelWatch)===null||t===void 0||t.call(this),this.cancelWatch=void 0},e.prototype.updateWatch=function(t){var a=this;t===void 0&&(t=this.variables);var r=this.observableQuery;if(!(r&&r.options.fetchPolicy==="no-cache")){var u=j(j({},this.getDiffOptions(t)),{watcher:this,callback:function(s){return a.setDiff(s)}});(!this.lastWatch||!Qe(u,this.lastWatch))&&(this.cancel(),this.cancelWatch=this.cache.watch(this.lastWatch=u))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(t,a){var r=this.lastWrite;return!(r&&r.dmCount===rl.get(this.cache)&&Qe(a,r.variables)&&Qe(t.data,r.result.data))},e.prototype.markResult=function(t,a,r,u){var s=this,c,d=new bi,p=Fn(t.errors)?t.errors.slice(0):[];if((c=this.observableQuery)===null||c===void 0||c.resetNotifications(),"incremental"in t&&Fn(t.incremental)){var m=D_(this.getDiff().result,t);t.data=m}else if("hasNext"in t&&t.hasNext){var v=this.getDiff();t.data=d.merge(v.result,t.data)}this.graphQLErrors=p,r.fetchPolicy==="no-cache"?this.updateLastDiff({result:t.data,complete:!0},this.getDiffOptions(r.variables)):u!==0&&(Vh(t,r.errorPolicy)?this.cache.performTransaction(function(y){if(s.shouldWrite(t,r.variables))y.writeQuery({query:a,data:t.data,variables:r.variables,overwrite:u===1}),s.lastWrite={result:t,variables:r.variables,dmCount:rl.get(s.cache)};else if(s.lastDiff&&s.lastDiff.diff.complete){t.data=s.lastDiff.diff.result;return}var b=s.getDiffOptions(r.variables),_=Mt("canonizeResults",function(){return y.diff(b)});!s.stopped&&Qe(s.variables,r.variables)&&s.updateWatch(r.variables),s.updateLastDiff(_,b),_.complete&&(t.data=_.result)}):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=Ue.ready},e.prototype.markError=function(t){var a;return this.networkStatus=Ue.error,this.lastWrite=void 0,(a=this.observableQuery)===null||a===void 0||a.resetNotifications(),t.graphQLErrors&&(this.graphQLErrors=t.graphQLErrors),t.networkError&&(this.networkError=t.networkError),t},e})();function Vh(e,t){t===void 0&&(t="none");var a=t==="ignore"||t==="all",r=!Cs(e);return!r&&a&&e.data&&(r=!0),r}var Qw=Object.prototype.hasOwnProperty,Fb=Object.create(null),Bw=(function(){function e(t){var a=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new im(ua["queryManager.getDocumentInfo"]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Va(!1),this.noCacheWarningsByQueryId=new Set;var r=new b_(function(s){return a.cache.transformDocument(s)},{cache:!1});this.cache=t.cache,this.link=t.link,this.defaultOptions=t.defaultOptions,this.queryDeduplication=t.queryDeduplication,this.clientAwareness=t.clientAwareness,this.localState=t.localState,this.ssrMode=t.ssrMode,this.assumeImmutableResults=t.assumeImmutableResults,this.dataMasking=t.dataMasking;var u=t.documentTransform;this.documentTransform=u?r.concat(u).concat(r):r,this.defaultContext=t.defaultContext||Object.create(null),(this.onBroadcast=t.onBroadcast)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var t=this;this.queries.forEach(function(a,r){t.stopQueryNoBroadcast(r)}),this.cancelPendingFetches(Wt(35))},e.prototype.cancelPendingFetches=function(t){this.fetchCancelFns.forEach(function(a){return a(t)}),this.fetchCancelFns.clear()},e.prototype.mutate=function(t){return ci(this,arguments,void 0,function(a){var r,u,s,c,d,p,m,v=a.mutation,y=a.variables,b=a.optimisticResponse,_=a.updateQueries,E=a.refetchQueries,T=E===void 0?[]:E,D=a.awaitRefetchQueries,N=D===void 0?!1:D,w=a.update,O=a.onQueryUpdated,M=a.fetchPolicy,z=M===void 0?((p=this.defaultOptions.mutate)===null||p===void 0?void 0:p.fetchPolicy)||"network-only":M,Z=a.errorPolicy,$=Z===void 0?((m=this.defaultOptions.mutate)===null||m===void 0?void 0:m.errorPolicy)||"none":Z,W=a.keepRootFields,se=a.context;return fi(this,function(Ne){switch(Ne.label){case 0:return ne(v,36),ne(z==="network-only"||z==="no-cache",37),r=this.generateMutationId(),v=this.cache.transformForLink(this.transform(v)),u=this.getDocumentInfo(v).hasClientExports,y=this.getVariables(v,y),u?[4,this.localState.addExportedVariables(v,y,se)]:[3,2];case 1:y=Ne.sent(),Ne.label=2;case 2:return s=this.mutationStore&&(this.mutationStore[r]={mutation:v,variables:y,loading:!0,error:null}),c=b&&this.markMutationOptimistic(b,{mutationId:r,document:v,variables:y,fetchPolicy:z,errorPolicy:$,context:se,updateQueries:_,update:w,keepRootFields:W}),this.broadcastQueries(),d=this,[2,new Promise(function(Be,le){return Id(d.getObservableFromLink(v,j(j({},se),{optimisticResponse:c?b:void 0}),y,{},!1),function(fe){if(Cs(fe)&&$==="none")throw new cn({graphQLErrors:wh(fe)});s&&(s.loading=!1,s.error=null);var ee=j({},fe);return typeof T=="function"&&(T=T(ee)),$==="ignore"&&Cs(ee)&&delete ee.errors,d.markMutationResult({mutationId:r,result:ee,document:v,variables:y,fetchPolicy:z,errorPolicy:$,context:se,update:w,updateQueries:_,awaitRefetchQueries:N,refetchQueries:T,removeOptimistic:c?r:void 0,onQueryUpdated:O,keepRootFields:W})}).subscribe({next:function(fe){d.broadcastQueries(),(!("hasNext"in fe)||fe.hasNext===!1)&&Be(j(j({},fe),{data:d.maskOperation({document:v,data:fe.data,fetchPolicy:z,id:r})}))},error:function(fe){s&&(s.loading=!1,s.error=fe),c&&d.cache.removeOptimistic(r),d.broadcastQueries(),le(fe instanceof cn?fe:new cn({networkError:fe}))}})})]}})})},e.prototype.markMutationResult=function(t,a){var r=this;a===void 0&&(a=this.cache);var u=t.result,s=[],c=t.fetchPolicy==="no-cache";if(!c&&Vh(u,t.errorPolicy)){if(sl(u)||s.push({result:u.data,dataId:"ROOT_MUTATION",query:t.document,variables:t.variables}),sl(u)&&Fn(u.incremental)){var d=a.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0}),p=void 0;d.result&&(p=D_(d.result,u)),typeof p<"u"&&(u.data=p,s.push({result:p,dataId:"ROOT_MUTATION",query:t.document,variables:t.variables}))}var m=t.updateQueries;m&&this.queries.forEach(function(y,b){var _=y.observableQuery,E=_&&_.queryName;if(!(!E||!Qw.call(m,E))){var T=m[E],D=r.queries.get(b),N=D.document,w=D.variables,O=a.diff({query:N,variables:w,returnPartialData:!0,optimistic:!1}),M=O.result,z=O.complete;if(z&&M){var Z=T(M,{mutationResult:u,queryName:N&&Cu(N)||void 0,queryVariables:w});Z&&s.push({result:Z,dataId:"ROOT_QUERY",query:N,variables:w})}}})}if(s.length>0||(t.refetchQueries||"").length>0||t.update||t.onQueryUpdated||t.removeOptimistic){var v=[];if(this.refetchQueries({updateCache:function(y){c||s.forEach(function(T){return y.write(T)});var b=t.update,_=!CO(u)||sl(u)&&!u.hasNext;if(b){if(!c){var E=y.diff({id:"ROOT_MUTATION",query:r.getDocumentInfo(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0});E.complete&&(u=j(j({},u),{data:E.result}),"incremental"in u&&delete u.incremental,"hasNext"in u&&delete u.hasNext)}_&&b(y,u,{context:t.context,variables:t.variables})}!c&&!t.keepRootFields&&_&&y.modify({id:"ROOT_MUTATION",fields:function(T,D){var N=D.fieldName,w=D.DELETE;return N==="__typename"?T:w}})},include:t.refetchQueries,optimistic:!1,removeOptimistic:t.removeOptimistic,onQueryUpdated:t.onQueryUpdated||null}).forEach(function(y){return v.push(y)}),t.awaitRefetchQueries||t.onQueryUpdated)return Promise.all(v).then(function(){return u})}return Promise.resolve(u)},e.prototype.markMutationOptimistic=function(t,a){var r=this,u=typeof t=="function"?t(a.variables,{IGNORE:Fb}):t;return u===Fb?!1:(this.cache.recordOptimisticTransaction(function(s){try{r.markMutationResult(j(j({},a),{result:{data:u}}),s)}catch(c){globalThis.__DEV__!==!1&&ne.error(c)}},a.mutationId),!0)},e.prototype.fetchQuery=function(t,a,r){return this.fetchConcastWithInfo(this.getOrCreateQuery(t),a,r).concast.promise},e.prototype.getQueryStore=function(){var t=Object.create(null);return this.queries.forEach(function(a,r){t[r]={variables:a.variables,networkStatus:a.networkStatus,networkError:a.networkError,graphQLErrors:a.graphQLErrors}}),t},e.prototype.resetErrors=function(t){var a=this.queries.get(t);a&&(a.networkError=void 0,a.graphQLErrors=[])},e.prototype.transform=function(t){return this.documentTransform.transformDocument(t)},e.prototype.getDocumentInfo=function(t){var a=this.transformCache;if(!a.has(t)){var r={hasClientExports:fT(t),hasForcedResolvers:this.localState.shouldForceResolvers(t),hasNonreactiveDirective:$u(["nonreactive"],t),nonReactiveQuery:mO(t),clientQuery:this.localState.clientQuery(t),serverQuery:S_([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"},{name:"unmask"}],t),defaultVars:lm(er(t)),asQuery:j(j({},t),{definitions:t.definitions.map(function(u){return u.kind==="OperationDefinition"&&u.operation!=="query"?j(j({},u),{operation:"query"}):u})})};a.set(t,r)}return a.get(t)},e.prototype.getVariables=function(t,a){return j(j({},this.getDocumentInfo(t).defaultVars),a)},e.prototype.watchQuery=function(t){var a=this.transform(t.query);t=j(j({},t),{variables:this.getVariables(a,t.variables)}),typeof t.notifyOnNetworkStatusChange>"u"&&(t.notifyOnNetworkStatusChange=!1);var r=new Jd(this),u=new Iu({queryManager:this,queryInfo:r,options:t});return u.lastQuery=a,Iu.inactiveOnCreation.getValue()||this.queries.set(u.queryId,r),r.init({document:a,observableQuery:u,variables:u.variables}),u},e.prototype.query=function(t,a){var r=this;a===void 0&&(a=this.generateQueryId()),ne(t.query,38),ne(t.query.kind==="Document",39),ne(!t.returnPartialData,40),ne(!t.pollInterval,41);var u=this.transform(t.query);return this.fetchQuery(a,j(j({},t),{query:u})).then(function(s){return s&&j(j({},s),{data:r.maskOperation({document:u,data:s.data,fetchPolicy:t.fetchPolicy,id:a})})}).finally(function(){return r.stopQuery(a)})},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(t){this.stopQueryInStoreNoBroadcast(t),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(t){var a=this.queries.get(t);a&&a.stop()},e.prototype.clearStore=function(t){return t===void 0&&(t={discardWatches:!0}),this.cancelPendingFetches(Wt(42)),this.queries.forEach(function(a){a.observableQuery?a.networkStatus=Ue.loading:a.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(t)},e.prototype.getObservableQueries=function(t){var a=this;t===void 0&&(t="active");var r=new Map,u=new Map,s=new Map,c=new Set;return Array.isArray(t)&&t.forEach(function(d){if(typeof d=="string")u.set(d,d),s.set(d,!1);else if(qT(d)){var p=pi(a.transform(d));u.set(p,Cu(d)),s.set(p,!1)}else ut(d)&&d.query&&c.add(d)}),this.queries.forEach(function(d,p){var m=d.observableQuery,v=d.document;if(m){if(t==="all"){r.set(p,m);return}var y=m.queryName,b=m.options.fetchPolicy;if(b==="standby"||t==="active"&&!m.hasObservers())return;(t==="active"||y&&s.has(y)||v&&s.has(pi(v)))&&(r.set(p,m),y&&s.set(y,!0),v&&s.set(pi(v),!0))}}),c.size&&c.forEach(function(d){var p=yh("legacyOneTimeQuery"),m=a.getOrCreateQuery(p).init({document:d.query,variables:d.variables}),v=new Iu({queryManager:a,queryInfo:m,options:j(j({},d),{fetchPolicy:"network-only"})});ne(v.queryId===p),m.setObservableQuery(v),r.set(p,v)}),globalThis.__DEV__!==!1&&s.size&&s.forEach(function(d,p){if(!d){var m=u.get(p);m?globalThis.__DEV__!==!1&&ne.warn(43,m):globalThis.__DEV__!==!1&&ne.warn(44)}}),r},e.prototype.reFetchObservableQueries=function(t){var a=this;t===void 0&&(t=!1);var r=[];return this.getObservableQueries(t?"all":"active").forEach(function(u,s){var c=u.options.fetchPolicy;Mt("resetLastResults",function(){return u.resetLastResults()}),(t||c!=="standby"&&c!=="cache-only")&&r.push(u.refetch()),(a.queries.get(s)||u.queryInfo).setDiff(null)}),this.broadcastQueries(),Promise.all(r)},e.prototype.startGraphQLSubscription=function(t){var a=this,r=t.query,u=t.variables,s=t.fetchPolicy,c=t.errorPolicy,d=c===void 0?"none":c,p=t.context,m=p===void 0?{}:p,v=t.extensions,y=v===void 0?{}:v;r=this.transform(r),u=this.getVariables(r,u);var b=function(E){return a.getObservableFromLink(r,m,E,y).map(function(T){s!=="no-cache"&&(Vh(T,d)&&a.cache.write({query:r,result:T.data,dataId:"ROOT_SUBSCRIPTION",variables:E}),a.broadcastQueries());var D=Cs(T),N=KO(T);if(D||N){var w={};if(D&&(w.graphQLErrors=T.errors),N&&(w.protocolErrors=T.extensions[pm]),d==="none"||N)throw new cn(w)}return d==="ignore"&&delete T.errors,T})};if(this.getDocumentInfo(r).hasClientExports){var _=this.localState.addExportedVariables(r,u,m).then(b);return new et(function(E){var T=null;return _.then(function(D){return T=D.subscribe(E)},E.error),function(){return T&&T.unsubscribe()}})}return b(u)},e.prototype.stopQuery=function(t){this.stopQueryNoBroadcast(t),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(t){this.stopQueryInStoreNoBroadcast(t),this.removeQuery(t)},e.prototype.removeQuery=function(t){var a;this.fetchCancelFns.delete(t),this.queries.has(t)&&((a=this.queries.get(t))===null||a===void 0||a.stop(),this.queries.delete(t))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(t){var a;return(a=t.observableQuery)===null||a===void 0?void 0:a.notify()})},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(t,a,r,u,s){var c=this,d;s===void 0&&(s=(d=a==null?void 0:a.queryDeduplication)!==null&&d!==void 0?d:this.queryDeduplication);var p,m=this.getDocumentInfo(t),v=m.serverQuery,y=m.clientQuery;if(v){var b=this,_=b.inFlightLinkObservables,E=b.link,T={query:v,variables:r,operationName:Cu(v)||void 0,context:this.prepareContext(j(j({},a),{forceFetch:!s})),extensions:u};if(a=T.context,s){var D=pi(v),N=vi(r),w=_.lookup(D,N);if(p=w.observable,!p){var O=new Jr([Rh(E,T)]);p=w.observable=O,O.beforeNext(function M(z,Z){z==="next"&&"hasNext"in Z&&Z.hasNext?O.beforeNext(M):_.remove(D,N)})}}else p=new Jr([Rh(E,T)])}else p=new Jr([et.of({data:{}})]),a=this.prepareContext(a);return y&&(p=Id(p,function(M){return c.localState.runResolvers({document:y,remoteResult:M,context:a,variables:r})})),p},e.prototype.getResultsFromLink=function(t,a,r){var u=t.lastRequestId=this.generateRequestId(),s=this.cache.transformForLink(r.query);return Id(this.getObservableFromLink(s,r.context,r.variables),function(c){var d=wh(c),p=d.length>0,m=r.errorPolicy;if(u>=t.lastRequestId){if(p&&m==="none")throw t.markError(new cn({graphQLErrors:d}));t.markResult(c,s,r,a),t.markReady()}var v={data:c.data,loading:!1,networkStatus:Ue.ready};return p&&m==="none"&&(v.data=void 0),p&&m!=="ignore"&&(v.errors=d,v.networkStatus=Ue.error),v},function(c){var d=R_(c)?c:new cn({networkError:c});throw u>=t.lastRequestId&&t.markError(d),d})},e.prototype.fetchConcastWithInfo=function(t,a,r,u){var s=this;r===void 0&&(r=Ue.loading),u===void 0&&(u=a.query);var c=this.getVariables(u,a.variables),d=this.defaultOptions.watchQuery,p=a.fetchPolicy,m=p===void 0?d&&d.fetchPolicy||"cache-first":p,v=a.errorPolicy,y=v===void 0?d&&d.errorPolicy||"none":v,b=a.returnPartialData,_=b===void 0?!1:b,E=a.notifyOnNetworkStatusChange,T=E===void 0?!1:E,D=a.context,N=D===void 0?{}:D,w=Object.assign({},a,{query:u,variables:c,fetchPolicy:m,errorPolicy:y,returnPartialData:_,notifyOnNetworkStatusChange:T,context:N}),O=function(W){w.variables=W;var se=s.fetchQueryByPolicy(t,w,r);return w.fetchPolicy!=="standby"&&se.sources.length>0&&t.observableQuery&&t.observableQuery.applyNextFetchPolicy("after-fetch",a),se},M=function(){return s.fetchCancelFns.delete(t.queryId)};this.fetchCancelFns.set(t.queryId,function(W){M(),setTimeout(function(){return z.cancel(W)})});var z,Z;if(this.getDocumentInfo(w.query).hasClientExports)z=new Jr(this.localState.addExportedVariables(w.query,w.variables,w.context).then(O).then(function(W){return W.sources})),Z=!0;else{var $=O(w.variables);Z=$.fromLink,z=new Jr($.sources)}return z.promise.then(M,M),{concast:z,fromLink:Z}},e.prototype.refetchQueries=function(t){var a=this,r=t.updateCache,u=t.include,s=t.optimistic,c=s===void 0?!1:s,d=t.removeOptimistic,p=d===void 0?c?yh("refetchQueries"):void 0:d,m=t.onQueryUpdated,v=new Map;u&&this.getObservableQueries(u).forEach(function(b,_){v.set(_,{oq:b,lastDiff:(a.queries.get(_)||b.queryInfo).getDiff()})});var y=new Map;return r&&this.cache.batch({update:r,optimistic:c&&p||!1,removeOptimistic:p,onWatchUpdated:function(b,_,E){var T=b.watcher instanceof Jd&&b.watcher.observableQuery;if(T){if(m){v.delete(T.queryId);var D=m(T,_,E);return D===!0&&(D=T.refetch()),D!==!1&&y.set(T,D),D}m!==null&&v.set(T.queryId,{oq:T,lastDiff:E,diff:_})}}}),v.size&&v.forEach(function(b,_){var E=b.oq,T=b.lastDiff,D=b.diff,N;m&&(D||(D=Mt("canonizeResults",function(){return a.cache.diff(E.queryInfo.getDiffOptions())})),N=m(E,D,T)),(!m||N===!0)&&(N=E.refetch()),N!==!1&&y.set(E,N),_.indexOf("legacyOneTimeQuery")>=0&&a.stopQueryNoBroadcast(_)}),p&&this.cache.removeOptimistic(p),y},e.prototype.maskOperation=function(t){var a,r,u,s=t.document,c=t.data;if(globalThis.__DEV__!==!1){var d=t.fetchPolicy,p=t.id,m=(a=er(s))===null||a===void 0?void 0:a.operation,v=((r=m==null?void 0:m[0])!==null&&r!==void 0?r:"o")+p;this.dataMasking&&d==="no-cache"&&!kT(s)&&!this.noCacheWarningsByQueryId.has(v)&&(this.noCacheWarningsByQueryId.add(v),globalThis.__DEV__!==!1&&ne.warn(45,(u=Cu(s))!==null&&u!==void 0?u:"Unnamed ".concat(m??"operation")))}return this.dataMasking?kw(c,s,this.cache):c},e.prototype.maskFragment=function(t){var a=t.data,r=t.fragment,u=t.fragmentName;return this.dataMasking?U_(a,r,this.cache,u):a},e.prototype.fetchQueryByPolicy=function(t,a,r){var u=this,s=a.query,c=a.variables,d=a.fetchPolicy,p=a.refetchWritePolicy,m=a.errorPolicy,v=a.returnPartialData,y=a.context,b=a.notifyOnNetworkStatusChange,_=t.networkStatus;t.init({document:s,variables:c,networkStatus:r});var E=function(){return t.getDiff()},T=function(M,z){z===void 0&&(z=t.networkStatus||Ue.loading);var Z=M.result;globalThis.__DEV__!==!1&&!v&&!Qe(Z,{})&&W_(M.missing);var $=function(W){return et.of(j({data:W,loading:il(z),networkStatus:z},M.complete?null:{partial:!0}))};return Z&&u.getDocumentInfo(s).hasForcedResolvers?u.localState.runResolvers({document:s,remoteResult:{data:Z},context:y,variables:c,onlyRunForcedResolvers:!0}).then(function(W){return $(W.data||void 0)}):m==="none"&&z===Ue.refetch&&Array.isArray(M.missing)?$(void 0):$(Z)},D=d==="no-cache"?0:r===Ue.refetch&&p!=="merge"?1:2,N=function(){return u.getResultsFromLink(t,D,{query:s,variables:c,context:y,fetchPolicy:d,errorPolicy:m})},w=b&&typeof _=="number"&&_!==r&&il(r);switch(d){default:case"cache-first":{var O=E();return O.complete?{fromLink:!1,sources:[T(O,t.markReady())]}:v||w?{fromLink:!0,sources:[T(O),N()]}:{fromLink:!0,sources:[N()]}}case"cache-and-network":{var O=E();return O.complete||v||w?{fromLink:!0,sources:[T(O),N()]}:{fromLink:!0,sources:[N()]}}case"cache-only":return{fromLink:!1,sources:[T(E(),t.markReady())]};case"network-only":return w?{fromLink:!0,sources:[T(E()),N()]}:{fromLink:!0,sources:[N()]};case"no-cache":return w?{fromLink:!0,sources:[T(t.getDiff()),N()]}:{fromLink:!0,sources:[N()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getOrCreateQuery=function(t){return t&&!this.queries.has(t)&&this.queries.set(t,new Jd(this,t)),this.queries.get(t)},e.prototype.prepareContext=function(t){t===void 0&&(t={});var a=this.localState.prepareContext(t);return j(j(j({},this.defaultContext),a),{clientAwareness:this.clientAwareness})},e})(),Iw=(function(){function e(t){var a=t.cache,r=t.client,u=t.resolvers,s=t.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=a,r&&(this.client=r),u&&this.addResolvers(u),s&&this.setFragmentMatcher(s)}return e.prototype.addResolvers=function(t){var a=this;this.resolvers=this.resolvers||{},Array.isArray(t)?t.forEach(function(r){a.resolvers=Bs(a.resolvers,r)}):this.resolvers=Bs(this.resolvers,t)},e.prototype.setResolvers=function(t){this.resolvers={},this.addResolvers(t)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(t){return ci(this,arguments,void 0,function(a){var r=a.document,u=a.remoteResult,s=a.context,c=a.variables,d=a.onlyRunForcedResolvers,p=d===void 0?!1:d;return fi(this,function(m){return r?[2,this.resolveDocument(r,u.data,s,c,this.fragmentMatcher,p).then(function(v){return j(j({},u),{data:v.result})})]:[2,u]})})},e.prototype.setFragmentMatcher=function(t){this.fragmentMatcher=t},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(t){return $u(["client"],t)&&this.resolvers?t:null},e.prototype.serverQuery=function(t){return k_(t)},e.prototype.prepareContext=function(t){var a=this.cache;return j(j({},t),{cache:a,getCacheKey:function(r){return a.identify(r)}})},e.prototype.addExportedVariables=function(t){return ci(this,arguments,void 0,function(a,r,u){return r===void 0&&(r={}),u===void 0&&(u={}),fi(this,function(s){return a?[2,this.resolveDocument(a,this.buildRootValueFromCache(a,r)||{},this.prepareContext(u),r).then(function(c){return j(j({},r),c.exportedVariables)})]:[2,j({},r)]})})},e.prototype.shouldForceResolvers=function(t){var a=!1;return Yn(t,{Directive:{enter:function(r){if(r.name.value==="client"&&r.arguments&&(a=r.arguments.some(function(u){return u.name.value==="always"&&u.value.kind==="BooleanValue"&&u.value.value===!0}),a))return tc}}}),a},e.prototype.buildRootValueFromCache=function(t,a){return this.cache.diff({query:hO(t),variables:a,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(t,a){return ci(this,arguments,void 0,function(r,u,s,c,d,p){var m,v,y,b,_,E,T,D,N,w,O;return s===void 0&&(s={}),c===void 0&&(c={}),d===void 0&&(d=function(){return!0}),p===void 0&&(p=!1),fi(this,function(M){return m=_l(r),v=bl(r),y=yl(v),b=this.collectSelectionsToResolve(m,y),_=m.operation,E=_?_.charAt(0).toUpperCase()+_.slice(1):"Query",T=this,D=T.cache,N=T.client,w={fragmentMap:y,context:j(j({},s),{cache:D,client:N}),variables:c,fragmentMatcher:d,defaultOperationType:E,exportedVariables:{},selectionsToResolve:b,onlyRunForcedResolvers:p},O=!1,[2,this.resolveSelectionSet(m.selectionSet,O,u,w).then(function(z){return{result:z,exportedVariables:w.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(t,a,r,u){return ci(this,void 0,void 0,function(){var s,c,d,p,m,v=this;return fi(this,function(y){return s=u.fragmentMap,c=u.context,d=u.variables,p=[r],m=function(b){return ci(v,void 0,void 0,function(){var _,E;return fi(this,function(T){return!a&&!u.selectionsToResolve.has(b)?[2]:Ku(b,d)?yi(b)?[2,this.resolveField(b,a,r,u).then(function(D){var N;typeof D<"u"&&p.push((N={},N[ja(b)]=D,N))})]:(KT(b)?_=b:(_=s[b.name.value],ne(_,21,b.name.value)),_&&_.typeCondition&&(E=_.typeCondition.name.value,u.fragmentMatcher(r,E,c))?[2,this.resolveSelectionSet(_.selectionSet,a,r,u).then(function(D){p.push(D)})]:[2]):[2]})})},[2,Promise.all(t.selections.map(m)).then(function(){return uc(p)})]})})},e.prototype.resolveField=function(t,a,r,u){return ci(this,void 0,void 0,function(){var s,c,d,p,m,v,y,b,_,E=this;return fi(this,function(T){return r?(s=u.variables,c=t.name.value,d=ja(t),p=c!==d,m=r[d]||r[c],v=Promise.resolve(m),(!u.onlyRunForcedResolvers||this.shouldForceResolvers(t))&&(y=r.__typename||u.defaultOperationType,b=this.resolvers&&this.resolvers[y],b&&(_=b[p?c:d],_&&(v=Promise.resolve(ym.withValue(this.cache,_,[r,ic(t,s),u.context,{field:t,fragmentMap:u.fragmentMap}]))))),[2,v.then(function(D){var N,w;if(D===void 0&&(D=m),t.directives&&t.directives.forEach(function(M){M.name.value==="export"&&M.arguments&&M.arguments.forEach(function(z){z.name.value==="as"&&z.value.kind==="StringValue"&&(u.exportedVariables[z.value.value]=D)})}),!t.selectionSet||D==null)return D;var O=(w=(N=t.directives)===null||N===void 0?void 0:N.some(function(M){return M.name.value==="client"}))!==null&&w!==void 0?w:!1;if(Array.isArray(D))return E.resolveSubSelectedArray(t,a||O,D,u);if(t.selectionSet)return E.resolveSelectionSet(t.selectionSet,a||O,D,u)})]):[2,null]})})},e.prototype.resolveSubSelectedArray=function(t,a,r,u){var s=this;return Promise.all(r.map(function(c){if(c===null)return null;if(Array.isArray(c))return s.resolveSubSelectedArray(t,a,c,u);if(t.selectionSet)return s.resolveSelectionSet(t.selectionSet,a,c,u)}))},e.prototype.collectSelectionsToResolve=function(t,a){var r=function(c){return!Array.isArray(c)},u=this.selectionsToResolveCache;function s(c){if(!u.has(c)){var d=new Set;u.set(c,d),Yn(c,{Directive:function(p,m,v,y,b){p.name.value==="client"&&b.forEach(function(_){r(_)&&Yg(_)&&d.add(_)})},FragmentSpread:function(p,m,v,y,b){var _=a[p.name.value];ne(_,22,p.name.value);var E=s(_);E.size>0&&(b.forEach(function(T){r(T)&&Yg(T)&&d.add(T)}),d.add(p),E.forEach(function(T){d.add(T)}))}})}return u.get(c)}return s(t)},e})(),Vb=!1,eS=(function(){function e(t){var a=this,r,u,s;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!t.cache)throw Wt(16);var c=t.uri,d=t.credentials,p=t.headers,m=t.cache,v=t.documentTransform,y=t.ssrMode,b=y===void 0?!1:y,_=t.ssrForceFetchDelay,E=_===void 0?0:_,T=t.connectToDevTools,D=t.queryDeduplication,N=D===void 0?!0:D,w=t.defaultOptions,O=t.defaultContext,M=t.assumeImmutableResults,z=M===void 0?m.assumeImmutableResults:M,Z=t.resolvers,$=t.typeDefs,W=t.fragmentMatcher,se=t.clientAwareness,Ne=t.name,Be=t.version,le=t.devtools,fe=t.dataMasking;globalThis.__DEV__!==!1&&(pt(t,"connectToDevTools","ApolloClient","Please use `devtools.enabled` instead."),pt(t,"uri","ApolloClient","Please initialize an instance of `HttpLink` with `uri` instead."),pt(t,"credentials","ApolloClient","Please initialize an instance of `HttpLink` with `credentials` instead."),pt(t,"headers","ApolloClient","Please initialize an instance of `HttpLink` with `headers` instead."),pt(t,"name","ApolloClient","Please use the `clientAwareness.name` option instead."),pt(t,"version","ApolloClient","Please use the `clientAwareness.version` option instead."),pt(t,"typeDefs","ApolloClient"),t.link||globalThis.__DEV__!==!1&&ne.warn(17));var ee=t.link;ee||(ee=c?new z_({uri:c,credentials:d,headers:p}):ir.empty()),this.link=ee,this.cache=m,this.disableNetworkFetches=b||E>0,this.queryDeduplication=N,this.defaultOptions=w||Object.create(null),this.typeDefs=$,this.devtoolsConfig=j(j({},le),{enabled:(r=le==null?void 0:le.enabled)!==null&&r!==void 0?r:T}),this.devtoolsConfig.enabled===void 0&&(this.devtoolsConfig.enabled=globalThis.__DEV__!==!1),E&&setTimeout(function(){return a.disableNetworkFetches=!1},E),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),this.version=Wh,this.localState=new Iw({cache:m,client:this,resolvers:Z,fragmentMatcher:W}),this.queryManager=new Bw({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext:O,documentTransform:v,queryDeduplication:N,ssrMode:b,dataMasking:!!fe,clientAwareness:{name:(u=se==null?void 0:se.name)!==null&&u!==void 0?u:Ne,version:(s=se==null?void 0:se.version)!==null&&s!==void 0?s:Be},localState:this.localState,assumeImmutableResults:z,onBroadcast:this.devtoolsConfig.enabled?function(){a.devToolsHookCb&&a.devToolsHookCb({action:{},state:{queries:a.queryManager.getQueryStore(),mutations:a.queryManager.mutationStore||{}},dataWithOptimisticResults:a.cache.extract(!0)})}:void 0}),this.devtoolsConfig.enabled&&this.connectToDevTools()}return Object.defineProperty(e.prototype,"prioritizeCacheValues",{get:function(){return this.disableNetworkFetches},set:function(t){this.disableNetworkFetches=t},enumerable:!1,configurable:!0}),e.prototype.connectToDevTools=function(){if(!(typeof window>"u")){var t=window,a=Symbol.for("apollo.devtools");(t[a]=t[a]||[]).push(this),t.__APOLLO_CLIENT__=this,!Vb&&globalThis.__DEV__!==!1&&(Vb=!0,window.document&&window.top===window.self&&/^(https?|file):$/.test(window.location.protocol)&&setTimeout(function(){if(!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){var r=window.navigator,u=r&&r.userAgent,s=void 0;typeof u=="string"&&(u.indexOf("Chrome/")>-1?s="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":u.indexOf("Firefox/")>-1&&(s="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),s&&globalThis.__DEV__!==!1&&ne.log("Download the Apollo DevTools for a better development experience: %s",s)}},1e4))}},Object.defineProperty(e.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform},enumerable:!1,configurable:!0}),e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(t){return this.defaultOptions.watchQuery&&(t=qu(this.defaultOptions.watchQuery,t)),this.disableNetworkFetches&&(t.fetchPolicy==="network-only"||t.fetchPolicy==="cache-and-network")&&(t=j(j({},t),{fetchPolicy:"cache-first"})),globalThis.__DEV__!==!1&&(pt(t,"canonizeResults","client.watchQuery"),pt(t,"partialRefetch","client.watchQuery")),this.queryManager.watchQuery(t)},e.prototype.query=function(t){return this.defaultOptions.query&&(t=qu(this.defaultOptions.query,t)),ne(t.fetchPolicy!=="cache-and-network",18),this.disableNetworkFetches&&t.fetchPolicy==="network-only"&&(t=j(j({},t),{fetchPolicy:"cache-first"})),globalThis.__DEV__!==!1&&(pt(t,"canonizeResults","client.query"),pt(t,"notifyOnNetworkStatusChange","client.query","This option does not affect `client.query` and can be safely removed."),t.fetchPolicy==="standby"&&globalThis.__DEV__!==!1&&ne.warn(19)),this.queryManager.query(t)},e.prototype.mutate=function(t){return this.defaultOptions.mutate&&(t=qu(this.defaultOptions.mutate,t)),this.queryManager.mutate(t)},e.prototype.subscribe=function(t){var a=this,r=this.queryManager.generateQueryId();return this.queryManager.startGraphQLSubscription(t).map(function(u){return j(j({},u),{data:a.queryManager.maskOperation({document:t.query,data:u.data,fetchPolicy:t.fetchPolicy,id:r})})})},e.prototype.readQuery=function(t,a){return a===void 0&&(a=!1),this.cache.readQuery(t,a)},e.prototype.watchFragment=function(t){var a;return this.cache.watchFragment(j(j({},t),(a={},a[Symbol.for("apollo.dataMasking")]=this.queryManager.dataMasking,a)))},e.prototype.readFragment=function(t,a){return a===void 0&&(a=!1),this.cache.readFragment(t,a)},e.prototype.writeQuery=function(t){var a=this.cache.writeQuery(t);return t.broadcast!==!1&&this.queryManager.broadcastQueries(),a},e.prototype.writeFragment=function(t){var a=this.cache.writeFragment(t);return t.broadcast!==!1&&this.queryManager.broadcastQueries(),a},e.prototype.__actionHookForDevTools=function(t){this.devToolsHookCb=t},e.prototype.__requestRaw=function(t){return Rh(this.link,t)},e.prototype.resetStore=function(){var t=this;return Promise.resolve().then(function(){return t.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(t.resetStoreCallbacks.map(function(a){return a()}))}).then(function(){return t.reFetchObservableQueries()})},e.prototype.clearStore=function(){var t=this;return Promise.resolve().then(function(){return t.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(t.clearStoreCallbacks.map(function(a){return a()}))})},e.prototype.onResetStore=function(t){var a=this;return this.resetStoreCallbacks.push(t),function(){a.resetStoreCallbacks=a.resetStoreCallbacks.filter(function(r){return r!==t})}},e.prototype.onClearStore=function(t){var a=this;return this.clearStoreCallbacks.push(t),function(){a.clearStoreCallbacks=a.clearStoreCallbacks.filter(function(r){return r!==t})}},e.prototype.reFetchObservableQueries=function(t){return this.queryManager.reFetchObservableQueries(t)},e.prototype.refetchQueries=function(t){var a=this.queryManager.refetchQueries(t),r=[],u=[];a.forEach(function(c,d){r.push(d),u.push(c)});var s=Promise.all(u);return s.queries=r,s.results=u,s.catch(function(c){globalThis.__DEV__!==!1&&ne.debug(20,c)}),s},e.prototype.getObservableQueries=function(t){return t===void 0&&(t="active"),this.queryManager.getObservableQueries(t)},e.prototype.extract=function(t){return this.cache.extract(t)},e.prototype.restore=function(t){return this.cache.restore(t)},e.prototype.addResolvers=function(t){this.localState.addResolvers(t)},e.prototype.setResolvers=function(t){this.localState.setResolvers(t)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(t){this.localState.setFragmentMatcher(t)},e.prototype.setLink=function(t){this.link=this.queryManager.link=t},Object.defineProperty(e.prototype,"defaultContext",{get:function(){return this.queryManager.defaultContext},enumerable:!1,configurable:!0}),e})();globalThis.__DEV__!==!1&&(eS.prototype.getMemoryInternals=AT);var Kd={exports:{}},Wd={exports:{}},Te={};/**
51
51
  * @license React
52
52
  * react.production.js
53
53
  *
@@ -55,7 +55,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
55
55
  *
56
56
  * This source code is licensed under the MIT license found in the
57
57
  * LICENSE file in the root directory of this source tree.
58
- */var Ub;function Iw(){if(Ub)return Te;Ub=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),b=Symbol.iterator;function _(A){return A===null||typeof A!="object"?null:(A=b&&A[b]||A["@@iterator"],typeof A=="function"?A:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},T=Object.assign,D={};function N(A,G,ae){this.props=A,this.context=G,this.refs=D,this.updater=ae||E}N.prototype.isReactComponent={},N.prototype.setState=function(A,G){if(typeof A!="object"&&typeof A!="function"&&A!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,A,G,"setState")},N.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function w(){}w.prototype=N.prototype;function O(A,G,ae){this.props=A,this.context=G,this.refs=D,this.updater=ae||E}var M=O.prototype=new w;M.constructor=O,T(M,N.prototype),M.isPureReactComponent=!0;var z=Array.isArray;function Z(){}var $={H:null,A:null,T:null,S:null},W=Object.prototype.hasOwnProperty;function se(A,G,ae){var oe=ae.ref;return{$$typeof:e,type:A,key:G,ref:oe!==void 0?oe:null,props:ae}}function Ne(A,G){return se(A.type,G,A.props)}function Be(A){return typeof A=="object"&&A!==null&&A.$$typeof===e}function le(A){var G={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(ae){return G[ae]})}var fe=/\/+/g;function ee(A,G){return typeof A=="object"&&A!==null&&A.key!=null?le(""+A.key):G.toString(36)}function ce(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then(Z,Z):(A.status="pending",A.then(function(G){A.status==="pending"&&(A.status="fulfilled",A.value=G)},function(G){A.status==="pending"&&(A.status="rejected",A.reason=G)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function U(A,G,ae,oe,ge){var _e=typeof A;(_e==="undefined"||_e==="boolean")&&(A=null);var qe=!1;if(A===null)qe=!0;else switch(_e){case"bigint":case"string":case"number":qe=!0;break;case"object":switch(A.$$typeof){case e:case t:qe=!0;break;case v:return qe=A._init,U(qe(A._payload),G,ae,oe,ge)}}if(qe)return ge=ge(A),qe=oe===""?"."+ee(A,0):oe,z(ge)?(ae="",qe!=null&&(ae=qe.replace(fe,"$&/")+"/"),U(ge,G,ae,"",function(sa){return sa})):ge!=null&&(Be(ge)&&(ge=Ne(ge,ae+(ge.key==null||A&&A.key===ge.key?"":(""+ge.key).replace(fe,"$&/")+"/")+qe)),G.push(ge)),1;qe=0;var kt=oe===""?".":oe+":";if(z(A))for(var ct=0;ct<A.length;ct++)oe=A[ct],_e=kt+ee(oe,ct),qe+=U(oe,G,ae,_e,ge);else if(ct=_(A),typeof ct=="function")for(A=ct.call(A),ct=0;!(oe=A.next()).done;)oe=oe.value,_e=kt+ee(oe,ct++),qe+=U(oe,G,ae,_e,ge);else if(_e==="object"){if(typeof A.then=="function")return U(ce(A),G,ae,oe,ge);throw G=String(A),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return qe}function P(A,G,ae){if(A==null)return A;var oe=[],ge=0;return U(A,oe,"","",function(_e){return G.call(ae,_e,ge++)}),oe}function ie(A){if(A._status===-1){var G=A._result;G=G(),G.then(function(ae){(A._status===0||A._status===-1)&&(A._status=1,A._result=ae)},function(ae){(A._status===0||A._status===-1)&&(A._status=2,A._result=ae)}),A._status===-1&&(A._status=0,A._result=G)}if(A._status===1)return A._result.default;throw A._result}var me=typeof reportError=="function"?reportError:function(A){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof A=="object"&&A!==null&&typeof A.message=="string"?String(A.message):String(A),error:A});if(!window.dispatchEvent(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",A);return}console.error(A)},ve={map:P,forEach:function(A,G,ae){P(A,function(){G.apply(this,arguments)},ae)},count:function(A){var G=0;return P(A,function(){G++}),G},toArray:function(A){return P(A,function(G){return G})||[]},only:function(A){if(!Be(A))throw Error("React.Children.only expected to receive a single React element child.");return A}};return Te.Activity=y,Te.Children=ve,Te.Component=N,Te.Fragment=a,Te.Profiler=u,Te.PureComponent=O,Te.StrictMode=r,Te.Suspense=p,Te.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=$,Te.__COMPILER_RUNTIME={__proto__:null,c:function(A){return $.H.useMemoCache(A)}},Te.cache=function(A){return function(){return A.apply(null,arguments)}},Te.cacheSignal=function(){return null},Te.cloneElement=function(A,G,ae){if(A==null)throw Error("The argument must be a React element, but you passed "+A+".");var oe=T({},A.props),ge=A.key;if(G!=null)for(_e in G.key!==void 0&&(ge=""+G.key),G)!W.call(G,_e)||_e==="key"||_e==="__self"||_e==="__source"||_e==="ref"&&G.ref===void 0||(oe[_e]=G[_e]);var _e=arguments.length-2;if(_e===1)oe.children=ae;else if(1<_e){for(var qe=Array(_e),kt=0;kt<_e;kt++)qe[kt]=arguments[kt+2];oe.children=qe}return se(A.type,ge,oe)},Te.createContext=function(A){return A={$$typeof:c,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null},A.Provider=A,A.Consumer={$$typeof:s,_context:A},A},Te.createElement=function(A,G,ae){var oe,ge={},_e=null;if(G!=null)for(oe in G.key!==void 0&&(_e=""+G.key),G)W.call(G,oe)&&oe!=="key"&&oe!=="__self"&&oe!=="__source"&&(ge[oe]=G[oe]);var qe=arguments.length-2;if(qe===1)ge.children=ae;else if(1<qe){for(var kt=Array(qe),ct=0;ct<qe;ct++)kt[ct]=arguments[ct+2];ge.children=kt}if(A&&A.defaultProps)for(oe in qe=A.defaultProps,qe)ge[oe]===void 0&&(ge[oe]=qe[oe]);return se(A,_e,ge)},Te.createRef=function(){return{current:null}},Te.forwardRef=function(A){return{$$typeof:d,render:A}},Te.isValidElement=Be,Te.lazy=function(A){return{$$typeof:v,_payload:{_status:-1,_result:A},_init:ie}},Te.memo=function(A,G){return{$$typeof:m,type:A,compare:G===void 0?null:G}},Te.startTransition=function(A){var G=$.T,ae={};$.T=ae;try{var oe=A(),ge=$.S;ge!==null&&ge(ae,oe),typeof oe=="object"&&oe!==null&&typeof oe.then=="function"&&oe.then(Z,me)}catch(_e){me(_e)}finally{G!==null&&ae.types!==null&&(G.types=ae.types),$.T=G}},Te.unstable_useCacheRefresh=function(){return $.H.useCacheRefresh()},Te.use=function(A){return $.H.use(A)},Te.useActionState=function(A,G,ae){return $.H.useActionState(A,G,ae)},Te.useCallback=function(A,G){return $.H.useCallback(A,G)},Te.useContext=function(A){return $.H.useContext(A)},Te.useDebugValue=function(){},Te.useDeferredValue=function(A,G){return $.H.useDeferredValue(A,G)},Te.useEffect=function(A,G){return $.H.useEffect(A,G)},Te.useEffectEvent=function(A){return $.H.useEffectEvent(A)},Te.useId=function(){return $.H.useId()},Te.useImperativeHandle=function(A,G,ae){return $.H.useImperativeHandle(A,G,ae)},Te.useInsertionEffect=function(A,G){return $.H.useInsertionEffect(A,G)},Te.useLayoutEffect=function(A,G){return $.H.useLayoutEffect(A,G)},Te.useMemo=function(A,G){return $.H.useMemo(A,G)},Te.useOptimistic=function(A,G){return $.H.useOptimistic(A,G)},Te.useReducer=function(A,G,ae){return $.H.useReducer(A,G,ae)},Te.useRef=function(A){return $.H.useRef(A)},Te.useState=function(A){return $.H.useState(A)},Te.useSyncExternalStore=function(A,G,ae){return $.H.useSyncExternalStore(A,G,ae)},Te.useTransition=function(){return $.H.useTransition()},Te.version="19.2.5",Te}var Lb;function oc(){return Lb||(Lb=1,Wd.exports=Iw()),Wd.exports}var qb;function Zw(){return qb||(qb=1,(function(e){e.exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=void 0,e.exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=void 0,e.exports.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=void 0,Object.assign(e.exports,oc())})(Kd)),Kd.exports}var Re=Zw();const Hw=H0(Re),eS=QN({__proto__:null,default:Hw},[Re]);var Qb=am?Symbol.for("__APOLLO_CONTEXT__"):"__APOLLO_CONTEXT__";function Sm(){ne("createContext"in eS,69);var e=Re.createContext[Qb];return e||(Object.defineProperty(Re.createContext,Qb,{value:e=Re.createContext({}),enumerable:!1,writable:!1,configurable:!0}),e.displayName="ApolloContext"),e}var $w=function(e){var t=e.client,a=e.children,r=Sm(),u=Re.useContext(r),s=Re.useMemo(function(){return j(j({},u),{client:t||u.client})},[u,t]);return ne(s.client,71),Re.createElement(r.Provider,{value:s},a)};function sc(e){var t=Re.useContext(Sm()),a=e||t.client;return ne(!!a,78),a}var Bb=!1,Gw="useSyncExternalStore",Yw=eS[Gw],tS=Yw||(function(e,t,a){var r=t();globalThis.__DEV__!==!1&&!Bb&&r!==t()&&(Bb=!0,globalThis.__DEV__!==!1&&ne.error(91));var u=Re.useState({inst:{value:r,getSnapshot:t}}),s=u[0].inst,c=u[1];return bT?Re.useLayoutEffect(function(){Object.assign(s,{value:r,getSnapshot:t}),eh(s)&&c({inst:s})},[e,r,t]):Object.assign(s,{value:r,getSnapshot:t}),Re.useEffect(function(){return eh(s)&&c({inst:s}),e(function(){eh(s)&&c({inst:s})})},[e]),r});function eh(e){var t=e.value,a=e.getSnapshot;try{return t!==a()}catch{return!0}}var $n;(function(e){e[e.Query=0]="Query",e[e.Mutation=1]="Mutation",e[e.Subscription=2]="Subscription"})($n||($n={}));var Xi;function Ib(e){var t;switch(e){case $n.Query:t="Query";break;case $n.Mutation:t="Mutation";break;case $n.Subscription:t="Subscription";break}return t}function nS(e){hi("parser",function(){globalThis.__DEV__!==!1&&ne.warn(93)}),Xi||(Xi=new im(ua.parser||1e3));var t=Xi.get(e);if(t)return t;var a,r,u;ne(!!e&&!!e.kind,94,e);for(var s=[],c=[],d=[],p=[],m=0,v=e.definitions;m<v.length;m++){var y=v[m];if(y.kind==="FragmentDefinition"){s.push(y);continue}if(y.kind==="OperationDefinition")switch(y.operation){case"query":c.push(y);break;case"mutation":d.push(y);break;case"subscription":p.push(y);break}}ne(!s.length||c.length||d.length||p.length,95),ne(c.length+d.length+p.length<=1,96,e,c.length,p.length,d.length),r=c.length?$n.Query:$n.Mutation,!c.length&&!d.length&&(r=$n.Subscription);var b=c.length?c:d.length?d:p;ne(b.length===1,97,e,b.length);var _=b[0];a=_.variableDefinitions||[],_.name&&_.name.kind==="Name"?u=_.name.value:u="data";var E={name:u,type:r,variables:a};return Xi.set(e,E),E}nS.resetCache=function(){Xi=void 0};globalThis.__DEV__!==!1&&rm("parser",function(){return Xi?Xi.size:0});function km(e,t){var a=Mt("parser",nS,[e]),r=Ib(t),u=Ib(a.type);ne(a.type===t,98,r,r,u)}function Pw(e,t){var a=Re.useRef(void 0);return(!a.current||!Qe(a.current.deps,t))&&(a.current={value:e(),deps:t}),a.current.value}var Uh=W0?Re.useLayoutEffect:Re.useEffect;function Kr(e,t,a,r){"use no memo";r===void 0&&(r="Please remove this option.");var u=Re.useRef(!1);globalThis.__DEV__!==!1&&t in e&&!u.current&&(pt(e,t,a,r),u.current=!0)}var Xw=Symbol.for("apollo.hook.wrappers");function Jw(e,t,a){var r=a.queryManager,u=r&&r[Xw],s=u&&u[e];return s?s(t):t}var Kw=Object.prototype.hasOwnProperty;function Zb(){}var Fs=Symbol();function kn(e,t){return t===void 0&&(t=Object.create(null)),Jw("useQuery",Ww,sc(t&&t.client))(e,t)}function Ww(e,t){globalThis.__DEV__!==!1&&(Kr(t,"canonizeResults","useQuery"),Kr(t,"partialRefetch","useQuery"),Kr(t,"defaultOptions","useQuery","Pass the options directly to the hook instead."),Kr(t,"onCompleted","useQuery","If your `onCompleted` callback sets local state, switch to use derived state using `data` returned from the hook instead. Use `useEffect` to perform side-effects as a result of updates to `data`."),Kr(t,"onError","useQuery","If your `onError` callback sets local state, switch to use derived state using `data`, `error` or `errors` returned from the hook instead. Use `useEffect` if you need to perform side-effects as a result of updates to `data`, `error` or `errors`."));var a=t1(e,t),r=a.result,u=a.obsQueryFields;return Re.useMemo(function(){return j(j({},r),u)},[r,u])}function e1(e,t,a,r,u){function s(y){var b;km(t,$n.Query);var _={client:e,query:t,observable:r&&r.getSSRObservable(u())||Iu.inactiveOnCreation.withValue(!r,function(){return Mt(["canonizeResults","partialRefetch"],function(){return e.watchQuery(aS(void 0,e,a,u()))})}),resultData:{previousData:(b=y==null?void 0:y.resultData.current)===null||b===void 0?void 0:b.data}};return _}var c=Re.useState(s),d=c[0],p=c[1];function m(y){var b,_;Object.assign(d.observable,(b={},b[Fs]=y,b));var E=d.resultData;p(j(j({},d),{query:y.query,resultData:Object.assign(E,{previousData:((_=E.current)===null||_===void 0?void 0:_.data)||E.previousData,current:void 0})}))}if(e!==d.client||t!==d.query){var v=s(d);return p(v),[v,m]}return[d,m]}function t1(e,t){var a=sc(t.client),r=Re.useContext(Sm()).renderPromises,u=!!r,s=a.disableNetworkFetches,c=t.ssr!==!1&&!t.skip,d=t.partialRefetch,p=r1(a,e,t,u),m=e1(a,e,t,r,p),v=m[0],y=v.observable,b=v.resultData,_=m[1],E=p(y);i1(b,y,a,t,E);var T=Re.useMemo(function(){return o1(y)},[y]);a1(y,r,c);var D=n1(b,y,a,t,E,s,d,u,{onCompleted:t.onCompleted||Zb,onError:t.onError||Zb});return{result:D,obsQueryFields:T,observable:y,resultData:b,client:a,onQueryExecuted:_}}function n1(e,t,a,r,u,s,c,d,p){var m=Re.useRef(p);Re.useEffect(function(){m.current=p});var v=(d||s)&&r.ssr===!1&&!r.skip?lS:r.skip||u.fetchPolicy==="standby"?uS:void 0,y=e.previousData,b=Re.useMemo(function(){return v&&rS(v,y,t,a)},[a,t,v,y]);return tS(Re.useCallback(function(_){if(d)return function(){};var E=function(){var N=e.current,w=t.getCurrentResult();N&&N.loading===w.loading&&N.networkStatus===w.networkStatus&&Qe(N.data,w.data)||Lh(w,e,t,a,c,_,m.current)},T=function(N){if(D.current.unsubscribe(),D.current=t.resubscribeAfterError(E,T),!Kw.call(N,"graphQLErrors"))throw N;var w=e.current;(!w||w&&w.loading||!Qe(N,w.error))&&Lh({data:w&&w.data,error:N,loading:!1,networkStatus:Ue.error},e,t,a,c,_,m.current)},D={current:t.subscribe(E,T)};return function(){setTimeout(function(){return D.current.unsubscribe()})}},[s,d,t,e,c,a]),function(){return b||Hb(e,t,m.current,c,a)},function(){return b||Hb(e,t,m.current,c,a)})}function a1(e,t,a){t&&a&&(t.registerSSRObservable(e),e.getCurrentResult().loading&&t.addObservableQueryPromise(e))}function i1(e,t,a,r,u){var s;t[Fs]&&!Qe(t[Fs],u)&&(t.reobserve(aS(t,a,r,u)),e.previousData=((s=e.current)===null||s===void 0?void 0:s.data)||e.previousData,e.current=void 0),t[Fs]=u}function r1(e,t,a,r){a===void 0&&(a={});var u=a.skip;a.ssr,a.onCompleted,a.onError;var s=a.defaultOptions,c=Sn(a,["skip","ssr","onCompleted","onError","defaultOptions"]);return function(d){var p=Object.assign(c,{query:t});return r&&(p.fetchPolicy==="network-only"||p.fetchPolicy==="cache-and-network")&&(p.fetchPolicy="cache-first"),p.variables||(p.variables={}),u?(p.initialFetchPolicy=p.initialFetchPolicy||p.fetchPolicy||$b(s,e.defaultOptions),p.fetchPolicy="standby"):p.fetchPolicy||(p.fetchPolicy=(d==null?void 0:d.options.initialFetchPolicy)||$b(s,e.defaultOptions)),p}}function aS(e,t,a,r){var u=[],s=t.defaultOptions.watchQuery;return s&&u.push(s),a.defaultOptions&&u.push(a.defaultOptions),u.push(tr(e&&e.options,r)),u.reduce(qu)}function Lh(e,t,a,r,u,s,c){var d=t.current;d&&d.data&&(t.previousData=d.data),!e.error&&Fn(e.errors)&&(e.error=new cn({graphQLErrors:e.errors})),t.current=rS(u1(e,a,u),t.previousData,a,r),s(),l1(e,d==null?void 0:d.networkStatus,c)}function l1(e,t,a){if(!e.loading){var r=iS(e);Promise.resolve().then(function(){r?a.onError(r):e.data&&t!==e.networkStatus&&e.networkStatus===Ue.ready&&a.onCompleted(e.data)}).catch(function(u){globalThis.__DEV__!==!1&&ne.warn(u)})}}function Hb(e,t,a,r,u){return e.current||Lh(t.getCurrentResult(),e,t,u,r,function(){},a),e.current}function $b(e,t){var a;return(e==null?void 0:e.fetchPolicy)||((a=t==null?void 0:t.watchQuery)===null||a===void 0?void 0:a.fetchPolicy)||"cache-first"}function iS(e){return Fn(e.errors)?new cn({graphQLErrors:e.errors}):e.error}function rS(e,t,a,r){var u=e.data;e.partial;var s=Sn(e,["data","partial"]),c=j(j({data:u},s),{client:r,observable:a,variables:a.variables,called:e!==lS&&e!==uS,previousData:t});return c}function u1(e,t,a){return e.partial&&a&&!e.loading&&(!e.data||Object.keys(e.data).length===0)&&t.options.fetchPolicy!=="cache-only"?(t.refetch(),j(j({},e),{loading:!0,networkStatus:Ue.refetch})):e}var lS=pl({loading:!0,data:void 0,error:void 0,networkStatus:Ue.loading}),uS=pl({loading:!1,data:void 0,error:void 0,networkStatus:Ue.ready});function o1(e){return{refetch:e.refetch.bind(e),reobserve:function(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];return globalThis.__DEV__!==!1&&globalThis.__DEV__!==!1&&ne.warn(83),e.reobserve.apply(e,t)},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)}}function Gn(e,t){globalThis.__DEV__!==!1&&Kr(t||{},"ignoreResults","useMutation","If you don't want to synchronize component state with the mutation, please use the `useApolloClient` hook to get the client instance and call `client.mutate` directly.");var a=sc(t==null?void 0:t.client);km(e,$n.Mutation);var r=Re.useState({called:!1,loading:!1,client:a}),u=r[0],s=r[1],c=Re.useRef({result:u,mutationId:0,isMounted:!0,client:a,mutation:e,options:t});Uh(function(){Object.assign(c.current,{client:a,options:t,mutation:e})});var d=Re.useCallback(function(m){m===void 0&&(m={});var v=c.current,y=v.options,b=v.mutation,_=j(j({},y),{mutation:b}),E=m.client||c.current.client;!c.current.result.loading&&!_.ignoreResults&&c.current.isMounted&&s(c.current.result={loading:!0,error:void 0,data:void 0,called:!0,client:E});var T=++c.current.mutationId,D=qu(_,m);return E.mutate(D).then(function(N){var w,O,M=N.data,z=N.errors,Z=z&&z.length>0?new cn({graphQLErrors:z}):void 0,$=m.onError||((w=c.current.options)===null||w===void 0?void 0:w.onError);if(Z&&$&&$(Z,D),T===c.current.mutationId&&!D.ignoreResults){var W={called:!0,loading:!1,data:M,error:Z,client:E};c.current.isMounted&&!Qe(c.current.result,W)&&s(c.current.result=W)}var se=m.onCompleted||((O=c.current.options)===null||O===void 0?void 0:O.onCompleted);return Z||se==null||se(N.data,D),N},function(N){var w;if(T===c.current.mutationId&&c.current.isMounted){var O={loading:!1,error:N,data:void 0,called:!0,client:E};Qe(c.current.result,O)||s(c.current.result=O)}var M=m.onError||((w=c.current.options)===null||w===void 0?void 0:w.onError);if(M)return M(N,D),{data:void 0,errors:N};throw N})},[]),p=Re.useCallback(function(){if(c.current.isMounted){var m={called:!1,loading:!1,client:c.current.client};Object.assign(c.current,{mutationId:0,result:m}),s(m)}},[]);return Re.useEffect(function(){var m=c.current;return m.isMounted=!0,function(){m.isMounted=!1}},[]),[d,j({reset:p},u)]}function oS(e,t){t===void 0&&(t=Object.create(null));var a=Re.useRef(!1),r=sc(t.client);km(e,$n.Subscription),a.current||(a.current=!0,t.onSubscriptionData&&globalThis.__DEV__!==!1&&ne.warn(t.onData?84:85),t.onSubscriptionComplete&&globalThis.__DEV__!==!1&&ne.warn(t.onComplete?86:87));var u=t.skip,s=t.fetchPolicy,c=t.errorPolicy,d=t.shouldResubscribe,p=t.context,m=t.extensions,v=t.ignoreResults,y=Pw(function(){return t.variables},[t.variables]),b=function(){return s1(r,e,y,s,c,p,m)},_=Re.useState(t.skip?null:b),E=_[0],T=_[1],D=Re.useRef(b);Uh(function(){D.current=b}),u?E&&T(E=null):(!E||(r!==E.__.client||e!==E.__.query||s!==E.__.fetchPolicy||c!==E.__.errorPolicy||!Qe(y,E.__.variables))&&(typeof d=="function"?!!d(t):d)!==!1)&&T(E=b());var N=Re.useRef(t);Re.useEffect(function(){N.current=t});var w=!u&&!v,O=Re.useMemo(function(){return{loading:w,error:void 0,data:void 0,variables:y}},[w,y]),M=Re.useRef(v);Uh(function(){M.current=v});var z=tS(Re.useCallback(function($){if(!E)return function(){};var W=!1,se=E.__.variables,Ne=E.__.client,Be=E.subscribe({next:function(le){var fe,ee;if(!W){var ce={loading:!1,data:le.data,error:iS(le),variables:se};E.__.setResult(ce),M.current||$(),ce.error?(ee=(fe=N.current).onError)===null||ee===void 0||ee.call(fe,ce.error):N.current.onData?N.current.onData({client:Ne,data:ce}):N.current.onSubscriptionData&&N.current.onSubscriptionData({client:Ne,subscriptionData:ce})}},error:function(le){var fe,ee;le=le instanceof cn?le:new cn({protocolErrors:[le]}),W||(E.__.setResult({loading:!1,data:void 0,error:le,variables:se}),M.current||$(),(ee=(fe=N.current).onError)===null||ee===void 0||ee.call(fe,le))},complete:function(){W||(N.current.onComplete?N.current.onComplete():N.current.onSubscriptionComplete&&N.current.onSubscriptionComplete())}});return function(){W=!0,setTimeout(function(){Be.unsubscribe()})}},[E]),function(){return E&&!u&&!v?E.__.result:O},function(){return O}),Z=Re.useCallback(function(){ne(!N.current.skip,88),T(D.current())},[N,D]);return Re.useMemo(function(){return j(j({},z),{restart:Z})},[z,Z])}function s1(e,t,a,r,u,s,c){var d={query:t,variables:a,fetchPolicy:r,errorPolicy:u,context:s,extensions:c},p=j(j({},d),{client:e,result:{loading:!0,data:void 0,error:void 0,variables:a},setResult:function(v){p.result=v}}),m=null;return Object.assign(new et(function(v){m||(m=e.subscribe(d));var y=m.subscribe(v);return function(){return y.unsubscribe()}}),{__:p})}var F=oc();const Jt=H0(F);var th={exports:{}},xu={},nh={exports:{}},ah={};/**
58
+ */var Ub;function Zw(){if(Ub)return Te;Ub=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),b=Symbol.iterator;function _(A){return A===null||typeof A!="object"?null:(A=b&&A[b]||A["@@iterator"],typeof A=="function"?A:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},T=Object.assign,D={};function N(A,G,ae){this.props=A,this.context=G,this.refs=D,this.updater=ae||E}N.prototype.isReactComponent={},N.prototype.setState=function(A,G){if(typeof A!="object"&&typeof A!="function"&&A!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,A,G,"setState")},N.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function w(){}w.prototype=N.prototype;function O(A,G,ae){this.props=A,this.context=G,this.refs=D,this.updater=ae||E}var M=O.prototype=new w;M.constructor=O,T(M,N.prototype),M.isPureReactComponent=!0;var z=Array.isArray;function Z(){}var $={H:null,A:null,T:null,S:null},W=Object.prototype.hasOwnProperty;function se(A,G,ae){var oe=ae.ref;return{$$typeof:e,type:A,key:G,ref:oe!==void 0?oe:null,props:ae}}function Ne(A,G){return se(A.type,G,A.props)}function Be(A){return typeof A=="object"&&A!==null&&A.$$typeof===e}function le(A){var G={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(ae){return G[ae]})}var fe=/\/+/g;function ee(A,G){return typeof A=="object"&&A!==null&&A.key!=null?le(""+A.key):G.toString(36)}function ce(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then(Z,Z):(A.status="pending",A.then(function(G){A.status==="pending"&&(A.status="fulfilled",A.value=G)},function(G){A.status==="pending"&&(A.status="rejected",A.reason=G)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function U(A,G,ae,oe,ge){var _e=typeof A;(_e==="undefined"||_e==="boolean")&&(A=null);var qe=!1;if(A===null)qe=!0;else switch(_e){case"bigint":case"string":case"number":qe=!0;break;case"object":switch(A.$$typeof){case e:case t:qe=!0;break;case v:return qe=A._init,U(qe(A._payload),G,ae,oe,ge)}}if(qe)return ge=ge(A),qe=oe===""?"."+ee(A,0):oe,z(ge)?(ae="",qe!=null&&(ae=qe.replace(fe,"$&/")+"/"),U(ge,G,ae,"",function(sa){return sa})):ge!=null&&(Be(ge)&&(ge=Ne(ge,ae+(ge.key==null||A&&A.key===ge.key?"":(""+ge.key).replace(fe,"$&/")+"/")+qe)),G.push(ge)),1;qe=0;var kt=oe===""?".":oe+":";if(z(A))for(var ct=0;ct<A.length;ct++)oe=A[ct],_e=kt+ee(oe,ct),qe+=U(oe,G,ae,_e,ge);else if(ct=_(A),typeof ct=="function")for(A=ct.call(A),ct=0;!(oe=A.next()).done;)oe=oe.value,_e=kt+ee(oe,ct++),qe+=U(oe,G,ae,_e,ge);else if(_e==="object"){if(typeof A.then=="function")return U(ce(A),G,ae,oe,ge);throw G=String(A),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return qe}function P(A,G,ae){if(A==null)return A;var oe=[],ge=0;return U(A,oe,"","",function(_e){return G.call(ae,_e,ge++)}),oe}function ie(A){if(A._status===-1){var G=A._result;G=G(),G.then(function(ae){(A._status===0||A._status===-1)&&(A._status=1,A._result=ae)},function(ae){(A._status===0||A._status===-1)&&(A._status=2,A._result=ae)}),A._status===-1&&(A._status=0,A._result=G)}if(A._status===1)return A._result.default;throw A._result}var me=typeof reportError=="function"?reportError:function(A){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof A=="object"&&A!==null&&typeof A.message=="string"?String(A.message):String(A),error:A});if(!window.dispatchEvent(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",A);return}console.error(A)},ve={map:P,forEach:function(A,G,ae){P(A,function(){G.apply(this,arguments)},ae)},count:function(A){var G=0;return P(A,function(){G++}),G},toArray:function(A){return P(A,function(G){return G})||[]},only:function(A){if(!Be(A))throw Error("React.Children.only expected to receive a single React element child.");return A}};return Te.Activity=y,Te.Children=ve,Te.Component=N,Te.Fragment=a,Te.Profiler=u,Te.PureComponent=O,Te.StrictMode=r,Te.Suspense=p,Te.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=$,Te.__COMPILER_RUNTIME={__proto__:null,c:function(A){return $.H.useMemoCache(A)}},Te.cache=function(A){return function(){return A.apply(null,arguments)}},Te.cacheSignal=function(){return null},Te.cloneElement=function(A,G,ae){if(A==null)throw Error("The argument must be a React element, but you passed "+A+".");var oe=T({},A.props),ge=A.key;if(G!=null)for(_e in G.key!==void 0&&(ge=""+G.key),G)!W.call(G,_e)||_e==="key"||_e==="__self"||_e==="__source"||_e==="ref"&&G.ref===void 0||(oe[_e]=G[_e]);var _e=arguments.length-2;if(_e===1)oe.children=ae;else if(1<_e){for(var qe=Array(_e),kt=0;kt<_e;kt++)qe[kt]=arguments[kt+2];oe.children=qe}return se(A.type,ge,oe)},Te.createContext=function(A){return A={$$typeof:c,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null},A.Provider=A,A.Consumer={$$typeof:s,_context:A},A},Te.createElement=function(A,G,ae){var oe,ge={},_e=null;if(G!=null)for(oe in G.key!==void 0&&(_e=""+G.key),G)W.call(G,oe)&&oe!=="key"&&oe!=="__self"&&oe!=="__source"&&(ge[oe]=G[oe]);var qe=arguments.length-2;if(qe===1)ge.children=ae;else if(1<qe){for(var kt=Array(qe),ct=0;ct<qe;ct++)kt[ct]=arguments[ct+2];ge.children=kt}if(A&&A.defaultProps)for(oe in qe=A.defaultProps,qe)ge[oe]===void 0&&(ge[oe]=qe[oe]);return se(A,_e,ge)},Te.createRef=function(){return{current:null}},Te.forwardRef=function(A){return{$$typeof:d,render:A}},Te.isValidElement=Be,Te.lazy=function(A){return{$$typeof:v,_payload:{_status:-1,_result:A},_init:ie}},Te.memo=function(A,G){return{$$typeof:m,type:A,compare:G===void 0?null:G}},Te.startTransition=function(A){var G=$.T,ae={};$.T=ae;try{var oe=A(),ge=$.S;ge!==null&&ge(ae,oe),typeof oe=="object"&&oe!==null&&typeof oe.then=="function"&&oe.then(Z,me)}catch(_e){me(_e)}finally{G!==null&&ae.types!==null&&(G.types=ae.types),$.T=G}},Te.unstable_useCacheRefresh=function(){return $.H.useCacheRefresh()},Te.use=function(A){return $.H.use(A)},Te.useActionState=function(A,G,ae){return $.H.useActionState(A,G,ae)},Te.useCallback=function(A,G){return $.H.useCallback(A,G)},Te.useContext=function(A){return $.H.useContext(A)},Te.useDebugValue=function(){},Te.useDeferredValue=function(A,G){return $.H.useDeferredValue(A,G)},Te.useEffect=function(A,G){return $.H.useEffect(A,G)},Te.useEffectEvent=function(A){return $.H.useEffectEvent(A)},Te.useId=function(){return $.H.useId()},Te.useImperativeHandle=function(A,G,ae){return $.H.useImperativeHandle(A,G,ae)},Te.useInsertionEffect=function(A,G){return $.H.useInsertionEffect(A,G)},Te.useLayoutEffect=function(A,G){return $.H.useLayoutEffect(A,G)},Te.useMemo=function(A,G){return $.H.useMemo(A,G)},Te.useOptimistic=function(A,G){return $.H.useOptimistic(A,G)},Te.useReducer=function(A,G,ae){return $.H.useReducer(A,G,ae)},Te.useRef=function(A){return $.H.useRef(A)},Te.useState=function(A){return $.H.useState(A)},Te.useSyncExternalStore=function(A,G,ae){return $.H.useSyncExternalStore(A,G,ae)},Te.useTransition=function(){return $.H.useTransition()},Te.version="19.2.5",Te}var Lb;function oc(){return Lb||(Lb=1,Wd.exports=Zw()),Wd.exports}var qb;function Hw(){return qb||(qb=1,(function(e){e.exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=void 0,e.exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=void 0,e.exports.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=void 0,Object.assign(e.exports,oc())})(Kd)),Kd.exports}var Re=Hw();const $w=$0(Re),tS=BN({__proto__:null,default:$w},[Re]);var Qb=am?Symbol.for("__APOLLO_CONTEXT__"):"__APOLLO_CONTEXT__";function Sm(){ne("createContext"in tS,69);var e=Re.createContext[Qb];return e||(Object.defineProperty(Re.createContext,Qb,{value:e=Re.createContext({}),enumerable:!1,writable:!1,configurable:!0}),e.displayName="ApolloContext"),e}var Gw=function(e){var t=e.client,a=e.children,r=Sm(),u=Re.useContext(r),s=Re.useMemo(function(){return j(j({},u),{client:t||u.client})},[u,t]);return ne(s.client,71),Re.createElement(r.Provider,{value:s},a)};function sc(e){var t=Re.useContext(Sm()),a=e||t.client;return ne(!!a,78),a}var Bb=!1,Yw="useSyncExternalStore",Pw=tS[Yw],nS=Pw||(function(e,t,a){var r=t();globalThis.__DEV__!==!1&&!Bb&&r!==t()&&(Bb=!0,globalThis.__DEV__!==!1&&ne.error(91));var u=Re.useState({inst:{value:r,getSnapshot:t}}),s=u[0].inst,c=u[1];return _T?Re.useLayoutEffect(function(){Object.assign(s,{value:r,getSnapshot:t}),eh(s)&&c({inst:s})},[e,r,t]):Object.assign(s,{value:r,getSnapshot:t}),Re.useEffect(function(){return eh(s)&&c({inst:s}),e(function(){eh(s)&&c({inst:s})})},[e]),r});function eh(e){var t=e.value,a=e.getSnapshot;try{return t!==a()}catch{return!0}}var $n;(function(e){e[e.Query=0]="Query",e[e.Mutation=1]="Mutation",e[e.Subscription=2]="Subscription"})($n||($n={}));var Xi;function Ib(e){var t;switch(e){case $n.Query:t="Query";break;case $n.Mutation:t="Mutation";break;case $n.Subscription:t="Subscription";break}return t}function aS(e){hi("parser",function(){globalThis.__DEV__!==!1&&ne.warn(93)}),Xi||(Xi=new im(ua.parser||1e3));var t=Xi.get(e);if(t)return t;var a,r,u;ne(!!e&&!!e.kind,94,e);for(var s=[],c=[],d=[],p=[],m=0,v=e.definitions;m<v.length;m++){var y=v[m];if(y.kind==="FragmentDefinition"){s.push(y);continue}if(y.kind==="OperationDefinition")switch(y.operation){case"query":c.push(y);break;case"mutation":d.push(y);break;case"subscription":p.push(y);break}}ne(!s.length||c.length||d.length||p.length,95),ne(c.length+d.length+p.length<=1,96,e,c.length,p.length,d.length),r=c.length?$n.Query:$n.Mutation,!c.length&&!d.length&&(r=$n.Subscription);var b=c.length?c:d.length?d:p;ne(b.length===1,97,e,b.length);var _=b[0];a=_.variableDefinitions||[],_.name&&_.name.kind==="Name"?u=_.name.value:u="data";var E={name:u,type:r,variables:a};return Xi.set(e,E),E}aS.resetCache=function(){Xi=void 0};globalThis.__DEV__!==!1&&rm("parser",function(){return Xi?Xi.size:0});function km(e,t){var a=Mt("parser",aS,[e]),r=Ib(t),u=Ib(a.type);ne(a.type===t,98,r,r,u)}function Xw(e,t){var a=Re.useRef(void 0);return(!a.current||!Qe(a.current.deps,t))&&(a.current={value:e(),deps:t}),a.current.value}var Uh=e_?Re.useLayoutEffect:Re.useEffect;function Kr(e,t,a,r){"use no memo";r===void 0&&(r="Please remove this option.");var u=Re.useRef(!1);globalThis.__DEV__!==!1&&t in e&&!u.current&&(pt(e,t,a,r),u.current=!0)}var Jw=Symbol.for("apollo.hook.wrappers");function Kw(e,t,a){var r=a.queryManager,u=r&&r[Jw],s=u&&u[e];return s?s(t):t}var Ww=Object.prototype.hasOwnProperty;function Zb(){}var Fs=Symbol();function kn(e,t){return t===void 0&&(t=Object.create(null)),Kw("useQuery",e1,sc(t&&t.client))(e,t)}function e1(e,t){globalThis.__DEV__!==!1&&(Kr(t,"canonizeResults","useQuery"),Kr(t,"partialRefetch","useQuery"),Kr(t,"defaultOptions","useQuery","Pass the options directly to the hook instead."),Kr(t,"onCompleted","useQuery","If your `onCompleted` callback sets local state, switch to use derived state using `data` returned from the hook instead. Use `useEffect` to perform side-effects as a result of updates to `data`."),Kr(t,"onError","useQuery","If your `onError` callback sets local state, switch to use derived state using `data`, `error` or `errors` returned from the hook instead. Use `useEffect` if you need to perform side-effects as a result of updates to `data`, `error` or `errors`."));var a=n1(e,t),r=a.result,u=a.obsQueryFields;return Re.useMemo(function(){return j(j({},r),u)},[r,u])}function t1(e,t,a,r,u){function s(y){var b;km(t,$n.Query);var _={client:e,query:t,observable:r&&r.getSSRObservable(u())||Iu.inactiveOnCreation.withValue(!r,function(){return Mt(["canonizeResults","partialRefetch"],function(){return e.watchQuery(iS(void 0,e,a,u()))})}),resultData:{previousData:(b=y==null?void 0:y.resultData.current)===null||b===void 0?void 0:b.data}};return _}var c=Re.useState(s),d=c[0],p=c[1];function m(y){var b,_;Object.assign(d.observable,(b={},b[Fs]=y,b));var E=d.resultData;p(j(j({},d),{query:y.query,resultData:Object.assign(E,{previousData:((_=E.current)===null||_===void 0?void 0:_.data)||E.previousData,current:void 0})}))}if(e!==d.client||t!==d.query){var v=s(d);return p(v),[v,m]}return[d,m]}function n1(e,t){var a=sc(t.client),r=Re.useContext(Sm()).renderPromises,u=!!r,s=a.disableNetworkFetches,c=t.ssr!==!1&&!t.skip,d=t.partialRefetch,p=l1(a,e,t,u),m=t1(a,e,t,r,p),v=m[0],y=v.observable,b=v.resultData,_=m[1],E=p(y);r1(b,y,a,t,E);var T=Re.useMemo(function(){return s1(y)},[y]);i1(y,r,c);var D=a1(b,y,a,t,E,s,d,u,{onCompleted:t.onCompleted||Zb,onError:t.onError||Zb});return{result:D,obsQueryFields:T,observable:y,resultData:b,client:a,onQueryExecuted:_}}function a1(e,t,a,r,u,s,c,d,p){var m=Re.useRef(p);Re.useEffect(function(){m.current=p});var v=(d||s)&&r.ssr===!1&&!r.skip?uS:r.skip||u.fetchPolicy==="standby"?oS:void 0,y=e.previousData,b=Re.useMemo(function(){return v&&lS(v,y,t,a)},[a,t,v,y]);return nS(Re.useCallback(function(_){if(d)return function(){};var E=function(){var N=e.current,w=t.getCurrentResult();N&&N.loading===w.loading&&N.networkStatus===w.networkStatus&&Qe(N.data,w.data)||Lh(w,e,t,a,c,_,m.current)},T=function(N){if(D.current.unsubscribe(),D.current=t.resubscribeAfterError(E,T),!Ww.call(N,"graphQLErrors"))throw N;var w=e.current;(!w||w&&w.loading||!Qe(N,w.error))&&Lh({data:w&&w.data,error:N,loading:!1,networkStatus:Ue.error},e,t,a,c,_,m.current)},D={current:t.subscribe(E,T)};return function(){setTimeout(function(){return D.current.unsubscribe()})}},[s,d,t,e,c,a]),function(){return b||Hb(e,t,m.current,c,a)},function(){return b||Hb(e,t,m.current,c,a)})}function i1(e,t,a){t&&a&&(t.registerSSRObservable(e),e.getCurrentResult().loading&&t.addObservableQueryPromise(e))}function r1(e,t,a,r,u){var s;t[Fs]&&!Qe(t[Fs],u)&&(t.reobserve(iS(t,a,r,u)),e.previousData=((s=e.current)===null||s===void 0?void 0:s.data)||e.previousData,e.current=void 0),t[Fs]=u}function l1(e,t,a,r){a===void 0&&(a={});var u=a.skip;a.ssr,a.onCompleted,a.onError;var s=a.defaultOptions,c=Sn(a,["skip","ssr","onCompleted","onError","defaultOptions"]);return function(d){var p=Object.assign(c,{query:t});return r&&(p.fetchPolicy==="network-only"||p.fetchPolicy==="cache-and-network")&&(p.fetchPolicy="cache-first"),p.variables||(p.variables={}),u?(p.initialFetchPolicy=p.initialFetchPolicy||p.fetchPolicy||$b(s,e.defaultOptions),p.fetchPolicy="standby"):p.fetchPolicy||(p.fetchPolicy=(d==null?void 0:d.options.initialFetchPolicy)||$b(s,e.defaultOptions)),p}}function iS(e,t,a,r){var u=[],s=t.defaultOptions.watchQuery;return s&&u.push(s),a.defaultOptions&&u.push(a.defaultOptions),u.push(tr(e&&e.options,r)),u.reduce(qu)}function Lh(e,t,a,r,u,s,c){var d=t.current;d&&d.data&&(t.previousData=d.data),!e.error&&Fn(e.errors)&&(e.error=new cn({graphQLErrors:e.errors})),t.current=lS(o1(e,a,u),t.previousData,a,r),s(),u1(e,d==null?void 0:d.networkStatus,c)}function u1(e,t,a){if(!e.loading){var r=rS(e);Promise.resolve().then(function(){r?a.onError(r):e.data&&t!==e.networkStatus&&e.networkStatus===Ue.ready&&a.onCompleted(e.data)}).catch(function(u){globalThis.__DEV__!==!1&&ne.warn(u)})}}function Hb(e,t,a,r,u){return e.current||Lh(t.getCurrentResult(),e,t,u,r,function(){},a),e.current}function $b(e,t){var a;return(e==null?void 0:e.fetchPolicy)||((a=t==null?void 0:t.watchQuery)===null||a===void 0?void 0:a.fetchPolicy)||"cache-first"}function rS(e){return Fn(e.errors)?new cn({graphQLErrors:e.errors}):e.error}function lS(e,t,a,r){var u=e.data;e.partial;var s=Sn(e,["data","partial"]),c=j(j({data:u},s),{client:r,observable:a,variables:a.variables,called:e!==uS&&e!==oS,previousData:t});return c}function o1(e,t,a){return e.partial&&a&&!e.loading&&(!e.data||Object.keys(e.data).length===0)&&t.options.fetchPolicy!=="cache-only"?(t.refetch(),j(j({},e),{loading:!0,networkStatus:Ue.refetch})):e}var uS=pl({loading:!0,data:void 0,error:void 0,networkStatus:Ue.loading}),oS=pl({loading:!1,data:void 0,error:void 0,networkStatus:Ue.ready});function s1(e){return{refetch:e.refetch.bind(e),reobserve:function(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];return globalThis.__DEV__!==!1&&globalThis.__DEV__!==!1&&ne.warn(83),e.reobserve.apply(e,t)},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)}}function Gn(e,t){globalThis.__DEV__!==!1&&Kr(t||{},"ignoreResults","useMutation","If you don't want to synchronize component state with the mutation, please use the `useApolloClient` hook to get the client instance and call `client.mutate` directly.");var a=sc(t==null?void 0:t.client);km(e,$n.Mutation);var r=Re.useState({called:!1,loading:!1,client:a}),u=r[0],s=r[1],c=Re.useRef({result:u,mutationId:0,isMounted:!0,client:a,mutation:e,options:t});Uh(function(){Object.assign(c.current,{client:a,options:t,mutation:e})});var d=Re.useCallback(function(m){m===void 0&&(m={});var v=c.current,y=v.options,b=v.mutation,_=j(j({},y),{mutation:b}),E=m.client||c.current.client;!c.current.result.loading&&!_.ignoreResults&&c.current.isMounted&&s(c.current.result={loading:!0,error:void 0,data:void 0,called:!0,client:E});var T=++c.current.mutationId,D=qu(_,m);return E.mutate(D).then(function(N){var w,O,M=N.data,z=N.errors,Z=z&&z.length>0?new cn({graphQLErrors:z}):void 0,$=m.onError||((w=c.current.options)===null||w===void 0?void 0:w.onError);if(Z&&$&&$(Z,D),T===c.current.mutationId&&!D.ignoreResults){var W={called:!0,loading:!1,data:M,error:Z,client:E};c.current.isMounted&&!Qe(c.current.result,W)&&s(c.current.result=W)}var se=m.onCompleted||((O=c.current.options)===null||O===void 0?void 0:O.onCompleted);return Z||se==null||se(N.data,D),N},function(N){var w;if(T===c.current.mutationId&&c.current.isMounted){var O={loading:!1,error:N,data:void 0,called:!0,client:E};Qe(c.current.result,O)||s(c.current.result=O)}var M=m.onError||((w=c.current.options)===null||w===void 0?void 0:w.onError);if(M)return M(N,D),{data:void 0,errors:N};throw N})},[]),p=Re.useCallback(function(){if(c.current.isMounted){var m={called:!1,loading:!1,client:c.current.client};Object.assign(c.current,{mutationId:0,result:m}),s(m)}},[]);return Re.useEffect(function(){var m=c.current;return m.isMounted=!0,function(){m.isMounted=!1}},[]),[d,j({reset:p},u)]}function sS(e,t){t===void 0&&(t=Object.create(null));var a=Re.useRef(!1),r=sc(t.client);km(e,$n.Subscription),a.current||(a.current=!0,t.onSubscriptionData&&globalThis.__DEV__!==!1&&ne.warn(t.onData?84:85),t.onSubscriptionComplete&&globalThis.__DEV__!==!1&&ne.warn(t.onComplete?86:87));var u=t.skip,s=t.fetchPolicy,c=t.errorPolicy,d=t.shouldResubscribe,p=t.context,m=t.extensions,v=t.ignoreResults,y=Xw(function(){return t.variables},[t.variables]),b=function(){return c1(r,e,y,s,c,p,m)},_=Re.useState(t.skip?null:b),E=_[0],T=_[1],D=Re.useRef(b);Uh(function(){D.current=b}),u?E&&T(E=null):(!E||(r!==E.__.client||e!==E.__.query||s!==E.__.fetchPolicy||c!==E.__.errorPolicy||!Qe(y,E.__.variables))&&(typeof d=="function"?!!d(t):d)!==!1)&&T(E=b());var N=Re.useRef(t);Re.useEffect(function(){N.current=t});var w=!u&&!v,O=Re.useMemo(function(){return{loading:w,error:void 0,data:void 0,variables:y}},[w,y]),M=Re.useRef(v);Uh(function(){M.current=v});var z=nS(Re.useCallback(function($){if(!E)return function(){};var W=!1,se=E.__.variables,Ne=E.__.client,Be=E.subscribe({next:function(le){var fe,ee;if(!W){var ce={loading:!1,data:le.data,error:rS(le),variables:se};E.__.setResult(ce),M.current||$(),ce.error?(ee=(fe=N.current).onError)===null||ee===void 0||ee.call(fe,ce.error):N.current.onData?N.current.onData({client:Ne,data:ce}):N.current.onSubscriptionData&&N.current.onSubscriptionData({client:Ne,subscriptionData:ce})}},error:function(le){var fe,ee;le=le instanceof cn?le:new cn({protocolErrors:[le]}),W||(E.__.setResult({loading:!1,data:void 0,error:le,variables:se}),M.current||$(),(ee=(fe=N.current).onError)===null||ee===void 0||ee.call(fe,le))},complete:function(){W||(N.current.onComplete?N.current.onComplete():N.current.onSubscriptionComplete&&N.current.onSubscriptionComplete())}});return function(){W=!0,setTimeout(function(){Be.unsubscribe()})}},[E]),function(){return E&&!u&&!v?E.__.result:O},function(){return O}),Z=Re.useCallback(function(){ne(!N.current.skip,88),T(D.current())},[N,D]);return Re.useMemo(function(){return j(j({},z),{restart:Z})},[z,Z])}function c1(e,t,a,r,u,s,c){var d={query:t,variables:a,fetchPolicy:r,errorPolicy:u,context:s,extensions:c},p=j(j({},d),{client:e,result:{loading:!0,data:void 0,error:void 0,variables:a},setResult:function(v){p.result=v}}),m=null;return Object.assign(new et(function(v){m||(m=e.subscribe(d));var y=m.subscribe(v);return function(){return y.unsubscribe()}}),{__:p})}var F=oc();const Jt=$0(F);var th={exports:{}},xu={},nh={exports:{}},ah={};/**
59
59
  * @license React
60
60
  * scheduler.production.js
61
61
  *
@@ -63,7 +63,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
63
63
  *
64
64
  * This source code is licensed under the MIT license found in the
65
65
  * LICENSE file in the root directory of this source tree.
66
- */var Gb;function c1(){return Gb||(Gb=1,(function(e){function t(U,P){var ie=U.length;U.push(P);e:for(;0<ie;){var me=ie-1>>>1,ve=U[me];if(0<u(ve,P))U[me]=P,U[ie]=ve,ie=me;else break e}}function a(U){return U.length===0?null:U[0]}function r(U){if(U.length===0)return null;var P=U[0],ie=U.pop();if(ie!==P){U[0]=ie;e:for(var me=0,ve=U.length,A=ve>>>1;me<A;){var G=2*(me+1)-1,ae=U[G],oe=G+1,ge=U[oe];if(0>u(ae,ie))oe<ve&&0>u(ge,ae)?(U[me]=ge,U[oe]=ie,me=oe):(U[me]=ae,U[G]=ie,me=G);else if(oe<ve&&0>u(ge,ie))U[me]=ge,U[oe]=ie,me=oe;else break e}}return P}function u(U,P){var ie=U.sortIndex-P.sortIndex;return ie!==0?ie:U.id-P.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var c=Date,d=c.now();e.unstable_now=function(){return c.now()-d}}var p=[],m=[],v=1,y=null,b=3,_=!1,E=!1,T=!1,D=!1,N=typeof setTimeout=="function"?setTimeout:null,w=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;function M(U){for(var P=a(m);P!==null;){if(P.callback===null)r(m);else if(P.startTime<=U)r(m),P.sortIndex=P.expirationTime,t(p,P);else break;P=a(m)}}function z(U){if(T=!1,M(U),!E)if(a(p)!==null)E=!0,Z||(Z=!0,le());else{var P=a(m);P!==null&&ce(z,P.startTime-U)}}var Z=!1,$=-1,W=5,se=-1;function Ne(){return D?!0:!(e.unstable_now()-se<W)}function Be(){if(D=!1,Z){var U=e.unstable_now();se=U;var P=!0;try{e:{E=!1,T&&(T=!1,w($),$=-1),_=!0;var ie=b;try{t:{for(M(U),y=a(p);y!==null&&!(y.expirationTime>U&&Ne());){var me=y.callback;if(typeof me=="function"){y.callback=null,b=y.priorityLevel;var ve=me(y.expirationTime<=U);if(U=e.unstable_now(),typeof ve=="function"){y.callback=ve,M(U),P=!0;break t}y===a(p)&&r(p),M(U)}else r(p);y=a(p)}if(y!==null)P=!0;else{var A=a(m);A!==null&&ce(z,A.startTime-U),P=!1}}break e}finally{y=null,b=ie,_=!1}P=void 0}}finally{P?le():Z=!1}}}var le;if(typeof O=="function")le=function(){O(Be)};else if(typeof MessageChannel<"u"){var fe=new MessageChannel,ee=fe.port2;fe.port1.onmessage=Be,le=function(){ee.postMessage(null)}}else le=function(){N(Be,0)};function ce(U,P){$=N(function(){U(e.unstable_now())},P)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(U){U.callback=null},e.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):W=0<U?Math.floor(1e3/U):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_next=function(U){switch(b){case 1:case 2:case 3:var P=3;break;default:P=b}var ie=b;b=P;try{return U()}finally{b=ie}},e.unstable_requestPaint=function(){D=!0},e.unstable_runWithPriority=function(U,P){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var ie=b;b=U;try{return P()}finally{b=ie}},e.unstable_scheduleCallback=function(U,P,ie){var me=e.unstable_now();switch(typeof ie=="object"&&ie!==null?(ie=ie.delay,ie=typeof ie=="number"&&0<ie?me+ie:me):ie=me,U){case 1:var ve=-1;break;case 2:ve=250;break;case 5:ve=1073741823;break;case 4:ve=1e4;break;default:ve=5e3}return ve=ie+ve,U={id:v++,callback:P,priorityLevel:U,startTime:ie,expirationTime:ve,sortIndex:-1},ie>me?(U.sortIndex=ie,t(m,U),a(p)===null&&U===a(m)&&(T?(w($),$=-1):T=!0,ce(z,ie-me))):(U.sortIndex=ve,t(p,U),E||_||(E=!0,Z||(Z=!0,le()))),U},e.unstable_shouldYield=Ne,e.unstable_wrapCallback=function(U){var P=b;return function(){var ie=b;b=P;try{return U.apply(this,arguments)}finally{b=ie}}}})(ah)),ah}var Yb;function f1(){return Yb||(Yb=1,nh.exports=c1()),nh.exports}var ih={exports:{}},$t={};/**
66
+ */var Gb;function f1(){return Gb||(Gb=1,(function(e){function t(U,P){var ie=U.length;U.push(P);e:for(;0<ie;){var me=ie-1>>>1,ve=U[me];if(0<u(ve,P))U[me]=P,U[ie]=ve,ie=me;else break e}}function a(U){return U.length===0?null:U[0]}function r(U){if(U.length===0)return null;var P=U[0],ie=U.pop();if(ie!==P){U[0]=ie;e:for(var me=0,ve=U.length,A=ve>>>1;me<A;){var G=2*(me+1)-1,ae=U[G],oe=G+1,ge=U[oe];if(0>u(ae,ie))oe<ve&&0>u(ge,ae)?(U[me]=ge,U[oe]=ie,me=oe):(U[me]=ae,U[G]=ie,me=G);else if(oe<ve&&0>u(ge,ie))U[me]=ge,U[oe]=ie,me=oe;else break e}}return P}function u(U,P){var ie=U.sortIndex-P.sortIndex;return ie!==0?ie:U.id-P.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var c=Date,d=c.now();e.unstable_now=function(){return c.now()-d}}var p=[],m=[],v=1,y=null,b=3,_=!1,E=!1,T=!1,D=!1,N=typeof setTimeout=="function"?setTimeout:null,w=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;function M(U){for(var P=a(m);P!==null;){if(P.callback===null)r(m);else if(P.startTime<=U)r(m),P.sortIndex=P.expirationTime,t(p,P);else break;P=a(m)}}function z(U){if(T=!1,M(U),!E)if(a(p)!==null)E=!0,Z||(Z=!0,le());else{var P=a(m);P!==null&&ce(z,P.startTime-U)}}var Z=!1,$=-1,W=5,se=-1;function Ne(){return D?!0:!(e.unstable_now()-se<W)}function Be(){if(D=!1,Z){var U=e.unstable_now();se=U;var P=!0;try{e:{E=!1,T&&(T=!1,w($),$=-1),_=!0;var ie=b;try{t:{for(M(U),y=a(p);y!==null&&!(y.expirationTime>U&&Ne());){var me=y.callback;if(typeof me=="function"){y.callback=null,b=y.priorityLevel;var ve=me(y.expirationTime<=U);if(U=e.unstable_now(),typeof ve=="function"){y.callback=ve,M(U),P=!0;break t}y===a(p)&&r(p),M(U)}else r(p);y=a(p)}if(y!==null)P=!0;else{var A=a(m);A!==null&&ce(z,A.startTime-U),P=!1}}break e}finally{y=null,b=ie,_=!1}P=void 0}}finally{P?le():Z=!1}}}var le;if(typeof O=="function")le=function(){O(Be)};else if(typeof MessageChannel<"u"){var fe=new MessageChannel,ee=fe.port2;fe.port1.onmessage=Be,le=function(){ee.postMessage(null)}}else le=function(){N(Be,0)};function ce(U,P){$=N(function(){U(e.unstable_now())},P)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(U){U.callback=null},e.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):W=0<U?Math.floor(1e3/U):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_next=function(U){switch(b){case 1:case 2:case 3:var P=3;break;default:P=b}var ie=b;b=P;try{return U()}finally{b=ie}},e.unstable_requestPaint=function(){D=!0},e.unstable_runWithPriority=function(U,P){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var ie=b;b=U;try{return P()}finally{b=ie}},e.unstable_scheduleCallback=function(U,P,ie){var me=e.unstable_now();switch(typeof ie=="object"&&ie!==null?(ie=ie.delay,ie=typeof ie=="number"&&0<ie?me+ie:me):ie=me,U){case 1:var ve=-1;break;case 2:ve=250;break;case 5:ve=1073741823;break;case 4:ve=1e4;break;default:ve=5e3}return ve=ie+ve,U={id:v++,callback:P,priorityLevel:U,startTime:ie,expirationTime:ve,sortIndex:-1},ie>me?(U.sortIndex=ie,t(m,U),a(p)===null&&U===a(m)&&(T?(w($),$=-1):T=!0,ce(z,ie-me))):(U.sortIndex=ve,t(p,U),E||_||(E=!0,Z||(Z=!0,le()))),U},e.unstable_shouldYield=Ne,e.unstable_wrapCallback=function(U){var P=b;return function(){var ie=b;b=P;try{return U.apply(this,arguments)}finally{b=ie}}}})(ah)),ah}var Yb;function d1(){return Yb||(Yb=1,nh.exports=f1()),nh.exports}var ih={exports:{}},$t={};/**
67
67
  * @license React
68
68
  * react-dom.production.js
69
69
  *
@@ -71,7 +71,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
71
71
  *
72
72
  * This source code is licensed under the MIT license found in the
73
73
  * LICENSE file in the root directory of this source tree.
74
- */var Pb;function d1(){if(Pb)return $t;Pb=1;var e=oc();function t(p){var m="https://react.dev/errors/"+p;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)m+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+p+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(){}var r={d:{f:a,r:function(){throw Error(t(522))},D:a,C:a,L:a,m:a,X:a,S:a,M:a},p:0,findDOMNode:null},u=Symbol.for("react.portal");function s(p,m,v){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:y==null?null:""+y,children:p,containerInfo:m,implementation:v}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(p,m){if(p==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return $t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,$t.createPortal=function(p,m){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(t(299));return s(p,m,null,v)},$t.flushSync=function(p){var m=c.T,v=r.p;try{if(c.T=null,r.p=2,p)return p()}finally{c.T=m,r.p=v,r.d.f()}},$t.preconnect=function(p,m){typeof p=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,r.d.C(p,m))},$t.prefetchDNS=function(p){typeof p=="string"&&r.d.D(p)},$t.preinit=function(p,m){if(typeof p=="string"&&m&&typeof m.as=="string"){var v=m.as,y=d(v,m.crossOrigin),b=typeof m.integrity=="string"?m.integrity:void 0,_=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;v==="style"?r.d.S(p,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:y,integrity:b,fetchPriority:_}):v==="script"&&r.d.X(p,{crossOrigin:y,integrity:b,fetchPriority:_,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},$t.preinitModule=function(p,m){if(typeof p=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var v=d(m.as,m.crossOrigin);r.d.M(p,{crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&r.d.M(p)},$t.preload=function(p,m){if(typeof p=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var v=m.as,y=d(v,m.crossOrigin);r.d.L(p,v,{crossOrigin:y,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},$t.preloadModule=function(p,m){if(typeof p=="string")if(m){var v=d(m.as,m.crossOrigin);r.d.m(p,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else r.d.m(p)},$t.requestFormReset=function(p){r.d.r(p)},$t.unstable_batchedUpdates=function(p,m){return p(m)},$t.useFormState=function(p,m,v){return c.H.useFormState(p,m,v)},$t.useFormStatus=function(){return c.H.useHostTransitionStatus()},$t.version="19.2.5",$t}var Xb;function h1(){if(Xb)return ih.exports;Xb=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),ih.exports=d1(),ih.exports}/**
74
+ */var Pb;function h1(){if(Pb)return $t;Pb=1;var e=oc();function t(p){var m="https://react.dev/errors/"+p;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)m+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+p+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(){}var r={d:{f:a,r:function(){throw Error(t(522))},D:a,C:a,L:a,m:a,X:a,S:a,M:a},p:0,findDOMNode:null},u=Symbol.for("react.portal");function s(p,m,v){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:y==null?null:""+y,children:p,containerInfo:m,implementation:v}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(p,m){if(p==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return $t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,$t.createPortal=function(p,m){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(t(299));return s(p,m,null,v)},$t.flushSync=function(p){var m=c.T,v=r.p;try{if(c.T=null,r.p=2,p)return p()}finally{c.T=m,r.p=v,r.d.f()}},$t.preconnect=function(p,m){typeof p=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,r.d.C(p,m))},$t.prefetchDNS=function(p){typeof p=="string"&&r.d.D(p)},$t.preinit=function(p,m){if(typeof p=="string"&&m&&typeof m.as=="string"){var v=m.as,y=d(v,m.crossOrigin),b=typeof m.integrity=="string"?m.integrity:void 0,_=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;v==="style"?r.d.S(p,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:y,integrity:b,fetchPriority:_}):v==="script"&&r.d.X(p,{crossOrigin:y,integrity:b,fetchPriority:_,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},$t.preinitModule=function(p,m){if(typeof p=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var v=d(m.as,m.crossOrigin);r.d.M(p,{crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&r.d.M(p)},$t.preload=function(p,m){if(typeof p=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var v=m.as,y=d(v,m.crossOrigin);r.d.L(p,v,{crossOrigin:y,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},$t.preloadModule=function(p,m){if(typeof p=="string")if(m){var v=d(m.as,m.crossOrigin);r.d.m(p,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else r.d.m(p)},$t.requestFormReset=function(p){r.d.r(p)},$t.unstable_batchedUpdates=function(p,m){return p(m)},$t.useFormState=function(p,m,v){return c.H.useFormState(p,m,v)},$t.useFormStatus=function(){return c.H.useHostTransitionStatus()},$t.version="19.2.5",$t}var Xb;function m1(){if(Xb)return ih.exports;Xb=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),ih.exports=h1(),ih.exports}/**
75
75
  * @license React
76
76
  * react-dom-client.production.js
77
77
  *
@@ -79,15 +79,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
79
79
  *
80
80
  * This source code is licensed under the MIT license found in the
81
81
  * LICENSE file in the root directory of this source tree.
82
- */var Jb;function m1(){if(Jb)return xu;Jb=1;var e=f1(),t=oc(),a=h1();function r(n){var i="https://react.dev/errors/"+n;if(1<arguments.length){i+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)i+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+n+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function s(n){var i=n,l=n;if(n.alternate)for(;i.return;)i=i.return;else{n=i;do i=n,(i.flags&4098)!==0&&(l=i.return),n=i.return;while(n)}return i.tag===3?l:null}function c(n){if(n.tag===13){var i=n.memoizedState;if(i===null&&(n=n.alternate,n!==null&&(i=n.memoizedState)),i!==null)return i.dehydrated}return null}function d(n){if(n.tag===31){var i=n.memoizedState;if(i===null&&(n=n.alternate,n!==null&&(i=n.memoizedState)),i!==null)return i.dehydrated}return null}function p(n){if(s(n)!==n)throw Error(r(188))}function m(n){var i=n.alternate;if(!i){if(i=s(n),i===null)throw Error(r(188));return i!==n?null:n}for(var l=n,o=i;;){var f=l.return;if(f===null)break;var h=f.alternate;if(h===null){if(o=f.return,o!==null){l=o;continue}break}if(f.child===h.child){for(h=f.child;h;){if(h===l)return p(f),n;if(h===o)return p(f),i;h=h.sibling}throw Error(r(188))}if(l.return!==o.return)l=f,o=h;else{for(var g=!1,k=f.child;k;){if(k===l){g=!0,l=f,o=h;break}if(k===o){g=!0,o=f,l=h;break}k=k.sibling}if(!g){for(k=h.child;k;){if(k===l){g=!0,l=h,o=f;break}if(k===o){g=!0,o=h,l=f;break}k=k.sibling}if(!g)throw Error(r(189))}}if(l.alternate!==o)throw Error(r(190))}if(l.tag!==3)throw Error(r(188));return l.stateNode.current===l?n:i}function v(n){var i=n.tag;if(i===5||i===26||i===27||i===6)return n;for(n=n.child;n!==null;){if(i=v(n),i!==null)return i;n=n.sibling}return null}var y=Object.assign,b=Symbol.for("react.element"),_=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),T=Symbol.for("react.fragment"),D=Symbol.for("react.strict_mode"),N=Symbol.for("react.profiler"),w=Symbol.for("react.consumer"),O=Symbol.for("react.context"),M=Symbol.for("react.forward_ref"),z=Symbol.for("react.suspense"),Z=Symbol.for("react.suspense_list"),$=Symbol.for("react.memo"),W=Symbol.for("react.lazy"),se=Symbol.for("react.activity"),Ne=Symbol.for("react.memo_cache_sentinel"),Be=Symbol.iterator;function le(n){return n===null||typeof n!="object"?null:(n=Be&&n[Be]||n["@@iterator"],typeof n=="function"?n:null)}var fe=Symbol.for("react.client.reference");function ee(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===fe?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case T:return"Fragment";case N:return"Profiler";case D:return"StrictMode";case z:return"Suspense";case Z:return"SuspenseList";case se:return"Activity"}if(typeof n=="object")switch(n.$$typeof){case E:return"Portal";case O:return n.displayName||"Context";case w:return(n._context.displayName||"Context")+".Consumer";case M:var i=n.render;return n=n.displayName,n||(n=i.displayName||i.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case $:return i=n.displayName||null,i!==null?i:ee(n.type)||"Memo";case W:i=n._payload,n=n._init;try{return ee(n(i))}catch{}}return null}var ce=Array.isArray,U=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ie={pending:!1,data:null,method:null,action:null},me=[],ve=-1;function A(n){return{current:n}}function G(n){0>ve||(n.current=me[ve],me[ve]=null,ve--)}function ae(n,i){ve++,me[ve]=n.current,n.current=i}var oe=A(null),ge=A(null),_e=A(null),qe=A(null);function kt(n,i){switch(ae(_e,i),ae(ge,n),ae(oe,null),i.nodeType){case 9:case 11:n=(n=i.documentElement)&&(n=n.namespaceURI)?cg(n):0;break;default:if(n=i.tagName,i=i.namespaceURI)i=cg(i),n=fg(i,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}G(oe),ae(oe,n)}function ct(){G(oe),G(ge),G(_e)}function sa(n){n.memoizedState!==null&&ae(qe,n);var i=oe.current,l=fg(i,n.type);i!==l&&(ae(ge,n),ae(oe,l))}function Oi(n){ge.current===n&&(G(oe),G(ge)),qe.current===n&&(G(qe),_u._currentValue=ie)}var wi,lr;function ca(n){if(wi===void 0)try{throw Error()}catch(l){var i=l.stack.trim().match(/\n( *(at )?)/);wi=i&&i[1]||"",lr=-1<l.stack.indexOf(`
82
+ */var Jb;function p1(){if(Jb)return xu;Jb=1;var e=d1(),t=oc(),a=m1();function r(n){var i="https://react.dev/errors/"+n;if(1<arguments.length){i+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)i+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+n+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function s(n){var i=n,l=n;if(n.alternate)for(;i.return;)i=i.return;else{n=i;do i=n,(i.flags&4098)!==0&&(l=i.return),n=i.return;while(n)}return i.tag===3?l:null}function c(n){if(n.tag===13){var i=n.memoizedState;if(i===null&&(n=n.alternate,n!==null&&(i=n.memoizedState)),i!==null)return i.dehydrated}return null}function d(n){if(n.tag===31){var i=n.memoizedState;if(i===null&&(n=n.alternate,n!==null&&(i=n.memoizedState)),i!==null)return i.dehydrated}return null}function p(n){if(s(n)!==n)throw Error(r(188))}function m(n){var i=n.alternate;if(!i){if(i=s(n),i===null)throw Error(r(188));return i!==n?null:n}for(var l=n,o=i;;){var f=l.return;if(f===null)break;var h=f.alternate;if(h===null){if(o=f.return,o!==null){l=o;continue}break}if(f.child===h.child){for(h=f.child;h;){if(h===l)return p(f),n;if(h===o)return p(f),i;h=h.sibling}throw Error(r(188))}if(l.return!==o.return)l=f,o=h;else{for(var g=!1,k=f.child;k;){if(k===l){g=!0,l=f,o=h;break}if(k===o){g=!0,o=f,l=h;break}k=k.sibling}if(!g){for(k=h.child;k;){if(k===l){g=!0,l=h,o=f;break}if(k===o){g=!0,o=h,l=f;break}k=k.sibling}if(!g)throw Error(r(189))}}if(l.alternate!==o)throw Error(r(190))}if(l.tag!==3)throw Error(r(188));return l.stateNode.current===l?n:i}function v(n){var i=n.tag;if(i===5||i===26||i===27||i===6)return n;for(n=n.child;n!==null;){if(i=v(n),i!==null)return i;n=n.sibling}return null}var y=Object.assign,b=Symbol.for("react.element"),_=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),T=Symbol.for("react.fragment"),D=Symbol.for("react.strict_mode"),N=Symbol.for("react.profiler"),w=Symbol.for("react.consumer"),O=Symbol.for("react.context"),M=Symbol.for("react.forward_ref"),z=Symbol.for("react.suspense"),Z=Symbol.for("react.suspense_list"),$=Symbol.for("react.memo"),W=Symbol.for("react.lazy"),se=Symbol.for("react.activity"),Ne=Symbol.for("react.memo_cache_sentinel"),Be=Symbol.iterator;function le(n){return n===null||typeof n!="object"?null:(n=Be&&n[Be]||n["@@iterator"],typeof n=="function"?n:null)}var fe=Symbol.for("react.client.reference");function ee(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===fe?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case T:return"Fragment";case N:return"Profiler";case D:return"StrictMode";case z:return"Suspense";case Z:return"SuspenseList";case se:return"Activity"}if(typeof n=="object")switch(n.$$typeof){case E:return"Portal";case O:return n.displayName||"Context";case w:return(n._context.displayName||"Context")+".Consumer";case M:var i=n.render;return n=n.displayName,n||(n=i.displayName||i.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case $:return i=n.displayName||null,i!==null?i:ee(n.type)||"Memo";case W:i=n._payload,n=n._init;try{return ee(n(i))}catch{}}return null}var ce=Array.isArray,U=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ie={pending:!1,data:null,method:null,action:null},me=[],ve=-1;function A(n){return{current:n}}function G(n){0>ve||(n.current=me[ve],me[ve]=null,ve--)}function ae(n,i){ve++,me[ve]=n.current,n.current=i}var oe=A(null),ge=A(null),_e=A(null),qe=A(null);function kt(n,i){switch(ae(_e,i),ae(ge,n),ae(oe,null),i.nodeType){case 9:case 11:n=(n=i.documentElement)&&(n=n.namespaceURI)?cg(n):0;break;default:if(n=i.tagName,i=i.namespaceURI)i=cg(i),n=fg(i,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}G(oe),ae(oe,n)}function ct(){G(oe),G(ge),G(_e)}function sa(n){n.memoizedState!==null&&ae(qe,n);var i=oe.current,l=fg(i,n.type);i!==l&&(ae(ge,n),ae(oe,l))}function Oi(n){ge.current===n&&(G(oe),G(ge)),qe.current===n&&(G(qe),_u._currentValue=ie)}var wi,lr;function ca(n){if(wi===void 0)try{throw Error()}catch(l){var i=l.stack.trim().match(/\n( *(at )?)/);wi=i&&i[1]||"",lr=-1<l.stack.indexOf(`
83
83
  at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
84
84
  `+wi+n+lr}var ur=!1;function Dl(n,i){if(!n||ur)return"";ur=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var o={DetermineComponentFrameRoot:function(){try{if(i){var K=function(){throw Error()};if(Object.defineProperty(K.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(K,[])}catch(H){var B=H}Reflect.construct(n,[],K)}else{try{K.call()}catch(H){B=H}n.call(K.prototype)}}else{try{throw Error()}catch(H){B=H}(K=n())&&typeof K.catch=="function"&&K.catch(function(){})}}catch(H){if(H&&B&&typeof H.stack=="string")return[H.stack,B.stack]}return[null,null]}};o.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var f=Object.getOwnPropertyDescriptor(o.DetermineComponentFrameRoot,"name");f&&f.configurable&&Object.defineProperty(o.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var h=o.DetermineComponentFrameRoot(),g=h[0],k=h[1];if(g&&k){var x=g.split(`
85
85
  `),Q=k.split(`
86
86
  `);for(f=o=0;o<x.length&&!x[o].includes("DetermineComponentFrameRoot");)o++;for(;f<Q.length&&!Q[f].includes("DetermineComponentFrameRoot");)f++;if(o===x.length||f===Q.length)for(o=x.length-1,f=Q.length-1;1<=o&&0<=f&&x[o]!==Q[f];)f--;for(;1<=o&&0<=f;o--,f--)if(x[o]!==Q[f]){if(o!==1||f!==1)do if(o--,f--,0>f||x[o]!==Q[f]){var Y=`
87
87
  `+x[o].replace(" at new "," at ");return n.displayName&&Y.includes("<anonymous>")&&(Y=Y.replace("<anonymous>",n.displayName)),Y}while(1<=o&&0<=f);break}}}finally{ur=!1,Error.prepareStackTrace=l}return(l=n?n.displayName||n.name:"")?ca(l):""}function ao(n,i){switch(n.tag){case 26:case 27:case 5:return ca(n.type);case 16:return ca("Lazy");case 13:return n.child!==i&&i!==null?ca("Suspense Fallback"):ca("Suspense");case 19:return ca("SuspenseList");case 0:case 15:return Dl(n.type,!1);case 11:return Dl(n.type.render,!1);case 1:return Dl(n.type,!0);case 31:return ca("Activity");default:return""}}function xl(n){try{var i="",l=null;do i+=ao(n,l),l=n,n=n.return;while(n);return i}catch(o){return`
88
88
  Error generating stack: `+o.message+`
89
- `+o.stack}}var Rl=Object.prototype.hasOwnProperty,Al=e.unstable_scheduleCallback,io=e.unstable_cancelCallback,ro=e.unstable_shouldYield,R=e.unstable_requestPaint,L=e.unstable_now,I=e.unstable_getCurrentPriorityLevel,ue=e.unstable_ImmediatePriority,re=e.unstable_UserBlockingPriority,te=e.unstable_NormalPriority,he=e.unstable_LowPriority,we=e.unstable_IdlePriority,Le=e.log,Ft=e.unstable_setDisableYieldValue,Ht=null,Xe=null;function Kn(n){if(typeof Le=="function"&&Ft(n),Xe&&typeof Xe.setStrictMode=="function")try{Xe.setStrictMode(Ht,n)}catch{}}var Vt=Math.clz32?Math.clz32:lo,zl=Math.log,Sc=Math.LN2;function lo(n){return n>>>=0,n===0?32:31-(zl(n)/Sc|0)|0}var or=256,Di=262144,uo=4194304;function xi(n){var i=n&42;if(i!==0)return i;switch(n&-n){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return n&261888;case 262144:case 524288:case 1048576:case 2097152:return n&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return n}}function oo(n,i,l){var o=n.pendingLanes;if(o===0)return 0;var f=0,h=n.suspendedLanes,g=n.pingedLanes;n=n.warmLanes;var k=o&134217727;return k!==0?(o=k&~h,o!==0?f=xi(o):(g&=k,g!==0?f=xi(g):l||(l=k&~n,l!==0&&(f=xi(l))))):(k=o&~h,k!==0?f=xi(k):g!==0?f=xi(g):l||(l=o&~n,l!==0&&(f=xi(l)))),f===0?0:i!==0&&i!==f&&(i&h)===0&&(h=f&-f,l=i&-i,h>=l||h===32&&(l&4194048)!==0)?i:f}function Cl(n,i){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&i)===0}function Tk(n,i){switch(n){case 1:case 2:case 4:case 8:case 64:return i+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Hm(){var n=uo;return uo<<=1,(uo&62914560)===0&&(uo=4194304),n}function kc(n){for(var i=[],l=0;31>l;l++)i.push(n);return i}function jl(n,i){n.pendingLanes|=i,i!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function Ok(n,i,l,o,f,h){var g=n.pendingLanes;n.pendingLanes=l,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=l,n.entangledLanes&=l,n.errorRecoveryDisabledLanes&=l,n.shellSuspendCounter=0;var k=n.entanglements,x=n.expirationTimes,Q=n.hiddenUpdates;for(l=g&~l;0<l;){var Y=31-Vt(l),K=1<<Y;k[Y]=0,x[Y]=-1;var B=Q[Y];if(B!==null)for(Q[Y]=null,Y=0;Y<B.length;Y++){var H=B[Y];H!==null&&(H.lane&=-536870913)}l&=~K}o!==0&&$m(n,o,0),h!==0&&f===0&&n.tag!==0&&(n.suspendedLanes|=h&~(g&~i))}function $m(n,i,l){n.pendingLanes|=i,n.suspendedLanes&=~i;var o=31-Vt(i);n.entangledLanes|=i,n.entanglements[o]=n.entanglements[o]|1073741824|l&261930}function Gm(n,i){var l=n.entangledLanes|=i;for(n=n.entanglements;l;){var o=31-Vt(l),f=1<<o;f&i|n[o]&i&&(n[o]|=i),l&=~f}}function Ym(n,i){var l=i&-i;return l=(l&42)!==0?1:Ec(l),(l&(n.suspendedLanes|i))!==0?0:l}function Ec(n){switch(n){case 2:n=1;break;case 8:n=4;break;case 32:n=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:n=128;break;case 268435456:n=134217728;break;default:n=0}return n}function Nc(n){return n&=-n,2<n?8<n?(n&134217727)!==0?32:268435456:8:2}function Pm(){var n=P.p;return n!==0?n:(n=window.event,n===void 0?32:jg(n.type))}function Xm(n,i){var l=P.p;try{return P.p=n,i()}finally{P.p=l}}var La=Math.random().toString(36).slice(2),Ut="__reactFiber$"+La,en="__reactProps$"+La,sr="__reactContainer$"+La,Tc="__reactEvents$"+La,wk="__reactListeners$"+La,Dk="__reactHandles$"+La,Jm="__reactResources$"+La,Ml="__reactMarker$"+La;function Oc(n){delete n[Ut],delete n[en],delete n[Tc],delete n[wk],delete n[Dk]}function cr(n){var i=n[Ut];if(i)return i;for(var l=n.parentNode;l;){if(i=l[sr]||l[Ut]){if(l=i.alternate,i.child!==null||l!==null&&l.child!==null)for(n=gg(n);n!==null;){if(l=n[Ut])return l;n=gg(n)}return i}n=l,l=n.parentNode}return null}function fr(n){if(n=n[Ut]||n[sr]){var i=n.tag;if(i===5||i===6||i===13||i===31||i===26||i===27||i===3)return n}return null}function Fl(n){var i=n.tag;if(i===5||i===26||i===27||i===6)return n.stateNode;throw Error(r(33))}function dr(n){var i=n[Jm];return i||(i=n[Jm]={hoistableStyles:new Map,hoistableScripts:new Map}),i}function zt(n){n[Ml]=!0}var Km=new Set,Wm={};function Ri(n,i){hr(n,i),hr(n+"Capture",i)}function hr(n,i){for(Wm[n]=i,n=0;n<i.length;n++)Km.add(i[n])}var xk=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),ep={},tp={};function Rk(n){return Rl.call(tp,n)?!0:Rl.call(ep,n)?!1:xk.test(n)?tp[n]=!0:(ep[n]=!0,!1)}function so(n,i,l){if(Rk(i))if(l===null)n.removeAttribute(i);else{switch(typeof l){case"undefined":case"function":case"symbol":n.removeAttribute(i);return;case"boolean":var o=i.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){n.removeAttribute(i);return}}n.setAttribute(i,""+l)}}function co(n,i,l){if(l===null)n.removeAttribute(i);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(i);return}n.setAttribute(i,""+l)}}function fa(n,i,l,o){if(o===null)n.removeAttribute(l);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(l);return}n.setAttributeNS(i,l,""+o)}}function Nn(n){switch(typeof n){case"bigint":case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function np(n){var i=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function Ak(n,i,l){var o=Object.getOwnPropertyDescriptor(n.constructor.prototype,i);if(!n.hasOwnProperty(i)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var f=o.get,h=o.set;return Object.defineProperty(n,i,{configurable:!0,get:function(){return f.call(this)},set:function(g){l=""+g,h.call(this,g)}}),Object.defineProperty(n,i,{enumerable:o.enumerable}),{getValue:function(){return l},setValue:function(g){l=""+g},stopTracking:function(){n._valueTracker=null,delete n[i]}}}}function wc(n){if(!n._valueTracker){var i=np(n)?"checked":"value";n._valueTracker=Ak(n,i,""+n[i])}}function ap(n){if(!n)return!1;var i=n._valueTracker;if(!i)return!0;var l=i.getValue(),o="";return n&&(o=np(n)?n.checked?"true":"false":n.value),n=o,n!==l?(i.setValue(n),!0):!1}function fo(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}var zk=/[\n"\\]/g;function Tn(n){return n.replace(zk,function(i){return"\\"+i.charCodeAt(0).toString(16)+" "})}function Dc(n,i,l,o,f,h,g,k){n.name="",g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?n.type=g:n.removeAttribute("type"),i!=null?g==="number"?(i===0&&n.value===""||n.value!=i)&&(n.value=""+Nn(i)):n.value!==""+Nn(i)&&(n.value=""+Nn(i)):g!=="submit"&&g!=="reset"||n.removeAttribute("value"),i!=null?xc(n,g,Nn(i)):l!=null?xc(n,g,Nn(l)):o!=null&&n.removeAttribute("value"),f==null&&h!=null&&(n.defaultChecked=!!h),f!=null&&(n.checked=f&&typeof f!="function"&&typeof f!="symbol"),k!=null&&typeof k!="function"&&typeof k!="symbol"&&typeof k!="boolean"?n.name=""+Nn(k):n.removeAttribute("name")}function ip(n,i,l,o,f,h,g,k){if(h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(n.type=h),i!=null||l!=null){if(!(h!=="submit"&&h!=="reset"||i!=null)){wc(n);return}l=l!=null?""+Nn(l):"",i=i!=null?""+Nn(i):l,k||i===n.value||(n.value=i),n.defaultValue=i}o=o??f,o=typeof o!="function"&&typeof o!="symbol"&&!!o,n.checked=k?n.checked:!!o,n.defaultChecked=!!o,g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(n.name=g),wc(n)}function xc(n,i,l){i==="number"&&fo(n.ownerDocument)===n||n.defaultValue===""+l||(n.defaultValue=""+l)}function mr(n,i,l,o){if(n=n.options,i){i={};for(var f=0;f<l.length;f++)i["$"+l[f]]=!0;for(l=0;l<n.length;l++)f=i.hasOwnProperty("$"+n[l].value),n[l].selected!==f&&(n[l].selected=f),f&&o&&(n[l].defaultSelected=!0)}else{for(l=""+Nn(l),i=null,f=0;f<n.length;f++){if(n[f].value===l){n[f].selected=!0,o&&(n[f].defaultSelected=!0);return}i!==null||n[f].disabled||(i=n[f])}i!==null&&(i.selected=!0)}}function rp(n,i,l){if(i!=null&&(i=""+Nn(i),i!==n.value&&(n.value=i),l==null)){n.defaultValue!==i&&(n.defaultValue=i);return}n.defaultValue=l!=null?""+Nn(l):""}function lp(n,i,l,o){if(i==null){if(o!=null){if(l!=null)throw Error(r(92));if(ce(o)){if(1<o.length)throw Error(r(93));o=o[0]}l=o}l==null&&(l=""),i=l}l=Nn(i),n.defaultValue=l,o=n.textContent,o===l&&o!==""&&o!==null&&(n.value=o),wc(n)}function pr(n,i){if(i){var l=n.firstChild;if(l&&l===n.lastChild&&l.nodeType===3){l.nodeValue=i;return}}n.textContent=i}var Ck=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function up(n,i,l){var o=i.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?o?n.setProperty(i,""):i==="float"?n.cssFloat="":n[i]="":o?n.setProperty(i,l):typeof l!="number"||l===0||Ck.has(i)?i==="float"?n.cssFloat=l:n[i]=(""+l).trim():n[i]=l+"px"}function op(n,i,l){if(i!=null&&typeof i!="object")throw Error(r(62));if(n=n.style,l!=null){for(var o in l)!l.hasOwnProperty(o)||i!=null&&i.hasOwnProperty(o)||(o.indexOf("--")===0?n.setProperty(o,""):o==="float"?n.cssFloat="":n[o]="");for(var f in i)o=i[f],i.hasOwnProperty(f)&&l[f]!==o&&up(n,f,o)}else for(var h in i)i.hasOwnProperty(h)&&up(n,h,i[h])}function Rc(n){if(n.indexOf("-")===-1)return!1;switch(n){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var jk=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Mk=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function ho(n){return Mk.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}function da(){}var Ac=null;function zc(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var vr=null,yr=null;function sp(n){var i=fr(n);if(i&&(n=i.stateNode)){var l=n[en]||null;e:switch(n=i.stateNode,i.type){case"input":if(Dc(n,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),i=l.name,l.type==="radio"&&i!=null){for(l=n;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Tn(""+i)+'"][type="radio"]'),i=0;i<l.length;i++){var o=l[i];if(o!==n&&o.form===n.form){var f=o[en]||null;if(!f)throw Error(r(90));Dc(o,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name)}}for(i=0;i<l.length;i++)o=l[i],o.form===n.form&&ap(o)}break e;case"textarea":rp(n,l.value,l.defaultValue);break e;case"select":i=l.value,i!=null&&mr(n,!!l.multiple,i,!1)}}}var Cc=!1;function cp(n,i,l){if(Cc)return n(i,l);Cc=!0;try{var o=n(i);return o}finally{if(Cc=!1,(vr!==null||yr!==null)&&(es(),vr&&(i=vr,n=yr,yr=vr=null,sp(i),n)))for(i=0;i<n.length;i++)sp(n[i])}}function Vl(n,i){var l=n.stateNode;if(l===null)return null;var o=l[en]||null;if(o===null)return null;l=o[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(n=n.type,o=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!o;break e;default:n=!1}if(n)return null;if(l&&typeof l!="function")throw Error(r(231,i,typeof l));return l}var ha=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),jc=!1;if(ha)try{var Ul={};Object.defineProperty(Ul,"passive",{get:function(){jc=!0}}),window.addEventListener("test",Ul,Ul),window.removeEventListener("test",Ul,Ul)}catch{jc=!1}var qa=null,Mc=null,mo=null;function fp(){if(mo)return mo;var n,i=Mc,l=i.length,o,f="value"in qa?qa.value:qa.textContent,h=f.length;for(n=0;n<l&&i[n]===f[n];n++);var g=l-n;for(o=1;o<=g&&i[l-o]===f[h-o];o++);return mo=f.slice(n,1<o?1-o:void 0)}function po(n){var i=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&i===13&&(n=13)):n=i,n===10&&(n=13),32<=n||n===13?n:0}function vo(){return!0}function dp(){return!1}function tn(n){function i(l,o,f,h,g){this._reactName=l,this._targetInst=f,this.type=o,this.nativeEvent=h,this.target=g,this.currentTarget=null;for(var k in n)n.hasOwnProperty(k)&&(l=n[k],this[k]=l?l(h):h[k]);return this.isDefaultPrevented=(h.defaultPrevented!=null?h.defaultPrevented:h.returnValue===!1)?vo:dp,this.isPropagationStopped=dp,this}return y(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=vo)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=vo)},persist:function(){},isPersistent:vo}),i}var Ai={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},yo=tn(Ai),Ll=y({},Ai,{view:0,detail:0}),Fk=tn(Ll),Fc,Vc,ql,go=y({},Ll,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Lc,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==ql&&(ql&&n.type==="mousemove"?(Fc=n.screenX-ql.screenX,Vc=n.screenY-ql.screenY):Vc=Fc=0,ql=n),Fc)},movementY:function(n){return"movementY"in n?n.movementY:Vc}}),hp=tn(go),Vk=y({},go,{dataTransfer:0}),Uk=tn(Vk),Lk=y({},Ll,{relatedTarget:0}),Uc=tn(Lk),qk=y({},Ai,{animationName:0,elapsedTime:0,pseudoElement:0}),Qk=tn(qk),Bk=y({},Ai,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),Ik=tn(Bk),Zk=y({},Ai,{data:0}),mp=tn(Zk),Hk={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},$k={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Gk={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Yk(n){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(n):(n=Gk[n])?!!i[n]:!1}function Lc(){return Yk}var Pk=y({},Ll,{key:function(n){if(n.key){var i=Hk[n.key]||n.key;if(i!=="Unidentified")return i}return n.type==="keypress"?(n=po(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?$k[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Lc,charCode:function(n){return n.type==="keypress"?po(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?po(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),Xk=tn(Pk),Jk=y({},go,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),pp=tn(Jk),Kk=y({},Ll,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Lc}),Wk=tn(Kk),eE=y({},Ai,{propertyName:0,elapsedTime:0,pseudoElement:0}),tE=tn(eE),nE=y({},go,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),aE=tn(nE),iE=y({},Ai,{newState:0,oldState:0}),rE=tn(iE),lE=[9,13,27,32],qc=ha&&"CompositionEvent"in window,Ql=null;ha&&"documentMode"in document&&(Ql=document.documentMode);var uE=ha&&"TextEvent"in window&&!Ql,vp=ha&&(!qc||Ql&&8<Ql&&11>=Ql),yp=" ",gp=!1;function bp(n,i){switch(n){case"keyup":return lE.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function _p(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var gr=!1;function oE(n,i){switch(n){case"compositionend":return _p(i);case"keypress":return i.which!==32?null:(gp=!0,yp);case"textInput":return n=i.data,n===yp&&gp?null:n;default:return null}}function sE(n,i){if(gr)return n==="compositionend"||!qc&&bp(n,i)?(n=fp(),mo=Mc=qa=null,gr=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return vp&&i.locale!=="ko"?null:i.data;default:return null}}var cE={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Sp(n){var i=n&&n.nodeName&&n.nodeName.toLowerCase();return i==="input"?!!cE[n.type]:i==="textarea"}function kp(n,i,l,o){vr?yr?yr.push(o):yr=[o]:vr=o,i=us(i,"onChange"),0<i.length&&(l=new yo("onChange","change",null,l,o),n.push({event:l,listeners:i}))}var Bl=null,Il=null;function fE(n){ig(n,0)}function bo(n){var i=Fl(n);if(ap(i))return n}function Ep(n,i){if(n==="change")return i}var Np=!1;if(ha){var Qc;if(ha){var Bc="oninput"in document;if(!Bc){var Tp=document.createElement("div");Tp.setAttribute("oninput","return;"),Bc=typeof Tp.oninput=="function"}Qc=Bc}else Qc=!1;Np=Qc&&(!document.documentMode||9<document.documentMode)}function Op(){Bl&&(Bl.detachEvent("onpropertychange",wp),Il=Bl=null)}function wp(n){if(n.propertyName==="value"&&bo(Il)){var i=[];kp(i,Il,n,zc(n)),cp(fE,i)}}function dE(n,i,l){n==="focusin"?(Op(),Bl=i,Il=l,Bl.attachEvent("onpropertychange",wp)):n==="focusout"&&Op()}function hE(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return bo(Il)}function mE(n,i){if(n==="click")return bo(i)}function pE(n,i){if(n==="input"||n==="change")return bo(i)}function vE(n,i){return n===i&&(n!==0||1/n===1/i)||n!==n&&i!==i}var hn=typeof Object.is=="function"?Object.is:vE;function Zl(n,i){if(hn(n,i))return!0;if(typeof n!="object"||n===null||typeof i!="object"||i===null)return!1;var l=Object.keys(n),o=Object.keys(i);if(l.length!==o.length)return!1;for(o=0;o<l.length;o++){var f=l[o];if(!Rl.call(i,f)||!hn(n[f],i[f]))return!1}return!0}function Dp(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function xp(n,i){var l=Dp(n);n=0;for(var o;l;){if(l.nodeType===3){if(o=n+l.textContent.length,n<=i&&o>=i)return{node:l,offset:i-n};n=o}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Dp(l)}}function Rp(n,i){return n&&i?n===i?!0:n&&n.nodeType===3?!1:i&&i.nodeType===3?Rp(n,i.parentNode):"contains"in n?n.contains(i):n.compareDocumentPosition?!!(n.compareDocumentPosition(i)&16):!1:!1}function Ap(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var i=fo(n.document);i instanceof n.HTMLIFrameElement;){try{var l=typeof i.contentWindow.location.href=="string"}catch{l=!1}if(l)n=i.contentWindow;else break;i=fo(n.document)}return i}function Ic(n){var i=n&&n.nodeName&&n.nodeName.toLowerCase();return i&&(i==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||i==="textarea"||n.contentEditable==="true")}var yE=ha&&"documentMode"in document&&11>=document.documentMode,br=null,Zc=null,Hl=null,Hc=!1;function zp(n,i,l){var o=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Hc||br==null||br!==fo(o)||(o=br,"selectionStart"in o&&Ic(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Hl&&Zl(Hl,o)||(Hl=o,o=us(Zc,"onSelect"),0<o.length&&(i=new yo("onSelect","select",null,i,l),n.push({event:i,listeners:o}),i.target=br)))}function zi(n,i){var l={};return l[n.toLowerCase()]=i.toLowerCase(),l["Webkit"+n]="webkit"+i,l["Moz"+n]="moz"+i,l}var _r={animationend:zi("Animation","AnimationEnd"),animationiteration:zi("Animation","AnimationIteration"),animationstart:zi("Animation","AnimationStart"),transitionrun:zi("Transition","TransitionRun"),transitionstart:zi("Transition","TransitionStart"),transitioncancel:zi("Transition","TransitionCancel"),transitionend:zi("Transition","TransitionEnd")},$c={},Cp={};ha&&(Cp=document.createElement("div").style,"AnimationEvent"in window||(delete _r.animationend.animation,delete _r.animationiteration.animation,delete _r.animationstart.animation),"TransitionEvent"in window||delete _r.transitionend.transition);function Ci(n){if($c[n])return $c[n];if(!_r[n])return n;var i=_r[n],l;for(l in i)if(i.hasOwnProperty(l)&&l in Cp)return $c[n]=i[l];return n}var jp=Ci("animationend"),Mp=Ci("animationiteration"),Fp=Ci("animationstart"),gE=Ci("transitionrun"),bE=Ci("transitionstart"),_E=Ci("transitioncancel"),Vp=Ci("transitionend"),Up=new Map,Gc="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Gc.push("scrollEnd");function Un(n,i){Up.set(n,i),Ri(i,[n])}var _o=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var i=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(i))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)},On=[],Sr=0,Yc=0;function So(){for(var n=Sr,i=Yc=Sr=0;i<n;){var l=On[i];On[i++]=null;var o=On[i];On[i++]=null;var f=On[i];On[i++]=null;var h=On[i];if(On[i++]=null,o!==null&&f!==null){var g=o.pending;g===null?f.next=f:(f.next=g.next,g.next=f),o.pending=f}h!==0&&Lp(l,f,h)}}function ko(n,i,l,o){On[Sr++]=n,On[Sr++]=i,On[Sr++]=l,On[Sr++]=o,Yc|=o,n.lanes|=o,n=n.alternate,n!==null&&(n.lanes|=o)}function Pc(n,i,l,o){return ko(n,i,l,o),Eo(n)}function ji(n,i){return ko(n,null,null,i),Eo(n)}function Lp(n,i,l){n.lanes|=l;var o=n.alternate;o!==null&&(o.lanes|=l);for(var f=!1,h=n.return;h!==null;)h.childLanes|=l,o=h.alternate,o!==null&&(o.childLanes|=l),h.tag===22&&(n=h.stateNode,n===null||n._visibility&1||(f=!0)),n=h,h=h.return;return n.tag===3?(h=n.stateNode,f&&i!==null&&(f=31-Vt(l),n=h.hiddenUpdates,o=n[f],o===null?n[f]=[i]:o.push(i),i.lane=l|536870912),h):null}function Eo(n){if(50<hu)throw hu=0,rd=null,Error(r(185));for(var i=n.return;i!==null;)n=i,i=n.return;return n.tag===3?n.stateNode:null}var kr={};function SE(n,i,l,o){this.tag=n,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function mn(n,i,l,o){return new SE(n,i,l,o)}function Xc(n){return n=n.prototype,!(!n||!n.isReactComponent)}function ma(n,i){var l=n.alternate;return l===null?(l=mn(n.tag,i,n.key,n.mode),l.elementType=n.elementType,l.type=n.type,l.stateNode=n.stateNode,l.alternate=n,n.alternate=l):(l.pendingProps=i,l.type=n.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=n.flags&65011712,l.childLanes=n.childLanes,l.lanes=n.lanes,l.child=n.child,l.memoizedProps=n.memoizedProps,l.memoizedState=n.memoizedState,l.updateQueue=n.updateQueue,i=n.dependencies,l.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},l.sibling=n.sibling,l.index=n.index,l.ref=n.ref,l.refCleanup=n.refCleanup,l}function qp(n,i){n.flags&=65011714;var l=n.alternate;return l===null?(n.childLanes=0,n.lanes=i,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=l.childLanes,n.lanes=l.lanes,n.child=l.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=l.memoizedProps,n.memoizedState=l.memoizedState,n.updateQueue=l.updateQueue,n.type=l.type,i=l.dependencies,n.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),n}function No(n,i,l,o,f,h){var g=0;if(o=n,typeof n=="function")Xc(n)&&(g=1);else if(typeof n=="string")g=ON(n,l,oe.current)?26:n==="html"||n==="head"||n==="body"?27:5;else e:switch(n){case se:return n=mn(31,l,i,f),n.elementType=se,n.lanes=h,n;case T:return Mi(l.children,f,h,i);case D:g=8,f|=24;break;case N:return n=mn(12,l,i,f|2),n.elementType=N,n.lanes=h,n;case z:return n=mn(13,l,i,f),n.elementType=z,n.lanes=h,n;case Z:return n=mn(19,l,i,f),n.elementType=Z,n.lanes=h,n;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case O:g=10;break e;case w:g=9;break e;case M:g=11;break e;case $:g=14;break e;case W:g=16,o=null;break e}g=29,l=Error(r(130,n===null?"null":typeof n,"")),o=null}return i=mn(g,l,i,f),i.elementType=n,i.type=o,i.lanes=h,i}function Mi(n,i,l,o){return n=mn(7,n,o,i),n.lanes=l,n}function Jc(n,i,l){return n=mn(6,n,null,i),n.lanes=l,n}function Qp(n){var i=mn(18,null,null,0);return i.stateNode=n,i}function Kc(n,i,l){return i=mn(4,n.children!==null?n.children:[],n.key,i),i.lanes=l,i.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},i}var Bp=new WeakMap;function wn(n,i){if(typeof n=="object"&&n!==null){var l=Bp.get(n);return l!==void 0?l:(i={value:n,source:i,stack:xl(i)},Bp.set(n,i),i)}return{value:n,source:i,stack:xl(i)}}var Er=[],Nr=0,To=null,$l=0,Dn=[],xn=0,Qa=null,Wn=1,ea="";function pa(n,i){Er[Nr++]=$l,Er[Nr++]=To,To=n,$l=i}function Ip(n,i,l){Dn[xn++]=Wn,Dn[xn++]=ea,Dn[xn++]=Qa,Qa=n;var o=Wn;n=ea;var f=32-Vt(o)-1;o&=~(1<<f),l+=1;var h=32-Vt(i)+f;if(30<h){var g=f-f%5;h=(o&(1<<g)-1).toString(32),o>>=g,f-=g,Wn=1<<32-Vt(i)+f|l<<f|o,ea=h+n}else Wn=1<<h|l<<f|o,ea=n}function Wc(n){n.return!==null&&(pa(n,1),Ip(n,1,0))}function ef(n){for(;n===To;)To=Er[--Nr],Er[Nr]=null,$l=Er[--Nr],Er[Nr]=null;for(;n===Qa;)Qa=Dn[--xn],Dn[xn]=null,ea=Dn[--xn],Dn[xn]=null,Wn=Dn[--xn],Dn[xn]=null}function Zp(n,i){Dn[xn++]=Wn,Dn[xn++]=ea,Dn[xn++]=Qa,Wn=i.id,ea=i.overflow,Qa=n}var Lt=null,at=null,Ve=!1,Ba=null,Rn=!1,tf=Error(r(519));function Ia(n){var i=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Gl(wn(i,n)),tf}function Hp(n){var i=n.stateNode,l=n.type,o=n.memoizedProps;switch(i[Ut]=n,i[en]=o,l){case"dialog":Ce("cancel",i),Ce("close",i);break;case"iframe":case"object":case"embed":Ce("load",i);break;case"video":case"audio":for(l=0;l<pu.length;l++)Ce(pu[l],i);break;case"source":Ce("error",i);break;case"img":case"image":case"link":Ce("error",i),Ce("load",i);break;case"details":Ce("toggle",i);break;case"input":Ce("invalid",i),ip(i,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0);break;case"select":Ce("invalid",i);break;case"textarea":Ce("invalid",i),lp(i,o.value,o.defaultValue,o.children)}l=o.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||i.textContent===""+l||o.suppressHydrationWarning===!0||og(i.textContent,l)?(o.popover!=null&&(Ce("beforetoggle",i),Ce("toggle",i)),o.onScroll!=null&&Ce("scroll",i),o.onScrollEnd!=null&&Ce("scrollend",i),o.onClick!=null&&(i.onclick=da),i=!0):i=!1,i||Ia(n,!0)}function $p(n){for(Lt=n.return;Lt;)switch(Lt.tag){case 5:case 31:case 13:Rn=!1;return;case 27:case 3:Rn=!0;return;default:Lt=Lt.return}}function Tr(n){if(n!==Lt)return!1;if(!Ve)return $p(n),Ve=!0,!1;var i=n.tag,l;if((l=i!==3&&i!==27)&&((l=i===5)&&(l=n.type,l=!(l!=="form"&&l!=="button")||_d(n.type,n.memoizedProps)),l=!l),l&&at&&Ia(n),$p(n),i===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(317));at=yg(n)}else if(i===31){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(317));at=yg(n)}else i===27?(i=at,ai(n.type)?(n=Td,Td=null,at=n):at=i):at=Lt?zn(n.stateNode.nextSibling):null;return!0}function Fi(){at=Lt=null,Ve=!1}function nf(){var n=Ba;return n!==null&&(ln===null?ln=n:ln.push.apply(ln,n),Ba=null),n}function Gl(n){Ba===null?Ba=[n]:Ba.push(n)}var af=A(null),Vi=null,va=null;function Za(n,i,l){ae(af,i._currentValue),i._currentValue=l}function ya(n){n._currentValue=af.current,G(af)}function rf(n,i,l){for(;n!==null;){var o=n.alternate;if((n.childLanes&i)!==i?(n.childLanes|=i,o!==null&&(o.childLanes|=i)):o!==null&&(o.childLanes&i)!==i&&(o.childLanes|=i),n===l)break;n=n.return}}function lf(n,i,l,o){var f=n.child;for(f!==null&&(f.return=n);f!==null;){var h=f.dependencies;if(h!==null){var g=f.child;h=h.firstContext;e:for(;h!==null;){var k=h;h=f;for(var x=0;x<i.length;x++)if(k.context===i[x]){h.lanes|=l,k=h.alternate,k!==null&&(k.lanes|=l),rf(h.return,l,n),o||(g=null);break e}h=k.next}}else if(f.tag===18){if(g=f.return,g===null)throw Error(r(341));g.lanes|=l,h=g.alternate,h!==null&&(h.lanes|=l),rf(g,l,n),g=null}else g=f.child;if(g!==null)g.return=f;else for(g=f;g!==null;){if(g===n){g=null;break}if(f=g.sibling,f!==null){f.return=g.return,g=f;break}g=g.return}f=g}}function Or(n,i,l,o){n=null;for(var f=i,h=!1;f!==null;){if(!h){if((f.flags&524288)!==0)h=!0;else if((f.flags&262144)!==0)break}if(f.tag===10){var g=f.alternate;if(g===null)throw Error(r(387));if(g=g.memoizedProps,g!==null){var k=f.type;hn(f.pendingProps.value,g.value)||(n!==null?n.push(k):n=[k])}}else if(f===qe.current){if(g=f.alternate,g===null)throw Error(r(387));g.memoizedState.memoizedState!==f.memoizedState.memoizedState&&(n!==null?n.push(_u):n=[_u])}f=f.return}n!==null&&lf(i,n,l,o),i.flags|=262144}function Oo(n){for(n=n.firstContext;n!==null;){if(!hn(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}function Ui(n){Vi=n,va=null,n=n.dependencies,n!==null&&(n.firstContext=null)}function qt(n){return Gp(Vi,n)}function wo(n,i){return Vi===null&&Ui(n),Gp(n,i)}function Gp(n,i){var l=i._currentValue;if(i={context:i,memoizedValue:l,next:null},va===null){if(n===null)throw Error(r(308));va=i,n.dependencies={lanes:0,firstContext:i},n.flags|=524288}else va=va.next=i;return l}var kE=typeof AbortController<"u"?AbortController:function(){var n=[],i=this.signal={aborted:!1,addEventListener:function(l,o){n.push(o)}};this.abort=function(){i.aborted=!0,n.forEach(function(l){return l()})}},EE=e.unstable_scheduleCallback,NE=e.unstable_NormalPriority,Et={$$typeof:O,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function uf(){return{controller:new kE,data:new Map,refCount:0}}function Yl(n){n.refCount--,n.refCount===0&&EE(NE,function(){n.controller.abort()})}var Pl=null,of=0,wr=0,Dr=null;function TE(n,i){if(Pl===null){var l=Pl=[];of=0,wr=fd(),Dr={status:"pending",value:void 0,then:function(o){l.push(o)}}}return of++,i.then(Yp,Yp),i}function Yp(){if(--of===0&&Pl!==null){Dr!==null&&(Dr.status="fulfilled");var n=Pl;Pl=null,wr=0,Dr=null;for(var i=0;i<n.length;i++)(0,n[i])()}}function OE(n,i){var l=[],o={status:"pending",value:null,reason:null,then:function(f){l.push(f)}};return n.then(function(){o.status="fulfilled",o.value=i;for(var f=0;f<l.length;f++)(0,l[f])(i)},function(f){for(o.status="rejected",o.reason=f,f=0;f<l.length;f++)(0,l[f])(void 0)}),o}var Pp=U.S;U.S=function(n,i){zy=L(),typeof i=="object"&&i!==null&&typeof i.then=="function"&&TE(n,i),Pp!==null&&Pp(n,i)};var Li=A(null);function sf(){var n=Li.current;return n!==null?n:tt.pooledCache}function Do(n,i){i===null?ae(Li,Li.current):ae(Li,i.pool)}function Xp(){var n=sf();return n===null?null:{parent:Et._currentValue,pool:n}}var xr=Error(r(460)),cf=Error(r(474)),xo=Error(r(542)),Ro={then:function(){}};function Jp(n){return n=n.status,n==="fulfilled"||n==="rejected"}function Kp(n,i,l){switch(l=n[l],l===void 0?n.push(i):l!==i&&(i.then(da,da),i=l),i.status){case"fulfilled":return i.value;case"rejected":throw n=i.reason,ev(n),n;default:if(typeof i.status=="string")i.then(da,da);else{if(n=tt,n!==null&&100<n.shellSuspendCounter)throw Error(r(482));n=i,n.status="pending",n.then(function(o){if(i.status==="pending"){var f=i;f.status="fulfilled",f.value=o}},function(o){if(i.status==="pending"){var f=i;f.status="rejected",f.reason=o}})}switch(i.status){case"fulfilled":return i.value;case"rejected":throw n=i.reason,ev(n),n}throw Qi=i,xr}}function qi(n){try{var i=n._init;return i(n._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Qi=l,xr):l}}var Qi=null;function Wp(){if(Qi===null)throw Error(r(459));var n=Qi;return Qi=null,n}function ev(n){if(n===xr||n===xo)throw Error(r(483))}var Rr=null,Xl=0;function Ao(n){var i=Xl;return Xl+=1,Rr===null&&(Rr=[]),Kp(Rr,n,i)}function Jl(n,i){i=i.props.ref,n.ref=i!==void 0?i:null}function zo(n,i){throw i.$$typeof===b?Error(r(525)):(n=Object.prototype.toString.call(i),Error(r(31,n==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":n)))}function tv(n){function i(V,C){if(n){var q=V.deletions;q===null?(V.deletions=[C],V.flags|=16):q.push(C)}}function l(V,C){if(!n)return null;for(;C!==null;)i(V,C),C=C.sibling;return null}function o(V){for(var C=new Map;V!==null;)V.key!==null?C.set(V.key,V):C.set(V.index,V),V=V.sibling;return C}function f(V,C){return V=ma(V,C),V.index=0,V.sibling=null,V}function h(V,C,q){return V.index=q,n?(q=V.alternate,q!==null?(q=q.index,q<C?(V.flags|=67108866,C):q):(V.flags|=67108866,C)):(V.flags|=1048576,C)}function g(V){return n&&V.alternate===null&&(V.flags|=67108866),V}function k(V,C,q,X){return C===null||C.tag!==6?(C=Jc(q,V.mode,X),C.return=V,C):(C=f(C,q),C.return=V,C)}function x(V,C,q,X){var ke=q.type;return ke===T?Y(V,C,q.props.children,X,q.key):C!==null&&(C.elementType===ke||typeof ke=="object"&&ke!==null&&ke.$$typeof===W&&qi(ke)===C.type)?(C=f(C,q.props),Jl(C,q),C.return=V,C):(C=No(q.type,q.key,q.props,null,V.mode,X),Jl(C,q),C.return=V,C)}function Q(V,C,q,X){return C===null||C.tag!==4||C.stateNode.containerInfo!==q.containerInfo||C.stateNode.implementation!==q.implementation?(C=Kc(q,V.mode,X),C.return=V,C):(C=f(C,q.children||[]),C.return=V,C)}function Y(V,C,q,X,ke){return C===null||C.tag!==7?(C=Mi(q,V.mode,X,ke),C.return=V,C):(C=f(C,q),C.return=V,C)}function K(V,C,q){if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return C=Jc(""+C,V.mode,q),C.return=V,C;if(typeof C=="object"&&C!==null){switch(C.$$typeof){case _:return q=No(C.type,C.key,C.props,null,V.mode,q),Jl(q,C),q.return=V,q;case E:return C=Kc(C,V.mode,q),C.return=V,C;case W:return C=qi(C),K(V,C,q)}if(ce(C)||le(C))return C=Mi(C,V.mode,q,null),C.return=V,C;if(typeof C.then=="function")return K(V,Ao(C),q);if(C.$$typeof===O)return K(V,wo(V,C),q);zo(V,C)}return null}function B(V,C,q,X){var ke=C!==null?C.key:null;if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return ke!==null?null:k(V,C,""+q,X);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case _:return q.key===ke?x(V,C,q,X):null;case E:return q.key===ke?Q(V,C,q,X):null;case W:return q=qi(q),B(V,C,q,X)}if(ce(q)||le(q))return ke!==null?null:Y(V,C,q,X,null);if(typeof q.then=="function")return B(V,C,Ao(q),X);if(q.$$typeof===O)return B(V,C,wo(V,q),X);zo(V,q)}return null}function H(V,C,q,X,ke){if(typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint")return V=V.get(q)||null,k(C,V,""+X,ke);if(typeof X=="object"&&X!==null){switch(X.$$typeof){case _:return V=V.get(X.key===null?q:X.key)||null,x(C,V,X,ke);case E:return V=V.get(X.key===null?q:X.key)||null,Q(C,V,X,ke);case W:return X=qi(X),H(V,C,q,X,ke)}if(ce(X)||le(X))return V=V.get(q)||null,Y(C,V,X,ke,null);if(typeof X.then=="function")return H(V,C,q,Ao(X),ke);if(X.$$typeof===O)return H(V,C,q,wo(C,X),ke);zo(C,X)}return null}function pe(V,C,q,X){for(var ke=null,Ie=null,be=C,xe=C=0,Fe=null;be!==null&&xe<q.length;xe++){be.index>xe?(Fe=be,be=null):Fe=be.sibling;var Ze=B(V,be,q[xe],X);if(Ze===null){be===null&&(be=Fe);break}n&&be&&Ze.alternate===null&&i(V,be),C=h(Ze,C,xe),Ie===null?ke=Ze:Ie.sibling=Ze,Ie=Ze,be=Fe}if(xe===q.length)return l(V,be),Ve&&pa(V,xe),ke;if(be===null){for(;xe<q.length;xe++)be=K(V,q[xe],X),be!==null&&(C=h(be,C,xe),Ie===null?ke=be:Ie.sibling=be,Ie=be);return Ve&&pa(V,xe),ke}for(be=o(be);xe<q.length;xe++)Fe=H(be,V,xe,q[xe],X),Fe!==null&&(n&&Fe.alternate!==null&&be.delete(Fe.key===null?xe:Fe.key),C=h(Fe,C,xe),Ie===null?ke=Fe:Ie.sibling=Fe,Ie=Fe);return n&&be.forEach(function(oi){return i(V,oi)}),Ve&&pa(V,xe),ke}function Ee(V,C,q,X){if(q==null)throw Error(r(151));for(var ke=null,Ie=null,be=C,xe=C=0,Fe=null,Ze=q.next();be!==null&&!Ze.done;xe++,Ze=q.next()){be.index>xe?(Fe=be,be=null):Fe=be.sibling;var oi=B(V,be,Ze.value,X);if(oi===null){be===null&&(be=Fe);break}n&&be&&oi.alternate===null&&i(V,be),C=h(oi,C,xe),Ie===null?ke=oi:Ie.sibling=oi,Ie=oi,be=Fe}if(Ze.done)return l(V,be),Ve&&pa(V,xe),ke;if(be===null){for(;!Ze.done;xe++,Ze=q.next())Ze=K(V,Ze.value,X),Ze!==null&&(C=h(Ze,C,xe),Ie===null?ke=Ze:Ie.sibling=Ze,Ie=Ze);return Ve&&pa(V,xe),ke}for(be=o(be);!Ze.done;xe++,Ze=q.next())Ze=H(be,V,xe,Ze.value,X),Ze!==null&&(n&&Ze.alternate!==null&&be.delete(Ze.key===null?xe:Ze.key),C=h(Ze,C,xe),Ie===null?ke=Ze:Ie.sibling=Ze,Ie=Ze);return n&&be.forEach(function(VN){return i(V,VN)}),Ve&&pa(V,xe),ke}function We(V,C,q,X){if(typeof q=="object"&&q!==null&&q.type===T&&q.key===null&&(q=q.props.children),typeof q=="object"&&q!==null){switch(q.$$typeof){case _:e:{for(var ke=q.key;C!==null;){if(C.key===ke){if(ke=q.type,ke===T){if(C.tag===7){l(V,C.sibling),X=f(C,q.props.children),X.return=V,V=X;break e}}else if(C.elementType===ke||typeof ke=="object"&&ke!==null&&ke.$$typeof===W&&qi(ke)===C.type){l(V,C.sibling),X=f(C,q.props),Jl(X,q),X.return=V,V=X;break e}l(V,C);break}else i(V,C);C=C.sibling}q.type===T?(X=Mi(q.props.children,V.mode,X,q.key),X.return=V,V=X):(X=No(q.type,q.key,q.props,null,V.mode,X),Jl(X,q),X.return=V,V=X)}return g(V);case E:e:{for(ke=q.key;C!==null;){if(C.key===ke)if(C.tag===4&&C.stateNode.containerInfo===q.containerInfo&&C.stateNode.implementation===q.implementation){l(V,C.sibling),X=f(C,q.children||[]),X.return=V,V=X;break e}else{l(V,C);break}else i(V,C);C=C.sibling}X=Kc(q,V.mode,X),X.return=V,V=X}return g(V);case W:return q=qi(q),We(V,C,q,X)}if(ce(q))return pe(V,C,q,X);if(le(q)){if(ke=le(q),typeof ke!="function")throw Error(r(150));return q=ke.call(q),Ee(V,C,q,X)}if(typeof q.then=="function")return We(V,C,Ao(q),X);if(q.$$typeof===O)return We(V,C,wo(V,q),X);zo(V,q)}return typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint"?(q=""+q,C!==null&&C.tag===6?(l(V,C.sibling),X=f(C,q),X.return=V,V=X):(l(V,C),X=Jc(q,V.mode,X),X.return=V,V=X),g(V)):l(V,C)}return function(V,C,q,X){try{Xl=0;var ke=We(V,C,q,X);return Rr=null,ke}catch(be){if(be===xr||be===xo)throw be;var Ie=mn(29,be,null,V.mode);return Ie.lanes=X,Ie.return=V,Ie}finally{}}}var Bi=tv(!0),nv=tv(!1),Ha=!1;function ff(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function df(n,i){n=n.updateQueue,i.updateQueue===n&&(i.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,callbacks:null})}function $a(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function Ga(n,i,l){var o=n.updateQueue;if(o===null)return null;if(o=o.shared,(He&2)!==0){var f=o.pending;return f===null?i.next=i:(i.next=f.next,f.next=i),o.pending=i,i=Eo(n),Lp(n,null,l),i}return ko(n,o,i,l),Eo(n)}function Kl(n,i,l){if(i=i.updateQueue,i!==null&&(i=i.shared,(l&4194048)!==0)){var o=i.lanes;o&=n.pendingLanes,l|=o,i.lanes=l,Gm(n,l)}}function hf(n,i){var l=n.updateQueue,o=n.alternate;if(o!==null&&(o=o.updateQueue,l===o)){var f=null,h=null;if(l=l.firstBaseUpdate,l!==null){do{var g={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};h===null?f=h=g:h=h.next=g,l=l.next}while(l!==null);h===null?f=h=i:h=h.next=i}else f=h=i;l={baseState:o.baseState,firstBaseUpdate:f,lastBaseUpdate:h,shared:o.shared,callbacks:o.callbacks},n.updateQueue=l;return}n=l.lastBaseUpdate,n===null?l.firstBaseUpdate=i:n.next=i,l.lastBaseUpdate=i}var mf=!1;function Wl(){if(mf){var n=Dr;if(n!==null)throw n}}function eu(n,i,l,o){mf=!1;var f=n.updateQueue;Ha=!1;var h=f.firstBaseUpdate,g=f.lastBaseUpdate,k=f.shared.pending;if(k!==null){f.shared.pending=null;var x=k,Q=x.next;x.next=null,g===null?h=Q:g.next=Q,g=x;var Y=n.alternate;Y!==null&&(Y=Y.updateQueue,k=Y.lastBaseUpdate,k!==g&&(k===null?Y.firstBaseUpdate=Q:k.next=Q,Y.lastBaseUpdate=x))}if(h!==null){var K=f.baseState;g=0,Y=Q=x=null,k=h;do{var B=k.lane&-536870913,H=B!==k.lane;if(H?(Me&B)===B:(o&B)===B){B!==0&&B===wr&&(mf=!0),Y!==null&&(Y=Y.next={lane:0,tag:k.tag,payload:k.payload,callback:null,next:null});e:{var pe=n,Ee=k;B=i;var We=l;switch(Ee.tag){case 1:if(pe=Ee.payload,typeof pe=="function"){K=pe.call(We,K,B);break e}K=pe;break e;case 3:pe.flags=pe.flags&-65537|128;case 0:if(pe=Ee.payload,B=typeof pe=="function"?pe.call(We,K,B):pe,B==null)break e;K=y({},K,B);break e;case 2:Ha=!0}}B=k.callback,B!==null&&(n.flags|=64,H&&(n.flags|=8192),H=f.callbacks,H===null?f.callbacks=[B]:H.push(B))}else H={lane:B,tag:k.tag,payload:k.payload,callback:k.callback,next:null},Y===null?(Q=Y=H,x=K):Y=Y.next=H,g|=B;if(k=k.next,k===null){if(k=f.shared.pending,k===null)break;H=k,k=H.next,H.next=null,f.lastBaseUpdate=H,f.shared.pending=null}}while(!0);Y===null&&(x=K),f.baseState=x,f.firstBaseUpdate=Q,f.lastBaseUpdate=Y,h===null&&(f.shared.lanes=0),Ka|=g,n.lanes=g,n.memoizedState=K}}function av(n,i){if(typeof n!="function")throw Error(r(191,n));n.call(i)}function iv(n,i){var l=n.callbacks;if(l!==null)for(n.callbacks=null,n=0;n<l.length;n++)av(l[n],i)}var Ar=A(null),Co=A(0);function rv(n,i){n=Oa,ae(Co,n),ae(Ar,i),Oa=n|i.baseLanes}function pf(){ae(Co,Oa),ae(Ar,Ar.current)}function vf(){Oa=Co.current,G(Ar),G(Co)}var pn=A(null),An=null;function Ya(n){var i=n.alternate;ae(bt,bt.current&1),ae(pn,n),An===null&&(i===null||Ar.current!==null||i.memoizedState!==null)&&(An=n)}function yf(n){ae(bt,bt.current),ae(pn,n),An===null&&(An=n)}function lv(n){n.tag===22?(ae(bt,bt.current),ae(pn,n),An===null&&(An=n)):Pa()}function Pa(){ae(bt,bt.current),ae(pn,pn.current)}function vn(n){G(pn),An===n&&(An=null),G(bt)}var bt=A(0);function jo(n){for(var i=n;i!==null;){if(i.tag===13){var l=i.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Ed(l)||Nd(l)))return i}else if(i.tag===19&&(i.memoizedProps.revealOrder==="forwards"||i.memoizedProps.revealOrder==="backwards"||i.memoizedProps.revealOrder==="unstable_legacy-backwards"||i.memoizedProps.revealOrder==="together")){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===n)break;for(;i.sibling===null;){if(i.return===null||i.return===n)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var ga=0,De=null,Je=null,Nt=null,Mo=!1,zr=!1,Ii=!1,Fo=0,tu=0,Cr=null,wE=0;function ht(){throw Error(r(321))}function gf(n,i){if(i===null)return!1;for(var l=0;l<i.length&&l<n.length;l++)if(!hn(n[l],i[l]))return!1;return!0}function bf(n,i,l,o,f,h){return ga=h,De=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,U.H=n===null||n.memoizedState===null?Iv:jf,Ii=!1,h=l(o,f),Ii=!1,zr&&(h=ov(i,l,o,f)),uv(n),h}function uv(n){U.H=iu;var i=Je!==null&&Je.next!==null;if(ga=0,Nt=Je=De=null,Mo=!1,tu=0,Cr=null,i)throw Error(r(300));n===null||Tt||(n=n.dependencies,n!==null&&Oo(n)&&(Tt=!0))}function ov(n,i,l,o){De=n;var f=0;do{if(zr&&(Cr=null),tu=0,zr=!1,25<=f)throw Error(r(301));if(f+=1,Nt=Je=null,n.updateQueue!=null){var h=n.updateQueue;h.lastEffect=null,h.events=null,h.stores=null,h.memoCache!=null&&(h.memoCache.index=0)}U.H=Zv,h=i(l,o)}while(zr);return h}function DE(){var n=U.H,i=n.useState()[0];return i=typeof i.then=="function"?nu(i):i,n=n.useState()[0],(Je!==null?Je.memoizedState:null)!==n&&(De.flags|=1024),i}function _f(){var n=Fo!==0;return Fo=0,n}function Sf(n,i,l){i.updateQueue=n.updateQueue,i.flags&=-2053,n.lanes&=~l}function kf(n){if(Mo){for(n=n.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}Mo=!1}ga=0,Nt=Je=De=null,zr=!1,tu=Fo=0,Cr=null}function Pt(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Nt===null?De.memoizedState=Nt=n:Nt=Nt.next=n,Nt}function _t(){if(Je===null){var n=De.alternate;n=n!==null?n.memoizedState:null}else n=Je.next;var i=Nt===null?De.memoizedState:Nt.next;if(i!==null)Nt=i,Je=n;else{if(n===null)throw De.alternate===null?Error(r(467)):Error(r(310));Je=n,n={memoizedState:Je.memoizedState,baseState:Je.baseState,baseQueue:Je.baseQueue,queue:Je.queue,next:null},Nt===null?De.memoizedState=Nt=n:Nt=Nt.next=n}return Nt}function Vo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function nu(n){var i=tu;return tu+=1,Cr===null&&(Cr=[]),n=Kp(Cr,n,i),i=De,(Nt===null?i.memoizedState:Nt.next)===null&&(i=i.alternate,U.H=i===null||i.memoizedState===null?Iv:jf),n}function Uo(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return nu(n);if(n.$$typeof===O)return qt(n)}throw Error(r(438,String(n)))}function Ef(n){var i=null,l=De.updateQueue;if(l!==null&&(i=l.memoCache),i==null){var o=De.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(i={data:o.data.map(function(f){return f.slice()}),index:0})))}if(i==null&&(i={data:[],index:0}),l===null&&(l=Vo(),De.updateQueue=l),l.memoCache=i,l=i.data[i.index],l===void 0)for(l=i.data[i.index]=Array(n),o=0;o<n;o++)l[o]=Ne;return i.index++,l}function ba(n,i){return typeof i=="function"?i(n):i}function Lo(n){var i=_t();return Nf(i,Je,n)}function Nf(n,i,l){var o=n.queue;if(o===null)throw Error(r(311));o.lastRenderedReducer=l;var f=n.baseQueue,h=o.pending;if(h!==null){if(f!==null){var g=f.next;f.next=h.next,h.next=g}i.baseQueue=f=h,o.pending=null}if(h=n.baseState,f===null)n.memoizedState=h;else{i=f.next;var k=g=null,x=null,Q=i,Y=!1;do{var K=Q.lane&-536870913;if(K!==Q.lane?(Me&K)===K:(ga&K)===K){var B=Q.revertLane;if(B===0)x!==null&&(x=x.next={lane:0,revertLane:0,gesture:null,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null}),K===wr&&(Y=!0);else if((ga&B)===B){Q=Q.next,B===wr&&(Y=!0);continue}else K={lane:0,revertLane:Q.revertLane,gesture:null,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null},x===null?(k=x=K,g=h):x=x.next=K,De.lanes|=B,Ka|=B;K=Q.action,Ii&&l(h,K),h=Q.hasEagerState?Q.eagerState:l(h,K)}else B={lane:K,revertLane:Q.revertLane,gesture:Q.gesture,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null},x===null?(k=x=B,g=h):x=x.next=B,De.lanes|=K,Ka|=K;Q=Q.next}while(Q!==null&&Q!==i);if(x===null?g=h:x.next=k,!hn(h,n.memoizedState)&&(Tt=!0,Y&&(l=Dr,l!==null)))throw l;n.memoizedState=h,n.baseState=g,n.baseQueue=x,o.lastRenderedState=h}return f===null&&(o.lanes=0),[n.memoizedState,o.dispatch]}function Tf(n){var i=_t(),l=i.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=n;var o=l.dispatch,f=l.pending,h=i.memoizedState;if(f!==null){l.pending=null;var g=f=f.next;do h=n(h,g.action),g=g.next;while(g!==f);hn(h,i.memoizedState)||(Tt=!0),i.memoizedState=h,i.baseQueue===null&&(i.baseState=h),l.lastRenderedState=h}return[h,o]}function sv(n,i,l){var o=De,f=_t(),h=Ve;if(h){if(l===void 0)throw Error(r(407));l=l()}else l=i();var g=!hn((Je||f).memoizedState,l);if(g&&(f.memoizedState=l,Tt=!0),f=f.queue,Df(dv.bind(null,o,f,n),[n]),f.getSnapshot!==i||g||Nt!==null&&Nt.memoizedState.tag&1){if(o.flags|=2048,jr(9,{destroy:void 0},fv.bind(null,o,f,l,i),null),tt===null)throw Error(r(349));h||(ga&127)!==0||cv(o,i,l)}return l}function cv(n,i,l){n.flags|=16384,n={getSnapshot:i,value:l},i=De.updateQueue,i===null?(i=Vo(),De.updateQueue=i,i.stores=[n]):(l=i.stores,l===null?i.stores=[n]:l.push(n))}function fv(n,i,l,o){i.value=l,i.getSnapshot=o,hv(i)&&mv(n)}function dv(n,i,l){return l(function(){hv(i)&&mv(n)})}function hv(n){var i=n.getSnapshot;n=n.value;try{var l=i();return!hn(n,l)}catch{return!0}}function mv(n){var i=ji(n,2);i!==null&&un(i,n,2)}function Of(n){var i=Pt();if(typeof n=="function"){var l=n;if(n=l(),Ii){Kn(!0);try{l()}finally{Kn(!1)}}}return i.memoizedState=i.baseState=n,i.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ba,lastRenderedState:n},i}function pv(n,i,l,o){return n.baseState=l,Nf(n,Je,typeof o=="function"?o:ba)}function xE(n,i,l,o,f){if(Bo(n))throw Error(r(485));if(n=i.action,n!==null){var h={payload:f,action:n,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(g){h.listeners.push(g)}};U.T!==null?l(!0):h.isTransition=!1,o(h),l=i.pending,l===null?(h.next=i.pending=h,vv(i,h)):(h.next=l.next,i.pending=l.next=h)}}function vv(n,i){var l=i.action,o=i.payload,f=n.state;if(i.isTransition){var h=U.T,g={};U.T=g;try{var k=l(f,o),x=U.S;x!==null&&x(g,k),yv(n,i,k)}catch(Q){wf(n,i,Q)}finally{h!==null&&g.types!==null&&(h.types=g.types),U.T=h}}else try{h=l(f,o),yv(n,i,h)}catch(Q){wf(n,i,Q)}}function yv(n,i,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(o){gv(n,i,o)},function(o){return wf(n,i,o)}):gv(n,i,l)}function gv(n,i,l){i.status="fulfilled",i.value=l,bv(i),n.state=l,i=n.pending,i!==null&&(l=i.next,l===i?n.pending=null:(l=l.next,i.next=l,vv(n,l)))}function wf(n,i,l){var o=n.pending;if(n.pending=null,o!==null){o=o.next;do i.status="rejected",i.reason=l,bv(i),i=i.next;while(i!==o)}n.action=null}function bv(n){n=n.listeners;for(var i=0;i<n.length;i++)(0,n[i])()}function _v(n,i){return i}function Sv(n,i){if(Ve){var l=tt.formState;if(l!==null){e:{var o=De;if(Ve){if(at){t:{for(var f=at,h=Rn;f.nodeType!==8;){if(!h){f=null;break t}if(f=zn(f.nextSibling),f===null){f=null;break t}}h=f.data,f=h==="F!"||h==="F"?f:null}if(f){at=zn(f.nextSibling),o=f.data==="F!";break e}}Ia(o)}o=!1}o&&(i=l[0])}}return l=Pt(),l.memoizedState=l.baseState=i,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:_v,lastRenderedState:i},l.queue=o,l=qv.bind(null,De,o),o.dispatch=l,o=Of(!1),h=Cf.bind(null,De,!1,o.queue),o=Pt(),f={state:i,dispatch:null,action:n,pending:null},o.queue=f,l=xE.bind(null,De,f,h,l),f.dispatch=l,o.memoizedState=n,[i,l,!1]}function kv(n){var i=_t();return Ev(i,Je,n)}function Ev(n,i,l){if(i=Nf(n,i,_v)[0],n=Lo(ba)[0],typeof i=="object"&&i!==null&&typeof i.then=="function")try{var o=nu(i)}catch(g){throw g===xr?xo:g}else o=i;i=_t();var f=i.queue,h=f.dispatch;return l!==i.memoizedState&&(De.flags|=2048,jr(9,{destroy:void 0},RE.bind(null,f,l),null)),[o,h,n]}function RE(n,i){n.action=i}function Nv(n){var i=_t(),l=Je;if(l!==null)return Ev(i,l,n);_t(),i=i.memoizedState,l=_t();var o=l.queue.dispatch;return l.memoizedState=n,[i,o,!1]}function jr(n,i,l,o){return n={tag:n,create:l,deps:o,inst:i,next:null},i=De.updateQueue,i===null&&(i=Vo(),De.updateQueue=i),l=i.lastEffect,l===null?i.lastEffect=n.next=n:(o=l.next,l.next=n,n.next=o,i.lastEffect=n),n}function Tv(){return _t().memoizedState}function qo(n,i,l,o){var f=Pt();De.flags|=n,f.memoizedState=jr(1|i,{destroy:void 0},l,o===void 0?null:o)}function Qo(n,i,l,o){var f=_t();o=o===void 0?null:o;var h=f.memoizedState.inst;Je!==null&&o!==null&&gf(o,Je.memoizedState.deps)?f.memoizedState=jr(i,h,l,o):(De.flags|=n,f.memoizedState=jr(1|i,h,l,o))}function Ov(n,i){qo(8390656,8,n,i)}function Df(n,i){Qo(2048,8,n,i)}function AE(n){De.flags|=4;var i=De.updateQueue;if(i===null)i=Vo(),De.updateQueue=i,i.events=[n];else{var l=i.events;l===null?i.events=[n]:l.push(n)}}function wv(n){var i=_t().memoizedState;return AE({ref:i,nextImpl:n}),function(){if((He&2)!==0)throw Error(r(440));return i.impl.apply(void 0,arguments)}}function Dv(n,i){return Qo(4,2,n,i)}function xv(n,i){return Qo(4,4,n,i)}function Rv(n,i){if(typeof i=="function"){n=n();var l=i(n);return function(){typeof l=="function"?l():i(null)}}if(i!=null)return n=n(),i.current=n,function(){i.current=null}}function Av(n,i,l){l=l!=null?l.concat([n]):null,Qo(4,4,Rv.bind(null,i,n),l)}function xf(){}function zv(n,i){var l=_t();i=i===void 0?null:i;var o=l.memoizedState;return i!==null&&gf(i,o[1])?o[0]:(l.memoizedState=[n,i],n)}function Cv(n,i){var l=_t();i=i===void 0?null:i;var o=l.memoizedState;if(i!==null&&gf(i,o[1]))return o[0];if(o=n(),Ii){Kn(!0);try{n()}finally{Kn(!1)}}return l.memoizedState=[o,i],o}function Rf(n,i,l){return l===void 0||(ga&1073741824)!==0&&(Me&261930)===0?n.memoizedState=i:(n.memoizedState=l,n=jy(),De.lanes|=n,Ka|=n,l)}function jv(n,i,l,o){return hn(l,i)?l:Ar.current!==null?(n=Rf(n,l,o),hn(n,i)||(Tt=!0),n):(ga&42)===0||(ga&1073741824)!==0&&(Me&261930)===0?(Tt=!0,n.memoizedState=l):(n=jy(),De.lanes|=n,Ka|=n,i)}function Mv(n,i,l,o,f){var h=P.p;P.p=h!==0&&8>h?h:8;var g=U.T,k={};U.T=k,Cf(n,!1,i,l);try{var x=f(),Q=U.S;if(Q!==null&&Q(k,x),x!==null&&typeof x=="object"&&typeof x.then=="function"){var Y=OE(x,o);au(n,i,Y,bn(n))}else au(n,i,o,bn(n))}catch(K){au(n,i,{then:function(){},status:"rejected",reason:K},bn())}finally{P.p=h,g!==null&&k.types!==null&&(g.types=k.types),U.T=g}}function zE(){}function Af(n,i,l,o){if(n.tag!==5)throw Error(r(476));var f=Fv(n).queue;Mv(n,f,i,ie,l===null?zE:function(){return Vv(n),l(o)})}function Fv(n){var i=n.memoizedState;if(i!==null)return i;i={memoizedState:ie,baseState:ie,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ba,lastRenderedState:ie},next:null};var l={};return i.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ba,lastRenderedState:l},next:null},n.memoizedState=i,n=n.alternate,n!==null&&(n.memoizedState=i),i}function Vv(n){var i=Fv(n);i.next===null&&(i=n.alternate.memoizedState),au(n,i.next.queue,{},bn())}function zf(){return qt(_u)}function Uv(){return _t().memoizedState}function Lv(){return _t().memoizedState}function CE(n){for(var i=n.return;i!==null;){switch(i.tag){case 24:case 3:var l=bn();n=$a(l);var o=Ga(i,n,l);o!==null&&(un(o,i,l),Kl(o,i,l)),i={cache:uf()},n.payload=i;return}i=i.return}}function jE(n,i,l){var o=bn();l={lane:o,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Bo(n)?Qv(i,l):(l=Pc(n,i,l,o),l!==null&&(un(l,n,o),Bv(l,i,o)))}function qv(n,i,l){var o=bn();au(n,i,l,o)}function au(n,i,l,o){var f={lane:o,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Bo(n))Qv(i,f);else{var h=n.alternate;if(n.lanes===0&&(h===null||h.lanes===0)&&(h=i.lastRenderedReducer,h!==null))try{var g=i.lastRenderedState,k=h(g,l);if(f.hasEagerState=!0,f.eagerState=k,hn(k,g))return ko(n,i,f,0),tt===null&&So(),!1}catch{}finally{}if(l=Pc(n,i,f,o),l!==null)return un(l,n,o),Bv(l,i,o),!0}return!1}function Cf(n,i,l,o){if(o={lane:2,revertLane:fd(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},Bo(n)){if(i)throw Error(r(479))}else i=Pc(n,l,o,2),i!==null&&un(i,n,2)}function Bo(n){var i=n.alternate;return n===De||i!==null&&i===De}function Qv(n,i){zr=Mo=!0;var l=n.pending;l===null?i.next=i:(i.next=l.next,l.next=i),n.pending=i}function Bv(n,i,l){if((l&4194048)!==0){var o=i.lanes;o&=n.pendingLanes,l|=o,i.lanes=l,Gm(n,l)}}var iu={readContext:qt,use:Uo,useCallback:ht,useContext:ht,useEffect:ht,useImperativeHandle:ht,useLayoutEffect:ht,useInsertionEffect:ht,useMemo:ht,useReducer:ht,useRef:ht,useState:ht,useDebugValue:ht,useDeferredValue:ht,useTransition:ht,useSyncExternalStore:ht,useId:ht,useHostTransitionStatus:ht,useFormState:ht,useActionState:ht,useOptimistic:ht,useMemoCache:ht,useCacheRefresh:ht};iu.useEffectEvent=ht;var Iv={readContext:qt,use:Uo,useCallback:function(n,i){return Pt().memoizedState=[n,i===void 0?null:i],n},useContext:qt,useEffect:Ov,useImperativeHandle:function(n,i,l){l=l!=null?l.concat([n]):null,qo(4194308,4,Rv.bind(null,i,n),l)},useLayoutEffect:function(n,i){return qo(4194308,4,n,i)},useInsertionEffect:function(n,i){qo(4,2,n,i)},useMemo:function(n,i){var l=Pt();i=i===void 0?null:i;var o=n();if(Ii){Kn(!0);try{n()}finally{Kn(!1)}}return l.memoizedState=[o,i],o},useReducer:function(n,i,l){var o=Pt();if(l!==void 0){var f=l(i);if(Ii){Kn(!0);try{l(i)}finally{Kn(!1)}}}else f=i;return o.memoizedState=o.baseState=f,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:f},o.queue=n,n=n.dispatch=jE.bind(null,De,n),[o.memoizedState,n]},useRef:function(n){var i=Pt();return n={current:n},i.memoizedState=n},useState:function(n){n=Of(n);var i=n.queue,l=qv.bind(null,De,i);return i.dispatch=l,[n.memoizedState,l]},useDebugValue:xf,useDeferredValue:function(n,i){var l=Pt();return Rf(l,n,i)},useTransition:function(){var n=Of(!1);return n=Mv.bind(null,De,n.queue,!0,!1),Pt().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,i,l){var o=De,f=Pt();if(Ve){if(l===void 0)throw Error(r(407));l=l()}else{if(l=i(),tt===null)throw Error(r(349));(Me&127)!==0||cv(o,i,l)}f.memoizedState=l;var h={value:l,getSnapshot:i};return f.queue=h,Ov(dv.bind(null,o,h,n),[n]),o.flags|=2048,jr(9,{destroy:void 0},fv.bind(null,o,h,l,i),null),l},useId:function(){var n=Pt(),i=tt.identifierPrefix;if(Ve){var l=ea,o=Wn;l=(o&~(1<<32-Vt(o)-1)).toString(32)+l,i="_"+i+"R_"+l,l=Fo++,0<l&&(i+="H"+l.toString(32)),i+="_"}else l=wE++,i="_"+i+"r_"+l.toString(32)+"_";return n.memoizedState=i},useHostTransitionStatus:zf,useFormState:Sv,useActionState:Sv,useOptimistic:function(n){var i=Pt();i.memoizedState=i.baseState=n;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return i.queue=l,i=Cf.bind(null,De,!0,l),l.dispatch=i,[n,i]},useMemoCache:Ef,useCacheRefresh:function(){return Pt().memoizedState=CE.bind(null,De)},useEffectEvent:function(n){var i=Pt(),l={impl:n};return i.memoizedState=l,function(){if((He&2)!==0)throw Error(r(440));return l.impl.apply(void 0,arguments)}}},jf={readContext:qt,use:Uo,useCallback:zv,useContext:qt,useEffect:Df,useImperativeHandle:Av,useInsertionEffect:Dv,useLayoutEffect:xv,useMemo:Cv,useReducer:Lo,useRef:Tv,useState:function(){return Lo(ba)},useDebugValue:xf,useDeferredValue:function(n,i){var l=_t();return jv(l,Je.memoizedState,n,i)},useTransition:function(){var n=Lo(ba)[0],i=_t().memoizedState;return[typeof n=="boolean"?n:nu(n),i]},useSyncExternalStore:sv,useId:Uv,useHostTransitionStatus:zf,useFormState:kv,useActionState:kv,useOptimistic:function(n,i){var l=_t();return pv(l,Je,n,i)},useMemoCache:Ef,useCacheRefresh:Lv};jf.useEffectEvent=wv;var Zv={readContext:qt,use:Uo,useCallback:zv,useContext:qt,useEffect:Df,useImperativeHandle:Av,useInsertionEffect:Dv,useLayoutEffect:xv,useMemo:Cv,useReducer:Tf,useRef:Tv,useState:function(){return Tf(ba)},useDebugValue:xf,useDeferredValue:function(n,i){var l=_t();return Je===null?Rf(l,n,i):jv(l,Je.memoizedState,n,i)},useTransition:function(){var n=Tf(ba)[0],i=_t().memoizedState;return[typeof n=="boolean"?n:nu(n),i]},useSyncExternalStore:sv,useId:Uv,useHostTransitionStatus:zf,useFormState:Nv,useActionState:Nv,useOptimistic:function(n,i){var l=_t();return Je!==null?pv(l,Je,n,i):(l.baseState=n,[n,l.queue.dispatch])},useMemoCache:Ef,useCacheRefresh:Lv};Zv.useEffectEvent=wv;function Mf(n,i,l,o){i=n.memoizedState,l=l(o,i),l=l==null?i:y({},i,l),n.memoizedState=l,n.lanes===0&&(n.updateQueue.baseState=l)}var Ff={enqueueSetState:function(n,i,l){n=n._reactInternals;var o=bn(),f=$a(o);f.payload=i,l!=null&&(f.callback=l),i=Ga(n,f,o),i!==null&&(un(i,n,o),Kl(i,n,o))},enqueueReplaceState:function(n,i,l){n=n._reactInternals;var o=bn(),f=$a(o);f.tag=1,f.payload=i,l!=null&&(f.callback=l),i=Ga(n,f,o),i!==null&&(un(i,n,o),Kl(i,n,o))},enqueueForceUpdate:function(n,i){n=n._reactInternals;var l=bn(),o=$a(l);o.tag=2,i!=null&&(o.callback=i),i=Ga(n,o,l),i!==null&&(un(i,n,l),Kl(i,n,l))}};function Hv(n,i,l,o,f,h,g){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(o,h,g):i.prototype&&i.prototype.isPureReactComponent?!Zl(l,o)||!Zl(f,h):!0}function $v(n,i,l,o){n=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(l,o),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(l,o),i.state!==n&&Ff.enqueueReplaceState(i,i.state,null)}function Zi(n,i){var l=i;if("ref"in i){l={};for(var o in i)o!=="ref"&&(l[o]=i[o])}if(n=n.defaultProps){l===i&&(l=y({},l));for(var f in n)l[f]===void 0&&(l[f]=n[f])}return l}function Gv(n){_o(n)}function Yv(n){console.error(n)}function Pv(n){_o(n)}function Io(n,i){try{var l=n.onUncaughtError;l(i.value,{componentStack:i.stack})}catch(o){setTimeout(function(){throw o})}}function Xv(n,i,l){try{var o=n.onCaughtError;o(l.value,{componentStack:l.stack,errorBoundary:i.tag===1?i.stateNode:null})}catch(f){setTimeout(function(){throw f})}}function Vf(n,i,l){return l=$a(l),l.tag=3,l.payload={element:null},l.callback=function(){Io(n,i)},l}function Jv(n){return n=$a(n),n.tag=3,n}function Kv(n,i,l,o){var f=l.type.getDerivedStateFromError;if(typeof f=="function"){var h=o.value;n.payload=function(){return f(h)},n.callback=function(){Xv(i,l,o)}}var g=l.stateNode;g!==null&&typeof g.componentDidCatch=="function"&&(n.callback=function(){Xv(i,l,o),typeof f!="function"&&(Wa===null?Wa=new Set([this]):Wa.add(this));var k=o.stack;this.componentDidCatch(o.value,{componentStack:k!==null?k:""})})}function ME(n,i,l,o,f){if(l.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(i=l.alternate,i!==null&&Or(i,l,f,!0),l=pn.current,l!==null){switch(l.tag){case 31:case 13:return An===null?ts():l.alternate===null&&mt===0&&(mt=3),l.flags&=-257,l.flags|=65536,l.lanes=f,o===Ro?l.flags|=16384:(i=l.updateQueue,i===null?l.updateQueue=new Set([o]):i.add(o),od(n,o,f)),!1;case 22:return l.flags|=65536,o===Ro?l.flags|=16384:(i=l.updateQueue,i===null?(i={transitions:null,markerInstances:null,retryQueue:new Set([o])},l.updateQueue=i):(l=i.retryQueue,l===null?i.retryQueue=new Set([o]):l.add(o)),od(n,o,f)),!1}throw Error(r(435,l.tag))}return od(n,o,f),ts(),!1}if(Ve)return i=pn.current,i!==null?((i.flags&65536)===0&&(i.flags|=256),i.flags|=65536,i.lanes=f,o!==tf&&(n=Error(r(422),{cause:o}),Gl(wn(n,l)))):(o!==tf&&(i=Error(r(423),{cause:o}),Gl(wn(i,l))),n=n.current.alternate,n.flags|=65536,f&=-f,n.lanes|=f,o=wn(o,l),f=Vf(n.stateNode,o,f),hf(n,f),mt!==4&&(mt=2)),!1;var h=Error(r(520),{cause:o});if(h=wn(h,l),du===null?du=[h]:du.push(h),mt!==4&&(mt=2),i===null)return!0;o=wn(o,l),l=i;do{switch(l.tag){case 3:return l.flags|=65536,n=f&-f,l.lanes|=n,n=Vf(l.stateNode,o,n),hf(l,n),!1;case 1:if(i=l.type,h=l.stateNode,(l.flags&128)===0&&(typeof i.getDerivedStateFromError=="function"||h!==null&&typeof h.componentDidCatch=="function"&&(Wa===null||!Wa.has(h))))return l.flags|=65536,f&=-f,l.lanes|=f,f=Jv(f),Kv(f,n,l,o),hf(l,f),!1}l=l.return}while(l!==null);return!1}var Uf=Error(r(461)),Tt=!1;function Qt(n,i,l,o){i.child=n===null?nv(i,null,l,o):Bi(i,n.child,l,o)}function Wv(n,i,l,o,f){l=l.render;var h=i.ref;if("ref"in o){var g={};for(var k in o)k!=="ref"&&(g[k]=o[k])}else g=o;return Ui(i),o=bf(n,i,l,g,h,f),k=_f(),n!==null&&!Tt?(Sf(n,i,f),_a(n,i,f)):(Ve&&k&&Wc(i),i.flags|=1,Qt(n,i,o,f),i.child)}function ey(n,i,l,o,f){if(n===null){var h=l.type;return typeof h=="function"&&!Xc(h)&&h.defaultProps===void 0&&l.compare===null?(i.tag=15,i.type=h,ty(n,i,h,o,f)):(n=No(l.type,null,o,i,i.mode,f),n.ref=i.ref,n.return=i,i.child=n)}if(h=n.child,!$f(n,f)){var g=h.memoizedProps;if(l=l.compare,l=l!==null?l:Zl,l(g,o)&&n.ref===i.ref)return _a(n,i,f)}return i.flags|=1,n=ma(h,o),n.ref=i.ref,n.return=i,i.child=n}function ty(n,i,l,o,f){if(n!==null){var h=n.memoizedProps;if(Zl(h,o)&&n.ref===i.ref)if(Tt=!1,i.pendingProps=o=h,$f(n,f))(n.flags&131072)!==0&&(Tt=!0);else return i.lanes=n.lanes,_a(n,i,f)}return Lf(n,i,l,o,f)}function ny(n,i,l,o){var f=o.children,h=n!==null?n.memoizedState:null;if(n===null&&i.stateNode===null&&(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.mode==="hidden"){if((i.flags&128)!==0){if(h=h!==null?h.baseLanes|l:l,n!==null){for(o=i.child=n.child,f=0;o!==null;)f=f|o.lanes|o.childLanes,o=o.sibling;o=f&~h}else o=0,i.child=null;return ay(n,i,h,l,o)}if((l&536870912)!==0)i.memoizedState={baseLanes:0,cachePool:null},n!==null&&Do(i,h!==null?h.cachePool:null),h!==null?rv(i,h):pf(),lv(i);else return o=i.lanes=536870912,ay(n,i,h!==null?h.baseLanes|l:l,l,o)}else h!==null?(Do(i,h.cachePool),rv(i,h),Pa(),i.memoizedState=null):(n!==null&&Do(i,null),pf(),Pa());return Qt(n,i,f,l),i.child}function ru(n,i){return n!==null&&n.tag===22||i.stateNode!==null||(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.sibling}function ay(n,i,l,o,f){var h=sf();return h=h===null?null:{parent:Et._currentValue,pool:h},i.memoizedState={baseLanes:l,cachePool:h},n!==null&&Do(i,null),pf(),lv(i),n!==null&&Or(n,i,o,!0),i.childLanes=f,null}function Zo(n,i){return i=$o({mode:i.mode,children:i.children},n.mode),i.ref=n.ref,n.child=i,i.return=n,i}function iy(n,i,l){return Bi(i,n.child,null,l),n=Zo(i,i.pendingProps),n.flags|=2,vn(i),i.memoizedState=null,n}function FE(n,i,l){var o=i.pendingProps,f=(i.flags&128)!==0;if(i.flags&=-129,n===null){if(Ve){if(o.mode==="hidden")return n=Zo(i,o),i.lanes=536870912,ru(null,n);if(yf(i),(n=at)?(n=vg(n,Rn),n=n!==null&&n.data==="&"?n:null,n!==null&&(i.memoizedState={dehydrated:n,treeContext:Qa!==null?{id:Wn,overflow:ea}:null,retryLane:536870912,hydrationErrors:null},l=Qp(n),l.return=i,i.child=l,Lt=i,at=null)):n=null,n===null)throw Ia(i);return i.lanes=536870912,null}return Zo(i,o)}var h=n.memoizedState;if(h!==null){var g=h.dehydrated;if(yf(i),f)if(i.flags&256)i.flags&=-257,i=iy(n,i,l);else if(i.memoizedState!==null)i.child=n.child,i.flags|=128,i=null;else throw Error(r(558));else if(Tt||Or(n,i,l,!1),f=(l&n.childLanes)!==0,Tt||f){if(o=tt,o!==null&&(g=Ym(o,l),g!==0&&g!==h.retryLane))throw h.retryLane=g,ji(n,g),un(o,n,g),Uf;ts(),i=iy(n,i,l)}else n=h.treeContext,at=zn(g.nextSibling),Lt=i,Ve=!0,Ba=null,Rn=!1,n!==null&&Zp(i,n),i=Zo(i,o),i.flags|=4096;return i}return n=ma(n.child,{mode:o.mode,children:o.children}),n.ref=i.ref,i.child=n,n.return=i,n}function Ho(n,i){var l=i.ref;if(l===null)n!==null&&n.ref!==null&&(i.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(r(284));(n===null||n.ref!==l)&&(i.flags|=4194816)}}function Lf(n,i,l,o,f){return Ui(i),l=bf(n,i,l,o,void 0,f),o=_f(),n!==null&&!Tt?(Sf(n,i,f),_a(n,i,f)):(Ve&&o&&Wc(i),i.flags|=1,Qt(n,i,l,f),i.child)}function ry(n,i,l,o,f,h){return Ui(i),i.updateQueue=null,l=ov(i,o,l,f),uv(n),o=_f(),n!==null&&!Tt?(Sf(n,i,h),_a(n,i,h)):(Ve&&o&&Wc(i),i.flags|=1,Qt(n,i,l,h),i.child)}function ly(n,i,l,o,f){if(Ui(i),i.stateNode===null){var h=kr,g=l.contextType;typeof g=="object"&&g!==null&&(h=qt(g)),h=new l(o,h),i.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,h.updater=Ff,i.stateNode=h,h._reactInternals=i,h=i.stateNode,h.props=o,h.state=i.memoizedState,h.refs={},ff(i),g=l.contextType,h.context=typeof g=="object"&&g!==null?qt(g):kr,h.state=i.memoizedState,g=l.getDerivedStateFromProps,typeof g=="function"&&(Mf(i,l,g,o),h.state=i.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof h.getSnapshotBeforeUpdate=="function"||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(g=h.state,typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount(),g!==h.state&&Ff.enqueueReplaceState(h,h.state,null),eu(i,o,h,f),Wl(),h.state=i.memoizedState),typeof h.componentDidMount=="function"&&(i.flags|=4194308),o=!0}else if(n===null){h=i.stateNode;var k=i.memoizedProps,x=Zi(l,k);h.props=x;var Q=h.context,Y=l.contextType;g=kr,typeof Y=="object"&&Y!==null&&(g=qt(Y));var K=l.getDerivedStateFromProps;Y=typeof K=="function"||typeof h.getSnapshotBeforeUpdate=="function",k=i.pendingProps!==k,Y||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(k||Q!==g)&&$v(i,h,o,g),Ha=!1;var B=i.memoizedState;h.state=B,eu(i,o,h,f),Wl(),Q=i.memoizedState,k||B!==Q||Ha?(typeof K=="function"&&(Mf(i,l,K,o),Q=i.memoizedState),(x=Ha||Hv(i,l,x,o,B,Q,g))?(Y||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount()),typeof h.componentDidMount=="function"&&(i.flags|=4194308)):(typeof h.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=o,i.memoizedState=Q),h.props=o,h.state=Q,h.context=g,o=x):(typeof h.componentDidMount=="function"&&(i.flags|=4194308),o=!1)}else{h=i.stateNode,df(n,i),g=i.memoizedProps,Y=Zi(l,g),h.props=Y,K=i.pendingProps,B=h.context,Q=l.contextType,x=kr,typeof Q=="object"&&Q!==null&&(x=qt(Q)),k=l.getDerivedStateFromProps,(Q=typeof k=="function"||typeof h.getSnapshotBeforeUpdate=="function")||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(g!==K||B!==x)&&$v(i,h,o,x),Ha=!1,B=i.memoizedState,h.state=B,eu(i,o,h,f),Wl();var H=i.memoizedState;g!==K||B!==H||Ha||n!==null&&n.dependencies!==null&&Oo(n.dependencies)?(typeof k=="function"&&(Mf(i,l,k,o),H=i.memoizedState),(Y=Ha||Hv(i,l,Y,o,B,H,x)||n!==null&&n.dependencies!==null&&Oo(n.dependencies))?(Q||typeof h.UNSAFE_componentWillUpdate!="function"&&typeof h.componentWillUpdate!="function"||(typeof h.componentWillUpdate=="function"&&h.componentWillUpdate(o,H,x),typeof h.UNSAFE_componentWillUpdate=="function"&&h.UNSAFE_componentWillUpdate(o,H,x)),typeof h.componentDidUpdate=="function"&&(i.flags|=4),typeof h.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof h.componentDidUpdate!="function"||g===n.memoizedProps&&B===n.memoizedState||(i.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||g===n.memoizedProps&&B===n.memoizedState||(i.flags|=1024),i.memoizedProps=o,i.memoizedState=H),h.props=o,h.state=H,h.context=x,o=Y):(typeof h.componentDidUpdate!="function"||g===n.memoizedProps&&B===n.memoizedState||(i.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||g===n.memoizedProps&&B===n.memoizedState||(i.flags|=1024),o=!1)}return h=o,Ho(n,i),o=(i.flags&128)!==0,h||o?(h=i.stateNode,l=o&&typeof l.getDerivedStateFromError!="function"?null:h.render(),i.flags|=1,n!==null&&o?(i.child=Bi(i,n.child,null,f),i.child=Bi(i,null,l,f)):Qt(n,i,l,f),i.memoizedState=h.state,n=i.child):n=_a(n,i,f),n}function uy(n,i,l,o){return Fi(),i.flags|=256,Qt(n,i,l,o),i.child}var qf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Qf(n){return{baseLanes:n,cachePool:Xp()}}function Bf(n,i,l){return n=n!==null?n.childLanes&~l:0,i&&(n|=gn),n}function oy(n,i,l){var o=i.pendingProps,f=!1,h=(i.flags&128)!==0,g;if((g=h)||(g=n!==null&&n.memoizedState===null?!1:(bt.current&2)!==0),g&&(f=!0,i.flags&=-129),g=(i.flags&32)!==0,i.flags&=-33,n===null){if(Ve){if(f?Ya(i):Pa(),(n=at)?(n=vg(n,Rn),n=n!==null&&n.data!=="&"?n:null,n!==null&&(i.memoizedState={dehydrated:n,treeContext:Qa!==null?{id:Wn,overflow:ea}:null,retryLane:536870912,hydrationErrors:null},l=Qp(n),l.return=i,i.child=l,Lt=i,at=null)):n=null,n===null)throw Ia(i);return Nd(n)?i.lanes=32:i.lanes=536870912,null}var k=o.children;return o=o.fallback,f?(Pa(),f=i.mode,k=$o({mode:"hidden",children:k},f),o=Mi(o,f,l,null),k.return=i,o.return=i,k.sibling=o,i.child=k,o=i.child,o.memoizedState=Qf(l),o.childLanes=Bf(n,g,l),i.memoizedState=qf,ru(null,o)):(Ya(i),If(i,k))}var x=n.memoizedState;if(x!==null&&(k=x.dehydrated,k!==null)){if(h)i.flags&256?(Ya(i),i.flags&=-257,i=Zf(n,i,l)):i.memoizedState!==null?(Pa(),i.child=n.child,i.flags|=128,i=null):(Pa(),k=o.fallback,f=i.mode,o=$o({mode:"visible",children:o.children},f),k=Mi(k,f,l,null),k.flags|=2,o.return=i,k.return=i,o.sibling=k,i.child=o,Bi(i,n.child,null,l),o=i.child,o.memoizedState=Qf(l),o.childLanes=Bf(n,g,l),i.memoizedState=qf,i=ru(null,o));else if(Ya(i),Nd(k)){if(g=k.nextSibling&&k.nextSibling.dataset,g)var Q=g.dgst;g=Q,o=Error(r(419)),o.stack="",o.digest=g,Gl({value:o,source:null,stack:null}),i=Zf(n,i,l)}else if(Tt||Or(n,i,l,!1),g=(l&n.childLanes)!==0,Tt||g){if(g=tt,g!==null&&(o=Ym(g,l),o!==0&&o!==x.retryLane))throw x.retryLane=o,ji(n,o),un(g,n,o),Uf;Ed(k)||ts(),i=Zf(n,i,l)}else Ed(k)?(i.flags|=192,i.child=n.child,i=null):(n=x.treeContext,at=zn(k.nextSibling),Lt=i,Ve=!0,Ba=null,Rn=!1,n!==null&&Zp(i,n),i=If(i,o.children),i.flags|=4096);return i}return f?(Pa(),k=o.fallback,f=i.mode,x=n.child,Q=x.sibling,o=ma(x,{mode:"hidden",children:o.children}),o.subtreeFlags=x.subtreeFlags&65011712,Q!==null?k=ma(Q,k):(k=Mi(k,f,l,null),k.flags|=2),k.return=i,o.return=i,o.sibling=k,i.child=o,ru(null,o),o=i.child,k=n.child.memoizedState,k===null?k=Qf(l):(f=k.cachePool,f!==null?(x=Et._currentValue,f=f.parent!==x?{parent:x,pool:x}:f):f=Xp(),k={baseLanes:k.baseLanes|l,cachePool:f}),o.memoizedState=k,o.childLanes=Bf(n,g,l),i.memoizedState=qf,ru(n.child,o)):(Ya(i),l=n.child,n=l.sibling,l=ma(l,{mode:"visible",children:o.children}),l.return=i,l.sibling=null,n!==null&&(g=i.deletions,g===null?(i.deletions=[n],i.flags|=16):g.push(n)),i.child=l,i.memoizedState=null,l)}function If(n,i){return i=$o({mode:"visible",children:i},n.mode),i.return=n,n.child=i}function $o(n,i){return n=mn(22,n,null,i),n.lanes=0,n}function Zf(n,i,l){return Bi(i,n.child,null,l),n=If(i,i.pendingProps.children),n.flags|=2,i.memoizedState=null,n}function sy(n,i,l){n.lanes|=i;var o=n.alternate;o!==null&&(o.lanes|=i),rf(n.return,i,l)}function Hf(n,i,l,o,f,h){var g=n.memoizedState;g===null?n.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:o,tail:l,tailMode:f,treeForkCount:h}:(g.isBackwards=i,g.rendering=null,g.renderingStartTime=0,g.last=o,g.tail=l,g.tailMode=f,g.treeForkCount=h)}function cy(n,i,l){var o=i.pendingProps,f=o.revealOrder,h=o.tail;o=o.children;var g=bt.current,k=(g&2)!==0;if(k?(g=g&1|2,i.flags|=128):g&=1,ae(bt,g),Qt(n,i,o,l),o=Ve?$l:0,!k&&n!==null&&(n.flags&128)!==0)e:for(n=i.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&sy(n,l,i);else if(n.tag===19)sy(n,l,i);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===i)break e;for(;n.sibling===null;){if(n.return===null||n.return===i)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}switch(f){case"forwards":for(l=i.child,f=null;l!==null;)n=l.alternate,n!==null&&jo(n)===null&&(f=l),l=l.sibling;l=f,l===null?(f=i.child,i.child=null):(f=l.sibling,l.sibling=null),Hf(i,!1,f,l,h,o);break;case"backwards":case"unstable_legacy-backwards":for(l=null,f=i.child,i.child=null;f!==null;){if(n=f.alternate,n!==null&&jo(n)===null){i.child=f;break}n=f.sibling,f.sibling=l,l=f,f=n}Hf(i,!0,l,null,h,o);break;case"together":Hf(i,!1,null,null,void 0,o);break;default:i.memoizedState=null}return i.child}function _a(n,i,l){if(n!==null&&(i.dependencies=n.dependencies),Ka|=i.lanes,(l&i.childLanes)===0)if(n!==null){if(Or(n,i,l,!1),(l&i.childLanes)===0)return null}else return null;if(n!==null&&i.child!==n.child)throw Error(r(153));if(i.child!==null){for(n=i.child,l=ma(n,n.pendingProps),i.child=l,l.return=i;n.sibling!==null;)n=n.sibling,l=l.sibling=ma(n,n.pendingProps),l.return=i;l.sibling=null}return i.child}function $f(n,i){return(n.lanes&i)!==0?!0:(n=n.dependencies,!!(n!==null&&Oo(n)))}function VE(n,i,l){switch(i.tag){case 3:kt(i,i.stateNode.containerInfo),Za(i,Et,n.memoizedState.cache),Fi();break;case 27:case 5:sa(i);break;case 4:kt(i,i.stateNode.containerInfo);break;case 10:Za(i,i.type,i.memoizedProps.value);break;case 31:if(i.memoizedState!==null)return i.flags|=128,yf(i),null;break;case 13:var o=i.memoizedState;if(o!==null)return o.dehydrated!==null?(Ya(i),i.flags|=128,null):(l&i.child.childLanes)!==0?oy(n,i,l):(Ya(i),n=_a(n,i,l),n!==null?n.sibling:null);Ya(i);break;case 19:var f=(n.flags&128)!==0;if(o=(l&i.childLanes)!==0,o||(Or(n,i,l,!1),o=(l&i.childLanes)!==0),f){if(o)return cy(n,i,l);i.flags|=128}if(f=i.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),ae(bt,bt.current),o)break;return null;case 22:return i.lanes=0,ny(n,i,l,i.pendingProps);case 24:Za(i,Et,n.memoizedState.cache)}return _a(n,i,l)}function fy(n,i,l){if(n!==null)if(n.memoizedProps!==i.pendingProps)Tt=!0;else{if(!$f(n,l)&&(i.flags&128)===0)return Tt=!1,VE(n,i,l);Tt=(n.flags&131072)!==0}else Tt=!1,Ve&&(i.flags&1048576)!==0&&Ip(i,$l,i.index);switch(i.lanes=0,i.tag){case 16:e:{var o=i.pendingProps;if(n=qi(i.elementType),i.type=n,typeof n=="function")Xc(n)?(o=Zi(n,o),i.tag=1,i=ly(null,i,n,o,l)):(i.tag=0,i=Lf(null,i,n,o,l));else{if(n!=null){var f=n.$$typeof;if(f===M){i.tag=11,i=Wv(null,i,n,o,l);break e}else if(f===$){i.tag=14,i=ey(null,i,n,o,l);break e}}throw i=ee(n)||n,Error(r(306,i,""))}}return i;case 0:return Lf(n,i,i.type,i.pendingProps,l);case 1:return o=i.type,f=Zi(o,i.pendingProps),ly(n,i,o,f,l);case 3:e:{if(kt(i,i.stateNode.containerInfo),n===null)throw Error(r(387));o=i.pendingProps;var h=i.memoizedState;f=h.element,df(n,i),eu(i,o,null,l);var g=i.memoizedState;if(o=g.cache,Za(i,Et,o),o!==h.cache&&lf(i,[Et],l,!0),Wl(),o=g.element,h.isDehydrated)if(h={element:o,isDehydrated:!1,cache:g.cache},i.updateQueue.baseState=h,i.memoizedState=h,i.flags&256){i=uy(n,i,o,l);break e}else if(o!==f){f=wn(Error(r(424)),i),Gl(f),i=uy(n,i,o,l);break e}else{switch(n=i.stateNode.containerInfo,n.nodeType){case 9:n=n.body;break;default:n=n.nodeName==="HTML"?n.ownerDocument.body:n}for(at=zn(n.firstChild),Lt=i,Ve=!0,Ba=null,Rn=!0,l=nv(i,null,o,l),i.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Fi(),o===f){i=_a(n,i,l);break e}Qt(n,i,o,l)}i=i.child}return i;case 26:return Ho(n,i),n===null?(l=kg(i.type,null,i.pendingProps,null))?i.memoizedState=l:Ve||(l=i.type,n=i.pendingProps,o=os(_e.current).createElement(l),o[Ut]=i,o[en]=n,Bt(o,l,n),zt(o),i.stateNode=o):i.memoizedState=kg(i.type,n.memoizedProps,i.pendingProps,n.memoizedState),null;case 27:return sa(i),n===null&&Ve&&(o=i.stateNode=bg(i.type,i.pendingProps,_e.current),Lt=i,Rn=!0,f=at,ai(i.type)?(Td=f,at=zn(o.firstChild)):at=f),Qt(n,i,i.pendingProps.children,l),Ho(n,i),n===null&&(i.flags|=4194304),i.child;case 5:return n===null&&Ve&&((f=o=at)&&(o=hN(o,i.type,i.pendingProps,Rn),o!==null?(i.stateNode=o,Lt=i,at=zn(o.firstChild),Rn=!1,f=!0):f=!1),f||Ia(i)),sa(i),f=i.type,h=i.pendingProps,g=n!==null?n.memoizedProps:null,o=h.children,_d(f,h)?o=null:g!==null&&_d(f,g)&&(i.flags|=32),i.memoizedState!==null&&(f=bf(n,i,DE,null,null,l),_u._currentValue=f),Ho(n,i),Qt(n,i,o,l),i.child;case 6:return n===null&&Ve&&((n=l=at)&&(l=mN(l,i.pendingProps,Rn),l!==null?(i.stateNode=l,Lt=i,at=null,n=!0):n=!1),n||Ia(i)),null;case 13:return oy(n,i,l);case 4:return kt(i,i.stateNode.containerInfo),o=i.pendingProps,n===null?i.child=Bi(i,null,o,l):Qt(n,i,o,l),i.child;case 11:return Wv(n,i,i.type,i.pendingProps,l);case 7:return Qt(n,i,i.pendingProps,l),i.child;case 8:return Qt(n,i,i.pendingProps.children,l),i.child;case 12:return Qt(n,i,i.pendingProps.children,l),i.child;case 10:return o=i.pendingProps,Za(i,i.type,o.value),Qt(n,i,o.children,l),i.child;case 9:return f=i.type._context,o=i.pendingProps.children,Ui(i),f=qt(f),o=o(f),i.flags|=1,Qt(n,i,o,l),i.child;case 14:return ey(n,i,i.type,i.pendingProps,l);case 15:return ty(n,i,i.type,i.pendingProps,l);case 19:return cy(n,i,l);case 31:return FE(n,i,l);case 22:return ny(n,i,l,i.pendingProps);case 24:return Ui(i),o=qt(Et),n===null?(f=sf(),f===null&&(f=tt,h=uf(),f.pooledCache=h,h.refCount++,h!==null&&(f.pooledCacheLanes|=l),f=h),i.memoizedState={parent:o,cache:f},ff(i),Za(i,Et,f)):((n.lanes&l)!==0&&(df(n,i),eu(i,null,null,l),Wl()),f=n.memoizedState,h=i.memoizedState,f.parent!==o?(f={parent:o,cache:o},i.memoizedState=f,i.lanes===0&&(i.memoizedState=i.updateQueue.baseState=f),Za(i,Et,o)):(o=h.cache,Za(i,Et,o),o!==f.cache&&lf(i,[Et],l,!0))),Qt(n,i,i.pendingProps.children,l),i.child;case 29:throw i.pendingProps}throw Error(r(156,i.tag))}function Sa(n){n.flags|=4}function Gf(n,i,l,o,f){if((i=(n.mode&32)!==0)&&(i=!1),i){if(n.flags|=16777216,(f&335544128)===f)if(n.stateNode.complete)n.flags|=8192;else if(Uy())n.flags|=8192;else throw Qi=Ro,cf}else n.flags&=-16777217}function dy(n,i){if(i.type!=="stylesheet"||(i.state.loading&4)!==0)n.flags&=-16777217;else if(n.flags|=16777216,!wg(i))if(Uy())n.flags|=8192;else throw Qi=Ro,cf}function Go(n,i){i!==null&&(n.flags|=4),n.flags&16384&&(i=n.tag!==22?Hm():536870912,n.lanes|=i,Ur|=i)}function lu(n,i){if(!Ve)switch(n.tailMode){case"hidden":i=n.tail;for(var l=null;i!==null;)i.alternate!==null&&(l=i),i=i.sibling;l===null?n.tail=null:l.sibling=null;break;case"collapsed":l=n.tail;for(var o=null;l!==null;)l.alternate!==null&&(o=l),l=l.sibling;o===null?i||n.tail===null?n.tail=null:n.tail.sibling=null:o.sibling=null}}function it(n){var i=n.alternate!==null&&n.alternate.child===n.child,l=0,o=0;if(i)for(var f=n.child;f!==null;)l|=f.lanes|f.childLanes,o|=f.subtreeFlags&65011712,o|=f.flags&65011712,f.return=n,f=f.sibling;else for(f=n.child;f!==null;)l|=f.lanes|f.childLanes,o|=f.subtreeFlags,o|=f.flags,f.return=n,f=f.sibling;return n.subtreeFlags|=o,n.childLanes=l,i}function UE(n,i,l){var o=i.pendingProps;switch(ef(i),i.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return it(i),null;case 1:return it(i),null;case 3:return l=i.stateNode,o=null,n!==null&&(o=n.memoizedState.cache),i.memoizedState.cache!==o&&(i.flags|=2048),ya(Et),ct(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(n===null||n.child===null)&&(Tr(i)?Sa(i):n===null||n.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,nf())),it(i),null;case 26:var f=i.type,h=i.memoizedState;return n===null?(Sa(i),h!==null?(it(i),dy(i,h)):(it(i),Gf(i,f,null,o,l))):h?h!==n.memoizedState?(Sa(i),it(i),dy(i,h)):(it(i),i.flags&=-16777217):(n=n.memoizedProps,n!==o&&Sa(i),it(i),Gf(i,f,n,o,l)),null;case 27:if(Oi(i),l=_e.current,f=i.type,n!==null&&i.stateNode!=null)n.memoizedProps!==o&&Sa(i);else{if(!o){if(i.stateNode===null)throw Error(r(166));return it(i),null}n=oe.current,Tr(i)?Hp(i):(n=bg(f,o,l),i.stateNode=n,Sa(i))}return it(i),null;case 5:if(Oi(i),f=i.type,n!==null&&i.stateNode!=null)n.memoizedProps!==o&&Sa(i);else{if(!o){if(i.stateNode===null)throw Error(r(166));return it(i),null}if(h=oe.current,Tr(i))Hp(i);else{var g=os(_e.current);switch(h){case 1:h=g.createElementNS("http://www.w3.org/2000/svg",f);break;case 2:h=g.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;default:switch(f){case"svg":h=g.createElementNS("http://www.w3.org/2000/svg",f);break;case"math":h=g.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;case"script":h=g.createElement("div"),h.innerHTML="<script><\/script>",h=h.removeChild(h.firstChild);break;case"select":h=typeof o.is=="string"?g.createElement("select",{is:o.is}):g.createElement("select"),o.multiple?h.multiple=!0:o.size&&(h.size=o.size);break;default:h=typeof o.is=="string"?g.createElement(f,{is:o.is}):g.createElement(f)}}h[Ut]=i,h[en]=o;e:for(g=i.child;g!==null;){if(g.tag===5||g.tag===6)h.appendChild(g.stateNode);else if(g.tag!==4&&g.tag!==27&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===i)break e;for(;g.sibling===null;){if(g.return===null||g.return===i)break e;g=g.return}g.sibling.return=g.return,g=g.sibling}i.stateNode=h;e:switch(Bt(h,f,o),f){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&Sa(i)}}return it(i),Gf(i,i.type,n===null?null:n.memoizedProps,i.pendingProps,l),null;case 6:if(n&&i.stateNode!=null)n.memoizedProps!==o&&Sa(i);else{if(typeof o!="string"&&i.stateNode===null)throw Error(r(166));if(n=_e.current,Tr(i)){if(n=i.stateNode,l=i.memoizedProps,o=null,f=Lt,f!==null)switch(f.tag){case 27:case 5:o=f.memoizedProps}n[Ut]=i,n=!!(n.nodeValue===l||o!==null&&o.suppressHydrationWarning===!0||og(n.nodeValue,l)),n||Ia(i,!0)}else n=os(n).createTextNode(o),n[Ut]=i,i.stateNode=n}return it(i),null;case 31:if(l=i.memoizedState,n===null||n.memoizedState!==null){if(o=Tr(i),l!==null){if(n===null){if(!o)throw Error(r(318));if(n=i.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(557));n[Ut]=i}else Fi(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;it(i),n=!1}else l=nf(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=l),n=!0;if(!n)return i.flags&256?(vn(i),i):(vn(i),null);if((i.flags&128)!==0)throw Error(r(558))}return it(i),null;case 13:if(o=i.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(f=Tr(i),o!==null&&o.dehydrated!==null){if(n===null){if(!f)throw Error(r(318));if(f=i.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(r(317));f[Ut]=i}else Fi(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;it(i),f=!1}else f=nf(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=f),f=!0;if(!f)return i.flags&256?(vn(i),i):(vn(i),null)}return vn(i),(i.flags&128)!==0?(i.lanes=l,i):(l=o!==null,n=n!==null&&n.memoizedState!==null,l&&(o=i.child,f=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(f=o.alternate.memoizedState.cachePool.pool),h=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(h=o.memoizedState.cachePool.pool),h!==f&&(o.flags|=2048)),l!==n&&l&&(i.child.flags|=8192),Go(i,i.updateQueue),it(i),null);case 4:return ct(),n===null&&pd(i.stateNode.containerInfo),it(i),null;case 10:return ya(i.type),it(i),null;case 19:if(G(bt),o=i.memoizedState,o===null)return it(i),null;if(f=(i.flags&128)!==0,h=o.rendering,h===null)if(f)lu(o,!1);else{if(mt!==0||n!==null&&(n.flags&128)!==0)for(n=i.child;n!==null;){if(h=jo(n),h!==null){for(i.flags|=128,lu(o,!1),n=h.updateQueue,i.updateQueue=n,Go(i,n),i.subtreeFlags=0,n=l,l=i.child;l!==null;)qp(l,n),l=l.sibling;return ae(bt,bt.current&1|2),Ve&&pa(i,o.treeForkCount),i.child}n=n.sibling}o.tail!==null&&L()>Ko&&(i.flags|=128,f=!0,lu(o,!1),i.lanes=4194304)}else{if(!f)if(n=jo(h),n!==null){if(i.flags|=128,f=!0,n=n.updateQueue,i.updateQueue=n,Go(i,n),lu(o,!0),o.tail===null&&o.tailMode==="hidden"&&!h.alternate&&!Ve)return it(i),null}else 2*L()-o.renderingStartTime>Ko&&l!==536870912&&(i.flags|=128,f=!0,lu(o,!1),i.lanes=4194304);o.isBackwards?(h.sibling=i.child,i.child=h):(n=o.last,n!==null?n.sibling=h:i.child=h,o.last=h)}return o.tail!==null?(n=o.tail,o.rendering=n,o.tail=n.sibling,o.renderingStartTime=L(),n.sibling=null,l=bt.current,ae(bt,f?l&1|2:l&1),Ve&&pa(i,o.treeForkCount),n):(it(i),null);case 22:case 23:return vn(i),vf(),o=i.memoizedState!==null,n!==null?n.memoizedState!==null!==o&&(i.flags|=8192):o&&(i.flags|=8192),o?(l&536870912)!==0&&(i.flags&128)===0&&(it(i),i.subtreeFlags&6&&(i.flags|=8192)):it(i),l=i.updateQueue,l!==null&&Go(i,l.retryQueue),l=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(l=n.memoizedState.cachePool.pool),o=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(o=i.memoizedState.cachePool.pool),o!==l&&(i.flags|=2048),n!==null&&G(Li),null;case 24:return l=null,n!==null&&(l=n.memoizedState.cache),i.memoizedState.cache!==l&&(i.flags|=2048),ya(Et),it(i),null;case 25:return null;case 30:return null}throw Error(r(156,i.tag))}function LE(n,i){switch(ef(i),i.tag){case 1:return n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 3:return ya(Et),ct(),n=i.flags,(n&65536)!==0&&(n&128)===0?(i.flags=n&-65537|128,i):null;case 26:case 27:case 5:return Oi(i),null;case 31:if(i.memoizedState!==null){if(vn(i),i.alternate===null)throw Error(r(340));Fi()}return n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 13:if(vn(i),n=i.memoizedState,n!==null&&n.dehydrated!==null){if(i.alternate===null)throw Error(r(340));Fi()}return n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 19:return G(bt),null;case 4:return ct(),null;case 10:return ya(i.type),null;case 22:case 23:return vn(i),vf(),n!==null&&G(Li),n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 24:return ya(Et),null;case 25:return null;default:return null}}function hy(n,i){switch(ef(i),i.tag){case 3:ya(Et),ct();break;case 26:case 27:case 5:Oi(i);break;case 4:ct();break;case 31:i.memoizedState!==null&&vn(i);break;case 13:vn(i);break;case 19:G(bt);break;case 10:ya(i.type);break;case 22:case 23:vn(i),vf(),n!==null&&G(Li);break;case 24:ya(Et)}}function uu(n,i){try{var l=i.updateQueue,o=l!==null?l.lastEffect:null;if(o!==null){var f=o.next;l=f;do{if((l.tag&n)===n){o=void 0;var h=l.create,g=l.inst;o=h(),g.destroy=o}l=l.next}while(l!==f)}}catch(k){Ye(i,i.return,k)}}function Xa(n,i,l){try{var o=i.updateQueue,f=o!==null?o.lastEffect:null;if(f!==null){var h=f.next;o=h;do{if((o.tag&n)===n){var g=o.inst,k=g.destroy;if(k!==void 0){g.destroy=void 0,f=i;var x=l,Q=k;try{Q()}catch(Y){Ye(f,x,Y)}}}o=o.next}while(o!==h)}}catch(Y){Ye(i,i.return,Y)}}function my(n){var i=n.updateQueue;if(i!==null){var l=n.stateNode;try{iv(i,l)}catch(o){Ye(n,n.return,o)}}}function py(n,i,l){l.props=Zi(n.type,n.memoizedProps),l.state=n.memoizedState;try{l.componentWillUnmount()}catch(o){Ye(n,i,o)}}function ou(n,i){try{var l=n.ref;if(l!==null){switch(n.tag){case 26:case 27:case 5:var o=n.stateNode;break;case 30:o=n.stateNode;break;default:o=n.stateNode}typeof l=="function"?n.refCleanup=l(o):l.current=o}}catch(f){Ye(n,i,f)}}function ta(n,i){var l=n.ref,o=n.refCleanup;if(l!==null)if(typeof o=="function")try{o()}catch(f){Ye(n,i,f)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(f){Ye(n,i,f)}else l.current=null}function vy(n){var i=n.type,l=n.memoizedProps,o=n.stateNode;try{e:switch(i){case"button":case"input":case"select":case"textarea":l.autoFocus&&o.focus();break e;case"img":l.src?o.src=l.src:l.srcSet&&(o.srcset=l.srcSet)}}catch(f){Ye(n,n.return,f)}}function Yf(n,i,l){try{var o=n.stateNode;uN(o,n.type,l,i),o[en]=i}catch(f){Ye(n,n.return,f)}}function yy(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&ai(n.type)||n.tag===4}function Pf(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||yy(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.tag===27&&ai(n.type)||n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function Xf(n,i,l){var o=n.tag;if(o===5||o===6)n=n.stateNode,i?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(n,i):(i=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,i.appendChild(n),l=l._reactRootContainer,l!=null||i.onclick!==null||(i.onclick=da));else if(o!==4&&(o===27&&ai(n.type)&&(l=n.stateNode,i=null),n=n.child,n!==null))for(Xf(n,i,l),n=n.sibling;n!==null;)Xf(n,i,l),n=n.sibling}function Yo(n,i,l){var o=n.tag;if(o===5||o===6)n=n.stateNode,i?l.insertBefore(n,i):l.appendChild(n);else if(o!==4&&(o===27&&ai(n.type)&&(l=n.stateNode),n=n.child,n!==null))for(Yo(n,i,l),n=n.sibling;n!==null;)Yo(n,i,l),n=n.sibling}function gy(n){var i=n.stateNode,l=n.memoizedProps;try{for(var o=n.type,f=i.attributes;f.length;)i.removeAttributeNode(f[0]);Bt(i,o,l),i[Ut]=n,i[en]=l}catch(h){Ye(n,n.return,h)}}var ka=!1,Ot=!1,Jf=!1,by=typeof WeakSet=="function"?WeakSet:Set,Ct=null;function qE(n,i){if(n=n.containerInfo,gd=ps,n=Ap(n),Ic(n)){if("selectionStart"in n)var l={start:n.selectionStart,end:n.selectionEnd};else e:{l=(l=n.ownerDocument)&&l.defaultView||window;var o=l.getSelection&&l.getSelection();if(o&&o.rangeCount!==0){l=o.anchorNode;var f=o.anchorOffset,h=o.focusNode;o=o.focusOffset;try{l.nodeType,h.nodeType}catch{l=null;break e}var g=0,k=-1,x=-1,Q=0,Y=0,K=n,B=null;t:for(;;){for(var H;K!==l||f!==0&&K.nodeType!==3||(k=g+f),K!==h||o!==0&&K.nodeType!==3||(x=g+o),K.nodeType===3&&(g+=K.nodeValue.length),(H=K.firstChild)!==null;)B=K,K=H;for(;;){if(K===n)break t;if(B===l&&++Q===f&&(k=g),B===h&&++Y===o&&(x=g),(H=K.nextSibling)!==null)break;K=B,B=K.parentNode}K=H}l=k===-1||x===-1?null:{start:k,end:x}}else l=null}l=l||{start:0,end:0}}else l=null;for(bd={focusedElem:n,selectionRange:l},ps=!1,Ct=i;Ct!==null;)if(i=Ct,n=i.child,(i.subtreeFlags&1028)!==0&&n!==null)n.return=i,Ct=n;else for(;Ct!==null;){switch(i=Ct,h=i.alternate,n=i.flags,i.tag){case 0:if((n&4)!==0&&(n=i.updateQueue,n=n!==null?n.events:null,n!==null))for(l=0;l<n.length;l++)f=n[l],f.ref.impl=f.nextImpl;break;case 11:case 15:break;case 1:if((n&1024)!==0&&h!==null){n=void 0,l=i,f=h.memoizedProps,h=h.memoizedState,o=l.stateNode;try{var pe=Zi(l.type,f);n=o.getSnapshotBeforeUpdate(pe,h),o.__reactInternalSnapshotBeforeUpdate=n}catch(Ee){Ye(l,l.return,Ee)}}break;case 3:if((n&1024)!==0){if(n=i.stateNode.containerInfo,l=n.nodeType,l===9)kd(n);else if(l===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":kd(n);break;default:n.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((n&1024)!==0)throw Error(r(163))}if(n=i.sibling,n!==null){n.return=i.return,Ct=n;break}Ct=i.return}}function _y(n,i,l){var o=l.flags;switch(l.tag){case 0:case 11:case 15:Na(n,l),o&4&&uu(5,l);break;case 1:if(Na(n,l),o&4)if(n=l.stateNode,i===null)try{n.componentDidMount()}catch(g){Ye(l,l.return,g)}else{var f=Zi(l.type,i.memoizedProps);i=i.memoizedState;try{n.componentDidUpdate(f,i,n.__reactInternalSnapshotBeforeUpdate)}catch(g){Ye(l,l.return,g)}}o&64&&my(l),o&512&&ou(l,l.return);break;case 3:if(Na(n,l),o&64&&(n=l.updateQueue,n!==null)){if(i=null,l.child!==null)switch(l.child.tag){case 27:case 5:i=l.child.stateNode;break;case 1:i=l.child.stateNode}try{iv(n,i)}catch(g){Ye(l,l.return,g)}}break;case 27:i===null&&o&4&&gy(l);case 26:case 5:Na(n,l),i===null&&o&4&&vy(l),o&512&&ou(l,l.return);break;case 12:Na(n,l);break;case 31:Na(n,l),o&4&&Ey(n,l);break;case 13:Na(n,l),o&4&&Ny(n,l),o&64&&(n=l.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&(l=PE.bind(null,l),pN(n,l))));break;case 22:if(o=l.memoizedState!==null||ka,!o){i=i!==null&&i.memoizedState!==null||Ot,f=ka;var h=Ot;ka=o,(Ot=i)&&!h?Ta(n,l,(l.subtreeFlags&8772)!==0):Na(n,l),ka=f,Ot=h}break;case 30:break;default:Na(n,l)}}function Sy(n){var i=n.alternate;i!==null&&(n.alternate=null,Sy(i)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(i=n.stateNode,i!==null&&Oc(i)),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}var lt=null,nn=!1;function Ea(n,i,l){for(l=l.child;l!==null;)ky(n,i,l),l=l.sibling}function ky(n,i,l){if(Xe&&typeof Xe.onCommitFiberUnmount=="function")try{Xe.onCommitFiberUnmount(Ht,l)}catch{}switch(l.tag){case 26:Ot||ta(l,i),Ea(n,i,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Ot||ta(l,i);var o=lt,f=nn;ai(l.type)&&(lt=l.stateNode,nn=!1),Ea(n,i,l),yu(l.stateNode),lt=o,nn=f;break;case 5:Ot||ta(l,i);case 6:if(o=lt,f=nn,lt=null,Ea(n,i,l),lt=o,nn=f,lt!==null)if(nn)try{(lt.nodeType===9?lt.body:lt.nodeName==="HTML"?lt.ownerDocument.body:lt).removeChild(l.stateNode)}catch(h){Ye(l,i,h)}else try{lt.removeChild(l.stateNode)}catch(h){Ye(l,i,h)}break;case 18:lt!==null&&(nn?(n=lt,mg(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,l.stateNode),$r(n)):mg(lt,l.stateNode));break;case 4:o=lt,f=nn,lt=l.stateNode.containerInfo,nn=!0,Ea(n,i,l),lt=o,nn=f;break;case 0:case 11:case 14:case 15:Xa(2,l,i),Ot||Xa(4,l,i),Ea(n,i,l);break;case 1:Ot||(ta(l,i),o=l.stateNode,typeof o.componentWillUnmount=="function"&&py(l,i,o)),Ea(n,i,l);break;case 21:Ea(n,i,l);break;case 22:Ot=(o=Ot)||l.memoizedState!==null,Ea(n,i,l),Ot=o;break;default:Ea(n,i,l)}}function Ey(n,i){if(i.memoizedState===null&&(n=i.alternate,n!==null&&(n=n.memoizedState,n!==null))){n=n.dehydrated;try{$r(n)}catch(l){Ye(i,i.return,l)}}}function Ny(n,i){if(i.memoizedState===null&&(n=i.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{$r(n)}catch(l){Ye(i,i.return,l)}}function QE(n){switch(n.tag){case 31:case 13:case 19:var i=n.stateNode;return i===null&&(i=n.stateNode=new by),i;case 22:return n=n.stateNode,i=n._retryCache,i===null&&(i=n._retryCache=new by),i;default:throw Error(r(435,n.tag))}}function Po(n,i){var l=QE(n);i.forEach(function(o){if(!l.has(o)){l.add(o);var f=XE.bind(null,n,o);o.then(f,f)}})}function an(n,i){var l=i.deletions;if(l!==null)for(var o=0;o<l.length;o++){var f=l[o],h=n,g=i,k=g;e:for(;k!==null;){switch(k.tag){case 27:if(ai(k.type)){lt=k.stateNode,nn=!1;break e}break;case 5:lt=k.stateNode,nn=!1;break e;case 3:case 4:lt=k.stateNode.containerInfo,nn=!0;break e}k=k.return}if(lt===null)throw Error(r(160));ky(h,g,f),lt=null,nn=!1,h=f.alternate,h!==null&&(h.return=null),f.return=null}if(i.subtreeFlags&13886)for(i=i.child;i!==null;)Ty(i,n),i=i.sibling}var Ln=null;function Ty(n,i){var l=n.alternate,o=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:an(i,n),rn(n),o&4&&(Xa(3,n,n.return),uu(3,n),Xa(5,n,n.return));break;case 1:an(i,n),rn(n),o&512&&(Ot||l===null||ta(l,l.return)),o&64&&ka&&(n=n.updateQueue,n!==null&&(o=n.callbacks,o!==null&&(l=n.shared.hiddenCallbacks,n.shared.hiddenCallbacks=l===null?o:l.concat(o))));break;case 26:var f=Ln;if(an(i,n),rn(n),o&512&&(Ot||l===null||ta(l,l.return)),o&4){var h=l!==null?l.memoizedState:null;if(o=n.memoizedState,l===null)if(o===null)if(n.stateNode===null){e:{o=n.type,l=n.memoizedProps,f=f.ownerDocument||f;t:switch(o){case"title":h=f.getElementsByTagName("title")[0],(!h||h[Ml]||h[Ut]||h.namespaceURI==="http://www.w3.org/2000/svg"||h.hasAttribute("itemprop"))&&(h=f.createElement(o),f.head.insertBefore(h,f.querySelector("head > title"))),Bt(h,o,l),h[Ut]=n,zt(h),o=h;break e;case"link":var g=Tg("link","href",f).get(o+(l.href||""));if(g){for(var k=0;k<g.length;k++)if(h=g[k],h.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&h.getAttribute("rel")===(l.rel==null?null:l.rel)&&h.getAttribute("title")===(l.title==null?null:l.title)&&h.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){g.splice(k,1);break t}}h=f.createElement(o),Bt(h,o,l),f.head.appendChild(h);break;case"meta":if(g=Tg("meta","content",f).get(o+(l.content||""))){for(k=0;k<g.length;k++)if(h=g[k],h.getAttribute("content")===(l.content==null?null:""+l.content)&&h.getAttribute("name")===(l.name==null?null:l.name)&&h.getAttribute("property")===(l.property==null?null:l.property)&&h.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&h.getAttribute("charset")===(l.charSet==null?null:l.charSet)){g.splice(k,1);break t}}h=f.createElement(o),Bt(h,o,l),f.head.appendChild(h);break;default:throw Error(r(468,o))}h[Ut]=n,zt(h),o=h}n.stateNode=o}else Og(f,n.type,n.stateNode);else n.stateNode=Ng(f,o,n.memoizedProps);else h!==o?(h===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):h.count--,o===null?Og(f,n.type,n.stateNode):Ng(f,o,n.memoizedProps)):o===null&&n.stateNode!==null&&Yf(n,n.memoizedProps,l.memoizedProps)}break;case 27:an(i,n),rn(n),o&512&&(Ot||l===null||ta(l,l.return)),l!==null&&o&4&&Yf(n,n.memoizedProps,l.memoizedProps);break;case 5:if(an(i,n),rn(n),o&512&&(Ot||l===null||ta(l,l.return)),n.flags&32){f=n.stateNode;try{pr(f,"")}catch(pe){Ye(n,n.return,pe)}}o&4&&n.stateNode!=null&&(f=n.memoizedProps,Yf(n,f,l!==null?l.memoizedProps:f)),o&1024&&(Jf=!0);break;case 6:if(an(i,n),rn(n),o&4){if(n.stateNode===null)throw Error(r(162));o=n.memoizedProps,l=n.stateNode;try{l.nodeValue=o}catch(pe){Ye(n,n.return,pe)}}break;case 3:if(fs=null,f=Ln,Ln=ss(i.containerInfo),an(i,n),Ln=f,rn(n),o&4&&l!==null&&l.memoizedState.isDehydrated)try{$r(i.containerInfo)}catch(pe){Ye(n,n.return,pe)}Jf&&(Jf=!1,Oy(n));break;case 4:o=Ln,Ln=ss(n.stateNode.containerInfo),an(i,n),rn(n),Ln=o;break;case 12:an(i,n),rn(n);break;case 31:an(i,n),rn(n),o&4&&(o=n.updateQueue,o!==null&&(n.updateQueue=null,Po(n,o)));break;case 13:an(i,n),rn(n),n.child.flags&8192&&n.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Jo=L()),o&4&&(o=n.updateQueue,o!==null&&(n.updateQueue=null,Po(n,o)));break;case 22:f=n.memoizedState!==null;var x=l!==null&&l.memoizedState!==null,Q=ka,Y=Ot;if(ka=Q||f,Ot=Y||x,an(i,n),Ot=Y,ka=Q,rn(n),o&8192)e:for(i=n.stateNode,i._visibility=f?i._visibility&-2:i._visibility|1,f&&(l===null||x||ka||Ot||Hi(n)),l=null,i=n;;){if(i.tag===5||i.tag===26){if(l===null){x=l=i;try{if(h=x.stateNode,f)g=h.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none";else{k=x.stateNode;var K=x.memoizedProps.style,B=K!=null&&K.hasOwnProperty("display")?K.display:null;k.style.display=B==null||typeof B=="boolean"?"":(""+B).trim()}}catch(pe){Ye(x,x.return,pe)}}}else if(i.tag===6){if(l===null){x=i;try{x.stateNode.nodeValue=f?"":x.memoizedProps}catch(pe){Ye(x,x.return,pe)}}}else if(i.tag===18){if(l===null){x=i;try{var H=x.stateNode;f?pg(H,!0):pg(x.stateNode,!1)}catch(pe){Ye(x,x.return,pe)}}}else if((i.tag!==22&&i.tag!==23||i.memoizedState===null||i===n)&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===n)break e;for(;i.sibling===null;){if(i.return===null||i.return===n)break e;l===i&&(l=null),i=i.return}l===i&&(l=null),i.sibling.return=i.return,i=i.sibling}o&4&&(o=n.updateQueue,o!==null&&(l=o.retryQueue,l!==null&&(o.retryQueue=null,Po(n,l))));break;case 19:an(i,n),rn(n),o&4&&(o=n.updateQueue,o!==null&&(n.updateQueue=null,Po(n,o)));break;case 30:break;case 21:break;default:an(i,n),rn(n)}}function rn(n){var i=n.flags;if(i&2){try{for(var l,o=n.return;o!==null;){if(yy(o)){l=o;break}o=o.return}if(l==null)throw Error(r(160));switch(l.tag){case 27:var f=l.stateNode,h=Pf(n);Yo(n,h,f);break;case 5:var g=l.stateNode;l.flags&32&&(pr(g,""),l.flags&=-33);var k=Pf(n);Yo(n,k,g);break;case 3:case 4:var x=l.stateNode.containerInfo,Q=Pf(n);Xf(n,Q,x);break;default:throw Error(r(161))}}catch(Y){Ye(n,n.return,Y)}n.flags&=-3}i&4096&&(n.flags&=-4097)}function Oy(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var i=n;Oy(i),i.tag===5&&i.flags&1024&&i.stateNode.reset(),n=n.sibling}}function Na(n,i){if(i.subtreeFlags&8772)for(i=i.child;i!==null;)_y(n,i.alternate,i),i=i.sibling}function Hi(n){for(n=n.child;n!==null;){var i=n;switch(i.tag){case 0:case 11:case 14:case 15:Xa(4,i,i.return),Hi(i);break;case 1:ta(i,i.return);var l=i.stateNode;typeof l.componentWillUnmount=="function"&&py(i,i.return,l),Hi(i);break;case 27:yu(i.stateNode);case 26:case 5:ta(i,i.return),Hi(i);break;case 22:i.memoizedState===null&&Hi(i);break;case 30:Hi(i);break;default:Hi(i)}n=n.sibling}}function Ta(n,i,l){for(l=l&&(i.subtreeFlags&8772)!==0,i=i.child;i!==null;){var o=i.alternate,f=n,h=i,g=h.flags;switch(h.tag){case 0:case 11:case 15:Ta(f,h,l),uu(4,h);break;case 1:if(Ta(f,h,l),o=h,f=o.stateNode,typeof f.componentDidMount=="function")try{f.componentDidMount()}catch(Q){Ye(o,o.return,Q)}if(o=h,f=o.updateQueue,f!==null){var k=o.stateNode;try{var x=f.shared.hiddenCallbacks;if(x!==null)for(f.shared.hiddenCallbacks=null,f=0;f<x.length;f++)av(x[f],k)}catch(Q){Ye(o,o.return,Q)}}l&&g&64&&my(h),ou(h,h.return);break;case 27:gy(h);case 26:case 5:Ta(f,h,l),l&&o===null&&g&4&&vy(h),ou(h,h.return);break;case 12:Ta(f,h,l);break;case 31:Ta(f,h,l),l&&g&4&&Ey(f,h);break;case 13:Ta(f,h,l),l&&g&4&&Ny(f,h);break;case 22:h.memoizedState===null&&Ta(f,h,l),ou(h,h.return);break;case 30:break;default:Ta(f,h,l)}i=i.sibling}}function Kf(n,i){var l=null;n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(l=n.memoizedState.cachePool.pool),n=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(n=i.memoizedState.cachePool.pool),n!==l&&(n!=null&&n.refCount++,l!=null&&Yl(l))}function Wf(n,i){n=null,i.alternate!==null&&(n=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==n&&(i.refCount++,n!=null&&Yl(n))}function qn(n,i,l,o){if(i.subtreeFlags&10256)for(i=i.child;i!==null;)wy(n,i,l,o),i=i.sibling}function wy(n,i,l,o){var f=i.flags;switch(i.tag){case 0:case 11:case 15:qn(n,i,l,o),f&2048&&uu(9,i);break;case 1:qn(n,i,l,o);break;case 3:qn(n,i,l,o),f&2048&&(n=null,i.alternate!==null&&(n=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==n&&(i.refCount++,n!=null&&Yl(n)));break;case 12:if(f&2048){qn(n,i,l,o),n=i.stateNode;try{var h=i.memoizedProps,g=h.id,k=h.onPostCommit;typeof k=="function"&&k(g,i.alternate===null?"mount":"update",n.passiveEffectDuration,-0)}catch(x){Ye(i,i.return,x)}}else qn(n,i,l,o);break;case 31:qn(n,i,l,o);break;case 13:qn(n,i,l,o);break;case 23:break;case 22:h=i.stateNode,g=i.alternate,i.memoizedState!==null?h._visibility&2?qn(n,i,l,o):su(n,i):h._visibility&2?qn(n,i,l,o):(h._visibility|=2,Mr(n,i,l,o,(i.subtreeFlags&10256)!==0||!1)),f&2048&&Kf(g,i);break;case 24:qn(n,i,l,o),f&2048&&Wf(i.alternate,i);break;default:qn(n,i,l,o)}}function Mr(n,i,l,o,f){for(f=f&&((i.subtreeFlags&10256)!==0||!1),i=i.child;i!==null;){var h=n,g=i,k=l,x=o,Q=g.flags;switch(g.tag){case 0:case 11:case 15:Mr(h,g,k,x,f),uu(8,g);break;case 23:break;case 22:var Y=g.stateNode;g.memoizedState!==null?Y._visibility&2?Mr(h,g,k,x,f):su(h,g):(Y._visibility|=2,Mr(h,g,k,x,f)),f&&Q&2048&&Kf(g.alternate,g);break;case 24:Mr(h,g,k,x,f),f&&Q&2048&&Wf(g.alternate,g);break;default:Mr(h,g,k,x,f)}i=i.sibling}}function su(n,i){if(i.subtreeFlags&10256)for(i=i.child;i!==null;){var l=n,o=i,f=o.flags;switch(o.tag){case 22:su(l,o),f&2048&&Kf(o.alternate,o);break;case 24:su(l,o),f&2048&&Wf(o.alternate,o);break;default:su(l,o)}i=i.sibling}}var cu=8192;function Fr(n,i,l){if(n.subtreeFlags&cu)for(n=n.child;n!==null;)Dy(n,i,l),n=n.sibling}function Dy(n,i,l){switch(n.tag){case 26:Fr(n,i,l),n.flags&cu&&n.memoizedState!==null&&wN(l,Ln,n.memoizedState,n.memoizedProps);break;case 5:Fr(n,i,l);break;case 3:case 4:var o=Ln;Ln=ss(n.stateNode.containerInfo),Fr(n,i,l),Ln=o;break;case 22:n.memoizedState===null&&(o=n.alternate,o!==null&&o.memoizedState!==null?(o=cu,cu=16777216,Fr(n,i,l),cu=o):Fr(n,i,l));break;default:Fr(n,i,l)}}function xy(n){var i=n.alternate;if(i!==null&&(n=i.child,n!==null)){i.child=null;do i=n.sibling,n.sibling=null,n=i;while(n!==null)}}function fu(n){var i=n.deletions;if((n.flags&16)!==0){if(i!==null)for(var l=0;l<i.length;l++){var o=i[l];Ct=o,Ay(o,n)}xy(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)Ry(n),n=n.sibling}function Ry(n){switch(n.tag){case 0:case 11:case 15:fu(n),n.flags&2048&&Xa(9,n,n.return);break;case 3:fu(n);break;case 12:fu(n);break;case 22:var i=n.stateNode;n.memoizedState!==null&&i._visibility&2&&(n.return===null||n.return.tag!==13)?(i._visibility&=-3,Xo(n)):fu(n);break;default:fu(n)}}function Xo(n){var i=n.deletions;if((n.flags&16)!==0){if(i!==null)for(var l=0;l<i.length;l++){var o=i[l];Ct=o,Ay(o,n)}xy(n)}for(n=n.child;n!==null;){switch(i=n,i.tag){case 0:case 11:case 15:Xa(8,i,i.return),Xo(i);break;case 22:l=i.stateNode,l._visibility&2&&(l._visibility&=-3,Xo(i));break;default:Xo(i)}n=n.sibling}}function Ay(n,i){for(;Ct!==null;){var l=Ct;switch(l.tag){case 0:case 11:case 15:Xa(8,l,i);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var o=l.memoizedState.cachePool.pool;o!=null&&o.refCount++}break;case 24:Yl(l.memoizedState.cache)}if(o=l.child,o!==null)o.return=l,Ct=o;else e:for(l=n;Ct!==null;){o=Ct;var f=o.sibling,h=o.return;if(Sy(o),o===l){Ct=null;break e}if(f!==null){f.return=h,Ct=f;break e}Ct=h}}}var BE={getCacheForType:function(n){var i=qt(Et),l=i.data.get(n);return l===void 0&&(l=n(),i.data.set(n,l)),l},cacheSignal:function(){return qt(Et).controller.signal}},IE=typeof WeakMap=="function"?WeakMap:Map,He=0,tt=null,ze=null,Me=0,Ge=0,yn=null,Ja=!1,Vr=!1,ed=!1,Oa=0,mt=0,Ka=0,$i=0,td=0,gn=0,Ur=0,du=null,ln=null,nd=!1,Jo=0,zy=0,Ko=1/0,Wo=null,Wa=null,Rt=0,ei=null,Lr=null,wa=0,ad=0,id=null,Cy=null,hu=0,rd=null;function bn(){return(He&2)!==0&&Me!==0?Me&-Me:U.T!==null?fd():Pm()}function jy(){if(gn===0)if((Me&536870912)===0||Ve){var n=Di;Di<<=1,(Di&3932160)===0&&(Di=262144),gn=n}else gn=536870912;return n=pn.current,n!==null&&(n.flags|=32),gn}function un(n,i,l){(n===tt&&(Ge===2||Ge===9)||n.cancelPendingCommit!==null)&&(qr(n,0),ti(n,Me,gn,!1)),jl(n,l),((He&2)===0||n!==tt)&&(n===tt&&((He&2)===0&&($i|=l),mt===4&&ti(n,Me,gn,!1)),na(n))}function My(n,i,l){if((He&6)!==0)throw Error(r(327));var o=!l&&(i&127)===0&&(i&n.expiredLanes)===0||Cl(n,i),f=o?$E(n,i):ud(n,i,!0),h=o;do{if(f===0){Vr&&!o&&ti(n,i,0,!1);break}else{if(l=n.current.alternate,h&&!ZE(l)){f=ud(n,i,!1),h=!1;continue}if(f===2){if(h=i,n.errorRecoveryDisabledLanes&h)var g=0;else g=n.pendingLanes&-536870913,g=g!==0?g:g&536870912?536870912:0;if(g!==0){i=g;e:{var k=n;f=du;var x=k.current.memoizedState.isDehydrated;if(x&&(qr(k,g).flags|=256),g=ud(k,g,!1),g!==2){if(ed&&!x){k.errorRecoveryDisabledLanes|=h,$i|=h,f=4;break e}h=ln,ln=f,h!==null&&(ln===null?ln=h:ln.push.apply(ln,h))}f=g}if(h=!1,f!==2)continue}}if(f===1){qr(n,0),ti(n,i,0,!0);break}e:{switch(o=n,h=f,h){case 0:case 1:throw Error(r(345));case 4:if((i&4194048)!==i)break;case 6:ti(o,i,gn,!Ja);break e;case 2:ln=null;break;case 3:case 5:break;default:throw Error(r(329))}if((i&62914560)===i&&(f=Jo+300-L(),10<f)){if(ti(o,i,gn,!Ja),oo(o,0,!0)!==0)break e;wa=i,o.timeoutHandle=dg(Fy.bind(null,o,l,ln,Wo,nd,i,gn,$i,Ur,Ja,h,"Throttled",-0,0),f);break e}Fy(o,l,ln,Wo,nd,i,gn,$i,Ur,Ja,h,null,-0,0)}}break}while(!0);na(n)}function Fy(n,i,l,o,f,h,g,k,x,Q,Y,K,B,H){if(n.timeoutHandle=-1,K=i.subtreeFlags,K&8192||(K&16785408)===16785408){K={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:da},Dy(i,h,K);var pe=(h&62914560)===h?Jo-L():(h&4194048)===h?zy-L():0;if(pe=DN(K,pe),pe!==null){wa=h,n.cancelPendingCommit=pe(Zy.bind(null,n,i,h,l,o,f,g,k,x,Y,K,null,B,H)),ti(n,h,g,!Q);return}}Zy(n,i,h,l,o,f,g,k,x)}function ZE(n){for(var i=n;;){var l=i.tag;if((l===0||l===11||l===15)&&i.flags&16384&&(l=i.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var o=0;o<l.length;o++){var f=l[o],h=f.getSnapshot;f=f.value;try{if(!hn(h(),f))return!1}catch{return!1}}if(l=i.child,i.subtreeFlags&16384&&l!==null)l.return=i,i=l;else{if(i===n)break;for(;i.sibling===null;){if(i.return===null||i.return===n)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function ti(n,i,l,o){i&=~td,i&=~$i,n.suspendedLanes|=i,n.pingedLanes&=~i,o&&(n.warmLanes|=i),o=n.expirationTimes;for(var f=i;0<f;){var h=31-Vt(f),g=1<<h;o[h]=-1,f&=~g}l!==0&&$m(n,l,i)}function es(){return(He&6)===0?(mu(0),!1):!0}function ld(){if(ze!==null){if(Ge===0)var n=ze.return;else n=ze,va=Vi=null,kf(n),Rr=null,Xl=0,n=ze;for(;n!==null;)hy(n.alternate,n),n=n.return;ze=null}}function qr(n,i){var l=n.timeoutHandle;l!==-1&&(n.timeoutHandle=-1,cN(l)),l=n.cancelPendingCommit,l!==null&&(n.cancelPendingCommit=null,l()),wa=0,ld(),tt=n,ze=l=ma(n.current,null),Me=i,Ge=0,yn=null,Ja=!1,Vr=Cl(n,i),ed=!1,Ur=gn=td=$i=Ka=mt=0,ln=du=null,nd=!1,(i&8)!==0&&(i|=i&32);var o=n.entangledLanes;if(o!==0)for(n=n.entanglements,o&=i;0<o;){var f=31-Vt(o),h=1<<f;i|=n[f],o&=~h}return Oa=i,So(),l}function Vy(n,i){De=null,U.H=iu,i===xr||i===xo?(i=Wp(),Ge=3):i===cf?(i=Wp(),Ge=4):Ge=i===Uf?8:i!==null&&typeof i=="object"&&typeof i.then=="function"?6:1,yn=i,ze===null&&(mt=1,Io(n,wn(i,n.current)))}function Uy(){var n=pn.current;return n===null?!0:(Me&4194048)===Me?An===null:(Me&62914560)===Me||(Me&536870912)!==0?n===An:!1}function Ly(){var n=U.H;return U.H=iu,n===null?iu:n}function qy(){var n=U.A;return U.A=BE,n}function ts(){mt=4,Ja||(Me&4194048)!==Me&&pn.current!==null||(Vr=!0),(Ka&134217727)===0&&($i&134217727)===0||tt===null||ti(tt,Me,gn,!1)}function ud(n,i,l){var o=He;He|=2;var f=Ly(),h=qy();(tt!==n||Me!==i)&&(Wo=null,qr(n,i)),i=!1;var g=mt;e:do try{if(Ge!==0&&ze!==null){var k=ze,x=yn;switch(Ge){case 8:ld(),g=6;break e;case 3:case 2:case 9:case 6:pn.current===null&&(i=!0);var Q=Ge;if(Ge=0,yn=null,Qr(n,k,x,Q),l&&Vr){g=0;break e}break;default:Q=Ge,Ge=0,yn=null,Qr(n,k,x,Q)}}HE(),g=mt;break}catch(Y){Vy(n,Y)}while(!0);return i&&n.shellSuspendCounter++,va=Vi=null,He=o,U.H=f,U.A=h,ze===null&&(tt=null,Me=0,So()),g}function HE(){for(;ze!==null;)Qy(ze)}function $E(n,i){var l=He;He|=2;var o=Ly(),f=qy();tt!==n||Me!==i?(Wo=null,Ko=L()+500,qr(n,i)):Vr=Cl(n,i);e:do try{if(Ge!==0&&ze!==null){i=ze;var h=yn;t:switch(Ge){case 1:Ge=0,yn=null,Qr(n,i,h,1);break;case 2:case 9:if(Jp(h)){Ge=0,yn=null,By(i);break}i=function(){Ge!==2&&Ge!==9||tt!==n||(Ge=7),na(n)},h.then(i,i);break e;case 3:Ge=7;break e;case 4:Ge=5;break e;case 7:Jp(h)?(Ge=0,yn=null,By(i)):(Ge=0,yn=null,Qr(n,i,h,7));break;case 5:var g=null;switch(ze.tag){case 26:g=ze.memoizedState;case 5:case 27:var k=ze;if(g?wg(g):k.stateNode.complete){Ge=0,yn=null;var x=k.sibling;if(x!==null)ze=x;else{var Q=k.return;Q!==null?(ze=Q,ns(Q)):ze=null}break t}}Ge=0,yn=null,Qr(n,i,h,5);break;case 6:Ge=0,yn=null,Qr(n,i,h,6);break;case 8:ld(),mt=6;break e;default:throw Error(r(462))}}GE();break}catch(Y){Vy(n,Y)}while(!0);return va=Vi=null,U.H=o,U.A=f,He=l,ze!==null?0:(tt=null,Me=0,So(),mt)}function GE(){for(;ze!==null&&!ro();)Qy(ze)}function Qy(n){var i=fy(n.alternate,n,Oa);n.memoizedProps=n.pendingProps,i===null?ns(n):ze=i}function By(n){var i=n,l=i.alternate;switch(i.tag){case 15:case 0:i=ry(l,i,i.pendingProps,i.type,void 0,Me);break;case 11:i=ry(l,i,i.pendingProps,i.type.render,i.ref,Me);break;case 5:kf(i);default:hy(l,i),i=ze=qp(i,Oa),i=fy(l,i,Oa)}n.memoizedProps=n.pendingProps,i===null?ns(n):ze=i}function Qr(n,i,l,o){va=Vi=null,kf(i),Rr=null,Xl=0;var f=i.return;try{if(ME(n,f,i,l,Me)){mt=1,Io(n,wn(l,n.current)),ze=null;return}}catch(h){if(f!==null)throw ze=f,h;mt=1,Io(n,wn(l,n.current)),ze=null;return}i.flags&32768?(Ve||o===1?n=!0:Vr||(Me&536870912)!==0?n=!1:(Ja=n=!0,(o===2||o===9||o===3||o===6)&&(o=pn.current,o!==null&&o.tag===13&&(o.flags|=16384))),Iy(i,n)):ns(i)}function ns(n){var i=n;do{if((i.flags&32768)!==0){Iy(i,Ja);return}n=i.return;var l=UE(i.alternate,i,Oa);if(l!==null){ze=l;return}if(i=i.sibling,i!==null){ze=i;return}ze=i=n}while(i!==null);mt===0&&(mt=5)}function Iy(n,i){do{var l=LE(n.alternate,n);if(l!==null){l.flags&=32767,ze=l;return}if(l=n.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!i&&(n=n.sibling,n!==null)){ze=n;return}ze=n=l}while(n!==null);mt=6,ze=null}function Zy(n,i,l,o,f,h,g,k,x){n.cancelPendingCommit=null;do as();while(Rt!==0);if((He&6)!==0)throw Error(r(327));if(i!==null){if(i===n.current)throw Error(r(177));if(h=i.lanes|i.childLanes,h|=Yc,Ok(n,l,h,g,k,x),n===tt&&(ze=tt=null,Me=0),Lr=i,ei=n,wa=l,ad=h,id=f,Cy=o,(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?(n.callbackNode=null,n.callbackPriority=0,JE(te,function(){return Py(),null})):(n.callbackNode=null,n.callbackPriority=0),o=(i.flags&13878)!==0,(i.subtreeFlags&13878)!==0||o){o=U.T,U.T=null,f=P.p,P.p=2,g=He,He|=4;try{qE(n,i,l)}finally{He=g,P.p=f,U.T=o}}Rt=1,Hy(),$y(),Gy()}}function Hy(){if(Rt===1){Rt=0;var n=ei,i=Lr,l=(i.flags&13878)!==0;if((i.subtreeFlags&13878)!==0||l){l=U.T,U.T=null;var o=P.p;P.p=2;var f=He;He|=4;try{Ty(i,n);var h=bd,g=Ap(n.containerInfo),k=h.focusedElem,x=h.selectionRange;if(g!==k&&k&&k.ownerDocument&&Rp(k.ownerDocument.documentElement,k)){if(x!==null&&Ic(k)){var Q=x.start,Y=x.end;if(Y===void 0&&(Y=Q),"selectionStart"in k)k.selectionStart=Q,k.selectionEnd=Math.min(Y,k.value.length);else{var K=k.ownerDocument||document,B=K&&K.defaultView||window;if(B.getSelection){var H=B.getSelection(),pe=k.textContent.length,Ee=Math.min(x.start,pe),We=x.end===void 0?Ee:Math.min(x.end,pe);!H.extend&&Ee>We&&(g=We,We=Ee,Ee=g);var V=xp(k,Ee),C=xp(k,We);if(V&&C&&(H.rangeCount!==1||H.anchorNode!==V.node||H.anchorOffset!==V.offset||H.focusNode!==C.node||H.focusOffset!==C.offset)){var q=K.createRange();q.setStart(V.node,V.offset),H.removeAllRanges(),Ee>We?(H.addRange(q),H.extend(C.node,C.offset)):(q.setEnd(C.node,C.offset),H.addRange(q))}}}}for(K=[],H=k;H=H.parentNode;)H.nodeType===1&&K.push({element:H,left:H.scrollLeft,top:H.scrollTop});for(typeof k.focus=="function"&&k.focus(),k=0;k<K.length;k++){var X=K[k];X.element.scrollLeft=X.left,X.element.scrollTop=X.top}}ps=!!gd,bd=gd=null}finally{He=f,P.p=o,U.T=l}}n.current=i,Rt=2}}function $y(){if(Rt===2){Rt=0;var n=ei,i=Lr,l=(i.flags&8772)!==0;if((i.subtreeFlags&8772)!==0||l){l=U.T,U.T=null;var o=P.p;P.p=2;var f=He;He|=4;try{_y(n,i.alternate,i)}finally{He=f,P.p=o,U.T=l}}Rt=3}}function Gy(){if(Rt===4||Rt===3){Rt=0,R();var n=ei,i=Lr,l=wa,o=Cy;(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?Rt=5:(Rt=0,Lr=ei=null,Yy(n,n.pendingLanes));var f=n.pendingLanes;if(f===0&&(Wa=null),Nc(l),i=i.stateNode,Xe&&typeof Xe.onCommitFiberRoot=="function")try{Xe.onCommitFiberRoot(Ht,i,void 0,(i.current.flags&128)===128)}catch{}if(o!==null){i=U.T,f=P.p,P.p=2,U.T=null;try{for(var h=n.onRecoverableError,g=0;g<o.length;g++){var k=o[g];h(k.value,{componentStack:k.stack})}}finally{U.T=i,P.p=f}}(wa&3)!==0&&as(),na(n),f=n.pendingLanes,(l&261930)!==0&&(f&42)!==0?n===rd?hu++:(hu=0,rd=n):hu=0,mu(0)}}function Yy(n,i){(n.pooledCacheLanes&=i)===0&&(i=n.pooledCache,i!=null&&(n.pooledCache=null,Yl(i)))}function as(){return Hy(),$y(),Gy(),Py()}function Py(){if(Rt!==5)return!1;var n=ei,i=ad;ad=0;var l=Nc(wa),o=U.T,f=P.p;try{P.p=32>l?32:l,U.T=null,l=id,id=null;var h=ei,g=wa;if(Rt=0,Lr=ei=null,wa=0,(He&6)!==0)throw Error(r(331));var k=He;if(He|=4,Ry(h.current),wy(h,h.current,g,l),He=k,mu(0,!1),Xe&&typeof Xe.onPostCommitFiberRoot=="function")try{Xe.onPostCommitFiberRoot(Ht,h)}catch{}return!0}finally{P.p=f,U.T=o,Yy(n,i)}}function Xy(n,i,l){i=wn(l,i),i=Vf(n.stateNode,i,2),n=Ga(n,i,2),n!==null&&(jl(n,2),na(n))}function Ye(n,i,l){if(n.tag===3)Xy(n,n,l);else for(;i!==null;){if(i.tag===3){Xy(i,n,l);break}else if(i.tag===1){var o=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(Wa===null||!Wa.has(o))){n=wn(l,n),l=Jv(2),o=Ga(i,l,2),o!==null&&(Kv(l,o,i,n),jl(o,2),na(o));break}}i=i.return}}function od(n,i,l){var o=n.pingCache;if(o===null){o=n.pingCache=new IE;var f=new Set;o.set(i,f)}else f=o.get(i),f===void 0&&(f=new Set,o.set(i,f));f.has(l)||(ed=!0,f.add(l),n=YE.bind(null,n,i,l),i.then(n,n))}function YE(n,i,l){var o=n.pingCache;o!==null&&o.delete(i),n.pingedLanes|=n.suspendedLanes&l,n.warmLanes&=~l,tt===n&&(Me&l)===l&&(mt===4||mt===3&&(Me&62914560)===Me&&300>L()-Jo?(He&2)===0&&qr(n,0):td|=l,Ur===Me&&(Ur=0)),na(n)}function Jy(n,i){i===0&&(i=Hm()),n=ji(n,i),n!==null&&(jl(n,i),na(n))}function PE(n){var i=n.memoizedState,l=0;i!==null&&(l=i.retryLane),Jy(n,l)}function XE(n,i){var l=0;switch(n.tag){case 31:case 13:var o=n.stateNode,f=n.memoizedState;f!==null&&(l=f.retryLane);break;case 19:o=n.stateNode;break;case 22:o=n.stateNode._retryCache;break;default:throw Error(r(314))}o!==null&&o.delete(i),Jy(n,l)}function JE(n,i){return Al(n,i)}var is=null,Br=null,sd=!1,rs=!1,cd=!1,ni=0;function na(n){n!==Br&&n.next===null&&(Br===null?is=Br=n:Br=Br.next=n),rs=!0,sd||(sd=!0,WE())}function mu(n,i){if(!cd&&rs){cd=!0;do for(var l=!1,o=is;o!==null;){if(n!==0){var f=o.pendingLanes;if(f===0)var h=0;else{var g=o.suspendedLanes,k=o.pingedLanes;h=(1<<31-Vt(42|n)+1)-1,h&=f&~(g&~k),h=h&201326741?h&201326741|1:h?h|2:0}h!==0&&(l=!0,tg(o,h))}else h=Me,h=oo(o,o===tt?h:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),(h&3)===0||Cl(o,h)||(l=!0,tg(o,h));o=o.next}while(l);cd=!1}}function KE(){Ky()}function Ky(){rs=sd=!1;var n=0;ni!==0&&sN()&&(n=ni);for(var i=L(),l=null,o=is;o!==null;){var f=o.next,h=Wy(o,i);h===0?(o.next=null,l===null?is=f:l.next=f,f===null&&(Br=l)):(l=o,(n!==0||(h&3)!==0)&&(rs=!0)),o=f}Rt!==0&&Rt!==5||mu(n),ni!==0&&(ni=0)}function Wy(n,i){for(var l=n.suspendedLanes,o=n.pingedLanes,f=n.expirationTimes,h=n.pendingLanes&-62914561;0<h;){var g=31-Vt(h),k=1<<g,x=f[g];x===-1?((k&l)===0||(k&o)!==0)&&(f[g]=Tk(k,i)):x<=i&&(n.expiredLanes|=k),h&=~k}if(i=tt,l=Me,l=oo(n,n===i?l:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),o=n.callbackNode,l===0||n===i&&(Ge===2||Ge===9)||n.cancelPendingCommit!==null)return o!==null&&o!==null&&io(o),n.callbackNode=null,n.callbackPriority=0;if((l&3)===0||Cl(n,l)){if(i=l&-l,i===n.callbackPriority)return i;switch(o!==null&&io(o),Nc(l)){case 2:case 8:l=re;break;case 32:l=te;break;case 268435456:l=we;break;default:l=te}return o=eg.bind(null,n),l=Al(l,o),n.callbackPriority=i,n.callbackNode=l,i}return o!==null&&o!==null&&io(o),n.callbackPriority=2,n.callbackNode=null,2}function eg(n,i){if(Rt!==0&&Rt!==5)return n.callbackNode=null,n.callbackPriority=0,null;var l=n.callbackNode;if(as()&&n.callbackNode!==l)return null;var o=Me;return o=oo(n,n===tt?o:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),o===0?null:(My(n,o,i),Wy(n,L()),n.callbackNode!=null&&n.callbackNode===l?eg.bind(null,n):null)}function tg(n,i){if(as())return null;My(n,i,!0)}function WE(){fN(function(){(He&6)!==0?Al(ue,KE):Ky()})}function fd(){if(ni===0){var n=wr;n===0&&(n=or,or<<=1,(or&261888)===0&&(or=256)),ni=n}return ni}function ng(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:ho(""+n)}function ag(n,i){var l=i.ownerDocument.createElement("input");return l.name=i.name,l.value=i.value,n.id&&l.setAttribute("form",n.id),i.parentNode.insertBefore(l,i),n=new FormData(n),l.parentNode.removeChild(l),n}function eN(n,i,l,o,f){if(i==="submit"&&l&&l.stateNode===f){var h=ng((f[en]||null).action),g=o.submitter;g&&(i=(i=g[en]||null)?ng(i.formAction):g.getAttribute("formAction"),i!==null&&(h=i,g=null));var k=new yo("action","action",null,o,f);n.push({event:k,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(ni!==0){var x=g?ag(f,g):new FormData(f);Af(l,{pending:!0,data:x,method:f.method,action:h},null,x)}}else typeof h=="function"&&(k.preventDefault(),x=g?ag(f,g):new FormData(f),Af(l,{pending:!0,data:x,method:f.method,action:h},h,x))},currentTarget:f}]})}}for(var dd=0;dd<Gc.length;dd++){var hd=Gc[dd],tN=hd.toLowerCase(),nN=hd[0].toUpperCase()+hd.slice(1);Un(tN,"on"+nN)}Un(jp,"onAnimationEnd"),Un(Mp,"onAnimationIteration"),Un(Fp,"onAnimationStart"),Un("dblclick","onDoubleClick"),Un("focusin","onFocus"),Un("focusout","onBlur"),Un(gE,"onTransitionRun"),Un(bE,"onTransitionStart"),Un(_E,"onTransitionCancel"),Un(Vp,"onTransitionEnd"),hr("onMouseEnter",["mouseout","mouseover"]),hr("onMouseLeave",["mouseout","mouseover"]),hr("onPointerEnter",["pointerout","pointerover"]),hr("onPointerLeave",["pointerout","pointerover"]),Ri("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ri("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ri("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ri("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ri("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ri("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var pu="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),aN=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(pu));function ig(n,i){i=(i&4)!==0;for(var l=0;l<n.length;l++){var o=n[l],f=o.event;o=o.listeners;e:{var h=void 0;if(i)for(var g=o.length-1;0<=g;g--){var k=o[g],x=k.instance,Q=k.currentTarget;if(k=k.listener,x!==h&&f.isPropagationStopped())break e;h=k,f.currentTarget=Q;try{h(f)}catch(Y){_o(Y)}f.currentTarget=null,h=x}else for(g=0;g<o.length;g++){if(k=o[g],x=k.instance,Q=k.currentTarget,k=k.listener,x!==h&&f.isPropagationStopped())break e;h=k,f.currentTarget=Q;try{h(f)}catch(Y){_o(Y)}f.currentTarget=null,h=x}}}}function Ce(n,i){var l=i[Tc];l===void 0&&(l=i[Tc]=new Set);var o=n+"__bubble";l.has(o)||(rg(i,n,2,!1),l.add(o))}function md(n,i,l){var o=0;i&&(o|=4),rg(l,n,o,i)}var ls="_reactListening"+Math.random().toString(36).slice(2);function pd(n){if(!n[ls]){n[ls]=!0,Km.forEach(function(l){l!=="selectionchange"&&(aN.has(l)||md(l,!1,n),md(l,!0,n))});var i=n.nodeType===9?n:n.ownerDocument;i===null||i[ls]||(i[ls]=!0,md("selectionchange",!1,i))}}function rg(n,i,l,o){switch(jg(i)){case 2:var f=AN;break;case 8:f=zN;break;default:f=Rd}l=f.bind(null,i,l,n),f=void 0,!jc||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(f=!0),o?f!==void 0?n.addEventListener(i,l,{capture:!0,passive:f}):n.addEventListener(i,l,!0):f!==void 0?n.addEventListener(i,l,{passive:f}):n.addEventListener(i,l,!1)}function vd(n,i,l,o,f){var h=o;if((i&1)===0&&(i&2)===0&&o!==null)e:for(;;){if(o===null)return;var g=o.tag;if(g===3||g===4){var k=o.stateNode.containerInfo;if(k===f)break;if(g===4)for(g=o.return;g!==null;){var x=g.tag;if((x===3||x===4)&&g.stateNode.containerInfo===f)return;g=g.return}for(;k!==null;){if(g=cr(k),g===null)return;if(x=g.tag,x===5||x===6||x===26||x===27){o=h=g;continue e}k=k.parentNode}}o=o.return}cp(function(){var Q=h,Y=zc(l),K=[];e:{var B=Up.get(n);if(B!==void 0){var H=yo,pe=n;switch(n){case"keypress":if(po(l)===0)break e;case"keydown":case"keyup":H=Xk;break;case"focusin":pe="focus",H=Uc;break;case"focusout":pe="blur",H=Uc;break;case"beforeblur":case"afterblur":H=Uc;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":H=hp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":H=Uk;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":H=Wk;break;case jp:case Mp:case Fp:H=Qk;break;case Vp:H=tE;break;case"scroll":case"scrollend":H=Fk;break;case"wheel":H=aE;break;case"copy":case"cut":case"paste":H=Ik;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":H=pp;break;case"toggle":case"beforetoggle":H=rE}var Ee=(i&4)!==0,We=!Ee&&(n==="scroll"||n==="scrollend"),V=Ee?B!==null?B+"Capture":null:B;Ee=[];for(var C=Q,q;C!==null;){var X=C;if(q=X.stateNode,X=X.tag,X!==5&&X!==26&&X!==27||q===null||V===null||(X=Vl(C,V),X!=null&&Ee.push(vu(C,X,q))),We)break;C=C.return}0<Ee.length&&(B=new H(B,pe,null,l,Y),K.push({event:B,listeners:Ee}))}}if((i&7)===0){e:{if(B=n==="mouseover"||n==="pointerover",H=n==="mouseout"||n==="pointerout",B&&l!==Ac&&(pe=l.relatedTarget||l.fromElement)&&(cr(pe)||pe[sr]))break e;if((H||B)&&(B=Y.window===Y?Y:(B=Y.ownerDocument)?B.defaultView||B.parentWindow:window,H?(pe=l.relatedTarget||l.toElement,H=Q,pe=pe?cr(pe):null,pe!==null&&(We=s(pe),Ee=pe.tag,pe!==We||Ee!==5&&Ee!==27&&Ee!==6)&&(pe=null)):(H=null,pe=Q),H!==pe)){if(Ee=hp,X="onMouseLeave",V="onMouseEnter",C="mouse",(n==="pointerout"||n==="pointerover")&&(Ee=pp,X="onPointerLeave",V="onPointerEnter",C="pointer"),We=H==null?B:Fl(H),q=pe==null?B:Fl(pe),B=new Ee(X,C+"leave",H,l,Y),B.target=We,B.relatedTarget=q,X=null,cr(Y)===Q&&(Ee=new Ee(V,C+"enter",pe,l,Y),Ee.target=q,Ee.relatedTarget=We,X=Ee),We=X,H&&pe)t:{for(Ee=iN,V=H,C=pe,q=0,X=V;X;X=Ee(X))q++;X=0;for(var ke=C;ke;ke=Ee(ke))X++;for(;0<q-X;)V=Ee(V),q--;for(;0<X-q;)C=Ee(C),X--;for(;q--;){if(V===C||C!==null&&V===C.alternate){Ee=V;break t}V=Ee(V),C=Ee(C)}Ee=null}else Ee=null;H!==null&&lg(K,B,H,Ee,!1),pe!==null&&We!==null&&lg(K,We,pe,Ee,!0)}}e:{if(B=Q?Fl(Q):window,H=B.nodeName&&B.nodeName.toLowerCase(),H==="select"||H==="input"&&B.type==="file")var Ie=Ep;else if(Sp(B))if(Np)Ie=pE;else{Ie=hE;var be=dE}else H=B.nodeName,!H||H.toLowerCase()!=="input"||B.type!=="checkbox"&&B.type!=="radio"?Q&&Rc(Q.elementType)&&(Ie=Ep):Ie=mE;if(Ie&&(Ie=Ie(n,Q))){kp(K,Ie,l,Y);break e}be&&be(n,B,Q),n==="focusout"&&Q&&B.type==="number"&&Q.memoizedProps.value!=null&&xc(B,"number",B.value)}switch(be=Q?Fl(Q):window,n){case"focusin":(Sp(be)||be.contentEditable==="true")&&(br=be,Zc=Q,Hl=null);break;case"focusout":Hl=Zc=br=null;break;case"mousedown":Hc=!0;break;case"contextmenu":case"mouseup":case"dragend":Hc=!1,zp(K,l,Y);break;case"selectionchange":if(yE)break;case"keydown":case"keyup":zp(K,l,Y)}var xe;if(qc)e:{switch(n){case"compositionstart":var Fe="onCompositionStart";break e;case"compositionend":Fe="onCompositionEnd";break e;case"compositionupdate":Fe="onCompositionUpdate";break e}Fe=void 0}else gr?bp(n,l)&&(Fe="onCompositionEnd"):n==="keydown"&&l.keyCode===229&&(Fe="onCompositionStart");Fe&&(vp&&l.locale!=="ko"&&(gr||Fe!=="onCompositionStart"?Fe==="onCompositionEnd"&&gr&&(xe=fp()):(qa=Y,Mc="value"in qa?qa.value:qa.textContent,gr=!0)),be=us(Q,Fe),0<be.length&&(Fe=new mp(Fe,n,null,l,Y),K.push({event:Fe,listeners:be}),xe?Fe.data=xe:(xe=_p(l),xe!==null&&(Fe.data=xe)))),(xe=uE?oE(n,l):sE(n,l))&&(Fe=us(Q,"onBeforeInput"),0<Fe.length&&(be=new mp("onBeforeInput","beforeinput",null,l,Y),K.push({event:be,listeners:Fe}),be.data=xe)),eN(K,n,Q,l,Y)}ig(K,i)})}function vu(n,i,l){return{instance:n,listener:i,currentTarget:l}}function us(n,i){for(var l=i+"Capture",o=[];n!==null;){var f=n,h=f.stateNode;if(f=f.tag,f!==5&&f!==26&&f!==27||h===null||(f=Vl(n,l),f!=null&&o.unshift(vu(n,f,h)),f=Vl(n,i),f!=null&&o.push(vu(n,f,h))),n.tag===3)return o;n=n.return}return[]}function iN(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}function lg(n,i,l,o,f){for(var h=i._reactName,g=[];l!==null&&l!==o;){var k=l,x=k.alternate,Q=k.stateNode;if(k=k.tag,x!==null&&x===o)break;k!==5&&k!==26&&k!==27||Q===null||(x=Q,f?(Q=Vl(l,h),Q!=null&&g.unshift(vu(l,Q,x))):f||(Q=Vl(l,h),Q!=null&&g.push(vu(l,Q,x)))),l=l.return}g.length!==0&&n.push({event:i,listeners:g})}var rN=/\r\n?/g,lN=/\u0000|\uFFFD/g;function ug(n){return(typeof n=="string"?n:""+n).replace(rN,`
90
- `).replace(lN,"")}function og(n,i){return i=ug(i),ug(n)===i}function Ke(n,i,l,o,f,h){switch(l){case"children":typeof o=="string"?i==="body"||i==="textarea"&&o===""||pr(n,o):(typeof o=="number"||typeof o=="bigint")&&i!=="body"&&pr(n,""+o);break;case"className":co(n,"class",o);break;case"tabIndex":co(n,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":co(n,l,o);break;case"style":op(n,o,h);break;case"data":if(i!=="object"){co(n,"data",o);break}case"src":case"href":if(o===""&&(i!=="a"||l!=="href")){n.removeAttribute(l);break}if(o==null||typeof o=="function"||typeof o=="symbol"||typeof o=="boolean"){n.removeAttribute(l);break}o=ho(""+o),n.setAttribute(l,o);break;case"action":case"formAction":if(typeof o=="function"){n.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof h=="function"&&(l==="formAction"?(i!=="input"&&Ke(n,i,"name",f.name,f,null),Ke(n,i,"formEncType",f.formEncType,f,null),Ke(n,i,"formMethod",f.formMethod,f,null),Ke(n,i,"formTarget",f.formTarget,f,null)):(Ke(n,i,"encType",f.encType,f,null),Ke(n,i,"method",f.method,f,null),Ke(n,i,"target",f.target,f,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){n.removeAttribute(l);break}o=ho(""+o),n.setAttribute(l,o);break;case"onClick":o!=null&&(n.onclick=da);break;case"onScroll":o!=null&&Ce("scroll",n);break;case"onScrollEnd":o!=null&&Ce("scrollend",n);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(r(61));if(l=o.__html,l!=null){if(f.children!=null)throw Error(r(60));n.innerHTML=l}}break;case"multiple":n.multiple=o&&typeof o!="function"&&typeof o!="symbol";break;case"muted":n.muted=o&&typeof o!="function"&&typeof o!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o=="function"||typeof o=="boolean"||typeof o=="symbol"){n.removeAttribute("xlink:href");break}l=ho(""+o),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":o!=null&&typeof o!="function"&&typeof o!="symbol"?n.setAttribute(l,""+o):n.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":o&&typeof o!="function"&&typeof o!="symbol"?n.setAttribute(l,""):n.removeAttribute(l);break;case"capture":case"download":o===!0?n.setAttribute(l,""):o!==!1&&o!=null&&typeof o!="function"&&typeof o!="symbol"?n.setAttribute(l,o):n.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!="function"&&typeof o!="symbol"&&!isNaN(o)&&1<=o?n.setAttribute(l,o):n.removeAttribute(l);break;case"rowSpan":case"start":o==null||typeof o=="function"||typeof o=="symbol"||isNaN(o)?n.removeAttribute(l):n.setAttribute(l,o);break;case"popover":Ce("beforetoggle",n),Ce("toggle",n),so(n,"popover",o);break;case"xlinkActuate":fa(n,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":fa(n,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":fa(n,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":fa(n,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":fa(n,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":fa(n,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":fa(n,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":fa(n,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":fa(n,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":so(n,"is",o);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=jk.get(l)||l,so(n,l,o))}}function yd(n,i,l,o,f,h){switch(l){case"style":op(n,o,h);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(r(61));if(l=o.__html,l!=null){if(f.children!=null)throw Error(r(60));n.innerHTML=l}}break;case"children":typeof o=="string"?pr(n,o):(typeof o=="number"||typeof o=="bigint")&&pr(n,""+o);break;case"onScroll":o!=null&&Ce("scroll",n);break;case"onScrollEnd":o!=null&&Ce("scrollend",n);break;case"onClick":o!=null&&(n.onclick=da);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Wm.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(f=l.endsWith("Capture"),i=l.slice(2,f?l.length-7:void 0),h=n[en]||null,h=h!=null?h[l]:null,typeof h=="function"&&n.removeEventListener(i,h,f),typeof o=="function")){typeof h!="function"&&h!==null&&(l in n?n[l]=null:n.hasAttribute(l)&&n.removeAttribute(l)),n.addEventListener(i,o,f);break e}l in n?n[l]=o:o===!0?n.setAttribute(l,""):so(n,l,o)}}}function Bt(n,i,l){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ce("error",n),Ce("load",n);var o=!1,f=!1,h;for(h in l)if(l.hasOwnProperty(h)){var g=l[h];if(g!=null)switch(h){case"src":o=!0;break;case"srcSet":f=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,i));default:Ke(n,i,h,g,l,null)}}f&&Ke(n,i,"srcSet",l.srcSet,l,null),o&&Ke(n,i,"src",l.src,l,null);return;case"input":Ce("invalid",n);var k=h=g=f=null,x=null,Q=null;for(o in l)if(l.hasOwnProperty(o)){var Y=l[o];if(Y!=null)switch(o){case"name":f=Y;break;case"type":g=Y;break;case"checked":x=Y;break;case"defaultChecked":Q=Y;break;case"value":h=Y;break;case"defaultValue":k=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(r(137,i));break;default:Ke(n,i,o,Y,l,null)}}ip(n,h,k,x,Q,g,f,!1);return;case"select":Ce("invalid",n),o=g=h=null;for(f in l)if(l.hasOwnProperty(f)&&(k=l[f],k!=null))switch(f){case"value":h=k;break;case"defaultValue":g=k;break;case"multiple":o=k;default:Ke(n,i,f,k,l,null)}i=h,l=g,n.multiple=!!o,i!=null?mr(n,!!o,i,!1):l!=null&&mr(n,!!o,l,!0);return;case"textarea":Ce("invalid",n),h=f=o=null;for(g in l)if(l.hasOwnProperty(g)&&(k=l[g],k!=null))switch(g){case"value":o=k;break;case"defaultValue":f=k;break;case"children":h=k;break;case"dangerouslySetInnerHTML":if(k!=null)throw Error(r(91));break;default:Ke(n,i,g,k,l,null)}lp(n,o,f,h);return;case"option":for(x in l)if(l.hasOwnProperty(x)&&(o=l[x],o!=null))switch(x){case"selected":n.selected=o&&typeof o!="function"&&typeof o!="symbol";break;default:Ke(n,i,x,o,l,null)}return;case"dialog":Ce("beforetoggle",n),Ce("toggle",n),Ce("cancel",n),Ce("close",n);break;case"iframe":case"object":Ce("load",n);break;case"video":case"audio":for(o=0;o<pu.length;o++)Ce(pu[o],n);break;case"image":Ce("error",n),Ce("load",n);break;case"details":Ce("toggle",n);break;case"embed":case"source":case"link":Ce("error",n),Ce("load",n);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Q in l)if(l.hasOwnProperty(Q)&&(o=l[Q],o!=null))switch(Q){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,i));default:Ke(n,i,Q,o,l,null)}return;default:if(Rc(i)){for(Y in l)l.hasOwnProperty(Y)&&(o=l[Y],o!==void 0&&yd(n,i,Y,o,l,void 0));return}}for(k in l)l.hasOwnProperty(k)&&(o=l[k],o!=null&&Ke(n,i,k,o,l,null))}function uN(n,i,l,o){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var f=null,h=null,g=null,k=null,x=null,Q=null,Y=null;for(H in l){var K=l[H];if(l.hasOwnProperty(H)&&K!=null)switch(H){case"checked":break;case"value":break;case"defaultValue":x=K;default:o.hasOwnProperty(H)||Ke(n,i,H,null,o,K)}}for(var B in o){var H=o[B];if(K=l[B],o.hasOwnProperty(B)&&(H!=null||K!=null))switch(B){case"type":h=H;break;case"name":f=H;break;case"checked":Q=H;break;case"defaultChecked":Y=H;break;case"value":g=H;break;case"defaultValue":k=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(r(137,i));break;default:H!==K&&Ke(n,i,B,H,o,K)}}Dc(n,g,k,x,Q,Y,h,f);return;case"select":H=g=k=B=null;for(h in l)if(x=l[h],l.hasOwnProperty(h)&&x!=null)switch(h){case"value":break;case"multiple":H=x;default:o.hasOwnProperty(h)||Ke(n,i,h,null,o,x)}for(f in o)if(h=o[f],x=l[f],o.hasOwnProperty(f)&&(h!=null||x!=null))switch(f){case"value":B=h;break;case"defaultValue":k=h;break;case"multiple":g=h;default:h!==x&&Ke(n,i,f,h,o,x)}i=k,l=g,o=H,B!=null?mr(n,!!l,B,!1):!!o!=!!l&&(i!=null?mr(n,!!l,i,!0):mr(n,!!l,l?[]:"",!1));return;case"textarea":H=B=null;for(k in l)if(f=l[k],l.hasOwnProperty(k)&&f!=null&&!o.hasOwnProperty(k))switch(k){case"value":break;case"children":break;default:Ke(n,i,k,null,o,f)}for(g in o)if(f=o[g],h=l[g],o.hasOwnProperty(g)&&(f!=null||h!=null))switch(g){case"value":B=f;break;case"defaultValue":H=f;break;case"children":break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(r(91));break;default:f!==h&&Ke(n,i,g,f,o,h)}rp(n,B,H);return;case"option":for(var pe in l)if(B=l[pe],l.hasOwnProperty(pe)&&B!=null&&!o.hasOwnProperty(pe))switch(pe){case"selected":n.selected=!1;break;default:Ke(n,i,pe,null,o,B)}for(x in o)if(B=o[x],H=l[x],o.hasOwnProperty(x)&&B!==H&&(B!=null||H!=null))switch(x){case"selected":n.selected=B&&typeof B!="function"&&typeof B!="symbol";break;default:Ke(n,i,x,B,o,H)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Ee in l)B=l[Ee],l.hasOwnProperty(Ee)&&B!=null&&!o.hasOwnProperty(Ee)&&Ke(n,i,Ee,null,o,B);for(Q in o)if(B=o[Q],H=l[Q],o.hasOwnProperty(Q)&&B!==H&&(B!=null||H!=null))switch(Q){case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(r(137,i));break;default:Ke(n,i,Q,B,o,H)}return;default:if(Rc(i)){for(var We in l)B=l[We],l.hasOwnProperty(We)&&B!==void 0&&!o.hasOwnProperty(We)&&yd(n,i,We,void 0,o,B);for(Y in o)B=o[Y],H=l[Y],!o.hasOwnProperty(Y)||B===H||B===void 0&&H===void 0||yd(n,i,Y,B,o,H);return}}for(var V in l)B=l[V],l.hasOwnProperty(V)&&B!=null&&!o.hasOwnProperty(V)&&Ke(n,i,V,null,o,B);for(K in o)B=o[K],H=l[K],!o.hasOwnProperty(K)||B===H||B==null&&H==null||Ke(n,i,K,B,o,H)}function sg(n){switch(n){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function oN(){if(typeof performance.getEntriesByType=="function"){for(var n=0,i=0,l=performance.getEntriesByType("resource"),o=0;o<l.length;o++){var f=l[o],h=f.transferSize,g=f.initiatorType,k=f.duration;if(h&&k&&sg(g)){for(g=0,k=f.responseEnd,o+=1;o<l.length;o++){var x=l[o],Q=x.startTime;if(Q>k)break;var Y=x.transferSize,K=x.initiatorType;Y&&sg(K)&&(x=x.responseEnd,g+=Y*(x<k?1:(k-Q)/(x-Q)))}if(--o,i+=8*(h+g)/(f.duration/1e3),n++,10<n)break}}if(0<n)return i/n/1e6}return navigator.connection&&(n=navigator.connection.downlink,typeof n=="number")?n:5}var gd=null,bd=null;function os(n){return n.nodeType===9?n:n.ownerDocument}function cg(n){switch(n){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function fg(n,i){if(n===0)switch(i){case"svg":return 1;case"math":return 2;default:return 0}return n===1&&i==="foreignObject"?0:n}function _d(n,i){return n==="textarea"||n==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.children=="bigint"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var Sd=null;function sN(){var n=window.event;return n&&n.type==="popstate"?n===Sd?!1:(Sd=n,!0):(Sd=null,!1)}var dg=typeof setTimeout=="function"?setTimeout:void 0,cN=typeof clearTimeout=="function"?clearTimeout:void 0,hg=typeof Promise=="function"?Promise:void 0,fN=typeof queueMicrotask=="function"?queueMicrotask:typeof hg<"u"?function(n){return hg.resolve(null).then(n).catch(dN)}:dg;function dN(n){setTimeout(function(){throw n})}function ai(n){return n==="head"}function mg(n,i){var l=i,o=0;do{var f=l.nextSibling;if(n.removeChild(l),f&&f.nodeType===8)if(l=f.data,l==="/$"||l==="/&"){if(o===0){n.removeChild(f),$r(i);return}o--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")o++;else if(l==="html")yu(n.ownerDocument.documentElement);else if(l==="head"){l=n.ownerDocument.head,yu(l);for(var h=l.firstChild;h;){var g=h.nextSibling,k=h.nodeName;h[Ml]||k==="SCRIPT"||k==="STYLE"||k==="LINK"&&h.rel.toLowerCase()==="stylesheet"||l.removeChild(h),h=g}}else l==="body"&&yu(n.ownerDocument.body);l=f}while(l);$r(i)}function pg(n,i){var l=n;n=0;do{var o=l.nextSibling;if(l.nodeType===1?i?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(i?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),o&&o.nodeType===8)if(l=o.data,l==="/$"){if(n===0)break;n--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||n++;l=o}while(l)}function kd(n){var i=n.firstChild;for(i&&i.nodeType===10&&(i=i.nextSibling);i;){var l=i;switch(i=i.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":kd(l),Oc(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}n.removeChild(l)}}function hN(n,i,l,o){for(;n.nodeType===1;){var f=l;if(n.nodeName.toLowerCase()!==i.toLowerCase()){if(!o&&(n.nodeName!=="INPUT"||n.type!=="hidden"))break}else if(o){if(!n[Ml])switch(i){case"meta":if(!n.hasAttribute("itemprop"))break;return n;case"link":if(h=n.getAttribute("rel"),h==="stylesheet"&&n.hasAttribute("data-precedence"))break;if(h!==f.rel||n.getAttribute("href")!==(f.href==null||f.href===""?null:f.href)||n.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin)||n.getAttribute("title")!==(f.title==null?null:f.title))break;return n;case"style":if(n.hasAttribute("data-precedence"))break;return n;case"script":if(h=n.getAttribute("src"),(h!==(f.src==null?null:f.src)||n.getAttribute("type")!==(f.type==null?null:f.type)||n.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin))&&h&&n.hasAttribute("async")&&!n.hasAttribute("itemprop"))break;return n;default:return n}}else if(i==="input"&&n.type==="hidden"){var h=f.name==null?null:""+f.name;if(f.type==="hidden"&&n.getAttribute("name")===h)return n}else return n;if(n=zn(n.nextSibling),n===null)break}return null}function mN(n,i,l){if(i==="")return null;for(;n.nodeType!==3;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!l||(n=zn(n.nextSibling),n===null))return null;return n}function vg(n,i){for(;n.nodeType!==8;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!i||(n=zn(n.nextSibling),n===null))return null;return n}function Ed(n){return n.data==="$?"||n.data==="$~"}function Nd(n){return n.data==="$!"||n.data==="$?"&&n.ownerDocument.readyState!=="loading"}function pN(n,i){var l=n.ownerDocument;if(n.data==="$~")n._reactRetry=i;else if(n.data!=="$?"||l.readyState!=="loading")i();else{var o=function(){i(),l.removeEventListener("DOMContentLoaded",o)};l.addEventListener("DOMContentLoaded",o),n._reactRetry=o}}function zn(n){for(;n!=null;n=n.nextSibling){var i=n.nodeType;if(i===1||i===3)break;if(i===8){if(i=n.data,i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"||i==="F!"||i==="F")break;if(i==="/$"||i==="/&")return null}}return n}var Td=null;function yg(n){n=n.nextSibling;for(var i=0;n;){if(n.nodeType===8){var l=n.data;if(l==="/$"||l==="/&"){if(i===0)return zn(n.nextSibling);i--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||i++}n=n.nextSibling}return null}function gg(n){n=n.previousSibling;for(var i=0;n;){if(n.nodeType===8){var l=n.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(i===0)return n;i--}else l!=="/$"&&l!=="/&"||i++}n=n.previousSibling}return null}function bg(n,i,l){switch(i=os(l),n){case"html":if(n=i.documentElement,!n)throw Error(r(452));return n;case"head":if(n=i.head,!n)throw Error(r(453));return n;case"body":if(n=i.body,!n)throw Error(r(454));return n;default:throw Error(r(451))}}function yu(n){for(var i=n.attributes;i.length;)n.removeAttributeNode(i[0]);Oc(n)}var Cn=new Map,_g=new Set;function ss(n){return typeof n.getRootNode=="function"?n.getRootNode():n.nodeType===9?n:n.ownerDocument}var Da=P.d;P.d={f:vN,r:yN,D:gN,C:bN,L:_N,m:SN,X:EN,S:kN,M:NN};function vN(){var n=Da.f(),i=es();return n||i}function yN(n){var i=fr(n);i!==null&&i.tag===5&&i.type==="form"?Vv(i):Da.r(n)}var Ir=typeof document>"u"?null:document;function Sg(n,i,l){var o=Ir;if(o&&typeof i=="string"&&i){var f=Tn(i);f='link[rel="'+n+'"][href="'+f+'"]',typeof l=="string"&&(f+='[crossorigin="'+l+'"]'),_g.has(f)||(_g.add(f),n={rel:n,crossOrigin:l,href:i},o.querySelector(f)===null&&(i=o.createElement("link"),Bt(i,"link",n),zt(i),o.head.appendChild(i)))}}function gN(n){Da.D(n),Sg("dns-prefetch",n,null)}function bN(n,i){Da.C(n,i),Sg("preconnect",n,i)}function _N(n,i,l){Da.L(n,i,l);var o=Ir;if(o&&n&&i){var f='link[rel="preload"][as="'+Tn(i)+'"]';i==="image"&&l&&l.imageSrcSet?(f+='[imagesrcset="'+Tn(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(f+='[imagesizes="'+Tn(l.imageSizes)+'"]')):f+='[href="'+Tn(n)+'"]';var h=f;switch(i){case"style":h=Zr(n);break;case"script":h=Hr(n)}Cn.has(h)||(n=y({rel:"preload",href:i==="image"&&l&&l.imageSrcSet?void 0:n,as:i},l),Cn.set(h,n),o.querySelector(f)!==null||i==="style"&&o.querySelector(gu(h))||i==="script"&&o.querySelector(bu(h))||(i=o.createElement("link"),Bt(i,"link",n),zt(i),o.head.appendChild(i)))}}function SN(n,i){Da.m(n,i);var l=Ir;if(l&&n){var o=i&&typeof i.as=="string"?i.as:"script",f='link[rel="modulepreload"][as="'+Tn(o)+'"][href="'+Tn(n)+'"]',h=f;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":h=Hr(n)}if(!Cn.has(h)&&(n=y({rel:"modulepreload",href:n},i),Cn.set(h,n),l.querySelector(f)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(bu(h)))return}o=l.createElement("link"),Bt(o,"link",n),zt(o),l.head.appendChild(o)}}}function kN(n,i,l){Da.S(n,i,l);var o=Ir;if(o&&n){var f=dr(o).hoistableStyles,h=Zr(n);i=i||"default";var g=f.get(h);if(!g){var k={loading:0,preload:null};if(g=o.querySelector(gu(h)))k.loading=5;else{n=y({rel:"stylesheet",href:n,"data-precedence":i},l),(l=Cn.get(h))&&Od(n,l);var x=g=o.createElement("link");zt(x),Bt(x,"link",n),x._p=new Promise(function(Q,Y){x.onload=Q,x.onerror=Y}),x.addEventListener("load",function(){k.loading|=1}),x.addEventListener("error",function(){k.loading|=2}),k.loading|=4,cs(g,i,o)}g={type:"stylesheet",instance:g,count:1,state:k},f.set(h,g)}}}function EN(n,i){Da.X(n,i);var l=Ir;if(l&&n){var o=dr(l).hoistableScripts,f=Hr(n),h=o.get(f);h||(h=l.querySelector(bu(f)),h||(n=y({src:n,async:!0},i),(i=Cn.get(f))&&wd(n,i),h=l.createElement("script"),zt(h),Bt(h,"link",n),l.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},o.set(f,h))}}function NN(n,i){Da.M(n,i);var l=Ir;if(l&&n){var o=dr(l).hoistableScripts,f=Hr(n),h=o.get(f);h||(h=l.querySelector(bu(f)),h||(n=y({src:n,async:!0,type:"module"},i),(i=Cn.get(f))&&wd(n,i),h=l.createElement("script"),zt(h),Bt(h,"link",n),l.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},o.set(f,h))}}function kg(n,i,l,o){var f=(f=_e.current)?ss(f):null;if(!f)throw Error(r(446));switch(n){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(i=Zr(l.href),l=dr(f).hoistableStyles,o=l.get(i),o||(o={type:"style",instance:null,count:0,state:null},l.set(i,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){n=Zr(l.href);var h=dr(f).hoistableStyles,g=h.get(n);if(g||(f=f.ownerDocument||f,g={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},h.set(n,g),(h=f.querySelector(gu(n)))&&!h._p&&(g.instance=h,g.state.loading=5),Cn.has(n)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Cn.set(n,l),h||TN(f,n,l,g.state))),i&&o===null)throw Error(r(528,""));return g}if(i&&o!==null)throw Error(r(529,""));return null;case"script":return i=l.async,l=l.src,typeof l=="string"&&i&&typeof i!="function"&&typeof i!="symbol"?(i=Hr(l),l=dr(f).hoistableScripts,o=l.get(i),o||(o={type:"script",instance:null,count:0,state:null},l.set(i,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,n))}}function Zr(n){return'href="'+Tn(n)+'"'}function gu(n){return'link[rel="stylesheet"]['+n+"]"}function Eg(n){return y({},n,{"data-precedence":n.precedence,precedence:null})}function TN(n,i,l,o){n.querySelector('link[rel="preload"][as="style"]['+i+"]")?o.loading=1:(i=n.createElement("link"),o.preload=i,i.addEventListener("load",function(){return o.loading|=1}),i.addEventListener("error",function(){return o.loading|=2}),Bt(i,"link",l),zt(i),n.head.appendChild(i))}function Hr(n){return'[src="'+Tn(n)+'"]'}function bu(n){return"script[async]"+n}function Ng(n,i,l){if(i.count++,i.instance===null)switch(i.type){case"style":var o=n.querySelector('style[data-href~="'+Tn(l.href)+'"]');if(o)return i.instance=o,zt(o),o;var f=y({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return o=(n.ownerDocument||n).createElement("style"),zt(o),Bt(o,"style",f),cs(o,l.precedence,n),i.instance=o;case"stylesheet":f=Zr(l.href);var h=n.querySelector(gu(f));if(h)return i.state.loading|=4,i.instance=h,zt(h),h;o=Eg(l),(f=Cn.get(f))&&Od(o,f),h=(n.ownerDocument||n).createElement("link"),zt(h);var g=h;return g._p=new Promise(function(k,x){g.onload=k,g.onerror=x}),Bt(h,"link",o),i.state.loading|=4,cs(h,l.precedence,n),i.instance=h;case"script":return h=Hr(l.src),(f=n.querySelector(bu(h)))?(i.instance=f,zt(f),f):(o=l,(f=Cn.get(h))&&(o=y({},l),wd(o,f)),n=n.ownerDocument||n,f=n.createElement("script"),zt(f),Bt(f,"link",o),n.head.appendChild(f),i.instance=f);case"void":return null;default:throw Error(r(443,i.type))}else i.type==="stylesheet"&&(i.state.loading&4)===0&&(o=i.instance,i.state.loading|=4,cs(o,l.precedence,n));return i.instance}function cs(n,i,l){for(var o=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),f=o.length?o[o.length-1]:null,h=f,g=0;g<o.length;g++){var k=o[g];if(k.dataset.precedence===i)h=k;else if(h!==f)break}h?h.parentNode.insertBefore(n,h.nextSibling):(i=l.nodeType===9?l.head:l,i.insertBefore(n,i.firstChild))}function Od(n,i){n.crossOrigin==null&&(n.crossOrigin=i.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=i.referrerPolicy),n.title==null&&(n.title=i.title)}function wd(n,i){n.crossOrigin==null&&(n.crossOrigin=i.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=i.referrerPolicy),n.integrity==null&&(n.integrity=i.integrity)}var fs=null;function Tg(n,i,l){if(fs===null){var o=new Map,f=fs=new Map;f.set(l,o)}else f=fs,o=f.get(l),o||(o=new Map,f.set(l,o));if(o.has(n))return o;for(o.set(n,null),l=l.getElementsByTagName(n),f=0;f<l.length;f++){var h=l[f];if(!(h[Ml]||h[Ut]||n==="link"&&h.getAttribute("rel")==="stylesheet")&&h.namespaceURI!=="http://www.w3.org/2000/svg"){var g=h.getAttribute(i)||"";g=n+g;var k=o.get(g);k?k.push(h):o.set(g,[h])}}return o}function Og(n,i,l){n=n.ownerDocument||n,n.head.insertBefore(l,i==="title"?n.querySelector("head > title"):null)}function ON(n,i,l){if(l===1||i.itemProp!=null)return!1;switch(n){case"meta":case"title":return!0;case"style":if(typeof i.precedence!="string"||typeof i.href!="string"||i.href==="")break;return!0;case"link":if(typeof i.rel!="string"||typeof i.href!="string"||i.href===""||i.onLoad||i.onError)break;switch(i.rel){case"stylesheet":return n=i.disabled,typeof i.precedence=="string"&&n==null;default:return!0}case"script":if(i.async&&typeof i.async!="function"&&typeof i.async!="symbol"&&!i.onLoad&&!i.onError&&i.src&&typeof i.src=="string")return!0}return!1}function wg(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}function wN(n,i,l,o){if(l.type==="stylesheet"&&(typeof o.media!="string"||matchMedia(o.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var f=Zr(o.href),h=i.querySelector(gu(f));if(h){i=h._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(n.count++,n=ds.bind(n),i.then(n,n)),l.state.loading|=4,l.instance=h,zt(h);return}h=i.ownerDocument||i,o=Eg(o),(f=Cn.get(f))&&Od(o,f),h=h.createElement("link"),zt(h);var g=h;g._p=new Promise(function(k,x){g.onload=k,g.onerror=x}),Bt(h,"link",o),l.instance=h}n.stylesheets===null&&(n.stylesheets=new Map),n.stylesheets.set(l,i),(i=l.state.preload)&&(l.state.loading&3)===0&&(n.count++,l=ds.bind(n),i.addEventListener("load",l),i.addEventListener("error",l))}}var Dd=0;function DN(n,i){return n.stylesheets&&n.count===0&&ms(n,n.stylesheets),0<n.count||0<n.imgCount?function(l){var o=setTimeout(function(){if(n.stylesheets&&ms(n,n.stylesheets),n.unsuspend){var h=n.unsuspend;n.unsuspend=null,h()}},6e4+i);0<n.imgBytes&&Dd===0&&(Dd=62500*oN());var f=setTimeout(function(){if(n.waitingForImages=!1,n.count===0&&(n.stylesheets&&ms(n,n.stylesheets),n.unsuspend)){var h=n.unsuspend;n.unsuspend=null,h()}},(n.imgBytes>Dd?50:800)+i);return n.unsuspend=l,function(){n.unsuspend=null,clearTimeout(o),clearTimeout(f)}}:null}function ds(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ms(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var hs=null;function ms(n,i){n.stylesheets=null,n.unsuspend!==null&&(n.count++,hs=new Map,i.forEach(xN,n),hs=null,ds.call(n))}function xN(n,i){if(!(i.state.loading&4)){var l=hs.get(n);if(l)var o=l.get(null);else{l=new Map,hs.set(n,l);for(var f=n.querySelectorAll("link[data-precedence],style[data-precedence]"),h=0;h<f.length;h++){var g=f[h];(g.nodeName==="LINK"||g.getAttribute("media")!=="not all")&&(l.set(g.dataset.precedence,g),o=g)}o&&l.set(null,o)}f=i.instance,g=f.getAttribute("data-precedence"),h=l.get(g)||o,h===o&&l.set(null,f),l.set(g,f),this.count++,o=ds.bind(this),f.addEventListener("load",o),f.addEventListener("error",o),h?h.parentNode.insertBefore(f,h.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(f,n.firstChild)),i.state.loading|=4}}var _u={$$typeof:O,Provider:null,Consumer:null,_currentValue:ie,_currentValue2:ie,_threadCount:0};function RN(n,i,l,o,f,h,g,k,x){this.tag=1,this.containerInfo=n,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=kc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=kc(0),this.hiddenUpdates=kc(null),this.identifierPrefix=o,this.onUncaughtError=f,this.onCaughtError=h,this.onRecoverableError=g,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=x,this.incompleteTransitions=new Map}function Dg(n,i,l,o,f,h,g,k,x,Q,Y,K){return n=new RN(n,i,l,g,x,Q,Y,K,k),i=1,h===!0&&(i|=24),h=mn(3,null,null,i),n.current=h,h.stateNode=n,i=uf(),i.refCount++,n.pooledCache=i,i.refCount++,h.memoizedState={element:o,isDehydrated:l,cache:i},ff(h),n}function xg(n){return n?(n=kr,n):kr}function Rg(n,i,l,o,f,h){f=xg(f),o.context===null?o.context=f:o.pendingContext=f,o=$a(i),o.payload={element:l},h=h===void 0?null:h,h!==null&&(o.callback=h),l=Ga(n,o,i),l!==null&&(un(l,n,i),Kl(l,n,i))}function Ag(n,i){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var l=n.retryLane;n.retryLane=l!==0&&l<i?l:i}}function xd(n,i){Ag(n,i),(n=n.alternate)&&Ag(n,i)}function zg(n){if(n.tag===13||n.tag===31){var i=ji(n,67108864);i!==null&&un(i,n,67108864),xd(n,67108864)}}function Cg(n){if(n.tag===13||n.tag===31){var i=bn();i=Ec(i);var l=ji(n,i);l!==null&&un(l,n,i),xd(n,i)}}var ps=!0;function AN(n,i,l,o){var f=U.T;U.T=null;var h=P.p;try{P.p=2,Rd(n,i,l,o)}finally{P.p=h,U.T=f}}function zN(n,i,l,o){var f=U.T;U.T=null;var h=P.p;try{P.p=8,Rd(n,i,l,o)}finally{P.p=h,U.T=f}}function Rd(n,i,l,o){if(ps){var f=Ad(o);if(f===null)vd(n,i,o,vs,l),Mg(n,o);else if(jN(f,n,i,l,o))o.stopPropagation();else if(Mg(n,o),i&4&&-1<CN.indexOf(n)){for(;f!==null;){var h=fr(f);if(h!==null)switch(h.tag){case 3:if(h=h.stateNode,h.current.memoizedState.isDehydrated){var g=xi(h.pendingLanes);if(g!==0){var k=h;for(k.pendingLanes|=2,k.entangledLanes|=2;g;){var x=1<<31-Vt(g);k.entanglements[1]|=x,g&=~x}na(h),(He&6)===0&&(Ko=L()+500,mu(0))}}break;case 31:case 13:k=ji(h,2),k!==null&&un(k,h,2),es(),xd(h,2)}if(h=Ad(o),h===null&&vd(n,i,o,vs,l),h===f)break;f=h}f!==null&&o.stopPropagation()}else vd(n,i,o,null,l)}}function Ad(n){return n=zc(n),zd(n)}var vs=null;function zd(n){if(vs=null,n=cr(n),n!==null){var i=s(n);if(i===null)n=null;else{var l=i.tag;if(l===13){if(n=c(i),n!==null)return n;n=null}else if(l===31){if(n=d(i),n!==null)return n;n=null}else if(l===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;n=null}else i!==n&&(n=null)}}return vs=n,null}function jg(n){switch(n){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(I()){case ue:return 2;case re:return 8;case te:case he:return 32;case we:return 268435456;default:return 32}default:return 32}}var Cd=!1,ii=null,ri=null,li=null,Su=new Map,ku=new Map,ui=[],CN="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Mg(n,i){switch(n){case"focusin":case"focusout":ii=null;break;case"dragenter":case"dragleave":ri=null;break;case"mouseover":case"mouseout":li=null;break;case"pointerover":case"pointerout":Su.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":ku.delete(i.pointerId)}}function Eu(n,i,l,o,f,h){return n===null||n.nativeEvent!==h?(n={blockedOn:i,domEventName:l,eventSystemFlags:o,nativeEvent:h,targetContainers:[f]},i!==null&&(i=fr(i),i!==null&&zg(i)),n):(n.eventSystemFlags|=o,i=n.targetContainers,f!==null&&i.indexOf(f)===-1&&i.push(f),n)}function jN(n,i,l,o,f){switch(i){case"focusin":return ii=Eu(ii,n,i,l,o,f),!0;case"dragenter":return ri=Eu(ri,n,i,l,o,f),!0;case"mouseover":return li=Eu(li,n,i,l,o,f),!0;case"pointerover":var h=f.pointerId;return Su.set(h,Eu(Su.get(h)||null,n,i,l,o,f)),!0;case"gotpointercapture":return h=f.pointerId,ku.set(h,Eu(ku.get(h)||null,n,i,l,o,f)),!0}return!1}function Fg(n){var i=cr(n.target);if(i!==null){var l=s(i);if(l!==null){if(i=l.tag,i===13){if(i=c(l),i!==null){n.blockedOn=i,Xm(n.priority,function(){Cg(l)});return}}else if(i===31){if(i=d(l),i!==null){n.blockedOn=i,Xm(n.priority,function(){Cg(l)});return}}else if(i===3&&l.stateNode.current.memoizedState.isDehydrated){n.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}n.blockedOn=null}function ys(n){if(n.blockedOn!==null)return!1;for(var i=n.targetContainers;0<i.length;){var l=Ad(n.nativeEvent);if(l===null){l=n.nativeEvent;var o=new l.constructor(l.type,l);Ac=o,l.target.dispatchEvent(o),Ac=null}else return i=fr(l),i!==null&&zg(i),n.blockedOn=l,!1;i.shift()}return!0}function Vg(n,i,l){ys(n)&&l.delete(i)}function MN(){Cd=!1,ii!==null&&ys(ii)&&(ii=null),ri!==null&&ys(ri)&&(ri=null),li!==null&&ys(li)&&(li=null),Su.forEach(Vg),ku.forEach(Vg)}function gs(n,i){n.blockedOn===i&&(n.blockedOn=null,Cd||(Cd=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,MN)))}var bs=null;function Ug(n){bs!==n&&(bs=n,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){bs===n&&(bs=null);for(var i=0;i<n.length;i+=3){var l=n[i],o=n[i+1],f=n[i+2];if(typeof o!="function"){if(zd(o||l)===null)continue;break}var h=fr(l);h!==null&&(n.splice(i,3),i-=3,Af(h,{pending:!0,data:f,method:l.method,action:o},o,f))}}))}function $r(n){function i(x){return gs(x,n)}ii!==null&&gs(ii,n),ri!==null&&gs(ri,n),li!==null&&gs(li,n),Su.forEach(i),ku.forEach(i);for(var l=0;l<ui.length;l++){var o=ui[l];o.blockedOn===n&&(o.blockedOn=null)}for(;0<ui.length&&(l=ui[0],l.blockedOn===null);)Fg(l),l.blockedOn===null&&ui.shift();if(l=(n.ownerDocument||n).$$reactFormReplay,l!=null)for(o=0;o<l.length;o+=3){var f=l[o],h=l[o+1],g=f[en]||null;if(typeof h=="function")g||Ug(l);else if(g){var k=null;if(h&&h.hasAttribute("formAction")){if(f=h,g=h[en]||null)k=g.formAction;else if(zd(f)!==null)continue}else k=g.action;typeof k=="function"?l[o+1]=k:(l.splice(o,3),o-=3),Ug(l)}}}function Lg(){function n(h){h.canIntercept&&h.info==="react-transition"&&h.intercept({handler:function(){return new Promise(function(g){return f=g})},focusReset:"manual",scroll:"manual"})}function i(){f!==null&&(f(),f=null),o||setTimeout(l,20)}function l(){if(!o&&!navigation.transition){var h=navigation.currentEntry;h&&h.url!=null&&navigation.navigate(h.url,{state:h.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var o=!1,f=null;return navigation.addEventListener("navigate",n),navigation.addEventListener("navigatesuccess",i),navigation.addEventListener("navigateerror",i),setTimeout(l,100),function(){o=!0,navigation.removeEventListener("navigate",n),navigation.removeEventListener("navigatesuccess",i),navigation.removeEventListener("navigateerror",i),f!==null&&(f(),f=null)}}}function jd(n){this._internalRoot=n}_s.prototype.render=jd.prototype.render=function(n){var i=this._internalRoot;if(i===null)throw Error(r(409));var l=i.current,o=bn();Rg(l,o,n,i,null,null)},_s.prototype.unmount=jd.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var i=n.containerInfo;Rg(n.current,2,null,n,null,null),es(),i[sr]=null}};function _s(n){this._internalRoot=n}_s.prototype.unstable_scheduleHydration=function(n){if(n){var i=Pm();n={blockedOn:null,target:n,priority:i};for(var l=0;l<ui.length&&i!==0&&i<ui[l].priority;l++);ui.splice(l,0,n),l===0&&Fg(n)}};var qg=t.version;if(qg!=="19.2.5")throw Error(r(527,qg,"19.2.5"));P.findDOMNode=function(n){var i=n._reactInternals;if(i===void 0)throw typeof n.render=="function"?Error(r(188)):(n=Object.keys(n).join(","),Error(r(268,n)));return n=m(i),n=n!==null?v(n):null,n=n===null?null:n.stateNode,n};var FN={bundleType:0,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:U,reconcilerVersion:"19.2.5"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ss=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ss.isDisabled&&Ss.supportsFiber)try{Ht=Ss.inject(FN),Xe=Ss}catch{}}return xu.createRoot=function(n,i){if(!u(n))throw Error(r(299));var l=!1,o="",f=Gv,h=Yv,g=Pv;return i!=null&&(i.unstable_strictMode===!0&&(l=!0),i.identifierPrefix!==void 0&&(o=i.identifierPrefix),i.onUncaughtError!==void 0&&(f=i.onUncaughtError),i.onCaughtError!==void 0&&(h=i.onCaughtError),i.onRecoverableError!==void 0&&(g=i.onRecoverableError)),i=Dg(n,1,!1,null,null,l,o,null,f,h,g,Lg),n[sr]=i.current,pd(n),new jd(i)},xu.hydrateRoot=function(n,i,l){if(!u(n))throw Error(r(299));var o=!1,f="",h=Gv,g=Yv,k=Pv,x=null;return l!=null&&(l.unstable_strictMode===!0&&(o=!0),l.identifierPrefix!==void 0&&(f=l.identifierPrefix),l.onUncaughtError!==void 0&&(h=l.onUncaughtError),l.onCaughtError!==void 0&&(g=l.onCaughtError),l.onRecoverableError!==void 0&&(k=l.onRecoverableError),l.formState!==void 0&&(x=l.formState)),i=Dg(n,1,!0,i,l??null,o,f,x,h,g,k,Lg),i.context=xg(null),l=i.current,o=bn(),o=Ec(o),f=$a(o),f.callback=null,Ga(l,f,o),l=o,i.current.lanes=l,jl(i,l),na(i),n[sr]=i.current,pd(n),new _s(i)},xu.version="19.2.5",xu}var Kb;function p1(){if(Kb)return th.exports;Kb=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),th.exports=m1(),th.exports}var v1=p1();let y1={data:""},g1=e=>{if(typeof window=="object"){let t=(e?e.querySelector("#_goober"):window._goober)||Object.assign(document.createElement("style"),{innerHTML:" ",id:"_goober"});return t.nonce=window.__nonce__,t.parentNode||(e||document.head).appendChild(t),t.firstChild}return e||y1},b1=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,_1=/\/\*[^]*?\*\/| +/g,Wb=/\n+/g,mi=(e,t)=>{let a="",r="",u="";for(let s in e){let c=e[s];s[0]=="@"?s[1]=="i"?a=s+" "+c+";":r+=s[1]=="f"?mi(c,s):s+"{"+mi(c,s[1]=="k"?"":t)+"}":typeof c=="object"?r+=mi(c,t?t.replace(/([^,])+/g,d=>s.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,p=>/&/.test(p)?p.replace(/&/g,d):d?d+" "+p:p)):s):c!=null&&(s=/^--/.test(s)?s:s.replace(/[A-Z]/g,"-$&").toLowerCase(),u+=mi.p?mi.p(s,c):s+":"+c+";")}return a+(t&&u?t+"{"+u+"}":u)+r},xa={},sS=e=>{if(typeof e=="object"){let t="";for(let a in e)t+=a+sS(e[a]);return t}return e},S1=(e,t,a,r,u)=>{let s=sS(e),c=xa[s]||(xa[s]=(p=>{let m=0,v=11;for(;m<p.length;)v=101*v+p.charCodeAt(m++)>>>0;return"go"+v})(s));if(!xa[c]){let p=s!==e?e:(m=>{let v,y,b=[{}];for(;v=b1.exec(m.replace(_1,""));)v[4]?b.shift():v[3]?(y=v[3].replace(Wb," ").trim(),b.unshift(b[0][y]=b[0][y]||{})):b[0][v[1]]=v[2].replace(Wb," ").trim();return b[0]})(e);xa[c]=mi(u?{["@keyframes "+c]:p}:p,a?"":"."+c)}let d=a&&xa.g?xa.g:null;return a&&(xa.g=xa[c]),((p,m,v,y)=>{y?m.data=m.data.replace(y,p):m.data.indexOf(p)===-1&&(m.data=v?p+m.data:m.data+p)})(xa[c],t,r,d),c},k1=(e,t,a)=>e.reduce((r,u,s)=>{let c=t[s];if(c&&c.call){let d=c(a),p=d&&d.props&&d.props.className||/^go/.test(d)&&d;c=p?"."+p:d&&typeof d=="object"?d.props?"":mi(d,""):d===!1?"":d}return r+u+(c??"")},"");function cc(e){let t=this||{},a=e.call?e(t.p):e;return S1(a.unshift?a.raw?k1(a,[].slice.call(arguments,1),t.p):a.reduce((r,u)=>Object.assign(r,u&&u.call?u(t.p):u),{}):a,g1(t.target),t.g,t.o,t.k)}let cS,qh,Qh;cc.bind({g:1});let Ma=cc.bind({k:1});function E1(e,t,a,r){mi.p=t,cS=e,qh=a,Qh=r}function Ei(e,t){let a=this||{};return function(){let r=arguments;function u(s,c){let d=Object.assign({},s),p=d.className||u.className;a.p=Object.assign({theme:qh&&qh()},d),a.o=/ *go\d+/.test(p),d.className=cc.apply(a,r)+(p?" "+p:"");let m=e;return e[0]&&(m=d.as||e,delete d.as),Qh&&m[0]&&Qh(d),cS(m,d)}return u}}var N1=e=>typeof e=="function",Hs=(e,t)=>N1(e)?e(t):e,T1=(()=>{let e=0;return()=>(++e).toString()})(),fS=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),O1=20,Em="default",dS=(e,t)=>{let{toastLimit:a}=e.settings;switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,a)};case 1:return{...e,toasts:e.toasts.map(c=>c.id===t.toast.id?{...c,...t.toast}:c)};case 2:let{toast:r}=t;return dS(e,{type:e.toasts.find(c=>c.id===r.id)?1:0,toast:r});case 3:let{toastId:u}=t;return{...e,toasts:e.toasts.map(c=>c.id===u||u===void 0?{...c,dismissed:!0,visible:!1}:c)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(c=>c.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let s=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(c=>({...c,pauseDuration:c.pauseDuration+s}))}}},Vs=[],hS={toasts:[],pausedAt:void 0,settings:{toastLimit:O1}},ra={},mS=(e,t=Em)=>{ra[t]=dS(ra[t]||hS,e),Vs.forEach(([a,r])=>{a===t&&r(ra[t])})},pS=e=>Object.keys(ra).forEach(t=>mS(e,t)),w1=e=>Object.keys(ra).find(t=>ra[t].toasts.some(a=>a.id===e)),fc=(e=Em)=>t=>{mS(t,e)},D1={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},x1=(e={},t=Em)=>{let[a,r]=F.useState(ra[t]||hS),u=F.useRef(ra[t]);F.useEffect(()=>(u.current!==ra[t]&&r(ra[t]),Vs.push([t,r]),()=>{let c=Vs.findIndex(([d])=>d===t);c>-1&&Vs.splice(c,1)}),[t]);let s=a.toasts.map(c=>{var d,p,m;return{...e,...e[c.type],...c,removeDelay:c.removeDelay||((d=e[c.type])==null?void 0:d.removeDelay)||(e==null?void 0:e.removeDelay),duration:c.duration||((p=e[c.type])==null?void 0:p.duration)||(e==null?void 0:e.duration)||D1[c.type],style:{...e.style,...(m=e[c.type])==null?void 0:m.style,...c.style}}});return{...a,toasts:s}},R1=(e,t="blank",a)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...a,id:(a==null?void 0:a.id)||T1()}),Wu=e=>(t,a)=>{let r=R1(t,e,a);return fc(r.toasterId||w1(r.id))({type:2,toast:r}),r.id},je=(e,t)=>Wu("blank")(e,t);je.error=Wu("error");je.success=Wu("success");je.loading=Wu("loading");je.custom=Wu("custom");je.dismiss=(e,t)=>{let a={type:3,toastId:e};t?fc(t)(a):pS(a)};je.dismissAll=e=>je.dismiss(void 0,e);je.remove=(e,t)=>{let a={type:4,toastId:e};t?fc(t)(a):pS(a)};je.removeAll=e=>je.remove(void 0,e);je.promise=(e,t,a)=>{let r=je.loading(t.loading,{...a,...a==null?void 0:a.loading});return typeof e=="function"&&(e=e()),e.then(u=>{let s=t.success?Hs(t.success,u):void 0;return s?je.success(s,{id:r,...a,...a==null?void 0:a.success}):je.dismiss(r),u}).catch(u=>{let s=t.error?Hs(t.error,u):void 0;s?je.error(s,{id:r,...a,...a==null?void 0:a.error}):je.dismiss(r)}),e};var A1=1e3,z1=(e,t="default")=>{let{toasts:a,pausedAt:r}=x1(e,t),u=F.useRef(new Map).current,s=F.useCallback((y,b=A1)=>{if(u.has(y))return;let _=setTimeout(()=>{u.delete(y),c({type:4,toastId:y})},b);u.set(y,_)},[]);F.useEffect(()=>{if(r)return;let y=Date.now(),b=a.map(_=>{if(_.duration===1/0)return;let E=(_.duration||0)+_.pauseDuration-(y-_.createdAt);if(E<0){_.visible&&je.dismiss(_.id);return}return setTimeout(()=>je.dismiss(_.id,t),E)});return()=>{b.forEach(_=>_&&clearTimeout(_))}},[a,r,t]);let c=F.useCallback(fc(t),[t]),d=F.useCallback(()=>{c({type:5,time:Date.now()})},[c]),p=F.useCallback((y,b)=>{c({type:1,toast:{id:y,height:b}})},[c]),m=F.useCallback(()=>{r&&c({type:6,time:Date.now()})},[r,c]),v=F.useCallback((y,b)=>{let{reverseOrder:_=!1,gutter:E=8,defaultPosition:T}=b||{},D=a.filter(O=>(O.position||T)===(y.position||T)&&O.height),N=D.findIndex(O=>O.id===y.id),w=D.filter((O,M)=>M<N&&O.visible).length;return D.filter(O=>O.visible).slice(..._?[w+1]:[0,w]).reduce((O,M)=>O+(M.height||0)+E,0)},[a]);return F.useEffect(()=>{a.forEach(y=>{if(y.dismissed)s(y.id,y.removeDelay);else{let b=u.get(y.id);b&&(clearTimeout(b),u.delete(y.id))}})},[a,s]),{toasts:a,handlers:{updateHeight:p,startPause:d,endPause:m,calculateOffset:v}}},C1=Ma`
89
+ `+o.stack}}var Rl=Object.prototype.hasOwnProperty,Al=e.unstable_scheduleCallback,io=e.unstable_cancelCallback,ro=e.unstable_shouldYield,R=e.unstable_requestPaint,L=e.unstable_now,I=e.unstable_getCurrentPriorityLevel,ue=e.unstable_ImmediatePriority,re=e.unstable_UserBlockingPriority,te=e.unstable_NormalPriority,he=e.unstable_LowPriority,we=e.unstable_IdlePriority,Le=e.log,Ft=e.unstable_setDisableYieldValue,Ht=null,Xe=null;function Kn(n){if(typeof Le=="function"&&Ft(n),Xe&&typeof Xe.setStrictMode=="function")try{Xe.setStrictMode(Ht,n)}catch{}}var Vt=Math.clz32?Math.clz32:lo,zl=Math.log,Sc=Math.LN2;function lo(n){return n>>>=0,n===0?32:31-(zl(n)/Sc|0)|0}var or=256,Di=262144,uo=4194304;function xi(n){var i=n&42;if(i!==0)return i;switch(n&-n){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return n&261888;case 262144:case 524288:case 1048576:case 2097152:return n&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return n}}function oo(n,i,l){var o=n.pendingLanes;if(o===0)return 0;var f=0,h=n.suspendedLanes,g=n.pingedLanes;n=n.warmLanes;var k=o&134217727;return k!==0?(o=k&~h,o!==0?f=xi(o):(g&=k,g!==0?f=xi(g):l||(l=k&~n,l!==0&&(f=xi(l))))):(k=o&~h,k!==0?f=xi(k):g!==0?f=xi(g):l||(l=o&~n,l!==0&&(f=xi(l)))),f===0?0:i!==0&&i!==f&&(i&h)===0&&(h=f&-f,l=i&-i,h>=l||h===32&&(l&4194048)!==0)?i:f}function Cl(n,i){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&i)===0}function Ok(n,i){switch(n){case 1:case 2:case 4:case 8:case 64:return i+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Hm(){var n=uo;return uo<<=1,(uo&62914560)===0&&(uo=4194304),n}function kc(n){for(var i=[],l=0;31>l;l++)i.push(n);return i}function jl(n,i){n.pendingLanes|=i,i!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function wk(n,i,l,o,f,h){var g=n.pendingLanes;n.pendingLanes=l,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=l,n.entangledLanes&=l,n.errorRecoveryDisabledLanes&=l,n.shellSuspendCounter=0;var k=n.entanglements,x=n.expirationTimes,Q=n.hiddenUpdates;for(l=g&~l;0<l;){var Y=31-Vt(l),K=1<<Y;k[Y]=0,x[Y]=-1;var B=Q[Y];if(B!==null)for(Q[Y]=null,Y=0;Y<B.length;Y++){var H=B[Y];H!==null&&(H.lane&=-536870913)}l&=~K}o!==0&&$m(n,o,0),h!==0&&f===0&&n.tag!==0&&(n.suspendedLanes|=h&~(g&~i))}function $m(n,i,l){n.pendingLanes|=i,n.suspendedLanes&=~i;var o=31-Vt(i);n.entangledLanes|=i,n.entanglements[o]=n.entanglements[o]|1073741824|l&261930}function Gm(n,i){var l=n.entangledLanes|=i;for(n=n.entanglements;l;){var o=31-Vt(l),f=1<<o;f&i|n[o]&i&&(n[o]|=i),l&=~f}}function Ym(n,i){var l=i&-i;return l=(l&42)!==0?1:Ec(l),(l&(n.suspendedLanes|i))!==0?0:l}function Ec(n){switch(n){case 2:n=1;break;case 8:n=4;break;case 32:n=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:n=128;break;case 268435456:n=134217728;break;default:n=0}return n}function Nc(n){return n&=-n,2<n?8<n?(n&134217727)!==0?32:268435456:8:2}function Pm(){var n=P.p;return n!==0?n:(n=window.event,n===void 0?32:jg(n.type))}function Xm(n,i){var l=P.p;try{return P.p=n,i()}finally{P.p=l}}var La=Math.random().toString(36).slice(2),Ut="__reactFiber$"+La,en="__reactProps$"+La,sr="__reactContainer$"+La,Tc="__reactEvents$"+La,Dk="__reactListeners$"+La,xk="__reactHandles$"+La,Jm="__reactResources$"+La,Ml="__reactMarker$"+La;function Oc(n){delete n[Ut],delete n[en],delete n[Tc],delete n[Dk],delete n[xk]}function cr(n){var i=n[Ut];if(i)return i;for(var l=n.parentNode;l;){if(i=l[sr]||l[Ut]){if(l=i.alternate,i.child!==null||l!==null&&l.child!==null)for(n=gg(n);n!==null;){if(l=n[Ut])return l;n=gg(n)}return i}n=l,l=n.parentNode}return null}function fr(n){if(n=n[Ut]||n[sr]){var i=n.tag;if(i===5||i===6||i===13||i===31||i===26||i===27||i===3)return n}return null}function Fl(n){var i=n.tag;if(i===5||i===26||i===27||i===6)return n.stateNode;throw Error(r(33))}function dr(n){var i=n[Jm];return i||(i=n[Jm]={hoistableStyles:new Map,hoistableScripts:new Map}),i}function zt(n){n[Ml]=!0}var Km=new Set,Wm={};function Ri(n,i){hr(n,i),hr(n+"Capture",i)}function hr(n,i){for(Wm[n]=i,n=0;n<i.length;n++)Km.add(i[n])}var Rk=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),ep={},tp={};function Ak(n){return Rl.call(tp,n)?!0:Rl.call(ep,n)?!1:Rk.test(n)?tp[n]=!0:(ep[n]=!0,!1)}function so(n,i,l){if(Ak(i))if(l===null)n.removeAttribute(i);else{switch(typeof l){case"undefined":case"function":case"symbol":n.removeAttribute(i);return;case"boolean":var o=i.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){n.removeAttribute(i);return}}n.setAttribute(i,""+l)}}function co(n,i,l){if(l===null)n.removeAttribute(i);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(i);return}n.setAttribute(i,""+l)}}function fa(n,i,l,o){if(o===null)n.removeAttribute(l);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(l);return}n.setAttributeNS(i,l,""+o)}}function Nn(n){switch(typeof n){case"bigint":case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function np(n){var i=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function zk(n,i,l){var o=Object.getOwnPropertyDescriptor(n.constructor.prototype,i);if(!n.hasOwnProperty(i)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var f=o.get,h=o.set;return Object.defineProperty(n,i,{configurable:!0,get:function(){return f.call(this)},set:function(g){l=""+g,h.call(this,g)}}),Object.defineProperty(n,i,{enumerable:o.enumerable}),{getValue:function(){return l},setValue:function(g){l=""+g},stopTracking:function(){n._valueTracker=null,delete n[i]}}}}function wc(n){if(!n._valueTracker){var i=np(n)?"checked":"value";n._valueTracker=zk(n,i,""+n[i])}}function ap(n){if(!n)return!1;var i=n._valueTracker;if(!i)return!0;var l=i.getValue(),o="";return n&&(o=np(n)?n.checked?"true":"false":n.value),n=o,n!==l?(i.setValue(n),!0):!1}function fo(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}var Ck=/[\n"\\]/g;function Tn(n){return n.replace(Ck,function(i){return"\\"+i.charCodeAt(0).toString(16)+" "})}function Dc(n,i,l,o,f,h,g,k){n.name="",g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?n.type=g:n.removeAttribute("type"),i!=null?g==="number"?(i===0&&n.value===""||n.value!=i)&&(n.value=""+Nn(i)):n.value!==""+Nn(i)&&(n.value=""+Nn(i)):g!=="submit"&&g!=="reset"||n.removeAttribute("value"),i!=null?xc(n,g,Nn(i)):l!=null?xc(n,g,Nn(l)):o!=null&&n.removeAttribute("value"),f==null&&h!=null&&(n.defaultChecked=!!h),f!=null&&(n.checked=f&&typeof f!="function"&&typeof f!="symbol"),k!=null&&typeof k!="function"&&typeof k!="symbol"&&typeof k!="boolean"?n.name=""+Nn(k):n.removeAttribute("name")}function ip(n,i,l,o,f,h,g,k){if(h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(n.type=h),i!=null||l!=null){if(!(h!=="submit"&&h!=="reset"||i!=null)){wc(n);return}l=l!=null?""+Nn(l):"",i=i!=null?""+Nn(i):l,k||i===n.value||(n.value=i),n.defaultValue=i}o=o??f,o=typeof o!="function"&&typeof o!="symbol"&&!!o,n.checked=k?n.checked:!!o,n.defaultChecked=!!o,g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(n.name=g),wc(n)}function xc(n,i,l){i==="number"&&fo(n.ownerDocument)===n||n.defaultValue===""+l||(n.defaultValue=""+l)}function mr(n,i,l,o){if(n=n.options,i){i={};for(var f=0;f<l.length;f++)i["$"+l[f]]=!0;for(l=0;l<n.length;l++)f=i.hasOwnProperty("$"+n[l].value),n[l].selected!==f&&(n[l].selected=f),f&&o&&(n[l].defaultSelected=!0)}else{for(l=""+Nn(l),i=null,f=0;f<n.length;f++){if(n[f].value===l){n[f].selected=!0,o&&(n[f].defaultSelected=!0);return}i!==null||n[f].disabled||(i=n[f])}i!==null&&(i.selected=!0)}}function rp(n,i,l){if(i!=null&&(i=""+Nn(i),i!==n.value&&(n.value=i),l==null)){n.defaultValue!==i&&(n.defaultValue=i);return}n.defaultValue=l!=null?""+Nn(l):""}function lp(n,i,l,o){if(i==null){if(o!=null){if(l!=null)throw Error(r(92));if(ce(o)){if(1<o.length)throw Error(r(93));o=o[0]}l=o}l==null&&(l=""),i=l}l=Nn(i),n.defaultValue=l,o=n.textContent,o===l&&o!==""&&o!==null&&(n.value=o),wc(n)}function pr(n,i){if(i){var l=n.firstChild;if(l&&l===n.lastChild&&l.nodeType===3){l.nodeValue=i;return}}n.textContent=i}var jk=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function up(n,i,l){var o=i.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?o?n.setProperty(i,""):i==="float"?n.cssFloat="":n[i]="":o?n.setProperty(i,l):typeof l!="number"||l===0||jk.has(i)?i==="float"?n.cssFloat=l:n[i]=(""+l).trim():n[i]=l+"px"}function op(n,i,l){if(i!=null&&typeof i!="object")throw Error(r(62));if(n=n.style,l!=null){for(var o in l)!l.hasOwnProperty(o)||i!=null&&i.hasOwnProperty(o)||(o.indexOf("--")===0?n.setProperty(o,""):o==="float"?n.cssFloat="":n[o]="");for(var f in i)o=i[f],i.hasOwnProperty(f)&&l[f]!==o&&up(n,f,o)}else for(var h in i)i.hasOwnProperty(h)&&up(n,h,i[h])}function Rc(n){if(n.indexOf("-")===-1)return!1;switch(n){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Mk=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Fk=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function ho(n){return Fk.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}function da(){}var Ac=null;function zc(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var vr=null,yr=null;function sp(n){var i=fr(n);if(i&&(n=i.stateNode)){var l=n[en]||null;e:switch(n=i.stateNode,i.type){case"input":if(Dc(n,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),i=l.name,l.type==="radio"&&i!=null){for(l=n;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Tn(""+i)+'"][type="radio"]'),i=0;i<l.length;i++){var o=l[i];if(o!==n&&o.form===n.form){var f=o[en]||null;if(!f)throw Error(r(90));Dc(o,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name)}}for(i=0;i<l.length;i++)o=l[i],o.form===n.form&&ap(o)}break e;case"textarea":rp(n,l.value,l.defaultValue);break e;case"select":i=l.value,i!=null&&mr(n,!!l.multiple,i,!1)}}}var Cc=!1;function cp(n,i,l){if(Cc)return n(i,l);Cc=!0;try{var o=n(i);return o}finally{if(Cc=!1,(vr!==null||yr!==null)&&(es(),vr&&(i=vr,n=yr,yr=vr=null,sp(i),n)))for(i=0;i<n.length;i++)sp(n[i])}}function Vl(n,i){var l=n.stateNode;if(l===null)return null;var o=l[en]||null;if(o===null)return null;l=o[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(n=n.type,o=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!o;break e;default:n=!1}if(n)return null;if(l&&typeof l!="function")throw Error(r(231,i,typeof l));return l}var ha=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),jc=!1;if(ha)try{var Ul={};Object.defineProperty(Ul,"passive",{get:function(){jc=!0}}),window.addEventListener("test",Ul,Ul),window.removeEventListener("test",Ul,Ul)}catch{jc=!1}var qa=null,Mc=null,mo=null;function fp(){if(mo)return mo;var n,i=Mc,l=i.length,o,f="value"in qa?qa.value:qa.textContent,h=f.length;for(n=0;n<l&&i[n]===f[n];n++);var g=l-n;for(o=1;o<=g&&i[l-o]===f[h-o];o++);return mo=f.slice(n,1<o?1-o:void 0)}function po(n){var i=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&i===13&&(n=13)):n=i,n===10&&(n=13),32<=n||n===13?n:0}function vo(){return!0}function dp(){return!1}function tn(n){function i(l,o,f,h,g){this._reactName=l,this._targetInst=f,this.type=o,this.nativeEvent=h,this.target=g,this.currentTarget=null;for(var k in n)n.hasOwnProperty(k)&&(l=n[k],this[k]=l?l(h):h[k]);return this.isDefaultPrevented=(h.defaultPrevented!=null?h.defaultPrevented:h.returnValue===!1)?vo:dp,this.isPropagationStopped=dp,this}return y(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=vo)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=vo)},persist:function(){},isPersistent:vo}),i}var Ai={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},yo=tn(Ai),Ll=y({},Ai,{view:0,detail:0}),Vk=tn(Ll),Fc,Vc,ql,go=y({},Ll,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Lc,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==ql&&(ql&&n.type==="mousemove"?(Fc=n.screenX-ql.screenX,Vc=n.screenY-ql.screenY):Vc=Fc=0,ql=n),Fc)},movementY:function(n){return"movementY"in n?n.movementY:Vc}}),hp=tn(go),Uk=y({},go,{dataTransfer:0}),Lk=tn(Uk),qk=y({},Ll,{relatedTarget:0}),Uc=tn(qk),Qk=y({},Ai,{animationName:0,elapsedTime:0,pseudoElement:0}),Bk=tn(Qk),Ik=y({},Ai,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),Zk=tn(Ik),Hk=y({},Ai,{data:0}),mp=tn(Hk),$k={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Gk={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Yk={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Pk(n){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(n):(n=Yk[n])?!!i[n]:!1}function Lc(){return Pk}var Xk=y({},Ll,{key:function(n){if(n.key){var i=$k[n.key]||n.key;if(i!=="Unidentified")return i}return n.type==="keypress"?(n=po(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?Gk[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Lc,charCode:function(n){return n.type==="keypress"?po(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?po(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),Jk=tn(Xk),Kk=y({},go,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),pp=tn(Kk),Wk=y({},Ll,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Lc}),eE=tn(Wk),tE=y({},Ai,{propertyName:0,elapsedTime:0,pseudoElement:0}),nE=tn(tE),aE=y({},go,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),iE=tn(aE),rE=y({},Ai,{newState:0,oldState:0}),lE=tn(rE),uE=[9,13,27,32],qc=ha&&"CompositionEvent"in window,Ql=null;ha&&"documentMode"in document&&(Ql=document.documentMode);var oE=ha&&"TextEvent"in window&&!Ql,vp=ha&&(!qc||Ql&&8<Ql&&11>=Ql),yp=" ",gp=!1;function bp(n,i){switch(n){case"keyup":return uE.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function _p(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var gr=!1;function sE(n,i){switch(n){case"compositionend":return _p(i);case"keypress":return i.which!==32?null:(gp=!0,yp);case"textInput":return n=i.data,n===yp&&gp?null:n;default:return null}}function cE(n,i){if(gr)return n==="compositionend"||!qc&&bp(n,i)?(n=fp(),mo=Mc=qa=null,gr=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return vp&&i.locale!=="ko"?null:i.data;default:return null}}var fE={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Sp(n){var i=n&&n.nodeName&&n.nodeName.toLowerCase();return i==="input"?!!fE[n.type]:i==="textarea"}function kp(n,i,l,o){vr?yr?yr.push(o):yr=[o]:vr=o,i=us(i,"onChange"),0<i.length&&(l=new yo("onChange","change",null,l,o),n.push({event:l,listeners:i}))}var Bl=null,Il=null;function dE(n){ig(n,0)}function bo(n){var i=Fl(n);if(ap(i))return n}function Ep(n,i){if(n==="change")return i}var Np=!1;if(ha){var Qc;if(ha){var Bc="oninput"in document;if(!Bc){var Tp=document.createElement("div");Tp.setAttribute("oninput","return;"),Bc=typeof Tp.oninput=="function"}Qc=Bc}else Qc=!1;Np=Qc&&(!document.documentMode||9<document.documentMode)}function Op(){Bl&&(Bl.detachEvent("onpropertychange",wp),Il=Bl=null)}function wp(n){if(n.propertyName==="value"&&bo(Il)){var i=[];kp(i,Il,n,zc(n)),cp(dE,i)}}function hE(n,i,l){n==="focusin"?(Op(),Bl=i,Il=l,Bl.attachEvent("onpropertychange",wp)):n==="focusout"&&Op()}function mE(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return bo(Il)}function pE(n,i){if(n==="click")return bo(i)}function vE(n,i){if(n==="input"||n==="change")return bo(i)}function yE(n,i){return n===i&&(n!==0||1/n===1/i)||n!==n&&i!==i}var hn=typeof Object.is=="function"?Object.is:yE;function Zl(n,i){if(hn(n,i))return!0;if(typeof n!="object"||n===null||typeof i!="object"||i===null)return!1;var l=Object.keys(n),o=Object.keys(i);if(l.length!==o.length)return!1;for(o=0;o<l.length;o++){var f=l[o];if(!Rl.call(i,f)||!hn(n[f],i[f]))return!1}return!0}function Dp(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function xp(n,i){var l=Dp(n);n=0;for(var o;l;){if(l.nodeType===3){if(o=n+l.textContent.length,n<=i&&o>=i)return{node:l,offset:i-n};n=o}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Dp(l)}}function Rp(n,i){return n&&i?n===i?!0:n&&n.nodeType===3?!1:i&&i.nodeType===3?Rp(n,i.parentNode):"contains"in n?n.contains(i):n.compareDocumentPosition?!!(n.compareDocumentPosition(i)&16):!1:!1}function Ap(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var i=fo(n.document);i instanceof n.HTMLIFrameElement;){try{var l=typeof i.contentWindow.location.href=="string"}catch{l=!1}if(l)n=i.contentWindow;else break;i=fo(n.document)}return i}function Ic(n){var i=n&&n.nodeName&&n.nodeName.toLowerCase();return i&&(i==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||i==="textarea"||n.contentEditable==="true")}var gE=ha&&"documentMode"in document&&11>=document.documentMode,br=null,Zc=null,Hl=null,Hc=!1;function zp(n,i,l){var o=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Hc||br==null||br!==fo(o)||(o=br,"selectionStart"in o&&Ic(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Hl&&Zl(Hl,o)||(Hl=o,o=us(Zc,"onSelect"),0<o.length&&(i=new yo("onSelect","select",null,i,l),n.push({event:i,listeners:o}),i.target=br)))}function zi(n,i){var l={};return l[n.toLowerCase()]=i.toLowerCase(),l["Webkit"+n]="webkit"+i,l["Moz"+n]="moz"+i,l}var _r={animationend:zi("Animation","AnimationEnd"),animationiteration:zi("Animation","AnimationIteration"),animationstart:zi("Animation","AnimationStart"),transitionrun:zi("Transition","TransitionRun"),transitionstart:zi("Transition","TransitionStart"),transitioncancel:zi("Transition","TransitionCancel"),transitionend:zi("Transition","TransitionEnd")},$c={},Cp={};ha&&(Cp=document.createElement("div").style,"AnimationEvent"in window||(delete _r.animationend.animation,delete _r.animationiteration.animation,delete _r.animationstart.animation),"TransitionEvent"in window||delete _r.transitionend.transition);function Ci(n){if($c[n])return $c[n];if(!_r[n])return n;var i=_r[n],l;for(l in i)if(i.hasOwnProperty(l)&&l in Cp)return $c[n]=i[l];return n}var jp=Ci("animationend"),Mp=Ci("animationiteration"),Fp=Ci("animationstart"),bE=Ci("transitionrun"),_E=Ci("transitionstart"),SE=Ci("transitioncancel"),Vp=Ci("transitionend"),Up=new Map,Gc="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Gc.push("scrollEnd");function Un(n,i){Up.set(n,i),Ri(i,[n])}var _o=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var i=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(i))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)},On=[],Sr=0,Yc=0;function So(){for(var n=Sr,i=Yc=Sr=0;i<n;){var l=On[i];On[i++]=null;var o=On[i];On[i++]=null;var f=On[i];On[i++]=null;var h=On[i];if(On[i++]=null,o!==null&&f!==null){var g=o.pending;g===null?f.next=f:(f.next=g.next,g.next=f),o.pending=f}h!==0&&Lp(l,f,h)}}function ko(n,i,l,o){On[Sr++]=n,On[Sr++]=i,On[Sr++]=l,On[Sr++]=o,Yc|=o,n.lanes|=o,n=n.alternate,n!==null&&(n.lanes|=o)}function Pc(n,i,l,o){return ko(n,i,l,o),Eo(n)}function ji(n,i){return ko(n,null,null,i),Eo(n)}function Lp(n,i,l){n.lanes|=l;var o=n.alternate;o!==null&&(o.lanes|=l);for(var f=!1,h=n.return;h!==null;)h.childLanes|=l,o=h.alternate,o!==null&&(o.childLanes|=l),h.tag===22&&(n=h.stateNode,n===null||n._visibility&1||(f=!0)),n=h,h=h.return;return n.tag===3?(h=n.stateNode,f&&i!==null&&(f=31-Vt(l),n=h.hiddenUpdates,o=n[f],o===null?n[f]=[i]:o.push(i),i.lane=l|536870912),h):null}function Eo(n){if(50<hu)throw hu=0,rd=null,Error(r(185));for(var i=n.return;i!==null;)n=i,i=n.return;return n.tag===3?n.stateNode:null}var kr={};function kE(n,i,l,o){this.tag=n,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function mn(n,i,l,o){return new kE(n,i,l,o)}function Xc(n){return n=n.prototype,!(!n||!n.isReactComponent)}function ma(n,i){var l=n.alternate;return l===null?(l=mn(n.tag,i,n.key,n.mode),l.elementType=n.elementType,l.type=n.type,l.stateNode=n.stateNode,l.alternate=n,n.alternate=l):(l.pendingProps=i,l.type=n.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=n.flags&65011712,l.childLanes=n.childLanes,l.lanes=n.lanes,l.child=n.child,l.memoizedProps=n.memoizedProps,l.memoizedState=n.memoizedState,l.updateQueue=n.updateQueue,i=n.dependencies,l.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},l.sibling=n.sibling,l.index=n.index,l.ref=n.ref,l.refCleanup=n.refCleanup,l}function qp(n,i){n.flags&=65011714;var l=n.alternate;return l===null?(n.childLanes=0,n.lanes=i,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=l.childLanes,n.lanes=l.lanes,n.child=l.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=l.memoizedProps,n.memoizedState=l.memoizedState,n.updateQueue=l.updateQueue,n.type=l.type,i=l.dependencies,n.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),n}function No(n,i,l,o,f,h){var g=0;if(o=n,typeof n=="function")Xc(n)&&(g=1);else if(typeof n=="string")g=wN(n,l,oe.current)?26:n==="html"||n==="head"||n==="body"?27:5;else e:switch(n){case se:return n=mn(31,l,i,f),n.elementType=se,n.lanes=h,n;case T:return Mi(l.children,f,h,i);case D:g=8,f|=24;break;case N:return n=mn(12,l,i,f|2),n.elementType=N,n.lanes=h,n;case z:return n=mn(13,l,i,f),n.elementType=z,n.lanes=h,n;case Z:return n=mn(19,l,i,f),n.elementType=Z,n.lanes=h,n;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case O:g=10;break e;case w:g=9;break e;case M:g=11;break e;case $:g=14;break e;case W:g=16,o=null;break e}g=29,l=Error(r(130,n===null?"null":typeof n,"")),o=null}return i=mn(g,l,i,f),i.elementType=n,i.type=o,i.lanes=h,i}function Mi(n,i,l,o){return n=mn(7,n,o,i),n.lanes=l,n}function Jc(n,i,l){return n=mn(6,n,null,i),n.lanes=l,n}function Qp(n){var i=mn(18,null,null,0);return i.stateNode=n,i}function Kc(n,i,l){return i=mn(4,n.children!==null?n.children:[],n.key,i),i.lanes=l,i.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},i}var Bp=new WeakMap;function wn(n,i){if(typeof n=="object"&&n!==null){var l=Bp.get(n);return l!==void 0?l:(i={value:n,source:i,stack:xl(i)},Bp.set(n,i),i)}return{value:n,source:i,stack:xl(i)}}var Er=[],Nr=0,To=null,$l=0,Dn=[],xn=0,Qa=null,Wn=1,ea="";function pa(n,i){Er[Nr++]=$l,Er[Nr++]=To,To=n,$l=i}function Ip(n,i,l){Dn[xn++]=Wn,Dn[xn++]=ea,Dn[xn++]=Qa,Qa=n;var o=Wn;n=ea;var f=32-Vt(o)-1;o&=~(1<<f),l+=1;var h=32-Vt(i)+f;if(30<h){var g=f-f%5;h=(o&(1<<g)-1).toString(32),o>>=g,f-=g,Wn=1<<32-Vt(i)+f|l<<f|o,ea=h+n}else Wn=1<<h|l<<f|o,ea=n}function Wc(n){n.return!==null&&(pa(n,1),Ip(n,1,0))}function ef(n){for(;n===To;)To=Er[--Nr],Er[Nr]=null,$l=Er[--Nr],Er[Nr]=null;for(;n===Qa;)Qa=Dn[--xn],Dn[xn]=null,ea=Dn[--xn],Dn[xn]=null,Wn=Dn[--xn],Dn[xn]=null}function Zp(n,i){Dn[xn++]=Wn,Dn[xn++]=ea,Dn[xn++]=Qa,Wn=i.id,ea=i.overflow,Qa=n}var Lt=null,at=null,Ve=!1,Ba=null,Rn=!1,tf=Error(r(519));function Ia(n){var i=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Gl(wn(i,n)),tf}function Hp(n){var i=n.stateNode,l=n.type,o=n.memoizedProps;switch(i[Ut]=n,i[en]=o,l){case"dialog":Ce("cancel",i),Ce("close",i);break;case"iframe":case"object":case"embed":Ce("load",i);break;case"video":case"audio":for(l=0;l<pu.length;l++)Ce(pu[l],i);break;case"source":Ce("error",i);break;case"img":case"image":case"link":Ce("error",i),Ce("load",i);break;case"details":Ce("toggle",i);break;case"input":Ce("invalid",i),ip(i,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0);break;case"select":Ce("invalid",i);break;case"textarea":Ce("invalid",i),lp(i,o.value,o.defaultValue,o.children)}l=o.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||i.textContent===""+l||o.suppressHydrationWarning===!0||og(i.textContent,l)?(o.popover!=null&&(Ce("beforetoggle",i),Ce("toggle",i)),o.onScroll!=null&&Ce("scroll",i),o.onScrollEnd!=null&&Ce("scrollend",i),o.onClick!=null&&(i.onclick=da),i=!0):i=!1,i||Ia(n,!0)}function $p(n){for(Lt=n.return;Lt;)switch(Lt.tag){case 5:case 31:case 13:Rn=!1;return;case 27:case 3:Rn=!0;return;default:Lt=Lt.return}}function Tr(n){if(n!==Lt)return!1;if(!Ve)return $p(n),Ve=!0,!1;var i=n.tag,l;if((l=i!==3&&i!==27)&&((l=i===5)&&(l=n.type,l=!(l!=="form"&&l!=="button")||_d(n.type,n.memoizedProps)),l=!l),l&&at&&Ia(n),$p(n),i===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(317));at=yg(n)}else if(i===31){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(317));at=yg(n)}else i===27?(i=at,ai(n.type)?(n=Td,Td=null,at=n):at=i):at=Lt?zn(n.stateNode.nextSibling):null;return!0}function Fi(){at=Lt=null,Ve=!1}function nf(){var n=Ba;return n!==null&&(ln===null?ln=n:ln.push.apply(ln,n),Ba=null),n}function Gl(n){Ba===null?Ba=[n]:Ba.push(n)}var af=A(null),Vi=null,va=null;function Za(n,i,l){ae(af,i._currentValue),i._currentValue=l}function ya(n){n._currentValue=af.current,G(af)}function rf(n,i,l){for(;n!==null;){var o=n.alternate;if((n.childLanes&i)!==i?(n.childLanes|=i,o!==null&&(o.childLanes|=i)):o!==null&&(o.childLanes&i)!==i&&(o.childLanes|=i),n===l)break;n=n.return}}function lf(n,i,l,o){var f=n.child;for(f!==null&&(f.return=n);f!==null;){var h=f.dependencies;if(h!==null){var g=f.child;h=h.firstContext;e:for(;h!==null;){var k=h;h=f;for(var x=0;x<i.length;x++)if(k.context===i[x]){h.lanes|=l,k=h.alternate,k!==null&&(k.lanes|=l),rf(h.return,l,n),o||(g=null);break e}h=k.next}}else if(f.tag===18){if(g=f.return,g===null)throw Error(r(341));g.lanes|=l,h=g.alternate,h!==null&&(h.lanes|=l),rf(g,l,n),g=null}else g=f.child;if(g!==null)g.return=f;else for(g=f;g!==null;){if(g===n){g=null;break}if(f=g.sibling,f!==null){f.return=g.return,g=f;break}g=g.return}f=g}}function Or(n,i,l,o){n=null;for(var f=i,h=!1;f!==null;){if(!h){if((f.flags&524288)!==0)h=!0;else if((f.flags&262144)!==0)break}if(f.tag===10){var g=f.alternate;if(g===null)throw Error(r(387));if(g=g.memoizedProps,g!==null){var k=f.type;hn(f.pendingProps.value,g.value)||(n!==null?n.push(k):n=[k])}}else if(f===qe.current){if(g=f.alternate,g===null)throw Error(r(387));g.memoizedState.memoizedState!==f.memoizedState.memoizedState&&(n!==null?n.push(_u):n=[_u])}f=f.return}n!==null&&lf(i,n,l,o),i.flags|=262144}function Oo(n){for(n=n.firstContext;n!==null;){if(!hn(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}function Ui(n){Vi=n,va=null,n=n.dependencies,n!==null&&(n.firstContext=null)}function qt(n){return Gp(Vi,n)}function wo(n,i){return Vi===null&&Ui(n),Gp(n,i)}function Gp(n,i){var l=i._currentValue;if(i={context:i,memoizedValue:l,next:null},va===null){if(n===null)throw Error(r(308));va=i,n.dependencies={lanes:0,firstContext:i},n.flags|=524288}else va=va.next=i;return l}var EE=typeof AbortController<"u"?AbortController:function(){var n=[],i=this.signal={aborted:!1,addEventListener:function(l,o){n.push(o)}};this.abort=function(){i.aborted=!0,n.forEach(function(l){return l()})}},NE=e.unstable_scheduleCallback,TE=e.unstable_NormalPriority,Et={$$typeof:O,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function uf(){return{controller:new EE,data:new Map,refCount:0}}function Yl(n){n.refCount--,n.refCount===0&&NE(TE,function(){n.controller.abort()})}var Pl=null,of=0,wr=0,Dr=null;function OE(n,i){if(Pl===null){var l=Pl=[];of=0,wr=fd(),Dr={status:"pending",value:void 0,then:function(o){l.push(o)}}}return of++,i.then(Yp,Yp),i}function Yp(){if(--of===0&&Pl!==null){Dr!==null&&(Dr.status="fulfilled");var n=Pl;Pl=null,wr=0,Dr=null;for(var i=0;i<n.length;i++)(0,n[i])()}}function wE(n,i){var l=[],o={status:"pending",value:null,reason:null,then:function(f){l.push(f)}};return n.then(function(){o.status="fulfilled",o.value=i;for(var f=0;f<l.length;f++)(0,l[f])(i)},function(f){for(o.status="rejected",o.reason=f,f=0;f<l.length;f++)(0,l[f])(void 0)}),o}var Pp=U.S;U.S=function(n,i){zy=L(),typeof i=="object"&&i!==null&&typeof i.then=="function"&&OE(n,i),Pp!==null&&Pp(n,i)};var Li=A(null);function sf(){var n=Li.current;return n!==null?n:tt.pooledCache}function Do(n,i){i===null?ae(Li,Li.current):ae(Li,i.pool)}function Xp(){var n=sf();return n===null?null:{parent:Et._currentValue,pool:n}}var xr=Error(r(460)),cf=Error(r(474)),xo=Error(r(542)),Ro={then:function(){}};function Jp(n){return n=n.status,n==="fulfilled"||n==="rejected"}function Kp(n,i,l){switch(l=n[l],l===void 0?n.push(i):l!==i&&(i.then(da,da),i=l),i.status){case"fulfilled":return i.value;case"rejected":throw n=i.reason,ev(n),n;default:if(typeof i.status=="string")i.then(da,da);else{if(n=tt,n!==null&&100<n.shellSuspendCounter)throw Error(r(482));n=i,n.status="pending",n.then(function(o){if(i.status==="pending"){var f=i;f.status="fulfilled",f.value=o}},function(o){if(i.status==="pending"){var f=i;f.status="rejected",f.reason=o}})}switch(i.status){case"fulfilled":return i.value;case"rejected":throw n=i.reason,ev(n),n}throw Qi=i,xr}}function qi(n){try{var i=n._init;return i(n._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Qi=l,xr):l}}var Qi=null;function Wp(){if(Qi===null)throw Error(r(459));var n=Qi;return Qi=null,n}function ev(n){if(n===xr||n===xo)throw Error(r(483))}var Rr=null,Xl=0;function Ao(n){var i=Xl;return Xl+=1,Rr===null&&(Rr=[]),Kp(Rr,n,i)}function Jl(n,i){i=i.props.ref,n.ref=i!==void 0?i:null}function zo(n,i){throw i.$$typeof===b?Error(r(525)):(n=Object.prototype.toString.call(i),Error(r(31,n==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":n)))}function tv(n){function i(V,C){if(n){var q=V.deletions;q===null?(V.deletions=[C],V.flags|=16):q.push(C)}}function l(V,C){if(!n)return null;for(;C!==null;)i(V,C),C=C.sibling;return null}function o(V){for(var C=new Map;V!==null;)V.key!==null?C.set(V.key,V):C.set(V.index,V),V=V.sibling;return C}function f(V,C){return V=ma(V,C),V.index=0,V.sibling=null,V}function h(V,C,q){return V.index=q,n?(q=V.alternate,q!==null?(q=q.index,q<C?(V.flags|=67108866,C):q):(V.flags|=67108866,C)):(V.flags|=1048576,C)}function g(V){return n&&V.alternate===null&&(V.flags|=67108866),V}function k(V,C,q,X){return C===null||C.tag!==6?(C=Jc(q,V.mode,X),C.return=V,C):(C=f(C,q),C.return=V,C)}function x(V,C,q,X){var ke=q.type;return ke===T?Y(V,C,q.props.children,X,q.key):C!==null&&(C.elementType===ke||typeof ke=="object"&&ke!==null&&ke.$$typeof===W&&qi(ke)===C.type)?(C=f(C,q.props),Jl(C,q),C.return=V,C):(C=No(q.type,q.key,q.props,null,V.mode,X),Jl(C,q),C.return=V,C)}function Q(V,C,q,X){return C===null||C.tag!==4||C.stateNode.containerInfo!==q.containerInfo||C.stateNode.implementation!==q.implementation?(C=Kc(q,V.mode,X),C.return=V,C):(C=f(C,q.children||[]),C.return=V,C)}function Y(V,C,q,X,ke){return C===null||C.tag!==7?(C=Mi(q,V.mode,X,ke),C.return=V,C):(C=f(C,q),C.return=V,C)}function K(V,C,q){if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return C=Jc(""+C,V.mode,q),C.return=V,C;if(typeof C=="object"&&C!==null){switch(C.$$typeof){case _:return q=No(C.type,C.key,C.props,null,V.mode,q),Jl(q,C),q.return=V,q;case E:return C=Kc(C,V.mode,q),C.return=V,C;case W:return C=qi(C),K(V,C,q)}if(ce(C)||le(C))return C=Mi(C,V.mode,q,null),C.return=V,C;if(typeof C.then=="function")return K(V,Ao(C),q);if(C.$$typeof===O)return K(V,wo(V,C),q);zo(V,C)}return null}function B(V,C,q,X){var ke=C!==null?C.key:null;if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return ke!==null?null:k(V,C,""+q,X);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case _:return q.key===ke?x(V,C,q,X):null;case E:return q.key===ke?Q(V,C,q,X):null;case W:return q=qi(q),B(V,C,q,X)}if(ce(q)||le(q))return ke!==null?null:Y(V,C,q,X,null);if(typeof q.then=="function")return B(V,C,Ao(q),X);if(q.$$typeof===O)return B(V,C,wo(V,q),X);zo(V,q)}return null}function H(V,C,q,X,ke){if(typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint")return V=V.get(q)||null,k(C,V,""+X,ke);if(typeof X=="object"&&X!==null){switch(X.$$typeof){case _:return V=V.get(X.key===null?q:X.key)||null,x(C,V,X,ke);case E:return V=V.get(X.key===null?q:X.key)||null,Q(C,V,X,ke);case W:return X=qi(X),H(V,C,q,X,ke)}if(ce(X)||le(X))return V=V.get(q)||null,Y(C,V,X,ke,null);if(typeof X.then=="function")return H(V,C,q,Ao(X),ke);if(X.$$typeof===O)return H(V,C,q,wo(C,X),ke);zo(C,X)}return null}function pe(V,C,q,X){for(var ke=null,Ie=null,be=C,xe=C=0,Fe=null;be!==null&&xe<q.length;xe++){be.index>xe?(Fe=be,be=null):Fe=be.sibling;var Ze=B(V,be,q[xe],X);if(Ze===null){be===null&&(be=Fe);break}n&&be&&Ze.alternate===null&&i(V,be),C=h(Ze,C,xe),Ie===null?ke=Ze:Ie.sibling=Ze,Ie=Ze,be=Fe}if(xe===q.length)return l(V,be),Ve&&pa(V,xe),ke;if(be===null){for(;xe<q.length;xe++)be=K(V,q[xe],X),be!==null&&(C=h(be,C,xe),Ie===null?ke=be:Ie.sibling=be,Ie=be);return Ve&&pa(V,xe),ke}for(be=o(be);xe<q.length;xe++)Fe=H(be,V,xe,q[xe],X),Fe!==null&&(n&&Fe.alternate!==null&&be.delete(Fe.key===null?xe:Fe.key),C=h(Fe,C,xe),Ie===null?ke=Fe:Ie.sibling=Fe,Ie=Fe);return n&&be.forEach(function(oi){return i(V,oi)}),Ve&&pa(V,xe),ke}function Ee(V,C,q,X){if(q==null)throw Error(r(151));for(var ke=null,Ie=null,be=C,xe=C=0,Fe=null,Ze=q.next();be!==null&&!Ze.done;xe++,Ze=q.next()){be.index>xe?(Fe=be,be=null):Fe=be.sibling;var oi=B(V,be,Ze.value,X);if(oi===null){be===null&&(be=Fe);break}n&&be&&oi.alternate===null&&i(V,be),C=h(oi,C,xe),Ie===null?ke=oi:Ie.sibling=oi,Ie=oi,be=Fe}if(Ze.done)return l(V,be),Ve&&pa(V,xe),ke;if(be===null){for(;!Ze.done;xe++,Ze=q.next())Ze=K(V,Ze.value,X),Ze!==null&&(C=h(Ze,C,xe),Ie===null?ke=Ze:Ie.sibling=Ze,Ie=Ze);return Ve&&pa(V,xe),ke}for(be=o(be);!Ze.done;xe++,Ze=q.next())Ze=H(be,V,xe,Ze.value,X),Ze!==null&&(n&&Ze.alternate!==null&&be.delete(Ze.key===null?xe:Ze.key),C=h(Ze,C,xe),Ie===null?ke=Ze:Ie.sibling=Ze,Ie=Ze);return n&&be.forEach(function(UN){return i(V,UN)}),Ve&&pa(V,xe),ke}function We(V,C,q,X){if(typeof q=="object"&&q!==null&&q.type===T&&q.key===null&&(q=q.props.children),typeof q=="object"&&q!==null){switch(q.$$typeof){case _:e:{for(var ke=q.key;C!==null;){if(C.key===ke){if(ke=q.type,ke===T){if(C.tag===7){l(V,C.sibling),X=f(C,q.props.children),X.return=V,V=X;break e}}else if(C.elementType===ke||typeof ke=="object"&&ke!==null&&ke.$$typeof===W&&qi(ke)===C.type){l(V,C.sibling),X=f(C,q.props),Jl(X,q),X.return=V,V=X;break e}l(V,C);break}else i(V,C);C=C.sibling}q.type===T?(X=Mi(q.props.children,V.mode,X,q.key),X.return=V,V=X):(X=No(q.type,q.key,q.props,null,V.mode,X),Jl(X,q),X.return=V,V=X)}return g(V);case E:e:{for(ke=q.key;C!==null;){if(C.key===ke)if(C.tag===4&&C.stateNode.containerInfo===q.containerInfo&&C.stateNode.implementation===q.implementation){l(V,C.sibling),X=f(C,q.children||[]),X.return=V,V=X;break e}else{l(V,C);break}else i(V,C);C=C.sibling}X=Kc(q,V.mode,X),X.return=V,V=X}return g(V);case W:return q=qi(q),We(V,C,q,X)}if(ce(q))return pe(V,C,q,X);if(le(q)){if(ke=le(q),typeof ke!="function")throw Error(r(150));return q=ke.call(q),Ee(V,C,q,X)}if(typeof q.then=="function")return We(V,C,Ao(q),X);if(q.$$typeof===O)return We(V,C,wo(V,q),X);zo(V,q)}return typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint"?(q=""+q,C!==null&&C.tag===6?(l(V,C.sibling),X=f(C,q),X.return=V,V=X):(l(V,C),X=Jc(q,V.mode,X),X.return=V,V=X),g(V)):l(V,C)}return function(V,C,q,X){try{Xl=0;var ke=We(V,C,q,X);return Rr=null,ke}catch(be){if(be===xr||be===xo)throw be;var Ie=mn(29,be,null,V.mode);return Ie.lanes=X,Ie.return=V,Ie}finally{}}}var Bi=tv(!0),nv=tv(!1),Ha=!1;function ff(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function df(n,i){n=n.updateQueue,i.updateQueue===n&&(i.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,callbacks:null})}function $a(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function Ga(n,i,l){var o=n.updateQueue;if(o===null)return null;if(o=o.shared,(He&2)!==0){var f=o.pending;return f===null?i.next=i:(i.next=f.next,f.next=i),o.pending=i,i=Eo(n),Lp(n,null,l),i}return ko(n,o,i,l),Eo(n)}function Kl(n,i,l){if(i=i.updateQueue,i!==null&&(i=i.shared,(l&4194048)!==0)){var o=i.lanes;o&=n.pendingLanes,l|=o,i.lanes=l,Gm(n,l)}}function hf(n,i){var l=n.updateQueue,o=n.alternate;if(o!==null&&(o=o.updateQueue,l===o)){var f=null,h=null;if(l=l.firstBaseUpdate,l!==null){do{var g={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};h===null?f=h=g:h=h.next=g,l=l.next}while(l!==null);h===null?f=h=i:h=h.next=i}else f=h=i;l={baseState:o.baseState,firstBaseUpdate:f,lastBaseUpdate:h,shared:o.shared,callbacks:o.callbacks},n.updateQueue=l;return}n=l.lastBaseUpdate,n===null?l.firstBaseUpdate=i:n.next=i,l.lastBaseUpdate=i}var mf=!1;function Wl(){if(mf){var n=Dr;if(n!==null)throw n}}function eu(n,i,l,o){mf=!1;var f=n.updateQueue;Ha=!1;var h=f.firstBaseUpdate,g=f.lastBaseUpdate,k=f.shared.pending;if(k!==null){f.shared.pending=null;var x=k,Q=x.next;x.next=null,g===null?h=Q:g.next=Q,g=x;var Y=n.alternate;Y!==null&&(Y=Y.updateQueue,k=Y.lastBaseUpdate,k!==g&&(k===null?Y.firstBaseUpdate=Q:k.next=Q,Y.lastBaseUpdate=x))}if(h!==null){var K=f.baseState;g=0,Y=Q=x=null,k=h;do{var B=k.lane&-536870913,H=B!==k.lane;if(H?(Me&B)===B:(o&B)===B){B!==0&&B===wr&&(mf=!0),Y!==null&&(Y=Y.next={lane:0,tag:k.tag,payload:k.payload,callback:null,next:null});e:{var pe=n,Ee=k;B=i;var We=l;switch(Ee.tag){case 1:if(pe=Ee.payload,typeof pe=="function"){K=pe.call(We,K,B);break e}K=pe;break e;case 3:pe.flags=pe.flags&-65537|128;case 0:if(pe=Ee.payload,B=typeof pe=="function"?pe.call(We,K,B):pe,B==null)break e;K=y({},K,B);break e;case 2:Ha=!0}}B=k.callback,B!==null&&(n.flags|=64,H&&(n.flags|=8192),H=f.callbacks,H===null?f.callbacks=[B]:H.push(B))}else H={lane:B,tag:k.tag,payload:k.payload,callback:k.callback,next:null},Y===null?(Q=Y=H,x=K):Y=Y.next=H,g|=B;if(k=k.next,k===null){if(k=f.shared.pending,k===null)break;H=k,k=H.next,H.next=null,f.lastBaseUpdate=H,f.shared.pending=null}}while(!0);Y===null&&(x=K),f.baseState=x,f.firstBaseUpdate=Q,f.lastBaseUpdate=Y,h===null&&(f.shared.lanes=0),Ka|=g,n.lanes=g,n.memoizedState=K}}function av(n,i){if(typeof n!="function")throw Error(r(191,n));n.call(i)}function iv(n,i){var l=n.callbacks;if(l!==null)for(n.callbacks=null,n=0;n<l.length;n++)av(l[n],i)}var Ar=A(null),Co=A(0);function rv(n,i){n=Oa,ae(Co,n),ae(Ar,i),Oa=n|i.baseLanes}function pf(){ae(Co,Oa),ae(Ar,Ar.current)}function vf(){Oa=Co.current,G(Ar),G(Co)}var pn=A(null),An=null;function Ya(n){var i=n.alternate;ae(bt,bt.current&1),ae(pn,n),An===null&&(i===null||Ar.current!==null||i.memoizedState!==null)&&(An=n)}function yf(n){ae(bt,bt.current),ae(pn,n),An===null&&(An=n)}function lv(n){n.tag===22?(ae(bt,bt.current),ae(pn,n),An===null&&(An=n)):Pa()}function Pa(){ae(bt,bt.current),ae(pn,pn.current)}function vn(n){G(pn),An===n&&(An=null),G(bt)}var bt=A(0);function jo(n){for(var i=n;i!==null;){if(i.tag===13){var l=i.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Ed(l)||Nd(l)))return i}else if(i.tag===19&&(i.memoizedProps.revealOrder==="forwards"||i.memoizedProps.revealOrder==="backwards"||i.memoizedProps.revealOrder==="unstable_legacy-backwards"||i.memoizedProps.revealOrder==="together")){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===n)break;for(;i.sibling===null;){if(i.return===null||i.return===n)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var ga=0,De=null,Je=null,Nt=null,Mo=!1,zr=!1,Ii=!1,Fo=0,tu=0,Cr=null,DE=0;function ht(){throw Error(r(321))}function gf(n,i){if(i===null)return!1;for(var l=0;l<i.length&&l<n.length;l++)if(!hn(n[l],i[l]))return!1;return!0}function bf(n,i,l,o,f,h){return ga=h,De=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,U.H=n===null||n.memoizedState===null?Iv:jf,Ii=!1,h=l(o,f),Ii=!1,zr&&(h=ov(i,l,o,f)),uv(n),h}function uv(n){U.H=iu;var i=Je!==null&&Je.next!==null;if(ga=0,Nt=Je=De=null,Mo=!1,tu=0,Cr=null,i)throw Error(r(300));n===null||Tt||(n=n.dependencies,n!==null&&Oo(n)&&(Tt=!0))}function ov(n,i,l,o){De=n;var f=0;do{if(zr&&(Cr=null),tu=0,zr=!1,25<=f)throw Error(r(301));if(f+=1,Nt=Je=null,n.updateQueue!=null){var h=n.updateQueue;h.lastEffect=null,h.events=null,h.stores=null,h.memoCache!=null&&(h.memoCache.index=0)}U.H=Zv,h=i(l,o)}while(zr);return h}function xE(){var n=U.H,i=n.useState()[0];return i=typeof i.then=="function"?nu(i):i,n=n.useState()[0],(Je!==null?Je.memoizedState:null)!==n&&(De.flags|=1024),i}function _f(){var n=Fo!==0;return Fo=0,n}function Sf(n,i,l){i.updateQueue=n.updateQueue,i.flags&=-2053,n.lanes&=~l}function kf(n){if(Mo){for(n=n.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}Mo=!1}ga=0,Nt=Je=De=null,zr=!1,tu=Fo=0,Cr=null}function Pt(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Nt===null?De.memoizedState=Nt=n:Nt=Nt.next=n,Nt}function _t(){if(Je===null){var n=De.alternate;n=n!==null?n.memoizedState:null}else n=Je.next;var i=Nt===null?De.memoizedState:Nt.next;if(i!==null)Nt=i,Je=n;else{if(n===null)throw De.alternate===null?Error(r(467)):Error(r(310));Je=n,n={memoizedState:Je.memoizedState,baseState:Je.baseState,baseQueue:Je.baseQueue,queue:Je.queue,next:null},Nt===null?De.memoizedState=Nt=n:Nt=Nt.next=n}return Nt}function Vo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function nu(n){var i=tu;return tu+=1,Cr===null&&(Cr=[]),n=Kp(Cr,n,i),i=De,(Nt===null?i.memoizedState:Nt.next)===null&&(i=i.alternate,U.H=i===null||i.memoizedState===null?Iv:jf),n}function Uo(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return nu(n);if(n.$$typeof===O)return qt(n)}throw Error(r(438,String(n)))}function Ef(n){var i=null,l=De.updateQueue;if(l!==null&&(i=l.memoCache),i==null){var o=De.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(i={data:o.data.map(function(f){return f.slice()}),index:0})))}if(i==null&&(i={data:[],index:0}),l===null&&(l=Vo(),De.updateQueue=l),l.memoCache=i,l=i.data[i.index],l===void 0)for(l=i.data[i.index]=Array(n),o=0;o<n;o++)l[o]=Ne;return i.index++,l}function ba(n,i){return typeof i=="function"?i(n):i}function Lo(n){var i=_t();return Nf(i,Je,n)}function Nf(n,i,l){var o=n.queue;if(o===null)throw Error(r(311));o.lastRenderedReducer=l;var f=n.baseQueue,h=o.pending;if(h!==null){if(f!==null){var g=f.next;f.next=h.next,h.next=g}i.baseQueue=f=h,o.pending=null}if(h=n.baseState,f===null)n.memoizedState=h;else{i=f.next;var k=g=null,x=null,Q=i,Y=!1;do{var K=Q.lane&-536870913;if(K!==Q.lane?(Me&K)===K:(ga&K)===K){var B=Q.revertLane;if(B===0)x!==null&&(x=x.next={lane:0,revertLane:0,gesture:null,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null}),K===wr&&(Y=!0);else if((ga&B)===B){Q=Q.next,B===wr&&(Y=!0);continue}else K={lane:0,revertLane:Q.revertLane,gesture:null,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null},x===null?(k=x=K,g=h):x=x.next=K,De.lanes|=B,Ka|=B;K=Q.action,Ii&&l(h,K),h=Q.hasEagerState?Q.eagerState:l(h,K)}else B={lane:K,revertLane:Q.revertLane,gesture:Q.gesture,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null},x===null?(k=x=B,g=h):x=x.next=B,De.lanes|=K,Ka|=K;Q=Q.next}while(Q!==null&&Q!==i);if(x===null?g=h:x.next=k,!hn(h,n.memoizedState)&&(Tt=!0,Y&&(l=Dr,l!==null)))throw l;n.memoizedState=h,n.baseState=g,n.baseQueue=x,o.lastRenderedState=h}return f===null&&(o.lanes=0),[n.memoizedState,o.dispatch]}function Tf(n){var i=_t(),l=i.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=n;var o=l.dispatch,f=l.pending,h=i.memoizedState;if(f!==null){l.pending=null;var g=f=f.next;do h=n(h,g.action),g=g.next;while(g!==f);hn(h,i.memoizedState)||(Tt=!0),i.memoizedState=h,i.baseQueue===null&&(i.baseState=h),l.lastRenderedState=h}return[h,o]}function sv(n,i,l){var o=De,f=_t(),h=Ve;if(h){if(l===void 0)throw Error(r(407));l=l()}else l=i();var g=!hn((Je||f).memoizedState,l);if(g&&(f.memoizedState=l,Tt=!0),f=f.queue,Df(dv.bind(null,o,f,n),[n]),f.getSnapshot!==i||g||Nt!==null&&Nt.memoizedState.tag&1){if(o.flags|=2048,jr(9,{destroy:void 0},fv.bind(null,o,f,l,i),null),tt===null)throw Error(r(349));h||(ga&127)!==0||cv(o,i,l)}return l}function cv(n,i,l){n.flags|=16384,n={getSnapshot:i,value:l},i=De.updateQueue,i===null?(i=Vo(),De.updateQueue=i,i.stores=[n]):(l=i.stores,l===null?i.stores=[n]:l.push(n))}function fv(n,i,l,o){i.value=l,i.getSnapshot=o,hv(i)&&mv(n)}function dv(n,i,l){return l(function(){hv(i)&&mv(n)})}function hv(n){var i=n.getSnapshot;n=n.value;try{var l=i();return!hn(n,l)}catch{return!0}}function mv(n){var i=ji(n,2);i!==null&&un(i,n,2)}function Of(n){var i=Pt();if(typeof n=="function"){var l=n;if(n=l(),Ii){Kn(!0);try{l()}finally{Kn(!1)}}}return i.memoizedState=i.baseState=n,i.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ba,lastRenderedState:n},i}function pv(n,i,l,o){return n.baseState=l,Nf(n,Je,typeof o=="function"?o:ba)}function RE(n,i,l,o,f){if(Bo(n))throw Error(r(485));if(n=i.action,n!==null){var h={payload:f,action:n,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(g){h.listeners.push(g)}};U.T!==null?l(!0):h.isTransition=!1,o(h),l=i.pending,l===null?(h.next=i.pending=h,vv(i,h)):(h.next=l.next,i.pending=l.next=h)}}function vv(n,i){var l=i.action,o=i.payload,f=n.state;if(i.isTransition){var h=U.T,g={};U.T=g;try{var k=l(f,o),x=U.S;x!==null&&x(g,k),yv(n,i,k)}catch(Q){wf(n,i,Q)}finally{h!==null&&g.types!==null&&(h.types=g.types),U.T=h}}else try{h=l(f,o),yv(n,i,h)}catch(Q){wf(n,i,Q)}}function yv(n,i,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(o){gv(n,i,o)},function(o){return wf(n,i,o)}):gv(n,i,l)}function gv(n,i,l){i.status="fulfilled",i.value=l,bv(i),n.state=l,i=n.pending,i!==null&&(l=i.next,l===i?n.pending=null:(l=l.next,i.next=l,vv(n,l)))}function wf(n,i,l){var o=n.pending;if(n.pending=null,o!==null){o=o.next;do i.status="rejected",i.reason=l,bv(i),i=i.next;while(i!==o)}n.action=null}function bv(n){n=n.listeners;for(var i=0;i<n.length;i++)(0,n[i])()}function _v(n,i){return i}function Sv(n,i){if(Ve){var l=tt.formState;if(l!==null){e:{var o=De;if(Ve){if(at){t:{for(var f=at,h=Rn;f.nodeType!==8;){if(!h){f=null;break t}if(f=zn(f.nextSibling),f===null){f=null;break t}}h=f.data,f=h==="F!"||h==="F"?f:null}if(f){at=zn(f.nextSibling),o=f.data==="F!";break e}}Ia(o)}o=!1}o&&(i=l[0])}}return l=Pt(),l.memoizedState=l.baseState=i,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:_v,lastRenderedState:i},l.queue=o,l=qv.bind(null,De,o),o.dispatch=l,o=Of(!1),h=Cf.bind(null,De,!1,o.queue),o=Pt(),f={state:i,dispatch:null,action:n,pending:null},o.queue=f,l=RE.bind(null,De,f,h,l),f.dispatch=l,o.memoizedState=n,[i,l,!1]}function kv(n){var i=_t();return Ev(i,Je,n)}function Ev(n,i,l){if(i=Nf(n,i,_v)[0],n=Lo(ba)[0],typeof i=="object"&&i!==null&&typeof i.then=="function")try{var o=nu(i)}catch(g){throw g===xr?xo:g}else o=i;i=_t();var f=i.queue,h=f.dispatch;return l!==i.memoizedState&&(De.flags|=2048,jr(9,{destroy:void 0},AE.bind(null,f,l),null)),[o,h,n]}function AE(n,i){n.action=i}function Nv(n){var i=_t(),l=Je;if(l!==null)return Ev(i,l,n);_t(),i=i.memoizedState,l=_t();var o=l.queue.dispatch;return l.memoizedState=n,[i,o,!1]}function jr(n,i,l,o){return n={tag:n,create:l,deps:o,inst:i,next:null},i=De.updateQueue,i===null&&(i=Vo(),De.updateQueue=i),l=i.lastEffect,l===null?i.lastEffect=n.next=n:(o=l.next,l.next=n,n.next=o,i.lastEffect=n),n}function Tv(){return _t().memoizedState}function qo(n,i,l,o){var f=Pt();De.flags|=n,f.memoizedState=jr(1|i,{destroy:void 0},l,o===void 0?null:o)}function Qo(n,i,l,o){var f=_t();o=o===void 0?null:o;var h=f.memoizedState.inst;Je!==null&&o!==null&&gf(o,Je.memoizedState.deps)?f.memoizedState=jr(i,h,l,o):(De.flags|=n,f.memoizedState=jr(1|i,h,l,o))}function Ov(n,i){qo(8390656,8,n,i)}function Df(n,i){Qo(2048,8,n,i)}function zE(n){De.flags|=4;var i=De.updateQueue;if(i===null)i=Vo(),De.updateQueue=i,i.events=[n];else{var l=i.events;l===null?i.events=[n]:l.push(n)}}function wv(n){var i=_t().memoizedState;return zE({ref:i,nextImpl:n}),function(){if((He&2)!==0)throw Error(r(440));return i.impl.apply(void 0,arguments)}}function Dv(n,i){return Qo(4,2,n,i)}function xv(n,i){return Qo(4,4,n,i)}function Rv(n,i){if(typeof i=="function"){n=n();var l=i(n);return function(){typeof l=="function"?l():i(null)}}if(i!=null)return n=n(),i.current=n,function(){i.current=null}}function Av(n,i,l){l=l!=null?l.concat([n]):null,Qo(4,4,Rv.bind(null,i,n),l)}function xf(){}function zv(n,i){var l=_t();i=i===void 0?null:i;var o=l.memoizedState;return i!==null&&gf(i,o[1])?o[0]:(l.memoizedState=[n,i],n)}function Cv(n,i){var l=_t();i=i===void 0?null:i;var o=l.memoizedState;if(i!==null&&gf(i,o[1]))return o[0];if(o=n(),Ii){Kn(!0);try{n()}finally{Kn(!1)}}return l.memoizedState=[o,i],o}function Rf(n,i,l){return l===void 0||(ga&1073741824)!==0&&(Me&261930)===0?n.memoizedState=i:(n.memoizedState=l,n=jy(),De.lanes|=n,Ka|=n,l)}function jv(n,i,l,o){return hn(l,i)?l:Ar.current!==null?(n=Rf(n,l,o),hn(n,i)||(Tt=!0),n):(ga&42)===0||(ga&1073741824)!==0&&(Me&261930)===0?(Tt=!0,n.memoizedState=l):(n=jy(),De.lanes|=n,Ka|=n,i)}function Mv(n,i,l,o,f){var h=P.p;P.p=h!==0&&8>h?h:8;var g=U.T,k={};U.T=k,Cf(n,!1,i,l);try{var x=f(),Q=U.S;if(Q!==null&&Q(k,x),x!==null&&typeof x=="object"&&typeof x.then=="function"){var Y=wE(x,o);au(n,i,Y,bn(n))}else au(n,i,o,bn(n))}catch(K){au(n,i,{then:function(){},status:"rejected",reason:K},bn())}finally{P.p=h,g!==null&&k.types!==null&&(g.types=k.types),U.T=g}}function CE(){}function Af(n,i,l,o){if(n.tag!==5)throw Error(r(476));var f=Fv(n).queue;Mv(n,f,i,ie,l===null?CE:function(){return Vv(n),l(o)})}function Fv(n){var i=n.memoizedState;if(i!==null)return i;i={memoizedState:ie,baseState:ie,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ba,lastRenderedState:ie},next:null};var l={};return i.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ba,lastRenderedState:l},next:null},n.memoizedState=i,n=n.alternate,n!==null&&(n.memoizedState=i),i}function Vv(n){var i=Fv(n);i.next===null&&(i=n.alternate.memoizedState),au(n,i.next.queue,{},bn())}function zf(){return qt(_u)}function Uv(){return _t().memoizedState}function Lv(){return _t().memoizedState}function jE(n){for(var i=n.return;i!==null;){switch(i.tag){case 24:case 3:var l=bn();n=$a(l);var o=Ga(i,n,l);o!==null&&(un(o,i,l),Kl(o,i,l)),i={cache:uf()},n.payload=i;return}i=i.return}}function ME(n,i,l){var o=bn();l={lane:o,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Bo(n)?Qv(i,l):(l=Pc(n,i,l,o),l!==null&&(un(l,n,o),Bv(l,i,o)))}function qv(n,i,l){var o=bn();au(n,i,l,o)}function au(n,i,l,o){var f={lane:o,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Bo(n))Qv(i,f);else{var h=n.alternate;if(n.lanes===0&&(h===null||h.lanes===0)&&(h=i.lastRenderedReducer,h!==null))try{var g=i.lastRenderedState,k=h(g,l);if(f.hasEagerState=!0,f.eagerState=k,hn(k,g))return ko(n,i,f,0),tt===null&&So(),!1}catch{}finally{}if(l=Pc(n,i,f,o),l!==null)return un(l,n,o),Bv(l,i,o),!0}return!1}function Cf(n,i,l,o){if(o={lane:2,revertLane:fd(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},Bo(n)){if(i)throw Error(r(479))}else i=Pc(n,l,o,2),i!==null&&un(i,n,2)}function Bo(n){var i=n.alternate;return n===De||i!==null&&i===De}function Qv(n,i){zr=Mo=!0;var l=n.pending;l===null?i.next=i:(i.next=l.next,l.next=i),n.pending=i}function Bv(n,i,l){if((l&4194048)!==0){var o=i.lanes;o&=n.pendingLanes,l|=o,i.lanes=l,Gm(n,l)}}var iu={readContext:qt,use:Uo,useCallback:ht,useContext:ht,useEffect:ht,useImperativeHandle:ht,useLayoutEffect:ht,useInsertionEffect:ht,useMemo:ht,useReducer:ht,useRef:ht,useState:ht,useDebugValue:ht,useDeferredValue:ht,useTransition:ht,useSyncExternalStore:ht,useId:ht,useHostTransitionStatus:ht,useFormState:ht,useActionState:ht,useOptimistic:ht,useMemoCache:ht,useCacheRefresh:ht};iu.useEffectEvent=ht;var Iv={readContext:qt,use:Uo,useCallback:function(n,i){return Pt().memoizedState=[n,i===void 0?null:i],n},useContext:qt,useEffect:Ov,useImperativeHandle:function(n,i,l){l=l!=null?l.concat([n]):null,qo(4194308,4,Rv.bind(null,i,n),l)},useLayoutEffect:function(n,i){return qo(4194308,4,n,i)},useInsertionEffect:function(n,i){qo(4,2,n,i)},useMemo:function(n,i){var l=Pt();i=i===void 0?null:i;var o=n();if(Ii){Kn(!0);try{n()}finally{Kn(!1)}}return l.memoizedState=[o,i],o},useReducer:function(n,i,l){var o=Pt();if(l!==void 0){var f=l(i);if(Ii){Kn(!0);try{l(i)}finally{Kn(!1)}}}else f=i;return o.memoizedState=o.baseState=f,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:f},o.queue=n,n=n.dispatch=ME.bind(null,De,n),[o.memoizedState,n]},useRef:function(n){var i=Pt();return n={current:n},i.memoizedState=n},useState:function(n){n=Of(n);var i=n.queue,l=qv.bind(null,De,i);return i.dispatch=l,[n.memoizedState,l]},useDebugValue:xf,useDeferredValue:function(n,i){var l=Pt();return Rf(l,n,i)},useTransition:function(){var n=Of(!1);return n=Mv.bind(null,De,n.queue,!0,!1),Pt().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,i,l){var o=De,f=Pt();if(Ve){if(l===void 0)throw Error(r(407));l=l()}else{if(l=i(),tt===null)throw Error(r(349));(Me&127)!==0||cv(o,i,l)}f.memoizedState=l;var h={value:l,getSnapshot:i};return f.queue=h,Ov(dv.bind(null,o,h,n),[n]),o.flags|=2048,jr(9,{destroy:void 0},fv.bind(null,o,h,l,i),null),l},useId:function(){var n=Pt(),i=tt.identifierPrefix;if(Ve){var l=ea,o=Wn;l=(o&~(1<<32-Vt(o)-1)).toString(32)+l,i="_"+i+"R_"+l,l=Fo++,0<l&&(i+="H"+l.toString(32)),i+="_"}else l=DE++,i="_"+i+"r_"+l.toString(32)+"_";return n.memoizedState=i},useHostTransitionStatus:zf,useFormState:Sv,useActionState:Sv,useOptimistic:function(n){var i=Pt();i.memoizedState=i.baseState=n;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return i.queue=l,i=Cf.bind(null,De,!0,l),l.dispatch=i,[n,i]},useMemoCache:Ef,useCacheRefresh:function(){return Pt().memoizedState=jE.bind(null,De)},useEffectEvent:function(n){var i=Pt(),l={impl:n};return i.memoizedState=l,function(){if((He&2)!==0)throw Error(r(440));return l.impl.apply(void 0,arguments)}}},jf={readContext:qt,use:Uo,useCallback:zv,useContext:qt,useEffect:Df,useImperativeHandle:Av,useInsertionEffect:Dv,useLayoutEffect:xv,useMemo:Cv,useReducer:Lo,useRef:Tv,useState:function(){return Lo(ba)},useDebugValue:xf,useDeferredValue:function(n,i){var l=_t();return jv(l,Je.memoizedState,n,i)},useTransition:function(){var n=Lo(ba)[0],i=_t().memoizedState;return[typeof n=="boolean"?n:nu(n),i]},useSyncExternalStore:sv,useId:Uv,useHostTransitionStatus:zf,useFormState:kv,useActionState:kv,useOptimistic:function(n,i){var l=_t();return pv(l,Je,n,i)},useMemoCache:Ef,useCacheRefresh:Lv};jf.useEffectEvent=wv;var Zv={readContext:qt,use:Uo,useCallback:zv,useContext:qt,useEffect:Df,useImperativeHandle:Av,useInsertionEffect:Dv,useLayoutEffect:xv,useMemo:Cv,useReducer:Tf,useRef:Tv,useState:function(){return Tf(ba)},useDebugValue:xf,useDeferredValue:function(n,i){var l=_t();return Je===null?Rf(l,n,i):jv(l,Je.memoizedState,n,i)},useTransition:function(){var n=Tf(ba)[0],i=_t().memoizedState;return[typeof n=="boolean"?n:nu(n),i]},useSyncExternalStore:sv,useId:Uv,useHostTransitionStatus:zf,useFormState:Nv,useActionState:Nv,useOptimistic:function(n,i){var l=_t();return Je!==null?pv(l,Je,n,i):(l.baseState=n,[n,l.queue.dispatch])},useMemoCache:Ef,useCacheRefresh:Lv};Zv.useEffectEvent=wv;function Mf(n,i,l,o){i=n.memoizedState,l=l(o,i),l=l==null?i:y({},i,l),n.memoizedState=l,n.lanes===0&&(n.updateQueue.baseState=l)}var Ff={enqueueSetState:function(n,i,l){n=n._reactInternals;var o=bn(),f=$a(o);f.payload=i,l!=null&&(f.callback=l),i=Ga(n,f,o),i!==null&&(un(i,n,o),Kl(i,n,o))},enqueueReplaceState:function(n,i,l){n=n._reactInternals;var o=bn(),f=$a(o);f.tag=1,f.payload=i,l!=null&&(f.callback=l),i=Ga(n,f,o),i!==null&&(un(i,n,o),Kl(i,n,o))},enqueueForceUpdate:function(n,i){n=n._reactInternals;var l=bn(),o=$a(l);o.tag=2,i!=null&&(o.callback=i),i=Ga(n,o,l),i!==null&&(un(i,n,l),Kl(i,n,l))}};function Hv(n,i,l,o,f,h,g){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(o,h,g):i.prototype&&i.prototype.isPureReactComponent?!Zl(l,o)||!Zl(f,h):!0}function $v(n,i,l,o){n=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(l,o),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(l,o),i.state!==n&&Ff.enqueueReplaceState(i,i.state,null)}function Zi(n,i){var l=i;if("ref"in i){l={};for(var o in i)o!=="ref"&&(l[o]=i[o])}if(n=n.defaultProps){l===i&&(l=y({},l));for(var f in n)l[f]===void 0&&(l[f]=n[f])}return l}function Gv(n){_o(n)}function Yv(n){console.error(n)}function Pv(n){_o(n)}function Io(n,i){try{var l=n.onUncaughtError;l(i.value,{componentStack:i.stack})}catch(o){setTimeout(function(){throw o})}}function Xv(n,i,l){try{var o=n.onCaughtError;o(l.value,{componentStack:l.stack,errorBoundary:i.tag===1?i.stateNode:null})}catch(f){setTimeout(function(){throw f})}}function Vf(n,i,l){return l=$a(l),l.tag=3,l.payload={element:null},l.callback=function(){Io(n,i)},l}function Jv(n){return n=$a(n),n.tag=3,n}function Kv(n,i,l,o){var f=l.type.getDerivedStateFromError;if(typeof f=="function"){var h=o.value;n.payload=function(){return f(h)},n.callback=function(){Xv(i,l,o)}}var g=l.stateNode;g!==null&&typeof g.componentDidCatch=="function"&&(n.callback=function(){Xv(i,l,o),typeof f!="function"&&(Wa===null?Wa=new Set([this]):Wa.add(this));var k=o.stack;this.componentDidCatch(o.value,{componentStack:k!==null?k:""})})}function FE(n,i,l,o,f){if(l.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(i=l.alternate,i!==null&&Or(i,l,f,!0),l=pn.current,l!==null){switch(l.tag){case 31:case 13:return An===null?ts():l.alternate===null&&mt===0&&(mt=3),l.flags&=-257,l.flags|=65536,l.lanes=f,o===Ro?l.flags|=16384:(i=l.updateQueue,i===null?l.updateQueue=new Set([o]):i.add(o),od(n,o,f)),!1;case 22:return l.flags|=65536,o===Ro?l.flags|=16384:(i=l.updateQueue,i===null?(i={transitions:null,markerInstances:null,retryQueue:new Set([o])},l.updateQueue=i):(l=i.retryQueue,l===null?i.retryQueue=new Set([o]):l.add(o)),od(n,o,f)),!1}throw Error(r(435,l.tag))}return od(n,o,f),ts(),!1}if(Ve)return i=pn.current,i!==null?((i.flags&65536)===0&&(i.flags|=256),i.flags|=65536,i.lanes=f,o!==tf&&(n=Error(r(422),{cause:o}),Gl(wn(n,l)))):(o!==tf&&(i=Error(r(423),{cause:o}),Gl(wn(i,l))),n=n.current.alternate,n.flags|=65536,f&=-f,n.lanes|=f,o=wn(o,l),f=Vf(n.stateNode,o,f),hf(n,f),mt!==4&&(mt=2)),!1;var h=Error(r(520),{cause:o});if(h=wn(h,l),du===null?du=[h]:du.push(h),mt!==4&&(mt=2),i===null)return!0;o=wn(o,l),l=i;do{switch(l.tag){case 3:return l.flags|=65536,n=f&-f,l.lanes|=n,n=Vf(l.stateNode,o,n),hf(l,n),!1;case 1:if(i=l.type,h=l.stateNode,(l.flags&128)===0&&(typeof i.getDerivedStateFromError=="function"||h!==null&&typeof h.componentDidCatch=="function"&&(Wa===null||!Wa.has(h))))return l.flags|=65536,f&=-f,l.lanes|=f,f=Jv(f),Kv(f,n,l,o),hf(l,f),!1}l=l.return}while(l!==null);return!1}var Uf=Error(r(461)),Tt=!1;function Qt(n,i,l,o){i.child=n===null?nv(i,null,l,o):Bi(i,n.child,l,o)}function Wv(n,i,l,o,f){l=l.render;var h=i.ref;if("ref"in o){var g={};for(var k in o)k!=="ref"&&(g[k]=o[k])}else g=o;return Ui(i),o=bf(n,i,l,g,h,f),k=_f(),n!==null&&!Tt?(Sf(n,i,f),_a(n,i,f)):(Ve&&k&&Wc(i),i.flags|=1,Qt(n,i,o,f),i.child)}function ey(n,i,l,o,f){if(n===null){var h=l.type;return typeof h=="function"&&!Xc(h)&&h.defaultProps===void 0&&l.compare===null?(i.tag=15,i.type=h,ty(n,i,h,o,f)):(n=No(l.type,null,o,i,i.mode,f),n.ref=i.ref,n.return=i,i.child=n)}if(h=n.child,!$f(n,f)){var g=h.memoizedProps;if(l=l.compare,l=l!==null?l:Zl,l(g,o)&&n.ref===i.ref)return _a(n,i,f)}return i.flags|=1,n=ma(h,o),n.ref=i.ref,n.return=i,i.child=n}function ty(n,i,l,o,f){if(n!==null){var h=n.memoizedProps;if(Zl(h,o)&&n.ref===i.ref)if(Tt=!1,i.pendingProps=o=h,$f(n,f))(n.flags&131072)!==0&&(Tt=!0);else return i.lanes=n.lanes,_a(n,i,f)}return Lf(n,i,l,o,f)}function ny(n,i,l,o){var f=o.children,h=n!==null?n.memoizedState:null;if(n===null&&i.stateNode===null&&(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.mode==="hidden"){if((i.flags&128)!==0){if(h=h!==null?h.baseLanes|l:l,n!==null){for(o=i.child=n.child,f=0;o!==null;)f=f|o.lanes|o.childLanes,o=o.sibling;o=f&~h}else o=0,i.child=null;return ay(n,i,h,l,o)}if((l&536870912)!==0)i.memoizedState={baseLanes:0,cachePool:null},n!==null&&Do(i,h!==null?h.cachePool:null),h!==null?rv(i,h):pf(),lv(i);else return o=i.lanes=536870912,ay(n,i,h!==null?h.baseLanes|l:l,l,o)}else h!==null?(Do(i,h.cachePool),rv(i,h),Pa(),i.memoizedState=null):(n!==null&&Do(i,null),pf(),Pa());return Qt(n,i,f,l),i.child}function ru(n,i){return n!==null&&n.tag===22||i.stateNode!==null||(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.sibling}function ay(n,i,l,o,f){var h=sf();return h=h===null?null:{parent:Et._currentValue,pool:h},i.memoizedState={baseLanes:l,cachePool:h},n!==null&&Do(i,null),pf(),lv(i),n!==null&&Or(n,i,o,!0),i.childLanes=f,null}function Zo(n,i){return i=$o({mode:i.mode,children:i.children},n.mode),i.ref=n.ref,n.child=i,i.return=n,i}function iy(n,i,l){return Bi(i,n.child,null,l),n=Zo(i,i.pendingProps),n.flags|=2,vn(i),i.memoizedState=null,n}function VE(n,i,l){var o=i.pendingProps,f=(i.flags&128)!==0;if(i.flags&=-129,n===null){if(Ve){if(o.mode==="hidden")return n=Zo(i,o),i.lanes=536870912,ru(null,n);if(yf(i),(n=at)?(n=vg(n,Rn),n=n!==null&&n.data==="&"?n:null,n!==null&&(i.memoizedState={dehydrated:n,treeContext:Qa!==null?{id:Wn,overflow:ea}:null,retryLane:536870912,hydrationErrors:null},l=Qp(n),l.return=i,i.child=l,Lt=i,at=null)):n=null,n===null)throw Ia(i);return i.lanes=536870912,null}return Zo(i,o)}var h=n.memoizedState;if(h!==null){var g=h.dehydrated;if(yf(i),f)if(i.flags&256)i.flags&=-257,i=iy(n,i,l);else if(i.memoizedState!==null)i.child=n.child,i.flags|=128,i=null;else throw Error(r(558));else if(Tt||Or(n,i,l,!1),f=(l&n.childLanes)!==0,Tt||f){if(o=tt,o!==null&&(g=Ym(o,l),g!==0&&g!==h.retryLane))throw h.retryLane=g,ji(n,g),un(o,n,g),Uf;ts(),i=iy(n,i,l)}else n=h.treeContext,at=zn(g.nextSibling),Lt=i,Ve=!0,Ba=null,Rn=!1,n!==null&&Zp(i,n),i=Zo(i,o),i.flags|=4096;return i}return n=ma(n.child,{mode:o.mode,children:o.children}),n.ref=i.ref,i.child=n,n.return=i,n}function Ho(n,i){var l=i.ref;if(l===null)n!==null&&n.ref!==null&&(i.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(r(284));(n===null||n.ref!==l)&&(i.flags|=4194816)}}function Lf(n,i,l,o,f){return Ui(i),l=bf(n,i,l,o,void 0,f),o=_f(),n!==null&&!Tt?(Sf(n,i,f),_a(n,i,f)):(Ve&&o&&Wc(i),i.flags|=1,Qt(n,i,l,f),i.child)}function ry(n,i,l,o,f,h){return Ui(i),i.updateQueue=null,l=ov(i,o,l,f),uv(n),o=_f(),n!==null&&!Tt?(Sf(n,i,h),_a(n,i,h)):(Ve&&o&&Wc(i),i.flags|=1,Qt(n,i,l,h),i.child)}function ly(n,i,l,o,f){if(Ui(i),i.stateNode===null){var h=kr,g=l.contextType;typeof g=="object"&&g!==null&&(h=qt(g)),h=new l(o,h),i.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,h.updater=Ff,i.stateNode=h,h._reactInternals=i,h=i.stateNode,h.props=o,h.state=i.memoizedState,h.refs={},ff(i),g=l.contextType,h.context=typeof g=="object"&&g!==null?qt(g):kr,h.state=i.memoizedState,g=l.getDerivedStateFromProps,typeof g=="function"&&(Mf(i,l,g,o),h.state=i.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof h.getSnapshotBeforeUpdate=="function"||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(g=h.state,typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount(),g!==h.state&&Ff.enqueueReplaceState(h,h.state,null),eu(i,o,h,f),Wl(),h.state=i.memoizedState),typeof h.componentDidMount=="function"&&(i.flags|=4194308),o=!0}else if(n===null){h=i.stateNode;var k=i.memoizedProps,x=Zi(l,k);h.props=x;var Q=h.context,Y=l.contextType;g=kr,typeof Y=="object"&&Y!==null&&(g=qt(Y));var K=l.getDerivedStateFromProps;Y=typeof K=="function"||typeof h.getSnapshotBeforeUpdate=="function",k=i.pendingProps!==k,Y||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(k||Q!==g)&&$v(i,h,o,g),Ha=!1;var B=i.memoizedState;h.state=B,eu(i,o,h,f),Wl(),Q=i.memoizedState,k||B!==Q||Ha?(typeof K=="function"&&(Mf(i,l,K,o),Q=i.memoizedState),(x=Ha||Hv(i,l,x,o,B,Q,g))?(Y||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount()),typeof h.componentDidMount=="function"&&(i.flags|=4194308)):(typeof h.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=o,i.memoizedState=Q),h.props=o,h.state=Q,h.context=g,o=x):(typeof h.componentDidMount=="function"&&(i.flags|=4194308),o=!1)}else{h=i.stateNode,df(n,i),g=i.memoizedProps,Y=Zi(l,g),h.props=Y,K=i.pendingProps,B=h.context,Q=l.contextType,x=kr,typeof Q=="object"&&Q!==null&&(x=qt(Q)),k=l.getDerivedStateFromProps,(Q=typeof k=="function"||typeof h.getSnapshotBeforeUpdate=="function")||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(g!==K||B!==x)&&$v(i,h,o,x),Ha=!1,B=i.memoizedState,h.state=B,eu(i,o,h,f),Wl();var H=i.memoizedState;g!==K||B!==H||Ha||n!==null&&n.dependencies!==null&&Oo(n.dependencies)?(typeof k=="function"&&(Mf(i,l,k,o),H=i.memoizedState),(Y=Ha||Hv(i,l,Y,o,B,H,x)||n!==null&&n.dependencies!==null&&Oo(n.dependencies))?(Q||typeof h.UNSAFE_componentWillUpdate!="function"&&typeof h.componentWillUpdate!="function"||(typeof h.componentWillUpdate=="function"&&h.componentWillUpdate(o,H,x),typeof h.UNSAFE_componentWillUpdate=="function"&&h.UNSAFE_componentWillUpdate(o,H,x)),typeof h.componentDidUpdate=="function"&&(i.flags|=4),typeof h.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof h.componentDidUpdate!="function"||g===n.memoizedProps&&B===n.memoizedState||(i.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||g===n.memoizedProps&&B===n.memoizedState||(i.flags|=1024),i.memoizedProps=o,i.memoizedState=H),h.props=o,h.state=H,h.context=x,o=Y):(typeof h.componentDidUpdate!="function"||g===n.memoizedProps&&B===n.memoizedState||(i.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||g===n.memoizedProps&&B===n.memoizedState||(i.flags|=1024),o=!1)}return h=o,Ho(n,i),o=(i.flags&128)!==0,h||o?(h=i.stateNode,l=o&&typeof l.getDerivedStateFromError!="function"?null:h.render(),i.flags|=1,n!==null&&o?(i.child=Bi(i,n.child,null,f),i.child=Bi(i,null,l,f)):Qt(n,i,l,f),i.memoizedState=h.state,n=i.child):n=_a(n,i,f),n}function uy(n,i,l,o){return Fi(),i.flags|=256,Qt(n,i,l,o),i.child}var qf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Qf(n){return{baseLanes:n,cachePool:Xp()}}function Bf(n,i,l){return n=n!==null?n.childLanes&~l:0,i&&(n|=gn),n}function oy(n,i,l){var o=i.pendingProps,f=!1,h=(i.flags&128)!==0,g;if((g=h)||(g=n!==null&&n.memoizedState===null?!1:(bt.current&2)!==0),g&&(f=!0,i.flags&=-129),g=(i.flags&32)!==0,i.flags&=-33,n===null){if(Ve){if(f?Ya(i):Pa(),(n=at)?(n=vg(n,Rn),n=n!==null&&n.data!=="&"?n:null,n!==null&&(i.memoizedState={dehydrated:n,treeContext:Qa!==null?{id:Wn,overflow:ea}:null,retryLane:536870912,hydrationErrors:null},l=Qp(n),l.return=i,i.child=l,Lt=i,at=null)):n=null,n===null)throw Ia(i);return Nd(n)?i.lanes=32:i.lanes=536870912,null}var k=o.children;return o=o.fallback,f?(Pa(),f=i.mode,k=$o({mode:"hidden",children:k},f),o=Mi(o,f,l,null),k.return=i,o.return=i,k.sibling=o,i.child=k,o=i.child,o.memoizedState=Qf(l),o.childLanes=Bf(n,g,l),i.memoizedState=qf,ru(null,o)):(Ya(i),If(i,k))}var x=n.memoizedState;if(x!==null&&(k=x.dehydrated,k!==null)){if(h)i.flags&256?(Ya(i),i.flags&=-257,i=Zf(n,i,l)):i.memoizedState!==null?(Pa(),i.child=n.child,i.flags|=128,i=null):(Pa(),k=o.fallback,f=i.mode,o=$o({mode:"visible",children:o.children},f),k=Mi(k,f,l,null),k.flags|=2,o.return=i,k.return=i,o.sibling=k,i.child=o,Bi(i,n.child,null,l),o=i.child,o.memoizedState=Qf(l),o.childLanes=Bf(n,g,l),i.memoizedState=qf,i=ru(null,o));else if(Ya(i),Nd(k)){if(g=k.nextSibling&&k.nextSibling.dataset,g)var Q=g.dgst;g=Q,o=Error(r(419)),o.stack="",o.digest=g,Gl({value:o,source:null,stack:null}),i=Zf(n,i,l)}else if(Tt||Or(n,i,l,!1),g=(l&n.childLanes)!==0,Tt||g){if(g=tt,g!==null&&(o=Ym(g,l),o!==0&&o!==x.retryLane))throw x.retryLane=o,ji(n,o),un(g,n,o),Uf;Ed(k)||ts(),i=Zf(n,i,l)}else Ed(k)?(i.flags|=192,i.child=n.child,i=null):(n=x.treeContext,at=zn(k.nextSibling),Lt=i,Ve=!0,Ba=null,Rn=!1,n!==null&&Zp(i,n),i=If(i,o.children),i.flags|=4096);return i}return f?(Pa(),k=o.fallback,f=i.mode,x=n.child,Q=x.sibling,o=ma(x,{mode:"hidden",children:o.children}),o.subtreeFlags=x.subtreeFlags&65011712,Q!==null?k=ma(Q,k):(k=Mi(k,f,l,null),k.flags|=2),k.return=i,o.return=i,o.sibling=k,i.child=o,ru(null,o),o=i.child,k=n.child.memoizedState,k===null?k=Qf(l):(f=k.cachePool,f!==null?(x=Et._currentValue,f=f.parent!==x?{parent:x,pool:x}:f):f=Xp(),k={baseLanes:k.baseLanes|l,cachePool:f}),o.memoizedState=k,o.childLanes=Bf(n,g,l),i.memoizedState=qf,ru(n.child,o)):(Ya(i),l=n.child,n=l.sibling,l=ma(l,{mode:"visible",children:o.children}),l.return=i,l.sibling=null,n!==null&&(g=i.deletions,g===null?(i.deletions=[n],i.flags|=16):g.push(n)),i.child=l,i.memoizedState=null,l)}function If(n,i){return i=$o({mode:"visible",children:i},n.mode),i.return=n,n.child=i}function $o(n,i){return n=mn(22,n,null,i),n.lanes=0,n}function Zf(n,i,l){return Bi(i,n.child,null,l),n=If(i,i.pendingProps.children),n.flags|=2,i.memoizedState=null,n}function sy(n,i,l){n.lanes|=i;var o=n.alternate;o!==null&&(o.lanes|=i),rf(n.return,i,l)}function Hf(n,i,l,o,f,h){var g=n.memoizedState;g===null?n.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:o,tail:l,tailMode:f,treeForkCount:h}:(g.isBackwards=i,g.rendering=null,g.renderingStartTime=0,g.last=o,g.tail=l,g.tailMode=f,g.treeForkCount=h)}function cy(n,i,l){var o=i.pendingProps,f=o.revealOrder,h=o.tail;o=o.children;var g=bt.current,k=(g&2)!==0;if(k?(g=g&1|2,i.flags|=128):g&=1,ae(bt,g),Qt(n,i,o,l),o=Ve?$l:0,!k&&n!==null&&(n.flags&128)!==0)e:for(n=i.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&sy(n,l,i);else if(n.tag===19)sy(n,l,i);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===i)break e;for(;n.sibling===null;){if(n.return===null||n.return===i)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}switch(f){case"forwards":for(l=i.child,f=null;l!==null;)n=l.alternate,n!==null&&jo(n)===null&&(f=l),l=l.sibling;l=f,l===null?(f=i.child,i.child=null):(f=l.sibling,l.sibling=null),Hf(i,!1,f,l,h,o);break;case"backwards":case"unstable_legacy-backwards":for(l=null,f=i.child,i.child=null;f!==null;){if(n=f.alternate,n!==null&&jo(n)===null){i.child=f;break}n=f.sibling,f.sibling=l,l=f,f=n}Hf(i,!0,l,null,h,o);break;case"together":Hf(i,!1,null,null,void 0,o);break;default:i.memoizedState=null}return i.child}function _a(n,i,l){if(n!==null&&(i.dependencies=n.dependencies),Ka|=i.lanes,(l&i.childLanes)===0)if(n!==null){if(Or(n,i,l,!1),(l&i.childLanes)===0)return null}else return null;if(n!==null&&i.child!==n.child)throw Error(r(153));if(i.child!==null){for(n=i.child,l=ma(n,n.pendingProps),i.child=l,l.return=i;n.sibling!==null;)n=n.sibling,l=l.sibling=ma(n,n.pendingProps),l.return=i;l.sibling=null}return i.child}function $f(n,i){return(n.lanes&i)!==0?!0:(n=n.dependencies,!!(n!==null&&Oo(n)))}function UE(n,i,l){switch(i.tag){case 3:kt(i,i.stateNode.containerInfo),Za(i,Et,n.memoizedState.cache),Fi();break;case 27:case 5:sa(i);break;case 4:kt(i,i.stateNode.containerInfo);break;case 10:Za(i,i.type,i.memoizedProps.value);break;case 31:if(i.memoizedState!==null)return i.flags|=128,yf(i),null;break;case 13:var o=i.memoizedState;if(o!==null)return o.dehydrated!==null?(Ya(i),i.flags|=128,null):(l&i.child.childLanes)!==0?oy(n,i,l):(Ya(i),n=_a(n,i,l),n!==null?n.sibling:null);Ya(i);break;case 19:var f=(n.flags&128)!==0;if(o=(l&i.childLanes)!==0,o||(Or(n,i,l,!1),o=(l&i.childLanes)!==0),f){if(o)return cy(n,i,l);i.flags|=128}if(f=i.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),ae(bt,bt.current),o)break;return null;case 22:return i.lanes=0,ny(n,i,l,i.pendingProps);case 24:Za(i,Et,n.memoizedState.cache)}return _a(n,i,l)}function fy(n,i,l){if(n!==null)if(n.memoizedProps!==i.pendingProps)Tt=!0;else{if(!$f(n,l)&&(i.flags&128)===0)return Tt=!1,UE(n,i,l);Tt=(n.flags&131072)!==0}else Tt=!1,Ve&&(i.flags&1048576)!==0&&Ip(i,$l,i.index);switch(i.lanes=0,i.tag){case 16:e:{var o=i.pendingProps;if(n=qi(i.elementType),i.type=n,typeof n=="function")Xc(n)?(o=Zi(n,o),i.tag=1,i=ly(null,i,n,o,l)):(i.tag=0,i=Lf(null,i,n,o,l));else{if(n!=null){var f=n.$$typeof;if(f===M){i.tag=11,i=Wv(null,i,n,o,l);break e}else if(f===$){i.tag=14,i=ey(null,i,n,o,l);break e}}throw i=ee(n)||n,Error(r(306,i,""))}}return i;case 0:return Lf(n,i,i.type,i.pendingProps,l);case 1:return o=i.type,f=Zi(o,i.pendingProps),ly(n,i,o,f,l);case 3:e:{if(kt(i,i.stateNode.containerInfo),n===null)throw Error(r(387));o=i.pendingProps;var h=i.memoizedState;f=h.element,df(n,i),eu(i,o,null,l);var g=i.memoizedState;if(o=g.cache,Za(i,Et,o),o!==h.cache&&lf(i,[Et],l,!0),Wl(),o=g.element,h.isDehydrated)if(h={element:o,isDehydrated:!1,cache:g.cache},i.updateQueue.baseState=h,i.memoizedState=h,i.flags&256){i=uy(n,i,o,l);break e}else if(o!==f){f=wn(Error(r(424)),i),Gl(f),i=uy(n,i,o,l);break e}else{switch(n=i.stateNode.containerInfo,n.nodeType){case 9:n=n.body;break;default:n=n.nodeName==="HTML"?n.ownerDocument.body:n}for(at=zn(n.firstChild),Lt=i,Ve=!0,Ba=null,Rn=!0,l=nv(i,null,o,l),i.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Fi(),o===f){i=_a(n,i,l);break e}Qt(n,i,o,l)}i=i.child}return i;case 26:return Ho(n,i),n===null?(l=kg(i.type,null,i.pendingProps,null))?i.memoizedState=l:Ve||(l=i.type,n=i.pendingProps,o=os(_e.current).createElement(l),o[Ut]=i,o[en]=n,Bt(o,l,n),zt(o),i.stateNode=o):i.memoizedState=kg(i.type,n.memoizedProps,i.pendingProps,n.memoizedState),null;case 27:return sa(i),n===null&&Ve&&(o=i.stateNode=bg(i.type,i.pendingProps,_e.current),Lt=i,Rn=!0,f=at,ai(i.type)?(Td=f,at=zn(o.firstChild)):at=f),Qt(n,i,i.pendingProps.children,l),Ho(n,i),n===null&&(i.flags|=4194304),i.child;case 5:return n===null&&Ve&&((f=o=at)&&(o=mN(o,i.type,i.pendingProps,Rn),o!==null?(i.stateNode=o,Lt=i,at=zn(o.firstChild),Rn=!1,f=!0):f=!1),f||Ia(i)),sa(i),f=i.type,h=i.pendingProps,g=n!==null?n.memoizedProps:null,o=h.children,_d(f,h)?o=null:g!==null&&_d(f,g)&&(i.flags|=32),i.memoizedState!==null&&(f=bf(n,i,xE,null,null,l),_u._currentValue=f),Ho(n,i),Qt(n,i,o,l),i.child;case 6:return n===null&&Ve&&((n=l=at)&&(l=pN(l,i.pendingProps,Rn),l!==null?(i.stateNode=l,Lt=i,at=null,n=!0):n=!1),n||Ia(i)),null;case 13:return oy(n,i,l);case 4:return kt(i,i.stateNode.containerInfo),o=i.pendingProps,n===null?i.child=Bi(i,null,o,l):Qt(n,i,o,l),i.child;case 11:return Wv(n,i,i.type,i.pendingProps,l);case 7:return Qt(n,i,i.pendingProps,l),i.child;case 8:return Qt(n,i,i.pendingProps.children,l),i.child;case 12:return Qt(n,i,i.pendingProps.children,l),i.child;case 10:return o=i.pendingProps,Za(i,i.type,o.value),Qt(n,i,o.children,l),i.child;case 9:return f=i.type._context,o=i.pendingProps.children,Ui(i),f=qt(f),o=o(f),i.flags|=1,Qt(n,i,o,l),i.child;case 14:return ey(n,i,i.type,i.pendingProps,l);case 15:return ty(n,i,i.type,i.pendingProps,l);case 19:return cy(n,i,l);case 31:return VE(n,i,l);case 22:return ny(n,i,l,i.pendingProps);case 24:return Ui(i),o=qt(Et),n===null?(f=sf(),f===null&&(f=tt,h=uf(),f.pooledCache=h,h.refCount++,h!==null&&(f.pooledCacheLanes|=l),f=h),i.memoizedState={parent:o,cache:f},ff(i),Za(i,Et,f)):((n.lanes&l)!==0&&(df(n,i),eu(i,null,null,l),Wl()),f=n.memoizedState,h=i.memoizedState,f.parent!==o?(f={parent:o,cache:o},i.memoizedState=f,i.lanes===0&&(i.memoizedState=i.updateQueue.baseState=f),Za(i,Et,o)):(o=h.cache,Za(i,Et,o),o!==f.cache&&lf(i,[Et],l,!0))),Qt(n,i,i.pendingProps.children,l),i.child;case 29:throw i.pendingProps}throw Error(r(156,i.tag))}function Sa(n){n.flags|=4}function Gf(n,i,l,o,f){if((i=(n.mode&32)!==0)&&(i=!1),i){if(n.flags|=16777216,(f&335544128)===f)if(n.stateNode.complete)n.flags|=8192;else if(Uy())n.flags|=8192;else throw Qi=Ro,cf}else n.flags&=-16777217}function dy(n,i){if(i.type!=="stylesheet"||(i.state.loading&4)!==0)n.flags&=-16777217;else if(n.flags|=16777216,!wg(i))if(Uy())n.flags|=8192;else throw Qi=Ro,cf}function Go(n,i){i!==null&&(n.flags|=4),n.flags&16384&&(i=n.tag!==22?Hm():536870912,n.lanes|=i,Ur|=i)}function lu(n,i){if(!Ve)switch(n.tailMode){case"hidden":i=n.tail;for(var l=null;i!==null;)i.alternate!==null&&(l=i),i=i.sibling;l===null?n.tail=null:l.sibling=null;break;case"collapsed":l=n.tail;for(var o=null;l!==null;)l.alternate!==null&&(o=l),l=l.sibling;o===null?i||n.tail===null?n.tail=null:n.tail.sibling=null:o.sibling=null}}function it(n){var i=n.alternate!==null&&n.alternate.child===n.child,l=0,o=0;if(i)for(var f=n.child;f!==null;)l|=f.lanes|f.childLanes,o|=f.subtreeFlags&65011712,o|=f.flags&65011712,f.return=n,f=f.sibling;else for(f=n.child;f!==null;)l|=f.lanes|f.childLanes,o|=f.subtreeFlags,o|=f.flags,f.return=n,f=f.sibling;return n.subtreeFlags|=o,n.childLanes=l,i}function LE(n,i,l){var o=i.pendingProps;switch(ef(i),i.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return it(i),null;case 1:return it(i),null;case 3:return l=i.stateNode,o=null,n!==null&&(o=n.memoizedState.cache),i.memoizedState.cache!==o&&(i.flags|=2048),ya(Et),ct(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(n===null||n.child===null)&&(Tr(i)?Sa(i):n===null||n.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,nf())),it(i),null;case 26:var f=i.type,h=i.memoizedState;return n===null?(Sa(i),h!==null?(it(i),dy(i,h)):(it(i),Gf(i,f,null,o,l))):h?h!==n.memoizedState?(Sa(i),it(i),dy(i,h)):(it(i),i.flags&=-16777217):(n=n.memoizedProps,n!==o&&Sa(i),it(i),Gf(i,f,n,o,l)),null;case 27:if(Oi(i),l=_e.current,f=i.type,n!==null&&i.stateNode!=null)n.memoizedProps!==o&&Sa(i);else{if(!o){if(i.stateNode===null)throw Error(r(166));return it(i),null}n=oe.current,Tr(i)?Hp(i):(n=bg(f,o,l),i.stateNode=n,Sa(i))}return it(i),null;case 5:if(Oi(i),f=i.type,n!==null&&i.stateNode!=null)n.memoizedProps!==o&&Sa(i);else{if(!o){if(i.stateNode===null)throw Error(r(166));return it(i),null}if(h=oe.current,Tr(i))Hp(i);else{var g=os(_e.current);switch(h){case 1:h=g.createElementNS("http://www.w3.org/2000/svg",f);break;case 2:h=g.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;default:switch(f){case"svg":h=g.createElementNS("http://www.w3.org/2000/svg",f);break;case"math":h=g.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;case"script":h=g.createElement("div"),h.innerHTML="<script><\/script>",h=h.removeChild(h.firstChild);break;case"select":h=typeof o.is=="string"?g.createElement("select",{is:o.is}):g.createElement("select"),o.multiple?h.multiple=!0:o.size&&(h.size=o.size);break;default:h=typeof o.is=="string"?g.createElement(f,{is:o.is}):g.createElement(f)}}h[Ut]=i,h[en]=o;e:for(g=i.child;g!==null;){if(g.tag===5||g.tag===6)h.appendChild(g.stateNode);else if(g.tag!==4&&g.tag!==27&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===i)break e;for(;g.sibling===null;){if(g.return===null||g.return===i)break e;g=g.return}g.sibling.return=g.return,g=g.sibling}i.stateNode=h;e:switch(Bt(h,f,o),f){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&Sa(i)}}return it(i),Gf(i,i.type,n===null?null:n.memoizedProps,i.pendingProps,l),null;case 6:if(n&&i.stateNode!=null)n.memoizedProps!==o&&Sa(i);else{if(typeof o!="string"&&i.stateNode===null)throw Error(r(166));if(n=_e.current,Tr(i)){if(n=i.stateNode,l=i.memoizedProps,o=null,f=Lt,f!==null)switch(f.tag){case 27:case 5:o=f.memoizedProps}n[Ut]=i,n=!!(n.nodeValue===l||o!==null&&o.suppressHydrationWarning===!0||og(n.nodeValue,l)),n||Ia(i,!0)}else n=os(n).createTextNode(o),n[Ut]=i,i.stateNode=n}return it(i),null;case 31:if(l=i.memoizedState,n===null||n.memoizedState!==null){if(o=Tr(i),l!==null){if(n===null){if(!o)throw Error(r(318));if(n=i.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(557));n[Ut]=i}else Fi(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;it(i),n=!1}else l=nf(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=l),n=!0;if(!n)return i.flags&256?(vn(i),i):(vn(i),null);if((i.flags&128)!==0)throw Error(r(558))}return it(i),null;case 13:if(o=i.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(f=Tr(i),o!==null&&o.dehydrated!==null){if(n===null){if(!f)throw Error(r(318));if(f=i.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(r(317));f[Ut]=i}else Fi(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;it(i),f=!1}else f=nf(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=f),f=!0;if(!f)return i.flags&256?(vn(i),i):(vn(i),null)}return vn(i),(i.flags&128)!==0?(i.lanes=l,i):(l=o!==null,n=n!==null&&n.memoizedState!==null,l&&(o=i.child,f=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(f=o.alternate.memoizedState.cachePool.pool),h=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(h=o.memoizedState.cachePool.pool),h!==f&&(o.flags|=2048)),l!==n&&l&&(i.child.flags|=8192),Go(i,i.updateQueue),it(i),null);case 4:return ct(),n===null&&pd(i.stateNode.containerInfo),it(i),null;case 10:return ya(i.type),it(i),null;case 19:if(G(bt),o=i.memoizedState,o===null)return it(i),null;if(f=(i.flags&128)!==0,h=o.rendering,h===null)if(f)lu(o,!1);else{if(mt!==0||n!==null&&(n.flags&128)!==0)for(n=i.child;n!==null;){if(h=jo(n),h!==null){for(i.flags|=128,lu(o,!1),n=h.updateQueue,i.updateQueue=n,Go(i,n),i.subtreeFlags=0,n=l,l=i.child;l!==null;)qp(l,n),l=l.sibling;return ae(bt,bt.current&1|2),Ve&&pa(i,o.treeForkCount),i.child}n=n.sibling}o.tail!==null&&L()>Ko&&(i.flags|=128,f=!0,lu(o,!1),i.lanes=4194304)}else{if(!f)if(n=jo(h),n!==null){if(i.flags|=128,f=!0,n=n.updateQueue,i.updateQueue=n,Go(i,n),lu(o,!0),o.tail===null&&o.tailMode==="hidden"&&!h.alternate&&!Ve)return it(i),null}else 2*L()-o.renderingStartTime>Ko&&l!==536870912&&(i.flags|=128,f=!0,lu(o,!1),i.lanes=4194304);o.isBackwards?(h.sibling=i.child,i.child=h):(n=o.last,n!==null?n.sibling=h:i.child=h,o.last=h)}return o.tail!==null?(n=o.tail,o.rendering=n,o.tail=n.sibling,o.renderingStartTime=L(),n.sibling=null,l=bt.current,ae(bt,f?l&1|2:l&1),Ve&&pa(i,o.treeForkCount),n):(it(i),null);case 22:case 23:return vn(i),vf(),o=i.memoizedState!==null,n!==null?n.memoizedState!==null!==o&&(i.flags|=8192):o&&(i.flags|=8192),o?(l&536870912)!==0&&(i.flags&128)===0&&(it(i),i.subtreeFlags&6&&(i.flags|=8192)):it(i),l=i.updateQueue,l!==null&&Go(i,l.retryQueue),l=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(l=n.memoizedState.cachePool.pool),o=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(o=i.memoizedState.cachePool.pool),o!==l&&(i.flags|=2048),n!==null&&G(Li),null;case 24:return l=null,n!==null&&(l=n.memoizedState.cache),i.memoizedState.cache!==l&&(i.flags|=2048),ya(Et),it(i),null;case 25:return null;case 30:return null}throw Error(r(156,i.tag))}function qE(n,i){switch(ef(i),i.tag){case 1:return n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 3:return ya(Et),ct(),n=i.flags,(n&65536)!==0&&(n&128)===0?(i.flags=n&-65537|128,i):null;case 26:case 27:case 5:return Oi(i),null;case 31:if(i.memoizedState!==null){if(vn(i),i.alternate===null)throw Error(r(340));Fi()}return n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 13:if(vn(i),n=i.memoizedState,n!==null&&n.dehydrated!==null){if(i.alternate===null)throw Error(r(340));Fi()}return n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 19:return G(bt),null;case 4:return ct(),null;case 10:return ya(i.type),null;case 22:case 23:return vn(i),vf(),n!==null&&G(Li),n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 24:return ya(Et),null;case 25:return null;default:return null}}function hy(n,i){switch(ef(i),i.tag){case 3:ya(Et),ct();break;case 26:case 27:case 5:Oi(i);break;case 4:ct();break;case 31:i.memoizedState!==null&&vn(i);break;case 13:vn(i);break;case 19:G(bt);break;case 10:ya(i.type);break;case 22:case 23:vn(i),vf(),n!==null&&G(Li);break;case 24:ya(Et)}}function uu(n,i){try{var l=i.updateQueue,o=l!==null?l.lastEffect:null;if(o!==null){var f=o.next;l=f;do{if((l.tag&n)===n){o=void 0;var h=l.create,g=l.inst;o=h(),g.destroy=o}l=l.next}while(l!==f)}}catch(k){Ye(i,i.return,k)}}function Xa(n,i,l){try{var o=i.updateQueue,f=o!==null?o.lastEffect:null;if(f!==null){var h=f.next;o=h;do{if((o.tag&n)===n){var g=o.inst,k=g.destroy;if(k!==void 0){g.destroy=void 0,f=i;var x=l,Q=k;try{Q()}catch(Y){Ye(f,x,Y)}}}o=o.next}while(o!==h)}}catch(Y){Ye(i,i.return,Y)}}function my(n){var i=n.updateQueue;if(i!==null){var l=n.stateNode;try{iv(i,l)}catch(o){Ye(n,n.return,o)}}}function py(n,i,l){l.props=Zi(n.type,n.memoizedProps),l.state=n.memoizedState;try{l.componentWillUnmount()}catch(o){Ye(n,i,o)}}function ou(n,i){try{var l=n.ref;if(l!==null){switch(n.tag){case 26:case 27:case 5:var o=n.stateNode;break;case 30:o=n.stateNode;break;default:o=n.stateNode}typeof l=="function"?n.refCleanup=l(o):l.current=o}}catch(f){Ye(n,i,f)}}function ta(n,i){var l=n.ref,o=n.refCleanup;if(l!==null)if(typeof o=="function")try{o()}catch(f){Ye(n,i,f)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(f){Ye(n,i,f)}else l.current=null}function vy(n){var i=n.type,l=n.memoizedProps,o=n.stateNode;try{e:switch(i){case"button":case"input":case"select":case"textarea":l.autoFocus&&o.focus();break e;case"img":l.src?o.src=l.src:l.srcSet&&(o.srcset=l.srcSet)}}catch(f){Ye(n,n.return,f)}}function Yf(n,i,l){try{var o=n.stateNode;oN(o,n.type,l,i),o[en]=i}catch(f){Ye(n,n.return,f)}}function yy(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&ai(n.type)||n.tag===4}function Pf(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||yy(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.tag===27&&ai(n.type)||n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function Xf(n,i,l){var o=n.tag;if(o===5||o===6)n=n.stateNode,i?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(n,i):(i=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,i.appendChild(n),l=l._reactRootContainer,l!=null||i.onclick!==null||(i.onclick=da));else if(o!==4&&(o===27&&ai(n.type)&&(l=n.stateNode,i=null),n=n.child,n!==null))for(Xf(n,i,l),n=n.sibling;n!==null;)Xf(n,i,l),n=n.sibling}function Yo(n,i,l){var o=n.tag;if(o===5||o===6)n=n.stateNode,i?l.insertBefore(n,i):l.appendChild(n);else if(o!==4&&(o===27&&ai(n.type)&&(l=n.stateNode),n=n.child,n!==null))for(Yo(n,i,l),n=n.sibling;n!==null;)Yo(n,i,l),n=n.sibling}function gy(n){var i=n.stateNode,l=n.memoizedProps;try{for(var o=n.type,f=i.attributes;f.length;)i.removeAttributeNode(f[0]);Bt(i,o,l),i[Ut]=n,i[en]=l}catch(h){Ye(n,n.return,h)}}var ka=!1,Ot=!1,Jf=!1,by=typeof WeakSet=="function"?WeakSet:Set,Ct=null;function QE(n,i){if(n=n.containerInfo,gd=ps,n=Ap(n),Ic(n)){if("selectionStart"in n)var l={start:n.selectionStart,end:n.selectionEnd};else e:{l=(l=n.ownerDocument)&&l.defaultView||window;var o=l.getSelection&&l.getSelection();if(o&&o.rangeCount!==0){l=o.anchorNode;var f=o.anchorOffset,h=o.focusNode;o=o.focusOffset;try{l.nodeType,h.nodeType}catch{l=null;break e}var g=0,k=-1,x=-1,Q=0,Y=0,K=n,B=null;t:for(;;){for(var H;K!==l||f!==0&&K.nodeType!==3||(k=g+f),K!==h||o!==0&&K.nodeType!==3||(x=g+o),K.nodeType===3&&(g+=K.nodeValue.length),(H=K.firstChild)!==null;)B=K,K=H;for(;;){if(K===n)break t;if(B===l&&++Q===f&&(k=g),B===h&&++Y===o&&(x=g),(H=K.nextSibling)!==null)break;K=B,B=K.parentNode}K=H}l=k===-1||x===-1?null:{start:k,end:x}}else l=null}l=l||{start:0,end:0}}else l=null;for(bd={focusedElem:n,selectionRange:l},ps=!1,Ct=i;Ct!==null;)if(i=Ct,n=i.child,(i.subtreeFlags&1028)!==0&&n!==null)n.return=i,Ct=n;else for(;Ct!==null;){switch(i=Ct,h=i.alternate,n=i.flags,i.tag){case 0:if((n&4)!==0&&(n=i.updateQueue,n=n!==null?n.events:null,n!==null))for(l=0;l<n.length;l++)f=n[l],f.ref.impl=f.nextImpl;break;case 11:case 15:break;case 1:if((n&1024)!==0&&h!==null){n=void 0,l=i,f=h.memoizedProps,h=h.memoizedState,o=l.stateNode;try{var pe=Zi(l.type,f);n=o.getSnapshotBeforeUpdate(pe,h),o.__reactInternalSnapshotBeforeUpdate=n}catch(Ee){Ye(l,l.return,Ee)}}break;case 3:if((n&1024)!==0){if(n=i.stateNode.containerInfo,l=n.nodeType,l===9)kd(n);else if(l===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":kd(n);break;default:n.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((n&1024)!==0)throw Error(r(163))}if(n=i.sibling,n!==null){n.return=i.return,Ct=n;break}Ct=i.return}}function _y(n,i,l){var o=l.flags;switch(l.tag){case 0:case 11:case 15:Na(n,l),o&4&&uu(5,l);break;case 1:if(Na(n,l),o&4)if(n=l.stateNode,i===null)try{n.componentDidMount()}catch(g){Ye(l,l.return,g)}else{var f=Zi(l.type,i.memoizedProps);i=i.memoizedState;try{n.componentDidUpdate(f,i,n.__reactInternalSnapshotBeforeUpdate)}catch(g){Ye(l,l.return,g)}}o&64&&my(l),o&512&&ou(l,l.return);break;case 3:if(Na(n,l),o&64&&(n=l.updateQueue,n!==null)){if(i=null,l.child!==null)switch(l.child.tag){case 27:case 5:i=l.child.stateNode;break;case 1:i=l.child.stateNode}try{iv(n,i)}catch(g){Ye(l,l.return,g)}}break;case 27:i===null&&o&4&&gy(l);case 26:case 5:Na(n,l),i===null&&o&4&&vy(l),o&512&&ou(l,l.return);break;case 12:Na(n,l);break;case 31:Na(n,l),o&4&&Ey(n,l);break;case 13:Na(n,l),o&4&&Ny(n,l),o&64&&(n=l.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&(l=XE.bind(null,l),vN(n,l))));break;case 22:if(o=l.memoizedState!==null||ka,!o){i=i!==null&&i.memoizedState!==null||Ot,f=ka;var h=Ot;ka=o,(Ot=i)&&!h?Ta(n,l,(l.subtreeFlags&8772)!==0):Na(n,l),ka=f,Ot=h}break;case 30:break;default:Na(n,l)}}function Sy(n){var i=n.alternate;i!==null&&(n.alternate=null,Sy(i)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(i=n.stateNode,i!==null&&Oc(i)),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}var lt=null,nn=!1;function Ea(n,i,l){for(l=l.child;l!==null;)ky(n,i,l),l=l.sibling}function ky(n,i,l){if(Xe&&typeof Xe.onCommitFiberUnmount=="function")try{Xe.onCommitFiberUnmount(Ht,l)}catch{}switch(l.tag){case 26:Ot||ta(l,i),Ea(n,i,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Ot||ta(l,i);var o=lt,f=nn;ai(l.type)&&(lt=l.stateNode,nn=!1),Ea(n,i,l),yu(l.stateNode),lt=o,nn=f;break;case 5:Ot||ta(l,i);case 6:if(o=lt,f=nn,lt=null,Ea(n,i,l),lt=o,nn=f,lt!==null)if(nn)try{(lt.nodeType===9?lt.body:lt.nodeName==="HTML"?lt.ownerDocument.body:lt).removeChild(l.stateNode)}catch(h){Ye(l,i,h)}else try{lt.removeChild(l.stateNode)}catch(h){Ye(l,i,h)}break;case 18:lt!==null&&(nn?(n=lt,mg(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,l.stateNode),$r(n)):mg(lt,l.stateNode));break;case 4:o=lt,f=nn,lt=l.stateNode.containerInfo,nn=!0,Ea(n,i,l),lt=o,nn=f;break;case 0:case 11:case 14:case 15:Xa(2,l,i),Ot||Xa(4,l,i),Ea(n,i,l);break;case 1:Ot||(ta(l,i),o=l.stateNode,typeof o.componentWillUnmount=="function"&&py(l,i,o)),Ea(n,i,l);break;case 21:Ea(n,i,l);break;case 22:Ot=(o=Ot)||l.memoizedState!==null,Ea(n,i,l),Ot=o;break;default:Ea(n,i,l)}}function Ey(n,i){if(i.memoizedState===null&&(n=i.alternate,n!==null&&(n=n.memoizedState,n!==null))){n=n.dehydrated;try{$r(n)}catch(l){Ye(i,i.return,l)}}}function Ny(n,i){if(i.memoizedState===null&&(n=i.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{$r(n)}catch(l){Ye(i,i.return,l)}}function BE(n){switch(n.tag){case 31:case 13:case 19:var i=n.stateNode;return i===null&&(i=n.stateNode=new by),i;case 22:return n=n.stateNode,i=n._retryCache,i===null&&(i=n._retryCache=new by),i;default:throw Error(r(435,n.tag))}}function Po(n,i){var l=BE(n);i.forEach(function(o){if(!l.has(o)){l.add(o);var f=JE.bind(null,n,o);o.then(f,f)}})}function an(n,i){var l=i.deletions;if(l!==null)for(var o=0;o<l.length;o++){var f=l[o],h=n,g=i,k=g;e:for(;k!==null;){switch(k.tag){case 27:if(ai(k.type)){lt=k.stateNode,nn=!1;break e}break;case 5:lt=k.stateNode,nn=!1;break e;case 3:case 4:lt=k.stateNode.containerInfo,nn=!0;break e}k=k.return}if(lt===null)throw Error(r(160));ky(h,g,f),lt=null,nn=!1,h=f.alternate,h!==null&&(h.return=null),f.return=null}if(i.subtreeFlags&13886)for(i=i.child;i!==null;)Ty(i,n),i=i.sibling}var Ln=null;function Ty(n,i){var l=n.alternate,o=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:an(i,n),rn(n),o&4&&(Xa(3,n,n.return),uu(3,n),Xa(5,n,n.return));break;case 1:an(i,n),rn(n),o&512&&(Ot||l===null||ta(l,l.return)),o&64&&ka&&(n=n.updateQueue,n!==null&&(o=n.callbacks,o!==null&&(l=n.shared.hiddenCallbacks,n.shared.hiddenCallbacks=l===null?o:l.concat(o))));break;case 26:var f=Ln;if(an(i,n),rn(n),o&512&&(Ot||l===null||ta(l,l.return)),o&4){var h=l!==null?l.memoizedState:null;if(o=n.memoizedState,l===null)if(o===null)if(n.stateNode===null){e:{o=n.type,l=n.memoizedProps,f=f.ownerDocument||f;t:switch(o){case"title":h=f.getElementsByTagName("title")[0],(!h||h[Ml]||h[Ut]||h.namespaceURI==="http://www.w3.org/2000/svg"||h.hasAttribute("itemprop"))&&(h=f.createElement(o),f.head.insertBefore(h,f.querySelector("head > title"))),Bt(h,o,l),h[Ut]=n,zt(h),o=h;break e;case"link":var g=Tg("link","href",f).get(o+(l.href||""));if(g){for(var k=0;k<g.length;k++)if(h=g[k],h.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&h.getAttribute("rel")===(l.rel==null?null:l.rel)&&h.getAttribute("title")===(l.title==null?null:l.title)&&h.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){g.splice(k,1);break t}}h=f.createElement(o),Bt(h,o,l),f.head.appendChild(h);break;case"meta":if(g=Tg("meta","content",f).get(o+(l.content||""))){for(k=0;k<g.length;k++)if(h=g[k],h.getAttribute("content")===(l.content==null?null:""+l.content)&&h.getAttribute("name")===(l.name==null?null:l.name)&&h.getAttribute("property")===(l.property==null?null:l.property)&&h.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&h.getAttribute("charset")===(l.charSet==null?null:l.charSet)){g.splice(k,1);break t}}h=f.createElement(o),Bt(h,o,l),f.head.appendChild(h);break;default:throw Error(r(468,o))}h[Ut]=n,zt(h),o=h}n.stateNode=o}else Og(f,n.type,n.stateNode);else n.stateNode=Ng(f,o,n.memoizedProps);else h!==o?(h===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):h.count--,o===null?Og(f,n.type,n.stateNode):Ng(f,o,n.memoizedProps)):o===null&&n.stateNode!==null&&Yf(n,n.memoizedProps,l.memoizedProps)}break;case 27:an(i,n),rn(n),o&512&&(Ot||l===null||ta(l,l.return)),l!==null&&o&4&&Yf(n,n.memoizedProps,l.memoizedProps);break;case 5:if(an(i,n),rn(n),o&512&&(Ot||l===null||ta(l,l.return)),n.flags&32){f=n.stateNode;try{pr(f,"")}catch(pe){Ye(n,n.return,pe)}}o&4&&n.stateNode!=null&&(f=n.memoizedProps,Yf(n,f,l!==null?l.memoizedProps:f)),o&1024&&(Jf=!0);break;case 6:if(an(i,n),rn(n),o&4){if(n.stateNode===null)throw Error(r(162));o=n.memoizedProps,l=n.stateNode;try{l.nodeValue=o}catch(pe){Ye(n,n.return,pe)}}break;case 3:if(fs=null,f=Ln,Ln=ss(i.containerInfo),an(i,n),Ln=f,rn(n),o&4&&l!==null&&l.memoizedState.isDehydrated)try{$r(i.containerInfo)}catch(pe){Ye(n,n.return,pe)}Jf&&(Jf=!1,Oy(n));break;case 4:o=Ln,Ln=ss(n.stateNode.containerInfo),an(i,n),rn(n),Ln=o;break;case 12:an(i,n),rn(n);break;case 31:an(i,n),rn(n),o&4&&(o=n.updateQueue,o!==null&&(n.updateQueue=null,Po(n,o)));break;case 13:an(i,n),rn(n),n.child.flags&8192&&n.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Jo=L()),o&4&&(o=n.updateQueue,o!==null&&(n.updateQueue=null,Po(n,o)));break;case 22:f=n.memoizedState!==null;var x=l!==null&&l.memoizedState!==null,Q=ka,Y=Ot;if(ka=Q||f,Ot=Y||x,an(i,n),Ot=Y,ka=Q,rn(n),o&8192)e:for(i=n.stateNode,i._visibility=f?i._visibility&-2:i._visibility|1,f&&(l===null||x||ka||Ot||Hi(n)),l=null,i=n;;){if(i.tag===5||i.tag===26){if(l===null){x=l=i;try{if(h=x.stateNode,f)g=h.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none";else{k=x.stateNode;var K=x.memoizedProps.style,B=K!=null&&K.hasOwnProperty("display")?K.display:null;k.style.display=B==null||typeof B=="boolean"?"":(""+B).trim()}}catch(pe){Ye(x,x.return,pe)}}}else if(i.tag===6){if(l===null){x=i;try{x.stateNode.nodeValue=f?"":x.memoizedProps}catch(pe){Ye(x,x.return,pe)}}}else if(i.tag===18){if(l===null){x=i;try{var H=x.stateNode;f?pg(H,!0):pg(x.stateNode,!1)}catch(pe){Ye(x,x.return,pe)}}}else if((i.tag!==22&&i.tag!==23||i.memoizedState===null||i===n)&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===n)break e;for(;i.sibling===null;){if(i.return===null||i.return===n)break e;l===i&&(l=null),i=i.return}l===i&&(l=null),i.sibling.return=i.return,i=i.sibling}o&4&&(o=n.updateQueue,o!==null&&(l=o.retryQueue,l!==null&&(o.retryQueue=null,Po(n,l))));break;case 19:an(i,n),rn(n),o&4&&(o=n.updateQueue,o!==null&&(n.updateQueue=null,Po(n,o)));break;case 30:break;case 21:break;default:an(i,n),rn(n)}}function rn(n){var i=n.flags;if(i&2){try{for(var l,o=n.return;o!==null;){if(yy(o)){l=o;break}o=o.return}if(l==null)throw Error(r(160));switch(l.tag){case 27:var f=l.stateNode,h=Pf(n);Yo(n,h,f);break;case 5:var g=l.stateNode;l.flags&32&&(pr(g,""),l.flags&=-33);var k=Pf(n);Yo(n,k,g);break;case 3:case 4:var x=l.stateNode.containerInfo,Q=Pf(n);Xf(n,Q,x);break;default:throw Error(r(161))}}catch(Y){Ye(n,n.return,Y)}n.flags&=-3}i&4096&&(n.flags&=-4097)}function Oy(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var i=n;Oy(i),i.tag===5&&i.flags&1024&&i.stateNode.reset(),n=n.sibling}}function Na(n,i){if(i.subtreeFlags&8772)for(i=i.child;i!==null;)_y(n,i.alternate,i),i=i.sibling}function Hi(n){for(n=n.child;n!==null;){var i=n;switch(i.tag){case 0:case 11:case 14:case 15:Xa(4,i,i.return),Hi(i);break;case 1:ta(i,i.return);var l=i.stateNode;typeof l.componentWillUnmount=="function"&&py(i,i.return,l),Hi(i);break;case 27:yu(i.stateNode);case 26:case 5:ta(i,i.return),Hi(i);break;case 22:i.memoizedState===null&&Hi(i);break;case 30:Hi(i);break;default:Hi(i)}n=n.sibling}}function Ta(n,i,l){for(l=l&&(i.subtreeFlags&8772)!==0,i=i.child;i!==null;){var o=i.alternate,f=n,h=i,g=h.flags;switch(h.tag){case 0:case 11:case 15:Ta(f,h,l),uu(4,h);break;case 1:if(Ta(f,h,l),o=h,f=o.stateNode,typeof f.componentDidMount=="function")try{f.componentDidMount()}catch(Q){Ye(o,o.return,Q)}if(o=h,f=o.updateQueue,f!==null){var k=o.stateNode;try{var x=f.shared.hiddenCallbacks;if(x!==null)for(f.shared.hiddenCallbacks=null,f=0;f<x.length;f++)av(x[f],k)}catch(Q){Ye(o,o.return,Q)}}l&&g&64&&my(h),ou(h,h.return);break;case 27:gy(h);case 26:case 5:Ta(f,h,l),l&&o===null&&g&4&&vy(h),ou(h,h.return);break;case 12:Ta(f,h,l);break;case 31:Ta(f,h,l),l&&g&4&&Ey(f,h);break;case 13:Ta(f,h,l),l&&g&4&&Ny(f,h);break;case 22:h.memoizedState===null&&Ta(f,h,l),ou(h,h.return);break;case 30:break;default:Ta(f,h,l)}i=i.sibling}}function Kf(n,i){var l=null;n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(l=n.memoizedState.cachePool.pool),n=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(n=i.memoizedState.cachePool.pool),n!==l&&(n!=null&&n.refCount++,l!=null&&Yl(l))}function Wf(n,i){n=null,i.alternate!==null&&(n=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==n&&(i.refCount++,n!=null&&Yl(n))}function qn(n,i,l,o){if(i.subtreeFlags&10256)for(i=i.child;i!==null;)wy(n,i,l,o),i=i.sibling}function wy(n,i,l,o){var f=i.flags;switch(i.tag){case 0:case 11:case 15:qn(n,i,l,o),f&2048&&uu(9,i);break;case 1:qn(n,i,l,o);break;case 3:qn(n,i,l,o),f&2048&&(n=null,i.alternate!==null&&(n=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==n&&(i.refCount++,n!=null&&Yl(n)));break;case 12:if(f&2048){qn(n,i,l,o),n=i.stateNode;try{var h=i.memoizedProps,g=h.id,k=h.onPostCommit;typeof k=="function"&&k(g,i.alternate===null?"mount":"update",n.passiveEffectDuration,-0)}catch(x){Ye(i,i.return,x)}}else qn(n,i,l,o);break;case 31:qn(n,i,l,o);break;case 13:qn(n,i,l,o);break;case 23:break;case 22:h=i.stateNode,g=i.alternate,i.memoizedState!==null?h._visibility&2?qn(n,i,l,o):su(n,i):h._visibility&2?qn(n,i,l,o):(h._visibility|=2,Mr(n,i,l,o,(i.subtreeFlags&10256)!==0||!1)),f&2048&&Kf(g,i);break;case 24:qn(n,i,l,o),f&2048&&Wf(i.alternate,i);break;default:qn(n,i,l,o)}}function Mr(n,i,l,o,f){for(f=f&&((i.subtreeFlags&10256)!==0||!1),i=i.child;i!==null;){var h=n,g=i,k=l,x=o,Q=g.flags;switch(g.tag){case 0:case 11:case 15:Mr(h,g,k,x,f),uu(8,g);break;case 23:break;case 22:var Y=g.stateNode;g.memoizedState!==null?Y._visibility&2?Mr(h,g,k,x,f):su(h,g):(Y._visibility|=2,Mr(h,g,k,x,f)),f&&Q&2048&&Kf(g.alternate,g);break;case 24:Mr(h,g,k,x,f),f&&Q&2048&&Wf(g.alternate,g);break;default:Mr(h,g,k,x,f)}i=i.sibling}}function su(n,i){if(i.subtreeFlags&10256)for(i=i.child;i!==null;){var l=n,o=i,f=o.flags;switch(o.tag){case 22:su(l,o),f&2048&&Kf(o.alternate,o);break;case 24:su(l,o),f&2048&&Wf(o.alternate,o);break;default:su(l,o)}i=i.sibling}}var cu=8192;function Fr(n,i,l){if(n.subtreeFlags&cu)for(n=n.child;n!==null;)Dy(n,i,l),n=n.sibling}function Dy(n,i,l){switch(n.tag){case 26:Fr(n,i,l),n.flags&cu&&n.memoizedState!==null&&DN(l,Ln,n.memoizedState,n.memoizedProps);break;case 5:Fr(n,i,l);break;case 3:case 4:var o=Ln;Ln=ss(n.stateNode.containerInfo),Fr(n,i,l),Ln=o;break;case 22:n.memoizedState===null&&(o=n.alternate,o!==null&&o.memoizedState!==null?(o=cu,cu=16777216,Fr(n,i,l),cu=o):Fr(n,i,l));break;default:Fr(n,i,l)}}function xy(n){var i=n.alternate;if(i!==null&&(n=i.child,n!==null)){i.child=null;do i=n.sibling,n.sibling=null,n=i;while(n!==null)}}function fu(n){var i=n.deletions;if((n.flags&16)!==0){if(i!==null)for(var l=0;l<i.length;l++){var o=i[l];Ct=o,Ay(o,n)}xy(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)Ry(n),n=n.sibling}function Ry(n){switch(n.tag){case 0:case 11:case 15:fu(n),n.flags&2048&&Xa(9,n,n.return);break;case 3:fu(n);break;case 12:fu(n);break;case 22:var i=n.stateNode;n.memoizedState!==null&&i._visibility&2&&(n.return===null||n.return.tag!==13)?(i._visibility&=-3,Xo(n)):fu(n);break;default:fu(n)}}function Xo(n){var i=n.deletions;if((n.flags&16)!==0){if(i!==null)for(var l=0;l<i.length;l++){var o=i[l];Ct=o,Ay(o,n)}xy(n)}for(n=n.child;n!==null;){switch(i=n,i.tag){case 0:case 11:case 15:Xa(8,i,i.return),Xo(i);break;case 22:l=i.stateNode,l._visibility&2&&(l._visibility&=-3,Xo(i));break;default:Xo(i)}n=n.sibling}}function Ay(n,i){for(;Ct!==null;){var l=Ct;switch(l.tag){case 0:case 11:case 15:Xa(8,l,i);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var o=l.memoizedState.cachePool.pool;o!=null&&o.refCount++}break;case 24:Yl(l.memoizedState.cache)}if(o=l.child,o!==null)o.return=l,Ct=o;else e:for(l=n;Ct!==null;){o=Ct;var f=o.sibling,h=o.return;if(Sy(o),o===l){Ct=null;break e}if(f!==null){f.return=h,Ct=f;break e}Ct=h}}}var IE={getCacheForType:function(n){var i=qt(Et),l=i.data.get(n);return l===void 0&&(l=n(),i.data.set(n,l)),l},cacheSignal:function(){return qt(Et).controller.signal}},ZE=typeof WeakMap=="function"?WeakMap:Map,He=0,tt=null,ze=null,Me=0,Ge=0,yn=null,Ja=!1,Vr=!1,ed=!1,Oa=0,mt=0,Ka=0,$i=0,td=0,gn=0,Ur=0,du=null,ln=null,nd=!1,Jo=0,zy=0,Ko=1/0,Wo=null,Wa=null,Rt=0,ei=null,Lr=null,wa=0,ad=0,id=null,Cy=null,hu=0,rd=null;function bn(){return(He&2)!==0&&Me!==0?Me&-Me:U.T!==null?fd():Pm()}function jy(){if(gn===0)if((Me&536870912)===0||Ve){var n=Di;Di<<=1,(Di&3932160)===0&&(Di=262144),gn=n}else gn=536870912;return n=pn.current,n!==null&&(n.flags|=32),gn}function un(n,i,l){(n===tt&&(Ge===2||Ge===9)||n.cancelPendingCommit!==null)&&(qr(n,0),ti(n,Me,gn,!1)),jl(n,l),((He&2)===0||n!==tt)&&(n===tt&&((He&2)===0&&($i|=l),mt===4&&ti(n,Me,gn,!1)),na(n))}function My(n,i,l){if((He&6)!==0)throw Error(r(327));var o=!l&&(i&127)===0&&(i&n.expiredLanes)===0||Cl(n,i),f=o?GE(n,i):ud(n,i,!0),h=o;do{if(f===0){Vr&&!o&&ti(n,i,0,!1);break}else{if(l=n.current.alternate,h&&!HE(l)){f=ud(n,i,!1),h=!1;continue}if(f===2){if(h=i,n.errorRecoveryDisabledLanes&h)var g=0;else g=n.pendingLanes&-536870913,g=g!==0?g:g&536870912?536870912:0;if(g!==0){i=g;e:{var k=n;f=du;var x=k.current.memoizedState.isDehydrated;if(x&&(qr(k,g).flags|=256),g=ud(k,g,!1),g!==2){if(ed&&!x){k.errorRecoveryDisabledLanes|=h,$i|=h,f=4;break e}h=ln,ln=f,h!==null&&(ln===null?ln=h:ln.push.apply(ln,h))}f=g}if(h=!1,f!==2)continue}}if(f===1){qr(n,0),ti(n,i,0,!0);break}e:{switch(o=n,h=f,h){case 0:case 1:throw Error(r(345));case 4:if((i&4194048)!==i)break;case 6:ti(o,i,gn,!Ja);break e;case 2:ln=null;break;case 3:case 5:break;default:throw Error(r(329))}if((i&62914560)===i&&(f=Jo+300-L(),10<f)){if(ti(o,i,gn,!Ja),oo(o,0,!0)!==0)break e;wa=i,o.timeoutHandle=dg(Fy.bind(null,o,l,ln,Wo,nd,i,gn,$i,Ur,Ja,h,"Throttled",-0,0),f);break e}Fy(o,l,ln,Wo,nd,i,gn,$i,Ur,Ja,h,null,-0,0)}}break}while(!0);na(n)}function Fy(n,i,l,o,f,h,g,k,x,Q,Y,K,B,H){if(n.timeoutHandle=-1,K=i.subtreeFlags,K&8192||(K&16785408)===16785408){K={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:da},Dy(i,h,K);var pe=(h&62914560)===h?Jo-L():(h&4194048)===h?zy-L():0;if(pe=xN(K,pe),pe!==null){wa=h,n.cancelPendingCommit=pe(Zy.bind(null,n,i,h,l,o,f,g,k,x,Y,K,null,B,H)),ti(n,h,g,!Q);return}}Zy(n,i,h,l,o,f,g,k,x)}function HE(n){for(var i=n;;){var l=i.tag;if((l===0||l===11||l===15)&&i.flags&16384&&(l=i.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var o=0;o<l.length;o++){var f=l[o],h=f.getSnapshot;f=f.value;try{if(!hn(h(),f))return!1}catch{return!1}}if(l=i.child,i.subtreeFlags&16384&&l!==null)l.return=i,i=l;else{if(i===n)break;for(;i.sibling===null;){if(i.return===null||i.return===n)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function ti(n,i,l,o){i&=~td,i&=~$i,n.suspendedLanes|=i,n.pingedLanes&=~i,o&&(n.warmLanes|=i),o=n.expirationTimes;for(var f=i;0<f;){var h=31-Vt(f),g=1<<h;o[h]=-1,f&=~g}l!==0&&$m(n,l,i)}function es(){return(He&6)===0?(mu(0),!1):!0}function ld(){if(ze!==null){if(Ge===0)var n=ze.return;else n=ze,va=Vi=null,kf(n),Rr=null,Xl=0,n=ze;for(;n!==null;)hy(n.alternate,n),n=n.return;ze=null}}function qr(n,i){var l=n.timeoutHandle;l!==-1&&(n.timeoutHandle=-1,fN(l)),l=n.cancelPendingCommit,l!==null&&(n.cancelPendingCommit=null,l()),wa=0,ld(),tt=n,ze=l=ma(n.current,null),Me=i,Ge=0,yn=null,Ja=!1,Vr=Cl(n,i),ed=!1,Ur=gn=td=$i=Ka=mt=0,ln=du=null,nd=!1,(i&8)!==0&&(i|=i&32);var o=n.entangledLanes;if(o!==0)for(n=n.entanglements,o&=i;0<o;){var f=31-Vt(o),h=1<<f;i|=n[f],o&=~h}return Oa=i,So(),l}function Vy(n,i){De=null,U.H=iu,i===xr||i===xo?(i=Wp(),Ge=3):i===cf?(i=Wp(),Ge=4):Ge=i===Uf?8:i!==null&&typeof i=="object"&&typeof i.then=="function"?6:1,yn=i,ze===null&&(mt=1,Io(n,wn(i,n.current)))}function Uy(){var n=pn.current;return n===null?!0:(Me&4194048)===Me?An===null:(Me&62914560)===Me||(Me&536870912)!==0?n===An:!1}function Ly(){var n=U.H;return U.H=iu,n===null?iu:n}function qy(){var n=U.A;return U.A=IE,n}function ts(){mt=4,Ja||(Me&4194048)!==Me&&pn.current!==null||(Vr=!0),(Ka&134217727)===0&&($i&134217727)===0||tt===null||ti(tt,Me,gn,!1)}function ud(n,i,l){var o=He;He|=2;var f=Ly(),h=qy();(tt!==n||Me!==i)&&(Wo=null,qr(n,i)),i=!1;var g=mt;e:do try{if(Ge!==0&&ze!==null){var k=ze,x=yn;switch(Ge){case 8:ld(),g=6;break e;case 3:case 2:case 9:case 6:pn.current===null&&(i=!0);var Q=Ge;if(Ge=0,yn=null,Qr(n,k,x,Q),l&&Vr){g=0;break e}break;default:Q=Ge,Ge=0,yn=null,Qr(n,k,x,Q)}}$E(),g=mt;break}catch(Y){Vy(n,Y)}while(!0);return i&&n.shellSuspendCounter++,va=Vi=null,He=o,U.H=f,U.A=h,ze===null&&(tt=null,Me=0,So()),g}function $E(){for(;ze!==null;)Qy(ze)}function GE(n,i){var l=He;He|=2;var o=Ly(),f=qy();tt!==n||Me!==i?(Wo=null,Ko=L()+500,qr(n,i)):Vr=Cl(n,i);e:do try{if(Ge!==0&&ze!==null){i=ze;var h=yn;t:switch(Ge){case 1:Ge=0,yn=null,Qr(n,i,h,1);break;case 2:case 9:if(Jp(h)){Ge=0,yn=null,By(i);break}i=function(){Ge!==2&&Ge!==9||tt!==n||(Ge=7),na(n)},h.then(i,i);break e;case 3:Ge=7;break e;case 4:Ge=5;break e;case 7:Jp(h)?(Ge=0,yn=null,By(i)):(Ge=0,yn=null,Qr(n,i,h,7));break;case 5:var g=null;switch(ze.tag){case 26:g=ze.memoizedState;case 5:case 27:var k=ze;if(g?wg(g):k.stateNode.complete){Ge=0,yn=null;var x=k.sibling;if(x!==null)ze=x;else{var Q=k.return;Q!==null?(ze=Q,ns(Q)):ze=null}break t}}Ge=0,yn=null,Qr(n,i,h,5);break;case 6:Ge=0,yn=null,Qr(n,i,h,6);break;case 8:ld(),mt=6;break e;default:throw Error(r(462))}}YE();break}catch(Y){Vy(n,Y)}while(!0);return va=Vi=null,U.H=o,U.A=f,He=l,ze!==null?0:(tt=null,Me=0,So(),mt)}function YE(){for(;ze!==null&&!ro();)Qy(ze)}function Qy(n){var i=fy(n.alternate,n,Oa);n.memoizedProps=n.pendingProps,i===null?ns(n):ze=i}function By(n){var i=n,l=i.alternate;switch(i.tag){case 15:case 0:i=ry(l,i,i.pendingProps,i.type,void 0,Me);break;case 11:i=ry(l,i,i.pendingProps,i.type.render,i.ref,Me);break;case 5:kf(i);default:hy(l,i),i=ze=qp(i,Oa),i=fy(l,i,Oa)}n.memoizedProps=n.pendingProps,i===null?ns(n):ze=i}function Qr(n,i,l,o){va=Vi=null,kf(i),Rr=null,Xl=0;var f=i.return;try{if(FE(n,f,i,l,Me)){mt=1,Io(n,wn(l,n.current)),ze=null;return}}catch(h){if(f!==null)throw ze=f,h;mt=1,Io(n,wn(l,n.current)),ze=null;return}i.flags&32768?(Ve||o===1?n=!0:Vr||(Me&536870912)!==0?n=!1:(Ja=n=!0,(o===2||o===9||o===3||o===6)&&(o=pn.current,o!==null&&o.tag===13&&(o.flags|=16384))),Iy(i,n)):ns(i)}function ns(n){var i=n;do{if((i.flags&32768)!==0){Iy(i,Ja);return}n=i.return;var l=LE(i.alternate,i,Oa);if(l!==null){ze=l;return}if(i=i.sibling,i!==null){ze=i;return}ze=i=n}while(i!==null);mt===0&&(mt=5)}function Iy(n,i){do{var l=qE(n.alternate,n);if(l!==null){l.flags&=32767,ze=l;return}if(l=n.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!i&&(n=n.sibling,n!==null)){ze=n;return}ze=n=l}while(n!==null);mt=6,ze=null}function Zy(n,i,l,o,f,h,g,k,x){n.cancelPendingCommit=null;do as();while(Rt!==0);if((He&6)!==0)throw Error(r(327));if(i!==null){if(i===n.current)throw Error(r(177));if(h=i.lanes|i.childLanes,h|=Yc,wk(n,l,h,g,k,x),n===tt&&(ze=tt=null,Me=0),Lr=i,ei=n,wa=l,ad=h,id=f,Cy=o,(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?(n.callbackNode=null,n.callbackPriority=0,KE(te,function(){return Py(),null})):(n.callbackNode=null,n.callbackPriority=0),o=(i.flags&13878)!==0,(i.subtreeFlags&13878)!==0||o){o=U.T,U.T=null,f=P.p,P.p=2,g=He,He|=4;try{QE(n,i,l)}finally{He=g,P.p=f,U.T=o}}Rt=1,Hy(),$y(),Gy()}}function Hy(){if(Rt===1){Rt=0;var n=ei,i=Lr,l=(i.flags&13878)!==0;if((i.subtreeFlags&13878)!==0||l){l=U.T,U.T=null;var o=P.p;P.p=2;var f=He;He|=4;try{Ty(i,n);var h=bd,g=Ap(n.containerInfo),k=h.focusedElem,x=h.selectionRange;if(g!==k&&k&&k.ownerDocument&&Rp(k.ownerDocument.documentElement,k)){if(x!==null&&Ic(k)){var Q=x.start,Y=x.end;if(Y===void 0&&(Y=Q),"selectionStart"in k)k.selectionStart=Q,k.selectionEnd=Math.min(Y,k.value.length);else{var K=k.ownerDocument||document,B=K&&K.defaultView||window;if(B.getSelection){var H=B.getSelection(),pe=k.textContent.length,Ee=Math.min(x.start,pe),We=x.end===void 0?Ee:Math.min(x.end,pe);!H.extend&&Ee>We&&(g=We,We=Ee,Ee=g);var V=xp(k,Ee),C=xp(k,We);if(V&&C&&(H.rangeCount!==1||H.anchorNode!==V.node||H.anchorOffset!==V.offset||H.focusNode!==C.node||H.focusOffset!==C.offset)){var q=K.createRange();q.setStart(V.node,V.offset),H.removeAllRanges(),Ee>We?(H.addRange(q),H.extend(C.node,C.offset)):(q.setEnd(C.node,C.offset),H.addRange(q))}}}}for(K=[],H=k;H=H.parentNode;)H.nodeType===1&&K.push({element:H,left:H.scrollLeft,top:H.scrollTop});for(typeof k.focus=="function"&&k.focus(),k=0;k<K.length;k++){var X=K[k];X.element.scrollLeft=X.left,X.element.scrollTop=X.top}}ps=!!gd,bd=gd=null}finally{He=f,P.p=o,U.T=l}}n.current=i,Rt=2}}function $y(){if(Rt===2){Rt=0;var n=ei,i=Lr,l=(i.flags&8772)!==0;if((i.subtreeFlags&8772)!==0||l){l=U.T,U.T=null;var o=P.p;P.p=2;var f=He;He|=4;try{_y(n,i.alternate,i)}finally{He=f,P.p=o,U.T=l}}Rt=3}}function Gy(){if(Rt===4||Rt===3){Rt=0,R();var n=ei,i=Lr,l=wa,o=Cy;(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?Rt=5:(Rt=0,Lr=ei=null,Yy(n,n.pendingLanes));var f=n.pendingLanes;if(f===0&&(Wa=null),Nc(l),i=i.stateNode,Xe&&typeof Xe.onCommitFiberRoot=="function")try{Xe.onCommitFiberRoot(Ht,i,void 0,(i.current.flags&128)===128)}catch{}if(o!==null){i=U.T,f=P.p,P.p=2,U.T=null;try{for(var h=n.onRecoverableError,g=0;g<o.length;g++){var k=o[g];h(k.value,{componentStack:k.stack})}}finally{U.T=i,P.p=f}}(wa&3)!==0&&as(),na(n),f=n.pendingLanes,(l&261930)!==0&&(f&42)!==0?n===rd?hu++:(hu=0,rd=n):hu=0,mu(0)}}function Yy(n,i){(n.pooledCacheLanes&=i)===0&&(i=n.pooledCache,i!=null&&(n.pooledCache=null,Yl(i)))}function as(){return Hy(),$y(),Gy(),Py()}function Py(){if(Rt!==5)return!1;var n=ei,i=ad;ad=0;var l=Nc(wa),o=U.T,f=P.p;try{P.p=32>l?32:l,U.T=null,l=id,id=null;var h=ei,g=wa;if(Rt=0,Lr=ei=null,wa=0,(He&6)!==0)throw Error(r(331));var k=He;if(He|=4,Ry(h.current),wy(h,h.current,g,l),He=k,mu(0,!1),Xe&&typeof Xe.onPostCommitFiberRoot=="function")try{Xe.onPostCommitFiberRoot(Ht,h)}catch{}return!0}finally{P.p=f,U.T=o,Yy(n,i)}}function Xy(n,i,l){i=wn(l,i),i=Vf(n.stateNode,i,2),n=Ga(n,i,2),n!==null&&(jl(n,2),na(n))}function Ye(n,i,l){if(n.tag===3)Xy(n,n,l);else for(;i!==null;){if(i.tag===3){Xy(i,n,l);break}else if(i.tag===1){var o=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(Wa===null||!Wa.has(o))){n=wn(l,n),l=Jv(2),o=Ga(i,l,2),o!==null&&(Kv(l,o,i,n),jl(o,2),na(o));break}}i=i.return}}function od(n,i,l){var o=n.pingCache;if(o===null){o=n.pingCache=new ZE;var f=new Set;o.set(i,f)}else f=o.get(i),f===void 0&&(f=new Set,o.set(i,f));f.has(l)||(ed=!0,f.add(l),n=PE.bind(null,n,i,l),i.then(n,n))}function PE(n,i,l){var o=n.pingCache;o!==null&&o.delete(i),n.pingedLanes|=n.suspendedLanes&l,n.warmLanes&=~l,tt===n&&(Me&l)===l&&(mt===4||mt===3&&(Me&62914560)===Me&&300>L()-Jo?(He&2)===0&&qr(n,0):td|=l,Ur===Me&&(Ur=0)),na(n)}function Jy(n,i){i===0&&(i=Hm()),n=ji(n,i),n!==null&&(jl(n,i),na(n))}function XE(n){var i=n.memoizedState,l=0;i!==null&&(l=i.retryLane),Jy(n,l)}function JE(n,i){var l=0;switch(n.tag){case 31:case 13:var o=n.stateNode,f=n.memoizedState;f!==null&&(l=f.retryLane);break;case 19:o=n.stateNode;break;case 22:o=n.stateNode._retryCache;break;default:throw Error(r(314))}o!==null&&o.delete(i),Jy(n,l)}function KE(n,i){return Al(n,i)}var is=null,Br=null,sd=!1,rs=!1,cd=!1,ni=0;function na(n){n!==Br&&n.next===null&&(Br===null?is=Br=n:Br=Br.next=n),rs=!0,sd||(sd=!0,eN())}function mu(n,i){if(!cd&&rs){cd=!0;do for(var l=!1,o=is;o!==null;){if(n!==0){var f=o.pendingLanes;if(f===0)var h=0;else{var g=o.suspendedLanes,k=o.pingedLanes;h=(1<<31-Vt(42|n)+1)-1,h&=f&~(g&~k),h=h&201326741?h&201326741|1:h?h|2:0}h!==0&&(l=!0,tg(o,h))}else h=Me,h=oo(o,o===tt?h:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),(h&3)===0||Cl(o,h)||(l=!0,tg(o,h));o=o.next}while(l);cd=!1}}function WE(){Ky()}function Ky(){rs=sd=!1;var n=0;ni!==0&&cN()&&(n=ni);for(var i=L(),l=null,o=is;o!==null;){var f=o.next,h=Wy(o,i);h===0?(o.next=null,l===null?is=f:l.next=f,f===null&&(Br=l)):(l=o,(n!==0||(h&3)!==0)&&(rs=!0)),o=f}Rt!==0&&Rt!==5||mu(n),ni!==0&&(ni=0)}function Wy(n,i){for(var l=n.suspendedLanes,o=n.pingedLanes,f=n.expirationTimes,h=n.pendingLanes&-62914561;0<h;){var g=31-Vt(h),k=1<<g,x=f[g];x===-1?((k&l)===0||(k&o)!==0)&&(f[g]=Ok(k,i)):x<=i&&(n.expiredLanes|=k),h&=~k}if(i=tt,l=Me,l=oo(n,n===i?l:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),o=n.callbackNode,l===0||n===i&&(Ge===2||Ge===9)||n.cancelPendingCommit!==null)return o!==null&&o!==null&&io(o),n.callbackNode=null,n.callbackPriority=0;if((l&3)===0||Cl(n,l)){if(i=l&-l,i===n.callbackPriority)return i;switch(o!==null&&io(o),Nc(l)){case 2:case 8:l=re;break;case 32:l=te;break;case 268435456:l=we;break;default:l=te}return o=eg.bind(null,n),l=Al(l,o),n.callbackPriority=i,n.callbackNode=l,i}return o!==null&&o!==null&&io(o),n.callbackPriority=2,n.callbackNode=null,2}function eg(n,i){if(Rt!==0&&Rt!==5)return n.callbackNode=null,n.callbackPriority=0,null;var l=n.callbackNode;if(as()&&n.callbackNode!==l)return null;var o=Me;return o=oo(n,n===tt?o:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),o===0?null:(My(n,o,i),Wy(n,L()),n.callbackNode!=null&&n.callbackNode===l?eg.bind(null,n):null)}function tg(n,i){if(as())return null;My(n,i,!0)}function eN(){dN(function(){(He&6)!==0?Al(ue,WE):Ky()})}function fd(){if(ni===0){var n=wr;n===0&&(n=or,or<<=1,(or&261888)===0&&(or=256)),ni=n}return ni}function ng(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:ho(""+n)}function ag(n,i){var l=i.ownerDocument.createElement("input");return l.name=i.name,l.value=i.value,n.id&&l.setAttribute("form",n.id),i.parentNode.insertBefore(l,i),n=new FormData(n),l.parentNode.removeChild(l),n}function tN(n,i,l,o,f){if(i==="submit"&&l&&l.stateNode===f){var h=ng((f[en]||null).action),g=o.submitter;g&&(i=(i=g[en]||null)?ng(i.formAction):g.getAttribute("formAction"),i!==null&&(h=i,g=null));var k=new yo("action","action",null,o,f);n.push({event:k,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(ni!==0){var x=g?ag(f,g):new FormData(f);Af(l,{pending:!0,data:x,method:f.method,action:h},null,x)}}else typeof h=="function"&&(k.preventDefault(),x=g?ag(f,g):new FormData(f),Af(l,{pending:!0,data:x,method:f.method,action:h},h,x))},currentTarget:f}]})}}for(var dd=0;dd<Gc.length;dd++){var hd=Gc[dd],nN=hd.toLowerCase(),aN=hd[0].toUpperCase()+hd.slice(1);Un(nN,"on"+aN)}Un(jp,"onAnimationEnd"),Un(Mp,"onAnimationIteration"),Un(Fp,"onAnimationStart"),Un("dblclick","onDoubleClick"),Un("focusin","onFocus"),Un("focusout","onBlur"),Un(bE,"onTransitionRun"),Un(_E,"onTransitionStart"),Un(SE,"onTransitionCancel"),Un(Vp,"onTransitionEnd"),hr("onMouseEnter",["mouseout","mouseover"]),hr("onMouseLeave",["mouseout","mouseover"]),hr("onPointerEnter",["pointerout","pointerover"]),hr("onPointerLeave",["pointerout","pointerover"]),Ri("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ri("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ri("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ri("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ri("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ri("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var pu="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),iN=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(pu));function ig(n,i){i=(i&4)!==0;for(var l=0;l<n.length;l++){var o=n[l],f=o.event;o=o.listeners;e:{var h=void 0;if(i)for(var g=o.length-1;0<=g;g--){var k=o[g],x=k.instance,Q=k.currentTarget;if(k=k.listener,x!==h&&f.isPropagationStopped())break e;h=k,f.currentTarget=Q;try{h(f)}catch(Y){_o(Y)}f.currentTarget=null,h=x}else for(g=0;g<o.length;g++){if(k=o[g],x=k.instance,Q=k.currentTarget,k=k.listener,x!==h&&f.isPropagationStopped())break e;h=k,f.currentTarget=Q;try{h(f)}catch(Y){_o(Y)}f.currentTarget=null,h=x}}}}function Ce(n,i){var l=i[Tc];l===void 0&&(l=i[Tc]=new Set);var o=n+"__bubble";l.has(o)||(rg(i,n,2,!1),l.add(o))}function md(n,i,l){var o=0;i&&(o|=4),rg(l,n,o,i)}var ls="_reactListening"+Math.random().toString(36).slice(2);function pd(n){if(!n[ls]){n[ls]=!0,Km.forEach(function(l){l!=="selectionchange"&&(iN.has(l)||md(l,!1,n),md(l,!0,n))});var i=n.nodeType===9?n:n.ownerDocument;i===null||i[ls]||(i[ls]=!0,md("selectionchange",!1,i))}}function rg(n,i,l,o){switch(jg(i)){case 2:var f=zN;break;case 8:f=CN;break;default:f=Rd}l=f.bind(null,i,l,n),f=void 0,!jc||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(f=!0),o?f!==void 0?n.addEventListener(i,l,{capture:!0,passive:f}):n.addEventListener(i,l,!0):f!==void 0?n.addEventListener(i,l,{passive:f}):n.addEventListener(i,l,!1)}function vd(n,i,l,o,f){var h=o;if((i&1)===0&&(i&2)===0&&o!==null)e:for(;;){if(o===null)return;var g=o.tag;if(g===3||g===4){var k=o.stateNode.containerInfo;if(k===f)break;if(g===4)for(g=o.return;g!==null;){var x=g.tag;if((x===3||x===4)&&g.stateNode.containerInfo===f)return;g=g.return}for(;k!==null;){if(g=cr(k),g===null)return;if(x=g.tag,x===5||x===6||x===26||x===27){o=h=g;continue e}k=k.parentNode}}o=o.return}cp(function(){var Q=h,Y=zc(l),K=[];e:{var B=Up.get(n);if(B!==void 0){var H=yo,pe=n;switch(n){case"keypress":if(po(l)===0)break e;case"keydown":case"keyup":H=Jk;break;case"focusin":pe="focus",H=Uc;break;case"focusout":pe="blur",H=Uc;break;case"beforeblur":case"afterblur":H=Uc;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":H=hp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":H=Lk;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":H=eE;break;case jp:case Mp:case Fp:H=Bk;break;case Vp:H=nE;break;case"scroll":case"scrollend":H=Vk;break;case"wheel":H=iE;break;case"copy":case"cut":case"paste":H=Zk;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":H=pp;break;case"toggle":case"beforetoggle":H=lE}var Ee=(i&4)!==0,We=!Ee&&(n==="scroll"||n==="scrollend"),V=Ee?B!==null?B+"Capture":null:B;Ee=[];for(var C=Q,q;C!==null;){var X=C;if(q=X.stateNode,X=X.tag,X!==5&&X!==26&&X!==27||q===null||V===null||(X=Vl(C,V),X!=null&&Ee.push(vu(C,X,q))),We)break;C=C.return}0<Ee.length&&(B=new H(B,pe,null,l,Y),K.push({event:B,listeners:Ee}))}}if((i&7)===0){e:{if(B=n==="mouseover"||n==="pointerover",H=n==="mouseout"||n==="pointerout",B&&l!==Ac&&(pe=l.relatedTarget||l.fromElement)&&(cr(pe)||pe[sr]))break e;if((H||B)&&(B=Y.window===Y?Y:(B=Y.ownerDocument)?B.defaultView||B.parentWindow:window,H?(pe=l.relatedTarget||l.toElement,H=Q,pe=pe?cr(pe):null,pe!==null&&(We=s(pe),Ee=pe.tag,pe!==We||Ee!==5&&Ee!==27&&Ee!==6)&&(pe=null)):(H=null,pe=Q),H!==pe)){if(Ee=hp,X="onMouseLeave",V="onMouseEnter",C="mouse",(n==="pointerout"||n==="pointerover")&&(Ee=pp,X="onPointerLeave",V="onPointerEnter",C="pointer"),We=H==null?B:Fl(H),q=pe==null?B:Fl(pe),B=new Ee(X,C+"leave",H,l,Y),B.target=We,B.relatedTarget=q,X=null,cr(Y)===Q&&(Ee=new Ee(V,C+"enter",pe,l,Y),Ee.target=q,Ee.relatedTarget=We,X=Ee),We=X,H&&pe)t:{for(Ee=rN,V=H,C=pe,q=0,X=V;X;X=Ee(X))q++;X=0;for(var ke=C;ke;ke=Ee(ke))X++;for(;0<q-X;)V=Ee(V),q--;for(;0<X-q;)C=Ee(C),X--;for(;q--;){if(V===C||C!==null&&V===C.alternate){Ee=V;break t}V=Ee(V),C=Ee(C)}Ee=null}else Ee=null;H!==null&&lg(K,B,H,Ee,!1),pe!==null&&We!==null&&lg(K,We,pe,Ee,!0)}}e:{if(B=Q?Fl(Q):window,H=B.nodeName&&B.nodeName.toLowerCase(),H==="select"||H==="input"&&B.type==="file")var Ie=Ep;else if(Sp(B))if(Np)Ie=vE;else{Ie=mE;var be=hE}else H=B.nodeName,!H||H.toLowerCase()!=="input"||B.type!=="checkbox"&&B.type!=="radio"?Q&&Rc(Q.elementType)&&(Ie=Ep):Ie=pE;if(Ie&&(Ie=Ie(n,Q))){kp(K,Ie,l,Y);break e}be&&be(n,B,Q),n==="focusout"&&Q&&B.type==="number"&&Q.memoizedProps.value!=null&&xc(B,"number",B.value)}switch(be=Q?Fl(Q):window,n){case"focusin":(Sp(be)||be.contentEditable==="true")&&(br=be,Zc=Q,Hl=null);break;case"focusout":Hl=Zc=br=null;break;case"mousedown":Hc=!0;break;case"contextmenu":case"mouseup":case"dragend":Hc=!1,zp(K,l,Y);break;case"selectionchange":if(gE)break;case"keydown":case"keyup":zp(K,l,Y)}var xe;if(qc)e:{switch(n){case"compositionstart":var Fe="onCompositionStart";break e;case"compositionend":Fe="onCompositionEnd";break e;case"compositionupdate":Fe="onCompositionUpdate";break e}Fe=void 0}else gr?bp(n,l)&&(Fe="onCompositionEnd"):n==="keydown"&&l.keyCode===229&&(Fe="onCompositionStart");Fe&&(vp&&l.locale!=="ko"&&(gr||Fe!=="onCompositionStart"?Fe==="onCompositionEnd"&&gr&&(xe=fp()):(qa=Y,Mc="value"in qa?qa.value:qa.textContent,gr=!0)),be=us(Q,Fe),0<be.length&&(Fe=new mp(Fe,n,null,l,Y),K.push({event:Fe,listeners:be}),xe?Fe.data=xe:(xe=_p(l),xe!==null&&(Fe.data=xe)))),(xe=oE?sE(n,l):cE(n,l))&&(Fe=us(Q,"onBeforeInput"),0<Fe.length&&(be=new mp("onBeforeInput","beforeinput",null,l,Y),K.push({event:be,listeners:Fe}),be.data=xe)),tN(K,n,Q,l,Y)}ig(K,i)})}function vu(n,i,l){return{instance:n,listener:i,currentTarget:l}}function us(n,i){for(var l=i+"Capture",o=[];n!==null;){var f=n,h=f.stateNode;if(f=f.tag,f!==5&&f!==26&&f!==27||h===null||(f=Vl(n,l),f!=null&&o.unshift(vu(n,f,h)),f=Vl(n,i),f!=null&&o.push(vu(n,f,h))),n.tag===3)return o;n=n.return}return[]}function rN(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}function lg(n,i,l,o,f){for(var h=i._reactName,g=[];l!==null&&l!==o;){var k=l,x=k.alternate,Q=k.stateNode;if(k=k.tag,x!==null&&x===o)break;k!==5&&k!==26&&k!==27||Q===null||(x=Q,f?(Q=Vl(l,h),Q!=null&&g.unshift(vu(l,Q,x))):f||(Q=Vl(l,h),Q!=null&&g.push(vu(l,Q,x)))),l=l.return}g.length!==0&&n.push({event:i,listeners:g})}var lN=/\r\n?/g,uN=/\u0000|\uFFFD/g;function ug(n){return(typeof n=="string"?n:""+n).replace(lN,`
90
+ `).replace(uN,"")}function og(n,i){return i=ug(i),ug(n)===i}function Ke(n,i,l,o,f,h){switch(l){case"children":typeof o=="string"?i==="body"||i==="textarea"&&o===""||pr(n,o):(typeof o=="number"||typeof o=="bigint")&&i!=="body"&&pr(n,""+o);break;case"className":co(n,"class",o);break;case"tabIndex":co(n,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":co(n,l,o);break;case"style":op(n,o,h);break;case"data":if(i!=="object"){co(n,"data",o);break}case"src":case"href":if(o===""&&(i!=="a"||l!=="href")){n.removeAttribute(l);break}if(o==null||typeof o=="function"||typeof o=="symbol"||typeof o=="boolean"){n.removeAttribute(l);break}o=ho(""+o),n.setAttribute(l,o);break;case"action":case"formAction":if(typeof o=="function"){n.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof h=="function"&&(l==="formAction"?(i!=="input"&&Ke(n,i,"name",f.name,f,null),Ke(n,i,"formEncType",f.formEncType,f,null),Ke(n,i,"formMethod",f.formMethod,f,null),Ke(n,i,"formTarget",f.formTarget,f,null)):(Ke(n,i,"encType",f.encType,f,null),Ke(n,i,"method",f.method,f,null),Ke(n,i,"target",f.target,f,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){n.removeAttribute(l);break}o=ho(""+o),n.setAttribute(l,o);break;case"onClick":o!=null&&(n.onclick=da);break;case"onScroll":o!=null&&Ce("scroll",n);break;case"onScrollEnd":o!=null&&Ce("scrollend",n);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(r(61));if(l=o.__html,l!=null){if(f.children!=null)throw Error(r(60));n.innerHTML=l}}break;case"multiple":n.multiple=o&&typeof o!="function"&&typeof o!="symbol";break;case"muted":n.muted=o&&typeof o!="function"&&typeof o!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o=="function"||typeof o=="boolean"||typeof o=="symbol"){n.removeAttribute("xlink:href");break}l=ho(""+o),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":o!=null&&typeof o!="function"&&typeof o!="symbol"?n.setAttribute(l,""+o):n.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":o&&typeof o!="function"&&typeof o!="symbol"?n.setAttribute(l,""):n.removeAttribute(l);break;case"capture":case"download":o===!0?n.setAttribute(l,""):o!==!1&&o!=null&&typeof o!="function"&&typeof o!="symbol"?n.setAttribute(l,o):n.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!="function"&&typeof o!="symbol"&&!isNaN(o)&&1<=o?n.setAttribute(l,o):n.removeAttribute(l);break;case"rowSpan":case"start":o==null||typeof o=="function"||typeof o=="symbol"||isNaN(o)?n.removeAttribute(l):n.setAttribute(l,o);break;case"popover":Ce("beforetoggle",n),Ce("toggle",n),so(n,"popover",o);break;case"xlinkActuate":fa(n,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":fa(n,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":fa(n,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":fa(n,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":fa(n,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":fa(n,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":fa(n,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":fa(n,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":fa(n,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":so(n,"is",o);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=Mk.get(l)||l,so(n,l,o))}}function yd(n,i,l,o,f,h){switch(l){case"style":op(n,o,h);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(r(61));if(l=o.__html,l!=null){if(f.children!=null)throw Error(r(60));n.innerHTML=l}}break;case"children":typeof o=="string"?pr(n,o):(typeof o=="number"||typeof o=="bigint")&&pr(n,""+o);break;case"onScroll":o!=null&&Ce("scroll",n);break;case"onScrollEnd":o!=null&&Ce("scrollend",n);break;case"onClick":o!=null&&(n.onclick=da);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Wm.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(f=l.endsWith("Capture"),i=l.slice(2,f?l.length-7:void 0),h=n[en]||null,h=h!=null?h[l]:null,typeof h=="function"&&n.removeEventListener(i,h,f),typeof o=="function")){typeof h!="function"&&h!==null&&(l in n?n[l]=null:n.hasAttribute(l)&&n.removeAttribute(l)),n.addEventListener(i,o,f);break e}l in n?n[l]=o:o===!0?n.setAttribute(l,""):so(n,l,o)}}}function Bt(n,i,l){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ce("error",n),Ce("load",n);var o=!1,f=!1,h;for(h in l)if(l.hasOwnProperty(h)){var g=l[h];if(g!=null)switch(h){case"src":o=!0;break;case"srcSet":f=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,i));default:Ke(n,i,h,g,l,null)}}f&&Ke(n,i,"srcSet",l.srcSet,l,null),o&&Ke(n,i,"src",l.src,l,null);return;case"input":Ce("invalid",n);var k=h=g=f=null,x=null,Q=null;for(o in l)if(l.hasOwnProperty(o)){var Y=l[o];if(Y!=null)switch(o){case"name":f=Y;break;case"type":g=Y;break;case"checked":x=Y;break;case"defaultChecked":Q=Y;break;case"value":h=Y;break;case"defaultValue":k=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(r(137,i));break;default:Ke(n,i,o,Y,l,null)}}ip(n,h,k,x,Q,g,f,!1);return;case"select":Ce("invalid",n),o=g=h=null;for(f in l)if(l.hasOwnProperty(f)&&(k=l[f],k!=null))switch(f){case"value":h=k;break;case"defaultValue":g=k;break;case"multiple":o=k;default:Ke(n,i,f,k,l,null)}i=h,l=g,n.multiple=!!o,i!=null?mr(n,!!o,i,!1):l!=null&&mr(n,!!o,l,!0);return;case"textarea":Ce("invalid",n),h=f=o=null;for(g in l)if(l.hasOwnProperty(g)&&(k=l[g],k!=null))switch(g){case"value":o=k;break;case"defaultValue":f=k;break;case"children":h=k;break;case"dangerouslySetInnerHTML":if(k!=null)throw Error(r(91));break;default:Ke(n,i,g,k,l,null)}lp(n,o,f,h);return;case"option":for(x in l)if(l.hasOwnProperty(x)&&(o=l[x],o!=null))switch(x){case"selected":n.selected=o&&typeof o!="function"&&typeof o!="symbol";break;default:Ke(n,i,x,o,l,null)}return;case"dialog":Ce("beforetoggle",n),Ce("toggle",n),Ce("cancel",n),Ce("close",n);break;case"iframe":case"object":Ce("load",n);break;case"video":case"audio":for(o=0;o<pu.length;o++)Ce(pu[o],n);break;case"image":Ce("error",n),Ce("load",n);break;case"details":Ce("toggle",n);break;case"embed":case"source":case"link":Ce("error",n),Ce("load",n);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Q in l)if(l.hasOwnProperty(Q)&&(o=l[Q],o!=null))switch(Q){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,i));default:Ke(n,i,Q,o,l,null)}return;default:if(Rc(i)){for(Y in l)l.hasOwnProperty(Y)&&(o=l[Y],o!==void 0&&yd(n,i,Y,o,l,void 0));return}}for(k in l)l.hasOwnProperty(k)&&(o=l[k],o!=null&&Ke(n,i,k,o,l,null))}function oN(n,i,l,o){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var f=null,h=null,g=null,k=null,x=null,Q=null,Y=null;for(H in l){var K=l[H];if(l.hasOwnProperty(H)&&K!=null)switch(H){case"checked":break;case"value":break;case"defaultValue":x=K;default:o.hasOwnProperty(H)||Ke(n,i,H,null,o,K)}}for(var B in o){var H=o[B];if(K=l[B],o.hasOwnProperty(B)&&(H!=null||K!=null))switch(B){case"type":h=H;break;case"name":f=H;break;case"checked":Q=H;break;case"defaultChecked":Y=H;break;case"value":g=H;break;case"defaultValue":k=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(r(137,i));break;default:H!==K&&Ke(n,i,B,H,o,K)}}Dc(n,g,k,x,Q,Y,h,f);return;case"select":H=g=k=B=null;for(h in l)if(x=l[h],l.hasOwnProperty(h)&&x!=null)switch(h){case"value":break;case"multiple":H=x;default:o.hasOwnProperty(h)||Ke(n,i,h,null,o,x)}for(f in o)if(h=o[f],x=l[f],o.hasOwnProperty(f)&&(h!=null||x!=null))switch(f){case"value":B=h;break;case"defaultValue":k=h;break;case"multiple":g=h;default:h!==x&&Ke(n,i,f,h,o,x)}i=k,l=g,o=H,B!=null?mr(n,!!l,B,!1):!!o!=!!l&&(i!=null?mr(n,!!l,i,!0):mr(n,!!l,l?[]:"",!1));return;case"textarea":H=B=null;for(k in l)if(f=l[k],l.hasOwnProperty(k)&&f!=null&&!o.hasOwnProperty(k))switch(k){case"value":break;case"children":break;default:Ke(n,i,k,null,o,f)}for(g in o)if(f=o[g],h=l[g],o.hasOwnProperty(g)&&(f!=null||h!=null))switch(g){case"value":B=f;break;case"defaultValue":H=f;break;case"children":break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(r(91));break;default:f!==h&&Ke(n,i,g,f,o,h)}rp(n,B,H);return;case"option":for(var pe in l)if(B=l[pe],l.hasOwnProperty(pe)&&B!=null&&!o.hasOwnProperty(pe))switch(pe){case"selected":n.selected=!1;break;default:Ke(n,i,pe,null,o,B)}for(x in o)if(B=o[x],H=l[x],o.hasOwnProperty(x)&&B!==H&&(B!=null||H!=null))switch(x){case"selected":n.selected=B&&typeof B!="function"&&typeof B!="symbol";break;default:Ke(n,i,x,B,o,H)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Ee in l)B=l[Ee],l.hasOwnProperty(Ee)&&B!=null&&!o.hasOwnProperty(Ee)&&Ke(n,i,Ee,null,o,B);for(Q in o)if(B=o[Q],H=l[Q],o.hasOwnProperty(Q)&&B!==H&&(B!=null||H!=null))switch(Q){case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(r(137,i));break;default:Ke(n,i,Q,B,o,H)}return;default:if(Rc(i)){for(var We in l)B=l[We],l.hasOwnProperty(We)&&B!==void 0&&!o.hasOwnProperty(We)&&yd(n,i,We,void 0,o,B);for(Y in o)B=o[Y],H=l[Y],!o.hasOwnProperty(Y)||B===H||B===void 0&&H===void 0||yd(n,i,Y,B,o,H);return}}for(var V in l)B=l[V],l.hasOwnProperty(V)&&B!=null&&!o.hasOwnProperty(V)&&Ke(n,i,V,null,o,B);for(K in o)B=o[K],H=l[K],!o.hasOwnProperty(K)||B===H||B==null&&H==null||Ke(n,i,K,B,o,H)}function sg(n){switch(n){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function sN(){if(typeof performance.getEntriesByType=="function"){for(var n=0,i=0,l=performance.getEntriesByType("resource"),o=0;o<l.length;o++){var f=l[o],h=f.transferSize,g=f.initiatorType,k=f.duration;if(h&&k&&sg(g)){for(g=0,k=f.responseEnd,o+=1;o<l.length;o++){var x=l[o],Q=x.startTime;if(Q>k)break;var Y=x.transferSize,K=x.initiatorType;Y&&sg(K)&&(x=x.responseEnd,g+=Y*(x<k?1:(k-Q)/(x-Q)))}if(--o,i+=8*(h+g)/(f.duration/1e3),n++,10<n)break}}if(0<n)return i/n/1e6}return navigator.connection&&(n=navigator.connection.downlink,typeof n=="number")?n:5}var gd=null,bd=null;function os(n){return n.nodeType===9?n:n.ownerDocument}function cg(n){switch(n){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function fg(n,i){if(n===0)switch(i){case"svg":return 1;case"math":return 2;default:return 0}return n===1&&i==="foreignObject"?0:n}function _d(n,i){return n==="textarea"||n==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.children=="bigint"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var Sd=null;function cN(){var n=window.event;return n&&n.type==="popstate"?n===Sd?!1:(Sd=n,!0):(Sd=null,!1)}var dg=typeof setTimeout=="function"?setTimeout:void 0,fN=typeof clearTimeout=="function"?clearTimeout:void 0,hg=typeof Promise=="function"?Promise:void 0,dN=typeof queueMicrotask=="function"?queueMicrotask:typeof hg<"u"?function(n){return hg.resolve(null).then(n).catch(hN)}:dg;function hN(n){setTimeout(function(){throw n})}function ai(n){return n==="head"}function mg(n,i){var l=i,o=0;do{var f=l.nextSibling;if(n.removeChild(l),f&&f.nodeType===8)if(l=f.data,l==="/$"||l==="/&"){if(o===0){n.removeChild(f),$r(i);return}o--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")o++;else if(l==="html")yu(n.ownerDocument.documentElement);else if(l==="head"){l=n.ownerDocument.head,yu(l);for(var h=l.firstChild;h;){var g=h.nextSibling,k=h.nodeName;h[Ml]||k==="SCRIPT"||k==="STYLE"||k==="LINK"&&h.rel.toLowerCase()==="stylesheet"||l.removeChild(h),h=g}}else l==="body"&&yu(n.ownerDocument.body);l=f}while(l);$r(i)}function pg(n,i){var l=n;n=0;do{var o=l.nextSibling;if(l.nodeType===1?i?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(i?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),o&&o.nodeType===8)if(l=o.data,l==="/$"){if(n===0)break;n--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||n++;l=o}while(l)}function kd(n){var i=n.firstChild;for(i&&i.nodeType===10&&(i=i.nextSibling);i;){var l=i;switch(i=i.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":kd(l),Oc(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}n.removeChild(l)}}function mN(n,i,l,o){for(;n.nodeType===1;){var f=l;if(n.nodeName.toLowerCase()!==i.toLowerCase()){if(!o&&(n.nodeName!=="INPUT"||n.type!=="hidden"))break}else if(o){if(!n[Ml])switch(i){case"meta":if(!n.hasAttribute("itemprop"))break;return n;case"link":if(h=n.getAttribute("rel"),h==="stylesheet"&&n.hasAttribute("data-precedence"))break;if(h!==f.rel||n.getAttribute("href")!==(f.href==null||f.href===""?null:f.href)||n.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin)||n.getAttribute("title")!==(f.title==null?null:f.title))break;return n;case"style":if(n.hasAttribute("data-precedence"))break;return n;case"script":if(h=n.getAttribute("src"),(h!==(f.src==null?null:f.src)||n.getAttribute("type")!==(f.type==null?null:f.type)||n.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin))&&h&&n.hasAttribute("async")&&!n.hasAttribute("itemprop"))break;return n;default:return n}}else if(i==="input"&&n.type==="hidden"){var h=f.name==null?null:""+f.name;if(f.type==="hidden"&&n.getAttribute("name")===h)return n}else return n;if(n=zn(n.nextSibling),n===null)break}return null}function pN(n,i,l){if(i==="")return null;for(;n.nodeType!==3;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!l||(n=zn(n.nextSibling),n===null))return null;return n}function vg(n,i){for(;n.nodeType!==8;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!i||(n=zn(n.nextSibling),n===null))return null;return n}function Ed(n){return n.data==="$?"||n.data==="$~"}function Nd(n){return n.data==="$!"||n.data==="$?"&&n.ownerDocument.readyState!=="loading"}function vN(n,i){var l=n.ownerDocument;if(n.data==="$~")n._reactRetry=i;else if(n.data!=="$?"||l.readyState!=="loading")i();else{var o=function(){i(),l.removeEventListener("DOMContentLoaded",o)};l.addEventListener("DOMContentLoaded",o),n._reactRetry=o}}function zn(n){for(;n!=null;n=n.nextSibling){var i=n.nodeType;if(i===1||i===3)break;if(i===8){if(i=n.data,i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"||i==="F!"||i==="F")break;if(i==="/$"||i==="/&")return null}}return n}var Td=null;function yg(n){n=n.nextSibling;for(var i=0;n;){if(n.nodeType===8){var l=n.data;if(l==="/$"||l==="/&"){if(i===0)return zn(n.nextSibling);i--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||i++}n=n.nextSibling}return null}function gg(n){n=n.previousSibling;for(var i=0;n;){if(n.nodeType===8){var l=n.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(i===0)return n;i--}else l!=="/$"&&l!=="/&"||i++}n=n.previousSibling}return null}function bg(n,i,l){switch(i=os(l),n){case"html":if(n=i.documentElement,!n)throw Error(r(452));return n;case"head":if(n=i.head,!n)throw Error(r(453));return n;case"body":if(n=i.body,!n)throw Error(r(454));return n;default:throw Error(r(451))}}function yu(n){for(var i=n.attributes;i.length;)n.removeAttributeNode(i[0]);Oc(n)}var Cn=new Map,_g=new Set;function ss(n){return typeof n.getRootNode=="function"?n.getRootNode():n.nodeType===9?n:n.ownerDocument}var Da=P.d;P.d={f:yN,r:gN,D:bN,C:_N,L:SN,m:kN,X:NN,S:EN,M:TN};function yN(){var n=Da.f(),i=es();return n||i}function gN(n){var i=fr(n);i!==null&&i.tag===5&&i.type==="form"?Vv(i):Da.r(n)}var Ir=typeof document>"u"?null:document;function Sg(n,i,l){var o=Ir;if(o&&typeof i=="string"&&i){var f=Tn(i);f='link[rel="'+n+'"][href="'+f+'"]',typeof l=="string"&&(f+='[crossorigin="'+l+'"]'),_g.has(f)||(_g.add(f),n={rel:n,crossOrigin:l,href:i},o.querySelector(f)===null&&(i=o.createElement("link"),Bt(i,"link",n),zt(i),o.head.appendChild(i)))}}function bN(n){Da.D(n),Sg("dns-prefetch",n,null)}function _N(n,i){Da.C(n,i),Sg("preconnect",n,i)}function SN(n,i,l){Da.L(n,i,l);var o=Ir;if(o&&n&&i){var f='link[rel="preload"][as="'+Tn(i)+'"]';i==="image"&&l&&l.imageSrcSet?(f+='[imagesrcset="'+Tn(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(f+='[imagesizes="'+Tn(l.imageSizes)+'"]')):f+='[href="'+Tn(n)+'"]';var h=f;switch(i){case"style":h=Zr(n);break;case"script":h=Hr(n)}Cn.has(h)||(n=y({rel:"preload",href:i==="image"&&l&&l.imageSrcSet?void 0:n,as:i},l),Cn.set(h,n),o.querySelector(f)!==null||i==="style"&&o.querySelector(gu(h))||i==="script"&&o.querySelector(bu(h))||(i=o.createElement("link"),Bt(i,"link",n),zt(i),o.head.appendChild(i)))}}function kN(n,i){Da.m(n,i);var l=Ir;if(l&&n){var o=i&&typeof i.as=="string"?i.as:"script",f='link[rel="modulepreload"][as="'+Tn(o)+'"][href="'+Tn(n)+'"]',h=f;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":h=Hr(n)}if(!Cn.has(h)&&(n=y({rel:"modulepreload",href:n},i),Cn.set(h,n),l.querySelector(f)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(bu(h)))return}o=l.createElement("link"),Bt(o,"link",n),zt(o),l.head.appendChild(o)}}}function EN(n,i,l){Da.S(n,i,l);var o=Ir;if(o&&n){var f=dr(o).hoistableStyles,h=Zr(n);i=i||"default";var g=f.get(h);if(!g){var k={loading:0,preload:null};if(g=o.querySelector(gu(h)))k.loading=5;else{n=y({rel:"stylesheet",href:n,"data-precedence":i},l),(l=Cn.get(h))&&Od(n,l);var x=g=o.createElement("link");zt(x),Bt(x,"link",n),x._p=new Promise(function(Q,Y){x.onload=Q,x.onerror=Y}),x.addEventListener("load",function(){k.loading|=1}),x.addEventListener("error",function(){k.loading|=2}),k.loading|=4,cs(g,i,o)}g={type:"stylesheet",instance:g,count:1,state:k},f.set(h,g)}}}function NN(n,i){Da.X(n,i);var l=Ir;if(l&&n){var o=dr(l).hoistableScripts,f=Hr(n),h=o.get(f);h||(h=l.querySelector(bu(f)),h||(n=y({src:n,async:!0},i),(i=Cn.get(f))&&wd(n,i),h=l.createElement("script"),zt(h),Bt(h,"link",n),l.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},o.set(f,h))}}function TN(n,i){Da.M(n,i);var l=Ir;if(l&&n){var o=dr(l).hoistableScripts,f=Hr(n),h=o.get(f);h||(h=l.querySelector(bu(f)),h||(n=y({src:n,async:!0,type:"module"},i),(i=Cn.get(f))&&wd(n,i),h=l.createElement("script"),zt(h),Bt(h,"link",n),l.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},o.set(f,h))}}function kg(n,i,l,o){var f=(f=_e.current)?ss(f):null;if(!f)throw Error(r(446));switch(n){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(i=Zr(l.href),l=dr(f).hoistableStyles,o=l.get(i),o||(o={type:"style",instance:null,count:0,state:null},l.set(i,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){n=Zr(l.href);var h=dr(f).hoistableStyles,g=h.get(n);if(g||(f=f.ownerDocument||f,g={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},h.set(n,g),(h=f.querySelector(gu(n)))&&!h._p&&(g.instance=h,g.state.loading=5),Cn.has(n)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Cn.set(n,l),h||ON(f,n,l,g.state))),i&&o===null)throw Error(r(528,""));return g}if(i&&o!==null)throw Error(r(529,""));return null;case"script":return i=l.async,l=l.src,typeof l=="string"&&i&&typeof i!="function"&&typeof i!="symbol"?(i=Hr(l),l=dr(f).hoistableScripts,o=l.get(i),o||(o={type:"script",instance:null,count:0,state:null},l.set(i,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,n))}}function Zr(n){return'href="'+Tn(n)+'"'}function gu(n){return'link[rel="stylesheet"]['+n+"]"}function Eg(n){return y({},n,{"data-precedence":n.precedence,precedence:null})}function ON(n,i,l,o){n.querySelector('link[rel="preload"][as="style"]['+i+"]")?o.loading=1:(i=n.createElement("link"),o.preload=i,i.addEventListener("load",function(){return o.loading|=1}),i.addEventListener("error",function(){return o.loading|=2}),Bt(i,"link",l),zt(i),n.head.appendChild(i))}function Hr(n){return'[src="'+Tn(n)+'"]'}function bu(n){return"script[async]"+n}function Ng(n,i,l){if(i.count++,i.instance===null)switch(i.type){case"style":var o=n.querySelector('style[data-href~="'+Tn(l.href)+'"]');if(o)return i.instance=o,zt(o),o;var f=y({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return o=(n.ownerDocument||n).createElement("style"),zt(o),Bt(o,"style",f),cs(o,l.precedence,n),i.instance=o;case"stylesheet":f=Zr(l.href);var h=n.querySelector(gu(f));if(h)return i.state.loading|=4,i.instance=h,zt(h),h;o=Eg(l),(f=Cn.get(f))&&Od(o,f),h=(n.ownerDocument||n).createElement("link"),zt(h);var g=h;return g._p=new Promise(function(k,x){g.onload=k,g.onerror=x}),Bt(h,"link",o),i.state.loading|=4,cs(h,l.precedence,n),i.instance=h;case"script":return h=Hr(l.src),(f=n.querySelector(bu(h)))?(i.instance=f,zt(f),f):(o=l,(f=Cn.get(h))&&(o=y({},l),wd(o,f)),n=n.ownerDocument||n,f=n.createElement("script"),zt(f),Bt(f,"link",o),n.head.appendChild(f),i.instance=f);case"void":return null;default:throw Error(r(443,i.type))}else i.type==="stylesheet"&&(i.state.loading&4)===0&&(o=i.instance,i.state.loading|=4,cs(o,l.precedence,n));return i.instance}function cs(n,i,l){for(var o=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),f=o.length?o[o.length-1]:null,h=f,g=0;g<o.length;g++){var k=o[g];if(k.dataset.precedence===i)h=k;else if(h!==f)break}h?h.parentNode.insertBefore(n,h.nextSibling):(i=l.nodeType===9?l.head:l,i.insertBefore(n,i.firstChild))}function Od(n,i){n.crossOrigin==null&&(n.crossOrigin=i.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=i.referrerPolicy),n.title==null&&(n.title=i.title)}function wd(n,i){n.crossOrigin==null&&(n.crossOrigin=i.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=i.referrerPolicy),n.integrity==null&&(n.integrity=i.integrity)}var fs=null;function Tg(n,i,l){if(fs===null){var o=new Map,f=fs=new Map;f.set(l,o)}else f=fs,o=f.get(l),o||(o=new Map,f.set(l,o));if(o.has(n))return o;for(o.set(n,null),l=l.getElementsByTagName(n),f=0;f<l.length;f++){var h=l[f];if(!(h[Ml]||h[Ut]||n==="link"&&h.getAttribute("rel")==="stylesheet")&&h.namespaceURI!=="http://www.w3.org/2000/svg"){var g=h.getAttribute(i)||"";g=n+g;var k=o.get(g);k?k.push(h):o.set(g,[h])}}return o}function Og(n,i,l){n=n.ownerDocument||n,n.head.insertBefore(l,i==="title"?n.querySelector("head > title"):null)}function wN(n,i,l){if(l===1||i.itemProp!=null)return!1;switch(n){case"meta":case"title":return!0;case"style":if(typeof i.precedence!="string"||typeof i.href!="string"||i.href==="")break;return!0;case"link":if(typeof i.rel!="string"||typeof i.href!="string"||i.href===""||i.onLoad||i.onError)break;switch(i.rel){case"stylesheet":return n=i.disabled,typeof i.precedence=="string"&&n==null;default:return!0}case"script":if(i.async&&typeof i.async!="function"&&typeof i.async!="symbol"&&!i.onLoad&&!i.onError&&i.src&&typeof i.src=="string")return!0}return!1}function wg(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}function DN(n,i,l,o){if(l.type==="stylesheet"&&(typeof o.media!="string"||matchMedia(o.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var f=Zr(o.href),h=i.querySelector(gu(f));if(h){i=h._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(n.count++,n=ds.bind(n),i.then(n,n)),l.state.loading|=4,l.instance=h,zt(h);return}h=i.ownerDocument||i,o=Eg(o),(f=Cn.get(f))&&Od(o,f),h=h.createElement("link"),zt(h);var g=h;g._p=new Promise(function(k,x){g.onload=k,g.onerror=x}),Bt(h,"link",o),l.instance=h}n.stylesheets===null&&(n.stylesheets=new Map),n.stylesheets.set(l,i),(i=l.state.preload)&&(l.state.loading&3)===0&&(n.count++,l=ds.bind(n),i.addEventListener("load",l),i.addEventListener("error",l))}}var Dd=0;function xN(n,i){return n.stylesheets&&n.count===0&&ms(n,n.stylesheets),0<n.count||0<n.imgCount?function(l){var o=setTimeout(function(){if(n.stylesheets&&ms(n,n.stylesheets),n.unsuspend){var h=n.unsuspend;n.unsuspend=null,h()}},6e4+i);0<n.imgBytes&&Dd===0&&(Dd=62500*sN());var f=setTimeout(function(){if(n.waitingForImages=!1,n.count===0&&(n.stylesheets&&ms(n,n.stylesheets),n.unsuspend)){var h=n.unsuspend;n.unsuspend=null,h()}},(n.imgBytes>Dd?50:800)+i);return n.unsuspend=l,function(){n.unsuspend=null,clearTimeout(o),clearTimeout(f)}}:null}function ds(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ms(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var hs=null;function ms(n,i){n.stylesheets=null,n.unsuspend!==null&&(n.count++,hs=new Map,i.forEach(RN,n),hs=null,ds.call(n))}function RN(n,i){if(!(i.state.loading&4)){var l=hs.get(n);if(l)var o=l.get(null);else{l=new Map,hs.set(n,l);for(var f=n.querySelectorAll("link[data-precedence],style[data-precedence]"),h=0;h<f.length;h++){var g=f[h];(g.nodeName==="LINK"||g.getAttribute("media")!=="not all")&&(l.set(g.dataset.precedence,g),o=g)}o&&l.set(null,o)}f=i.instance,g=f.getAttribute("data-precedence"),h=l.get(g)||o,h===o&&l.set(null,f),l.set(g,f),this.count++,o=ds.bind(this),f.addEventListener("load",o),f.addEventListener("error",o),h?h.parentNode.insertBefore(f,h.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(f,n.firstChild)),i.state.loading|=4}}var _u={$$typeof:O,Provider:null,Consumer:null,_currentValue:ie,_currentValue2:ie,_threadCount:0};function AN(n,i,l,o,f,h,g,k,x){this.tag=1,this.containerInfo=n,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=kc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=kc(0),this.hiddenUpdates=kc(null),this.identifierPrefix=o,this.onUncaughtError=f,this.onCaughtError=h,this.onRecoverableError=g,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=x,this.incompleteTransitions=new Map}function Dg(n,i,l,o,f,h,g,k,x,Q,Y,K){return n=new AN(n,i,l,g,x,Q,Y,K,k),i=1,h===!0&&(i|=24),h=mn(3,null,null,i),n.current=h,h.stateNode=n,i=uf(),i.refCount++,n.pooledCache=i,i.refCount++,h.memoizedState={element:o,isDehydrated:l,cache:i},ff(h),n}function xg(n){return n?(n=kr,n):kr}function Rg(n,i,l,o,f,h){f=xg(f),o.context===null?o.context=f:o.pendingContext=f,o=$a(i),o.payload={element:l},h=h===void 0?null:h,h!==null&&(o.callback=h),l=Ga(n,o,i),l!==null&&(un(l,n,i),Kl(l,n,i))}function Ag(n,i){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var l=n.retryLane;n.retryLane=l!==0&&l<i?l:i}}function xd(n,i){Ag(n,i),(n=n.alternate)&&Ag(n,i)}function zg(n){if(n.tag===13||n.tag===31){var i=ji(n,67108864);i!==null&&un(i,n,67108864),xd(n,67108864)}}function Cg(n){if(n.tag===13||n.tag===31){var i=bn();i=Ec(i);var l=ji(n,i);l!==null&&un(l,n,i),xd(n,i)}}var ps=!0;function zN(n,i,l,o){var f=U.T;U.T=null;var h=P.p;try{P.p=2,Rd(n,i,l,o)}finally{P.p=h,U.T=f}}function CN(n,i,l,o){var f=U.T;U.T=null;var h=P.p;try{P.p=8,Rd(n,i,l,o)}finally{P.p=h,U.T=f}}function Rd(n,i,l,o){if(ps){var f=Ad(o);if(f===null)vd(n,i,o,vs,l),Mg(n,o);else if(MN(f,n,i,l,o))o.stopPropagation();else if(Mg(n,o),i&4&&-1<jN.indexOf(n)){for(;f!==null;){var h=fr(f);if(h!==null)switch(h.tag){case 3:if(h=h.stateNode,h.current.memoizedState.isDehydrated){var g=xi(h.pendingLanes);if(g!==0){var k=h;for(k.pendingLanes|=2,k.entangledLanes|=2;g;){var x=1<<31-Vt(g);k.entanglements[1]|=x,g&=~x}na(h),(He&6)===0&&(Ko=L()+500,mu(0))}}break;case 31:case 13:k=ji(h,2),k!==null&&un(k,h,2),es(),xd(h,2)}if(h=Ad(o),h===null&&vd(n,i,o,vs,l),h===f)break;f=h}f!==null&&o.stopPropagation()}else vd(n,i,o,null,l)}}function Ad(n){return n=zc(n),zd(n)}var vs=null;function zd(n){if(vs=null,n=cr(n),n!==null){var i=s(n);if(i===null)n=null;else{var l=i.tag;if(l===13){if(n=c(i),n!==null)return n;n=null}else if(l===31){if(n=d(i),n!==null)return n;n=null}else if(l===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;n=null}else i!==n&&(n=null)}}return vs=n,null}function jg(n){switch(n){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(I()){case ue:return 2;case re:return 8;case te:case he:return 32;case we:return 268435456;default:return 32}default:return 32}}var Cd=!1,ii=null,ri=null,li=null,Su=new Map,ku=new Map,ui=[],jN="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Mg(n,i){switch(n){case"focusin":case"focusout":ii=null;break;case"dragenter":case"dragleave":ri=null;break;case"mouseover":case"mouseout":li=null;break;case"pointerover":case"pointerout":Su.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":ku.delete(i.pointerId)}}function Eu(n,i,l,o,f,h){return n===null||n.nativeEvent!==h?(n={blockedOn:i,domEventName:l,eventSystemFlags:o,nativeEvent:h,targetContainers:[f]},i!==null&&(i=fr(i),i!==null&&zg(i)),n):(n.eventSystemFlags|=o,i=n.targetContainers,f!==null&&i.indexOf(f)===-1&&i.push(f),n)}function MN(n,i,l,o,f){switch(i){case"focusin":return ii=Eu(ii,n,i,l,o,f),!0;case"dragenter":return ri=Eu(ri,n,i,l,o,f),!0;case"mouseover":return li=Eu(li,n,i,l,o,f),!0;case"pointerover":var h=f.pointerId;return Su.set(h,Eu(Su.get(h)||null,n,i,l,o,f)),!0;case"gotpointercapture":return h=f.pointerId,ku.set(h,Eu(ku.get(h)||null,n,i,l,o,f)),!0}return!1}function Fg(n){var i=cr(n.target);if(i!==null){var l=s(i);if(l!==null){if(i=l.tag,i===13){if(i=c(l),i!==null){n.blockedOn=i,Xm(n.priority,function(){Cg(l)});return}}else if(i===31){if(i=d(l),i!==null){n.blockedOn=i,Xm(n.priority,function(){Cg(l)});return}}else if(i===3&&l.stateNode.current.memoizedState.isDehydrated){n.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}n.blockedOn=null}function ys(n){if(n.blockedOn!==null)return!1;for(var i=n.targetContainers;0<i.length;){var l=Ad(n.nativeEvent);if(l===null){l=n.nativeEvent;var o=new l.constructor(l.type,l);Ac=o,l.target.dispatchEvent(o),Ac=null}else return i=fr(l),i!==null&&zg(i),n.blockedOn=l,!1;i.shift()}return!0}function Vg(n,i,l){ys(n)&&l.delete(i)}function FN(){Cd=!1,ii!==null&&ys(ii)&&(ii=null),ri!==null&&ys(ri)&&(ri=null),li!==null&&ys(li)&&(li=null),Su.forEach(Vg),ku.forEach(Vg)}function gs(n,i){n.blockedOn===i&&(n.blockedOn=null,Cd||(Cd=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,FN)))}var bs=null;function Ug(n){bs!==n&&(bs=n,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){bs===n&&(bs=null);for(var i=0;i<n.length;i+=3){var l=n[i],o=n[i+1],f=n[i+2];if(typeof o!="function"){if(zd(o||l)===null)continue;break}var h=fr(l);h!==null&&(n.splice(i,3),i-=3,Af(h,{pending:!0,data:f,method:l.method,action:o},o,f))}}))}function $r(n){function i(x){return gs(x,n)}ii!==null&&gs(ii,n),ri!==null&&gs(ri,n),li!==null&&gs(li,n),Su.forEach(i),ku.forEach(i);for(var l=0;l<ui.length;l++){var o=ui[l];o.blockedOn===n&&(o.blockedOn=null)}for(;0<ui.length&&(l=ui[0],l.blockedOn===null);)Fg(l),l.blockedOn===null&&ui.shift();if(l=(n.ownerDocument||n).$$reactFormReplay,l!=null)for(o=0;o<l.length;o+=3){var f=l[o],h=l[o+1],g=f[en]||null;if(typeof h=="function")g||Ug(l);else if(g){var k=null;if(h&&h.hasAttribute("formAction")){if(f=h,g=h[en]||null)k=g.formAction;else if(zd(f)!==null)continue}else k=g.action;typeof k=="function"?l[o+1]=k:(l.splice(o,3),o-=3),Ug(l)}}}function Lg(){function n(h){h.canIntercept&&h.info==="react-transition"&&h.intercept({handler:function(){return new Promise(function(g){return f=g})},focusReset:"manual",scroll:"manual"})}function i(){f!==null&&(f(),f=null),o||setTimeout(l,20)}function l(){if(!o&&!navigation.transition){var h=navigation.currentEntry;h&&h.url!=null&&navigation.navigate(h.url,{state:h.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var o=!1,f=null;return navigation.addEventListener("navigate",n),navigation.addEventListener("navigatesuccess",i),navigation.addEventListener("navigateerror",i),setTimeout(l,100),function(){o=!0,navigation.removeEventListener("navigate",n),navigation.removeEventListener("navigatesuccess",i),navigation.removeEventListener("navigateerror",i),f!==null&&(f(),f=null)}}}function jd(n){this._internalRoot=n}_s.prototype.render=jd.prototype.render=function(n){var i=this._internalRoot;if(i===null)throw Error(r(409));var l=i.current,o=bn();Rg(l,o,n,i,null,null)},_s.prototype.unmount=jd.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var i=n.containerInfo;Rg(n.current,2,null,n,null,null),es(),i[sr]=null}};function _s(n){this._internalRoot=n}_s.prototype.unstable_scheduleHydration=function(n){if(n){var i=Pm();n={blockedOn:null,target:n,priority:i};for(var l=0;l<ui.length&&i!==0&&i<ui[l].priority;l++);ui.splice(l,0,n),l===0&&Fg(n)}};var qg=t.version;if(qg!=="19.2.5")throw Error(r(527,qg,"19.2.5"));P.findDOMNode=function(n){var i=n._reactInternals;if(i===void 0)throw typeof n.render=="function"?Error(r(188)):(n=Object.keys(n).join(","),Error(r(268,n)));return n=m(i),n=n!==null?v(n):null,n=n===null?null:n.stateNode,n};var VN={bundleType:0,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:U,reconcilerVersion:"19.2.5"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ss=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ss.isDisabled&&Ss.supportsFiber)try{Ht=Ss.inject(VN),Xe=Ss}catch{}}return xu.createRoot=function(n,i){if(!u(n))throw Error(r(299));var l=!1,o="",f=Gv,h=Yv,g=Pv;return i!=null&&(i.unstable_strictMode===!0&&(l=!0),i.identifierPrefix!==void 0&&(o=i.identifierPrefix),i.onUncaughtError!==void 0&&(f=i.onUncaughtError),i.onCaughtError!==void 0&&(h=i.onCaughtError),i.onRecoverableError!==void 0&&(g=i.onRecoverableError)),i=Dg(n,1,!1,null,null,l,o,null,f,h,g,Lg),n[sr]=i.current,pd(n),new jd(i)},xu.hydrateRoot=function(n,i,l){if(!u(n))throw Error(r(299));var o=!1,f="",h=Gv,g=Yv,k=Pv,x=null;return l!=null&&(l.unstable_strictMode===!0&&(o=!0),l.identifierPrefix!==void 0&&(f=l.identifierPrefix),l.onUncaughtError!==void 0&&(h=l.onUncaughtError),l.onCaughtError!==void 0&&(g=l.onCaughtError),l.onRecoverableError!==void 0&&(k=l.onRecoverableError),l.formState!==void 0&&(x=l.formState)),i=Dg(n,1,!0,i,l??null,o,f,x,h,g,k,Lg),i.context=xg(null),l=i.current,o=bn(),o=Ec(o),f=$a(o),f.callback=null,Ga(l,f,o),l=o,i.current.lanes=l,jl(i,l),na(i),n[sr]=i.current,pd(n),new _s(i)},xu.version="19.2.5",xu}var Kb;function v1(){if(Kb)return th.exports;Kb=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),th.exports=p1(),th.exports}var y1=v1();let g1={data:""},b1=e=>{if(typeof window=="object"){let t=(e?e.querySelector("#_goober"):window._goober)||Object.assign(document.createElement("style"),{innerHTML:" ",id:"_goober"});return t.nonce=window.__nonce__,t.parentNode||(e||document.head).appendChild(t),t.firstChild}return e||g1},_1=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,S1=/\/\*[^]*?\*\/| +/g,Wb=/\n+/g,mi=(e,t)=>{let a="",r="",u="";for(let s in e){let c=e[s];s[0]=="@"?s[1]=="i"?a=s+" "+c+";":r+=s[1]=="f"?mi(c,s):s+"{"+mi(c,s[1]=="k"?"":t)+"}":typeof c=="object"?r+=mi(c,t?t.replace(/([^,])+/g,d=>s.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,p=>/&/.test(p)?p.replace(/&/g,d):d?d+" "+p:p)):s):c!=null&&(s=/^--/.test(s)?s:s.replace(/[A-Z]/g,"-$&").toLowerCase(),u+=mi.p?mi.p(s,c):s+":"+c+";")}return a+(t&&u?t+"{"+u+"}":u)+r},xa={},cS=e=>{if(typeof e=="object"){let t="";for(let a in e)t+=a+cS(e[a]);return t}return e},k1=(e,t,a,r,u)=>{let s=cS(e),c=xa[s]||(xa[s]=(p=>{let m=0,v=11;for(;m<p.length;)v=101*v+p.charCodeAt(m++)>>>0;return"go"+v})(s));if(!xa[c]){let p=s!==e?e:(m=>{let v,y,b=[{}];for(;v=_1.exec(m.replace(S1,""));)v[4]?b.shift():v[3]?(y=v[3].replace(Wb," ").trim(),b.unshift(b[0][y]=b[0][y]||{})):b[0][v[1]]=v[2].replace(Wb," ").trim();return b[0]})(e);xa[c]=mi(u?{["@keyframes "+c]:p}:p,a?"":"."+c)}let d=a&&xa.g?xa.g:null;return a&&(xa.g=xa[c]),((p,m,v,y)=>{y?m.data=m.data.replace(y,p):m.data.indexOf(p)===-1&&(m.data=v?p+m.data:m.data+p)})(xa[c],t,r,d),c},E1=(e,t,a)=>e.reduce((r,u,s)=>{let c=t[s];if(c&&c.call){let d=c(a),p=d&&d.props&&d.props.className||/^go/.test(d)&&d;c=p?"."+p:d&&typeof d=="object"?d.props?"":mi(d,""):d===!1?"":d}return r+u+(c??"")},"");function cc(e){let t=this||{},a=e.call?e(t.p):e;return k1(a.unshift?a.raw?E1(a,[].slice.call(arguments,1),t.p):a.reduce((r,u)=>Object.assign(r,u&&u.call?u(t.p):u),{}):a,b1(t.target),t.g,t.o,t.k)}let fS,qh,Qh;cc.bind({g:1});let Ma=cc.bind({k:1});function N1(e,t,a,r){mi.p=t,fS=e,qh=a,Qh=r}function Ei(e,t){let a=this||{};return function(){let r=arguments;function u(s,c){let d=Object.assign({},s),p=d.className||u.className;a.p=Object.assign({theme:qh&&qh()},d),a.o=/ *go\d+/.test(p),d.className=cc.apply(a,r)+(p?" "+p:"");let m=e;return e[0]&&(m=d.as||e,delete d.as),Qh&&m[0]&&Qh(d),fS(m,d)}return u}}var T1=e=>typeof e=="function",Hs=(e,t)=>T1(e)?e(t):e,O1=(()=>{let e=0;return()=>(++e).toString()})(),dS=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),w1=20,Em="default",hS=(e,t)=>{let{toastLimit:a}=e.settings;switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,a)};case 1:return{...e,toasts:e.toasts.map(c=>c.id===t.toast.id?{...c,...t.toast}:c)};case 2:let{toast:r}=t;return hS(e,{type:e.toasts.find(c=>c.id===r.id)?1:0,toast:r});case 3:let{toastId:u}=t;return{...e,toasts:e.toasts.map(c=>c.id===u||u===void 0?{...c,dismissed:!0,visible:!1}:c)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(c=>c.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let s=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(c=>({...c,pauseDuration:c.pauseDuration+s}))}}},Vs=[],mS={toasts:[],pausedAt:void 0,settings:{toastLimit:w1}},ra={},pS=(e,t=Em)=>{ra[t]=hS(ra[t]||mS,e),Vs.forEach(([a,r])=>{a===t&&r(ra[t])})},vS=e=>Object.keys(ra).forEach(t=>pS(e,t)),D1=e=>Object.keys(ra).find(t=>ra[t].toasts.some(a=>a.id===e)),fc=(e=Em)=>t=>{pS(t,e)},x1={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},R1=(e={},t=Em)=>{let[a,r]=F.useState(ra[t]||mS),u=F.useRef(ra[t]);F.useEffect(()=>(u.current!==ra[t]&&r(ra[t]),Vs.push([t,r]),()=>{let c=Vs.findIndex(([d])=>d===t);c>-1&&Vs.splice(c,1)}),[t]);let s=a.toasts.map(c=>{var d,p,m;return{...e,...e[c.type],...c,removeDelay:c.removeDelay||((d=e[c.type])==null?void 0:d.removeDelay)||(e==null?void 0:e.removeDelay),duration:c.duration||((p=e[c.type])==null?void 0:p.duration)||(e==null?void 0:e.duration)||x1[c.type],style:{...e.style,...(m=e[c.type])==null?void 0:m.style,...c.style}}});return{...a,toasts:s}},A1=(e,t="blank",a)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...a,id:(a==null?void 0:a.id)||O1()}),Wu=e=>(t,a)=>{let r=A1(t,e,a);return fc(r.toasterId||D1(r.id))({type:2,toast:r}),r.id},je=(e,t)=>Wu("blank")(e,t);je.error=Wu("error");je.success=Wu("success");je.loading=Wu("loading");je.custom=Wu("custom");je.dismiss=(e,t)=>{let a={type:3,toastId:e};t?fc(t)(a):vS(a)};je.dismissAll=e=>je.dismiss(void 0,e);je.remove=(e,t)=>{let a={type:4,toastId:e};t?fc(t)(a):vS(a)};je.removeAll=e=>je.remove(void 0,e);je.promise=(e,t,a)=>{let r=je.loading(t.loading,{...a,...a==null?void 0:a.loading});return typeof e=="function"&&(e=e()),e.then(u=>{let s=t.success?Hs(t.success,u):void 0;return s?je.success(s,{id:r,...a,...a==null?void 0:a.success}):je.dismiss(r),u}).catch(u=>{let s=t.error?Hs(t.error,u):void 0;s?je.error(s,{id:r,...a,...a==null?void 0:a.error}):je.dismiss(r)}),e};var z1=1e3,C1=(e,t="default")=>{let{toasts:a,pausedAt:r}=R1(e,t),u=F.useRef(new Map).current,s=F.useCallback((y,b=z1)=>{if(u.has(y))return;let _=setTimeout(()=>{u.delete(y),c({type:4,toastId:y})},b);u.set(y,_)},[]);F.useEffect(()=>{if(r)return;let y=Date.now(),b=a.map(_=>{if(_.duration===1/0)return;let E=(_.duration||0)+_.pauseDuration-(y-_.createdAt);if(E<0){_.visible&&je.dismiss(_.id);return}return setTimeout(()=>je.dismiss(_.id,t),E)});return()=>{b.forEach(_=>_&&clearTimeout(_))}},[a,r,t]);let c=F.useCallback(fc(t),[t]),d=F.useCallback(()=>{c({type:5,time:Date.now()})},[c]),p=F.useCallback((y,b)=>{c({type:1,toast:{id:y,height:b}})},[c]),m=F.useCallback(()=>{r&&c({type:6,time:Date.now()})},[r,c]),v=F.useCallback((y,b)=>{let{reverseOrder:_=!1,gutter:E=8,defaultPosition:T}=b||{},D=a.filter(O=>(O.position||T)===(y.position||T)&&O.height),N=D.findIndex(O=>O.id===y.id),w=D.filter((O,M)=>M<N&&O.visible).length;return D.filter(O=>O.visible).slice(..._?[w+1]:[0,w]).reduce((O,M)=>O+(M.height||0)+E,0)},[a]);return F.useEffect(()=>{a.forEach(y=>{if(y.dismissed)s(y.id,y.removeDelay);else{let b=u.get(y.id);b&&(clearTimeout(b),u.delete(y.id))}})},[a,s]),{toasts:a,handlers:{updateHeight:p,startPause:d,endPause:m,calculateOffset:v}}},j1=Ma`
91
91
  from {
92
92
  transform: scale(0) rotate(45deg);
93
93
  opacity: 0;
@@ -95,7 +95,7 @@ from {
95
95
  to {
96
96
  transform: scale(1) rotate(45deg);
97
97
  opacity: 1;
98
- }`,j1=Ma`
98
+ }`,M1=Ma`
99
99
  from {
100
100
  transform: scale(0);
101
101
  opacity: 0;
@@ -103,7 +103,7 @@ from {
103
103
  to {
104
104
  transform: scale(1);
105
105
  opacity: 1;
106
- }`,M1=Ma`
106
+ }`,F1=Ma`
107
107
  from {
108
108
  transform: scale(0) rotate(90deg);
109
109
  opacity: 0;
@@ -111,7 +111,7 @@ from {
111
111
  to {
112
112
  transform: scale(1) rotate(90deg);
113
113
  opacity: 1;
114
- }`,F1=Ei("div")`
114
+ }`,V1=Ei("div")`
115
115
  width: 20px;
116
116
  opacity: 0;
117
117
  height: 20px;
@@ -120,14 +120,14 @@ to {
120
120
  position: relative;
121
121
  transform: rotate(45deg);
122
122
 
123
- animation: ${C1} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
123
+ animation: ${j1} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
124
124
  forwards;
125
125
  animation-delay: 100ms;
126
126
 
127
127
  &:after,
128
128
  &:before {
129
129
  content: '';
130
- animation: ${j1} 0.15s ease-out forwards;
130
+ animation: ${M1} 0.15s ease-out forwards;
131
131
  animation-delay: 150ms;
132
132
  position: absolute;
133
133
  border-radius: 3px;
@@ -140,18 +140,18 @@ to {
140
140
  }
141
141
 
142
142
  &:before {
143
- animation: ${M1} 0.15s ease-out forwards;
143
+ animation: ${F1} 0.15s ease-out forwards;
144
144
  animation-delay: 180ms;
145
145
  transform: rotate(90deg);
146
146
  }
147
- `,V1=Ma`
147
+ `,U1=Ma`
148
148
  from {
149
149
  transform: rotate(0deg);
150
150
  }
151
151
  to {
152
152
  transform: rotate(360deg);
153
153
  }
154
- `,U1=Ei("div")`
154
+ `,L1=Ei("div")`
155
155
  width: 12px;
156
156
  height: 12px;
157
157
  box-sizing: border-box;
@@ -159,8 +159,8 @@ to {
159
159
  border-radius: 100%;
160
160
  border-color: ${e=>e.secondary||"#e0e0e0"};
161
161
  border-right-color: ${e=>e.primary||"#616161"};
162
- animation: ${V1} 1s linear infinite;
163
- `,L1=Ma`
162
+ animation: ${U1} 1s linear infinite;
163
+ `,q1=Ma`
164
164
  from {
165
165
  transform: scale(0) rotate(45deg);
166
166
  opacity: 0;
@@ -168,7 +168,7 @@ from {
168
168
  to {
169
169
  transform: scale(1) rotate(45deg);
170
170
  opacity: 1;
171
- }`,q1=Ma`
171
+ }`,Q1=Ma`
172
172
  0% {
173
173
  height: 0;
174
174
  width: 0;
@@ -182,7 +182,7 @@ to {
182
182
  100% {
183
183
  opacity: 1;
184
184
  height: 10px;
185
- }`,Q1=Ei("div")`
185
+ }`,B1=Ei("div")`
186
186
  width: 20px;
187
187
  opacity: 0;
188
188
  height: 20px;
@@ -191,13 +191,13 @@ to {
191
191
  position: relative;
192
192
  transform: rotate(45deg);
193
193
 
194
- animation: ${L1} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
194
+ animation: ${q1} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
195
195
  forwards;
196
196
  animation-delay: 100ms;
197
197
  &:after {
198
198
  content: '';
199
199
  box-sizing: border-box;
200
- animation: ${q1} 0.2s ease-out forwards;
200
+ animation: ${Q1} 0.2s ease-out forwards;
201
201
  opacity: 0;
202
202
  animation-delay: 200ms;
203
203
  position: absolute;
@@ -209,16 +209,16 @@ to {
209
209
  height: 10px;
210
210
  width: 6px;
211
211
  }
212
- `,B1=Ei("div")`
213
- position: absolute;
214
212
  `,I1=Ei("div")`
213
+ position: absolute;
214
+ `,Z1=Ei("div")`
215
215
  position: relative;
216
216
  display: flex;
217
217
  justify-content: center;
218
218
  align-items: center;
219
219
  min-width: 20px;
220
220
  min-height: 20px;
221
- `,Z1=Ma`
221
+ `,H1=Ma`
222
222
  from {
223
223
  transform: scale(0.6);
224
224
  opacity: 0.4;
@@ -226,20 +226,20 @@ from {
226
226
  to {
227
227
  transform: scale(1);
228
228
  opacity: 1;
229
- }`,H1=Ei("div")`
229
+ }`,$1=Ei("div")`
230
230
  position: relative;
231
231
  transform: scale(0.6);
232
232
  opacity: 0.4;
233
233
  min-width: 20px;
234
- animation: ${Z1} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
234
+ animation: ${H1} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
235
235
  forwards;
236
- `,$1=({toast:e})=>{let{icon:t,type:a,iconTheme:r}=e;return t!==void 0?typeof t=="string"?F.createElement(H1,null,t):t:a==="blank"?null:F.createElement(I1,null,F.createElement(U1,{...r}),a!=="loading"&&F.createElement(B1,null,a==="error"?F.createElement(F1,{...r}):F.createElement(Q1,{...r})))},G1=e=>`
236
+ `,G1=({toast:e})=>{let{icon:t,type:a,iconTheme:r}=e;return t!==void 0?typeof t=="string"?F.createElement($1,null,t):t:a==="blank"?null:F.createElement(Z1,null,F.createElement(L1,{...r}),a!=="loading"&&F.createElement(I1,null,a==="error"?F.createElement(V1,{...r}):F.createElement(B1,{...r})))},Y1=e=>`
237
237
  0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;}
238
238
  100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
239
- `,Y1=e=>`
239
+ `,P1=e=>`
240
240
  0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
241
241
  100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;}
242
- `,P1="0%{opacity:0;} 100%{opacity:1;}",X1="0%{opacity:1;} 100%{opacity:0;}",J1=Ei("div")`
242
+ `,X1="0%{opacity:0;} 100%{opacity:1;}",J1="0%{opacity:1;} 100%{opacity:0;}",K1=Ei("div")`
243
243
  display: flex;
244
244
  align-items: center;
245
245
  background: #fff;
@@ -251,19 +251,19 @@ to {
251
251
  pointer-events: auto;
252
252
  padding: 8px 10px;
253
253
  border-radius: 8px;
254
- `,K1=Ei("div")`
254
+ `,W1=Ei("div")`
255
255
  display: flex;
256
256
  justify-content: center;
257
257
  margin: 4px 10px;
258
258
  color: inherit;
259
259
  flex: 1 1 auto;
260
260
  white-space: pre-line;
261
- `,W1=(e,t)=>{let a=e.includes("top")?1:-1,[r,u]=fS()?[P1,X1]:[G1(a),Y1(a)];return{animation:t?`${Ma(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${Ma(u)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},eD=F.memo(({toast:e,position:t,style:a,children:r})=>{let u=e.height?W1(e.position||t||"top-center",e.visible):{opacity:0},s=F.createElement($1,{toast:e}),c=F.createElement(K1,{...e.ariaProps},Hs(e.message,e));return F.createElement(J1,{className:e.className,style:{...u,...a,...e.style}},typeof r=="function"?r({icon:s,message:c}):F.createElement(F.Fragment,null,s,c))});E1(F.createElement);var tD=({id:e,className:t,style:a,onHeightUpdate:r,children:u})=>{let s=F.useCallback(c=>{if(c){let d=()=>{let p=c.getBoundingClientRect().height;r(e,p)};d(),new MutationObserver(d).observe(c,{subtree:!0,childList:!0,characterData:!0})}},[e,r]);return F.createElement("div",{ref:s,className:t,style:a},u)},nD=(e,t)=>{let a=e.includes("top"),r=a?{top:0}:{bottom:0},u=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:fS()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(a?1:-1)}px)`,...r,...u}},aD=cc`
261
+ `,eD=(e,t)=>{let a=e.includes("top")?1:-1,[r,u]=dS()?[X1,J1]:[Y1(a),P1(a)];return{animation:t?`${Ma(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${Ma(u)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},tD=F.memo(({toast:e,position:t,style:a,children:r})=>{let u=e.height?eD(e.position||t||"top-center",e.visible):{opacity:0},s=F.createElement(G1,{toast:e}),c=F.createElement(W1,{...e.ariaProps},Hs(e.message,e));return F.createElement(K1,{className:e.className,style:{...u,...a,...e.style}},typeof r=="function"?r({icon:s,message:c}):F.createElement(F.Fragment,null,s,c))});N1(F.createElement);var nD=({id:e,className:t,style:a,onHeightUpdate:r,children:u})=>{let s=F.useCallback(c=>{if(c){let d=()=>{let p=c.getBoundingClientRect().height;r(e,p)};d(),new MutationObserver(d).observe(c,{subtree:!0,childList:!0,characterData:!0})}},[e,r]);return F.createElement("div",{ref:s,className:t,style:a},u)},aD=(e,t)=>{let a=e.includes("top"),r=a?{top:0}:{bottom:0},u=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:dS()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(a?1:-1)}px)`,...r,...u}},iD=cc`
262
262
  z-index: 9999;
263
263
  > * {
264
264
  pointer-events: auto;
265
265
  }
266
- `,Ts=16,iD=({reverseOrder:e,position:t="top-center",toastOptions:a,gutter:r,children:u,toasterId:s,containerStyle:c,containerClassName:d})=>{let{toasts:p,handlers:m}=z1(a,s);return F.createElement("div",{"data-rht-toaster":s||"",style:{position:"fixed",zIndex:9999,top:Ts,left:Ts,right:Ts,bottom:Ts,pointerEvents:"none",...c},className:d,onMouseEnter:m.startPause,onMouseLeave:m.endPause},p.map(v=>{let y=v.position||t,b=m.calculateOffset(v,{reverseOrder:e,gutter:r,defaultPosition:t}),_=nD(y,b);return F.createElement(tD,{id:v.id,key:v.id,onHeightUpdate:m.updateHeight,className:v.visible?aD:"",style:_},v.type==="custom"?Hs(v.message,v):u?u(v):F.createElement(eD,{toast:v,position:y}))}))};/**
266
+ `,Ts=16,rD=({reverseOrder:e,position:t="top-center",toastOptions:a,gutter:r,children:u,toasterId:s,containerStyle:c,containerClassName:d})=>{let{toasts:p,handlers:m}=C1(a,s);return F.createElement("div",{"data-rht-toaster":s||"",style:{position:"fixed",zIndex:9999,top:Ts,left:Ts,right:Ts,bottom:Ts,pointerEvents:"none",...c},className:d,onMouseEnter:m.startPause,onMouseLeave:m.endPause},p.map(v=>{let y=v.position||t,b=m.calculateOffset(v,{reverseOrder:e,gutter:r,defaultPosition:t}),_=aD(y,b);return F.createElement(nD,{id:v.id,key:v.id,onHeightUpdate:m.updateHeight,className:v.visible?iD:"",style:_},v.type==="custom"?Hs(v.message,v):u?u(v):F.createElement(tD,{toast:v,position:y}))}))};/**
267
267
  * react-router v7.14.0
268
268
  *
269
269
  * Copyright (c) Remix Software Inc.
@@ -272,11 +272,11 @@ to {
272
272
  * LICENSE.md file in the root directory of this source tree.
273
273
  *
274
274
  * @license MIT
275
- */var e0="popstate";function t0(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function rD(e={}){function t(r,u){var m;let s=(m=u.state)==null?void 0:m.masked,{pathname:c,search:d,hash:p}=s||r.location;return Bh("",{pathname:c,search:d,hash:p},u.state&&u.state.usr||null,u.state&&u.state.key||"default",s?{pathname:r.location.pathname,search:r.location.search,hash:r.location.hash}:void 0)}function a(r,u){return typeof u=="string"?u:Xu(u)}return uD(t,a,null,e)}function ot(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Pn(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function lD(){return Math.random().toString(36).substring(2,10)}function n0(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.unstable_mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function Bh(e,t,a=null,r,u){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?kl(t):t,state:a,key:t&&t.key||r||lD(),unstable_mask:u}}function Xu({pathname:e="/",search:t="",hash:a=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),a&&a!=="#"&&(e+=a.charAt(0)==="#"?a:"#"+a),e}function kl(e){let t={};if(e){let a=e.indexOf("#");a>=0&&(t.hash=e.substring(a),e=e.substring(0,a));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function uD(e,t,a,r={}){let{window:u=document.defaultView,v5Compat:s=!1}=r,c=u.history,d="POP",p=null,m=v();m==null&&(m=0,c.replaceState({...c.state,idx:m},""));function v(){return(c.state||{idx:null}).idx}function y(){d="POP";let D=v(),N=D==null?null:D-m;m=D,p&&p({action:d,location:T.location,delta:N})}function b(D,N){d="PUSH";let w=t0(D)?D:Bh(T.location,D,N);m=v()+1;let O=n0(w,m),M=T.createHref(w.unstable_mask||w);try{c.pushState(O,"",M)}catch(z){if(z instanceof DOMException&&z.name==="DataCloneError")throw z;u.location.assign(M)}s&&p&&p({action:d,location:T.location,delta:1})}function _(D,N){d="REPLACE";let w=t0(D)?D:Bh(T.location,D,N);m=v();let O=n0(w,m),M=T.createHref(w.unstable_mask||w);c.replaceState(O,"",M),s&&p&&p({action:d,location:T.location,delta:0})}function E(D){return oD(D)}let T={get action(){return d},get location(){return e(u,c)},listen(D){if(p)throw new Error("A history only accepts one active listener");return u.addEventListener(e0,y),p=D,()=>{u.removeEventListener(e0,y),p=null}},createHref(D){return t(u,D)},createURL:E,encodeLocation(D){let N=E(D);return{pathname:N.pathname,search:N.search,hash:N.hash}},push:b,replace:_,go(D){return c.go(D)}};return T}function oD(e,t=!1){let a="http://localhost";typeof window<"u"&&(a=window.location.origin!=="null"?window.location.origin:window.location.href),ot(a,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:Xu(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=a+r),new URL(r,a)}function vS(e,t,a="/"){return sD(e,t,a,!1)}function sD(e,t,a,r){let u=typeof t=="string"?kl(t):t,s=Fa(u.pathname||"/",a);if(s==null)return null;let c=yS(e);cD(c);let d=null;for(let p=0;d==null&&p<c.length;++p){let m=SD(s);d=bD(c[p],m,r)}return d}function yS(e,t=[],a=[],r="",u=!1){let s=(c,d,p=u,m)=>{let v={relativePath:m===void 0?c.path||"":m,caseSensitive:c.caseSensitive===!0,childrenIndex:d,route:c};if(v.relativePath.startsWith("/")){if(!v.relativePath.startsWith(r)&&p)return;ot(v.relativePath.startsWith(r),`Absolute route path "${v.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),v.relativePath=v.relativePath.slice(r.length)}let y=la([r,v.relativePath]),b=a.concat(v);c.children&&c.children.length>0&&(ot(c.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${y}".`),yS(c.children,t,b,y,p)),!(c.path==null&&!c.index)&&t.push({path:y,score:yD(y,c.index),routesMeta:b})};return e.forEach((c,d)=>{var p;if(c.path===""||!((p=c.path)!=null&&p.includes("?")))s(c,d);else for(let m of gS(c.path))s(c,d,!0,m)}),t}function gS(e){let t=e.split("/");if(t.length===0)return[];let[a,...r]=t,u=a.endsWith("?"),s=a.replace(/\?$/,"");if(r.length===0)return u?[s,""]:[s];let c=gS(r.join("/")),d=[];return d.push(...c.map(p=>p===""?s:[s,p].join("/"))),u&&d.push(...c),d.map(p=>e.startsWith("/")&&p===""?"/":p)}function cD(e){e.sort((t,a)=>t.score!==a.score?a.score-t.score:gD(t.routesMeta.map(r=>r.childrenIndex),a.routesMeta.map(r=>r.childrenIndex)))}var fD=/^:[\w-]+$/,dD=3,hD=2,mD=1,pD=10,vD=-2,a0=e=>e==="*";function yD(e,t){let a=e.split("/"),r=a.length;return a.some(a0)&&(r+=vD),t&&(r+=hD),a.filter(u=>!a0(u)).reduce((u,s)=>u+(fD.test(s)?dD:s===""?mD:pD),r)}function gD(e,t){return e.length===t.length&&e.slice(0,-1).every((r,u)=>r===t[u])?e[e.length-1]-t[t.length-1]:0}function bD(e,t,a=!1){let{routesMeta:r}=e,u={},s="/",c=[];for(let d=0;d<r.length;++d){let p=r[d],m=d===r.length-1,v=s==="/"?t:t.slice(s.length)||"/",y=$s({path:p.relativePath,caseSensitive:p.caseSensitive,end:m},v),b=p.route;if(!y&&m&&a&&!r[r.length-1].route.index&&(y=$s({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},v)),!y)return null;Object.assign(u,y.params),c.push({params:u,pathname:la([s,y.pathname]),pathnameBase:TD(la([s,y.pathnameBase])),route:b}),y.pathnameBase!=="/"&&(s=la([s,y.pathnameBase]))}return c}function $s(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[a,r]=_D(e.path,e.caseSensitive,e.end),u=t.match(a);if(!u)return null;let s=u[0],c=s.replace(/(.)\/+$/,"$1"),d=u.slice(1);return{params:r.reduce((m,{paramName:v,isOptional:y},b)=>{if(v==="*"){let E=d[b]||"";c=s.slice(0,s.length-E.length).replace(/(.)\/+$/,"$1")}const _=d[b];return y&&!_?m[v]=void 0:m[v]=(_||"").replace(/%2F/g,"/"),m},{}),pathname:s,pathnameBase:c,pattern:e}}function _D(e,t=!1,a=!0){Pn(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],u="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(c,d,p,m,v)=>{if(r.push({paramName:d,isOptional:p!=null}),p){let y=v.charAt(m+c.length);return y&&y!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),u+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):a?u+="\\/*$":e!==""&&e!=="/"&&(u+="(?:(?=\\/|$))"),[new RegExp(u,t?void 0:"i"),r]}function SD(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Pn(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Fa(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let a=t.endsWith("/")?t.length-1:t.length,r=e.charAt(a);return r&&r!=="/"?null:e.slice(a)||"/"}var kD=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function ED(e,t="/"){let{pathname:a,search:r="",hash:u=""}=typeof e=="string"?kl(e):e,s;return a?(a=a.replace(/\/\/+/g,"/"),a.startsWith("/")?s=i0(a.substring(1),"/"):s=i0(a,t)):s=t,{pathname:s,search:OD(r),hash:wD(u)}}function i0(e,t){let a=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(u=>{u===".."?a.length>1&&a.pop():u!=="."&&a.push(u)}),a.length>1?a.join("/"):"/"}function rh(e,t,a,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${a}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function ND(e){return e.filter((t,a)=>a===0||t.route.path&&t.route.path.length>0)}function Nm(e){let t=ND(e);return t.map((a,r)=>r===t.length-1?a.pathname:a.pathnameBase)}function dc(e,t,a,r=!1){let u;typeof e=="string"?u=kl(e):(u={...e},ot(!u.pathname||!u.pathname.includes("?"),rh("?","pathname","search",u)),ot(!u.pathname||!u.pathname.includes("#"),rh("#","pathname","hash",u)),ot(!u.search||!u.search.includes("#"),rh("#","search","hash",u)));let s=e===""||u.pathname==="",c=s?"/":u.pathname,d;if(c==null)d=a;else{let y=t.length-1;if(!r&&c.startsWith("..")){let b=c.split("/");for(;b[0]==="..";)b.shift(),y-=1;u.pathname=b.join("/")}d=y>=0?t[y]:"/"}let p=ED(u,d),m=c&&c!=="/"&&c.endsWith("/"),v=(s||c===".")&&a.endsWith("/");return!p.pathname.endsWith("/")&&(m||v)&&(p.pathname+="/"),p}var la=e=>e.join("/").replace(/\/\/+/g,"/"),TD=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),OD=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,wD=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,DD=class{constructor(e,t,a,r=!1){this.status=e,this.statusText=t||"",this.internal=r,a instanceof Error?(this.data=a.toString(),this.error=a):this.data=a}};function xD(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function RD(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var bS=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function _S(e,t){let a=e;if(typeof a!="string"||!kD.test(a))return{absoluteURL:void 0,isExternal:!1,to:a};let r=a,u=!1;if(bS)try{let s=new URL(window.location.href),c=a.startsWith("//")?new URL(s.protocol+a):new URL(a),d=Fa(c.pathname,t);c.origin===s.origin&&d!=null?a=d+c.search+c.hash:u=!0}catch{Pn(!1,`<Link to="${a}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:u,to:a}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var SS=["POST","PUT","PATCH","DELETE"];new Set(SS);var AD=["GET",...SS];new Set(AD);var El=F.createContext(null);El.displayName="DataRouter";var hc=F.createContext(null);hc.displayName="DataRouterState";var kS=F.createContext(!1);function zD(){return F.useContext(kS)}var ES=F.createContext({isTransitioning:!1});ES.displayName="ViewTransition";var CD=F.createContext(new Map);CD.displayName="Fetchers";var jD=F.createContext(null);jD.displayName="Await";var En=F.createContext(null);En.displayName="Navigation";var eo=F.createContext(null);eo.displayName="Location";var Jn=F.createContext({outlet:null,matches:[],isDataRoute:!1});Jn.displayName="Route";var Tm=F.createContext(null);Tm.displayName="RouteError";var NS="REACT_ROUTER_ERROR",MD="REDIRECT",FD="ROUTE_ERROR_RESPONSE";function VD(e){if(e.startsWith(`${NS}:${MD}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function UD(e){if(e.startsWith(`${NS}:${FD}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new DD(t.status,t.statusText,t.data)}catch{}}function LD(e,{relative:t}={}){ot(Nl(),"useHref() may be used only in the context of a <Router> component.");let{basename:a,navigator:r}=F.useContext(En),{hash:u,pathname:s,search:c}=to(e,{relative:t}),d=s;return a!=="/"&&(d=s==="/"?a:la([a,s])),r.createHref({pathname:d,search:c,hash:u})}function Nl(){return F.useContext(eo)!=null}function oa(){return ot(Nl(),"useLocation() may be used only in the context of a <Router> component."),F.useContext(eo).location}var TS="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function OS(e){F.useContext(En).static||F.useLayoutEffect(e)}function wS(){let{isDataRoute:e}=F.useContext(Jn);return e?ex():qD()}function qD(){ot(Nl(),"useNavigate() may be used only in the context of a <Router> component.");let e=F.useContext(El),{basename:t,navigator:a}=F.useContext(En),{matches:r}=F.useContext(Jn),{pathname:u}=oa(),s=JSON.stringify(Nm(r)),c=F.useRef(!1);return OS(()=>{c.current=!0}),F.useCallback((p,m={})=>{if(Pn(c.current,TS),!c.current)return;if(typeof p=="number"){a.go(p);return}let v=dc(p,JSON.parse(s),u,m.relative==="path");e==null&&t!=="/"&&(v.pathname=v.pathname==="/"?t:la([t,v.pathname])),(m.replace?a.replace:a.push)(v,m.state,m)},[t,a,s,u,e])}var QD=F.createContext(null);function BD(e){let t=F.useContext(Jn).outlet;return F.useMemo(()=>t&&F.createElement(QD.Provider,{value:e},t),[t,e])}function to(e,{relative:t}={}){let{matches:a}=F.useContext(Jn),{pathname:r}=oa(),u=JSON.stringify(Nm(a));return F.useMemo(()=>dc(e,JSON.parse(u),r,t==="path"),[e,u,r,t])}function ID(e,t){return DS(e,t)}function DS(e,t,a){var D;ot(Nl(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=F.useContext(En),{matches:u}=F.useContext(Jn),s=u[u.length-1],c=s?s.params:{},d=s?s.pathname:"/",p=s?s.pathnameBase:"/",m=s&&s.route;{let N=m&&m.path||"";RS(d,!m||N.endsWith("*")||N.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${d}" (under <Route path="${N}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
275
+ */var e0="popstate";function t0(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function lD(e={}){function t(r,u){var m;let s=(m=u.state)==null?void 0:m.masked,{pathname:c,search:d,hash:p}=s||r.location;return Bh("",{pathname:c,search:d,hash:p},u.state&&u.state.usr||null,u.state&&u.state.key||"default",s?{pathname:r.location.pathname,search:r.location.search,hash:r.location.hash}:void 0)}function a(r,u){return typeof u=="string"?u:Xu(u)}return oD(t,a,null,e)}function ot(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Pn(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function uD(){return Math.random().toString(36).substring(2,10)}function n0(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.unstable_mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function Bh(e,t,a=null,r,u){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?kl(t):t,state:a,key:t&&t.key||r||uD(),unstable_mask:u}}function Xu({pathname:e="/",search:t="",hash:a=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),a&&a!=="#"&&(e+=a.charAt(0)==="#"?a:"#"+a),e}function kl(e){let t={};if(e){let a=e.indexOf("#");a>=0&&(t.hash=e.substring(a),e=e.substring(0,a));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function oD(e,t,a,r={}){let{window:u=document.defaultView,v5Compat:s=!1}=r,c=u.history,d="POP",p=null,m=v();m==null&&(m=0,c.replaceState({...c.state,idx:m},""));function v(){return(c.state||{idx:null}).idx}function y(){d="POP";let D=v(),N=D==null?null:D-m;m=D,p&&p({action:d,location:T.location,delta:N})}function b(D,N){d="PUSH";let w=t0(D)?D:Bh(T.location,D,N);m=v()+1;let O=n0(w,m),M=T.createHref(w.unstable_mask||w);try{c.pushState(O,"",M)}catch(z){if(z instanceof DOMException&&z.name==="DataCloneError")throw z;u.location.assign(M)}s&&p&&p({action:d,location:T.location,delta:1})}function _(D,N){d="REPLACE";let w=t0(D)?D:Bh(T.location,D,N);m=v();let O=n0(w,m),M=T.createHref(w.unstable_mask||w);c.replaceState(O,"",M),s&&p&&p({action:d,location:T.location,delta:0})}function E(D){return sD(D)}let T={get action(){return d},get location(){return e(u,c)},listen(D){if(p)throw new Error("A history only accepts one active listener");return u.addEventListener(e0,y),p=D,()=>{u.removeEventListener(e0,y),p=null}},createHref(D){return t(u,D)},createURL:E,encodeLocation(D){let N=E(D);return{pathname:N.pathname,search:N.search,hash:N.hash}},push:b,replace:_,go(D){return c.go(D)}};return T}function sD(e,t=!1){let a="http://localhost";typeof window<"u"&&(a=window.location.origin!=="null"?window.location.origin:window.location.href),ot(a,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:Xu(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=a+r),new URL(r,a)}function yS(e,t,a="/"){return cD(e,t,a,!1)}function cD(e,t,a,r){let u=typeof t=="string"?kl(t):t,s=Fa(u.pathname||"/",a);if(s==null)return null;let c=gS(e);fD(c);let d=null;for(let p=0;d==null&&p<c.length;++p){let m=kD(s);d=_D(c[p],m,r)}return d}function gS(e,t=[],a=[],r="",u=!1){let s=(c,d,p=u,m)=>{let v={relativePath:m===void 0?c.path||"":m,caseSensitive:c.caseSensitive===!0,childrenIndex:d,route:c};if(v.relativePath.startsWith("/")){if(!v.relativePath.startsWith(r)&&p)return;ot(v.relativePath.startsWith(r),`Absolute route path "${v.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),v.relativePath=v.relativePath.slice(r.length)}let y=la([r,v.relativePath]),b=a.concat(v);c.children&&c.children.length>0&&(ot(c.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${y}".`),gS(c.children,t,b,y,p)),!(c.path==null&&!c.index)&&t.push({path:y,score:gD(y,c.index),routesMeta:b})};return e.forEach((c,d)=>{var p;if(c.path===""||!((p=c.path)!=null&&p.includes("?")))s(c,d);else for(let m of bS(c.path))s(c,d,!0,m)}),t}function bS(e){let t=e.split("/");if(t.length===0)return[];let[a,...r]=t,u=a.endsWith("?"),s=a.replace(/\?$/,"");if(r.length===0)return u?[s,""]:[s];let c=bS(r.join("/")),d=[];return d.push(...c.map(p=>p===""?s:[s,p].join("/"))),u&&d.push(...c),d.map(p=>e.startsWith("/")&&p===""?"/":p)}function fD(e){e.sort((t,a)=>t.score!==a.score?a.score-t.score:bD(t.routesMeta.map(r=>r.childrenIndex),a.routesMeta.map(r=>r.childrenIndex)))}var dD=/^:[\w-]+$/,hD=3,mD=2,pD=1,vD=10,yD=-2,a0=e=>e==="*";function gD(e,t){let a=e.split("/"),r=a.length;return a.some(a0)&&(r+=yD),t&&(r+=mD),a.filter(u=>!a0(u)).reduce((u,s)=>u+(dD.test(s)?hD:s===""?pD:vD),r)}function bD(e,t){return e.length===t.length&&e.slice(0,-1).every((r,u)=>r===t[u])?e[e.length-1]-t[t.length-1]:0}function _D(e,t,a=!1){let{routesMeta:r}=e,u={},s="/",c=[];for(let d=0;d<r.length;++d){let p=r[d],m=d===r.length-1,v=s==="/"?t:t.slice(s.length)||"/",y=$s({path:p.relativePath,caseSensitive:p.caseSensitive,end:m},v),b=p.route;if(!y&&m&&a&&!r[r.length-1].route.index&&(y=$s({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},v)),!y)return null;Object.assign(u,y.params),c.push({params:u,pathname:la([s,y.pathname]),pathnameBase:OD(la([s,y.pathnameBase])),route:b}),y.pathnameBase!=="/"&&(s=la([s,y.pathnameBase]))}return c}function $s(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[a,r]=SD(e.path,e.caseSensitive,e.end),u=t.match(a);if(!u)return null;let s=u[0],c=s.replace(/(.)\/+$/,"$1"),d=u.slice(1);return{params:r.reduce((m,{paramName:v,isOptional:y},b)=>{if(v==="*"){let E=d[b]||"";c=s.slice(0,s.length-E.length).replace(/(.)\/+$/,"$1")}const _=d[b];return y&&!_?m[v]=void 0:m[v]=(_||"").replace(/%2F/g,"/"),m},{}),pathname:s,pathnameBase:c,pattern:e}}function SD(e,t=!1,a=!0){Pn(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],u="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(c,d,p,m,v)=>{if(r.push({paramName:d,isOptional:p!=null}),p){let y=v.charAt(m+c.length);return y&&y!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),u+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):a?u+="\\/*$":e!==""&&e!=="/"&&(u+="(?:(?=\\/|$))"),[new RegExp(u,t?void 0:"i"),r]}function kD(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Pn(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Fa(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let a=t.endsWith("/")?t.length-1:t.length,r=e.charAt(a);return r&&r!=="/"?null:e.slice(a)||"/"}var ED=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function ND(e,t="/"){let{pathname:a,search:r="",hash:u=""}=typeof e=="string"?kl(e):e,s;return a?(a=a.replace(/\/\/+/g,"/"),a.startsWith("/")?s=i0(a.substring(1),"/"):s=i0(a,t)):s=t,{pathname:s,search:wD(r),hash:DD(u)}}function i0(e,t){let a=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(u=>{u===".."?a.length>1&&a.pop():u!=="."&&a.push(u)}),a.length>1?a.join("/"):"/"}function rh(e,t,a,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${a}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function TD(e){return e.filter((t,a)=>a===0||t.route.path&&t.route.path.length>0)}function Nm(e){let t=TD(e);return t.map((a,r)=>r===t.length-1?a.pathname:a.pathnameBase)}function dc(e,t,a,r=!1){let u;typeof e=="string"?u=kl(e):(u={...e},ot(!u.pathname||!u.pathname.includes("?"),rh("?","pathname","search",u)),ot(!u.pathname||!u.pathname.includes("#"),rh("#","pathname","hash",u)),ot(!u.search||!u.search.includes("#"),rh("#","search","hash",u)));let s=e===""||u.pathname==="",c=s?"/":u.pathname,d;if(c==null)d=a;else{let y=t.length-1;if(!r&&c.startsWith("..")){let b=c.split("/");for(;b[0]==="..";)b.shift(),y-=1;u.pathname=b.join("/")}d=y>=0?t[y]:"/"}let p=ND(u,d),m=c&&c!=="/"&&c.endsWith("/"),v=(s||c===".")&&a.endsWith("/");return!p.pathname.endsWith("/")&&(m||v)&&(p.pathname+="/"),p}var la=e=>e.join("/").replace(/\/\/+/g,"/"),OD=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),wD=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,DD=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,xD=class{constructor(e,t,a,r=!1){this.status=e,this.statusText=t||"",this.internal=r,a instanceof Error?(this.data=a.toString(),this.error=a):this.data=a}};function RD(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function AD(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var _S=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function SS(e,t){let a=e;if(typeof a!="string"||!ED.test(a))return{absoluteURL:void 0,isExternal:!1,to:a};let r=a,u=!1;if(_S)try{let s=new URL(window.location.href),c=a.startsWith("//")?new URL(s.protocol+a):new URL(a),d=Fa(c.pathname,t);c.origin===s.origin&&d!=null?a=d+c.search+c.hash:u=!0}catch{Pn(!1,`<Link to="${a}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:u,to:a}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var kS=["POST","PUT","PATCH","DELETE"];new Set(kS);var zD=["GET",...kS];new Set(zD);var El=F.createContext(null);El.displayName="DataRouter";var hc=F.createContext(null);hc.displayName="DataRouterState";var ES=F.createContext(!1);function CD(){return F.useContext(ES)}var NS=F.createContext({isTransitioning:!1});NS.displayName="ViewTransition";var jD=F.createContext(new Map);jD.displayName="Fetchers";var MD=F.createContext(null);MD.displayName="Await";var En=F.createContext(null);En.displayName="Navigation";var eo=F.createContext(null);eo.displayName="Location";var Jn=F.createContext({outlet:null,matches:[],isDataRoute:!1});Jn.displayName="Route";var Tm=F.createContext(null);Tm.displayName="RouteError";var TS="REACT_ROUTER_ERROR",FD="REDIRECT",VD="ROUTE_ERROR_RESPONSE";function UD(e){if(e.startsWith(`${TS}:${FD}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function LD(e){if(e.startsWith(`${TS}:${VD}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new xD(t.status,t.statusText,t.data)}catch{}}function qD(e,{relative:t}={}){ot(Nl(),"useHref() may be used only in the context of a <Router> component.");let{basename:a,navigator:r}=F.useContext(En),{hash:u,pathname:s,search:c}=to(e,{relative:t}),d=s;return a!=="/"&&(d=s==="/"?a:la([a,s])),r.createHref({pathname:d,search:c,hash:u})}function Nl(){return F.useContext(eo)!=null}function oa(){return ot(Nl(),"useLocation() may be used only in the context of a <Router> component."),F.useContext(eo).location}var OS="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function wS(e){F.useContext(En).static||F.useLayoutEffect(e)}function DS(){let{isDataRoute:e}=F.useContext(Jn);return e?tx():QD()}function QD(){ot(Nl(),"useNavigate() may be used only in the context of a <Router> component.");let e=F.useContext(El),{basename:t,navigator:a}=F.useContext(En),{matches:r}=F.useContext(Jn),{pathname:u}=oa(),s=JSON.stringify(Nm(r)),c=F.useRef(!1);return wS(()=>{c.current=!0}),F.useCallback((p,m={})=>{if(Pn(c.current,OS),!c.current)return;if(typeof p=="number"){a.go(p);return}let v=dc(p,JSON.parse(s),u,m.relative==="path");e==null&&t!=="/"&&(v.pathname=v.pathname==="/"?t:la([t,v.pathname])),(m.replace?a.replace:a.push)(v,m.state,m)},[t,a,s,u,e])}var BD=F.createContext(null);function ID(e){let t=F.useContext(Jn).outlet;return F.useMemo(()=>t&&F.createElement(BD.Provider,{value:e},t),[t,e])}function to(e,{relative:t}={}){let{matches:a}=F.useContext(Jn),{pathname:r}=oa(),u=JSON.stringify(Nm(a));return F.useMemo(()=>dc(e,JSON.parse(u),r,t==="path"),[e,u,r,t])}function ZD(e,t){return xS(e,t)}function xS(e,t,a){var D;ot(Nl(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=F.useContext(En),{matches:u}=F.useContext(Jn),s=u[u.length-1],c=s?s.params:{},d=s?s.pathname:"/",p=s?s.pathnameBase:"/",m=s&&s.route;{let N=m&&m.path||"";AS(d,!m||N.endsWith("*")||N.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${d}" (under <Route path="${N}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
276
276
 
277
- Please change the parent <Route path="${N}"> to <Route path="${N==="/"?"*":`${N}/*`}">.`)}let v=oa(),y;if(t){let N=typeof t=="string"?kl(t):t;ot(p==="/"||((D=N.pathname)==null?void 0:D.startsWith(p)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${p}" but pathname "${N.pathname}" was given in the \`location\` prop.`),y=N}else y=v;let b=y.pathname||"/",_=b;if(p!=="/"){let N=p.replace(/^\//,"").split("/");_="/"+b.replace(/^\//,"").split("/").slice(N.length).join("/")}let E=vS(e,{pathname:_});Pn(m||E!=null,`No routes matched location "${y.pathname}${y.search}${y.hash}" `),Pn(E==null||E[E.length-1].route.element!==void 0||E[E.length-1].route.Component!==void 0||E[E.length-1].route.lazy!==void 0,`Matched leaf route at location "${y.pathname}${y.search}${y.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let T=YD(E&&E.map(N=>Object.assign({},N,{params:Object.assign({},c,N.params),pathname:la([p,r.encodeLocation?r.encodeLocation(N.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:N.pathname]),pathnameBase:N.pathnameBase==="/"?p:la([p,r.encodeLocation?r.encodeLocation(N.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:N.pathnameBase])})),u,a);return t&&T?F.createElement(eo.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...y},navigationType:"POP"}},T):T}function ZD(){let e=WD(),t=xD(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),a=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",u={padding:"0.5rem",backgroundColor:r},s={padding:"2px 4px",backgroundColor:r},c=null;return console.error("Error handled by React Router default ErrorBoundary:",e),c=F.createElement(F.Fragment,null,F.createElement("p",null,"💿 Hey developer 👋"),F.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",F.createElement("code",{style:s},"ErrorBoundary")," or"," ",F.createElement("code",{style:s},"errorElement")," prop on your route.")),F.createElement(F.Fragment,null,F.createElement("h2",null,"Unexpected Application Error!"),F.createElement("h3",{style:{fontStyle:"italic"}},t),a?F.createElement("pre",{style:u},a):null,c)}var HD=F.createElement(ZD,null),xS=class extends F.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const a=UD(e.digest);a&&(e=a)}let t=e!==void 0?F.createElement(Jn.Provider,{value:this.props.routeContext},F.createElement(Tm.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?F.createElement($D,{error:e},t):t}};xS.contextType=kS;var lh=new WeakMap;function $D({children:e,error:t}){let{basename:a}=F.useContext(En);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=VD(t.digest);if(r){let u=lh.get(t);if(u)throw u;let s=_S(r.location,a);if(bS&&!lh.get(t))if(s.isExternal||r.reloadDocument)window.location.href=s.absoluteURL||s.to;else{const c=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(s.to,{replace:r.replace}));throw lh.set(t,c),c}return F.createElement("meta",{httpEquiv:"refresh",content:`0;url=${s.absoluteURL||s.to}`})}}return e}function GD({routeContext:e,match:t,children:a}){let r=F.useContext(El);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),F.createElement(Jn.Provider,{value:e},a)}function YD(e,t=[],a){let r=a==null?void 0:a.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let u=e,s=r==null?void 0:r.errors;if(s!=null){let v=u.findIndex(y=>y.route.id&&(s==null?void 0:s[y.route.id])!==void 0);ot(v>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),u=u.slice(0,Math.min(u.length,v+1))}let c=!1,d=-1;if(a&&r){c=r.renderFallback;for(let v=0;v<u.length;v++){let y=u[v];if((y.route.HydrateFallback||y.route.hydrateFallbackElement)&&(d=v),y.route.id){let{loaderData:b,errors:_}=r,E=y.route.loader&&!b.hasOwnProperty(y.route.id)&&(!_||_[y.route.id]===void 0);if(y.route.lazy||E){a.isStatic&&(c=!0),d>=0?u=u.slice(0,d+1):u=[u[0]];break}}}}let p=a==null?void 0:a.onError,m=r&&p?(v,y)=>{var b,_;p(v,{location:r.location,params:((_=(b=r.matches)==null?void 0:b[0])==null?void 0:_.params)??{},unstable_pattern:RD(r.matches),errorInfo:y})}:void 0;return u.reduceRight((v,y,b)=>{let _,E=!1,T=null,D=null;r&&(_=s&&y.route.id?s[y.route.id]:void 0,T=y.route.errorElement||HD,c&&(d<0&&b===0?(RS("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),E=!0,D=null):d===b&&(E=!0,D=y.route.hydrateFallbackElement||null)));let N=t.concat(u.slice(0,b+1)),w=()=>{let O;return _?O=T:E?O=D:y.route.Component?O=F.createElement(y.route.Component,null):y.route.element?O=y.route.element:O=v,F.createElement(GD,{match:y,routeContext:{outlet:v,matches:N,isDataRoute:r!=null},children:O})};return r&&(y.route.ErrorBoundary||y.route.errorElement||b===0)?F.createElement(xS,{location:r.location,revalidation:r.revalidation,component:T,error:_,children:w(),routeContext:{outlet:null,matches:N,isDataRoute:!0},onError:m}):w()},null)}function Om(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function PD(e){let t=F.useContext(El);return ot(t,Om(e)),t}function XD(e){let t=F.useContext(hc);return ot(t,Om(e)),t}function JD(e){let t=F.useContext(Jn);return ot(t,Om(e)),t}function wm(e){let t=JD(e),a=t.matches[t.matches.length-1];return ot(a.route.id,`${e} can only be used on routes that contain a unique "id"`),a.route.id}function KD(){return wm("useRouteId")}function WD(){var r;let e=F.useContext(Tm),t=XD("useRouteError"),a=wm("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[a]}function ex(){let{router:e}=PD("useNavigate"),t=wm("useNavigate"),a=F.useRef(!1);return OS(()=>{a.current=!0}),F.useCallback(async(u,s={})=>{Pn(a.current,TS),a.current&&(typeof u=="number"?await e.navigate(u):await e.navigate(u,{fromRouteId:t,...s}))},[e,t])}var r0={};function RS(e,t,a){!t&&!r0[e]&&(r0[e]=!0,Pn(!1,a))}F.memo(tx);function tx({routes:e,future:t,state:a,isStatic:r,onError:u}){return DS(e,void 0,{state:a,isStatic:r,onError:u})}function nx({to:e,replace:t,state:a,relative:r}){ot(Nl(),"<Navigate> may be used only in the context of a <Router> component.");let{static:u}=F.useContext(En);Pn(!u,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:s}=F.useContext(Jn),{pathname:c}=oa(),d=wS(),p=dc(e,Nm(s),c,r==="path"),m=JSON.stringify(p);return F.useEffect(()=>{d(JSON.parse(m),{replace:t,state:a,relative:r})},[d,m,r,t,a]),null}function ax(e){return BD(e.context)}function Aa(e){ot(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function ix({basename:e="/",children:t=null,location:a,navigationType:r="POP",navigator:u,static:s=!1,unstable_useTransitions:c}){ot(!Nl(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let d=e.replace(/^\/*/,"/"),p=F.useMemo(()=>({basename:d,navigator:u,static:s,unstable_useTransitions:c,future:{}}),[d,u,s,c]);typeof a=="string"&&(a=kl(a));let{pathname:m="/",search:v="",hash:y="",state:b=null,key:_="default",unstable_mask:E}=a,T=F.useMemo(()=>{let D=Fa(m,d);return D==null?null:{location:{pathname:D,search:v,hash:y,state:b,key:_,unstable_mask:E},navigationType:r}},[d,m,v,y,b,_,r,E]);return Pn(T!=null,`<Router basename="${d}"> is not able to match the URL "${m}${v}${y}" because it does not start with the basename, so the <Router> won't render anything.`),T==null?null:F.createElement(En.Provider,{value:p},F.createElement(eo.Provider,{children:t,value:T}))}function rx({children:e,location:t}){return ID(Ih(e),t)}function Ih(e,t=[]){let a=[];return F.Children.forEach(e,(r,u)=>{if(!F.isValidElement(r))return;let s=[...t,u];if(r.type===F.Fragment){a.push.apply(a,Ih(r.props.children,s));return}ot(r.type===Aa,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),ot(!r.props.index||!r.props.children,"An index route cannot have child routes.");let c={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(c.children=Ih(r.props.children,s)),a.push(c)}),a}var Us="get",Ls="application/x-www-form-urlencoded";function mc(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function lx(e){return mc(e)&&e.tagName.toLowerCase()==="button"}function ux(e){return mc(e)&&e.tagName.toLowerCase()==="form"}function ox(e){return mc(e)&&e.tagName.toLowerCase()==="input"}function sx(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function cx(e,t){return e.button===0&&(!t||t==="_self")&&!sx(e)}var Os=null;function fx(){if(Os===null)try{new FormData(document.createElement("form"),0),Os=!1}catch{Os=!0}return Os}var dx=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function uh(e){return e!=null&&!dx.has(e)?(Pn(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ls}"`),null):e}function hx(e,t){let a,r,u,s,c;if(ux(e)){let d=e.getAttribute("action");r=d?Fa(d,t):null,a=e.getAttribute("method")||Us,u=uh(e.getAttribute("enctype"))||Ls,s=new FormData(e)}else if(lx(e)||ox(e)&&(e.type==="submit"||e.type==="image")){let d=e.form;if(d==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let p=e.getAttribute("formaction")||d.getAttribute("action");if(r=p?Fa(p,t):null,a=e.getAttribute("formmethod")||d.getAttribute("method")||Us,u=uh(e.getAttribute("formenctype"))||uh(d.getAttribute("enctype"))||Ls,s=new FormData(d,e),!fx()){let{name:m,type:v,value:y}=e;if(v==="image"){let b=m?`${m}.`:"";s.append(`${b}x`,"0"),s.append(`${b}y`,"0")}else m&&s.append(m,y)}}else{if(mc(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');a=Us,r=null,u=Ls,c=e}return s&&u==="text/plain"&&(c=s,s=void 0),{action:r,method:a.toLowerCase(),encType:u,formData:s,body:c}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Dm(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function AS(e,t,a,r){let u=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return a?u.pathname.endsWith("/")?u.pathname=`${u.pathname}_.${r}`:u.pathname=`${u.pathname}.${r}`:u.pathname==="/"?u.pathname=`_root.${r}`:t&&Fa(u.pathname,t)==="/"?u.pathname=`${t.replace(/\/$/,"")}/_root.${r}`:u.pathname=`${u.pathname.replace(/\/$/,"")}.${r}`,u}async function mx(e,t){if(e.id in t)return t[e.id];try{let a=await import(e.module);return t[e.id]=a,a}catch(a){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(a),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function px(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function vx(e,t,a){let r=await Promise.all(e.map(async u=>{let s=t.routes[u.route.id];if(s){let c=await mx(s,a);return c.links?c.links():[]}return[]}));return _x(r.flat(1).filter(px).filter(u=>u.rel==="stylesheet"||u.rel==="preload").map(u=>u.rel==="stylesheet"?{...u,rel:"prefetch",as:"style"}:{...u,rel:"prefetch"}))}function l0(e,t,a,r,u,s){let c=(p,m)=>a[m]?p.route.id!==a[m].route.id:!0,d=(p,m)=>{var v;return a[m].pathname!==p.pathname||((v=a[m].route.path)==null?void 0:v.endsWith("*"))&&a[m].params["*"]!==p.params["*"]};return s==="assets"?t.filter((p,m)=>c(p,m)||d(p,m)):s==="data"?t.filter((p,m)=>{var y;let v=r.routes[p.route.id];if(!v||!v.hasLoader)return!1;if(c(p,m)||d(p,m))return!0;if(p.route.shouldRevalidate){let b=p.route.shouldRevalidate({currentUrl:new URL(u.pathname+u.search+u.hash,window.origin),currentParams:((y=a[0])==null?void 0:y.params)||{},nextUrl:new URL(e,window.origin),nextParams:p.params,defaultShouldRevalidate:!0});if(typeof b=="boolean")return b}return!0}):[]}function yx(e,t,{includeHydrateFallback:a}={}){return gx(e.map(r=>{let u=t.routes[r.route.id];if(!u)return[];let s=[u.module];return u.clientActionModule&&(s=s.concat(u.clientActionModule)),u.clientLoaderModule&&(s=s.concat(u.clientLoaderModule)),a&&u.hydrateFallbackModule&&(s=s.concat(u.hydrateFallbackModule)),u.imports&&(s=s.concat(u.imports)),s}).flat(1))}function gx(e){return[...new Set(e)]}function bx(e){let t={},a=Object.keys(e).sort();for(let r of a)t[r]=e[r];return t}function _x(e,t){let a=new Set;return new Set(t),e.reduce((r,u)=>{let s=JSON.stringify(bx(u));return a.has(s)||(a.add(s),r.push({key:s,link:u})),r},[])}function xm(){let e=F.useContext(El);return Dm(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Sx(){let e=F.useContext(hc);return Dm(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Rm=F.createContext(void 0);Rm.displayName="FrameworkContext";function Am(){let e=F.useContext(Rm);return Dm(e,"You must render this element inside a <HydratedRouter> element"),e}function kx(e,t){let a=F.useContext(Rm),[r,u]=F.useState(!1),[s,c]=F.useState(!1),{onFocus:d,onBlur:p,onMouseEnter:m,onMouseLeave:v,onTouchStart:y}=t,b=F.useRef(null);F.useEffect(()=>{if(e==="render"&&c(!0),e==="viewport"){let T=N=>{N.forEach(w=>{c(w.isIntersecting)})},D=new IntersectionObserver(T,{threshold:.5});return b.current&&D.observe(b.current),()=>{D.disconnect()}}},[e]),F.useEffect(()=>{if(r){let T=setTimeout(()=>{c(!0)},100);return()=>{clearTimeout(T)}}},[r]);let _=()=>{u(!0)},E=()=>{u(!1),c(!1)};return a?e!=="intent"?[s,b,{}]:[s,b,{onFocus:Ru(d,_),onBlur:Ru(p,E),onMouseEnter:Ru(m,_),onMouseLeave:Ru(v,E),onTouchStart:Ru(y,_)}]:[!1,b,{}]}function Ru(e,t){return a=>{e&&e(a),a.defaultPrevented||t(a)}}function Ex({page:e,...t}){let a=zD(),{router:r}=xm(),u=F.useMemo(()=>vS(r.routes,e,r.basename),[r.routes,e,r.basename]);return u?a?F.createElement(Tx,{page:e,matches:u,...t}):F.createElement(Ox,{page:e,matches:u,...t}):null}function Nx(e){let{manifest:t,routeModules:a}=Am(),[r,u]=F.useState([]);return F.useEffect(()=>{let s=!1;return vx(e,t,a).then(c=>{s||u(c)}),()=>{s=!0}},[e,t,a]),r}function Tx({page:e,matches:t,...a}){let r=oa(),{future:u}=Am(),{basename:s}=xm(),c=F.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let d=AS(e,s,u.unstable_trailingSlashAwareDataRequests,"rsc"),p=!1,m=[];for(let v of t)typeof v.route.shouldRevalidate=="function"?p=!0:m.push(v.route.id);return p&&m.length>0&&d.searchParams.set("_routes",m.join(",")),[d.pathname+d.search]},[s,u.unstable_trailingSlashAwareDataRequests,e,r,t]);return F.createElement(F.Fragment,null,c.map(d=>F.createElement("link",{key:d,rel:"prefetch",as:"fetch",href:d,...a})))}function Ox({page:e,matches:t,...a}){let r=oa(),{future:u,manifest:s,routeModules:c}=Am(),{basename:d}=xm(),{loaderData:p,matches:m}=Sx(),v=F.useMemo(()=>l0(e,t,m,s,r,"data"),[e,t,m,s,r]),y=F.useMemo(()=>l0(e,t,m,s,r,"assets"),[e,t,m,s,r]),b=F.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let T=new Set,D=!1;if(t.forEach(w=>{var M;let O=s.routes[w.route.id];!O||!O.hasLoader||(!v.some(z=>z.route.id===w.route.id)&&w.route.id in p&&((M=c[w.route.id])!=null&&M.shouldRevalidate)||O.hasClientLoader?D=!0:T.add(w.route.id))}),T.size===0)return[];let N=AS(e,d,u.unstable_trailingSlashAwareDataRequests,"data");return D&&T.size>0&&N.searchParams.set("_routes",t.filter(w=>T.has(w.route.id)).map(w=>w.route.id).join(",")),[N.pathname+N.search]},[d,u.unstable_trailingSlashAwareDataRequests,p,r,s,v,t,e,c]),_=F.useMemo(()=>yx(y,s),[y,s]),E=Nx(y);return F.createElement(F.Fragment,null,b.map(T=>F.createElement("link",{key:T,rel:"prefetch",as:"fetch",href:T,...a})),_.map(T=>F.createElement("link",{key:T,rel:"modulepreload",href:T,...a})),E.map(({key:T,link:D})=>F.createElement("link",{key:T,nonce:a.nonce,...D,crossOrigin:D.crossOrigin??a.crossOrigin})))}function wx(...e){return t=>{e.forEach(a=>{typeof a=="function"?a(t):a!=null&&(a.current=t)})}}var Dx=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Dx&&(window.__reactRouterVersion="7.14.0")}catch{}function xx({basename:e,children:t,unstable_useTransitions:a,window:r}){let u=F.useRef();u.current==null&&(u.current=rD({window:r,v5Compat:!0}));let s=u.current,[c,d]=F.useState({action:s.action,location:s.location}),p=F.useCallback(m=>{a===!1?d(m):F.startTransition(()=>d(m))},[a]);return F.useLayoutEffect(()=>s.listen(p),[s,p]),F.createElement(ix,{basename:e,children:t,location:c.location,navigationType:c.action,navigator:s,unstable_useTransitions:a})}var zS=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,CS=F.forwardRef(function({onClick:t,discover:a="render",prefetch:r="none",relative:u,reloadDocument:s,replace:c,unstable_mask:d,state:p,target:m,to:v,preventScrollReset:y,viewTransition:b,unstable_defaultShouldRevalidate:_,...E},T){let{basename:D,navigator:N,unstable_useTransitions:w}=F.useContext(En),O=typeof v=="string"&&zS.test(v),M=_S(v,D);v=M.to;let z=LD(v,{relative:u}),Z=oa(),$=null;if(d){let ce=dc(d,[],Z.unstable_mask?Z.unstable_mask.pathname:"/",!0);D!=="/"&&(ce.pathname=ce.pathname==="/"?D:la([D,ce.pathname])),$=N.createHref(ce)}let[W,se,Ne]=kx(r,E),Be=zx(v,{replace:c,unstable_mask:d,state:p,target:m,preventScrollReset:y,relative:u,viewTransition:b,unstable_defaultShouldRevalidate:_,unstable_useTransitions:w});function le(ce){t&&t(ce),ce.defaultPrevented||Be(ce)}let fe=!(M.isExternal||s),ee=F.createElement("a",{...E,...Ne,href:(fe?$:void 0)||M.absoluteURL||z,onClick:fe?le:t,ref:wx(T,se),target:m,"data-discover":!O&&a==="render"?"true":void 0});return W&&!O?F.createElement(F.Fragment,null,ee,F.createElement(Ex,{page:z})):ee});CS.displayName="Link";var Wr=F.forwardRef(function({"aria-current":t="page",caseSensitive:a=!1,className:r="",end:u=!1,style:s,to:c,viewTransition:d,children:p,...m},v){let y=to(c,{relative:m.relative}),b=oa(),_=F.useContext(hc),{navigator:E,basename:T}=F.useContext(En),D=_!=null&&Vx(y)&&d===!0,N=E.encodeLocation?E.encodeLocation(y).pathname:y.pathname,w=b.pathname,O=_&&_.navigation&&_.navigation.location?_.navigation.location.pathname:null;a||(w=w.toLowerCase(),O=O?O.toLowerCase():null,N=N.toLowerCase()),O&&T&&(O=Fa(O,T)||O);const M=N!=="/"&&N.endsWith("/")?N.length-1:N.length;let z=w===N||!u&&w.startsWith(N)&&w.charAt(M)==="/",Z=O!=null&&(O===N||!u&&O.startsWith(N)&&O.charAt(N.length)==="/"),$={isActive:z,isPending:Z,isTransitioning:D},W=z?t:void 0,se;typeof r=="function"?se=r($):se=[r,z?"active":null,Z?"pending":null,D?"transitioning":null].filter(Boolean).join(" ");let Ne=typeof s=="function"?s($):s;return F.createElement(CS,{...m,"aria-current":W,className:se,ref:v,style:Ne,to:c,viewTransition:d},typeof p=="function"?p($):p)});Wr.displayName="NavLink";var Rx=F.forwardRef(({discover:e="render",fetcherKey:t,navigate:a,reloadDocument:r,replace:u,state:s,method:c=Us,action:d,onSubmit:p,relative:m,preventScrollReset:v,viewTransition:y,unstable_defaultShouldRevalidate:b,..._},E)=>{let{unstable_useTransitions:T}=F.useContext(En),D=Mx(),N=Fx(d,{relative:m}),w=c.toLowerCase()==="get"?"get":"post",O=typeof d=="string"&&zS.test(d),M=z=>{if(p&&p(z),z.defaultPrevented)return;z.preventDefault();let Z=z.nativeEvent.submitter,$=(Z==null?void 0:Z.getAttribute("formmethod"))||c,W=()=>D(Z||z.currentTarget,{fetcherKey:t,method:$,navigate:a,replace:u,state:s,relative:m,preventScrollReset:v,viewTransition:y,unstable_defaultShouldRevalidate:b});T&&a!==!1?F.startTransition(()=>W()):W()};return F.createElement("form",{ref:E,method:w,action:N,onSubmit:r?p:M,..._,"data-discover":!O&&e==="render"?"true":void 0})});Rx.displayName="Form";function Ax(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function jS(e){let t=F.useContext(El);return ot(t,Ax(e)),t}function zx(e,{target:t,replace:a,unstable_mask:r,state:u,preventScrollReset:s,relative:c,viewTransition:d,unstable_defaultShouldRevalidate:p,unstable_useTransitions:m}={}){let v=wS(),y=oa(),b=to(e,{relative:c});return F.useCallback(_=>{if(cx(_,t)){_.preventDefault();let E=a!==void 0?a:Xu(y)===Xu(b),T=()=>v(e,{replace:E,unstable_mask:r,state:u,preventScrollReset:s,relative:c,viewTransition:d,unstable_defaultShouldRevalidate:p});m?F.startTransition(()=>T()):T()}},[y,v,b,a,r,u,t,e,s,c,d,p,m])}var Cx=0,jx=()=>`__${String(++Cx)}__`;function Mx(){let{router:e}=jS("useSubmit"),{basename:t}=F.useContext(En),a=KD(),r=e.fetch,u=e.navigate;return F.useCallback(async(s,c={})=>{let{action:d,method:p,encType:m,formData:v,body:y}=hx(s,t);if(c.navigate===!1){let b=c.fetcherKey||jx();await r(b,a,c.action||d,{unstable_defaultShouldRevalidate:c.unstable_defaultShouldRevalidate,preventScrollReset:c.preventScrollReset,formData:v,body:y,formMethod:c.method||p,formEncType:c.encType||m,flushSync:c.flushSync})}else await u(c.action||d,{unstable_defaultShouldRevalidate:c.unstable_defaultShouldRevalidate,preventScrollReset:c.preventScrollReset,formData:v,body:y,formMethod:c.method||p,formEncType:c.encType||m,replace:c.replace,state:c.state,fromRouteId:a,flushSync:c.flushSync,viewTransition:c.viewTransition})},[r,u,t,a])}function Fx(e,{relative:t}={}){let{basename:a}=F.useContext(En),r=F.useContext(Jn);ot(r,"useFormAction must be used inside a RouteContext");let[u]=r.matches.slice(-1),s={...to(e||".",{relative:t})},c=oa();if(e==null){s.search=c.search;let d=new URLSearchParams(s.search),p=d.getAll("index");if(p.some(v=>v==="")){d.delete("index"),p.filter(y=>y).forEach(y=>d.append("index",y));let v=d.toString();s.search=v?`?${v}`:""}}return(!e||e===".")&&u.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),a!=="/"&&(s.pathname=s.pathname==="/"?a:la([a,s.pathname])),Xu(s)}function Vx(e,{relative:t}={}){let a=F.useContext(ES);ot(a!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=jS("useViewTransitionState"),u=to(e,{relative:t});if(!a.isTransitioning)return!1;let s=Fa(a.currentLocation.pathname,r)||a.currentLocation.pathname,c=Fa(a.nextLocation.pathname,r)||a.nextLocation.pathname;return $s(u.pathname,c)!=null||$s(u.pathname,s)!=null}function J(e,t,a){function r(d,p){if(d._zod||Object.defineProperty(d,"_zod",{value:{def:p,constr:c,traits:new Set},enumerable:!1}),d._zod.traits.has(e))return;d._zod.traits.add(e),t(d,p);const m=c.prototype,v=Object.keys(m);for(let y=0;y<v.length;y++){const b=v[y];b in d||(d[b]=m[b].bind(d))}}const u=(a==null?void 0:a.Parent)??Object;class s extends u{}Object.defineProperty(s,"name",{value:e});function c(d){var p;const m=a!=null&&a.Parent?new s:this;r(m,d),(p=m._zod).deferred??(p.deferred=[]);for(const v of m._zod.deferred)v();return m}return Object.defineProperty(c,"init",{value:r}),Object.defineProperty(c,Symbol.hasInstance,{value:d=>{var p,m;return a!=null&&a.Parent&&d instanceof a.Parent?!0:(m=(p=d==null?void 0:d._zod)==null?void 0:p.traits)==null?void 0:m.has(e)}}),Object.defineProperty(c,"name",{value:e}),c}class fl extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class MS extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const FS={};function Si(e){return FS}function VS(e){const t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,u])=>t.indexOf(+r)===-1).map(([r,u])=>u)}function Zh(e,t){return typeof t=="bigint"?t.toString():t}function zm(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function Cm(e){return e==null}function jm(e){const t=e.startsWith("^")?1:0,a=e.endsWith("$")?e.length-1:e.length;return e.slice(t,a)}function Ux(e,t){const a=(e.toString().split(".")[1]||"").length,r=t.toString();let u=(r.split(".")[1]||"").length;if(u===0&&/\d?e-\d?/.test(r)){const p=r.match(/\d?e-(\d?)/);p!=null&&p[1]&&(u=Number.parseInt(p[1]))}const s=a>u?a:u,c=Number.parseInt(e.toFixed(s).replace(".","")),d=Number.parseInt(t.toFixed(s).replace(".",""));return c%d/10**s}const u0=Symbol("evaluating");function Pe(e,t,a){let r;Object.defineProperty(e,t,{get(){if(r!==u0)return r===void 0&&(r=u0,r=a()),r},set(u){Object.defineProperty(e,t,{value:u})},configurable:!0})}function rr(e,t,a){Object.defineProperty(e,t,{value:a,writable:!0,enumerable:!0,configurable:!0})}function Ni(...e){const t={};for(const a of e){const r=Object.getOwnPropertyDescriptors(a);Object.assign(t,r)}return Object.defineProperties({},t)}function o0(e){return JSON.stringify(e)}function Lx(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const US="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Gs(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const qx=zm(()=>{var e;if(typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)!=null&&e.includes("Cloudflare")))return!1;try{const t=Function;return new t(""),!0}catch{return!1}});function vl(e){if(Gs(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const a=t.prototype;return!(Gs(a)===!1||Object.prototype.hasOwnProperty.call(a,"isPrototypeOf")===!1)}function LS(e){return vl(e)?{...e}:Array.isArray(e)?[...e]:e}const Qx=new Set(["string","number","symbol"]);function pc(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Ti(e,t,a){const r=new e._zod.constr(t??e._zod.def);return(!t||a!=null&&a.parent)&&(r._zod.parent=e),r}function Se(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if((t==null?void 0:t.message)!==void 0){if((t==null?void 0:t.error)!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function Bx(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const Ix={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function Zx(e,t){const a=e._zod.def,r=a.checks;if(r&&r.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const s=Ni(e._zod.def,{get shape(){const c={};for(const d in t){if(!(d in a.shape))throw new Error(`Unrecognized key: "${d}"`);t[d]&&(c[d]=a.shape[d])}return rr(this,"shape",c),c},checks:[]});return Ti(e,s)}function Hx(e,t){const a=e._zod.def,r=a.checks;if(r&&r.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const s=Ni(e._zod.def,{get shape(){const c={...e._zod.def.shape};for(const d in t){if(!(d in a.shape))throw new Error(`Unrecognized key: "${d}"`);t[d]&&delete c[d]}return rr(this,"shape",c),c},checks:[]});return Ti(e,s)}function $x(e,t){if(!vl(t))throw new Error("Invalid input to extend: expected a plain object");const a=e._zod.def.checks;if(a&&a.length>0){const s=e._zod.def.shape;for(const c in t)if(Object.getOwnPropertyDescriptor(s,c)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const u=Ni(e._zod.def,{get shape(){const s={...e._zod.def.shape,...t};return rr(this,"shape",s),s}});return Ti(e,u)}function Gx(e,t){if(!vl(t))throw new Error("Invalid input to safeExtend: expected a plain object");const a=Ni(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t};return rr(this,"shape",r),r}});return Ti(e,a)}function Yx(e,t){const a=Ni(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t._zod.def.shape};return rr(this,"shape",r),r},get catchall(){return t._zod.def.catchall},checks:[]});return Ti(e,a)}function Px(e,t,a){const u=t._zod.def.checks;if(u&&u.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const c=Ni(t._zod.def,{get shape(){const d=t._zod.def.shape,p={...d};if(a)for(const m in a){if(!(m in d))throw new Error(`Unrecognized key: "${m}"`);a[m]&&(p[m]=e?new e({type:"optional",innerType:d[m]}):d[m])}else for(const m in d)p[m]=e?new e({type:"optional",innerType:d[m]}):d[m];return rr(this,"shape",p),p},checks:[]});return Ti(t,c)}function Xx(e,t,a){const r=Ni(t._zod.def,{get shape(){const u=t._zod.def.shape,s={...u};if(a)for(const c in a){if(!(c in s))throw new Error(`Unrecognized key: "${c}"`);a[c]&&(s[c]=new e({type:"nonoptional",innerType:u[c]}))}else for(const c in u)s[c]=new e({type:"nonoptional",innerType:u[c]});return rr(this,"shape",s),s}});return Ti(t,r)}function ll(e,t=0){var a;if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(((a=e.issues[r])==null?void 0:a.continue)!==!0)return!0;return!1}function ul(e,t){return t.map(a=>{var r;return(r=a).path??(r.path=[]),a.path.unshift(e),a})}function ws(e){return typeof e=="string"?e:e==null?void 0:e.message}function ki(e,t,a){var u,s,c,d,p,m;const r={...e,path:e.path??[]};if(!e.message){const v=ws((c=(s=(u=e.inst)==null?void 0:u._zod.def)==null?void 0:s.error)==null?void 0:c.call(s,e))??ws((d=t==null?void 0:t.error)==null?void 0:d.call(t,e))??ws((p=a.customError)==null?void 0:p.call(a,e))??ws((m=a.localeError)==null?void 0:m.call(a,e))??"Invalid input";r.message=v}return delete r.inst,delete r.continue,t!=null&&t.reportInput||delete r.input,r}function Mm(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Ju(...e){const[t,a,r]=e;return typeof t=="string"?{message:t,code:"custom",input:a,inst:r}:{...t}}const qS=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,Zh,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},QS=J("$ZodError",qS),BS=J("$ZodError",qS,{Parent:Error});function Jx(e,t=a=>a.message){const a={},r=[];for(const u of e.issues)u.path.length>0?(a[u.path[0]]=a[u.path[0]]||[],a[u.path[0]].push(t(u))):r.push(t(u));return{formErrors:r,fieldErrors:a}}function Kx(e,t=a=>a.message){const a={_errors:[]},r=u=>{for(const s of u.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(c=>r({issues:c}));else if(s.code==="invalid_key")r({issues:s.issues});else if(s.code==="invalid_element")r({issues:s.issues});else if(s.path.length===0)a._errors.push(t(s));else{let c=a,d=0;for(;d<s.path.length;){const p=s.path[d];d===s.path.length-1?(c[p]=c[p]||{_errors:[]},c[p]._errors.push(t(s))):c[p]=c[p]||{_errors:[]},c=c[p],d++}}};return r(e),a}const Fm=e=>(t,a,r,u)=>{const s=r?Object.assign(r,{async:!1}):{async:!1},c=t._zod.run({value:a,issues:[]},s);if(c instanceof Promise)throw new fl;if(c.issues.length){const d=new((u==null?void 0:u.Err)??e)(c.issues.map(p=>ki(p,s,Si())));throw US(d,u==null?void 0:u.callee),d}return c.value},Vm=e=>async(t,a,r,u)=>{const s=r?Object.assign(r,{async:!0}):{async:!0};let c=t._zod.run({value:a,issues:[]},s);if(c instanceof Promise&&(c=await c),c.issues.length){const d=new((u==null?void 0:u.Err)??e)(c.issues.map(p=>ki(p,s,Si())));throw US(d,u==null?void 0:u.callee),d}return c.value},vc=e=>(t,a,r)=>{const u=r?{...r,async:!1}:{async:!1},s=t._zod.run({value:a,issues:[]},u);if(s instanceof Promise)throw new fl;return s.issues.length?{success:!1,error:new(e??QS)(s.issues.map(c=>ki(c,u,Si())))}:{success:!0,data:s.value}},Wx=vc(BS),yc=e=>async(t,a,r)=>{const u=r?Object.assign(r,{async:!0}):{async:!0};let s=t._zod.run({value:a,issues:[]},u);return s instanceof Promise&&(s=await s),s.issues.length?{success:!1,error:new e(s.issues.map(c=>ki(c,u,Si())))}:{success:!0,data:s.value}},eR=yc(BS),tR=e=>(t,a,r)=>{const u=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Fm(e)(t,a,u)},nR=e=>(t,a,r)=>Fm(e)(t,a,r),aR=e=>async(t,a,r)=>{const u=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Vm(e)(t,a,u)},iR=e=>async(t,a,r)=>Vm(e)(t,a,r),rR=e=>(t,a,r)=>{const u=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return vc(e)(t,a,u)},lR=e=>(t,a,r)=>vc(e)(t,a,r),uR=e=>async(t,a,r)=>{const u=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return yc(e)(t,a,u)},oR=e=>async(t,a,r)=>yc(e)(t,a,r),sR=/^[cC][^\s-]{8,}$/,cR=/^[0-9a-z]+$/,fR=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,dR=/^[0-9a-vA-V]{20}$/,hR=/^[A-Za-z0-9]{27}$/,mR=/^[a-zA-Z0-9_-]{21}$/,pR=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,vR=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,s0=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,yR=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,gR="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function bR(){return new RegExp(gR,"u")}const _R=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,SR=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,kR=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,ER=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,NR=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,IS=/^[A-Za-z0-9_-]*$/,TR=/^\+[1-9]\d{6,14}$/,ZS="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",OR=new RegExp(`^${ZS}$`);function HS(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function wR(e){return new RegExp(`^${HS(e)}$`)}function DR(e){const t=HS({precision:e.precision}),a=["Z"];e.local&&a.push(""),e.offset&&a.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const r=`${t}(?:${a.join("|")})`;return new RegExp(`^${ZS}T(?:${r})$`)}const xR=e=>{const t=e?`[\\s\\S]{${(e==null?void 0:e.minimum)??0},${(e==null?void 0:e.maximum)??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},RR=/^-?\d+$/,$S=/^-?\d+(?:\.\d+)?$/,AR=/^(?:true|false)$/i,zR=/^[^A-Z]*$/,CR=/^[^a-z]*$/,dn=J("$ZodCheck",(e,t)=>{var a;e._zod??(e._zod={}),e._zod.def=t,(a=e._zod).onattach??(a.onattach=[])}),GS={number:"number",bigint:"bigint",object:"date"},YS=J("$ZodCheckLessThan",(e,t)=>{dn.init(e,t);const a=GS[typeof t.value];e._zod.onattach.push(r=>{const u=r._zod.bag,s=(t.inclusive?u.maximum:u.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<s&&(t.inclusive?u.maximum=t.value:u.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:a,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),PS=J("$ZodCheckGreaterThan",(e,t)=>{dn.init(e,t);const a=GS[typeof t.value];e._zod.onattach.push(r=>{const u=r._zod.bag,s=(t.inclusive?u.minimum:u.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>s&&(t.inclusive?u.minimum=t.value:u.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:a,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),jR=J("$ZodCheckMultipleOf",(e,t)=>{dn.init(e,t),e._zod.onattach.push(a=>{var r;(r=a._zod.bag).multipleOf??(r.multipleOf=t.value)}),e._zod.check=a=>{if(typeof a.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof a.value=="bigint"?a.value%t.value===BigInt(0):Ux(a.value,t.value)===0)||a.issues.push({origin:typeof a.value,code:"not_multiple_of",divisor:t.value,input:a.value,inst:e,continue:!t.abort})}}),MR=J("$ZodCheckNumberFormat",(e,t)=>{var c;dn.init(e,t),t.format=t.format||"float64";const a=(c=t.format)==null?void 0:c.includes("int"),r=a?"int":"number",[u,s]=Ix[t.format];e._zod.onattach.push(d=>{const p=d._zod.bag;p.format=t.format,p.minimum=u,p.maximum=s,a&&(p.pattern=RR)}),e._zod.check=d=>{const p=d.value;if(a){if(!Number.isInteger(p)){d.issues.push({expected:r,format:t.format,code:"invalid_type",continue:!1,input:p,inst:e});return}if(!Number.isSafeInteger(p)){p>0?d.issues.push({input:p,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort}):d.issues.push({input:p,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}p<u&&d.issues.push({origin:"number",input:p,code:"too_small",minimum:u,inclusive:!0,inst:e,continue:!t.abort}),p>s&&d.issues.push({origin:"number",input:p,code:"too_big",maximum:s,inclusive:!0,inst:e,continue:!t.abort})}}),FR=J("$ZodCheckMaxLength",(e,t)=>{var a;dn.init(e,t),(a=e._zod.def).when??(a.when=r=>{const u=r.value;return!Cm(u)&&u.length!==void 0}),e._zod.onattach.push(r=>{const u=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<u&&(r._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{const u=r.value;if(u.length<=t.maximum)return;const c=Mm(u);r.issues.push({origin:c,code:"too_big",maximum:t.maximum,inclusive:!0,input:u,inst:e,continue:!t.abort})}}),VR=J("$ZodCheckMinLength",(e,t)=>{var a;dn.init(e,t),(a=e._zod.def).when??(a.when=r=>{const u=r.value;return!Cm(u)&&u.length!==void 0}),e._zod.onattach.push(r=>{const u=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>u&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{const u=r.value;if(u.length>=t.minimum)return;const c=Mm(u);r.issues.push({origin:c,code:"too_small",minimum:t.minimum,inclusive:!0,input:u,inst:e,continue:!t.abort})}}),UR=J("$ZodCheckLengthEquals",(e,t)=>{var a;dn.init(e,t),(a=e._zod.def).when??(a.when=r=>{const u=r.value;return!Cm(u)&&u.length!==void 0}),e._zod.onattach.push(r=>{const u=r._zod.bag;u.minimum=t.length,u.maximum=t.length,u.length=t.length}),e._zod.check=r=>{const u=r.value,s=u.length;if(s===t.length)return;const c=Mm(u),d=s>t.length;r.issues.push({origin:c,...d?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),gc=J("$ZodCheckStringFormat",(e,t)=>{var a,r;dn.init(e,t),e._zod.onattach.push(u=>{const s=u._zod.bag;s.format=t.format,t.pattern&&(s.patterns??(s.patterns=new Set),s.patterns.add(t.pattern))}),t.pattern?(a=e._zod).check??(a.check=u=>{t.pattern.lastIndex=0,!t.pattern.test(u.value)&&u.issues.push({origin:"string",code:"invalid_format",format:t.format,input:u.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),LR=J("$ZodCheckRegex",(e,t)=>{gc.init(e,t),e._zod.check=a=>{t.pattern.lastIndex=0,!t.pattern.test(a.value)&&a.issues.push({origin:"string",code:"invalid_format",format:"regex",input:a.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),qR=J("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=zR),gc.init(e,t)}),QR=J("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=CR),gc.init(e,t)}),BR=J("$ZodCheckIncludes",(e,t)=>{dn.init(e,t);const a=pc(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position}}${a}`:a);t.pattern=r,e._zod.onattach.push(u=>{const s=u._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(r)}),e._zod.check=u=>{u.value.includes(t.includes,t.position)||u.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:u.value,inst:e,continue:!t.abort})}}),IR=J("$ZodCheckStartsWith",(e,t)=>{dn.init(e,t);const a=new RegExp(`^${pc(t.prefix)}.*`);t.pattern??(t.pattern=a),e._zod.onattach.push(r=>{const u=r._zod.bag;u.patterns??(u.patterns=new Set),u.patterns.add(a)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),ZR=J("$ZodCheckEndsWith",(e,t)=>{dn.init(e,t);const a=new RegExp(`.*${pc(t.suffix)}$`);t.pattern??(t.pattern=a),e._zod.onattach.push(r=>{const u=r._zod.bag;u.patterns??(u.patterns=new Set),u.patterns.add(a)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}}),HR=J("$ZodCheckOverwrite",(e,t)=>{dn.init(e,t),e._zod.check=a=>{a.value=t.tx(a.value)}});class $R{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const r=t.split(`
277
+ Please change the parent <Route path="${N}"> to <Route path="${N==="/"?"*":`${N}/*`}">.`)}let v=oa(),y;if(t){let N=typeof t=="string"?kl(t):t;ot(p==="/"||((D=N.pathname)==null?void 0:D.startsWith(p)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${p}" but pathname "${N.pathname}" was given in the \`location\` prop.`),y=N}else y=v;let b=y.pathname||"/",_=b;if(p!=="/"){let N=p.replace(/^\//,"").split("/");_="/"+b.replace(/^\//,"").split("/").slice(N.length).join("/")}let E=yS(e,{pathname:_});Pn(m||E!=null,`No routes matched location "${y.pathname}${y.search}${y.hash}" `),Pn(E==null||E[E.length-1].route.element!==void 0||E[E.length-1].route.Component!==void 0||E[E.length-1].route.lazy!==void 0,`Matched leaf route at location "${y.pathname}${y.search}${y.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let T=PD(E&&E.map(N=>Object.assign({},N,{params:Object.assign({},c,N.params),pathname:la([p,r.encodeLocation?r.encodeLocation(N.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:N.pathname]),pathnameBase:N.pathnameBase==="/"?p:la([p,r.encodeLocation?r.encodeLocation(N.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:N.pathnameBase])})),u,a);return t&&T?F.createElement(eo.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...y},navigationType:"POP"}},T):T}function HD(){let e=ex(),t=RD(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),a=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",u={padding:"0.5rem",backgroundColor:r},s={padding:"2px 4px",backgroundColor:r},c=null;return console.error("Error handled by React Router default ErrorBoundary:",e),c=F.createElement(F.Fragment,null,F.createElement("p",null,"💿 Hey developer 👋"),F.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",F.createElement("code",{style:s},"ErrorBoundary")," or"," ",F.createElement("code",{style:s},"errorElement")," prop on your route.")),F.createElement(F.Fragment,null,F.createElement("h2",null,"Unexpected Application Error!"),F.createElement("h3",{style:{fontStyle:"italic"}},t),a?F.createElement("pre",{style:u},a):null,c)}var $D=F.createElement(HD,null),RS=class extends F.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const a=LD(e.digest);a&&(e=a)}let t=e!==void 0?F.createElement(Jn.Provider,{value:this.props.routeContext},F.createElement(Tm.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?F.createElement(GD,{error:e},t):t}};RS.contextType=ES;var lh=new WeakMap;function GD({children:e,error:t}){let{basename:a}=F.useContext(En);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=UD(t.digest);if(r){let u=lh.get(t);if(u)throw u;let s=SS(r.location,a);if(_S&&!lh.get(t))if(s.isExternal||r.reloadDocument)window.location.href=s.absoluteURL||s.to;else{const c=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(s.to,{replace:r.replace}));throw lh.set(t,c),c}return F.createElement("meta",{httpEquiv:"refresh",content:`0;url=${s.absoluteURL||s.to}`})}}return e}function YD({routeContext:e,match:t,children:a}){let r=F.useContext(El);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),F.createElement(Jn.Provider,{value:e},a)}function PD(e,t=[],a){let r=a==null?void 0:a.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let u=e,s=r==null?void 0:r.errors;if(s!=null){let v=u.findIndex(y=>y.route.id&&(s==null?void 0:s[y.route.id])!==void 0);ot(v>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),u=u.slice(0,Math.min(u.length,v+1))}let c=!1,d=-1;if(a&&r){c=r.renderFallback;for(let v=0;v<u.length;v++){let y=u[v];if((y.route.HydrateFallback||y.route.hydrateFallbackElement)&&(d=v),y.route.id){let{loaderData:b,errors:_}=r,E=y.route.loader&&!b.hasOwnProperty(y.route.id)&&(!_||_[y.route.id]===void 0);if(y.route.lazy||E){a.isStatic&&(c=!0),d>=0?u=u.slice(0,d+1):u=[u[0]];break}}}}let p=a==null?void 0:a.onError,m=r&&p?(v,y)=>{var b,_;p(v,{location:r.location,params:((_=(b=r.matches)==null?void 0:b[0])==null?void 0:_.params)??{},unstable_pattern:AD(r.matches),errorInfo:y})}:void 0;return u.reduceRight((v,y,b)=>{let _,E=!1,T=null,D=null;r&&(_=s&&y.route.id?s[y.route.id]:void 0,T=y.route.errorElement||$D,c&&(d<0&&b===0?(AS("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),E=!0,D=null):d===b&&(E=!0,D=y.route.hydrateFallbackElement||null)));let N=t.concat(u.slice(0,b+1)),w=()=>{let O;return _?O=T:E?O=D:y.route.Component?O=F.createElement(y.route.Component,null):y.route.element?O=y.route.element:O=v,F.createElement(YD,{match:y,routeContext:{outlet:v,matches:N,isDataRoute:r!=null},children:O})};return r&&(y.route.ErrorBoundary||y.route.errorElement||b===0)?F.createElement(RS,{location:r.location,revalidation:r.revalidation,component:T,error:_,children:w(),routeContext:{outlet:null,matches:N,isDataRoute:!0},onError:m}):w()},null)}function Om(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function XD(e){let t=F.useContext(El);return ot(t,Om(e)),t}function JD(e){let t=F.useContext(hc);return ot(t,Om(e)),t}function KD(e){let t=F.useContext(Jn);return ot(t,Om(e)),t}function wm(e){let t=KD(e),a=t.matches[t.matches.length-1];return ot(a.route.id,`${e} can only be used on routes that contain a unique "id"`),a.route.id}function WD(){return wm("useRouteId")}function ex(){var r;let e=F.useContext(Tm),t=JD("useRouteError"),a=wm("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[a]}function tx(){let{router:e}=XD("useNavigate"),t=wm("useNavigate"),a=F.useRef(!1);return wS(()=>{a.current=!0}),F.useCallback(async(u,s={})=>{Pn(a.current,OS),a.current&&(typeof u=="number"?await e.navigate(u):await e.navigate(u,{fromRouteId:t,...s}))},[e,t])}var r0={};function AS(e,t,a){!t&&!r0[e]&&(r0[e]=!0,Pn(!1,a))}F.memo(nx);function nx({routes:e,future:t,state:a,isStatic:r,onError:u}){return xS(e,void 0,{state:a,isStatic:r,onError:u})}function ax({to:e,replace:t,state:a,relative:r}){ot(Nl(),"<Navigate> may be used only in the context of a <Router> component.");let{static:u}=F.useContext(En);Pn(!u,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:s}=F.useContext(Jn),{pathname:c}=oa(),d=DS(),p=dc(e,Nm(s),c,r==="path"),m=JSON.stringify(p);return F.useEffect(()=>{d(JSON.parse(m),{replace:t,state:a,relative:r})},[d,m,r,t,a]),null}function ix(e){return ID(e.context)}function Aa(e){ot(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function rx({basename:e="/",children:t=null,location:a,navigationType:r="POP",navigator:u,static:s=!1,unstable_useTransitions:c}){ot(!Nl(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let d=e.replace(/^\/*/,"/"),p=F.useMemo(()=>({basename:d,navigator:u,static:s,unstable_useTransitions:c,future:{}}),[d,u,s,c]);typeof a=="string"&&(a=kl(a));let{pathname:m="/",search:v="",hash:y="",state:b=null,key:_="default",unstable_mask:E}=a,T=F.useMemo(()=>{let D=Fa(m,d);return D==null?null:{location:{pathname:D,search:v,hash:y,state:b,key:_,unstable_mask:E},navigationType:r}},[d,m,v,y,b,_,r,E]);return Pn(T!=null,`<Router basename="${d}"> is not able to match the URL "${m}${v}${y}" because it does not start with the basename, so the <Router> won't render anything.`),T==null?null:F.createElement(En.Provider,{value:p},F.createElement(eo.Provider,{children:t,value:T}))}function lx({children:e,location:t}){return ZD(Ih(e),t)}function Ih(e,t=[]){let a=[];return F.Children.forEach(e,(r,u)=>{if(!F.isValidElement(r))return;let s=[...t,u];if(r.type===F.Fragment){a.push.apply(a,Ih(r.props.children,s));return}ot(r.type===Aa,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),ot(!r.props.index||!r.props.children,"An index route cannot have child routes.");let c={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(c.children=Ih(r.props.children,s)),a.push(c)}),a}var Us="get",Ls="application/x-www-form-urlencoded";function mc(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function ux(e){return mc(e)&&e.tagName.toLowerCase()==="button"}function ox(e){return mc(e)&&e.tagName.toLowerCase()==="form"}function sx(e){return mc(e)&&e.tagName.toLowerCase()==="input"}function cx(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function fx(e,t){return e.button===0&&(!t||t==="_self")&&!cx(e)}var Os=null;function dx(){if(Os===null)try{new FormData(document.createElement("form"),0),Os=!1}catch{Os=!0}return Os}var hx=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function uh(e){return e!=null&&!hx.has(e)?(Pn(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ls}"`),null):e}function mx(e,t){let a,r,u,s,c;if(ox(e)){let d=e.getAttribute("action");r=d?Fa(d,t):null,a=e.getAttribute("method")||Us,u=uh(e.getAttribute("enctype"))||Ls,s=new FormData(e)}else if(ux(e)||sx(e)&&(e.type==="submit"||e.type==="image")){let d=e.form;if(d==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let p=e.getAttribute("formaction")||d.getAttribute("action");if(r=p?Fa(p,t):null,a=e.getAttribute("formmethod")||d.getAttribute("method")||Us,u=uh(e.getAttribute("formenctype"))||uh(d.getAttribute("enctype"))||Ls,s=new FormData(d,e),!dx()){let{name:m,type:v,value:y}=e;if(v==="image"){let b=m?`${m}.`:"";s.append(`${b}x`,"0"),s.append(`${b}y`,"0")}else m&&s.append(m,y)}}else{if(mc(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');a=Us,r=null,u=Ls,c=e}return s&&u==="text/plain"&&(c=s,s=void 0),{action:r,method:a.toLowerCase(),encType:u,formData:s,body:c}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Dm(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function zS(e,t,a,r){let u=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return a?u.pathname.endsWith("/")?u.pathname=`${u.pathname}_.${r}`:u.pathname=`${u.pathname}.${r}`:u.pathname==="/"?u.pathname=`_root.${r}`:t&&Fa(u.pathname,t)==="/"?u.pathname=`${t.replace(/\/$/,"")}/_root.${r}`:u.pathname=`${u.pathname.replace(/\/$/,"")}.${r}`,u}async function px(e,t){if(e.id in t)return t[e.id];try{let a=await import(e.module);return t[e.id]=a,a}catch(a){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(a),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function vx(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function yx(e,t,a){let r=await Promise.all(e.map(async u=>{let s=t.routes[u.route.id];if(s){let c=await px(s,a);return c.links?c.links():[]}return[]}));return Sx(r.flat(1).filter(vx).filter(u=>u.rel==="stylesheet"||u.rel==="preload").map(u=>u.rel==="stylesheet"?{...u,rel:"prefetch",as:"style"}:{...u,rel:"prefetch"}))}function l0(e,t,a,r,u,s){let c=(p,m)=>a[m]?p.route.id!==a[m].route.id:!0,d=(p,m)=>{var v;return a[m].pathname!==p.pathname||((v=a[m].route.path)==null?void 0:v.endsWith("*"))&&a[m].params["*"]!==p.params["*"]};return s==="assets"?t.filter((p,m)=>c(p,m)||d(p,m)):s==="data"?t.filter((p,m)=>{var y;let v=r.routes[p.route.id];if(!v||!v.hasLoader)return!1;if(c(p,m)||d(p,m))return!0;if(p.route.shouldRevalidate){let b=p.route.shouldRevalidate({currentUrl:new URL(u.pathname+u.search+u.hash,window.origin),currentParams:((y=a[0])==null?void 0:y.params)||{},nextUrl:new URL(e,window.origin),nextParams:p.params,defaultShouldRevalidate:!0});if(typeof b=="boolean")return b}return!0}):[]}function gx(e,t,{includeHydrateFallback:a}={}){return bx(e.map(r=>{let u=t.routes[r.route.id];if(!u)return[];let s=[u.module];return u.clientActionModule&&(s=s.concat(u.clientActionModule)),u.clientLoaderModule&&(s=s.concat(u.clientLoaderModule)),a&&u.hydrateFallbackModule&&(s=s.concat(u.hydrateFallbackModule)),u.imports&&(s=s.concat(u.imports)),s}).flat(1))}function bx(e){return[...new Set(e)]}function _x(e){let t={},a=Object.keys(e).sort();for(let r of a)t[r]=e[r];return t}function Sx(e,t){let a=new Set;return new Set(t),e.reduce((r,u)=>{let s=JSON.stringify(_x(u));return a.has(s)||(a.add(s),r.push({key:s,link:u})),r},[])}function xm(){let e=F.useContext(El);return Dm(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function kx(){let e=F.useContext(hc);return Dm(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Rm=F.createContext(void 0);Rm.displayName="FrameworkContext";function Am(){let e=F.useContext(Rm);return Dm(e,"You must render this element inside a <HydratedRouter> element"),e}function Ex(e,t){let a=F.useContext(Rm),[r,u]=F.useState(!1),[s,c]=F.useState(!1),{onFocus:d,onBlur:p,onMouseEnter:m,onMouseLeave:v,onTouchStart:y}=t,b=F.useRef(null);F.useEffect(()=>{if(e==="render"&&c(!0),e==="viewport"){let T=N=>{N.forEach(w=>{c(w.isIntersecting)})},D=new IntersectionObserver(T,{threshold:.5});return b.current&&D.observe(b.current),()=>{D.disconnect()}}},[e]),F.useEffect(()=>{if(r){let T=setTimeout(()=>{c(!0)},100);return()=>{clearTimeout(T)}}},[r]);let _=()=>{u(!0)},E=()=>{u(!1),c(!1)};return a?e!=="intent"?[s,b,{}]:[s,b,{onFocus:Ru(d,_),onBlur:Ru(p,E),onMouseEnter:Ru(m,_),onMouseLeave:Ru(v,E),onTouchStart:Ru(y,_)}]:[!1,b,{}]}function Ru(e,t){return a=>{e&&e(a),a.defaultPrevented||t(a)}}function Nx({page:e,...t}){let a=CD(),{router:r}=xm(),u=F.useMemo(()=>yS(r.routes,e,r.basename),[r.routes,e,r.basename]);return u?a?F.createElement(Ox,{page:e,matches:u,...t}):F.createElement(wx,{page:e,matches:u,...t}):null}function Tx(e){let{manifest:t,routeModules:a}=Am(),[r,u]=F.useState([]);return F.useEffect(()=>{let s=!1;return yx(e,t,a).then(c=>{s||u(c)}),()=>{s=!0}},[e,t,a]),r}function Ox({page:e,matches:t,...a}){let r=oa(),{future:u}=Am(),{basename:s}=xm(),c=F.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let d=zS(e,s,u.unstable_trailingSlashAwareDataRequests,"rsc"),p=!1,m=[];for(let v of t)typeof v.route.shouldRevalidate=="function"?p=!0:m.push(v.route.id);return p&&m.length>0&&d.searchParams.set("_routes",m.join(",")),[d.pathname+d.search]},[s,u.unstable_trailingSlashAwareDataRequests,e,r,t]);return F.createElement(F.Fragment,null,c.map(d=>F.createElement("link",{key:d,rel:"prefetch",as:"fetch",href:d,...a})))}function wx({page:e,matches:t,...a}){let r=oa(),{future:u,manifest:s,routeModules:c}=Am(),{basename:d}=xm(),{loaderData:p,matches:m}=kx(),v=F.useMemo(()=>l0(e,t,m,s,r,"data"),[e,t,m,s,r]),y=F.useMemo(()=>l0(e,t,m,s,r,"assets"),[e,t,m,s,r]),b=F.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let T=new Set,D=!1;if(t.forEach(w=>{var M;let O=s.routes[w.route.id];!O||!O.hasLoader||(!v.some(z=>z.route.id===w.route.id)&&w.route.id in p&&((M=c[w.route.id])!=null&&M.shouldRevalidate)||O.hasClientLoader?D=!0:T.add(w.route.id))}),T.size===0)return[];let N=zS(e,d,u.unstable_trailingSlashAwareDataRequests,"data");return D&&T.size>0&&N.searchParams.set("_routes",t.filter(w=>T.has(w.route.id)).map(w=>w.route.id).join(",")),[N.pathname+N.search]},[d,u.unstable_trailingSlashAwareDataRequests,p,r,s,v,t,e,c]),_=F.useMemo(()=>gx(y,s),[y,s]),E=Tx(y);return F.createElement(F.Fragment,null,b.map(T=>F.createElement("link",{key:T,rel:"prefetch",as:"fetch",href:T,...a})),_.map(T=>F.createElement("link",{key:T,rel:"modulepreload",href:T,...a})),E.map(({key:T,link:D})=>F.createElement("link",{key:T,nonce:a.nonce,...D,crossOrigin:D.crossOrigin??a.crossOrigin})))}function Dx(...e){return t=>{e.forEach(a=>{typeof a=="function"?a(t):a!=null&&(a.current=t)})}}var xx=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{xx&&(window.__reactRouterVersion="7.14.0")}catch{}function Rx({basename:e,children:t,unstable_useTransitions:a,window:r}){let u=F.useRef();u.current==null&&(u.current=lD({window:r,v5Compat:!0}));let s=u.current,[c,d]=F.useState({action:s.action,location:s.location}),p=F.useCallback(m=>{a===!1?d(m):F.startTransition(()=>d(m))},[a]);return F.useLayoutEffect(()=>s.listen(p),[s,p]),F.createElement(rx,{basename:e,children:t,location:c.location,navigationType:c.action,navigator:s,unstable_useTransitions:a})}var CS=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,jS=F.forwardRef(function({onClick:t,discover:a="render",prefetch:r="none",relative:u,reloadDocument:s,replace:c,unstable_mask:d,state:p,target:m,to:v,preventScrollReset:y,viewTransition:b,unstable_defaultShouldRevalidate:_,...E},T){let{basename:D,navigator:N,unstable_useTransitions:w}=F.useContext(En),O=typeof v=="string"&&CS.test(v),M=SS(v,D);v=M.to;let z=qD(v,{relative:u}),Z=oa(),$=null;if(d){let ce=dc(d,[],Z.unstable_mask?Z.unstable_mask.pathname:"/",!0);D!=="/"&&(ce.pathname=ce.pathname==="/"?D:la([D,ce.pathname])),$=N.createHref(ce)}let[W,se,Ne]=Ex(r,E),Be=Cx(v,{replace:c,unstable_mask:d,state:p,target:m,preventScrollReset:y,relative:u,viewTransition:b,unstable_defaultShouldRevalidate:_,unstable_useTransitions:w});function le(ce){t&&t(ce),ce.defaultPrevented||Be(ce)}let fe=!(M.isExternal||s),ee=F.createElement("a",{...E,...Ne,href:(fe?$:void 0)||M.absoluteURL||z,onClick:fe?le:t,ref:Dx(T,se),target:m,"data-discover":!O&&a==="render"?"true":void 0});return W&&!O?F.createElement(F.Fragment,null,ee,F.createElement(Nx,{page:z})):ee});jS.displayName="Link";var Wr=F.forwardRef(function({"aria-current":t="page",caseSensitive:a=!1,className:r="",end:u=!1,style:s,to:c,viewTransition:d,children:p,...m},v){let y=to(c,{relative:m.relative}),b=oa(),_=F.useContext(hc),{navigator:E,basename:T}=F.useContext(En),D=_!=null&&Ux(y)&&d===!0,N=E.encodeLocation?E.encodeLocation(y).pathname:y.pathname,w=b.pathname,O=_&&_.navigation&&_.navigation.location?_.navigation.location.pathname:null;a||(w=w.toLowerCase(),O=O?O.toLowerCase():null,N=N.toLowerCase()),O&&T&&(O=Fa(O,T)||O);const M=N!=="/"&&N.endsWith("/")?N.length-1:N.length;let z=w===N||!u&&w.startsWith(N)&&w.charAt(M)==="/",Z=O!=null&&(O===N||!u&&O.startsWith(N)&&O.charAt(N.length)==="/"),$={isActive:z,isPending:Z,isTransitioning:D},W=z?t:void 0,se;typeof r=="function"?se=r($):se=[r,z?"active":null,Z?"pending":null,D?"transitioning":null].filter(Boolean).join(" ");let Ne=typeof s=="function"?s($):s;return F.createElement(jS,{...m,"aria-current":W,className:se,ref:v,style:Ne,to:c,viewTransition:d},typeof p=="function"?p($):p)});Wr.displayName="NavLink";var Ax=F.forwardRef(({discover:e="render",fetcherKey:t,navigate:a,reloadDocument:r,replace:u,state:s,method:c=Us,action:d,onSubmit:p,relative:m,preventScrollReset:v,viewTransition:y,unstable_defaultShouldRevalidate:b,..._},E)=>{let{unstable_useTransitions:T}=F.useContext(En),D=Fx(),N=Vx(d,{relative:m}),w=c.toLowerCase()==="get"?"get":"post",O=typeof d=="string"&&CS.test(d),M=z=>{if(p&&p(z),z.defaultPrevented)return;z.preventDefault();let Z=z.nativeEvent.submitter,$=(Z==null?void 0:Z.getAttribute("formmethod"))||c,W=()=>D(Z||z.currentTarget,{fetcherKey:t,method:$,navigate:a,replace:u,state:s,relative:m,preventScrollReset:v,viewTransition:y,unstable_defaultShouldRevalidate:b});T&&a!==!1?F.startTransition(()=>W()):W()};return F.createElement("form",{ref:E,method:w,action:N,onSubmit:r?p:M,..._,"data-discover":!O&&e==="render"?"true":void 0})});Ax.displayName="Form";function zx(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function MS(e){let t=F.useContext(El);return ot(t,zx(e)),t}function Cx(e,{target:t,replace:a,unstable_mask:r,state:u,preventScrollReset:s,relative:c,viewTransition:d,unstable_defaultShouldRevalidate:p,unstable_useTransitions:m}={}){let v=DS(),y=oa(),b=to(e,{relative:c});return F.useCallback(_=>{if(fx(_,t)){_.preventDefault();let E=a!==void 0?a:Xu(y)===Xu(b),T=()=>v(e,{replace:E,unstable_mask:r,state:u,preventScrollReset:s,relative:c,viewTransition:d,unstable_defaultShouldRevalidate:p});m?F.startTransition(()=>T()):T()}},[y,v,b,a,r,u,t,e,s,c,d,p,m])}var jx=0,Mx=()=>`__${String(++jx)}__`;function Fx(){let{router:e}=MS("useSubmit"),{basename:t}=F.useContext(En),a=WD(),r=e.fetch,u=e.navigate;return F.useCallback(async(s,c={})=>{let{action:d,method:p,encType:m,formData:v,body:y}=mx(s,t);if(c.navigate===!1){let b=c.fetcherKey||Mx();await r(b,a,c.action||d,{unstable_defaultShouldRevalidate:c.unstable_defaultShouldRevalidate,preventScrollReset:c.preventScrollReset,formData:v,body:y,formMethod:c.method||p,formEncType:c.encType||m,flushSync:c.flushSync})}else await u(c.action||d,{unstable_defaultShouldRevalidate:c.unstable_defaultShouldRevalidate,preventScrollReset:c.preventScrollReset,formData:v,body:y,formMethod:c.method||p,formEncType:c.encType||m,replace:c.replace,state:c.state,fromRouteId:a,flushSync:c.flushSync,viewTransition:c.viewTransition})},[r,u,t,a])}function Vx(e,{relative:t}={}){let{basename:a}=F.useContext(En),r=F.useContext(Jn);ot(r,"useFormAction must be used inside a RouteContext");let[u]=r.matches.slice(-1),s={...to(e||".",{relative:t})},c=oa();if(e==null){s.search=c.search;let d=new URLSearchParams(s.search),p=d.getAll("index");if(p.some(v=>v==="")){d.delete("index"),p.filter(y=>y).forEach(y=>d.append("index",y));let v=d.toString();s.search=v?`?${v}`:""}}return(!e||e===".")&&u.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),a!=="/"&&(s.pathname=s.pathname==="/"?a:la([a,s.pathname])),Xu(s)}function Ux(e,{relative:t}={}){let a=F.useContext(NS);ot(a!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=MS("useViewTransitionState"),u=to(e,{relative:t});if(!a.isTransitioning)return!1;let s=Fa(a.currentLocation.pathname,r)||a.currentLocation.pathname,c=Fa(a.nextLocation.pathname,r)||a.nextLocation.pathname;return $s(u.pathname,c)!=null||$s(u.pathname,s)!=null}function J(e,t,a){function r(d,p){if(d._zod||Object.defineProperty(d,"_zod",{value:{def:p,constr:c,traits:new Set},enumerable:!1}),d._zod.traits.has(e))return;d._zod.traits.add(e),t(d,p);const m=c.prototype,v=Object.keys(m);for(let y=0;y<v.length;y++){const b=v[y];b in d||(d[b]=m[b].bind(d))}}const u=(a==null?void 0:a.Parent)??Object;class s extends u{}Object.defineProperty(s,"name",{value:e});function c(d){var p;const m=a!=null&&a.Parent?new s:this;r(m,d),(p=m._zod).deferred??(p.deferred=[]);for(const v of m._zod.deferred)v();return m}return Object.defineProperty(c,"init",{value:r}),Object.defineProperty(c,Symbol.hasInstance,{value:d=>{var p,m;return a!=null&&a.Parent&&d instanceof a.Parent?!0:(m=(p=d==null?void 0:d._zod)==null?void 0:p.traits)==null?void 0:m.has(e)}}),Object.defineProperty(c,"name",{value:e}),c}class fl extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class FS extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const VS={};function Si(e){return VS}function US(e){const t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,u])=>t.indexOf(+r)===-1).map(([r,u])=>u)}function Zh(e,t){return typeof t=="bigint"?t.toString():t}function zm(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function Cm(e){return e==null}function jm(e){const t=e.startsWith("^")?1:0,a=e.endsWith("$")?e.length-1:e.length;return e.slice(t,a)}function Lx(e,t){const a=(e.toString().split(".")[1]||"").length,r=t.toString();let u=(r.split(".")[1]||"").length;if(u===0&&/\d?e-\d?/.test(r)){const p=r.match(/\d?e-(\d?)/);p!=null&&p[1]&&(u=Number.parseInt(p[1]))}const s=a>u?a:u,c=Number.parseInt(e.toFixed(s).replace(".","")),d=Number.parseInt(t.toFixed(s).replace(".",""));return c%d/10**s}const u0=Symbol("evaluating");function Pe(e,t,a){let r;Object.defineProperty(e,t,{get(){if(r!==u0)return r===void 0&&(r=u0,r=a()),r},set(u){Object.defineProperty(e,t,{value:u})},configurable:!0})}function rr(e,t,a){Object.defineProperty(e,t,{value:a,writable:!0,enumerable:!0,configurable:!0})}function Ni(...e){const t={};for(const a of e){const r=Object.getOwnPropertyDescriptors(a);Object.assign(t,r)}return Object.defineProperties({},t)}function o0(e){return JSON.stringify(e)}function qx(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const LS="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Gs(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const Qx=zm(()=>{var e;if(typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)!=null&&e.includes("Cloudflare")))return!1;try{const t=Function;return new t(""),!0}catch{return!1}});function vl(e){if(Gs(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const a=t.prototype;return!(Gs(a)===!1||Object.prototype.hasOwnProperty.call(a,"isPrototypeOf")===!1)}function qS(e){return vl(e)?{...e}:Array.isArray(e)?[...e]:e}const Bx=new Set(["string","number","symbol"]);function pc(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Ti(e,t,a){const r=new e._zod.constr(t??e._zod.def);return(!t||a!=null&&a.parent)&&(r._zod.parent=e),r}function Se(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if((t==null?void 0:t.message)!==void 0){if((t==null?void 0:t.error)!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function Ix(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const Zx={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function Hx(e,t){const a=e._zod.def,r=a.checks;if(r&&r.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const s=Ni(e._zod.def,{get shape(){const c={};for(const d in t){if(!(d in a.shape))throw new Error(`Unrecognized key: "${d}"`);t[d]&&(c[d]=a.shape[d])}return rr(this,"shape",c),c},checks:[]});return Ti(e,s)}function $x(e,t){const a=e._zod.def,r=a.checks;if(r&&r.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const s=Ni(e._zod.def,{get shape(){const c={...e._zod.def.shape};for(const d in t){if(!(d in a.shape))throw new Error(`Unrecognized key: "${d}"`);t[d]&&delete c[d]}return rr(this,"shape",c),c},checks:[]});return Ti(e,s)}function Gx(e,t){if(!vl(t))throw new Error("Invalid input to extend: expected a plain object");const a=e._zod.def.checks;if(a&&a.length>0){const s=e._zod.def.shape;for(const c in t)if(Object.getOwnPropertyDescriptor(s,c)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const u=Ni(e._zod.def,{get shape(){const s={...e._zod.def.shape,...t};return rr(this,"shape",s),s}});return Ti(e,u)}function Yx(e,t){if(!vl(t))throw new Error("Invalid input to safeExtend: expected a plain object");const a=Ni(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t};return rr(this,"shape",r),r}});return Ti(e,a)}function Px(e,t){const a=Ni(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t._zod.def.shape};return rr(this,"shape",r),r},get catchall(){return t._zod.def.catchall},checks:[]});return Ti(e,a)}function Xx(e,t,a){const u=t._zod.def.checks;if(u&&u.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const c=Ni(t._zod.def,{get shape(){const d=t._zod.def.shape,p={...d};if(a)for(const m in a){if(!(m in d))throw new Error(`Unrecognized key: "${m}"`);a[m]&&(p[m]=e?new e({type:"optional",innerType:d[m]}):d[m])}else for(const m in d)p[m]=e?new e({type:"optional",innerType:d[m]}):d[m];return rr(this,"shape",p),p},checks:[]});return Ti(t,c)}function Jx(e,t,a){const r=Ni(t._zod.def,{get shape(){const u=t._zod.def.shape,s={...u};if(a)for(const c in a){if(!(c in s))throw new Error(`Unrecognized key: "${c}"`);a[c]&&(s[c]=new e({type:"nonoptional",innerType:u[c]}))}else for(const c in u)s[c]=new e({type:"nonoptional",innerType:u[c]});return rr(this,"shape",s),s}});return Ti(t,r)}function ll(e,t=0){var a;if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(((a=e.issues[r])==null?void 0:a.continue)!==!0)return!0;return!1}function ul(e,t){return t.map(a=>{var r;return(r=a).path??(r.path=[]),a.path.unshift(e),a})}function ws(e){return typeof e=="string"?e:e==null?void 0:e.message}function ki(e,t,a){var u,s,c,d,p,m;const r={...e,path:e.path??[]};if(!e.message){const v=ws((c=(s=(u=e.inst)==null?void 0:u._zod.def)==null?void 0:s.error)==null?void 0:c.call(s,e))??ws((d=t==null?void 0:t.error)==null?void 0:d.call(t,e))??ws((p=a.customError)==null?void 0:p.call(a,e))??ws((m=a.localeError)==null?void 0:m.call(a,e))??"Invalid input";r.message=v}return delete r.inst,delete r.continue,t!=null&&t.reportInput||delete r.input,r}function Mm(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Ju(...e){const[t,a,r]=e;return typeof t=="string"?{message:t,code:"custom",input:a,inst:r}:{...t}}const QS=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,Zh,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},BS=J("$ZodError",QS),IS=J("$ZodError",QS,{Parent:Error});function Kx(e,t=a=>a.message){const a={},r=[];for(const u of e.issues)u.path.length>0?(a[u.path[0]]=a[u.path[0]]||[],a[u.path[0]].push(t(u))):r.push(t(u));return{formErrors:r,fieldErrors:a}}function Wx(e,t=a=>a.message){const a={_errors:[]},r=u=>{for(const s of u.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(c=>r({issues:c}));else if(s.code==="invalid_key")r({issues:s.issues});else if(s.code==="invalid_element")r({issues:s.issues});else if(s.path.length===0)a._errors.push(t(s));else{let c=a,d=0;for(;d<s.path.length;){const p=s.path[d];d===s.path.length-1?(c[p]=c[p]||{_errors:[]},c[p]._errors.push(t(s))):c[p]=c[p]||{_errors:[]},c=c[p],d++}}};return r(e),a}const Fm=e=>(t,a,r,u)=>{const s=r?Object.assign(r,{async:!1}):{async:!1},c=t._zod.run({value:a,issues:[]},s);if(c instanceof Promise)throw new fl;if(c.issues.length){const d=new((u==null?void 0:u.Err)??e)(c.issues.map(p=>ki(p,s,Si())));throw LS(d,u==null?void 0:u.callee),d}return c.value},Vm=e=>async(t,a,r,u)=>{const s=r?Object.assign(r,{async:!0}):{async:!0};let c=t._zod.run({value:a,issues:[]},s);if(c instanceof Promise&&(c=await c),c.issues.length){const d=new((u==null?void 0:u.Err)??e)(c.issues.map(p=>ki(p,s,Si())));throw LS(d,u==null?void 0:u.callee),d}return c.value},vc=e=>(t,a,r)=>{const u=r?{...r,async:!1}:{async:!1},s=t._zod.run({value:a,issues:[]},u);if(s instanceof Promise)throw new fl;return s.issues.length?{success:!1,error:new(e??BS)(s.issues.map(c=>ki(c,u,Si())))}:{success:!0,data:s.value}},eR=vc(IS),yc=e=>async(t,a,r)=>{const u=r?Object.assign(r,{async:!0}):{async:!0};let s=t._zod.run({value:a,issues:[]},u);return s instanceof Promise&&(s=await s),s.issues.length?{success:!1,error:new e(s.issues.map(c=>ki(c,u,Si())))}:{success:!0,data:s.value}},tR=yc(IS),nR=e=>(t,a,r)=>{const u=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Fm(e)(t,a,u)},aR=e=>(t,a,r)=>Fm(e)(t,a,r),iR=e=>async(t,a,r)=>{const u=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Vm(e)(t,a,u)},rR=e=>async(t,a,r)=>Vm(e)(t,a,r),lR=e=>(t,a,r)=>{const u=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return vc(e)(t,a,u)},uR=e=>(t,a,r)=>vc(e)(t,a,r),oR=e=>async(t,a,r)=>{const u=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return yc(e)(t,a,u)},sR=e=>async(t,a,r)=>yc(e)(t,a,r),cR=/^[cC][^\s-]{8,}$/,fR=/^[0-9a-z]+$/,dR=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,hR=/^[0-9a-vA-V]{20}$/,mR=/^[A-Za-z0-9]{27}$/,pR=/^[a-zA-Z0-9_-]{21}$/,vR=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,yR=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,s0=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,gR=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,bR="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function _R(){return new RegExp(bR,"u")}const SR=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,kR=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,ER=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,NR=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,TR=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,ZS=/^[A-Za-z0-9_-]*$/,OR=/^\+[1-9]\d{6,14}$/,HS="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",wR=new RegExp(`^${HS}$`);function $S(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function DR(e){return new RegExp(`^${$S(e)}$`)}function xR(e){const t=$S({precision:e.precision}),a=["Z"];e.local&&a.push(""),e.offset&&a.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const r=`${t}(?:${a.join("|")})`;return new RegExp(`^${HS}T(?:${r})$`)}const RR=e=>{const t=e?`[\\s\\S]{${(e==null?void 0:e.minimum)??0},${(e==null?void 0:e.maximum)??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},AR=/^-?\d+$/,GS=/^-?\d+(?:\.\d+)?$/,zR=/^(?:true|false)$/i,CR=/^[^A-Z]*$/,jR=/^[^a-z]*$/,dn=J("$ZodCheck",(e,t)=>{var a;e._zod??(e._zod={}),e._zod.def=t,(a=e._zod).onattach??(a.onattach=[])}),YS={number:"number",bigint:"bigint",object:"date"},PS=J("$ZodCheckLessThan",(e,t)=>{dn.init(e,t);const a=YS[typeof t.value];e._zod.onattach.push(r=>{const u=r._zod.bag,s=(t.inclusive?u.maximum:u.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<s&&(t.inclusive?u.maximum=t.value:u.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:a,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),XS=J("$ZodCheckGreaterThan",(e,t)=>{dn.init(e,t);const a=YS[typeof t.value];e._zod.onattach.push(r=>{const u=r._zod.bag,s=(t.inclusive?u.minimum:u.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>s&&(t.inclusive?u.minimum=t.value:u.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:a,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),MR=J("$ZodCheckMultipleOf",(e,t)=>{dn.init(e,t),e._zod.onattach.push(a=>{var r;(r=a._zod.bag).multipleOf??(r.multipleOf=t.value)}),e._zod.check=a=>{if(typeof a.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof a.value=="bigint"?a.value%t.value===BigInt(0):Lx(a.value,t.value)===0)||a.issues.push({origin:typeof a.value,code:"not_multiple_of",divisor:t.value,input:a.value,inst:e,continue:!t.abort})}}),FR=J("$ZodCheckNumberFormat",(e,t)=>{var c;dn.init(e,t),t.format=t.format||"float64";const a=(c=t.format)==null?void 0:c.includes("int"),r=a?"int":"number",[u,s]=Zx[t.format];e._zod.onattach.push(d=>{const p=d._zod.bag;p.format=t.format,p.minimum=u,p.maximum=s,a&&(p.pattern=AR)}),e._zod.check=d=>{const p=d.value;if(a){if(!Number.isInteger(p)){d.issues.push({expected:r,format:t.format,code:"invalid_type",continue:!1,input:p,inst:e});return}if(!Number.isSafeInteger(p)){p>0?d.issues.push({input:p,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort}):d.issues.push({input:p,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}p<u&&d.issues.push({origin:"number",input:p,code:"too_small",minimum:u,inclusive:!0,inst:e,continue:!t.abort}),p>s&&d.issues.push({origin:"number",input:p,code:"too_big",maximum:s,inclusive:!0,inst:e,continue:!t.abort})}}),VR=J("$ZodCheckMaxLength",(e,t)=>{var a;dn.init(e,t),(a=e._zod.def).when??(a.when=r=>{const u=r.value;return!Cm(u)&&u.length!==void 0}),e._zod.onattach.push(r=>{const u=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<u&&(r._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{const u=r.value;if(u.length<=t.maximum)return;const c=Mm(u);r.issues.push({origin:c,code:"too_big",maximum:t.maximum,inclusive:!0,input:u,inst:e,continue:!t.abort})}}),UR=J("$ZodCheckMinLength",(e,t)=>{var a;dn.init(e,t),(a=e._zod.def).when??(a.when=r=>{const u=r.value;return!Cm(u)&&u.length!==void 0}),e._zod.onattach.push(r=>{const u=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>u&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{const u=r.value;if(u.length>=t.minimum)return;const c=Mm(u);r.issues.push({origin:c,code:"too_small",minimum:t.minimum,inclusive:!0,input:u,inst:e,continue:!t.abort})}}),LR=J("$ZodCheckLengthEquals",(e,t)=>{var a;dn.init(e,t),(a=e._zod.def).when??(a.when=r=>{const u=r.value;return!Cm(u)&&u.length!==void 0}),e._zod.onattach.push(r=>{const u=r._zod.bag;u.minimum=t.length,u.maximum=t.length,u.length=t.length}),e._zod.check=r=>{const u=r.value,s=u.length;if(s===t.length)return;const c=Mm(u),d=s>t.length;r.issues.push({origin:c,...d?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),gc=J("$ZodCheckStringFormat",(e,t)=>{var a,r;dn.init(e,t),e._zod.onattach.push(u=>{const s=u._zod.bag;s.format=t.format,t.pattern&&(s.patterns??(s.patterns=new Set),s.patterns.add(t.pattern))}),t.pattern?(a=e._zod).check??(a.check=u=>{t.pattern.lastIndex=0,!t.pattern.test(u.value)&&u.issues.push({origin:"string",code:"invalid_format",format:t.format,input:u.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),qR=J("$ZodCheckRegex",(e,t)=>{gc.init(e,t),e._zod.check=a=>{t.pattern.lastIndex=0,!t.pattern.test(a.value)&&a.issues.push({origin:"string",code:"invalid_format",format:"regex",input:a.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),QR=J("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=CR),gc.init(e,t)}),BR=J("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=jR),gc.init(e,t)}),IR=J("$ZodCheckIncludes",(e,t)=>{dn.init(e,t);const a=pc(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position}}${a}`:a);t.pattern=r,e._zod.onattach.push(u=>{const s=u._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(r)}),e._zod.check=u=>{u.value.includes(t.includes,t.position)||u.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:u.value,inst:e,continue:!t.abort})}}),ZR=J("$ZodCheckStartsWith",(e,t)=>{dn.init(e,t);const a=new RegExp(`^${pc(t.prefix)}.*`);t.pattern??(t.pattern=a),e._zod.onattach.push(r=>{const u=r._zod.bag;u.patterns??(u.patterns=new Set),u.patterns.add(a)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),HR=J("$ZodCheckEndsWith",(e,t)=>{dn.init(e,t);const a=new RegExp(`.*${pc(t.suffix)}$`);t.pattern??(t.pattern=a),e._zod.onattach.push(r=>{const u=r._zod.bag;u.patterns??(u.patterns=new Set),u.patterns.add(a)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}}),$R=J("$ZodCheckOverwrite",(e,t)=>{dn.init(e,t),e._zod.check=a=>{a.value=t.tx(a.value)}});class GR{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const r=t.split(`
278
278
  `).filter(c=>c),u=Math.min(...r.map(c=>c.length-c.trimStart().length)),s=r.map(c=>c.slice(u)).map(c=>" ".repeat(this.indent*2)+c);for(const c of s)this.content.push(c)}compile(){const t=Function,a=this==null?void 0:this.args,u=[...((this==null?void 0:this.content)??[""]).map(s=>` ${s}`)];return new t(...a,u.join(`
279
- `))}}const GR={major:4,minor:3,patch:6},yt=J("$ZodType",(e,t)=>{var u;var a;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=GR;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const s of r)for(const c of s._zod.onattach)c(e);if(r.length===0)(a=e._zod).deferred??(a.deferred=[]),(u=e._zod.deferred)==null||u.push(()=>{e._zod.run=e._zod.parse});else{const s=(d,p,m)=>{let v=ll(d),y;for(const b of p){if(b._zod.def.when){if(!b._zod.def.when(d))continue}else if(v)continue;const _=d.issues.length,E=b._zod.check(d);if(E instanceof Promise&&(m==null?void 0:m.async)===!1)throw new fl;if(y||E instanceof Promise)y=(y??Promise.resolve()).then(async()=>{await E,d.issues.length!==_&&(v||(v=ll(d,_)))});else{if(d.issues.length===_)continue;v||(v=ll(d,_))}}return y?y.then(()=>d):d},c=(d,p,m)=>{if(ll(d))return d.aborted=!0,d;const v=s(p,r,m);if(v instanceof Promise){if(m.async===!1)throw new fl;return v.then(y=>e._zod.parse(y,m))}return e._zod.parse(v,m)};e._zod.run=(d,p)=>{if(p.skipChecks)return e._zod.parse(d,p);if(p.direction==="backward"){const v=e._zod.parse({value:d.value,issues:[]},{...p,skipChecks:!0});return v instanceof Promise?v.then(y=>c(y,d,p)):c(v,d,p)}const m=e._zod.parse(d,p);if(m instanceof Promise){if(p.async===!1)throw new fl;return m.then(v=>s(v,r,p))}return s(m,r,p)}}Pe(e,"~standard",()=>({validate:s=>{var c;try{const d=Wx(e,s);return d.success?{value:d.data}:{issues:(c=d.error)==null?void 0:c.issues}}catch{return eR(e,s).then(p=>{var m;return p.success?{value:p.data}:{issues:(m=p.error)==null?void 0:m.issues}})}},vendor:"zod",version:1}))}),Um=J("$ZodString",(e,t)=>{var a;yt.init(e,t),e._zod.pattern=[...((a=e==null?void 0:e._zod.bag)==null?void 0:a.patterns)??[]].pop()??xR(e._zod.bag),e._zod.parse=(r,u)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),st=J("$ZodStringFormat",(e,t)=>{gc.init(e,t),Um.init(e,t)}),YR=J("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=vR),st.init(e,t)}),PR=J("$ZodUUID",(e,t)=>{if(t.version){const r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(r===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=s0(r))}else t.pattern??(t.pattern=s0());st.init(e,t)}),XR=J("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=yR),st.init(e,t)}),JR=J("$ZodURL",(e,t)=>{st.init(e,t),e._zod.check=a=>{try{const r=a.value.trim(),u=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(u.hostname)||a.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:a.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(u.protocol.endsWith(":")?u.protocol.slice(0,-1):u.protocol)||a.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:a.value,inst:e,continue:!t.abort})),t.normalize?a.value=u.href:a.value=r;return}catch{a.issues.push({code:"invalid_format",format:"url",input:a.value,inst:e,continue:!t.abort})}}}),KR=J("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=bR()),st.init(e,t)}),WR=J("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=mR),st.init(e,t)}),eA=J("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=sR),st.init(e,t)}),tA=J("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=cR),st.init(e,t)}),nA=J("$ZodULID",(e,t)=>{t.pattern??(t.pattern=fR),st.init(e,t)}),aA=J("$ZodXID",(e,t)=>{t.pattern??(t.pattern=dR),st.init(e,t)}),iA=J("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=hR),st.init(e,t)}),rA=J("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=DR(t)),st.init(e,t)}),lA=J("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=OR),st.init(e,t)}),uA=J("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=wR(t)),st.init(e,t)}),oA=J("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=pR),st.init(e,t)}),sA=J("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=_R),st.init(e,t),e._zod.bag.format="ipv4"}),cA=J("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=SR),st.init(e,t),e._zod.bag.format="ipv6",e._zod.check=a=>{try{new URL(`http://[${a.value}]`)}catch{a.issues.push({code:"invalid_format",format:"ipv6",input:a.value,inst:e,continue:!t.abort})}}}),fA=J("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=kR),st.init(e,t)}),dA=J("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=ER),st.init(e,t),e._zod.check=a=>{const r=a.value.split("/");try{if(r.length!==2)throw new Error;const[u,s]=r;if(!s)throw new Error;const c=Number(s);if(`${c}`!==s)throw new Error;if(c<0||c>128)throw new Error;new URL(`http://[${u}]`)}catch{a.issues.push({code:"invalid_format",format:"cidrv6",input:a.value,inst:e,continue:!t.abort})}}});function XS(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const hA=J("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=NR),st.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=a=>{XS(a.value)||a.issues.push({code:"invalid_format",format:"base64",input:a.value,inst:e,continue:!t.abort})}});function mA(e){if(!IS.test(e))return!1;const t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),a=t.padEnd(Math.ceil(t.length/4)*4,"=");return XS(a)}const pA=J("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=IS),st.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=a=>{mA(a.value)||a.issues.push({code:"invalid_format",format:"base64url",input:a.value,inst:e,continue:!t.abort})}}),vA=J("$ZodE164",(e,t)=>{t.pattern??(t.pattern=TR),st.init(e,t)});function yA(e,t=null){try{const a=e.split(".");if(a.length!==3)return!1;const[r]=a;if(!r)return!1;const u=JSON.parse(atob(r));return!("typ"in u&&(u==null?void 0:u.typ)!=="JWT"||!u.alg||t&&(!("alg"in u)||u.alg!==t))}catch{return!1}}const gA=J("$ZodJWT",(e,t)=>{st.init(e,t),e._zod.check=a=>{yA(a.value,t.alg)||a.issues.push({code:"invalid_format",format:"jwt",input:a.value,inst:e,continue:!t.abort})}}),JS=J("$ZodNumber",(e,t)=>{yt.init(e,t),e._zod.pattern=e._zod.bag.pattern??$S,e._zod.parse=(a,r)=>{if(t.coerce)try{a.value=Number(a.value)}catch{}const u=a.value;if(typeof u=="number"&&!Number.isNaN(u)&&Number.isFinite(u))return a;const s=typeof u=="number"?Number.isNaN(u)?"NaN":Number.isFinite(u)?void 0:"Infinity":void 0;return a.issues.push({expected:"number",code:"invalid_type",input:u,inst:e,...s?{received:s}:{}}),a}}),bA=J("$ZodNumberFormat",(e,t)=>{MR.init(e,t),JS.init(e,t)}),_A=J("$ZodBoolean",(e,t)=>{yt.init(e,t),e._zod.pattern=AR,e._zod.parse=(a,r)=>{if(t.coerce)try{a.value=!!a.value}catch{}const u=a.value;return typeof u=="boolean"||a.issues.push({expected:"boolean",code:"invalid_type",input:u,inst:e}),a}}),SA=J("$ZodUnknown",(e,t)=>{yt.init(e,t),e._zod.parse=a=>a}),kA=J("$ZodNever",(e,t)=>{yt.init(e,t),e._zod.parse=(a,r)=>(a.issues.push({expected:"never",code:"invalid_type",input:a.value,inst:e}),a)});function c0(e,t,a){e.issues.length&&t.issues.push(...ul(a,e.issues)),t.value[a]=e.value}const EA=J("$ZodArray",(e,t)=>{yt.init(e,t),e._zod.parse=(a,r)=>{const u=a.value;if(!Array.isArray(u))return a.issues.push({expected:"array",code:"invalid_type",input:u,inst:e}),a;a.value=Array(u.length);const s=[];for(let c=0;c<u.length;c++){const d=u[c],p=t.element._zod.run({value:d,issues:[]},r);p instanceof Promise?s.push(p.then(m=>c0(m,a,c))):c0(p,a,c)}return s.length?Promise.all(s).then(()=>a):a}});function Ys(e,t,a,r,u){if(e.issues.length){if(u&&!(a in r))return;t.issues.push(...ul(a,e.issues))}e.value===void 0?a in r&&(t.value[a]=void 0):t.value[a]=e.value}function KS(e){var r,u,s,c;const t=Object.keys(e.shape);for(const d of t)if(!((c=(s=(u=(r=e.shape)==null?void 0:r[d])==null?void 0:u._zod)==null?void 0:s.traits)!=null&&c.has("$ZodType")))throw new Error(`Invalid element at key "${d}": expected a Zod schema`);const a=Bx(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(a)}}function WS(e,t,a,r,u,s){const c=[],d=u.keySet,p=u.catchall._zod,m=p.def.type,v=p.optout==="optional";for(const y in t){if(d.has(y))continue;if(m==="never"){c.push(y);continue}const b=p.run({value:t[y],issues:[]},r);b instanceof Promise?e.push(b.then(_=>Ys(_,a,y,t,v))):Ys(b,a,y,t,v)}return c.length&&a.issues.push({code:"unrecognized_keys",keys:c,input:t,inst:s}),e.length?Promise.all(e).then(()=>a):a}const NA=J("$ZodObject",(e,t)=>{yt.init(e,t);const a=Object.getOwnPropertyDescriptor(t,"shape");if(!(a!=null&&a.get)){const d=t.shape;Object.defineProperty(t,"shape",{get:()=>{const p={...d};return Object.defineProperty(t,"shape",{value:p}),p}})}const r=zm(()=>KS(t));Pe(e._zod,"propValues",()=>{const d=t.shape,p={};for(const m in d){const v=d[m]._zod;if(v.values){p[m]??(p[m]=new Set);for(const y of v.values)p[m].add(y)}}return p});const u=Gs,s=t.catchall;let c;e._zod.parse=(d,p)=>{c??(c=r.value);const m=d.value;if(!u(m))return d.issues.push({expected:"object",code:"invalid_type",input:m,inst:e}),d;d.value={};const v=[],y=c.shape;for(const b of c.keys){const _=y[b],E=_._zod.optout==="optional",T=_._zod.run({value:m[b],issues:[]},p);T instanceof Promise?v.push(T.then(D=>Ys(D,d,b,m,E))):Ys(T,d,b,m,E)}return s?WS(v,m,d,p,r.value,e):v.length?Promise.all(v).then(()=>d):d}}),TA=J("$ZodObjectJIT",(e,t)=>{NA.init(e,t);const a=e._zod.parse,r=zm(()=>KS(t)),u=b=>{var O;const _=new $R(["shape","payload","ctx"]),E=r.value,T=M=>{const z=o0(M);return`shape[${z}]._zod.run({ value: input[${z}], issues: [] }, ctx)`};_.write("const input = payload.value;");const D=Object.create(null);let N=0;for(const M of E.keys)D[M]=`key_${N++}`;_.write("const newResult = {};");for(const M of E.keys){const z=D[M],Z=o0(M),$=b[M],W=((O=$==null?void 0:$._zod)==null?void 0:O.optout)==="optional";_.write(`const ${z} = ${T(M)};`),W?_.write(`
279
+ `))}}const YR={major:4,minor:3,patch:6},yt=J("$ZodType",(e,t)=>{var u;var a;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=YR;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const s of r)for(const c of s._zod.onattach)c(e);if(r.length===0)(a=e._zod).deferred??(a.deferred=[]),(u=e._zod.deferred)==null||u.push(()=>{e._zod.run=e._zod.parse});else{const s=(d,p,m)=>{let v=ll(d),y;for(const b of p){if(b._zod.def.when){if(!b._zod.def.when(d))continue}else if(v)continue;const _=d.issues.length,E=b._zod.check(d);if(E instanceof Promise&&(m==null?void 0:m.async)===!1)throw new fl;if(y||E instanceof Promise)y=(y??Promise.resolve()).then(async()=>{await E,d.issues.length!==_&&(v||(v=ll(d,_)))});else{if(d.issues.length===_)continue;v||(v=ll(d,_))}}return y?y.then(()=>d):d},c=(d,p,m)=>{if(ll(d))return d.aborted=!0,d;const v=s(p,r,m);if(v instanceof Promise){if(m.async===!1)throw new fl;return v.then(y=>e._zod.parse(y,m))}return e._zod.parse(v,m)};e._zod.run=(d,p)=>{if(p.skipChecks)return e._zod.parse(d,p);if(p.direction==="backward"){const v=e._zod.parse({value:d.value,issues:[]},{...p,skipChecks:!0});return v instanceof Promise?v.then(y=>c(y,d,p)):c(v,d,p)}const m=e._zod.parse(d,p);if(m instanceof Promise){if(p.async===!1)throw new fl;return m.then(v=>s(v,r,p))}return s(m,r,p)}}Pe(e,"~standard",()=>({validate:s=>{var c;try{const d=eR(e,s);return d.success?{value:d.data}:{issues:(c=d.error)==null?void 0:c.issues}}catch{return tR(e,s).then(p=>{var m;return p.success?{value:p.data}:{issues:(m=p.error)==null?void 0:m.issues}})}},vendor:"zod",version:1}))}),Um=J("$ZodString",(e,t)=>{var a;yt.init(e,t),e._zod.pattern=[...((a=e==null?void 0:e._zod.bag)==null?void 0:a.patterns)??[]].pop()??RR(e._zod.bag),e._zod.parse=(r,u)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),st=J("$ZodStringFormat",(e,t)=>{gc.init(e,t),Um.init(e,t)}),PR=J("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=yR),st.init(e,t)}),XR=J("$ZodUUID",(e,t)=>{if(t.version){const r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(r===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=s0(r))}else t.pattern??(t.pattern=s0());st.init(e,t)}),JR=J("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=gR),st.init(e,t)}),KR=J("$ZodURL",(e,t)=>{st.init(e,t),e._zod.check=a=>{try{const r=a.value.trim(),u=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(u.hostname)||a.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:a.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(u.protocol.endsWith(":")?u.protocol.slice(0,-1):u.protocol)||a.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:a.value,inst:e,continue:!t.abort})),t.normalize?a.value=u.href:a.value=r;return}catch{a.issues.push({code:"invalid_format",format:"url",input:a.value,inst:e,continue:!t.abort})}}}),WR=J("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=_R()),st.init(e,t)}),eA=J("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=pR),st.init(e,t)}),tA=J("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=cR),st.init(e,t)}),nA=J("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=fR),st.init(e,t)}),aA=J("$ZodULID",(e,t)=>{t.pattern??(t.pattern=dR),st.init(e,t)}),iA=J("$ZodXID",(e,t)=>{t.pattern??(t.pattern=hR),st.init(e,t)}),rA=J("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=mR),st.init(e,t)}),lA=J("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=xR(t)),st.init(e,t)}),uA=J("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=wR),st.init(e,t)}),oA=J("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=DR(t)),st.init(e,t)}),sA=J("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=vR),st.init(e,t)}),cA=J("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=SR),st.init(e,t),e._zod.bag.format="ipv4"}),fA=J("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=kR),st.init(e,t),e._zod.bag.format="ipv6",e._zod.check=a=>{try{new URL(`http://[${a.value}]`)}catch{a.issues.push({code:"invalid_format",format:"ipv6",input:a.value,inst:e,continue:!t.abort})}}}),dA=J("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=ER),st.init(e,t)}),hA=J("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=NR),st.init(e,t),e._zod.check=a=>{const r=a.value.split("/");try{if(r.length!==2)throw new Error;const[u,s]=r;if(!s)throw new Error;const c=Number(s);if(`${c}`!==s)throw new Error;if(c<0||c>128)throw new Error;new URL(`http://[${u}]`)}catch{a.issues.push({code:"invalid_format",format:"cidrv6",input:a.value,inst:e,continue:!t.abort})}}});function JS(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const mA=J("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=TR),st.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=a=>{JS(a.value)||a.issues.push({code:"invalid_format",format:"base64",input:a.value,inst:e,continue:!t.abort})}});function pA(e){if(!ZS.test(e))return!1;const t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),a=t.padEnd(Math.ceil(t.length/4)*4,"=");return JS(a)}const vA=J("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=ZS),st.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=a=>{pA(a.value)||a.issues.push({code:"invalid_format",format:"base64url",input:a.value,inst:e,continue:!t.abort})}}),yA=J("$ZodE164",(e,t)=>{t.pattern??(t.pattern=OR),st.init(e,t)});function gA(e,t=null){try{const a=e.split(".");if(a.length!==3)return!1;const[r]=a;if(!r)return!1;const u=JSON.parse(atob(r));return!("typ"in u&&(u==null?void 0:u.typ)!=="JWT"||!u.alg||t&&(!("alg"in u)||u.alg!==t))}catch{return!1}}const bA=J("$ZodJWT",(e,t)=>{st.init(e,t),e._zod.check=a=>{gA(a.value,t.alg)||a.issues.push({code:"invalid_format",format:"jwt",input:a.value,inst:e,continue:!t.abort})}}),KS=J("$ZodNumber",(e,t)=>{yt.init(e,t),e._zod.pattern=e._zod.bag.pattern??GS,e._zod.parse=(a,r)=>{if(t.coerce)try{a.value=Number(a.value)}catch{}const u=a.value;if(typeof u=="number"&&!Number.isNaN(u)&&Number.isFinite(u))return a;const s=typeof u=="number"?Number.isNaN(u)?"NaN":Number.isFinite(u)?void 0:"Infinity":void 0;return a.issues.push({expected:"number",code:"invalid_type",input:u,inst:e,...s?{received:s}:{}}),a}}),_A=J("$ZodNumberFormat",(e,t)=>{FR.init(e,t),KS.init(e,t)}),SA=J("$ZodBoolean",(e,t)=>{yt.init(e,t),e._zod.pattern=zR,e._zod.parse=(a,r)=>{if(t.coerce)try{a.value=!!a.value}catch{}const u=a.value;return typeof u=="boolean"||a.issues.push({expected:"boolean",code:"invalid_type",input:u,inst:e}),a}}),kA=J("$ZodUnknown",(e,t)=>{yt.init(e,t),e._zod.parse=a=>a}),EA=J("$ZodNever",(e,t)=>{yt.init(e,t),e._zod.parse=(a,r)=>(a.issues.push({expected:"never",code:"invalid_type",input:a.value,inst:e}),a)});function c0(e,t,a){e.issues.length&&t.issues.push(...ul(a,e.issues)),t.value[a]=e.value}const NA=J("$ZodArray",(e,t)=>{yt.init(e,t),e._zod.parse=(a,r)=>{const u=a.value;if(!Array.isArray(u))return a.issues.push({expected:"array",code:"invalid_type",input:u,inst:e}),a;a.value=Array(u.length);const s=[];for(let c=0;c<u.length;c++){const d=u[c],p=t.element._zod.run({value:d,issues:[]},r);p instanceof Promise?s.push(p.then(m=>c0(m,a,c))):c0(p,a,c)}return s.length?Promise.all(s).then(()=>a):a}});function Ys(e,t,a,r,u){if(e.issues.length){if(u&&!(a in r))return;t.issues.push(...ul(a,e.issues))}e.value===void 0?a in r&&(t.value[a]=void 0):t.value[a]=e.value}function WS(e){var r,u,s,c;const t=Object.keys(e.shape);for(const d of t)if(!((c=(s=(u=(r=e.shape)==null?void 0:r[d])==null?void 0:u._zod)==null?void 0:s.traits)!=null&&c.has("$ZodType")))throw new Error(`Invalid element at key "${d}": expected a Zod schema`);const a=Ix(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(a)}}function ek(e,t,a,r,u,s){const c=[],d=u.keySet,p=u.catchall._zod,m=p.def.type,v=p.optout==="optional";for(const y in t){if(d.has(y))continue;if(m==="never"){c.push(y);continue}const b=p.run({value:t[y],issues:[]},r);b instanceof Promise?e.push(b.then(_=>Ys(_,a,y,t,v))):Ys(b,a,y,t,v)}return c.length&&a.issues.push({code:"unrecognized_keys",keys:c,input:t,inst:s}),e.length?Promise.all(e).then(()=>a):a}const TA=J("$ZodObject",(e,t)=>{yt.init(e,t);const a=Object.getOwnPropertyDescriptor(t,"shape");if(!(a!=null&&a.get)){const d=t.shape;Object.defineProperty(t,"shape",{get:()=>{const p={...d};return Object.defineProperty(t,"shape",{value:p}),p}})}const r=zm(()=>WS(t));Pe(e._zod,"propValues",()=>{const d=t.shape,p={};for(const m in d){const v=d[m]._zod;if(v.values){p[m]??(p[m]=new Set);for(const y of v.values)p[m].add(y)}}return p});const u=Gs,s=t.catchall;let c;e._zod.parse=(d,p)=>{c??(c=r.value);const m=d.value;if(!u(m))return d.issues.push({expected:"object",code:"invalid_type",input:m,inst:e}),d;d.value={};const v=[],y=c.shape;for(const b of c.keys){const _=y[b],E=_._zod.optout==="optional",T=_._zod.run({value:m[b],issues:[]},p);T instanceof Promise?v.push(T.then(D=>Ys(D,d,b,m,E))):Ys(T,d,b,m,E)}return s?ek(v,m,d,p,r.value,e):v.length?Promise.all(v).then(()=>d):d}}),OA=J("$ZodObjectJIT",(e,t)=>{TA.init(e,t);const a=e._zod.parse,r=zm(()=>WS(t)),u=b=>{var O;const _=new GR(["shape","payload","ctx"]),E=r.value,T=M=>{const z=o0(M);return`shape[${z}]._zod.run({ value: input[${z}], issues: [] }, ctx)`};_.write("const input = payload.value;");const D=Object.create(null);let N=0;for(const M of E.keys)D[M]=`key_${N++}`;_.write("const newResult = {};");for(const M of E.keys){const z=D[M],Z=o0(M),$=b[M],W=((O=$==null?void 0:$._zod)==null?void 0:O.optout)==="optional";_.write(`const ${z} = ${T(M)};`),W?_.write(`
280
280
  if (${z}.issues.length) {
281
281
  if (${Z} in input) {
282
282
  payload.issues = payload.issues.concat(${z}.issues.map(iss => ({
@@ -310,6 +310,6 @@ Please change the parent <Route path="${N}"> to <Route path="${N==="/"?"*":`${N}
310
310
  newResult[${Z}] = ${z}.value;
311
311
  }
312
312
 
313
- `)}_.write("payload.value = newResult;"),_.write("return payload;");const w=_.compile();return(M,z)=>w(b,M,z)};let s;const c=Gs,d=!FS.jitless,m=d&&qx.value,v=t.catchall;let y;e._zod.parse=(b,_)=>{y??(y=r.value);const E=b.value;return c(E)?d&&m&&(_==null?void 0:_.async)===!1&&_.jitless!==!0?(s||(s=u(t.shape)),b=s(b,_),v?WS([],E,b,_,y,e):b):a(b,_):(b.issues.push({expected:"object",code:"invalid_type",input:E,inst:e}),b)}});function f0(e,t,a,r){for(const s of e)if(s.issues.length===0)return t.value=s.value,t;const u=e.filter(s=>!ll(s));return u.length===1?(t.value=u[0].value,u[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:a,errors:e.map(s=>s.issues.map(c=>ki(c,r,Si())))}),t)}const OA=J("$ZodUnion",(e,t)=>{yt.init(e,t),Pe(e._zod,"optin",()=>t.options.some(u=>u._zod.optin==="optional")?"optional":void 0),Pe(e._zod,"optout",()=>t.options.some(u=>u._zod.optout==="optional")?"optional":void 0),Pe(e._zod,"values",()=>{if(t.options.every(u=>u._zod.values))return new Set(t.options.flatMap(u=>Array.from(u._zod.values)))}),Pe(e._zod,"pattern",()=>{if(t.options.every(u=>u._zod.pattern)){const u=t.options.map(s=>s._zod.pattern);return new RegExp(`^(${u.map(s=>jm(s.source)).join("|")})$`)}});const a=t.options.length===1,r=t.options[0]._zod.run;e._zod.parse=(u,s)=>{if(a)return r(u,s);let c=!1;const d=[];for(const p of t.options){const m=p._zod.run({value:u.value,issues:[]},s);if(m instanceof Promise)d.push(m),c=!0;else{if(m.issues.length===0)return m;d.push(m)}}return c?Promise.all(d).then(p=>f0(p,u,e,s)):f0(d,u,e,s)}}),wA=J("$ZodIntersection",(e,t)=>{yt.init(e,t),e._zod.parse=(a,r)=>{const u=a.value,s=t.left._zod.run({value:u,issues:[]},r),c=t.right._zod.run({value:u,issues:[]},r);return s instanceof Promise||c instanceof Promise?Promise.all([s,c]).then(([p,m])=>d0(a,p,m)):d0(a,s,c)}});function Hh(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(vl(e)&&vl(t)){const a=Object.keys(t),r=Object.keys(e).filter(s=>a.indexOf(s)!==-1),u={...e,...t};for(const s of r){const c=Hh(e[s],t[s]);if(!c.valid)return{valid:!1,mergeErrorPath:[s,...c.mergeErrorPath]};u[s]=c.data}return{valid:!0,data:u}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const a=[];for(let r=0;r<e.length;r++){const u=e[r],s=t[r],c=Hh(u,s);if(!c.valid)return{valid:!1,mergeErrorPath:[r,...c.mergeErrorPath]};a.push(c.data)}return{valid:!0,data:a}}return{valid:!1,mergeErrorPath:[]}}function d0(e,t,a){const r=new Map;let u;for(const d of t.issues)if(d.code==="unrecognized_keys"){u??(u=d);for(const p of d.keys)r.has(p)||r.set(p,{}),r.get(p).l=!0}else e.issues.push(d);for(const d of a.issues)if(d.code==="unrecognized_keys")for(const p of d.keys)r.has(p)||r.set(p,{}),r.get(p).r=!0;else e.issues.push(d);const s=[...r].filter(([,d])=>d.l&&d.r).map(([d])=>d);if(s.length&&u&&e.issues.push({...u,keys:s}),ll(e))return e;const c=Hh(t.value,a.value);if(!c.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(c.mergeErrorPath)}`);return e.value=c.data,e}const DA=J("$ZodRecord",(e,t)=>{yt.init(e,t),e._zod.parse=(a,r)=>{const u=a.value;if(!vl(u))return a.issues.push({expected:"record",code:"invalid_type",input:u,inst:e}),a;const s=[],c=t.keyType._zod.values;if(c){a.value={};const d=new Set;for(const m of c)if(typeof m=="string"||typeof m=="number"||typeof m=="symbol"){d.add(typeof m=="number"?m.toString():m);const v=t.valueType._zod.run({value:u[m],issues:[]},r);v instanceof Promise?s.push(v.then(y=>{y.issues.length&&a.issues.push(...ul(m,y.issues)),a.value[m]=y.value})):(v.issues.length&&a.issues.push(...ul(m,v.issues)),a.value[m]=v.value)}let p;for(const m in u)d.has(m)||(p=p??[],p.push(m));p&&p.length>0&&a.issues.push({code:"unrecognized_keys",input:u,inst:e,keys:p})}else{a.value={};for(const d of Reflect.ownKeys(u)){if(d==="__proto__")continue;let p=t.keyType._zod.run({value:d,issues:[]},r);if(p instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof d=="string"&&$S.test(d)&&p.issues.length){const y=t.keyType._zod.run({value:Number(d),issues:[]},r);if(y instanceof Promise)throw new Error("Async schemas not supported in object keys currently");y.issues.length===0&&(p=y)}if(p.issues.length){t.mode==="loose"?a.value[d]=u[d]:a.issues.push({code:"invalid_key",origin:"record",issues:p.issues.map(y=>ki(y,r,Si())),input:d,path:[d],inst:e});continue}const v=t.valueType._zod.run({value:u[d],issues:[]},r);v instanceof Promise?s.push(v.then(y=>{y.issues.length&&a.issues.push(...ul(d,y.issues)),a.value[p.value]=y.value})):(v.issues.length&&a.issues.push(...ul(d,v.issues)),a.value[p.value]=v.value)}}return s.length?Promise.all(s).then(()=>a):a}}),xA=J("$ZodEnum",(e,t)=>{yt.init(e,t);const a=VS(t.entries),r=new Set(a);e._zod.values=r,e._zod.pattern=new RegExp(`^(${a.filter(u=>Qx.has(typeof u)).map(u=>typeof u=="string"?pc(u):u.toString()).join("|")})$`),e._zod.parse=(u,s)=>{const c=u.value;return r.has(c)||u.issues.push({code:"invalid_value",values:a,input:c,inst:e}),u}}),RA=J("$ZodTransform",(e,t)=>{yt.init(e,t),e._zod.parse=(a,r)=>{if(r.direction==="backward")throw new MS(e.constructor.name);const u=t.transform(a.value,a);if(r.async)return(u instanceof Promise?u:Promise.resolve(u)).then(c=>(a.value=c,a));if(u instanceof Promise)throw new fl;return a.value=u,a}});function h0(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const ek=J("$ZodOptional",(e,t)=>{yt.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Pe(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Pe(e._zod,"pattern",()=>{const a=t.innerType._zod.pattern;return a?new RegExp(`^(${jm(a.source)})?$`):void 0}),e._zod.parse=(a,r)=>{if(t.innerType._zod.optin==="optional"){const u=t.innerType._zod.run(a,r);return u instanceof Promise?u.then(s=>h0(s,a.value)):h0(u,a.value)}return a.value===void 0?a:t.innerType._zod.run(a,r)}}),AA=J("$ZodExactOptional",(e,t)=>{ek.init(e,t),Pe(e._zod,"values",()=>t.innerType._zod.values),Pe(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(a,r)=>t.innerType._zod.run(a,r)}),zA=J("$ZodNullable",(e,t)=>{yt.init(e,t),Pe(e._zod,"optin",()=>t.innerType._zod.optin),Pe(e._zod,"optout",()=>t.innerType._zod.optout),Pe(e._zod,"pattern",()=>{const a=t.innerType._zod.pattern;return a?new RegExp(`^(${jm(a.source)}|null)$`):void 0}),Pe(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(a,r)=>a.value===null?a:t.innerType._zod.run(a,r)}),CA=J("$ZodDefault",(e,t)=>{yt.init(e,t),e._zod.optin="optional",Pe(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(a,r)=>{if(r.direction==="backward")return t.innerType._zod.run(a,r);if(a.value===void 0)return a.value=t.defaultValue,a;const u=t.innerType._zod.run(a,r);return u instanceof Promise?u.then(s=>m0(s,t)):m0(u,t)}});function m0(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const jA=J("$ZodPrefault",(e,t)=>{yt.init(e,t),e._zod.optin="optional",Pe(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(a,r)=>(r.direction==="backward"||a.value===void 0&&(a.value=t.defaultValue),t.innerType._zod.run(a,r))}),MA=J("$ZodNonOptional",(e,t)=>{yt.init(e,t),Pe(e._zod,"values",()=>{const a=t.innerType._zod.values;return a?new Set([...a].filter(r=>r!==void 0)):void 0}),e._zod.parse=(a,r)=>{const u=t.innerType._zod.run(a,r);return u instanceof Promise?u.then(s=>p0(s,e)):p0(u,e)}});function p0(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const FA=J("$ZodCatch",(e,t)=>{yt.init(e,t),Pe(e._zod,"optin",()=>t.innerType._zod.optin),Pe(e._zod,"optout",()=>t.innerType._zod.optout),Pe(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(a,r)=>{if(r.direction==="backward")return t.innerType._zod.run(a,r);const u=t.innerType._zod.run(a,r);return u instanceof Promise?u.then(s=>(a.value=s.value,s.issues.length&&(a.value=t.catchValue({...a,error:{issues:s.issues.map(c=>ki(c,r,Si()))},input:a.value}),a.issues=[]),a)):(a.value=u.value,u.issues.length&&(a.value=t.catchValue({...a,error:{issues:u.issues.map(s=>ki(s,r,Si()))},input:a.value}),a.issues=[]),a)}}),VA=J("$ZodPipe",(e,t)=>{yt.init(e,t),Pe(e._zod,"values",()=>t.in._zod.values),Pe(e._zod,"optin",()=>t.in._zod.optin),Pe(e._zod,"optout",()=>t.out._zod.optout),Pe(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(a,r)=>{if(r.direction==="backward"){const s=t.out._zod.run(a,r);return s instanceof Promise?s.then(c=>Ds(c,t.in,r)):Ds(s,t.in,r)}const u=t.in._zod.run(a,r);return u instanceof Promise?u.then(s=>Ds(s,t.out,r)):Ds(u,t.out,r)}});function Ds(e,t,a){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},a)}const UA=J("$ZodReadonly",(e,t)=>{yt.init(e,t),Pe(e._zod,"propValues",()=>t.innerType._zod.propValues),Pe(e._zod,"values",()=>t.innerType._zod.values),Pe(e._zod,"optin",()=>{var a,r;return(r=(a=t.innerType)==null?void 0:a._zod)==null?void 0:r.optin}),Pe(e._zod,"optout",()=>{var a,r;return(r=(a=t.innerType)==null?void 0:a._zod)==null?void 0:r.optout}),e._zod.parse=(a,r)=>{if(r.direction==="backward")return t.innerType._zod.run(a,r);const u=t.innerType._zod.run(a,r);return u instanceof Promise?u.then(v0):v0(u)}});function v0(e){return e.value=Object.freeze(e.value),e}const LA=J("$ZodCustom",(e,t)=>{dn.init(e,t),yt.init(e,t),e._zod.parse=(a,r)=>a,e._zod.check=a=>{const r=a.value,u=t.fn(r);if(u instanceof Promise)return u.then(s=>y0(s,a,r,e));y0(u,a,r,e)}});function y0(e,t,a,r){if(!e){const u={code:"custom",input:a,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(u.params=r._zod.def.params),t.issues.push(Ju(u))}}var g0;class qA{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...a){const r=a[0];return this._map.set(t,r),r&&typeof r=="object"&&"id"in r&&this._idmap.set(r.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const a=this._map.get(t);return a&&typeof a=="object"&&"id"in a&&this._idmap.delete(a.id),this._map.delete(t),this}get(t){const a=t._zod.parent;if(a){const r={...this.get(a)??{}};delete r.id;const u={...r,...this._map.get(t)};return Object.keys(u).length?u:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function QA(){return new qA}(g0=globalThis).__zod_globalRegistry??(g0.__zod_globalRegistry=QA());const Mu=globalThis.__zod_globalRegistry;function BA(e,t){return new e({type:"string",...Se(t)})}function IA(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...Se(t)})}function b0(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...Se(t)})}function ZA(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...Se(t)})}function HA(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...Se(t)})}function $A(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...Se(t)})}function GA(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...Se(t)})}function YA(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...Se(t)})}function PA(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...Se(t)})}function XA(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...Se(t)})}function JA(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...Se(t)})}function KA(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...Se(t)})}function WA(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...Se(t)})}function ez(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...Se(t)})}function tz(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...Se(t)})}function nz(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...Se(t)})}function az(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...Se(t)})}function iz(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...Se(t)})}function rz(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...Se(t)})}function lz(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...Se(t)})}function uz(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...Se(t)})}function oz(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...Se(t)})}function sz(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...Se(t)})}function cz(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...Se(t)})}function fz(e,t){return new e({type:"string",format:"date",check:"string_format",...Se(t)})}function dz(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...Se(t)})}function hz(e,t){return new e({type:"string",format:"duration",check:"string_format",...Se(t)})}function mz(e,t){return new e({type:"number",checks:[],...Se(t)})}function pz(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...Se(t)})}function vz(e,t){return new e({type:"boolean",...Se(t)})}function yz(e){return new e({type:"unknown"})}function gz(e,t){return new e({type:"never",...Se(t)})}function _0(e,t){return new YS({check:"less_than",...Se(t),value:e,inclusive:!1})}function oh(e,t){return new YS({check:"less_than",...Se(t),value:e,inclusive:!0})}function S0(e,t){return new PS({check:"greater_than",...Se(t),value:e,inclusive:!1})}function sh(e,t){return new PS({check:"greater_than",...Se(t),value:e,inclusive:!0})}function k0(e,t){return new jR({check:"multiple_of",...Se(t),value:e})}function tk(e,t){return new FR({check:"max_length",...Se(t),maximum:e})}function Ps(e,t){return new VR({check:"min_length",...Se(t),minimum:e})}function nk(e,t){return new UR({check:"length_equals",...Se(t),length:e})}function bz(e,t){return new LR({check:"string_format",format:"regex",...Se(t),pattern:e})}function _z(e){return new qR({check:"string_format",format:"lowercase",...Se(e)})}function Sz(e){return new QR({check:"string_format",format:"uppercase",...Se(e)})}function kz(e,t){return new BR({check:"string_format",format:"includes",...Se(t),includes:e})}function Ez(e,t){return new IR({check:"string_format",format:"starts_with",...Se(t),prefix:e})}function Nz(e,t){return new ZR({check:"string_format",format:"ends_with",...Se(t),suffix:e})}function Tl(e){return new HR({check:"overwrite",tx:e})}function Tz(e){return Tl(t=>t.normalize(e))}function Oz(){return Tl(e=>e.trim())}function wz(){return Tl(e=>e.toLowerCase())}function Dz(){return Tl(e=>e.toUpperCase())}function xz(){return Tl(e=>Lx(e))}function Rz(e,t,a){return new e({type:"array",element:t,...Se(a)})}function Az(e,t,a){return new e({type:"custom",check:"custom",fn:t,...Se(a)})}function zz(e){const t=Cz(a=>(a.addIssue=r=>{if(typeof r=="string")a.issues.push(Ju(r,a.value,t._zod.def));else{const u=r;u.fatal&&(u.continue=!1),u.code??(u.code="custom"),u.input??(u.input=a.value),u.inst??(u.inst=t),u.continue??(u.continue=!t._zod.def.abort),a.issues.push(Ju(u))}},e(a.value,a)));return t}function Cz(e,t){const a=new dn({check:"custom",...Se(t)});return a._zod.check=e,a}function ak(e){let t=(e==null?void 0:e.target)??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:(e==null?void 0:e.metadata)??Mu,target:t,unrepresentable:(e==null?void 0:e.unrepresentable)??"throw",override:(e==null?void 0:e.override)??(()=>{}),io:(e==null?void 0:e.io)??"output",counter:0,seen:new Map,cycles:(e==null?void 0:e.cycles)??"ref",reused:(e==null?void 0:e.reused)??"inline",external:(e==null?void 0:e.external)??void 0}}function xt(e,t,a={path:[],schemaPath:[]}){var v,y;var r;const u=e._zod.def,s=t.seen.get(e);if(s)return s.count++,a.schemaPath.includes(e)&&(s.cycle=a.path),s.schema;const c={schema:{},count:1,cycle:void 0,path:a.path};t.seen.set(e,c);const d=(y=(v=e._zod).toJSONSchema)==null?void 0:y.call(v);if(d)c.schema=d;else{const b={...a,schemaPath:[...a.schemaPath,e],path:a.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,c.schema,b);else{const E=c.schema,T=t.processors[u.type];if(!T)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${u.type}`);T(e,t,E,b)}const _=e._zod.parent;_&&(c.ref||(c.ref=_),xt(_,t,b),t.seen.get(_).isParent=!0)}const p=t.metadataRegistry.get(e);return p&&Object.assign(c.schema,p),t.io==="input"&&Xt(e)&&(delete c.schema.examples,delete c.schema.default),t.io==="input"&&c.schema._prefault&&((r=c.schema).default??(r.default=c.schema._prefault)),delete c.schema._prefault,t.seen.get(e).schema}function ik(e,t){var c,d,p,m;const a=e.seen.get(t);if(!a)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=new Map;for(const v of e.seen.entries()){const y=(c=e.metadataRegistry.get(v[0]))==null?void 0:c.id;if(y){const b=r.get(y);if(b&&b!==v[0])throw new Error(`Duplicate schema id "${y}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(y,v[0])}}const u=v=>{var T;const y=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const D=(T=e.external.registry.get(v[0]))==null?void 0:T.id,N=e.external.uri??(O=>O);if(D)return{ref:N(D)};const w=v[1].defId??v[1].schema.id??`schema${e.counter++}`;return v[1].defId=w,{defId:w,ref:`${N("__shared")}#/${y}/${w}`}}if(v[1]===a)return{ref:"#"};const _=`#/${y}/`,E=v[1].schema.id??`__schema${e.counter++}`;return{defId:E,ref:_+E}},s=v=>{if(v[1].schema.$ref)return;const y=v[1],{ref:b,defId:_}=u(v);y.def={...y.schema},_&&(y.defId=_);const E=y.schema;for(const T in E)delete E[T];E.$ref=b};if(e.cycles==="throw")for(const v of e.seen.entries()){const y=v[1];if(y.cycle)throw new Error(`Cycle detected: #/${(d=y.cycle)==null?void 0:d.join("/")}/<root>
313
+ `)}_.write("payload.value = newResult;"),_.write("return payload;");const w=_.compile();return(M,z)=>w(b,M,z)};let s;const c=Gs,d=!VS.jitless,m=d&&Qx.value,v=t.catchall;let y;e._zod.parse=(b,_)=>{y??(y=r.value);const E=b.value;return c(E)?d&&m&&(_==null?void 0:_.async)===!1&&_.jitless!==!0?(s||(s=u(t.shape)),b=s(b,_),v?ek([],E,b,_,y,e):b):a(b,_):(b.issues.push({expected:"object",code:"invalid_type",input:E,inst:e}),b)}});function f0(e,t,a,r){for(const s of e)if(s.issues.length===0)return t.value=s.value,t;const u=e.filter(s=>!ll(s));return u.length===1?(t.value=u[0].value,u[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:a,errors:e.map(s=>s.issues.map(c=>ki(c,r,Si())))}),t)}const wA=J("$ZodUnion",(e,t)=>{yt.init(e,t),Pe(e._zod,"optin",()=>t.options.some(u=>u._zod.optin==="optional")?"optional":void 0),Pe(e._zod,"optout",()=>t.options.some(u=>u._zod.optout==="optional")?"optional":void 0),Pe(e._zod,"values",()=>{if(t.options.every(u=>u._zod.values))return new Set(t.options.flatMap(u=>Array.from(u._zod.values)))}),Pe(e._zod,"pattern",()=>{if(t.options.every(u=>u._zod.pattern)){const u=t.options.map(s=>s._zod.pattern);return new RegExp(`^(${u.map(s=>jm(s.source)).join("|")})$`)}});const a=t.options.length===1,r=t.options[0]._zod.run;e._zod.parse=(u,s)=>{if(a)return r(u,s);let c=!1;const d=[];for(const p of t.options){const m=p._zod.run({value:u.value,issues:[]},s);if(m instanceof Promise)d.push(m),c=!0;else{if(m.issues.length===0)return m;d.push(m)}}return c?Promise.all(d).then(p=>f0(p,u,e,s)):f0(d,u,e,s)}}),DA=J("$ZodIntersection",(e,t)=>{yt.init(e,t),e._zod.parse=(a,r)=>{const u=a.value,s=t.left._zod.run({value:u,issues:[]},r),c=t.right._zod.run({value:u,issues:[]},r);return s instanceof Promise||c instanceof Promise?Promise.all([s,c]).then(([p,m])=>d0(a,p,m)):d0(a,s,c)}});function Hh(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(vl(e)&&vl(t)){const a=Object.keys(t),r=Object.keys(e).filter(s=>a.indexOf(s)!==-1),u={...e,...t};for(const s of r){const c=Hh(e[s],t[s]);if(!c.valid)return{valid:!1,mergeErrorPath:[s,...c.mergeErrorPath]};u[s]=c.data}return{valid:!0,data:u}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const a=[];for(let r=0;r<e.length;r++){const u=e[r],s=t[r],c=Hh(u,s);if(!c.valid)return{valid:!1,mergeErrorPath:[r,...c.mergeErrorPath]};a.push(c.data)}return{valid:!0,data:a}}return{valid:!1,mergeErrorPath:[]}}function d0(e,t,a){const r=new Map;let u;for(const d of t.issues)if(d.code==="unrecognized_keys"){u??(u=d);for(const p of d.keys)r.has(p)||r.set(p,{}),r.get(p).l=!0}else e.issues.push(d);for(const d of a.issues)if(d.code==="unrecognized_keys")for(const p of d.keys)r.has(p)||r.set(p,{}),r.get(p).r=!0;else e.issues.push(d);const s=[...r].filter(([,d])=>d.l&&d.r).map(([d])=>d);if(s.length&&u&&e.issues.push({...u,keys:s}),ll(e))return e;const c=Hh(t.value,a.value);if(!c.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(c.mergeErrorPath)}`);return e.value=c.data,e}const xA=J("$ZodRecord",(e,t)=>{yt.init(e,t),e._zod.parse=(a,r)=>{const u=a.value;if(!vl(u))return a.issues.push({expected:"record",code:"invalid_type",input:u,inst:e}),a;const s=[],c=t.keyType._zod.values;if(c){a.value={};const d=new Set;for(const m of c)if(typeof m=="string"||typeof m=="number"||typeof m=="symbol"){d.add(typeof m=="number"?m.toString():m);const v=t.valueType._zod.run({value:u[m],issues:[]},r);v instanceof Promise?s.push(v.then(y=>{y.issues.length&&a.issues.push(...ul(m,y.issues)),a.value[m]=y.value})):(v.issues.length&&a.issues.push(...ul(m,v.issues)),a.value[m]=v.value)}let p;for(const m in u)d.has(m)||(p=p??[],p.push(m));p&&p.length>0&&a.issues.push({code:"unrecognized_keys",input:u,inst:e,keys:p})}else{a.value={};for(const d of Reflect.ownKeys(u)){if(d==="__proto__")continue;let p=t.keyType._zod.run({value:d,issues:[]},r);if(p instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof d=="string"&&GS.test(d)&&p.issues.length){const y=t.keyType._zod.run({value:Number(d),issues:[]},r);if(y instanceof Promise)throw new Error("Async schemas not supported in object keys currently");y.issues.length===0&&(p=y)}if(p.issues.length){t.mode==="loose"?a.value[d]=u[d]:a.issues.push({code:"invalid_key",origin:"record",issues:p.issues.map(y=>ki(y,r,Si())),input:d,path:[d],inst:e});continue}const v=t.valueType._zod.run({value:u[d],issues:[]},r);v instanceof Promise?s.push(v.then(y=>{y.issues.length&&a.issues.push(...ul(d,y.issues)),a.value[p.value]=y.value})):(v.issues.length&&a.issues.push(...ul(d,v.issues)),a.value[p.value]=v.value)}}return s.length?Promise.all(s).then(()=>a):a}}),RA=J("$ZodEnum",(e,t)=>{yt.init(e,t);const a=US(t.entries),r=new Set(a);e._zod.values=r,e._zod.pattern=new RegExp(`^(${a.filter(u=>Bx.has(typeof u)).map(u=>typeof u=="string"?pc(u):u.toString()).join("|")})$`),e._zod.parse=(u,s)=>{const c=u.value;return r.has(c)||u.issues.push({code:"invalid_value",values:a,input:c,inst:e}),u}}),AA=J("$ZodTransform",(e,t)=>{yt.init(e,t),e._zod.parse=(a,r)=>{if(r.direction==="backward")throw new FS(e.constructor.name);const u=t.transform(a.value,a);if(r.async)return(u instanceof Promise?u:Promise.resolve(u)).then(c=>(a.value=c,a));if(u instanceof Promise)throw new fl;return a.value=u,a}});function h0(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const tk=J("$ZodOptional",(e,t)=>{yt.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Pe(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Pe(e._zod,"pattern",()=>{const a=t.innerType._zod.pattern;return a?new RegExp(`^(${jm(a.source)})?$`):void 0}),e._zod.parse=(a,r)=>{if(t.innerType._zod.optin==="optional"){const u=t.innerType._zod.run(a,r);return u instanceof Promise?u.then(s=>h0(s,a.value)):h0(u,a.value)}return a.value===void 0?a:t.innerType._zod.run(a,r)}}),zA=J("$ZodExactOptional",(e,t)=>{tk.init(e,t),Pe(e._zod,"values",()=>t.innerType._zod.values),Pe(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(a,r)=>t.innerType._zod.run(a,r)}),CA=J("$ZodNullable",(e,t)=>{yt.init(e,t),Pe(e._zod,"optin",()=>t.innerType._zod.optin),Pe(e._zod,"optout",()=>t.innerType._zod.optout),Pe(e._zod,"pattern",()=>{const a=t.innerType._zod.pattern;return a?new RegExp(`^(${jm(a.source)}|null)$`):void 0}),Pe(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(a,r)=>a.value===null?a:t.innerType._zod.run(a,r)}),jA=J("$ZodDefault",(e,t)=>{yt.init(e,t),e._zod.optin="optional",Pe(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(a,r)=>{if(r.direction==="backward")return t.innerType._zod.run(a,r);if(a.value===void 0)return a.value=t.defaultValue,a;const u=t.innerType._zod.run(a,r);return u instanceof Promise?u.then(s=>m0(s,t)):m0(u,t)}});function m0(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const MA=J("$ZodPrefault",(e,t)=>{yt.init(e,t),e._zod.optin="optional",Pe(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(a,r)=>(r.direction==="backward"||a.value===void 0&&(a.value=t.defaultValue),t.innerType._zod.run(a,r))}),FA=J("$ZodNonOptional",(e,t)=>{yt.init(e,t),Pe(e._zod,"values",()=>{const a=t.innerType._zod.values;return a?new Set([...a].filter(r=>r!==void 0)):void 0}),e._zod.parse=(a,r)=>{const u=t.innerType._zod.run(a,r);return u instanceof Promise?u.then(s=>p0(s,e)):p0(u,e)}});function p0(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const VA=J("$ZodCatch",(e,t)=>{yt.init(e,t),Pe(e._zod,"optin",()=>t.innerType._zod.optin),Pe(e._zod,"optout",()=>t.innerType._zod.optout),Pe(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(a,r)=>{if(r.direction==="backward")return t.innerType._zod.run(a,r);const u=t.innerType._zod.run(a,r);return u instanceof Promise?u.then(s=>(a.value=s.value,s.issues.length&&(a.value=t.catchValue({...a,error:{issues:s.issues.map(c=>ki(c,r,Si()))},input:a.value}),a.issues=[]),a)):(a.value=u.value,u.issues.length&&(a.value=t.catchValue({...a,error:{issues:u.issues.map(s=>ki(s,r,Si()))},input:a.value}),a.issues=[]),a)}}),UA=J("$ZodPipe",(e,t)=>{yt.init(e,t),Pe(e._zod,"values",()=>t.in._zod.values),Pe(e._zod,"optin",()=>t.in._zod.optin),Pe(e._zod,"optout",()=>t.out._zod.optout),Pe(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(a,r)=>{if(r.direction==="backward"){const s=t.out._zod.run(a,r);return s instanceof Promise?s.then(c=>Ds(c,t.in,r)):Ds(s,t.in,r)}const u=t.in._zod.run(a,r);return u instanceof Promise?u.then(s=>Ds(s,t.out,r)):Ds(u,t.out,r)}});function Ds(e,t,a){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},a)}const LA=J("$ZodReadonly",(e,t)=>{yt.init(e,t),Pe(e._zod,"propValues",()=>t.innerType._zod.propValues),Pe(e._zod,"values",()=>t.innerType._zod.values),Pe(e._zod,"optin",()=>{var a,r;return(r=(a=t.innerType)==null?void 0:a._zod)==null?void 0:r.optin}),Pe(e._zod,"optout",()=>{var a,r;return(r=(a=t.innerType)==null?void 0:a._zod)==null?void 0:r.optout}),e._zod.parse=(a,r)=>{if(r.direction==="backward")return t.innerType._zod.run(a,r);const u=t.innerType._zod.run(a,r);return u instanceof Promise?u.then(v0):v0(u)}});function v0(e){return e.value=Object.freeze(e.value),e}const qA=J("$ZodCustom",(e,t)=>{dn.init(e,t),yt.init(e,t),e._zod.parse=(a,r)=>a,e._zod.check=a=>{const r=a.value,u=t.fn(r);if(u instanceof Promise)return u.then(s=>y0(s,a,r,e));y0(u,a,r,e)}});function y0(e,t,a,r){if(!e){const u={code:"custom",input:a,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(u.params=r._zod.def.params),t.issues.push(Ju(u))}}var g0;class QA{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...a){const r=a[0];return this._map.set(t,r),r&&typeof r=="object"&&"id"in r&&this._idmap.set(r.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const a=this._map.get(t);return a&&typeof a=="object"&&"id"in a&&this._idmap.delete(a.id),this._map.delete(t),this}get(t){const a=t._zod.parent;if(a){const r={...this.get(a)??{}};delete r.id;const u={...r,...this._map.get(t)};return Object.keys(u).length?u:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function BA(){return new QA}(g0=globalThis).__zod_globalRegistry??(g0.__zod_globalRegistry=BA());const Mu=globalThis.__zod_globalRegistry;function IA(e,t){return new e({type:"string",...Se(t)})}function ZA(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...Se(t)})}function b0(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...Se(t)})}function HA(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...Se(t)})}function $A(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...Se(t)})}function GA(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...Se(t)})}function YA(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...Se(t)})}function PA(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...Se(t)})}function XA(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...Se(t)})}function JA(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...Se(t)})}function KA(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...Se(t)})}function WA(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...Se(t)})}function ez(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...Se(t)})}function tz(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...Se(t)})}function nz(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...Se(t)})}function az(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...Se(t)})}function iz(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...Se(t)})}function rz(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...Se(t)})}function lz(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...Se(t)})}function uz(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...Se(t)})}function oz(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...Se(t)})}function sz(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...Se(t)})}function cz(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...Se(t)})}function fz(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...Se(t)})}function dz(e,t){return new e({type:"string",format:"date",check:"string_format",...Se(t)})}function hz(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...Se(t)})}function mz(e,t){return new e({type:"string",format:"duration",check:"string_format",...Se(t)})}function pz(e,t){return new e({type:"number",checks:[],...Se(t)})}function vz(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...Se(t)})}function yz(e,t){return new e({type:"boolean",...Se(t)})}function gz(e){return new e({type:"unknown"})}function bz(e,t){return new e({type:"never",...Se(t)})}function _0(e,t){return new PS({check:"less_than",...Se(t),value:e,inclusive:!1})}function oh(e,t){return new PS({check:"less_than",...Se(t),value:e,inclusive:!0})}function S0(e,t){return new XS({check:"greater_than",...Se(t),value:e,inclusive:!1})}function sh(e,t){return new XS({check:"greater_than",...Se(t),value:e,inclusive:!0})}function k0(e,t){return new MR({check:"multiple_of",...Se(t),value:e})}function nk(e,t){return new VR({check:"max_length",...Se(t),maximum:e})}function Ps(e,t){return new UR({check:"min_length",...Se(t),minimum:e})}function ak(e,t){return new LR({check:"length_equals",...Se(t),length:e})}function _z(e,t){return new qR({check:"string_format",format:"regex",...Se(t),pattern:e})}function Sz(e){return new QR({check:"string_format",format:"lowercase",...Se(e)})}function kz(e){return new BR({check:"string_format",format:"uppercase",...Se(e)})}function Ez(e,t){return new IR({check:"string_format",format:"includes",...Se(t),includes:e})}function Nz(e,t){return new ZR({check:"string_format",format:"starts_with",...Se(t),prefix:e})}function Tz(e,t){return new HR({check:"string_format",format:"ends_with",...Se(t),suffix:e})}function Tl(e){return new $R({check:"overwrite",tx:e})}function Oz(e){return Tl(t=>t.normalize(e))}function wz(){return Tl(e=>e.trim())}function Dz(){return Tl(e=>e.toLowerCase())}function xz(){return Tl(e=>e.toUpperCase())}function Rz(){return Tl(e=>qx(e))}function Az(e,t,a){return new e({type:"array",element:t,...Se(a)})}function zz(e,t,a){return new e({type:"custom",check:"custom",fn:t,...Se(a)})}function Cz(e){const t=jz(a=>(a.addIssue=r=>{if(typeof r=="string")a.issues.push(Ju(r,a.value,t._zod.def));else{const u=r;u.fatal&&(u.continue=!1),u.code??(u.code="custom"),u.input??(u.input=a.value),u.inst??(u.inst=t),u.continue??(u.continue=!t._zod.def.abort),a.issues.push(Ju(u))}},e(a.value,a)));return t}function jz(e,t){const a=new dn({check:"custom",...Se(t)});return a._zod.check=e,a}function ik(e){let t=(e==null?void 0:e.target)??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:(e==null?void 0:e.metadata)??Mu,target:t,unrepresentable:(e==null?void 0:e.unrepresentable)??"throw",override:(e==null?void 0:e.override)??(()=>{}),io:(e==null?void 0:e.io)??"output",counter:0,seen:new Map,cycles:(e==null?void 0:e.cycles)??"ref",reused:(e==null?void 0:e.reused)??"inline",external:(e==null?void 0:e.external)??void 0}}function xt(e,t,a={path:[],schemaPath:[]}){var v,y;var r;const u=e._zod.def,s=t.seen.get(e);if(s)return s.count++,a.schemaPath.includes(e)&&(s.cycle=a.path),s.schema;const c={schema:{},count:1,cycle:void 0,path:a.path};t.seen.set(e,c);const d=(y=(v=e._zod).toJSONSchema)==null?void 0:y.call(v);if(d)c.schema=d;else{const b={...a,schemaPath:[...a.schemaPath,e],path:a.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,c.schema,b);else{const E=c.schema,T=t.processors[u.type];if(!T)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${u.type}`);T(e,t,E,b)}const _=e._zod.parent;_&&(c.ref||(c.ref=_),xt(_,t,b),t.seen.get(_).isParent=!0)}const p=t.metadataRegistry.get(e);return p&&Object.assign(c.schema,p),t.io==="input"&&Xt(e)&&(delete c.schema.examples,delete c.schema.default),t.io==="input"&&c.schema._prefault&&((r=c.schema).default??(r.default=c.schema._prefault)),delete c.schema._prefault,t.seen.get(e).schema}function rk(e,t){var c,d,p,m;const a=e.seen.get(t);if(!a)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=new Map;for(const v of e.seen.entries()){const y=(c=e.metadataRegistry.get(v[0]))==null?void 0:c.id;if(y){const b=r.get(y);if(b&&b!==v[0])throw new Error(`Duplicate schema id "${y}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(y,v[0])}}const u=v=>{var T;const y=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const D=(T=e.external.registry.get(v[0]))==null?void 0:T.id,N=e.external.uri??(O=>O);if(D)return{ref:N(D)};const w=v[1].defId??v[1].schema.id??`schema${e.counter++}`;return v[1].defId=w,{defId:w,ref:`${N("__shared")}#/${y}/${w}`}}if(v[1]===a)return{ref:"#"};const _=`#/${y}/`,E=v[1].schema.id??`__schema${e.counter++}`;return{defId:E,ref:_+E}},s=v=>{if(v[1].schema.$ref)return;const y=v[1],{ref:b,defId:_}=u(v);y.def={...y.schema},_&&(y.defId=_);const E=y.schema;for(const T in E)delete E[T];E.$ref=b};if(e.cycles==="throw")for(const v of e.seen.entries()){const y=v[1];if(y.cycle)throw new Error(`Cycle detected: #/${(d=y.cycle)==null?void 0:d.join("/")}/<root>
314
314
 
315
- Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const v of e.seen.entries()){const y=v[1];if(t===v[0]){s(v);continue}if(e.external){const _=(p=e.external.registry.get(v[0]))==null?void 0:p.id;if(t!==v[0]&&_){s(v);continue}}if((m=e.metadataRegistry.get(v[0]))==null?void 0:m.id){s(v);continue}if(y.cycle){s(v);continue}if(y.count>1&&e.reused==="ref"){s(v);continue}}}function rk(e,t){var c,d,p;const a=e.seen.get(t);if(!a)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=m=>{const v=e.seen.get(m);if(v.ref===null)return;const y=v.def??v.schema,b={...y},_=v.ref;if(v.ref=null,_){r(_);const T=e.seen.get(_),D=T.schema;if(D.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(y.allOf=y.allOf??[],y.allOf.push(D)):Object.assign(y,D),Object.assign(y,b),m._zod.parent===_)for(const w in y)w==="$ref"||w==="allOf"||w in b||delete y[w];if(D.$ref&&T.def)for(const w in y)w==="$ref"||w==="allOf"||w in T.def&&JSON.stringify(y[w])===JSON.stringify(T.def[w])&&delete y[w]}const E=m._zod.parent;if(E&&E!==_){r(E);const T=e.seen.get(E);if(T!=null&&T.schema.$ref&&(y.$ref=T.schema.$ref,T.def))for(const D in y)D==="$ref"||D==="allOf"||D in T.def&&JSON.stringify(y[D])===JSON.stringify(T.def[D])&&delete y[D]}e.override({zodSchema:m,jsonSchema:y,path:v.path??[]})};for(const m of[...e.seen.entries()].reverse())r(m[0]);const u={};if(e.target==="draft-2020-12"?u.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?u.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?u.$schema="http://json-schema.org/draft-04/schema#":e.target,(c=e.external)!=null&&c.uri){const m=(d=e.external.registry.get(t))==null?void 0:d.id;if(!m)throw new Error("Schema is missing an `id` property");u.$id=e.external.uri(m)}Object.assign(u,a.def??a.schema);const s=((p=e.external)==null?void 0:p.defs)??{};for(const m of e.seen.entries()){const v=m[1];v.def&&v.defId&&(s[v.defId]=v.def)}e.external||Object.keys(s).length>0&&(e.target==="draft-2020-12"?u.$defs=s:u.definitions=s);try{const m=JSON.parse(JSON.stringify(u));return Object.defineProperty(m,"~standard",{value:{...t["~standard"],jsonSchema:{input:Xs(t,"input",e.processors),output:Xs(t,"output",e.processors)}},enumerable:!1,writable:!1}),m}catch{throw new Error("Error converting schema to JSON.")}}function Xt(e,t){const a=t??{seen:new Set};if(a.seen.has(e))return!1;a.seen.add(e);const r=e._zod.def;if(r.type==="transform")return!0;if(r.type==="array")return Xt(r.element,a);if(r.type==="set")return Xt(r.valueType,a);if(r.type==="lazy")return Xt(r.getter(),a);if(r.type==="promise"||r.type==="optional"||r.type==="nonoptional"||r.type==="nullable"||r.type==="readonly"||r.type==="default"||r.type==="prefault")return Xt(r.innerType,a);if(r.type==="intersection")return Xt(r.left,a)||Xt(r.right,a);if(r.type==="record"||r.type==="map")return Xt(r.keyType,a)||Xt(r.valueType,a);if(r.type==="pipe")return Xt(r.in,a)||Xt(r.out,a);if(r.type==="object"){for(const u in r.shape)if(Xt(r.shape[u],a))return!0;return!1}if(r.type==="union"){for(const u of r.options)if(Xt(u,a))return!0;return!1}if(r.type==="tuple"){for(const u of r.items)if(Xt(u,a))return!0;return!!(r.rest&&Xt(r.rest,a))}return!1}const jz=(e,t={})=>a=>{const r=ak({...a,processors:t});return xt(e,r),ik(r,e),rk(r,e)},Xs=(e,t,a={})=>r=>{const{libraryOptions:u,target:s}=r??{},c=ak({...u??{},target:s,io:t,processors:a});return xt(e,c),ik(c,e),rk(c,e)},Mz={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Fz=(e,t,a,r)=>{const u=a;u.type="string";const{minimum:s,maximum:c,format:d,patterns:p,contentEncoding:m}=e._zod.bag;if(typeof s=="number"&&(u.minLength=s),typeof c=="number"&&(u.maxLength=c),d&&(u.format=Mz[d]??d,u.format===""&&delete u.format,d==="time"&&delete u.format),m&&(u.contentEncoding=m),p&&p.size>0){const v=[...p];v.length===1?u.pattern=v[0].source:v.length>1&&(u.allOf=[...v.map(y=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:y.source}))])}},Vz=(e,t,a,r)=>{const u=a,{minimum:s,maximum:c,format:d,multipleOf:p,exclusiveMaximum:m,exclusiveMinimum:v}=e._zod.bag;typeof d=="string"&&d.includes("int")?u.type="integer":u.type="number",typeof v=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(u.minimum=v,u.exclusiveMinimum=!0):u.exclusiveMinimum=v),typeof s=="number"&&(u.minimum=s,typeof v=="number"&&t.target!=="draft-04"&&(v>=s?delete u.minimum:delete u.exclusiveMinimum)),typeof m=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(u.maximum=m,u.exclusiveMaximum=!0):u.exclusiveMaximum=m),typeof c=="number"&&(u.maximum=c,typeof m=="number"&&t.target!=="draft-04"&&(m<=c?delete u.maximum:delete u.exclusiveMaximum)),typeof p=="number"&&(u.multipleOf=p)},Uz=(e,t,a,r)=>{a.type="boolean"},Lz=(e,t,a,r)=>{a.not={}},qz=(e,t,a,r)=>{},Qz=(e,t,a,r)=>{const u=e._zod.def,s=VS(u.entries);s.every(c=>typeof c=="number")&&(a.type="number"),s.every(c=>typeof c=="string")&&(a.type="string"),a.enum=s},Bz=(e,t,a,r)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},Iz=(e,t,a,r)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},Zz=(e,t,a,r)=>{const u=a,s=e._zod.def,{minimum:c,maximum:d}=e._zod.bag;typeof c=="number"&&(u.minItems=c),typeof d=="number"&&(u.maxItems=d),u.type="array",u.items=xt(s.element,t,{...r,path:[...r.path,"items"]})},Hz=(e,t,a,r)=>{var m;const u=a,s=e._zod.def;u.type="object",u.properties={};const c=s.shape;for(const v in c)u.properties[v]=xt(c[v],t,{...r,path:[...r.path,"properties",v]});const d=new Set(Object.keys(c)),p=new Set([...d].filter(v=>{const y=s.shape[v]._zod;return t.io==="input"?y.optin===void 0:y.optout===void 0}));p.size>0&&(u.required=Array.from(p)),((m=s.catchall)==null?void 0:m._zod.def.type)==="never"?u.additionalProperties=!1:s.catchall?s.catchall&&(u.additionalProperties=xt(s.catchall,t,{...r,path:[...r.path,"additionalProperties"]})):t.io==="output"&&(u.additionalProperties=!1)},$z=(e,t,a,r)=>{const u=e._zod.def,s=u.inclusive===!1,c=u.options.map((d,p)=>xt(d,t,{...r,path:[...r.path,s?"oneOf":"anyOf",p]}));s?a.oneOf=c:a.anyOf=c},Gz=(e,t,a,r)=>{const u=e._zod.def,s=xt(u.left,t,{...r,path:[...r.path,"allOf",0]}),c=xt(u.right,t,{...r,path:[...r.path,"allOf",1]}),d=m=>"allOf"in m&&Object.keys(m).length===1,p=[...d(s)?s.allOf:[s],...d(c)?c.allOf:[c]];a.allOf=p},Yz=(e,t,a,r)=>{const u=a,s=e._zod.def;u.type="object";const c=s.keyType,d=c._zod.bag,p=d==null?void 0:d.patterns;if(s.mode==="loose"&&p&&p.size>0){const v=xt(s.valueType,t,{...r,path:[...r.path,"patternProperties","*"]});u.patternProperties={};for(const y of p)u.patternProperties[y.source]=v}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(u.propertyNames=xt(s.keyType,t,{...r,path:[...r.path,"propertyNames"]})),u.additionalProperties=xt(s.valueType,t,{...r,path:[...r.path,"additionalProperties"]});const m=c._zod.values;if(m){const v=[...m].filter(y=>typeof y=="string"||typeof y=="number");v.length>0&&(u.required=v)}},Pz=(e,t,a,r)=>{const u=e._zod.def,s=xt(u.innerType,t,r),c=t.seen.get(e);t.target==="openapi-3.0"?(c.ref=u.innerType,a.nullable=!0):a.anyOf=[s,{type:"null"}]},Xz=(e,t,a,r)=>{const u=e._zod.def;xt(u.innerType,t,r);const s=t.seen.get(e);s.ref=u.innerType},Jz=(e,t,a,r)=>{const u=e._zod.def;xt(u.innerType,t,r);const s=t.seen.get(e);s.ref=u.innerType,a.default=JSON.parse(JSON.stringify(u.defaultValue))},Kz=(e,t,a,r)=>{const u=e._zod.def;xt(u.innerType,t,r);const s=t.seen.get(e);s.ref=u.innerType,t.io==="input"&&(a._prefault=JSON.parse(JSON.stringify(u.defaultValue)))},Wz=(e,t,a,r)=>{const u=e._zod.def;xt(u.innerType,t,r);const s=t.seen.get(e);s.ref=u.innerType;let c;try{c=u.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}a.default=c},eC=(e,t,a,r)=>{const u=e._zod.def,s=t.io==="input"?u.in._zod.def.type==="transform"?u.out:u.in:u.out;xt(s,t,r);const c=t.seen.get(e);c.ref=s},tC=(e,t,a,r)=>{const u=e._zod.def;xt(u.innerType,t,r);const s=t.seen.get(e);s.ref=u.innerType,a.readOnly=!0},lk=(e,t,a,r)=>{const u=e._zod.def;xt(u.innerType,t,r);const s=t.seen.get(e);s.ref=u.innerType},nC=J("ZodISODateTime",(e,t)=>{rA.init(e,t),dt.init(e,t)});function aC(e){return cz(nC,e)}const iC=J("ZodISODate",(e,t)=>{lA.init(e,t),dt.init(e,t)});function rC(e){return fz(iC,e)}const lC=J("ZodISOTime",(e,t)=>{uA.init(e,t),dt.init(e,t)});function uC(e){return dz(lC,e)}const oC=J("ZodISODuration",(e,t)=>{oA.init(e,t),dt.init(e,t)});function sC(e){return hz(oC,e)}const cC=(e,t)=>{QS.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:a=>Kx(e,a)},flatten:{value:a=>Jx(e,a)},addIssue:{value:a=>{e.issues.push(a),e.message=JSON.stringify(e.issues,Zh,2)}},addIssues:{value:a=>{e.issues.push(...a),e.message=JSON.stringify(e.issues,Zh,2)}},isEmpty:{get(){return e.issues.length===0}}})},Vn=J("ZodError",cC,{Parent:Error}),fC=Fm(Vn),dC=Vm(Vn),hC=vc(Vn),mC=yc(Vn),pC=tR(Vn),vC=nR(Vn),yC=aR(Vn),gC=iR(Vn),bC=rR(Vn),_C=lR(Vn),SC=uR(Vn),kC=oR(Vn),gt=J("ZodType",(e,t)=>(yt.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Xs(e,"input"),output:Xs(e,"output")}}),e.toJSONSchema=jz(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...a)=>e.clone(Ni(t,{checks:[...t.checks??[],...a.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]}),{parent:!0}),e.with=e.check,e.clone=(a,r)=>Ti(e,a,r),e.brand=()=>e,e.register=((a,r)=>(a.add(e,r),e)),e.parse=(a,r)=>fC(e,a,r,{callee:e.parse}),e.safeParse=(a,r)=>hC(e,a,r),e.parseAsync=async(a,r)=>dC(e,a,r,{callee:e.parseAsync}),e.safeParseAsync=async(a,r)=>mC(e,a,r),e.spa=e.safeParseAsync,e.encode=(a,r)=>pC(e,a,r),e.decode=(a,r)=>vC(e,a,r),e.encodeAsync=async(a,r)=>yC(e,a,r),e.decodeAsync=async(a,r)=>gC(e,a,r),e.safeEncode=(a,r)=>bC(e,a,r),e.safeDecode=(a,r)=>_C(e,a,r),e.safeEncodeAsync=async(a,r)=>SC(e,a,r),e.safeDecodeAsync=async(a,r)=>kC(e,a,r),e.refine=(a,r)=>e.check(pj(a,r)),e.superRefine=a=>e.check(vj(a)),e.overwrite=a=>e.check(Tl(a)),e.optional=()=>T0(e),e.exactOptional=()=>nj(e),e.nullable=()=>O0(e),e.nullish=()=>T0(O0(e)),e.nonoptional=a=>oj(e,a),e.array=()=>nr(e),e.or=a=>YC([e,a]),e.and=a=>XC(e,a),e.transform=a=>w0(e,ej(a)),e.default=a=>rj(e,a),e.prefault=a=>uj(e,a),e.catch=a=>cj(e,a),e.pipe=a=>w0(e,a),e.readonly=()=>hj(e),e.describe=a=>{const r=e.clone();return Mu.add(r,{description:a}),r},Object.defineProperty(e,"description",{get(){var a;return(a=Mu.get(e))==null?void 0:a.description},configurable:!0}),e.meta=(...a)=>{if(a.length===0)return Mu.get(e);const r=e.clone();return Mu.add(r,a[0]),r},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=a=>a(e),e)),uk=J("_ZodString",(e,t)=>{Um.init(e,t),gt.init(e,t),e._zod.processJSONSchema=(r,u,s)=>Fz(e,r,u);const a=e._zod.bag;e.format=a.format??null,e.minLength=a.minimum??null,e.maxLength=a.maximum??null,e.regex=(...r)=>e.check(bz(...r)),e.includes=(...r)=>e.check(kz(...r)),e.startsWith=(...r)=>e.check(Ez(...r)),e.endsWith=(...r)=>e.check(Nz(...r)),e.min=(...r)=>e.check(Ps(...r)),e.max=(...r)=>e.check(tk(...r)),e.length=(...r)=>e.check(nk(...r)),e.nonempty=(...r)=>e.check(Ps(1,...r)),e.lowercase=r=>e.check(_z(r)),e.uppercase=r=>e.check(Sz(r)),e.trim=()=>e.check(Oz()),e.normalize=(...r)=>e.check(Tz(...r)),e.toLowerCase=()=>e.check(wz()),e.toUpperCase=()=>e.check(Dz()),e.slugify=()=>e.check(xz())}),EC=J("ZodString",(e,t)=>{Um.init(e,t),uk.init(e,t),e.email=a=>e.check(IA(NC,a)),e.url=a=>e.check(YA(TC,a)),e.jwt=a=>e.check(sz(qC,a)),e.emoji=a=>e.check(PA(OC,a)),e.guid=a=>e.check(b0(E0,a)),e.uuid=a=>e.check(ZA(xs,a)),e.uuidv4=a=>e.check(HA(xs,a)),e.uuidv6=a=>e.check($A(xs,a)),e.uuidv7=a=>e.check(GA(xs,a)),e.nanoid=a=>e.check(XA(wC,a)),e.guid=a=>e.check(b0(E0,a)),e.cuid=a=>e.check(JA(DC,a)),e.cuid2=a=>e.check(KA(xC,a)),e.ulid=a=>e.check(WA(RC,a)),e.base64=a=>e.check(lz(VC,a)),e.base64url=a=>e.check(uz(UC,a)),e.xid=a=>e.check(ez(AC,a)),e.ksuid=a=>e.check(tz(zC,a)),e.ipv4=a=>e.check(nz(CC,a)),e.ipv6=a=>e.check(az(jC,a)),e.cidrv4=a=>e.check(iz(MC,a)),e.cidrv6=a=>e.check(rz(FC,a)),e.e164=a=>e.check(oz(LC,a)),e.datetime=a=>e.check(aC(a)),e.date=a=>e.check(rC(a)),e.time=a=>e.check(uC(a)),e.duration=a=>e.check(sC(a))});function Ae(e){return BA(EC,e)}const dt=J("ZodStringFormat",(e,t)=>{st.init(e,t),uk.init(e,t)}),NC=J("ZodEmail",(e,t)=>{XR.init(e,t),dt.init(e,t)}),E0=J("ZodGUID",(e,t)=>{YR.init(e,t),dt.init(e,t)}),xs=J("ZodUUID",(e,t)=>{PR.init(e,t),dt.init(e,t)}),TC=J("ZodURL",(e,t)=>{JR.init(e,t),dt.init(e,t)}),OC=J("ZodEmoji",(e,t)=>{KR.init(e,t),dt.init(e,t)}),wC=J("ZodNanoID",(e,t)=>{WR.init(e,t),dt.init(e,t)}),DC=J("ZodCUID",(e,t)=>{eA.init(e,t),dt.init(e,t)}),xC=J("ZodCUID2",(e,t)=>{tA.init(e,t),dt.init(e,t)}),RC=J("ZodULID",(e,t)=>{nA.init(e,t),dt.init(e,t)}),AC=J("ZodXID",(e,t)=>{aA.init(e,t),dt.init(e,t)}),zC=J("ZodKSUID",(e,t)=>{iA.init(e,t),dt.init(e,t)}),CC=J("ZodIPv4",(e,t)=>{sA.init(e,t),dt.init(e,t)}),jC=J("ZodIPv6",(e,t)=>{cA.init(e,t),dt.init(e,t)}),MC=J("ZodCIDRv4",(e,t)=>{fA.init(e,t),dt.init(e,t)}),FC=J("ZodCIDRv6",(e,t)=>{dA.init(e,t),dt.init(e,t)}),VC=J("ZodBase64",(e,t)=>{hA.init(e,t),dt.init(e,t)}),UC=J("ZodBase64URL",(e,t)=>{pA.init(e,t),dt.init(e,t)}),LC=J("ZodE164",(e,t)=>{vA.init(e,t),dt.init(e,t)}),qC=J("ZodJWT",(e,t)=>{gA.init(e,t),dt.init(e,t)}),ok=J("ZodNumber",(e,t)=>{JS.init(e,t),gt.init(e,t),e._zod.processJSONSchema=(r,u,s)=>Vz(e,r,u),e.gt=(r,u)=>e.check(S0(r,u)),e.gte=(r,u)=>e.check(sh(r,u)),e.min=(r,u)=>e.check(sh(r,u)),e.lt=(r,u)=>e.check(_0(r,u)),e.lte=(r,u)=>e.check(oh(r,u)),e.max=(r,u)=>e.check(oh(r,u)),e.int=r=>e.check(N0(r)),e.safe=r=>e.check(N0(r)),e.positive=r=>e.check(S0(0,r)),e.nonnegative=r=>e.check(sh(0,r)),e.negative=r=>e.check(_0(0,r)),e.nonpositive=r=>e.check(oh(0,r)),e.multipleOf=(r,u)=>e.check(k0(r,u)),e.step=(r,u)=>e.check(k0(r,u)),e.finite=()=>e;const a=e._zod.bag;e.minValue=Math.max(a.minimum??Number.NEGATIVE_INFINITY,a.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(a.maximum??Number.POSITIVE_INFINITY,a.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(a.format??"").includes("int")||Number.isSafeInteger(a.multipleOf??.5),e.isFinite=!0,e.format=a.format??null});function Zt(e){return mz(ok,e)}const QC=J("ZodNumberFormat",(e,t)=>{bA.init(e,t),ok.init(e,t)});function N0(e){return pz(QC,e)}const BC=J("ZodBoolean",(e,t)=>{_A.init(e,t),gt.init(e,t),e._zod.processJSONSchema=(a,r,u)=>Uz(e,a,r)});function Ji(e){return vz(BC,e)}const IC=J("ZodUnknown",(e,t)=>{SA.init(e,t),gt.init(e,t),e._zod.processJSONSchema=(a,r,u)=>qz()});function $h(){return yz(IC)}const ZC=J("ZodNever",(e,t)=>{kA.init(e,t),gt.init(e,t),e._zod.processJSONSchema=(a,r,u)=>Lz(e,a,r)});function HC(e){return gz(ZC,e)}const $C=J("ZodArray",(e,t)=>{EA.init(e,t),gt.init(e,t),e._zod.processJSONSchema=(a,r,u)=>Zz(e,a,r,u),e.element=t.element,e.min=(a,r)=>e.check(Ps(a,r)),e.nonempty=a=>e.check(Ps(1,a)),e.max=(a,r)=>e.check(tk(a,r)),e.length=(a,r)=>e.check(nk(a,r)),e.unwrap=()=>e.element});function nr(e,t){return Rz($C,e,t)}const sk=J("ZodObject",(e,t)=>{TA.init(e,t),gt.init(e,t),e._zod.processJSONSchema=(a,r,u)=>Hz(e,a,r,u),Pe(e,"shape",()=>t.shape),e.keyof=()=>Ol(Object.keys(e._zod.def.shape)),e.catchall=a=>e.clone({...e._zod.def,catchall:a}),e.passthrough=()=>e.clone({...e._zod.def,catchall:$h()}),e.loose=()=>e.clone({...e._zod.def,catchall:$h()}),e.strict=()=>e.clone({...e._zod.def,catchall:HC()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=a=>$x(e,a),e.safeExtend=a=>Gx(e,a),e.merge=a=>Yx(e,a),e.pick=a=>Zx(e,a),e.omit=a=>Hx(e,a),e.partial=(...a)=>Px(ck,e,a[0]),e.required=(...a)=>Xx(fk,e,a[0])});function Ua(e,t){const a={type:"object",shape:e??{},...Se(t)};return new sk(a)}function za(e,t){return new sk({type:"object",shape:e,catchall:$h(),...Se(t)})}const GC=J("ZodUnion",(e,t)=>{OA.init(e,t),gt.init(e,t),e._zod.processJSONSchema=(a,r,u)=>$z(e,a,r,u),e.options=t.options});function YC(e,t){return new GC({type:"union",options:e,...Se(t)})}const PC=J("ZodIntersection",(e,t)=>{wA.init(e,t),gt.init(e,t),e._zod.processJSONSchema=(a,r,u)=>Gz(e,a,r,u)});function XC(e,t){return new PC({type:"intersection",left:e,right:t})}const JC=J("ZodRecord",(e,t)=>{DA.init(e,t),gt.init(e,t),e._zod.processJSONSchema=(a,r,u)=>Yz(e,a,r,u),e.keyType=t.keyType,e.valueType=t.valueType});function KC(e,t,a){return new JC({type:"record",keyType:e,valueType:t,...Se(a)})}const Gh=J("ZodEnum",(e,t)=>{xA.init(e,t),gt.init(e,t),e._zod.processJSONSchema=(r,u,s)=>Qz(e,r,u),e.enum=t.entries,e.options=Object.values(t.entries);const a=new Set(Object.keys(t.entries));e.extract=(r,u)=>{const s={};for(const c of r)if(a.has(c))s[c]=t.entries[c];else throw new Error(`Key ${c} not found in enum`);return new Gh({...t,checks:[],...Se(u),entries:s})},e.exclude=(r,u)=>{const s={...t.entries};for(const c of r)if(a.has(c))delete s[c];else throw new Error(`Key ${c} not found in enum`);return new Gh({...t,checks:[],...Se(u),entries:s})}});function Ol(e,t){const a=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new Gh({type:"enum",entries:a,...Se(t)})}const WC=J("ZodTransform",(e,t)=>{RA.init(e,t),gt.init(e,t),e._zod.processJSONSchema=(a,r,u)=>Iz(e,a),e._zod.parse=(a,r)=>{if(r.direction==="backward")throw new MS(e.constructor.name);a.addIssue=s=>{if(typeof s=="string")a.issues.push(Ju(s,a.value,t));else{const c=s;c.fatal&&(c.continue=!1),c.code??(c.code="custom"),c.input??(c.input=a.value),c.inst??(c.inst=e),a.issues.push(Ju(c))}};const u=t.transform(a.value,a);return u instanceof Promise?u.then(s=>(a.value=s,a)):(a.value=u,a)}});function ej(e){return new WC({type:"transform",transform:e})}const ck=J("ZodOptional",(e,t)=>{ek.init(e,t),gt.init(e,t),e._zod.processJSONSchema=(a,r,u)=>lk(e,a,r,u),e.unwrap=()=>e._zod.def.innerType});function T0(e){return new ck({type:"optional",innerType:e})}const tj=J("ZodExactOptional",(e,t)=>{AA.init(e,t),gt.init(e,t),e._zod.processJSONSchema=(a,r,u)=>lk(e,a,r,u),e.unwrap=()=>e._zod.def.innerType});function nj(e){return new tj({type:"optional",innerType:e})}const aj=J("ZodNullable",(e,t)=>{zA.init(e,t),gt.init(e,t),e._zod.processJSONSchema=(a,r,u)=>Pz(e,a,r,u),e.unwrap=()=>e._zod.def.innerType});function O0(e){return new aj({type:"nullable",innerType:e})}const ij=J("ZodDefault",(e,t)=>{CA.init(e,t),gt.init(e,t),e._zod.processJSONSchema=(a,r,u)=>Jz(e,a,r,u),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function rj(e,t){return new ij({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():LS(t)}})}const lj=J("ZodPrefault",(e,t)=>{jA.init(e,t),gt.init(e,t),e._zod.processJSONSchema=(a,r,u)=>Kz(e,a,r,u),e.unwrap=()=>e._zod.def.innerType});function uj(e,t){return new lj({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():LS(t)}})}const fk=J("ZodNonOptional",(e,t)=>{MA.init(e,t),gt.init(e,t),e._zod.processJSONSchema=(a,r,u)=>Xz(e,a,r,u),e.unwrap=()=>e._zod.def.innerType});function oj(e,t){return new fk({type:"nonoptional",innerType:e,...Se(t)})}const sj=J("ZodCatch",(e,t)=>{FA.init(e,t),gt.init(e,t),e._zod.processJSONSchema=(a,r,u)=>Wz(e,a,r,u),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function cj(e,t){return new sj({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const fj=J("ZodPipe",(e,t)=>{VA.init(e,t),gt.init(e,t),e._zod.processJSONSchema=(a,r,u)=>eC(e,a,r,u),e.in=t.in,e.out=t.out});function w0(e,t){return new fj({type:"pipe",in:e,out:t})}const dj=J("ZodReadonly",(e,t)=>{UA.init(e,t),gt.init(e,t),e._zod.processJSONSchema=(a,r,u)=>tC(e,a,r,u),e.unwrap=()=>e._zod.def.innerType});function hj(e){return new dj({type:"readonly",innerType:e})}const mj=J("ZodCustom",(e,t)=>{LA.init(e,t),gt.init(e,t),e._zod.processJSONSchema=(a,r,u)=>Bz(e,a)});function pj(e,t={}){return Az(mj,e,t)}function vj(e){return zz(e)}const yj=Ua({prUrl:Ae(),githubRepo:Ae(),prNumber:Zt(),prTitle:Ae(),authorLogin:Ae().nullish(),decision:Ae(),effectiveDecision:Ae(),decisionLabel:Ae(),detail:Ae().nullish(),kanbanIssueId:Ae().nullish()}),gj=Ua({id:Ae(),startedAt:Ae(),startedAtLabel:Ae(),finishedAt:Ae().nullable(),trigger:Ae(),phase:Ae(),phaseLabel:Ae(),abortReason:Ae().nullable(),errorMessage:Ae().nullable(),candidatesCount:Zt().nullish(),issuesCreated:Zt().nullish(),skippedUnmapped:Zt().nullish(),skippedBot:Zt().nullish(),skippedBoardLimit:Zt().nullish(),skippedAlreadyTracked:Zt().nullish(),skippedLinkedExisting:Zt().nullish(),skippedTriage:Zt().nullish(),skippedDeclined:Zt().nullish(),itemCount:Zt(),items:nr(yj)}),bj=Ua({runs:nr(gj)}),_j=Ua({id:Ae(),label:Ae(),href:Ae()}),Sj=Ua({entries:nr(_j)}),kj=Ol(["no_default_kanban_board","no_mappings"]),Ej=Ua({complete:Ji(),reason:kj.nullish(),mappingCount:Zt(),sourceType:Ae(),destinationType:Ae(),vibeKanbanBoardActive:Ji(),hasRouting:Ji()}),Nj=Ua({text:Ae(),linkHref:Ae().optional(),linkLabel:Ae().optional()}),Tj=KC(Ae(),Ae());Ua({evaluation:Ej,checklist:nr(Nj),reasonMessages:Tj});const Oj=["ok","error","unknown"],wj=["ok","error"],Dj=["ok","degraded","error","unknown"],xj=["idle","running","skipped","error"],Rj=Ol(Oj),Aj=Ol(wj),zj=Ol(Dj),Cj=Ol(xj),jj=za({candidates_count:Zt().nullable().optional(),skipped_unmapped:Zt().nullable().optional(),issues_created:Zt().nullable().optional()}),Mj=Ua({timestamp:Ae(),pending_triage_count:Zt().int().nonnegative().nullish(),gh:za({state:Rj,message:Ae().nullish()}),database:za({state:Aj,message:Ae().nullish()}),setup:za({complete:Ji(),mappingCount:Zt(),reason:Ae().nullish()}),configuration:za({source_type:Ae(),destination_type:Ae(),vibe_kanban_board_active:Ji()}),destinations:nr(za({id:Ae(),state:zj})),scouts:nr(za({id:Ae(),state:Cj,last_poll:jj})),manual_sync:za({canRun:Ji(),reason:Ae().nullish(),cooldownUntil:Ae().nullish()}),scheduled_sync:za({enabled:Ji()})}),Fj={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"AcceptTriageMutation"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"prUrl"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"acceptTriage"},arguments:[{kind:"Argument",name:{kind:"Name",value:"prUrl"},value:{kind:"Variable",name:{kind:"Name",value:"prUrl"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"prUrl"}},{kind:"Field",name:{kind:"Name",value:"githubRepo"}},{kind:"Field",name:{kind:"Name",value:"prNumber"}},{kind:"Field",name:{kind:"Name",value:"prTitle"}},{kind:"Field",name:{kind:"Name",value:"authorLogin"}},{kind:"Field",name:{kind:"Name",value:"decision"}},{kind:"Field",name:{kind:"Name",value:"effectiveDecision"}},{kind:"Field",name:{kind:"Name",value:"decisionLabel"}},{kind:"Field",name:{kind:"Name",value:"detail"}},{kind:"Field",name:{kind:"Name",value:"kanbanIssueId"}}]}}]}}]},Vj={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"subscription",name:{kind:"Name",value:"ActivityEventsSubscription"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"activityEvents"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"invalidate"}}]}}]}}]},el={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ActivityFeedQuery"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"first"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"after"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"activityFeed"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"Variable",name:{kind:"Name",value:"first"}}},{kind:"Argument",name:{kind:"Name",value:"after"},value:{kind:"Variable",name:{kind:"Name",value:"after"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"edges"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"cursor"}},{kind:"Field",name:{kind:"Name",value:"node"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"startedAt"}},{kind:"Field",name:{kind:"Name",value:"startedAtLabel"}},{kind:"Field",name:{kind:"Name",value:"finishedAt"}},{kind:"Field",name:{kind:"Name",value:"trigger"}},{kind:"Field",name:{kind:"Name",value:"phase"}},{kind:"Field",name:{kind:"Name",value:"phaseLabel"}},{kind:"Field",name:{kind:"Name",value:"abortReason"}},{kind:"Field",name:{kind:"Name",value:"errorMessage"}},{kind:"Field",name:{kind:"Name",value:"candidatesCount"}},{kind:"Field",name:{kind:"Name",value:"issuesCreated"}},{kind:"Field",name:{kind:"Name",value:"skippedUnmapped"}},{kind:"Field",name:{kind:"Name",value:"skippedBot"}},{kind:"Field",name:{kind:"Name",value:"skippedBoardLimit"}},{kind:"Field",name:{kind:"Name",value:"skippedAlreadyTracked"}},{kind:"Field",name:{kind:"Name",value:"skippedLinkedExisting"}},{kind:"Field",name:{kind:"Name",value:"skippedTriage"}},{kind:"Field",name:{kind:"Name",value:"skippedDeclined"}},{kind:"Field",name:{kind:"Name",value:"itemCount"}},{kind:"Field",name:{kind:"Name",value:"items"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"prUrl"}},{kind:"Field",name:{kind:"Name",value:"githubRepo"}},{kind:"Field",name:{kind:"Name",value:"prNumber"}},{kind:"Field",name:{kind:"Name",value:"prTitle"}},{kind:"Field",name:{kind:"Name",value:"authorLogin"}},{kind:"Field",name:{kind:"Name",value:"decision"}},{kind:"Field",name:{kind:"Name",value:"effectiveDecision"}},{kind:"Field",name:{kind:"Name",value:"decisionLabel"}},{kind:"Field",name:{kind:"Name",value:"detail"}},{kind:"Field",name:{kind:"Name",value:"kanbanIssueId"}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"pageInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hasNextPage"}},{kind:"Field",name:{kind:"Name",value:"endCursor"}}]}}]}}]}}]},ch={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"DashboardSetupQuery"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"dashboardSetup"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"evaluation"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"complete"}},{kind:"Field",name:{kind:"Name",value:"reason"}},{kind:"Field",name:{kind:"Name",value:"mappingCount"}},{kind:"Field",name:{kind:"Name",value:"sourceType"}},{kind:"Field",name:{kind:"Name",value:"destinationType"}},{kind:"Field",name:{kind:"Name",value:"vibeKanbanBoardActive"}},{kind:"Field",name:{kind:"Name",value:"hasRouting"}}]}},{kind:"Field",name:{kind:"Name",value:"checklist"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"text"}},{kind:"Field",name:{kind:"Name",value:"linkHref"}},{kind:"Field",name:{kind:"Name",value:"linkLabel"}}]}},{kind:"Field",name:{kind:"Name",value:"reasonMessages"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"code"}},{kind:"Field",name:{kind:"Name",value:"message"}}]}}]}}]}}]},Uj={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeclineTriageMutation"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"prUrl"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"declineTriage"},arguments:[{kind:"Argument",name:{kind:"Name",value:"prUrl"},value:{kind:"Variable",name:{kind:"Name",value:"prUrl"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"prUrl"}},{kind:"Field",name:{kind:"Name",value:"githubRepo"}},{kind:"Field",name:{kind:"Name",value:"prNumber"}},{kind:"Field",name:{kind:"Name",value:"prTitle"}},{kind:"Field",name:{kind:"Name",value:"authorLogin"}},{kind:"Field",name:{kind:"Name",value:"decision"}},{kind:"Field",name:{kind:"Name",value:"effectiveDecision"}},{kind:"Field",name:{kind:"Name",value:"decisionLabel"}},{kind:"Field",name:{kind:"Name",value:"detail"}},{kind:"Field",name:{kind:"Name",value:"kanbanIssueId"}}]}}]}}]},Lj={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteMappingMutation"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteMapping"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"ok"}}]}}]}}]},dk={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"EffectiveSettingsQuery"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"effectiveSettings"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"coreFields"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"label"}},{kind:"Field",name:{kind:"Name",value:"value"}},{kind:"Field",name:{kind:"Name",value:"envVar"}},{kind:"Field",name:{kind:"Name",value:"description"}}]}},{kind:"Field",name:{kind:"Name",value:"resolvedSourceLabel"}},{kind:"Field",name:{kind:"Name",value:"resolvedDestinationLabel"}},{kind:"Field",name:{kind:"Name",value:"scheduledSyncEnabled"}},{kind:"Field",name:{kind:"Name",value:"autoCreateIssues"}}]}}]}}]},qj={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GithubFields"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"githubFields"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"disabled"}},{kind:"Field",name:{kind:"Name",value:"fields"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"label"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}}]}}]}}]},hk={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"IntegrationNavQuery"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"integrationNav"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"entries"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"label"}},{kind:"Field",name:{kind:"Name",value:"href"}}]}}]}}]}}]},tl={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"MappingsQuery"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"mappings"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"githubRepo"}},{kind:"Field",name:{kind:"Name",value:"vibeKanbanRepoId"}},{kind:"Field",name:{kind:"Name",value:"createdAt"}},{kind:"Field",name:{kind:"Name",value:"updatedAt"}}]}}]}}]},Qj={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ReconsiderTriageMutation"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"prUrl"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reconsiderTriage"},arguments:[{kind:"Argument",name:{kind:"Name",value:"prUrl"},value:{kind:"Variable",name:{kind:"Name",value:"prUrl"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"prUrl"}},{kind:"Field",name:{kind:"Name",value:"githubRepo"}},{kind:"Field",name:{kind:"Name",value:"prNumber"}},{kind:"Field",name:{kind:"Name",value:"prTitle"}},{kind:"Field",name:{kind:"Name",value:"authorLogin"}},{kind:"Field",name:{kind:"Name",value:"decision"}},{kind:"Field",name:{kind:"Name",value:"effectiveDecision"}},{kind:"Field",name:{kind:"Name",value:"decisionLabel"}},{kind:"Field",name:{kind:"Name",value:"detail"}},{kind:"Field",name:{kind:"Name",value:"kanbanIssueId"}}]}}]}}]},mk={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ReinitIntegrationMutation"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reinitIntegration"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"ok"}},{kind:"Field",name:{kind:"Name",value:"database"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"state"}},{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"Field",name:{kind:"Name",value:"source"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"state"}},{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"Field",name:{kind:"Name",value:"destination"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"state"}},{kind:"Field",name:{kind:"Name",value:"message"}}]}}]}}]}}]},Bj={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"TriggerSyncMutation"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"triggerSync"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"ok"}}]}}]}}]},Ij={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateDestinationSettings"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdateDestinationSettingsInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateDestinationSettings"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"coreFields"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"label"}},{kind:"Field",name:{kind:"Name",value:"value"}},{kind:"Field",name:{kind:"Name",value:"envVar"}},{kind:"Field",name:{kind:"Name",value:"description"}}]}},{kind:"Field",name:{kind:"Name",value:"resolvedSourceLabel"}},{kind:"Field",name:{kind:"Name",value:"resolvedDestinationLabel"}},{kind:"Field",name:{kind:"Name",value:"scheduledSyncEnabled"}},{kind:"Field",name:{kind:"Name",value:"autoCreateIssues"}}]}}]}}]},Zj={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateSettingsMutation"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdateSettingsInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateSettings"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"coreFields"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"label"}},{kind:"Field",name:{kind:"Name",value:"value"}},{kind:"Field",name:{kind:"Name",value:"envVar"}},{kind:"Field",name:{kind:"Name",value:"description"}}]}},{kind:"Field",name:{kind:"Name",value:"resolvedSourceLabel"}},{kind:"Field",name:{kind:"Name",value:"resolvedDestinationLabel"}},{kind:"Field",name:{kind:"Name",value:"scheduledSyncEnabled"}},{kind:"Field",name:{kind:"Name",value:"autoCreateIssues"}}]}}]}}]},Hj={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateSourceSettings"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdateSourceSettingsInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateSourceSettings"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"coreFields"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"label"}},{kind:"Field",name:{kind:"Name",value:"value"}},{kind:"Field",name:{kind:"Name",value:"envVar"}},{kind:"Field",name:{kind:"Name",value:"description"}}]}},{kind:"Field",name:{kind:"Name",value:"resolvedSourceLabel"}},{kind:"Field",name:{kind:"Name",value:"resolvedDestinationLabel"}},{kind:"Field",name:{kind:"Name",value:"scheduledSyncEnabled"}},{kind:"Field",name:{kind:"Name",value:"autoCreateIssues"}}]}}]}}]},$j={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpsertMappingMutation"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpsertMappingInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"upsertMapping"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"githubRepo"}},{kind:"Field",name:{kind:"Name",value:"vibeKanbanRepoId"}}]}}]}}]},Gj={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"VibeKanbanOrganizations"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"vibeKanbanOrganizations"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}}]}}]},Yj={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"VibeKanbanProjects"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"organizationId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"vibeKanbanProjects"},arguments:[{kind:"Argument",name:{kind:"Name",value:"organizationId"},value:{kind:"Variable",name:{kind:"Name",value:"organizationId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}}]}}]},Pj={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"VibeKanbanRepos"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"vibeKanbanRepos"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}}]}}]},Xj={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"VibeKanbanUiState"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"vibeKanbanUiState"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"saved"}},{kind:"Field",name:{kind:"Name",value:"error"}},{kind:"Field",name:{kind:"Name",value:"vkBoardPicker"}},{kind:"Field",name:{kind:"Name",value:"boardOrg"}},{kind:"Field",name:{kind:"Name",value:"boardProj"}},{kind:"Field",name:{kind:"Name",value:"kanbanDoneStatus"}},{kind:"Field",name:{kind:"Name",value:"vkExecutor"}},{kind:"Field",name:{kind:"Name",value:"executorOptions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}},{kind:"Field",name:{kind:"Name",value:"label"}}]}},{kind:"Field",name:{kind:"Name",value:"vkLabels"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"default_organization_id"}},{kind:"Field",name:{kind:"Name",value:"vk_workspace_executor"}},{kind:"Field",name:{kind:"Name",value:"kanban_done_status"}}]}},{kind:"Field",name:{kind:"Name",value:"orgError"}}]}}]}}]},Wi={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"StatusQuery"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"status"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FullStatusSnapshot"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FullStatusSnapshot"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"StatusSnapshot"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"timestamp"}},{kind:"Field",name:{kind:"Name",value:"pending_triage_count"}},{kind:"Field",name:{kind:"Name",value:"gh"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"state"}},{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"Field",name:{kind:"Name",value:"database"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"state"}},{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"Field",name:{kind:"Name",value:"setup"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"complete"}},{kind:"Field",name:{kind:"Name",value:"mappingCount"}},{kind:"Field",name:{kind:"Name",value:"reason"}}]}},{kind:"Field",name:{kind:"Name",value:"configuration"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"source_type"}},{kind:"Field",name:{kind:"Name",value:"destination_type"}},{kind:"Field",name:{kind:"Name",value:"vibe_kanban_board_active"}}]}},{kind:"Field",name:{kind:"Name",value:"destinations"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"state"}},{kind:"Field",name:{kind:"Name",value:"lastOkAt"}},{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"Field",name:{kind:"Name",value:"scouts"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"state"}},{kind:"Field",name:{kind:"Name",value:"lastPollAt"}},{kind:"Field",name:{kind:"Name",value:"nextPollAt"}},{kind:"Field",name:{kind:"Name",value:"lastError"}},{kind:"Field",name:{kind:"Name",value:"skipReason"}},{kind:"Field",name:{kind:"Name",value:"last_poll"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"candidates_count"}},{kind:"Field",name:{kind:"Name",value:"skipped_unmapped"}},{kind:"Field",name:{kind:"Name",value:"issues_created"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"manual_sync"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"canRun"}},{kind:"Field",name:{kind:"Name",value:"reason"}},{kind:"Field",name:{kind:"Name",value:"cooldownUntil"}}]}},{kind:"Field",name:{kind:"Name",value:"scheduled_sync"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"enabled"}}]}}]}}]},Jj={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"subscription",name:{kind:"Name",value:"StatusUpdatedSubscription"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"statusUpdated"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FullStatusSnapshot"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FullStatusSnapshot"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"StatusSnapshot"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"timestamp"}},{kind:"Field",name:{kind:"Name",value:"pending_triage_count"}},{kind:"Field",name:{kind:"Name",value:"gh"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"state"}},{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"Field",name:{kind:"Name",value:"database"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"state"}},{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"Field",name:{kind:"Name",value:"setup"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"complete"}},{kind:"Field",name:{kind:"Name",value:"mappingCount"}},{kind:"Field",name:{kind:"Name",value:"reason"}}]}},{kind:"Field",name:{kind:"Name",value:"configuration"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"source_type"}},{kind:"Field",name:{kind:"Name",value:"destination_type"}},{kind:"Field",name:{kind:"Name",value:"vibe_kanban_board_active"}}]}},{kind:"Field",name:{kind:"Name",value:"destinations"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"state"}},{kind:"Field",name:{kind:"Name",value:"lastOkAt"}},{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"Field",name:{kind:"Name",value:"scouts"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"state"}},{kind:"Field",name:{kind:"Name",value:"lastPollAt"}},{kind:"Field",name:{kind:"Name",value:"nextPollAt"}},{kind:"Field",name:{kind:"Name",value:"lastError"}},{kind:"Field",name:{kind:"Name",value:"skipReason"}},{kind:"Field",name:{kind:"Name",value:"last_poll"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"candidates_count"}},{kind:"Field",name:{kind:"Name",value:"skipped_unmapped"}},{kind:"Field",name:{kind:"Name",value:"issues_created"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"manual_sync"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"canRun"}},{kind:"Field",name:{kind:"Name",value:"reason"}},{kind:"Field",name:{kind:"Name",value:"cooldownUntil"}}]}},{kind:"Field",name:{kind:"Name",value:"scheduled_sync"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"enabled"}}]}}]}}]};function Kj(){var d,p,m;const e=kn(hk,{fetchPolicy:"cache-and-network"}),t=kn(Wi,{fetchPolicy:"cache-first"});oS(Jj,{onData:({data:v,client:y})=>{var _;const b=(_=v.data)==null?void 0:_.statusUpdated;b&&y.writeQuery({query:Wi,data:{status:b}})}});const a=((d=e.data)==null?void 0:d.integrationNav.entries)??[],r=Sj.safeParse({entries:a}),u=r.success?r.data.entries:a,s=F.useMemo(()=>{var y,b;const v=(b=(y=t.data)==null?void 0:y.status)==null?void 0:b.pending_triage_count;return typeof v=="number"&&Number.isFinite(v)?v:0},[(m=(p=t.data)==null?void 0:p.status)==null?void 0:m.pending_triage_count]),c=F.useRef("");return F.useEffect(()=>{typeof Notification>"u"||Notification.permission==="default"&&Notification.requestPermission()},[]),F.useEffect(()=>{if(typeof Notification>"u"||Notification.permission!=="granted")return;if(s<=0){c.current="";return}const v=String(s);c.current!==v&&(c.current=v,new Notification("vibe-squire: PRs need triage",{body:`${s} PR(s) awaiting your review or decline decision`,icon:"/favicon.svg",tag:"vs-triage"}))},[s]),S.jsxs("div",{className:"shell",children:[S.jsxs("aside",{className:"nav-rail",children:[S.jsxs("div",{className:"brand",children:[S.jsx("span",{className:"brand-mark",children:"◇"}),S.jsx("span",{className:"brand-text",children:"vibe-squire"})]}),S.jsxs("nav",{className:"nav",children:[S.jsx(Wr,{className:({isActive:v})=>`nav-link${v?" active":""}`,end:!0,to:"/dashboard",children:"Dashboard"}),S.jsxs(Wr,{className:({isActive:v})=>`nav-link${v?" active":""}`,to:"/activity",children:["Activity",s>0?S.jsx("span",{className:"nav-badge","aria-label":`${s} pending triage`,children:s}):null]}),S.jsx(Wr,{className:({isActive:v})=>`nav-link${v?" active":""}`,to:"/settings",children:"General"}),S.jsx("div",{className:"nav-section-heading",children:"Sync adapters"}),e.loading&&!e.data?S.jsx("p",{className:"muted nav-loading",children:"Loading…"}):null,u.map(v=>S.jsx(Wr,{className:({isActive:y})=>`nav-link${y?" active":""}`,to:v.href,children:v.label},v.id)),S.jsx(Wr,{className:({isActive:v})=>`nav-link${v?" active":""}`,to:"/mappings",children:"Mappings"})]})]}),S.jsx("main",{className:"main",children:S.jsx(ax,{})})]})}function fn(e){return e instanceof Error&&e.message.trim().length>0?e.message:"Unknown error"}function Wj(e){if(!e.trim())return null;try{const t=JSON.parse(e);if(t.reason==="cooldown"&&typeof t.cooldownUntil=="string"&&t.cooldownUntil.length>0)return`Cooldown active until ${t.cooldownUntil}`;if(typeof t.message=="string"&&t.message.length>0)return t.message;if(typeof t.reason=="string"&&t.reason.length>0)return t.reason;if(typeof t.error=="string"&&t.error.length>0)return t.error}catch{return null}return null}function Yh(e){if(e instanceof cn){const t=e.graphQLErrors[0];if(t!=null&&t.message){const a=Wj(t.message);return a||t.message}}return fn(e)}function pk(e){if(e.database.state==="error")return!0;const{state:t}=e.gh;if(t&&t!=="ok")return!0;const a=e.destinations[0];if(a&&(a.state==="degraded"||a.state==="error"))return!0;const r=e.scouts[0];return(r==null?void 0:r.state)==="error"}const eM={first:40},tM=[{query:Wi},{query:el,variables:eM},{query:dk},{query:tl},{query:hk}];function Lm(){const e=kn(Wi,{fetchPolicy:"cache-first"}),t=(()=>{var d;const s=(d=e.data)==null?void 0:d.status;if(!s)return null;const c=Mj.safeParse(s);return c.success?c.data:null})(),[a,{loading:r}]=Gn(mk,{refetchQueries:[...tM],awaitRefetchQueries:!0,onCompleted:()=>{je.success("Reinit completed.")},onError:s=>{je.error(`Reinit failed: ${Yh(s)}`)}});return(t?pk(t):!1)?S.jsx("div",{className:"actions-row operator-head-actions",children:S.jsx("button",{type:"button",className:"btn ghost btn-sm",disabled:r,onClick:()=>{confirm("Run soft reinit? This refreshes settings, rescans checks, clears scout backoff, and reschedules sync.")&&a()},children:r?"Reinit…":"Reinit"})}):null}function nM({prUrl:e,mode:t,actionPending:a,onAccept:r,onDecline:u,onReconsider:s}){return a?S.jsx("div",{className:"triage-actions triage-actions--pending",children:S.jsxs("span",{className:"triage-actions__pending","aria-live":"polite",children:[S.jsx("span",{className:"triage-action-spinner","aria-hidden":!0}),S.jsx("span",{children:"Working…"})]})}):S.jsx("div",{className:"triage-actions",children:t==="pending"?S.jsxs(S.Fragment,{children:[S.jsx("button",{type:"button",className:"btn btn-sm primary",onClick:()=>r(e),children:"Review"}),S.jsx("button",{type:"button",className:"btn btn-sm ghost",onClick:()=>u(e),children:"Decline"})]}):S.jsx("button",{type:"button",className:"btn btn-sm ghost",onClick:()=>s(e),children:"Reconsider"})})}function Fu(e){return e==="skipped_triage"||e==="skipped_board_limit"}function D0(e){return Fu(e)?0:e==="skipped_declined"?1:e==="linked_existing"||e==="skipped_unmapped"?2:e==="skipped_bot"?4:3}function Ra(e){return e==null?"—":String(e)}function aM({run:e,highlight:t=!1,onAccept:a,onDecline:r,onReconsider:u,triageActionPendingPr:s}){const c=F.useMemo(()=>[...e.items].sort((_,E)=>{const T=D0(_.effectiveDecision),D=D0(E.effectiveDecision);return T!==D?T-D:_.prNumber-E.prNumber}),[e.items]),d=c.some(_=>Fu(_.effectiveDecision)||_.effectiveDecision==="skipped_declined"),p=t&&d,[m,v]=F.useState(p);F.useEffect(()=>{p&&v(!0)},[p,e.id]);const y=e.trigger==="manual"?"manual":"scheduled";let b=null;return e.phase==="running"?b=`Sync in progress... ${e.itemCount} PR row(s) recorded so far.`:e.phase==="completed"?b=`${Ra(e.candidatesCount)} PR(s) seen · ${Ra(e.issuesCreated)} created · ${Ra(e.skippedUnmapped)} unmapped · ${Ra(e.skippedBot)} bot · ${Ra(e.skippedBoardLimit)} board limit · ${Ra(e.skippedAlreadyTracked)} already tracked · ${Ra(e.skippedLinkedExisting)} linked existing${e.skippedTriage?` · ${Ra(e.skippedTriage)} pending triage`:""}${e.skippedDeclined?` · ${Ra(e.skippedDeclined)} declined`:""}`:e.phase==="aborted"&&(b=e.abortReason??"Aborted"),S.jsxs("section",{className:"card activity-run",children:[S.jsxs("div",{className:"activity-run-summary",children:[S.jsxs("div",{className:"activity-run-meta",children:[S.jsx("span",{className:"activity-run-time mono",children:e.startedAtLabel}),S.jsx("span",{className:"activity-pill",children:y}),S.jsx("span",{className:`activity-pill activity-pill-phase-${e.phase}`,children:e.phaseLabel})]}),b?S.jsx("p",{className:"muted activity-run-counts",children:b}):null,e.phase==="failed"&&e.errorMessage?S.jsx("p",{className:"banner banner-error activity-run-msg",children:e.errorMessage}):null]}),c.length>0?S.jsxs("details",{className:"activity-details",open:m,onToggle:_=>v(_.currentTarget.open),children:[S.jsxs("summary",{className:"activity-details-summary",children:["PR details (",c.length,")",p?S.jsxs(S.Fragment,{children:[" ","· ",S.jsx("span",{className:"triage-attention-hint",children:"needs attention"})]}):null]}),S.jsx("div",{className:"table-wrap activity-items-wrap",children:S.jsxs("table",{className:"data-table activity-items-table",children:[S.jsx("thead",{children:S.jsxs("tr",{children:[S.jsx("th",{children:"PR"}),S.jsx("th",{children:"Repo"}),S.jsx("th",{children:"Outcome"}),S.jsx("th",{children:"Detail"})]})}),S.jsx("tbody",{children:c.map(_=>{const E=Fu(_.effectiveDecision)?"triage-pending-row":_.effectiveDecision==="skipped_declined"?"triage-declined-row":"";return S.jsxs("tr",{className:E,children:[S.jsxs("td",{children:[S.jsxs("a",{href:_.prUrl,target:"_blank",rel:"noreferrer",children:["#",_.prNumber]}),S.jsx("div",{className:"activity-pr-title muted",children:_.prTitle}),_.authorLogin?S.jsxs("div",{className:"muted",children:["@",_.authorLogin]}):null]}),S.jsx("td",{className:"wrap",children:S.jsx("code",{children:_.githubRepo})}),S.jsxs("td",{children:[_.decisionLabel,(Fu(_.effectiveDecision)||_.effectiveDecision==="skipped_declined")&&S.jsx(nM,{prUrl:_.prUrl,actionPending:s===_.prUrl,mode:Fu(_.effectiveDecision)?"pending":"declined",onAccept:a,onDecline:r,onReconsider:u})]}),S.jsxs("td",{className:"wrap muted",children:[_.kanbanIssueId?S.jsxs(S.Fragment,{children:[S.jsxs("code",{children:["issue ",_.kanbanIssueId]}),_.detail?" · ":""]}):null,_.detail??"—"]})]},_.prUrl)})})]})})]}):S.jsx("p",{className:"muted",children:"No items in this run."})]})}function iM(e){return e==="skipped_triage"||e==="skipped_board_limit"}function rM({initialLoading:e,errorMessage:t,runs:a,hasNextPage:r,loadMoreBusy:u,onLoadMore:s,onAccept:c,onDecline:d,onReconsider:p,triageActionPendingPr:m}){const v=F.useMemo(()=>a.find(_=>_.phase==="completed")??null,[a]),y=(v==null?void 0:v.id)??null,b=F.useMemo(()=>{if(!v)return 0;const _=new Set;for(const E of v.items)iM(E.effectiveDecision)&&_.add(E.prUrl);return _.size},[v]);return S.jsxs(S.Fragment,{children:[e?S.jsx("p",{children:"Loading…"}):null,t?S.jsx("p",{className:"text-danger",children:t}):null,b>0?S.jsxs("div",{className:"banner-triage-attention",children:[S.jsxs("strong",{children:[b," PR(s)"]})," awaiting your review or decline decision."]}):null,a.map(_=>S.jsx(aM,{run:_,highlight:_.id===y,onAccept:c,onDecline:d,onReconsider:p,triageActionPendingPr:m},_.id)),r?S.jsx("button",{type:"button",className:"btn ghost",onClick:s,disabled:u,children:u?"Loading…":"Load more"}):null]})}function lM({titleRow:e,intro:t,feed:a}){return S.jsxs("div",{className:"stack",children:[e,t,a]})}function uM(){var E,T,D,N,w;const e=kn(el,{variables:{first:40},fetchPolicy:"cache-and-network"});oS(Vj,{onData:({client:O})=>{O.refetchQueries({include:[el]})}});const t=F.useMemo(()=>{var M;return(((M=e.data)==null?void 0:M.activityFeed.edges)??[]).map(z=>z.node)},[(E=e.data)==null?void 0:E.activityFeed.edges]),a=F.useMemo(()=>{try{return bj.parse({runs:t}).runs}catch{return[]}},[t]),r=F.useMemo(()=>{const O=new Map;for(const M of a)for(const z of M.items)O.has(z.prUrl)||O.set(z.prUrl,z);return O},[a]),u=F.useCallback((O,M)=>{const z=r.get(O);return{__typename:"ActivityItemGql",id:O,prUrl:O,githubRepo:(z==null?void 0:z.githubRepo)??"(updating)",prNumber:(z==null?void 0:z.prNumber)??0,prTitle:(z==null?void 0:z.prTitle)??"(updating)",authorLogin:(z==null?void 0:z.authorLogin)??null,decision:(z==null?void 0:z.decision)??"skipped_triage",effectiveDecision:M.effectiveDecision,decisionLabel:M.decisionLabel,detail:(z==null?void 0:z.detail)??null,kanbanIssueId:M.kanbanIssueId}},[r]),[s]=Gn(Fj,{optimisticResponse:O=>({__typename:"Mutation",acceptTriage:u(O.prUrl,{effectiveDecision:"linked_existing",decisionLabel:"Linked existing issue",kanbanIssueId:"…"})}),refetchQueries:[el],onError:O=>je.error(fn(O))}),[c]=Gn(Uj,{optimisticResponse:O=>({__typename:"Mutation",declineTriage:u(O.prUrl,{effectiveDecision:"skipped_declined",decisionLabel:"Declined",kanbanIssueId:null})}),refetchQueries:[el],onError:O=>je.error(fn(O))}),[d]=Gn(Qj,{optimisticResponse:O=>({__typename:"Mutation",reconsiderTriage:u(O.prUrl,{effectiveDecision:"skipped_triage",decisionLabel:"Pending triage",kanbanIssueId:null})}),refetchQueries:[el],onError:O=>je.error(fn(O))}),[p,m]=F.useState(null),v=F.useCallback(()=>{var M,z,Z,$,W,se;const O=(Z=(z=(M=e.data)==null?void 0:M.activityFeed)==null?void 0:z.pageInfo)==null?void 0:Z.endCursor;!O||!((se=(W=($=e.data)==null?void 0:$.activityFeed)==null?void 0:W.pageInfo)!=null&&se.hasNextPage)||e.fetchMore({variables:{first:40,after:O}})},[e]),y=F.useCallback(O=>{m(O),s({variables:{prUrl:O}}).finally(()=>{m(M=>M===O?null:M)})},[s]),b=F.useCallback(O=>{m(O),c({variables:{prUrl:O}}).finally(()=>{m(M=>M===O?null:M)})},[c]),_=F.useCallback(O=>{m(O),d({variables:{prUrl:O}}).finally(()=>{m(M=>M===O?null:M)})},[d]);return S.jsx(lM,{titleRow:S.jsxs("div",{className:"page-title-row",children:[S.jsx("h1",{children:"Activity"}),S.jsx(Lm,{})]}),intro:S.jsx("p",{className:"muted",children:"Per-sync poll runs and item decisions."}),feed:S.jsx(rM,{initialLoading:!!(e.loading&&!e.data),errorMessage:((T=e.error)==null?void 0:T.message)??null,runs:a,hasNextPage:!!((w=(N=(D=e.data)==null?void 0:D.activityFeed)==null?void 0:N.pageInfo)!=null&&w.hasNextPage),loadMoreBusy:e.loading,onLoadMore:v,onAccept:y,onDecline:b,onReconsider:_,triageActionPendingPr:p})})}function oM(e){return ut(e)&&"code"in e&&"reason"in e}function sM(e){var t;return ut(e)&&((t=e.target)===null||t===void 0?void 0:t.readyState)===WebSocket.CLOSED}var cM=(function(e){Xn(t,e);function t(a){var r=e.call(this)||this;return r.client=a,r}return t.prototype.request=function(a){var r=this;return new et(function(u){return r.client.subscribe(j(j({},a),{query:pi(a.query)}),{next:u.next.bind(u),complete:u.complete.bind(u),error:function(s){if(s instanceof Error)return u.error(s);var c=oM(s);return c||sM(s)?u.error(new Error("Socket closed".concat(c?" with event ".concat(s.code):"").concat(c?" ".concat(s.reason):""))):u.error(new cn({graphQLErrors:Array.isArray(s)?s:[s]}))}})})},t})(ir);function on(e){return e===null?"null":Array.isArray(e)?"array":typeof e}function Yi(e){return on(e)==="object"}function fM(e){return Array.isArray(e)&&e.length>0&&e.every(t=>"message"in t)}function x0(e,t){return e.length<124?e:t}const dM="graphql-transport-ws";var jn=(e=>(e[e.InternalServerError=4500]="InternalServerError",e[e.InternalClientError=4005]="InternalClientError",e[e.BadRequest=4400]="BadRequest",e[e.BadResponse=4004]="BadResponse",e[e.Unauthorized=4401]="Unauthorized",e[e.Forbidden=4403]="Forbidden",e[e.SubprotocolNotAcceptable=4406]="SubprotocolNotAcceptable",e[e.ConnectionInitialisationTimeout=4408]="ConnectionInitialisationTimeout",e[e.ConnectionAcknowledgementTimeout=4504]="ConnectionAcknowledgementTimeout",e[e.SubscriberAlreadyExists=4409]="SubscriberAlreadyExists",e[e.TooManyInitialisationRequests=4429]="TooManyInitialisationRequests",e))(jn||{}),Mn=(e=>(e.ConnectionInit="connection_init",e.ConnectionAck="connection_ack",e.Ping="ping",e.Pong="pong",e.Subscribe="subscribe",e.Next="next",e.Error="error",e.Complete="complete",e))(Mn||{});function vk(e){if(!Yi(e))throw new Error(`Message is expected to be an object, but got ${on(e)}`);if(!e.type)throw new Error("Message is missing the 'type' property");if(typeof e.type!="string")throw new Error(`Message is expects the 'type' property to be a string, but got ${on(e.type)}`);switch(e.type){case"connection_init":case"connection_ack":case"ping":case"pong":{if(e.payload!=null&&!Yi(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object or nullish or missing, but got "${e.payload}"`);break}case"subscribe":{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${on(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!Yi(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${on(e.payload)}`);if(typeof e.payload.query!="string")throw new Error(`"${e.type}" message payload expects the 'query' property to be a string, but got ${on(e.payload.query)}`);if(e.payload.variables!=null&&!Yi(e.payload.variables))throw new Error(`"${e.type}" message payload expects the 'variables' property to be a an object or nullish or missing, but got ${on(e.payload.variables)}`);if(e.payload.operationName!=null&&on(e.payload.operationName)!=="string")throw new Error(`"${e.type}" message payload expects the 'operationName' property to be a string or nullish or missing, but got ${on(e.payload.operationName)}`);if(e.payload.extensions!=null&&!Yi(e.payload.extensions))throw new Error(`"${e.type}" message payload expects the 'extensions' property to be a an object or nullish or missing, but got ${on(e.payload.extensions)}`);break}case"next":{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${on(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!Yi(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${on(e.payload)}`);break}case"error":{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${on(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!fM(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an array of GraphQL errors, but got ${JSON.stringify(e.payload)}`);break}case"complete":{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${on(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);break}default:throw new Error(`Invalid message 'type' property "${e.type}"`)}return e}function hM(e,t){return vk(typeof e=="string"?JSON.parse(e,t):e)}function Au(e,t){return vk(e),JSON.stringify(e,t)}function mM(e){const{url:t,connectionParams:a,lazy:r=!0,onNonLazyError:u=console.error,lazyCloseTimeout:s=0,keepAlive:c=0,disablePong:d,connectionAckWaitTimeout:p=0,retryAttempts:m=5,retryWait:v=async function(ce){const U=Math.pow(2,ce);await new Promise(P=>setTimeout(P,U*1e3+Math.floor(Math.random()*2700+300)))},shouldRetry:y=fh,on:b,webSocketImpl:_,generateID:E=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,ce=>{const U=Math.random()*16|0;return(ce=="x"?U:U&3|8).toString(16)})},jsonMessageReplacer:T,jsonMessageReviver:D}=e;let N;if(_){if(!vM(_))throw new Error("Invalid WebSocket implementation provided");N=_}else typeof WebSocket<"u"?N=WebSocket:typeof global<"u"?N=global.WebSocket||global.MozWebSocket:typeof window<"u"&&(N=window.WebSocket||window.MozWebSocket);if(!N)throw new Error("WebSocket implementation missing; on Node you can `import WebSocket from 'ws';` and pass `webSocketImpl: WebSocket` to `createClient`");const w=N,O=(()=>{const ee=(()=>{const U={};return{on(P,ie){return U[P]=ie,()=>{delete U[P]}},emit(P){var ie;"id"in P&&((ie=U[P.id])==null||ie.call(U,P))}}})(),ce={connecting:b!=null&&b.connecting?[b.connecting]:[],opened:b!=null&&b.opened?[b.opened]:[],connected:b!=null&&b.connected?[b.connected]:[],ping:b!=null&&b.ping?[b.ping]:[],pong:b!=null&&b.pong?[b.pong]:[],message:b!=null&&b.message?[ee.emit,b.message]:[ee.emit],closed:b!=null&&b.closed?[b.closed]:[],error:b!=null&&b.error?[b.error]:[]};return{onMessage:ee.on,on(U,P){const ie=ce[U];return ie.push(P),()=>{ie.splice(ie.indexOf(P),1)}},emit(U,...P){for(const ie of[...ce[U]])ie(...P)}}})();function M(ee){const ce=[O.on("error",U=>{ce.forEach(P=>P()),ee(U)}),O.on("closed",U=>{ce.forEach(P=>P()),ee(U)})]}let z,Z=0,$,W=!1,se=0,Ne=!1;async function Be(){clearTimeout($);const[ee,ce]=await(z??(z=new Promise((ie,me)=>(async()=>{if(W){if(await v(se),!Z)return z=void 0,me({code:1e3,reason:"All Subscriptions Gone"});se++}O.emit("connecting",W);const ve=new w(typeof t=="function"?await t():t,dM);let A,G;function ae(){isFinite(c)&&c>0&&(clearTimeout(G),G=setTimeout(()=>{ve.readyState===w.OPEN&&(ve.send(Au({type:Mn.Ping})),O.emit("ping",!1,void 0))},c))}M(ge=>{z=void 0,clearTimeout(A),clearTimeout(G),me(ge),ge instanceof R0&&(ve.close(4499,"Terminated"),ve.onerror=null,ve.onclose=null)}),ve.onerror=ge=>O.emit("error",ge),ve.onclose=ge=>O.emit("closed",ge),ve.onopen=async()=>{try{O.emit("opened",ve);const ge=typeof a=="function"?await a():a;if(ve.readyState!==w.OPEN)return;ve.send(Au(ge?{type:Mn.ConnectionInit,payload:ge}:{type:Mn.ConnectionInit},T)),isFinite(p)&&p>0&&(A=setTimeout(()=>{ve.close(jn.ConnectionAcknowledgementTimeout,"Connection acknowledgement timeout")},p)),ae()}catch(ge){O.emit("error",ge),ve.close(jn.InternalClientError,x0(ge instanceof Error?ge.message:String(ge),"Internal client error"))}};let oe=!1;ve.onmessage=({data:ge})=>{try{const _e=hM(ge,D);if(O.emit("message",_e),_e.type==="ping"||_e.type==="pong"){O.emit(_e.type,!0,_e.payload),_e.type==="pong"?ae():d||(ve.send(Au(_e.payload?{type:Mn.Pong,payload:_e.payload}:{type:Mn.Pong})),O.emit("pong",!1,_e.payload));return}if(oe)return;if(_e.type!==Mn.ConnectionAck)throw new Error(`First message cannot be of type ${_e.type}`);clearTimeout(A),oe=!0,O.emit("connected",ve,_e.payload,W),W=!1,se=0,ie([ve,new Promise((qe,kt)=>M(kt))])}catch(_e){ve.onmessage=null,O.emit("error",_e),ve.close(jn.BadResponse,x0(_e instanceof Error?_e.message:String(_e),"Bad response"))}}})())));ee.readyState===w.CLOSING&&await ce;let U=()=>{};const P=new Promise(ie=>U=ie);return[ee,U,Promise.race([P.then(()=>{if(!Z){const ie=()=>ee.close(1e3,"Normal Closure");isFinite(s)&&s>0?$=setTimeout(()=>{ee.readyState===w.OPEN&&ie()},s):ie()}}),ce])]}function le(ee){if(fh(ee)&&(pM(ee.code)||[jn.InternalServerError,jn.InternalClientError,jn.BadRequest,jn.BadResponse,jn.Unauthorized,jn.SubprotocolNotAcceptable,jn.SubscriberAlreadyExists,jn.TooManyInitialisationRequests].includes(ee.code)))throw ee;if(Ne)return!1;if(fh(ee)&&ee.code===1e3)return Z>0;if(!m||se>=m||!y(ee))throw ee;return W=!0}r||(async()=>{for(Z++;;)try{const[,,ee]=await Be();await ee}catch(ee){try{if(!le(ee))return}catch(ce){return u==null?void 0:u(ce)}}})();function fe(ee,ce){const U=E(ee);let P=!1,ie=!1,me=()=>{Z--,P=!0};return(async()=>{for(Z++;;)try{const[ve,A,G]=await Be();if(P)return A();const ae=O.onMessage(U,oe=>{switch(oe.type){case Mn.Next:{ce.next(oe.payload);return}case Mn.Error:{ie=!0,P=!0,ce.error(oe.payload),me();return}case Mn.Complete:{P=!0,me();return}}});ve.send(Au({id:U,type:Mn.Subscribe,payload:ee},T)),me=()=>{!P&&ve.readyState===w.OPEN&&ve.send(Au({id:U,type:Mn.Complete},T)),Z--,P=!0,A()},await G.finally(ae);return}catch(ve){if(!le(ve))return}})().then(()=>{ie||ce.complete()}).catch(ve=>{ce.error(ve)}),()=>{P||me()}}return{on:O.on,subscribe:fe,iterate(ee){const ce=[],U={done:!1,error:null,resolve:()=>{}},P=fe(ee,{next(me){ce.push(me),U.resolve()},error(me){U.done=!0,U.error=me,U.resolve()},complete(){U.done=!0,U.resolve()}}),ie=(async function*(){for(;;){for(ce.length||await new Promise(ve=>U.resolve=ve);ce.length;)yield ce.shift();if(U.error)throw U.error;if(U.done)return}})();return ie.throw=async me=>(U.done||(U.done=!0,U.error=me,U.resolve()),{done:!0,value:void 0}),ie.return=async()=>(P(),{done:!0,value:void 0}),ie},async dispose(){if(Ne=!0,z){const[ee]=await z;ee.close(1e3,"Normal Closure")}},terminate(){z&&O.emit("closed",new R0)}}}class R0 extends Error{constructor(){super(...arguments);Gr(this,"name","TerminatedCloseEvent");Gr(this,"message","4499: Terminated");Gr(this,"code",4499);Gr(this,"reason","Terminated");Gr(this,"wasClean",!1)}}function fh(e){return Yi(e)&&"code"in e&&"reason"in e}function pM(e){return[1e3,1001,1006,1005,1012,1013,1014].includes(e)?!1:e>=1e3&&e<=1999}function vM(e){return typeof e=="function"&&"constructor"in e&&"CLOSED"in e&&"CLOSING"in e&&"CONNECTING"in e&&"OPEN"in e}function yM(){return typeof window>"u"?"ws://127.0.0.1:4000/graphql":`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/graphql`}const gM=new A_({uri:"/graphql"}),bM=new cM(mM({url:yM()})),_M=qO(({query:e})=>{const t=_l(e);return t.kind===nt.OPERATION_DEFINITION&&t.operation===gh.SUBSCRIPTION},bM,gM),SM=new W_({name:"@vibe-squire/web",version:"p2-4",link:_M,cache:new J_({typePolicies:{Query:{fields:{mappings:{merge(e,t){return t}},activityFeed:vO(["first","after"]),effectiveSettings:{merge:!0}}},ActivityRunGql:{keyFields:["id"]},ActivityItemGql:{keyFields:["id"]},MappingGql:{keyFields:["id"]}}})});function aa({width:e="100%"}){return S.jsx("span",{className:"ui-loading-line",style:{width:e},"aria-hidden":!0})}function _n({title:e,children:t,compact:a=!1}){return S.jsxs("section",{className:`card ${a?"compact":""}`,children:[S.jsx("h2",{className:"ui-card-heading",children:e}),t]})}function Kt({label:e,value:t}){return S.jsxs("div",{className:"ui-key-value",children:[S.jsx("span",{className:"ui-key-value-label",children:e}),S.jsx("span",{className:"ui-key-value-value",children:t})]})}function kM({configuration:e}){return S.jsxs(_n,{title:"Configuration",children:[S.jsx(Kt,{label:"Source",value:e.source_type}),S.jsx(Kt,{label:"Destination",value:e.destination_type}),S.jsx(Kt,{label:"Vibe Kanban board",value:e.vibe_kanban_board_active?"active":"inactive"})]})}const EM={ok:"var(--accent)",degraded:"var(--warn)",error:"var(--danger)",unknown:"#5a6b62",idle:"#5a6b62",running:"var(--warn)",skipped:"#5a6b62"};function NM({state:e}){return S.jsx("span",{className:"status-dot","aria-label":`State: ${e}`,title:e,style:{backgroundColor:EM[e]}})}function wl({state:e,label:t}){return S.jsxs("span",{className:"ui-status-pill",children:[S.jsx(NM,{state:e}),S.jsx("span",{children:t??e})]})}function TM({status:e}){return S.jsxs(_n,{title:"Database",children:[S.jsx(wl,{state:e.state}),e.message?S.jsx("p",{className:"muted",children:e.message}):null]})}function OM(e){return!Number.isNaN(e.getTime())}function Js(e){const t=new Date(e);if(!OM(t))return e;const a=new Intl.DateTimeFormat(void 0,{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",hour12:!1}).formatToParts(t),r=u=>{var s;return((s=a.find(c=>c.type===u))==null?void 0:s.value)??""};return`${r("year")}-${r("month")}-${r("day")} ${r("hour")}:${r("minute")}`}function A0(e){return typeof e=="string"&&e.length>0?e:null}function wM({destinations:e}){return S.jsxs(_n,{title:"Destinations",children:[e.length===0?S.jsx("p",{className:"muted",children:"No destinations"}):null,S.jsx("ul",{className:"id-list",children:e.map(t=>{const a=t,r=A0(a.lastOkAt),u=A0(a.message);return S.jsxs("li",{children:[S.jsx(wl,{state:t.state}),S.jsx(Kt,{label:"ID",value:t.id}),r?S.jsx(Kt,{label:"Last ok",value:Js(r)}):null,u?S.jsx("p",{className:"muted",children:u}):null]},t.id)})})]})}function DM({status:e}){return S.jsxs(_n,{title:"GitHub",children:[S.jsx(wl,{state:e.state}),e.message?S.jsx("p",{className:"muted",children:e.message}):null]})}function xM(e){return e.canRun?{state:"ok",label:"runnable"}:e.reason==="cooldown"?{state:"degraded",label:"cooldown",reasonText:"Cooldown active"}:e.reason==="already_running"?{state:"degraded",label:"busy",reasonText:"Sync is already running"}:e.reason==="setup_incomplete"?{state:"degraded",label:"setup required",reasonText:"Finish setup checklist to enable manual sync"}:e.reason?{state:"error",label:"blocked",reasonText:e.reason}:{state:"degraded",label:"blocked"}}function RM({manualSync:e,onSyncNow:t,syncNowPending:a=!1}){const r=xM(e);return S.jsxs(_n,{title:"Manual sync",children:[S.jsx(wl,{state:r.state,label:r.label}),S.jsx("div",{className:"actions-row manual-sync-actions",children:S.jsx("button",{type:"button",className:"btn primary btn-sm",disabled:!e.canRun||a,onClick:t,children:a?"Syncing…":"Sync now"})}),r.reasonText?S.jsx("p",{className:"muted",children:r.reasonText}):null,e.cooldownUntil?S.jsx(Kt,{label:"Cooldown until",value:Js(e.cooldownUntil)}):null]})}function AM({scheduledSync:e}){const t=e.enabled?"ok":"degraded",a=e.enabled?"enabled":"disabled";return S.jsxs(_n,{title:"Scheduled sync",compact:!0,children:[S.jsx(wl,{state:t,label:a}),e.enabled?null:S.jsx("p",{className:"muted",children:"Disabled in General settings."})]})}function z0(e){return typeof e=="string"&&e.length>0?e:null}function dh(e){return typeof e=="number"?String(e):"n/a"}function zM({scouts:e}){return S.jsxs(_n,{title:"Scouts",children:[e.length===0?S.jsx("p",{className:"muted",children:"No scouts"}):null,S.jsx("ul",{className:"id-list",children:e.map(t=>{const a=t,r=z0(a.lastPollAt),u=z0(a.nextPollAt),s=t.last_poll;return S.jsxs("li",{children:[S.jsx(wl,{state:t.state}),S.jsx(Kt,{label:"ID",value:t.id}),r?S.jsx(Kt,{label:"Last poll",value:Js(r)}):null,u?S.jsx(Kt,{label:"Next poll",value:Js(u)}):null,s?S.jsxs(S.Fragment,{children:[S.jsx(Kt,{label:"Candidates",value:dh(s.candidates_count)}),S.jsx(Kt,{label:"Skipped",value:dh(s.skipped_unmapped)}),S.jsx(Kt,{label:"Issues created",value:dh(s.issues_created)})]}):null]},t.id)})})]})}function CM({text:e,linkHref:t,linkLabel:a}){return S.jsxs("li",{className:"setup-checklist-item",children:[S.jsx("span",{className:"setup-checklist-mark","aria-hidden":!0,children:"•"}),S.jsxs("span",{className:"setup-checklist-text",children:[e,t&&a&&S.jsxs(S.Fragment,{children:[" ",S.jsx("a",{className:"setup-checklist-link",href:t,children:a})]})]})]})}function jM({setup:e,items:t}){const a=t??[];return S.jsxs(_n,{title:"Setup checklist",children:[S.jsx(Kt,{label:"Complete",value:e.complete?"yes":"no"}),S.jsx(Kt,{label:"Mappings",value:String(e.mappingCount)}),e.reason?S.jsx(Kt,{label:"Reason",value:e.reason}):null,a.length>0?S.jsx("ul",{className:"setup-checklist",children:a.map(r=>S.jsx(CM,{text:r.text,linkHref:r.linkHref,linkLabel:r.linkLabel},`${r.text}-${r.linkHref??""}`))}):null]})}function Rs({children:e}){return S.jsx("h2",{className:"ui-group-heading",children:e})}function hh({headActions:e,overview:t,sync:a,health:r,setup:u}){return S.jsxs("div",{className:"page",children:[S.jsxs("div",{className:"page-head",children:[S.jsx("h1",{children:"Dashboard"}),e?S.jsx("div",{className:"dashboard-head-actions",children:e}):null]}),S.jsxs("div",{className:"dashboard-template-grid",children:[t?S.jsxs("section",{className:"dashboard-template-slot",children:[S.jsx(Rs,{children:"Overview"}),S.jsx("div",{className:"dashboard-template-stack",children:t})]}):null,a?S.jsxs("section",{className:"dashboard-template-slot",children:[S.jsx(Rs,{children:"Sync"}),S.jsx("div",{className:"dashboard-template-stack",children:a})]}):null,r?S.jsxs("section",{className:"dashboard-template-slot",children:[S.jsx(Rs,{children:"Health"}),S.jsx("div",{className:"dashboard-template-stack",children:r})]}):null,u?S.jsxs("section",{className:"dashboard-template-slot",children:[S.jsx(Rs,{children:"Setup"}),S.jsx("div",{className:"dashboard-template-stack",children:u})]}):null]})]})}function MM(){var p,m;const e=kn(Wi),t=kn(ch),[a,{loading:r}]=Gn(Bj,{refetchQueries:[{query:Wi},{query:ch}],awaitRefetchQueries:!0,onCompleted:()=>{je.success("Sync finished.")},onError:v=>{je.error(`Sync failed: ${Yh(v)}`)}}),[u,{loading:s}]=Gn(mk,{refetchQueries:[{query:Wi},{query:ch}],awaitRefetchQueries:!0,onCompleted:()=>{je.success("Reinit completed.")},onError:v=>{je.error(`Reinit failed: ${Yh(v)}`)}});if(e.loading&&!e.data&&!e.error)return S.jsx(hh,{overview:S.jsx(_n,{title:"Loading",children:S.jsxs("div",{className:"ui-skeleton-stack",children:[S.jsx(aa,{width:"72%"}),S.jsx(aa,{width:"58%"}),S.jsx(aa,{width:"44%"})]})}),sync:S.jsx(_n,{title:"Loading",children:S.jsxs("div",{className:"ui-skeleton-stack",children:[S.jsx(aa,{width:"56%"}),S.jsx(aa,{width:"38%"})]})}),health:S.jsx(_n,{title:"Loading",children:S.jsxs("div",{className:"ui-skeleton-stack",children:[S.jsx(aa,{width:"82%"}),S.jsx(aa,{width:"68%"}),S.jsx(aa,{width:"52%"})]})}),setup:S.jsx(_n,{title:"Loading",children:S.jsxs("div",{className:"ui-skeleton-stack",children:[S.jsx(aa,{width:"64%"}),S.jsx(aa,{width:"48%"})]})})});if(e.error||!((p=e.data)!=null&&p.status))return S.jsx(hh,{overview:S.jsx(_n,{title:"Status unavailable",children:S.jsx("p",{children:"Failed to load dashboard status snapshot."})})});const c=e.data.status,d=pk(c);return S.jsx(hh,{headActions:d?S.jsx("button",{type:"button",className:"btn ghost btn-sm",disabled:s,onClick:()=>{confirm("Run soft reinit? This refreshes settings, rescans checks, clears scout backoff, and reschedules sync.")&&u()},children:s?"Reinit…":"Reinit"}):null,overview:S.jsxs(S.Fragment,{children:[S.jsx(DM,{status:c.gh}),S.jsx(TM,{status:c.database}),S.jsx(kM,{configuration:c.configuration})]}),sync:S.jsxs(S.Fragment,{children:[S.jsx(RM,{manualSync:c.manual_sync,onSyncNow:()=>{a()},syncNowPending:r}),S.jsx(AM,{scheduledSync:c.scheduled_sync})]}),health:S.jsxs(S.Fragment,{children:[S.jsx(wM,{destinations:c.destinations}),S.jsx(zM,{scouts:c.scouts})]}),setup:S.jsx(jM,{setup:c.setup,items:(m=t.data)==null?void 0:m.dashboardSetup.checklist.map(v=>({text:v.text,...v.linkHref?{linkHref:v.linkHref}:{},...v.linkLabel?{linkLabel:v.linkLabel}:{}}))})})}var no=e=>e.type==="checkbox",Ki=e=>e instanceof Date,sn=e=>e==null;const yk=e=>typeof e=="object";var St=e=>!sn(e)&&!Array.isArray(e)&&yk(e)&&!Ki(e),FM=e=>St(e)&&e.target?no(e.target)?e.target.checked:e.target.value:e,VM=(e,t)=>t.split(".").some((a,r,u)=>!isNaN(Number(a))&&e.has(u.slice(0,r).join("."))),UM=e=>{const t=e.constructor&&e.constructor.prototype;return St(t)&&t.hasOwnProperty("isPrototypeOf")},qm=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function At(e){if(e instanceof Date)return new Date(e);const t=typeof FileList<"u"&&e instanceof FileList;if(qm&&(e instanceof Blob||t))return e;const a=Array.isArray(e);if(!a&&!(St(e)&&UM(e)))return e;const r=a?[]:Object.create(Object.getPrototypeOf(e));for(const u in e)Object.prototype.hasOwnProperty.call(e,u)&&(r[u]=At(e[u]));return r}var bc=e=>/^\w*$/.test(e),ft=e=>e===void 0,Qm=e=>Array.isArray(e)?e.filter(Boolean):[],Bm=e=>Qm(e.replace(/["|']|\]/g,"").split(/\.|\[/)),ye=(e,t,a)=>{if(!t||!St(e))return a;const u=(bc(t)?[t]:Bm(t)).reduce((s,c)=>sn(s)?void 0:s[c],e);return ft(u)||u===e?ft(e[t])?a:e[t]:u},ia=e=>typeof e=="boolean",Zn=e=>typeof e=="function",rt=(e,t,a)=>{let r=-1;const u=bc(t)?[t]:Bm(t),s=u.length,c=s-1;for(;++r<s;){const d=u[r];let p=a;if(r!==c){const m=e[d];p=St(m)||Array.isArray(m)?m:isNaN(+u[r+1])?{}:[]}if(d==="__proto__"||d==="constructor"||d==="prototype")return;e[d]=p,e=e[d]}};const Yr={BLUR:"blur",FOCUS_OUT:"focusout",SUBMIT:"submit",TRIGGER:"trigger",VALID:"valid"},Hn={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Bn={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},mh="form",gk="root",LM=Jt.createContext(null);LM.displayName="HookFormControlContext";var qM=(e,t,a,r=!0)=>{const u={defaultValues:t._defaultValues};for(const s in e)Object.defineProperty(u,s,{get:()=>{const c=s;return t._proxyFormState[c]!==Hn.all&&(t._proxyFormState[c]=!r||Hn.all),e[c]}});return u};const QM=typeof window<"u"?Jt.useLayoutEffect:Jt.useEffect;var Yt=e=>typeof e=="string",BM=(e,t,a,r,u)=>Yt(e)?(r&&t.watch.add(e),ye(a,e,u)):Array.isArray(e)?e.map(s=>(r&&t.watch.add(s),ye(a,s))):(r&&(t.watchAll=!0),a),Ph=e=>sn(e)||!yk(e);function Ca(e,t,a=new WeakSet){if(e===t)return!0;if(Ph(e)||Ph(t))return Object.is(e,t);if(Ki(e)&&Ki(t))return Object.is(e.getTime(),t.getTime());const r=Object.keys(e),u=Object.keys(t);if(r.length!==u.length)return!1;if(a.has(e)||a.has(t))return!0;a.add(e),a.add(t);for(const s of r){const c=e[s];if(!(s in t))return!1;if(s!=="ref"){const d=t[s];if(Ki(c)&&Ki(d)||(St(c)||Array.isArray(c))&&(St(d)||Array.isArray(d))?!Ca(c,d,a):!Object.is(c,d))return!1}}return!0}const IM=Jt.createContext(null);IM.displayName="HookFormContext";var ZM=(e,t,a,r,u)=>t?{...a[e],types:{...a[e]&&a[e].types?a[e].types:{},[r]:u||!0}}:{},Zu=e=>Array.isArray(e)?e:[e],C0=()=>{let e=[];return{get observers(){return e},next:u=>{for(const s of e)s.next&&s.next(u)},subscribe:u=>(e.push(u),{unsubscribe:()=>{e=e.filter(s=>s!==u)}}),unsubscribe:()=>{e=[]}}};function bk(e,t){const a={};for(const r in e)if(e.hasOwnProperty(r)){const u=e[r],s=t[r];if(u&&St(u)&&s){const c=bk(u,s);St(c)&&(a[r]=c)}else e[r]&&(a[r]=s)}return a}var Gt=e=>St(e)&&!Object.keys(e).length,Im=e=>e.type==="file",Ks=e=>{if(!qm)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},_k=e=>e.type==="select-multiple",Zm=e=>e.type==="radio",HM=e=>Zm(e)||no(e),ph=e=>Ks(e)&&e.isConnected;function $M(e,t){const a=t.slice(0,-1).length;let r=0;for(;r<a;)e=ft(e)?r++:e[t[r++]];return e}function GM(e){for(const t in e)if(e.hasOwnProperty(t)&&!ft(e[t]))return!1;return!0}function wt(e,t){if(Yt(t)&&Object.prototype.hasOwnProperty.call(e,t))return delete e[t],e;const a=Array.isArray(t)?t:bc(t)?[t]:Bm(t),r=a.length===1?e:$M(e,a),u=a.length-1,s=a[u];return r&&delete r[s],u!==0&&(St(r)&&Gt(r)||Array.isArray(r)&&GM(r))&&wt(e,a.slice(0,-1)),e}var YM=e=>{for(const t in e)if(Zn(e[t]))return!0;return!1};function Sk(e){return Array.isArray(e)||St(e)&&!YM(e)}function Xh(e,t={}){for(const a in e){const r=e[a];Sk(r)?(t[a]=Array.isArray(r)?[]:{},Xh(r,t[a])):ft(r)||(t[a]=!0)}return t}function Vu(e,t,a){a||(a=Xh(t));for(const r in e){const u=e[r];if(Sk(u))ft(t)||Ph(a[r])?a[r]=Xh(u,Array.isArray(u)?[]:{}):Vu(u,sn(t)?{}:t[r],a[r]);else{const s=t[r];a[r]=!Ca(u,s)}}return a}const j0={value:!1,isValid:!1},M0={value:!0,isValid:!0};var kk=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(a=>a&&a.checked&&!a.disabled).map(a=>a.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!ft(e[0].attributes.value)?ft(e[0].value)||e[0].value===""?M0:{value:e[0].value,isValid:!0}:M0:j0}return j0},Ek=(e,{valueAsNumber:t,valueAsDate:a,setValueAs:r})=>ft(e)?e:t?e===""?NaN:e&&+e:a&&Yt(e)?new Date(e):r?r(e):e;const F0={isValid:!1,value:null};var Nk=e=>Array.isArray(e)?e.reduce((t,a)=>a&&a.checked&&!a.disabled?{isValid:!0,value:a.value}:t,F0):F0;function V0(e){const t=e.ref;return Im(t)?t.files:Zm(t)?Nk(e.refs).value:_k(t)?[...t.selectedOptions].map(({value:a})=>a):no(t)?kk(e.refs).value:Ek(ft(t.value)?e.ref.value:t.value,e)}var PM=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,XM=(e,t,a,r)=>{const u={};for(const s of e){const c=ye(t,s);c&&rt(u,s,c._f)}return{criteriaMode:a,names:[...e],fields:u,shouldUseNativeValidation:r}},Ws=e=>e instanceof RegExp,zu=e=>ft(e)?e:Ws(e)?e.source:St(e)?Ws(e.value)?e.value.source:e.value:e,U0=e=>({isOnSubmit:!e||e===Hn.onSubmit,isOnBlur:e===Hn.onBlur,isOnChange:e===Hn.onChange,isOnAll:e===Hn.all,isOnTouch:e===Hn.onTouched});const L0="AsyncFunction";var JM=e=>!!e&&!!e.validate&&!!(Zn(e.validate)&&e.validate.constructor.name===L0||St(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===L0)),KM=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),q0=(e,t,a)=>!a&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const Hu=(e,t,a,r)=>{for(const u of a||Object.keys(e)){const s=ye(e,u);if(s){const{_f:c,...d}=s;if(c){if(c.refs&&c.refs[0]&&t(c.refs[0],u)&&!r)return!0;if(c.ref&&t(c.ref,c.name)&&!r)return!0;if(Hu(d,t))break}else if(St(d)&&Hu(d,t))break}}};function Q0(e,t,a){const r=ye(e,a);if(r||bc(a))return{error:r,name:a};const u=a.split(".");for(;u.length;){const s=u.join("."),c=ye(t,s),d=ye(e,s);if(c&&!Array.isArray(c)&&a!==s)return{name:a};if(d&&d.type)return{name:s,error:d};if(d&&d.root&&d.root.type)return{name:`${s}.root`,error:d.root};u.pop()}return{name:a}}var WM=(e,t,a,r)=>{a(e);const{name:u,...s}=e;return Gt(s)||Object.keys(s).length>=Object.keys(t).length||Object.keys(s).find(c=>t[c]===(!r||Hn.all))},e2=(e,t,a)=>!e||!t||e===t||Zu(e).some(r=>r&&(a?r===t:r.startsWith(t)||t.startsWith(r))),t2=(e,t,a,r,u)=>u.isOnAll?!1:!a&&u.isOnTouch?!(t||e):(a?r.isOnBlur:u.isOnBlur)?!e:(a?r.isOnChange:u.isOnChange)?e:!0,n2=(e,t)=>!Qm(ye(e,t)).length&&wt(e,t),a2=(e,t,a)=>{const r=Zu(ye(e,a));return rt(r,gk,t[a]),rt(e,a,r),e};function B0(e,t,a="validate"){if(Yt(e)||Array.isArray(e)&&e.every(Yt)||ia(e)&&!e)return{type:a,message:Yt(e)?e:"",ref:t}}var Pr=e=>St(e)&&!Ws(e)?e:{value:e,message:""},I0=async(e,t,a,r,u,s)=>{const{ref:c,refs:d,required:p,maxLength:m,minLength:v,min:y,max:b,pattern:_,validate:E,name:T,valueAsNumber:D,mount:N}=e._f,w=ye(a,T);if(!N||t.has(T))return{};const O=d?d[0]:c,M=le=>{u&&O.reportValidity&&(O.setCustomValidity(ia(le)?"":le||""),O.reportValidity())},z={},Z=Zm(c),$=no(c),W=Z||$,se=(D||Im(c))&&ft(c.value)&&ft(w)||Ks(c)&&c.value===""||w===""||Array.isArray(w)&&!w.length,Ne=ZM.bind(null,T,r,z),Be=(le,fe,ee,ce=Bn.maxLength,U=Bn.minLength)=>{const P=le?fe:ee;z[T]={type:le?ce:U,message:P,ref:c,...Ne(le?ce:U,P)}};if(s?!Array.isArray(w)||!w.length:p&&(!W&&(se||sn(w))||ia(w)&&!w||$&&!kk(d).isValid||Z&&!Nk(d).isValid)){const{value:le,message:fe}=Yt(p)?{value:!!p,message:p}:Pr(p);if(le&&(z[T]={type:Bn.required,message:fe,ref:O,...Ne(Bn.required,fe)},!r))return M(fe),z}if(!se&&(!sn(y)||!sn(b))){let le,fe;const ee=Pr(b),ce=Pr(y);if(!sn(w)&&!isNaN(w)){const U=c.valueAsNumber||w&&+w;sn(ee.value)||(le=U>ee.value),sn(ce.value)||(fe=U<ce.value)}else{const U=c.valueAsDate||new Date(w),P=ve=>new Date(new Date().toDateString()+" "+ve),ie=c.type=="time",me=c.type=="week";Yt(ee.value)&&w&&(le=ie?P(w)>P(ee.value):me?w>ee.value:U>new Date(ee.value)),Yt(ce.value)&&w&&(fe=ie?P(w)<P(ce.value):me?w<ce.value:U<new Date(ce.value))}if((le||fe)&&(Be(!!le,ee.message,ce.message,Bn.max,Bn.min),!r))return M(z[T].message),z}if((m||v)&&!se&&(Yt(w)||s&&Array.isArray(w))){const le=Pr(m),fe=Pr(v),ee=!sn(le.value)&&w.length>+le.value,ce=!sn(fe.value)&&w.length<+fe.value;if((ee||ce)&&(Be(ee,le.message,fe.message),!r))return M(z[T].message),z}if(_&&!se&&Yt(w)){const{value:le,message:fe}=Pr(_);if(Ws(le)&&!w.match(le)&&(z[T]={type:Bn.pattern,message:fe,ref:c,...Ne(Bn.pattern,fe)},!r))return M(fe),z}if(E){if(Zn(E)){const le=await E(w,a),fe=B0(le,O);if(fe&&(z[T]={...fe,...Ne(Bn.validate,fe.message)},!r))return M(fe.message),z}else if(St(E)){let le={};for(const fe in E){if(!Gt(le)&&!r)break;const ee=B0(await E[fe](w,a),O,fe);ee&&(le={...ee,...Ne(fe,ee.message)},M(ee.message),r&&(z[T]=le))}if(!Gt(le)&&(z[T]={ref:O,...le},!r))return z}}return M(!0),z};const i2={mode:Hn.onSubmit,reValidateMode:Hn.onChange,shouldFocusError:!0};function r2(e={}){let t={...i2,...e},a={submitCount:0,isDirty:!1,isReady:!1,isLoading:Zn(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},u=St(t.defaultValues)||St(t.values)?At(t.defaultValues||t.values)||{}:{},s=t.shouldUnregister?{}:At(u),c={action:!1,mount:!1,watch:!1,keepIsValid:!1},d={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set,registerName:new Set},p,m=0;const v={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},y={...v};let b={...y};const _={array:C0(),state:C0()},E=t.criteriaMode===Hn.all,T=R=>L=>{clearTimeout(m),m=setTimeout(R,L)},D=async R=>{if(!c.keepIsValid&&!t.disabled&&(y.isValid||b.isValid||R)){let L;t.resolver?(L=Gt((await se()).errors),N()):L=await le({fields:r,onlyCheckValid:!0,eventType:Yr.VALID}),L!==a.isValid&&_.state.next({isValid:L})}},N=(R,L)=>{!t.disabled&&(y.isValidating||y.validatingFields||b.isValidating||b.validatingFields)&&((R||Array.from(d.mount)).forEach(I=>{I&&(L?rt(a.validatingFields,I,L):wt(a.validatingFields,I))}),_.state.next({validatingFields:a.validatingFields,isValidating:!Gt(a.validatingFields)}))},w=R=>{const L=Vu(u,s),I=PM(R);rt(a.dirtyFields,I,ye(L,I))},O=(R,L=[],I,ue,re=!0,te=!0)=>{if(ue&&I&&!t.disabled){if(c.action=!0,te&&Array.isArray(ye(r,R))){const he=I(ye(r,R),ue.argA,ue.argB);re&&rt(r,R,he)}if(te&&Array.isArray(ye(a.errors,R))){const he=I(ye(a.errors,R),ue.argA,ue.argB);re&&rt(a.errors,R,he),n2(a.errors,R)}if((y.touchedFields||b.touchedFields)&&te&&Array.isArray(ye(a.touchedFields,R))){const he=I(ye(a.touchedFields,R),ue.argA,ue.argB);re&&rt(a.touchedFields,R,he)}(y.dirtyFields||b.dirtyFields)&&w(R),_.state.next({name:R,isDirty:ee(R,L),dirtyFields:a.dirtyFields,errors:a.errors,isValid:a.isValid})}else rt(s,R,L)},M=(R,L)=>{rt(a.errors,R,L),_.state.next({errors:a.errors})},z=R=>{a.errors=R,_.state.next({errors:a.errors,isValid:!1})},Z=(R,L,I,ue)=>{const re=ye(r,R);if(re){const te=ye(s,R,ft(I)?ye(u,R):I);ft(te)||ue&&ue.defaultChecked||L?rt(s,R,L?te:V0(re._f)):P(R,te),c.mount&&!c.action&&D()}},$=(R,L,I,ue,re)=>{let te=!1,he=!1;const we={name:R};if(!t.disabled){if(!I||ue){(y.isDirty||b.isDirty)&&(he=a.isDirty,a.isDirty=we.isDirty=ee(),te=he!==we.isDirty);const Le=Ca(ye(u,R),L);he=!!ye(a.dirtyFields,R),Le?wt(a.dirtyFields,R):rt(a.dirtyFields,R,!0),we.dirtyFields=a.dirtyFields,te=te||(y.dirtyFields||b.dirtyFields)&&he!==!Le}if(I){const Le=ye(a.touchedFields,R);Le||(rt(a.touchedFields,R,I),we.touchedFields=a.touchedFields,te=te||(y.touchedFields||b.touchedFields)&&Le!==I)}te&&re&&_.state.next(we)}return te?we:{}},W=(R,L,I,ue)=>{const re=ye(a.errors,R),te=(y.isValid||b.isValid)&&ia(L)&&a.isValid!==L;if(t.delayError&&I?(p=T(()=>M(R,I)),p(t.delayError)):(clearTimeout(m),p=null,I?rt(a.errors,R,I):wt(a.errors,R)),(I?!Ca(re,I):re)||!Gt(ue)||te){const he={...ue,...te&&ia(L)?{isValid:L}:{},errors:a.errors,name:R};a={...a,...he},_.state.next(he)}},se=async R=>(N(R,!0),await t.resolver(s,t.context,XM(R||d.mount,r,t.criteriaMode,t.shouldUseNativeValidation))),Ne=async R=>{const{errors:L}=await se(R);if(N(R),R)for(const I of R){const ue=ye(L,I);ue?rt(a.errors,I,ue):wt(a.errors,I)}else a.errors=L;return L},Be=async({name:R,eventType:L})=>{if(e.validate){const I=await e.validate({formValues:s,formState:a,name:R,eventType:L});if(St(I))for(const ue in I)I[ue]&&_e(`${mh}.${ue}`,{message:Yt(I.message)?I.message:"",type:Bn.validate});else Yt(I)||!I?_e(mh,{message:I||"",type:Bn.validate}):ge(mh);return I}return!0},le=async({fields:R,onlyCheckValid:L,name:I,eventType:ue,context:re={valid:!0,runRootValidation:!1}})=>{if(e.validate&&(re.runRootValidation=!0,!await Be({name:I,eventType:ue})&&(re.valid=!1,L)))return re.valid;for(const te in R){const he=R[te];if(he){const{_f:we,...Le}=he;if(we){const Ft=d.array.has(we.name),Ht=he._f&&JM(he._f);Ht&&y.validatingFields&&N([we.name],!0);const Xe=await I0(he,d.disabled,s,E,t.shouldUseNativeValidation&&!L,Ft);if(Ht&&y.validatingFields&&N([we.name]),Xe[we.name]&&(re.valid=!1,L)||(!L&&(ye(Xe,we.name)?Ft?a2(a.errors,Xe,we.name):rt(a.errors,we.name,Xe[we.name]):wt(a.errors,we.name)),e.shouldUseNativeValidation&&Xe[we.name]))break}!Gt(Le)&&await le({context:re,onlyCheckValid:L,fields:Le,name:te,eventType:ue})}}return re.valid},fe=()=>{for(const R of d.unMount){const L=ye(r,R);L&&(L._f.refs?L._f.refs.every(I=>!ph(I)):!ph(L._f.ref))&&sa(R)}d.unMount=new Set},ee=(R,L)=>!t.disabled&&(R&&L&&rt(s,R,L),!Ca(ae(),u)),ce=(R,L,I)=>BM(R,d,{...c.mount?s:ft(L)?u:Yt(R)?{[R]:L}:L},I,L),U=R=>Qm(ye(c.mount?s:u,R,t.shouldUnregister?ye(u,R,[]):[])),P=(R,L,I={})=>{const ue=ye(r,R);let re=L;if(ue){const te=ue._f;te&&(!te.disabled&&rt(s,R,Ek(L,te)),re=Ks(te.ref)&&sn(L)?"":L,_k(te.ref)?[...te.ref.options].forEach(he=>he.selected=re.includes(he.value)):te.refs?no(te.ref)?te.refs.forEach(he=>{(!he.defaultChecked||!he.disabled)&&(Array.isArray(re)?he.checked=!!re.find(we=>we===he.value):he.checked=re===he.value||!!re)}):te.refs.forEach(he=>he.checked=he.value===re):Im(te.ref)?te.ref.value="":(te.ref.value=re,te.ref.type||_.state.next({name:R,values:At(s)})))}(I.shouldDirty||I.shouldTouch)&&$(R,re,I.shouldTouch,I.shouldDirty,!0),I.shouldValidate&&G(R)},ie=(R,L,I)=>{for(const ue in L){if(!L.hasOwnProperty(ue))return;const re=L[ue],te=R+"."+ue,he=ye(r,te);(d.array.has(R)||St(re)||he&&!he._f)&&!Ki(re)?ie(te,re,I):P(te,re,I)}},me=(R,L,I={})=>{const ue=ye(r,R),re=d.array.has(R),te=At(L),he=ye(s,R),we=Ca(he,te);if(rt(s,R,te),re)_.array.next({name:R,values:At(s)}),I.shouldDirty&&(w(R),_.state.next({name:R,dirtyFields:a.dirtyFields,isDirty:ee(R,te)}));else{const Le=Array.isArray(te)&&!te.length||Gt(te);!ue||ue._f||sn(te)||Le?P(R,te,I):ie(R,te,I)}we||(q0(R,d)?_.state.next({...a,name:R,values:At(s)}):_.state.next({name:c.mount?R:void 0,values:At(s)}))},ve=async R=>{c.mount=!0;const L=R.target;let I=L.name,ue=!0;const re=ye(r,I),te=Le=>{ue=Number.isNaN(Le)||Ki(Le)&&isNaN(Le.getTime())||Ca(Le,ye(s,I,Le))},he=U0(t.mode),we=U0(t.reValidateMode);if(re){let Le,Ft;const Ht=L.type?V0(re._f):FM(R),Xe=R.type===Yr.BLUR||R.type===Yr.FOCUS_OUT,Kn=!KM(re._f)&&!e.validate&&!t.resolver&&!ye(a.errors,I)&&!re._f.deps||t2(Xe,ye(a.touchedFields,I),a.isSubmitted,we,he),Vt=q0(I,d,Xe);rt(s,I,Ht),Xe?(!L||!L.readOnly)&&(re._f.onBlur&&re._f.onBlur(R),p&&p(0)):re._f.onChange&&re._f.onChange(R);const zl=$(I,Ht,Xe),Sc=!Gt(zl)||Vt;if(!Xe&&_.state.next({name:I,type:R.type,values:At(s)}),Kn)return(y.isValid||b.isValid)&&(t.mode==="onBlur"?Xe&&D():Xe||D()),Sc&&_.state.next({name:I,...Vt?{}:zl});if(!t.resolver&&e.validate&&await Be({name:I,eventType:R.type}),!Xe&&Vt&&_.state.next({...a}),t.resolver){const{errors:lo}=await se([I]);if(N([I]),te(Ht),ue){const or=Q0(a.errors,r,I),Di=Q0(lo,r,or.name||I);Le=Di.error,I=Di.name,Ft=Gt(lo)}}else N([I],!0),Le=(await I0(re,d.disabled,s,E,t.shouldUseNativeValidation))[I],N([I]),te(Ht),ue&&(Le?Ft=!1:(y.isValid||b.isValid)&&(Ft=await le({fields:r,onlyCheckValid:!0,name:I,eventType:R.type})));ue&&(re._f.deps&&(!Array.isArray(re._f.deps)||re._f.deps.length>0)&&G(re._f.deps),W(I,Ft,Le,zl))}},A=(R,L)=>{if(ye(a.errors,L)&&R.focus)return R.focus(),1},G=async(R,L={})=>{let I,ue;const re=Zu(R);if(t.resolver){const te=await Ne(ft(R)?R:re);I=Gt(te),ue=R?!re.some(he=>ye(te,he)):I}else R?(ue=(await Promise.all(re.map(async te=>{const he=ye(r,te);return await le({fields:he&&he._f?{[te]:he}:he,eventType:Yr.TRIGGER})}))).every(Boolean),!(!ue&&!a.isValid)&&D()):ue=I=await le({fields:r,name:R,eventType:Yr.TRIGGER});return _.state.next({...!Yt(R)||(y.isValid||b.isValid)&&I!==a.isValid?{}:{name:R},...t.resolver||!R?{isValid:I}:{},errors:a.errors}),L.shouldFocus&&!ue&&Hu(r,A,R?re:d.mount),ue},ae=(R,L)=>{let I={...c.mount?s:u};return L&&(I=bk(L.dirtyFields?a.dirtyFields:a.touchedFields,I)),ft(R)?I:Yt(R)?ye(I,R):R.map(ue=>ye(I,ue))},oe=(R,L)=>({invalid:!!ye((L||a).errors,R),isDirty:!!ye((L||a).dirtyFields,R),error:ye((L||a).errors,R),isValidating:!!ye(a.validatingFields,R),isTouched:!!ye((L||a).touchedFields,R)}),ge=R=>{const L=R?Zu(R):void 0;L==null||L.forEach(I=>wt(a.errors,I)),L?L.forEach(I=>{_.state.next({name:I,errors:a.errors})}):_.state.next({errors:{}})},_e=(R,L,I)=>{const ue=(ye(r,R,{_f:{}})._f||{}).ref,re=ye(a.errors,R)||{},{ref:te,message:he,type:we,...Le}=re;rt(a.errors,R,{...Le,...L,ref:ue}),_.state.next({name:R,errors:a.errors,isValid:!1}),I&&I.shouldFocus&&ue&&ue.focus&&ue.focus()},qe=(R,L)=>Zn(R)?_.state.subscribe({next:I=>"values"in I&&R(I.values||ce(void 0,L),I)}):ce(R,L,!0),kt=R=>_.state.subscribe({next:L=>{if(e2(R.name,L.name,R.exact)&&WM(L,R.formState||y,Al,R.reRenderRoot)){const I={...s};R.callback({values:I,...a,...L,defaultValues:u})}}}).unsubscribe,ct=R=>(c.mount=!0,b={...b,...R.formState},kt({...R,formState:{...v,...R.formState}})),sa=(R,L={})=>{for(const I of R?Zu(R):d.mount)d.mount.delete(I),d.array.delete(I),L.keepValue||(wt(r,I),wt(s,I)),!L.keepError&&wt(a.errors,I),!L.keepDirty&&wt(a.dirtyFields,I),!L.keepTouched&&wt(a.touchedFields,I),!L.keepIsValidating&&wt(a.validatingFields,I),!t.shouldUnregister&&!L.keepDefaultValue&&wt(u,I);_.state.next({values:At(s)}),_.state.next({...a,...L.keepDirty?{isDirty:ee()}:{}}),!L.keepIsValid&&D()},Oi=({disabled:R,name:L})=>{if(ia(R)&&c.mount||R||d.disabled.has(L)){const re=d.disabled.has(L)!==!!R;R?d.disabled.add(L):d.disabled.delete(L),re&&c.mount&&!c.action&&D()}},wi=(R,L={})=>{let I=ye(r,R);const ue=ia(L.disabled)||ia(t.disabled),re=!d.registerName.has(R)&&I&&I._f&&!I._f.mount;return rt(r,R,{...I||{},_f:{...I&&I._f?I._f:{ref:{name:R}},name:R,mount:!0,...L}}),d.mount.add(R),I&&!re?Oi({disabled:ia(L.disabled)?L.disabled:t.disabled,name:R}):Z(R,!0,L.value),{...ue?{disabled:L.disabled||t.disabled}:{},...t.progressive?{required:!!L.required,min:zu(L.min),max:zu(L.max),minLength:zu(L.minLength),maxLength:zu(L.maxLength),pattern:zu(L.pattern)}:{},name:R,onChange:ve,onBlur:ve,ref:te=>{if(te){d.registerName.add(R),wi(R,L),d.registerName.delete(R),I=ye(r,R);const he=ft(te.value)&&te.querySelectorAll&&te.querySelectorAll("input,select,textarea")[0]||te,we=HM(he),Le=I._f.refs||[];if(we?Le.find(Ft=>Ft===he):he===I._f.ref)return;rt(r,R,{_f:{...I._f,...we?{refs:[...Le.filter(ph),he,...Array.isArray(ye(u,R))?[{}]:[]],ref:{type:he.type,name:R}}:{ref:he}}}),Z(R,!1,void 0,he)}else I=ye(r,R,{}),I._f&&(I._f.mount=!1),(t.shouldUnregister||L.shouldUnregister)&&!(VM(d.array,R)&&c.action)&&d.unMount.add(R)}}},lr=()=>t.shouldFocusError&&Hu(r,A,d.mount),ca=R=>{ia(R)&&(_.state.next({disabled:R}),Hu(r,(L,I)=>{const ue=ye(r,I);ue&&(L.disabled=ue._f.disabled||R,Array.isArray(ue._f.refs)&&ue._f.refs.forEach(re=>{re.disabled=ue._f.disabled||R}))},0,!1))},ur=(R,L)=>async I=>{let ue;I&&(I.preventDefault&&I.preventDefault(),I.persist&&I.persist());let re=At(s);if(_.state.next({isSubmitting:!0}),t.resolver){const{errors:te,values:he}=await se();N(),a.errors=te,re=At(he)}else await le({fields:r,eventType:Yr.SUBMIT});if(d.disabled.size)for(const te of d.disabled)wt(re,te);if(wt(a.errors,gk),Gt(a.errors)){_.state.next({errors:{}});try{await R(re,I)}catch(te){ue=te}}else L&&await L({...a.errors},I),lr(),setTimeout(lr);if(_.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Gt(a.errors)&&!ue,submitCount:a.submitCount+1,errors:a.errors}),ue)throw ue},Dl=(R,L={})=>{ye(r,R)&&(ft(L.defaultValue)?me(R,At(ye(u,R))):(me(R,L.defaultValue),rt(u,R,At(L.defaultValue))),L.keepTouched||wt(a.touchedFields,R),L.keepDirty||(wt(a.dirtyFields,R),a.isDirty=L.defaultValue?ee(R,At(ye(u,R))):ee()),L.keepError||(wt(a.errors,R),y.isValid&&D()),_.state.next({...a}))},ao=(R,L={})=>{const I=R?At(R):u,ue=At(I),re=Gt(R),te=re?u:ue;if(L.keepDefaultValues||(u=I),!L.keepValues){if(L.keepDirtyValues){const he=new Set([...d.mount,...Object.keys(Vu(u,s))]);for(const we of Array.from(he)){const Le=ye(a.dirtyFields,we),Ft=ye(s,we),Ht=ye(te,we);Le&&!ft(Ft)?rt(te,we,Ft):!Le&&!ft(Ht)&&me(we,Ht)}}else{if(qm&&ft(R))for(const he of d.mount){const we=ye(r,he);if(we&&we._f){const Le=Array.isArray(we._f.refs)?we._f.refs[0]:we._f.ref;if(Ks(Le)){const Ft=Le.closest("form");if(Ft){Ft.reset();break}}}}if(L.keepFieldsRef)for(const he of d.mount)me(he,ye(te,he));else r={}}s=t.shouldUnregister?L.keepDefaultValues?At(u):{}:At(te),_.array.next({values:{...te}}),_.state.next({values:{...te}})}d={mount:L.keepDirtyValues?d.mount:new Set,unMount:new Set,array:new Set,registerName:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},c.mount=!y.isValid||!!L.keepIsValid||!!L.keepDirtyValues||!t.shouldUnregister&&!Gt(te),c.watch=!!t.shouldUnregister,c.keepIsValid=!!L.keepIsValid,c.action=!1,L.keepErrors||(a.errors={}),_.state.next({submitCount:L.keepSubmitCount?a.submitCount:0,isDirty:re?!1:L.keepDirty?a.isDirty:!!(L.keepDefaultValues&&!Ca(R,u)),isSubmitted:L.keepIsSubmitted?a.isSubmitted:!1,dirtyFields:re?{}:L.keepDirtyValues?L.keepDefaultValues&&s?Vu(u,s):a.dirtyFields:L.keepDefaultValues&&R?Vu(u,R):L.keepDirty?a.dirtyFields:{},touchedFields:L.keepTouched?a.touchedFields:{},errors:L.keepErrors?a.errors:{},isSubmitSuccessful:L.keepIsSubmitSuccessful?a.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:u})},xl=(R,L)=>ao(Zn(R)?R(s):R,{...t.resetOptions,...L}),Rl=(R,L={})=>{const I=ye(r,R),ue=I&&I._f;if(ue){const re=ue.refs?ue.refs[0]:ue.ref;re.focus&&setTimeout(()=>{re.focus(),L.shouldSelect&&Zn(re.select)&&re.select()})}},Al=R=>{a={...a,...R}},ro={control:{register:wi,unregister:sa,getFieldState:oe,handleSubmit:ur,setError:_e,_subscribe:kt,_runSchema:se,_updateIsValidating:N,_focusError:lr,_getWatch:ce,_getDirty:ee,_setValid:D,_setFieldArray:O,_setDisabledField:Oi,_setErrors:z,_getFieldArray:U,_reset:ao,_resetDefaultValues:()=>Zn(t.defaultValues)&&t.defaultValues().then(R=>{xl(R,t.resetOptions),_.state.next({isLoading:!1})}),_removeUnmounted:fe,_disableForm:ca,_subjects:_,_proxyFormState:y,get _fields(){return r},get _formValues(){return s},get _state(){return c},set _state(R){c=R},get _defaultValues(){return u},get _names(){return d},set _names(R){d=R},get _formState(){return a},get _options(){return t},set _options(R){t={...t,...R}}},subscribe:ct,trigger:G,register:wi,handleSubmit:ur,watch:qe,setValue:me,getValues:ae,reset:xl,resetField:Dl,clearErrors:ge,unregister:sa,setError:_e,setFocus:Rl,getFieldState:oe};return{...ro,formControl:ro}}function _c(e={}){const t=Jt.useRef(void 0),a=Jt.useRef(void 0),[r,u]=Jt.useState({isDirty:!1,isValidating:!1,isLoading:Zn(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:Zn(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:r},e.defaultValues&&!Zn(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:c,...d}=r2(e);t.current={...d,formState:r}}const s=t.current.control;return s._options=e,QM(()=>{const c=s._subscribe({formState:s._proxyFormState,callback:()=>u({...s._formState}),reRenderRoot:!0});return u(d=>({...d,isReady:!0})),s._formState.isReady=!0,c},[s]),Jt.useEffect(()=>s._disableForm(e.disabled),[s,e.disabled]),Jt.useEffect(()=>{e.mode&&(s._options.mode=e.mode),e.reValidateMode&&(s._options.reValidateMode=e.reValidateMode)},[s,e.mode,e.reValidateMode]),Jt.useEffect(()=>{e.errors&&(s._setErrors(e.errors),s._focusError())},[s,e.errors]),Jt.useEffect(()=>{e.shouldUnregister&&s._subjects.state.next({values:s._getWatch()})},[s,e.shouldUnregister]),Jt.useEffect(()=>{if(s._proxyFormState.isDirty){const c=s._getDirty();c!==r.isDirty&&s._subjects.state.next({isDirty:c})}},[s,r.isDirty]),Jt.useEffect(()=>{var c;e.values&&!Ca(e.values,a.current)?(s._reset(e.values,{keepFieldsRef:!0,...s._options.resetOptions}),!((c=s._options.resetOptions)===null||c===void 0)&&c.keepIsValid||s._setValid(),a.current=e.values,u(d=>({...d}))):s._resetDefaultValues()},[s,e.values]),Jt.useEffect(()=>{s._state.mount||(s._setValid(),s._state.mount=!0),s._state.watch&&(s._state.watch=!1,s._subjects.state.next({...s._formState})),s._removeUnmounted()}),t.current.formState=Jt.useMemo(()=>qM(r,s),[s,r]),t.current}function l2({fields:e,values:t,saving:a,onValueChange:r,onSubmit:u}){return S.jsx("section",{className:"card",children:S.jsxs("form",{className:"form-stack",onSubmit:s=>{s.preventDefault(),u()},children:[e.map(s=>S.jsxs("label",{className:"field",children:[S.jsx("span",{className:"field-label",children:s.label}),S.jsx("textarea",{className:"input",rows:3,value:t[s.key]??"",onChange:c=>r(s.key,c.target.value)})]},s.key)),S.jsx("button",{type:"submit",className:"btn primary",disabled:a,children:a?"Saving…":"Save"})]})})}function u2(){var m;const e=kn(qj,{fetchPolicy:"cache-and-network"}),[t,a]=Gn(Hj,{onCompleted:()=>{je.success("GitHub settings saved.")},onError:v=>{je.error(`Save failed: ${fn(v)}`)}}),{handleSubmit:r,reset:u,setValue:s,watch:c}=_c({defaultValues:{}}),d=((m=e.data)==null?void 0:m.githubFields)??null;F.useEffect(()=>{if(!d||d.disabled)return;const v={};for(const y of d.fields)v[y.key]=y.value;u(v)},[d,u]);const p=async v=>{await t({variables:{input:v}})};return e.loading&&!d&&!e.error?S.jsxs("div",{className:"stack",children:[S.jsx("h1",{children:"GitHub"}),S.jsx("p",{className:"muted",children:"Loading…"})]}):e.error?S.jsxs("div",{className:"stack",children:[S.jsx("h1",{children:"GitHub"}),S.jsx("p",{className:"text-danger",children:fn(e.error)})]}):d!=null&&d.disabled?S.jsxs("div",{className:"stack",children:[S.jsx("h1",{children:"GitHub"}),S.jsx("p",{className:"muted",children:"GitHub source is not active for this process."})]}):S.jsxs("div",{className:"stack",children:[S.jsx("h1",{children:"GitHub"}),S.jsx(l2,{fields:(d==null?void 0:d.fields)??[],values:c(),saving:a.loading,onValueChange:(v,y)=>s(v,y,{shouldDirty:!0}),onSubmit:()=>{r(v=>{p(v)})()}})]})}const Jh="optimistic:";function o2(){return typeof crypto<"u"&&"randomUUID"in crypto?`${Jh}${crypto.randomUUID()}`:`${Jh}${Date.now()}`}function s2(e,t){const a=e.find(s=>s.id===t.id)??e.find(s=>s.githubRepo===t.githubRepo),r=e.filter(s=>!(s.id===t.id||s.id.startsWith(Jh)&&s.githubRepo===t.githubRepo&&s.id!==t.id)),u=(a==null?void 0:a.createdAt)!=null&&typeof a.createdAt=="string"?a.createdAt:new Date().toISOString();return[...r,{__typename:"MappingGql",id:t.id,githubRepo:t.githubRepo,vibeKanbanRepoId:t.vibeKanbanRepoId,createdAt:u,updatedAt:new Date().toISOString()}]}function c2({message:e,onReloadPage:t}){return S.jsxs("section",{className:"card",children:[S.jsxs("p",{className:"text-danger",children:["Could not load Kanban repositories: ",e]}),S.jsx("button",{type:"button",className:"btn ghost",onClick:t,children:"Reload page"})]})}function f2({row:e,deleteBusy:t,onRequestDelete:a}){return S.jsxs("tr",{children:[S.jsx("td",{children:S.jsx("code",{children:e.githubRepo})}),S.jsx("td",{children:S.jsx("code",{children:e.vibeKanbanRepoId})}),S.jsx("td",{className:"table-actions",children:S.jsx("button",{type:"button",className:"btn danger ghost",disabled:t,onClick:a,children:t?"Deleting…":"Delete"})})]})}function d2({rows:e,listInitialLoading:t,listErrorMessage:a,showEmptyHint:r,deleteBusy:u,onRequestDelete:s}){return S.jsxs("section",{className:"card mappings-existing-card",children:[S.jsx("h2",{children:"Existing"}),t?S.jsx("p",{className:"muted",children:"Loading mappings…"}):null,a?S.jsxs("p",{className:"text-danger",children:["Failed to load mappings: ",a]}):null,r?S.jsx("p",{className:"muted",children:"No mappings yet. Add one above to route GitHub PRs to a Kanban repository."}):null,e.length>0?S.jsxs("table",{className:"data-table",children:[S.jsx("thead",{children:S.jsxs("tr",{children:[S.jsx("th",{children:"GitHub repo"}),S.jsx("th",{children:"Kanban repo"}),S.jsx("th",{})]})}),S.jsx("tbody",{children:e.map(c=>S.jsx(f2,{row:c,deleteBusy:u,onRequestDelete:()=>{confirm("Delete this mapping?")&&s(c.id)}},c.id))})]}):null]})}function h2({value:e,options:t,loading:a,onChange:r}){return S.jsxs("label",{className:"field",children:[S.jsx("span",{className:"field-label",children:"Kanban repository"}),S.jsxs("select",{className:"input",value:e,onChange:u=>r(u.target.value),disabled:a,children:[S.jsx("option",{value:"",children:a?"Loading…":"Select…"}),t.map(u=>S.jsx("option",{value:u.id,children:u.name??u.id},u.id))]})]})}function m2({githubRepo:e,vkRepoId:t,vkRepos:a,vkReposLoading:r,upserting:u,onGithubRepoChange:s,onVkRepoIdChange:c,onSubmit:d}){return S.jsxs("section",{className:"card",children:[S.jsx("h2",{children:"New mapping"}),S.jsxs("form",{className:"form-stack",onSubmit:p=>{p.preventDefault(),d()},children:[S.jsxs("label",{className:"field",children:[S.jsx("span",{className:"field-label",children:"GitHub repo"}),S.jsx("input",{className:"input",value:e,onChange:p=>s(p.target.value),placeholder:"owner/repo"})]}),S.jsx(h2,{value:t,options:a,loading:r,onChange:c}),S.jsx("button",{type:"submit",className:"btn primary",disabled:u,children:u?"Adding…":"Add mapping"})]})]})}function p2({titleRow:e,intro:t,vkReposError:a,newMapping:r,existingMappings:u}){return S.jsxs("div",{className:"stack",children:[e,t,a,r,u]})}function v2(){var T,D,N;const e=kn(tl,{fetchPolicy:"cache-and-network"}),t=kn(Pj,{fetchPolicy:"cache-and-network"}),a=(((T=t.data)==null?void 0:T.vibeKanbanRepos)??[]).map(w=>({id:w.id,name:w.name??void 0})),r=t.error?fn(t.error):null,u=!!(t.loading&&!t.data),{handleSubmit:s,reset:c,setValue:d,watch:p}=_c({defaultValues:{githubRepo:"",vibeKanbanRepoId:""}}),m=p(),[v,{loading:y}]=Gn($j,{optimisticResponse:w=>({__typename:"Mutation",upsertMapping:{__typename:"MappingGql",id:o2(),githubRepo:w.input.githubRepo,vibeKanbanRepoId:w.input.vibeKanbanRepoId}}),update(w,{data:O}){const M=O==null?void 0:O.upsertMapping;if(!M)return;const z=w.readQuery({query:tl});z&&w.writeQuery({query:tl,data:{mappings:s2(z.mappings,M)}})},onCompleted:()=>{c(),je.success("Mapping added.")},onError:w=>je.error(`Add failed: ${fn(w)}`)}),[b,{loading:_}]=Gn(Lj,{optimisticResponse:()=>({__typename:"Mutation",deleteMapping:{__typename:"DeleteMappingPayload",ok:!0}}),update(w,O,{variables:M}){const z=M==null?void 0:M.id;if(z===void 0)return;const Z=w.readQuery({query:tl});Z&&w.writeQuery({query:tl,data:{mappings:Z.mappings.filter($=>$.id!==z)}})},onCompleted:()=>je.success("Mapping deleted."),onError:w=>je.error(`Delete failed: ${fn(w)}`)}),E=((D=e.data)==null?void 0:D.mappings)??[];return S.jsx(p2,{titleRow:S.jsxs("div",{className:"page-title-row",children:[S.jsx("h1",{children:"Mappings"}),S.jsx(Lm,{})]}),intro:S.jsxs("p",{className:"muted",children:["GitHub repo (",S.jsx("code",{children:"owner/repo"}),") → Vibe Kanban repository. Default Kanban ",S.jsx("strong",{children:"project"})," for new issues is set on the"," ",S.jsx("a",{href:"/vibe-kanban",children:"Vibe Kanban"})," page."]}),vkReposError:r?S.jsx(c2,{message:r,onReloadPage:()=>window.location.reload()}):null,newMapping:S.jsx(m2,{githubRepo:m.githubRepo??"",vkRepoId:m.vibeKanbanRepoId??"",vkRepos:a,vkReposLoading:u,upserting:y,onGithubRepoChange:w=>{d("githubRepo",w,{shouldDirty:!0})},onVkRepoIdChange:w=>{d("vibeKanbanRepoId",w,{shouldDirty:!0})},onSubmit:()=>{s(w=>{v({variables:{input:{githubRepo:w.githubRepo,vibeKanbanRepoId:w.vibeKanbanRepoId}}})})()}}),existingMappings:S.jsx(d2,{rows:E,listInitialLoading:!!(e.loading&&!e.data),listErrorMessage:((N=e.error)==null?void 0:N.message)??null,showEmptyHint:E.length===0&&!e.loading,deleteBusy:_,onRequestDelete:w=>{b({variables:{id:w}})}})})}function Z0({checked:e,onChange:t,label:a,settingKey:r,disabled:u=!1}){return S.jsxs("label",{className:"ui-switcher",children:[S.jsxs("span",{className:"ui-switcher-copy",children:[S.jsx("span",{children:a}),r?S.jsx("span",{className:"field-key",children:r}):null]}),S.jsx("input",{className:"ui-switcher-input",type:"checkbox",checked:e,disabled:u,onChange:s=>t(s.target.checked)}),S.jsx("span",{className:"ui-switcher-track","aria-hidden":!0,children:S.jsx("span",{className:"ui-switcher-thumb"})})]})}function y2({loading:e,errorMessage:t,scheduledOn:a,autoCreate:r,onScheduledChange:u,onAutoCreateChange:s,textFields:c,texts:d,onTextChange:p,saving:m,onSubmit:v}){return S.jsxs("section",{className:"card",children:[S.jsx("h2",{children:"Kanban issue creation"}),e?S.jsx("p",{className:"muted",children:"Loading…"}):null,t?S.jsxs("p",{className:"text-danger",children:["Failed to load settings: ",t]}):null,S.jsxs("form",{className:"form-stack",onSubmit:y=>{y.preventDefault(),v()},children:[S.jsx(Z0,{checked:a,onChange:u,label:"Enable scheduled sync",settingKey:"scheduled_sync_enabled"}),S.jsx(Z0,{checked:r,onChange:s,label:"Auto-create issues from sync",settingKey:"auto_create_issues"}),c.map(y=>S.jsxs("label",{className:"field",children:[S.jsx("span",{className:"field-label",children:y.label}),S.jsxs("p",{className:"muted setting-field-meta",children:[S.jsx("code",{children:y.key}),y.envVar?S.jsxs(S.Fragment,{children:[" ","· env ",S.jsx("code",{children:y.envVar})]}):null]}),y.description?S.jsx("p",{className:"muted setting-field-desc",children:y.description}):null,S.jsx("input",{className:"input",name:y.key,value:d[y.key]??"",onChange:b=>p(y.key,b.target.value)})]},y.key)),S.jsx("button",{type:"submit",className:"btn primary",disabled:m,children:m?"Saving…":"Save"})]})]})}function g2({titleRow:e,settingsCard:t}){return S.jsxs("div",{className:"stack",children:[e,t]})}const b2=new Set(["poll_interval_minutes","jitter_max_seconds","run_now_cooldown_seconds","max_board_pr_count"]);function _2(){var v,y;const e=kn(dk,{fetchPolicy:"cache-and-network"}),{handleSubmit:t,reset:a,setValue:r,watch:u}=_c({defaultValues:{poll_interval_minutes:"",jitter_max_seconds:"",run_now_cooldown_seconds:"",max_board_pr_count:"",scheduled_sync_enabled:!1,auto_create_issues:!1}});F.useEffect(()=>{var E;const b=(E=e.data)==null?void 0:E.effectiveSettings;if(!b)return;const _=new Map(b.coreFields.map(T=>[T.key,T.value]));a({poll_interval_minutes:_.get("poll_interval_minutes")??"",jitter_max_seconds:_.get("jitter_max_seconds")??"",run_now_cooldown_seconds:_.get("run_now_cooldown_seconds")??"",max_board_pr_count:_.get("max_board_pr_count")??"",scheduled_sync_enabled:b.scheduledSyncEnabled,auto_create_issues:b.autoCreateIssues})},[e.data,a]);const[s,{loading:c}]=Gn(Zj,{optimisticResponse:(b,{IGNORE:_})=>{var w;const E=(w=e.data)==null?void 0:w.effectiveSettings;if(!E)return _;const T=String(E.id),D=b.input,N=D;return{__typename:"Mutation",updateSettings:{__typename:"EffectiveSettings",id:T,coreFields:E.coreFields.map(O=>({__typename:"CoreSettingField",...O,value:N[O.key]??O.value})),resolvedSourceLabel:E.resolvedSourceLabel,resolvedDestinationLabel:E.resolvedDestinationLabel,scheduledSyncEnabled:D.scheduled_sync_enabled!=null?D.scheduled_sync_enabled:E.scheduledSyncEnabled,autoCreateIssues:D.auto_create_issues!=null?D.auto_create_issues:E.autoCreateIssues}}},onCompleted(b,_){var D;const E=(D=_==null?void 0:_.variables)==null?void 0:D.input,T=(E==null?void 0:E.poll_interval_minutes)!==void 0||(E==null?void 0:E.jitter_max_seconds)!==void 0;je.success(T?"General settings saved. Scheduler will pick up interval changes.":"General settings saved.")},onError:b=>{je.error(`Save failed: ${fn(b)}`)}}),d=F.useMemo(()=>{var b;return(((b=e.data)==null?void 0:b.effectiveSettings.coreFields)??[]).filter(_=>b2.has(_.key))},[(v=e.data)==null?void 0:v.effectiveSettings.coreFields]),p=u(),m={poll_interval_minutes:p.poll_interval_minutes??"",jitter_max_seconds:p.jitter_max_seconds??"",run_now_cooldown_seconds:p.run_now_cooldown_seconds??"",max_board_pr_count:p.max_board_pr_count??""};return S.jsx(g2,{titleRow:S.jsxs("div",{className:"page-title-row",children:[S.jsx("h1",{children:"General"}),S.jsx(Lm,{})]}),settingsCard:S.jsx(y2,{loading:!!(e.loading&&!e.data),errorMessage:((y=e.error)==null?void 0:y.message)??null,scheduledOn:p.scheduled_sync_enabled??!1,autoCreate:p.auto_create_issues??!1,onScheduledChange:b=>{r("scheduled_sync_enabled",b,{shouldDirty:!0})},onAutoCreateChange:b=>{r("auto_create_issues",b,{shouldDirty:!0})},textFields:d,texts:m,onTextChange:(b,_)=>r(b,_,{shouldDirty:!0}),saving:c,onSubmit:()=>{t(b=>{s({variables:{input:{poll_interval_minutes:b.poll_interval_minutes,jitter_max_seconds:b.jitter_max_seconds,run_now_cooldown_seconds:b.run_now_cooldown_seconds,max_board_pr_count:b.max_board_pr_count,scheduled_sync_enabled:b.scheduled_sync_enabled,auto_create_issues:b.auto_create_issues}}})})()}})})}function S2({label:e,value:t,options:a,disabled:r,loading:u,hasOrgError:s,onChange:c}){return S.jsxs("label",{className:"field",children:[S.jsx("span",{className:"field-label",children:e}),S.jsxs("select",{className:"input",value:t,onChange:d=>c(d.target.value),disabled:r,children:[S.jsx("option",{value:"",children:s?"—":u&&a.length===0?"Loading…":"Select…"}),a.map(d=>S.jsx("option",{value:d.id,children:d.name??d.id},d.id))]})]})}function k2({label:e,value:t,options:a,onChange:r}){return S.jsxs("label",{className:"field",children:[S.jsx("span",{className:"field-label",children:e}),S.jsx("select",{className:"input",value:t,onChange:u=>r(u.target.value),children:a.map(u=>S.jsx("option",{value:u.value,children:u.label},u.value))})]})}function E2({value:e,options:t,loading:a,errorMessage:r,onChange:u}){return S.jsxs("label",{className:"field",children:[S.jsx("span",{className:"field-label",children:"Project"}),S.jsxs("select",{className:"input",value:e,onChange:s=>u(s.target.value),disabled:a,children:[S.jsx("option",{value:"",children:a&&t.length===0?"Loading…":"Select…"}),t.map(s=>S.jsx("option",{value:s.id,children:s.name??s.id},s.id))]}),r?S.jsx("p",{className:"text-danger",children:r}):null]})}function N2({orgLabel:e,doneStatusLabel:t,executorLabel:a,boardPickerEnabled:r,orgErrorMessage:u,orgOptions:s,orgLoading:c,selectedOrgId:d,onOrgChange:p,selectedProjectId:m,projectOptions:v,projectLoading:y,projectErrorMessage:b,onProjectChange:_,doneStatusValue:E,onDoneStatusChange:T,executorValue:D,executorOptions:N,onExecutorChange:w,saving:O,onSubmit:M}){const z=!r||!!u||c&&s.length===0;return S.jsx("section",{className:"card",children:S.jsxs("form",{className:"form-stack",onSubmit:Z=>{Z.preventDefault(),M()},children:[S.jsx(S2,{label:e,value:d,options:s,disabled:z,loading:c,hasOrgError:!!u,onChange:p}),d.trim()?S.jsxs(S.Fragment,{children:[S.jsx(E2,{value:m,options:v,loading:y,errorMessage:b,onChange:_}),S.jsxs("label",{className:"field",children:[S.jsx("span",{className:"field-label",children:t}),S.jsx("input",{className:"input",value:E,onChange:Z=>T(Z.target.value)})]}),S.jsx(k2,{label:a,value:D,options:N,onChange:w})]}):null,S.jsx("button",{type:"submit",className:"btn primary",disabled:O,children:O?"Saving…":"Save"})]})})}function T2(){var M,z,Z;const e=kn(Xj,{fetchPolicy:"cache-and-network"}),t=((M=e.data)==null?void 0:M.vibeKanbanUiState)??null,{handleSubmit:a,reset:r,setValue:u,watch:s}=_c({defaultValues:{default_organization_id:"",default_project_id:"",kanban_done_status:"",vk_workspace_executor:""}});F.useEffect(()=>{t&&r({default_organization_id:t.boardOrg,default_project_id:t.boardProj,kanban_done_status:t.kanbanDoneStatus,vk_workspace_executor:t.vkExecutor})},[t,r]);const c=s(),d=c.default_organization_id??"",p=c.default_project_id??"",m=c.kanban_done_status??"",v=c.vk_workspace_executor??"",y=kn(Gj,{skip:!(t!=null&&t.vkBoardPicker)||!!(t!=null&&t.orgError),fetchPolicy:"cache-and-network"}),b=F.useMemo(()=>{var $;return(($=y.data)==null?void 0:$.vibeKanbanOrganizations)??[]},[(z=y.data)==null?void 0:z.vibeKanbanOrganizations]),_=kn(Yj,{variables:{organizationId:d},skip:!d.trim(),fetchPolicy:"cache-and-network"}),E=F.useMemo(()=>{var $;return(($=_.data)==null?void 0:$.vibeKanbanProjects)??[]},[(Z=_.data)==null?void 0:Z.vibeKanbanProjects]),T=_.error?fn(_.error):null,[D,N]=Gn(Ij,{onCompleted:()=>{je.success("Vibe Kanban settings saved.")},onError:$=>{je.error(`Save failed: ${fn($)}`)}}),w=async $=>{await D({variables:{input:$}})};if(e.loading&&!t&&!e.error)return S.jsxs("div",{className:"stack",children:[S.jsx("h1",{children:"Vibe Kanban"}),S.jsx("p",{className:"muted",children:"Loading…"})]});if(e.error)return S.jsxs("div",{className:"stack",children:[S.jsx("h1",{children:"Vibe Kanban"}),S.jsx("p",{className:"muted",children:fn(e.error)})]});if(!t)return S.jsxs("div",{className:"stack",children:[S.jsx("h1",{children:"Vibe Kanban"}),S.jsx("p",{className:"muted",children:"Loading…"})]});const O=t;return S.jsxs("div",{className:"stack",children:[S.jsx("h1",{children:"Vibe Kanban"}),O.orgError?S.jsx("p",{className:"text-danger",children:O.orgError}):null,y.error?S.jsx("p",{className:"text-danger",children:fn(y.error)}):null,S.jsx(N2,{orgLabel:O.vkLabels.default_organization_id,doneStatusLabel:O.vkLabels.kanban_done_status,executorLabel:O.vkLabels.vk_workspace_executor,boardPickerEnabled:O.vkBoardPicker,orgErrorMessage:O.orgError??null,orgOptions:b,orgLoading:!!y.loading,selectedOrgId:d,onOrgChange:$=>{u("default_organization_id",$,{shouldDirty:!0}),u("default_project_id","",{shouldDirty:!0})},selectedProjectId:p,projectOptions:E,projectLoading:!!_.loading,projectErrorMessage:T,onProjectChange:$=>{u("default_project_id",$,{shouldDirty:!0})},doneStatusValue:m,onDoneStatusChange:$=>{u("kanban_done_status",$,{shouldDirty:!0})},executorValue:v,executorOptions:O.executorOptions,onExecutorChange:$=>{u("vk_workspace_executor",$,{shouldDirty:!0})},saving:N.loading,onSubmit:()=>{a($=>{w({default_organization_id:$.default_organization_id,default_project_id:$.default_project_id,kanban_done_status:$.kanban_done_status,vk_workspace_executor:$.vk_workspace_executor})})()}})]})}function O2(){return S.jsx(rx,{children:S.jsxs(Aa,{element:S.jsx(Kj,{}),children:[S.jsx(Aa,{index:!0,element:S.jsx(nx,{to:"/dashboard",replace:!0})}),S.jsx(Aa,{path:"dashboard",element:S.jsx(MM,{})}),S.jsx(Aa,{path:"settings",element:S.jsx(_2,{})}),S.jsx(Aa,{path:"activity",element:S.jsx(uM,{})}),S.jsx(Aa,{path:"mappings",element:S.jsx(v2,{})}),S.jsx(Aa,{path:"github",element:S.jsx(u2,{})}),S.jsx(Aa,{path:"vibe-kanban",element:S.jsx(T2,{})})]})})}v1.createRoot(document.getElementById("root")).render(S.jsx(F.StrictMode,{children:S.jsxs($w,{client:SM,children:[S.jsx(xx,{children:S.jsx(O2,{})}),S.jsx(iD,{position:"top-right",toastOptions:{duration:3e3,style:{background:"#171c19",color:"#e8f0ea",border:"1px solid #2a332e"},success:{iconTheme:{primary:"#3d9f7a",secondary:"#0f1210"}},error:{iconTheme:{primary:"#c45c5c",secondary:"#0f1210"}}}})]})}))});export default w2();
315
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const v of e.seen.entries()){const y=v[1];if(t===v[0]){s(v);continue}if(e.external){const _=(p=e.external.registry.get(v[0]))==null?void 0:p.id;if(t!==v[0]&&_){s(v);continue}}if((m=e.metadataRegistry.get(v[0]))==null?void 0:m.id){s(v);continue}if(y.cycle){s(v);continue}if(y.count>1&&e.reused==="ref"){s(v);continue}}}function lk(e,t){var c,d,p;const a=e.seen.get(t);if(!a)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=m=>{const v=e.seen.get(m);if(v.ref===null)return;const y=v.def??v.schema,b={...y},_=v.ref;if(v.ref=null,_){r(_);const T=e.seen.get(_),D=T.schema;if(D.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(y.allOf=y.allOf??[],y.allOf.push(D)):Object.assign(y,D),Object.assign(y,b),m._zod.parent===_)for(const w in y)w==="$ref"||w==="allOf"||w in b||delete y[w];if(D.$ref&&T.def)for(const w in y)w==="$ref"||w==="allOf"||w in T.def&&JSON.stringify(y[w])===JSON.stringify(T.def[w])&&delete y[w]}const E=m._zod.parent;if(E&&E!==_){r(E);const T=e.seen.get(E);if(T!=null&&T.schema.$ref&&(y.$ref=T.schema.$ref,T.def))for(const D in y)D==="$ref"||D==="allOf"||D in T.def&&JSON.stringify(y[D])===JSON.stringify(T.def[D])&&delete y[D]}e.override({zodSchema:m,jsonSchema:y,path:v.path??[]})};for(const m of[...e.seen.entries()].reverse())r(m[0]);const u={};if(e.target==="draft-2020-12"?u.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?u.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?u.$schema="http://json-schema.org/draft-04/schema#":e.target,(c=e.external)!=null&&c.uri){const m=(d=e.external.registry.get(t))==null?void 0:d.id;if(!m)throw new Error("Schema is missing an `id` property");u.$id=e.external.uri(m)}Object.assign(u,a.def??a.schema);const s=((p=e.external)==null?void 0:p.defs)??{};for(const m of e.seen.entries()){const v=m[1];v.def&&v.defId&&(s[v.defId]=v.def)}e.external||Object.keys(s).length>0&&(e.target==="draft-2020-12"?u.$defs=s:u.definitions=s);try{const m=JSON.parse(JSON.stringify(u));return Object.defineProperty(m,"~standard",{value:{...t["~standard"],jsonSchema:{input:Xs(t,"input",e.processors),output:Xs(t,"output",e.processors)}},enumerable:!1,writable:!1}),m}catch{throw new Error("Error converting schema to JSON.")}}function Xt(e,t){const a=t??{seen:new Set};if(a.seen.has(e))return!1;a.seen.add(e);const r=e._zod.def;if(r.type==="transform")return!0;if(r.type==="array")return Xt(r.element,a);if(r.type==="set")return Xt(r.valueType,a);if(r.type==="lazy")return Xt(r.getter(),a);if(r.type==="promise"||r.type==="optional"||r.type==="nonoptional"||r.type==="nullable"||r.type==="readonly"||r.type==="default"||r.type==="prefault")return Xt(r.innerType,a);if(r.type==="intersection")return Xt(r.left,a)||Xt(r.right,a);if(r.type==="record"||r.type==="map")return Xt(r.keyType,a)||Xt(r.valueType,a);if(r.type==="pipe")return Xt(r.in,a)||Xt(r.out,a);if(r.type==="object"){for(const u in r.shape)if(Xt(r.shape[u],a))return!0;return!1}if(r.type==="union"){for(const u of r.options)if(Xt(u,a))return!0;return!1}if(r.type==="tuple"){for(const u of r.items)if(Xt(u,a))return!0;return!!(r.rest&&Xt(r.rest,a))}return!1}const Mz=(e,t={})=>a=>{const r=ik({...a,processors:t});return xt(e,r),rk(r,e),lk(r,e)},Xs=(e,t,a={})=>r=>{const{libraryOptions:u,target:s}=r??{},c=ik({...u??{},target:s,io:t,processors:a});return xt(e,c),rk(c,e),lk(c,e)},Fz={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Vz=(e,t,a,r)=>{const u=a;u.type="string";const{minimum:s,maximum:c,format:d,patterns:p,contentEncoding:m}=e._zod.bag;if(typeof s=="number"&&(u.minLength=s),typeof c=="number"&&(u.maxLength=c),d&&(u.format=Fz[d]??d,u.format===""&&delete u.format,d==="time"&&delete u.format),m&&(u.contentEncoding=m),p&&p.size>0){const v=[...p];v.length===1?u.pattern=v[0].source:v.length>1&&(u.allOf=[...v.map(y=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:y.source}))])}},Uz=(e,t,a,r)=>{const u=a,{minimum:s,maximum:c,format:d,multipleOf:p,exclusiveMaximum:m,exclusiveMinimum:v}=e._zod.bag;typeof d=="string"&&d.includes("int")?u.type="integer":u.type="number",typeof v=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(u.minimum=v,u.exclusiveMinimum=!0):u.exclusiveMinimum=v),typeof s=="number"&&(u.minimum=s,typeof v=="number"&&t.target!=="draft-04"&&(v>=s?delete u.minimum:delete u.exclusiveMinimum)),typeof m=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(u.maximum=m,u.exclusiveMaximum=!0):u.exclusiveMaximum=m),typeof c=="number"&&(u.maximum=c,typeof m=="number"&&t.target!=="draft-04"&&(m<=c?delete u.maximum:delete u.exclusiveMaximum)),typeof p=="number"&&(u.multipleOf=p)},Lz=(e,t,a,r)=>{a.type="boolean"},qz=(e,t,a,r)=>{a.not={}},Qz=(e,t,a,r)=>{},Bz=(e,t,a,r)=>{const u=e._zod.def,s=US(u.entries);s.every(c=>typeof c=="number")&&(a.type="number"),s.every(c=>typeof c=="string")&&(a.type="string"),a.enum=s},Iz=(e,t,a,r)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},Zz=(e,t,a,r)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},Hz=(e,t,a,r)=>{const u=a,s=e._zod.def,{minimum:c,maximum:d}=e._zod.bag;typeof c=="number"&&(u.minItems=c),typeof d=="number"&&(u.maxItems=d),u.type="array",u.items=xt(s.element,t,{...r,path:[...r.path,"items"]})},$z=(e,t,a,r)=>{var m;const u=a,s=e._zod.def;u.type="object",u.properties={};const c=s.shape;for(const v in c)u.properties[v]=xt(c[v],t,{...r,path:[...r.path,"properties",v]});const d=new Set(Object.keys(c)),p=new Set([...d].filter(v=>{const y=s.shape[v]._zod;return t.io==="input"?y.optin===void 0:y.optout===void 0}));p.size>0&&(u.required=Array.from(p)),((m=s.catchall)==null?void 0:m._zod.def.type)==="never"?u.additionalProperties=!1:s.catchall?s.catchall&&(u.additionalProperties=xt(s.catchall,t,{...r,path:[...r.path,"additionalProperties"]})):t.io==="output"&&(u.additionalProperties=!1)},Gz=(e,t,a,r)=>{const u=e._zod.def,s=u.inclusive===!1,c=u.options.map((d,p)=>xt(d,t,{...r,path:[...r.path,s?"oneOf":"anyOf",p]}));s?a.oneOf=c:a.anyOf=c},Yz=(e,t,a,r)=>{const u=e._zod.def,s=xt(u.left,t,{...r,path:[...r.path,"allOf",0]}),c=xt(u.right,t,{...r,path:[...r.path,"allOf",1]}),d=m=>"allOf"in m&&Object.keys(m).length===1,p=[...d(s)?s.allOf:[s],...d(c)?c.allOf:[c]];a.allOf=p},Pz=(e,t,a,r)=>{const u=a,s=e._zod.def;u.type="object";const c=s.keyType,d=c._zod.bag,p=d==null?void 0:d.patterns;if(s.mode==="loose"&&p&&p.size>0){const v=xt(s.valueType,t,{...r,path:[...r.path,"patternProperties","*"]});u.patternProperties={};for(const y of p)u.patternProperties[y.source]=v}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(u.propertyNames=xt(s.keyType,t,{...r,path:[...r.path,"propertyNames"]})),u.additionalProperties=xt(s.valueType,t,{...r,path:[...r.path,"additionalProperties"]});const m=c._zod.values;if(m){const v=[...m].filter(y=>typeof y=="string"||typeof y=="number");v.length>0&&(u.required=v)}},Xz=(e,t,a,r)=>{const u=e._zod.def,s=xt(u.innerType,t,r),c=t.seen.get(e);t.target==="openapi-3.0"?(c.ref=u.innerType,a.nullable=!0):a.anyOf=[s,{type:"null"}]},Jz=(e,t,a,r)=>{const u=e._zod.def;xt(u.innerType,t,r);const s=t.seen.get(e);s.ref=u.innerType},Kz=(e,t,a,r)=>{const u=e._zod.def;xt(u.innerType,t,r);const s=t.seen.get(e);s.ref=u.innerType,a.default=JSON.parse(JSON.stringify(u.defaultValue))},Wz=(e,t,a,r)=>{const u=e._zod.def;xt(u.innerType,t,r);const s=t.seen.get(e);s.ref=u.innerType,t.io==="input"&&(a._prefault=JSON.parse(JSON.stringify(u.defaultValue)))},eC=(e,t,a,r)=>{const u=e._zod.def;xt(u.innerType,t,r);const s=t.seen.get(e);s.ref=u.innerType;let c;try{c=u.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}a.default=c},tC=(e,t,a,r)=>{const u=e._zod.def,s=t.io==="input"?u.in._zod.def.type==="transform"?u.out:u.in:u.out;xt(s,t,r);const c=t.seen.get(e);c.ref=s},nC=(e,t,a,r)=>{const u=e._zod.def;xt(u.innerType,t,r);const s=t.seen.get(e);s.ref=u.innerType,a.readOnly=!0},uk=(e,t,a,r)=>{const u=e._zod.def;xt(u.innerType,t,r);const s=t.seen.get(e);s.ref=u.innerType},aC=J("ZodISODateTime",(e,t)=>{lA.init(e,t),dt.init(e,t)});function iC(e){return fz(aC,e)}const rC=J("ZodISODate",(e,t)=>{uA.init(e,t),dt.init(e,t)});function lC(e){return dz(rC,e)}const uC=J("ZodISOTime",(e,t)=>{oA.init(e,t),dt.init(e,t)});function oC(e){return hz(uC,e)}const sC=J("ZodISODuration",(e,t)=>{sA.init(e,t),dt.init(e,t)});function cC(e){return mz(sC,e)}const fC=(e,t)=>{BS.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:a=>Wx(e,a)},flatten:{value:a=>Kx(e,a)},addIssue:{value:a=>{e.issues.push(a),e.message=JSON.stringify(e.issues,Zh,2)}},addIssues:{value:a=>{e.issues.push(...a),e.message=JSON.stringify(e.issues,Zh,2)}},isEmpty:{get(){return e.issues.length===0}}})},Vn=J("ZodError",fC,{Parent:Error}),dC=Fm(Vn),hC=Vm(Vn),mC=vc(Vn),pC=yc(Vn),vC=nR(Vn),yC=aR(Vn),gC=iR(Vn),bC=rR(Vn),_C=lR(Vn),SC=uR(Vn),kC=oR(Vn),EC=sR(Vn),gt=J("ZodType",(e,t)=>(yt.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Xs(e,"input"),output:Xs(e,"output")}}),e.toJSONSchema=Mz(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...a)=>e.clone(Ni(t,{checks:[...t.checks??[],...a.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]}),{parent:!0}),e.with=e.check,e.clone=(a,r)=>Ti(e,a,r),e.brand=()=>e,e.register=((a,r)=>(a.add(e,r),e)),e.parse=(a,r)=>dC(e,a,r,{callee:e.parse}),e.safeParse=(a,r)=>mC(e,a,r),e.parseAsync=async(a,r)=>hC(e,a,r,{callee:e.parseAsync}),e.safeParseAsync=async(a,r)=>pC(e,a,r),e.spa=e.safeParseAsync,e.encode=(a,r)=>vC(e,a,r),e.decode=(a,r)=>yC(e,a,r),e.encodeAsync=async(a,r)=>gC(e,a,r),e.decodeAsync=async(a,r)=>bC(e,a,r),e.safeEncode=(a,r)=>_C(e,a,r),e.safeDecode=(a,r)=>SC(e,a,r),e.safeEncodeAsync=async(a,r)=>kC(e,a,r),e.safeDecodeAsync=async(a,r)=>EC(e,a,r),e.refine=(a,r)=>e.check(vj(a,r)),e.superRefine=a=>e.check(yj(a)),e.overwrite=a=>e.check(Tl(a)),e.optional=()=>T0(e),e.exactOptional=()=>aj(e),e.nullable=()=>O0(e),e.nullish=()=>T0(O0(e)),e.nonoptional=a=>sj(e,a),e.array=()=>nr(e),e.or=a=>PC([e,a]),e.and=a=>JC(e,a),e.transform=a=>w0(e,tj(a)),e.default=a=>lj(e,a),e.prefault=a=>oj(e,a),e.catch=a=>fj(e,a),e.pipe=a=>w0(e,a),e.readonly=()=>mj(e),e.describe=a=>{const r=e.clone();return Mu.add(r,{description:a}),r},Object.defineProperty(e,"description",{get(){var a;return(a=Mu.get(e))==null?void 0:a.description},configurable:!0}),e.meta=(...a)=>{if(a.length===0)return Mu.get(e);const r=e.clone();return Mu.add(r,a[0]),r},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=a=>a(e),e)),ok=J("_ZodString",(e,t)=>{Um.init(e,t),gt.init(e,t),e._zod.processJSONSchema=(r,u,s)=>Vz(e,r,u);const a=e._zod.bag;e.format=a.format??null,e.minLength=a.minimum??null,e.maxLength=a.maximum??null,e.regex=(...r)=>e.check(_z(...r)),e.includes=(...r)=>e.check(Ez(...r)),e.startsWith=(...r)=>e.check(Nz(...r)),e.endsWith=(...r)=>e.check(Tz(...r)),e.min=(...r)=>e.check(Ps(...r)),e.max=(...r)=>e.check(nk(...r)),e.length=(...r)=>e.check(ak(...r)),e.nonempty=(...r)=>e.check(Ps(1,...r)),e.lowercase=r=>e.check(Sz(r)),e.uppercase=r=>e.check(kz(r)),e.trim=()=>e.check(wz()),e.normalize=(...r)=>e.check(Oz(...r)),e.toLowerCase=()=>e.check(Dz()),e.toUpperCase=()=>e.check(xz()),e.slugify=()=>e.check(Rz())}),NC=J("ZodString",(e,t)=>{Um.init(e,t),ok.init(e,t),e.email=a=>e.check(ZA(TC,a)),e.url=a=>e.check(PA(OC,a)),e.jwt=a=>e.check(cz(QC,a)),e.emoji=a=>e.check(XA(wC,a)),e.guid=a=>e.check(b0(E0,a)),e.uuid=a=>e.check(HA(xs,a)),e.uuidv4=a=>e.check($A(xs,a)),e.uuidv6=a=>e.check(GA(xs,a)),e.uuidv7=a=>e.check(YA(xs,a)),e.nanoid=a=>e.check(JA(DC,a)),e.guid=a=>e.check(b0(E0,a)),e.cuid=a=>e.check(KA(xC,a)),e.cuid2=a=>e.check(WA(RC,a)),e.ulid=a=>e.check(ez(AC,a)),e.base64=a=>e.check(uz(UC,a)),e.base64url=a=>e.check(oz(LC,a)),e.xid=a=>e.check(tz(zC,a)),e.ksuid=a=>e.check(nz(CC,a)),e.ipv4=a=>e.check(az(jC,a)),e.ipv6=a=>e.check(iz(MC,a)),e.cidrv4=a=>e.check(rz(FC,a)),e.cidrv6=a=>e.check(lz(VC,a)),e.e164=a=>e.check(sz(qC,a)),e.datetime=a=>e.check(iC(a)),e.date=a=>e.check(lC(a)),e.time=a=>e.check(oC(a)),e.duration=a=>e.check(cC(a))});function Ae(e){return IA(NC,e)}const dt=J("ZodStringFormat",(e,t)=>{st.init(e,t),ok.init(e,t)}),TC=J("ZodEmail",(e,t)=>{JR.init(e,t),dt.init(e,t)}),E0=J("ZodGUID",(e,t)=>{PR.init(e,t),dt.init(e,t)}),xs=J("ZodUUID",(e,t)=>{XR.init(e,t),dt.init(e,t)}),OC=J("ZodURL",(e,t)=>{KR.init(e,t),dt.init(e,t)}),wC=J("ZodEmoji",(e,t)=>{WR.init(e,t),dt.init(e,t)}),DC=J("ZodNanoID",(e,t)=>{eA.init(e,t),dt.init(e,t)}),xC=J("ZodCUID",(e,t)=>{tA.init(e,t),dt.init(e,t)}),RC=J("ZodCUID2",(e,t)=>{nA.init(e,t),dt.init(e,t)}),AC=J("ZodULID",(e,t)=>{aA.init(e,t),dt.init(e,t)}),zC=J("ZodXID",(e,t)=>{iA.init(e,t),dt.init(e,t)}),CC=J("ZodKSUID",(e,t)=>{rA.init(e,t),dt.init(e,t)}),jC=J("ZodIPv4",(e,t)=>{cA.init(e,t),dt.init(e,t)}),MC=J("ZodIPv6",(e,t)=>{fA.init(e,t),dt.init(e,t)}),FC=J("ZodCIDRv4",(e,t)=>{dA.init(e,t),dt.init(e,t)}),VC=J("ZodCIDRv6",(e,t)=>{hA.init(e,t),dt.init(e,t)}),UC=J("ZodBase64",(e,t)=>{mA.init(e,t),dt.init(e,t)}),LC=J("ZodBase64URL",(e,t)=>{vA.init(e,t),dt.init(e,t)}),qC=J("ZodE164",(e,t)=>{yA.init(e,t),dt.init(e,t)}),QC=J("ZodJWT",(e,t)=>{bA.init(e,t),dt.init(e,t)}),sk=J("ZodNumber",(e,t)=>{KS.init(e,t),gt.init(e,t),e._zod.processJSONSchema=(r,u,s)=>Uz(e,r,u),e.gt=(r,u)=>e.check(S0(r,u)),e.gte=(r,u)=>e.check(sh(r,u)),e.min=(r,u)=>e.check(sh(r,u)),e.lt=(r,u)=>e.check(_0(r,u)),e.lte=(r,u)=>e.check(oh(r,u)),e.max=(r,u)=>e.check(oh(r,u)),e.int=r=>e.check(N0(r)),e.safe=r=>e.check(N0(r)),e.positive=r=>e.check(S0(0,r)),e.nonnegative=r=>e.check(sh(0,r)),e.negative=r=>e.check(_0(0,r)),e.nonpositive=r=>e.check(oh(0,r)),e.multipleOf=(r,u)=>e.check(k0(r,u)),e.step=(r,u)=>e.check(k0(r,u)),e.finite=()=>e;const a=e._zod.bag;e.minValue=Math.max(a.minimum??Number.NEGATIVE_INFINITY,a.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(a.maximum??Number.POSITIVE_INFINITY,a.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(a.format??"").includes("int")||Number.isSafeInteger(a.multipleOf??.5),e.isFinite=!0,e.format=a.format??null});function Zt(e){return pz(sk,e)}const BC=J("ZodNumberFormat",(e,t)=>{_A.init(e,t),sk.init(e,t)});function N0(e){return vz(BC,e)}const IC=J("ZodBoolean",(e,t)=>{SA.init(e,t),gt.init(e,t),e._zod.processJSONSchema=(a,r,u)=>Lz(e,a,r)});function Ji(e){return yz(IC,e)}const ZC=J("ZodUnknown",(e,t)=>{kA.init(e,t),gt.init(e,t),e._zod.processJSONSchema=(a,r,u)=>Qz()});function $h(){return gz(ZC)}const HC=J("ZodNever",(e,t)=>{EA.init(e,t),gt.init(e,t),e._zod.processJSONSchema=(a,r,u)=>qz(e,a,r)});function $C(e){return bz(HC,e)}const GC=J("ZodArray",(e,t)=>{NA.init(e,t),gt.init(e,t),e._zod.processJSONSchema=(a,r,u)=>Hz(e,a,r,u),e.element=t.element,e.min=(a,r)=>e.check(Ps(a,r)),e.nonempty=a=>e.check(Ps(1,a)),e.max=(a,r)=>e.check(nk(a,r)),e.length=(a,r)=>e.check(ak(a,r)),e.unwrap=()=>e.element});function nr(e,t){return Az(GC,e,t)}const ck=J("ZodObject",(e,t)=>{OA.init(e,t),gt.init(e,t),e._zod.processJSONSchema=(a,r,u)=>$z(e,a,r,u),Pe(e,"shape",()=>t.shape),e.keyof=()=>Ol(Object.keys(e._zod.def.shape)),e.catchall=a=>e.clone({...e._zod.def,catchall:a}),e.passthrough=()=>e.clone({...e._zod.def,catchall:$h()}),e.loose=()=>e.clone({...e._zod.def,catchall:$h()}),e.strict=()=>e.clone({...e._zod.def,catchall:$C()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=a=>Gx(e,a),e.safeExtend=a=>Yx(e,a),e.merge=a=>Px(e,a),e.pick=a=>Hx(e,a),e.omit=a=>$x(e,a),e.partial=(...a)=>Xx(fk,e,a[0]),e.required=(...a)=>Jx(dk,e,a[0])});function Ua(e,t){const a={type:"object",shape:e??{},...Se(t)};return new ck(a)}function za(e,t){return new ck({type:"object",shape:e,catchall:$h(),...Se(t)})}const YC=J("ZodUnion",(e,t)=>{wA.init(e,t),gt.init(e,t),e._zod.processJSONSchema=(a,r,u)=>Gz(e,a,r,u),e.options=t.options});function PC(e,t){return new YC({type:"union",options:e,...Se(t)})}const XC=J("ZodIntersection",(e,t)=>{DA.init(e,t),gt.init(e,t),e._zod.processJSONSchema=(a,r,u)=>Yz(e,a,r,u)});function JC(e,t){return new XC({type:"intersection",left:e,right:t})}const KC=J("ZodRecord",(e,t)=>{xA.init(e,t),gt.init(e,t),e._zod.processJSONSchema=(a,r,u)=>Pz(e,a,r,u),e.keyType=t.keyType,e.valueType=t.valueType});function WC(e,t,a){return new KC({type:"record",keyType:e,valueType:t,...Se(a)})}const Gh=J("ZodEnum",(e,t)=>{RA.init(e,t),gt.init(e,t),e._zod.processJSONSchema=(r,u,s)=>Bz(e,r,u),e.enum=t.entries,e.options=Object.values(t.entries);const a=new Set(Object.keys(t.entries));e.extract=(r,u)=>{const s={};for(const c of r)if(a.has(c))s[c]=t.entries[c];else throw new Error(`Key ${c} not found in enum`);return new Gh({...t,checks:[],...Se(u),entries:s})},e.exclude=(r,u)=>{const s={...t.entries};for(const c of r)if(a.has(c))delete s[c];else throw new Error(`Key ${c} not found in enum`);return new Gh({...t,checks:[],...Se(u),entries:s})}});function Ol(e,t){const a=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new Gh({type:"enum",entries:a,...Se(t)})}const ej=J("ZodTransform",(e,t)=>{AA.init(e,t),gt.init(e,t),e._zod.processJSONSchema=(a,r,u)=>Zz(e,a),e._zod.parse=(a,r)=>{if(r.direction==="backward")throw new FS(e.constructor.name);a.addIssue=s=>{if(typeof s=="string")a.issues.push(Ju(s,a.value,t));else{const c=s;c.fatal&&(c.continue=!1),c.code??(c.code="custom"),c.input??(c.input=a.value),c.inst??(c.inst=e),a.issues.push(Ju(c))}};const u=t.transform(a.value,a);return u instanceof Promise?u.then(s=>(a.value=s,a)):(a.value=u,a)}});function tj(e){return new ej({type:"transform",transform:e})}const fk=J("ZodOptional",(e,t)=>{tk.init(e,t),gt.init(e,t),e._zod.processJSONSchema=(a,r,u)=>uk(e,a,r,u),e.unwrap=()=>e._zod.def.innerType});function T0(e){return new fk({type:"optional",innerType:e})}const nj=J("ZodExactOptional",(e,t)=>{zA.init(e,t),gt.init(e,t),e._zod.processJSONSchema=(a,r,u)=>uk(e,a,r,u),e.unwrap=()=>e._zod.def.innerType});function aj(e){return new nj({type:"optional",innerType:e})}const ij=J("ZodNullable",(e,t)=>{CA.init(e,t),gt.init(e,t),e._zod.processJSONSchema=(a,r,u)=>Xz(e,a,r,u),e.unwrap=()=>e._zod.def.innerType});function O0(e){return new ij({type:"nullable",innerType:e})}const rj=J("ZodDefault",(e,t)=>{jA.init(e,t),gt.init(e,t),e._zod.processJSONSchema=(a,r,u)=>Kz(e,a,r,u),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function lj(e,t){return new rj({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():qS(t)}})}const uj=J("ZodPrefault",(e,t)=>{MA.init(e,t),gt.init(e,t),e._zod.processJSONSchema=(a,r,u)=>Wz(e,a,r,u),e.unwrap=()=>e._zod.def.innerType});function oj(e,t){return new uj({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():qS(t)}})}const dk=J("ZodNonOptional",(e,t)=>{FA.init(e,t),gt.init(e,t),e._zod.processJSONSchema=(a,r,u)=>Jz(e,a,r,u),e.unwrap=()=>e._zod.def.innerType});function sj(e,t){return new dk({type:"nonoptional",innerType:e,...Se(t)})}const cj=J("ZodCatch",(e,t)=>{VA.init(e,t),gt.init(e,t),e._zod.processJSONSchema=(a,r,u)=>eC(e,a,r,u),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function fj(e,t){return new cj({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const dj=J("ZodPipe",(e,t)=>{UA.init(e,t),gt.init(e,t),e._zod.processJSONSchema=(a,r,u)=>tC(e,a,r,u),e.in=t.in,e.out=t.out});function w0(e,t){return new dj({type:"pipe",in:e,out:t})}const hj=J("ZodReadonly",(e,t)=>{LA.init(e,t),gt.init(e,t),e._zod.processJSONSchema=(a,r,u)=>nC(e,a,r,u),e.unwrap=()=>e._zod.def.innerType});function mj(e){return new hj({type:"readonly",innerType:e})}const pj=J("ZodCustom",(e,t)=>{qA.init(e,t),gt.init(e,t),e._zod.processJSONSchema=(a,r,u)=>Iz(e,a)});function vj(e,t={}){return zz(pj,e,t)}function yj(e){return Cz(e)}const gj=Ua({prUrl:Ae(),githubRepo:Ae(),prNumber:Zt(),prTitle:Ae(),authorLogin:Ae().nullish(),decision:Ae(),effectiveDecision:Ae(),decisionLabel:Ae(),detail:Ae().nullish(),kanbanIssueId:Ae().nullish()}),bj=Ua({id:Ae(),startedAt:Ae(),startedAtLabel:Ae(),finishedAt:Ae().nullable(),trigger:Ae(),phase:Ae(),phaseLabel:Ae(),abortReason:Ae().nullable(),errorMessage:Ae().nullable(),candidatesCount:Zt().nullish(),issuesCreated:Zt().nullish(),skippedUnmapped:Zt().nullish(),skippedBot:Zt().nullish(),skippedBoardLimit:Zt().nullish(),skippedAlreadyTracked:Zt().nullish(),skippedLinkedExisting:Zt().nullish(),skippedTriage:Zt().nullish(),skippedDeclined:Zt().nullish(),itemCount:Zt(),items:nr(gj)}),_j=Ua({runs:nr(bj)}),Sj=Ua({id:Ae(),label:Ae(),href:Ae()}),kj=Ua({entries:nr(Sj)}),Ej=Ol(["no_default_kanban_board","no_mappings"]),Nj=Ua({complete:Ji(),reason:Ej.nullish(),mappingCount:Zt(),sourceType:Ae(),destinationType:Ae(),vibeKanbanBoardActive:Ji(),hasRouting:Ji()}),Tj=Ua({text:Ae(),linkHref:Ae().optional(),linkLabel:Ae().optional()}),Oj=WC(Ae(),Ae());Ua({evaluation:Nj,checklist:nr(Tj),reasonMessages:Oj});const wj=["ok","error","unknown"],Dj=["ok","error"],xj=["ok","degraded","error","unknown"],Rj=["idle","running","skipped","error"],Aj=Ol(wj),zj=Ol(Dj),Cj=Ol(xj),jj=Ol(Rj),Mj=za({candidates_count:Zt().nullable().optional(),skipped_unmapped:Zt().nullable().optional(),issues_created:Zt().nullable().optional()}),Fj=Ua({timestamp:Ae(),pending_triage_count:Zt().int().nonnegative().nullish(),gh:za({state:Aj,message:Ae().nullish()}),database:za({state:zj,message:Ae().nullish()}),setup:za({complete:Ji(),mappingCount:Zt(),reason:Ae().nullish()}),configuration:za({source_type:Ae(),destination_type:Ae(),vibe_kanban_board_active:Ji()}),destinations:nr(za({id:Ae(),state:Cj})),scouts:nr(za({id:Ae(),state:jj,last_poll:Mj})),manual_sync:za({canRun:Ji(),reason:Ae().nullish(),cooldownUntil:Ae().nullish()}),scheduled_sync:za({enabled:Ji()})}),Vj={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"AcceptTriageMutation"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"prUrl"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"acceptTriage"},arguments:[{kind:"Argument",name:{kind:"Name",value:"prUrl"},value:{kind:"Variable",name:{kind:"Name",value:"prUrl"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"prUrl"}},{kind:"Field",name:{kind:"Name",value:"githubRepo"}},{kind:"Field",name:{kind:"Name",value:"prNumber"}},{kind:"Field",name:{kind:"Name",value:"prTitle"}},{kind:"Field",name:{kind:"Name",value:"authorLogin"}},{kind:"Field",name:{kind:"Name",value:"decision"}},{kind:"Field",name:{kind:"Name",value:"effectiveDecision"}},{kind:"Field",name:{kind:"Name",value:"decisionLabel"}},{kind:"Field",name:{kind:"Name",value:"detail"}},{kind:"Field",name:{kind:"Name",value:"kanbanIssueId"}}]}}]}}]},Uj={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"subscription",name:{kind:"Name",value:"ActivityEventsSubscription"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"activityEvents"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"invalidate"}}]}}]}}]},el={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ActivityFeedQuery"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"first"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"after"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"activityFeed"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"Variable",name:{kind:"Name",value:"first"}}},{kind:"Argument",name:{kind:"Name",value:"after"},value:{kind:"Variable",name:{kind:"Name",value:"after"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"edges"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"cursor"}},{kind:"Field",name:{kind:"Name",value:"node"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"startedAt"}},{kind:"Field",name:{kind:"Name",value:"startedAtLabel"}},{kind:"Field",name:{kind:"Name",value:"finishedAt"}},{kind:"Field",name:{kind:"Name",value:"trigger"}},{kind:"Field",name:{kind:"Name",value:"phase"}},{kind:"Field",name:{kind:"Name",value:"phaseLabel"}},{kind:"Field",name:{kind:"Name",value:"abortReason"}},{kind:"Field",name:{kind:"Name",value:"errorMessage"}},{kind:"Field",name:{kind:"Name",value:"candidatesCount"}},{kind:"Field",name:{kind:"Name",value:"issuesCreated"}},{kind:"Field",name:{kind:"Name",value:"skippedUnmapped"}},{kind:"Field",name:{kind:"Name",value:"skippedBot"}},{kind:"Field",name:{kind:"Name",value:"skippedBoardLimit"}},{kind:"Field",name:{kind:"Name",value:"skippedAlreadyTracked"}},{kind:"Field",name:{kind:"Name",value:"skippedLinkedExisting"}},{kind:"Field",name:{kind:"Name",value:"skippedTriage"}},{kind:"Field",name:{kind:"Name",value:"skippedDeclined"}},{kind:"Field",name:{kind:"Name",value:"itemCount"}},{kind:"Field",name:{kind:"Name",value:"items"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"prUrl"}},{kind:"Field",name:{kind:"Name",value:"githubRepo"}},{kind:"Field",name:{kind:"Name",value:"prNumber"}},{kind:"Field",name:{kind:"Name",value:"prTitle"}},{kind:"Field",name:{kind:"Name",value:"authorLogin"}},{kind:"Field",name:{kind:"Name",value:"decision"}},{kind:"Field",name:{kind:"Name",value:"effectiveDecision"}},{kind:"Field",name:{kind:"Name",value:"decisionLabel"}},{kind:"Field",name:{kind:"Name",value:"detail"}},{kind:"Field",name:{kind:"Name",value:"kanbanIssueId"}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"pageInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hasNextPage"}},{kind:"Field",name:{kind:"Name",value:"endCursor"}}]}}]}}]}}]},ch={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"DashboardSetupQuery"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"dashboardSetup"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"evaluation"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"complete"}},{kind:"Field",name:{kind:"Name",value:"reason"}},{kind:"Field",name:{kind:"Name",value:"mappingCount"}},{kind:"Field",name:{kind:"Name",value:"sourceType"}},{kind:"Field",name:{kind:"Name",value:"destinationType"}},{kind:"Field",name:{kind:"Name",value:"vibeKanbanBoardActive"}},{kind:"Field",name:{kind:"Name",value:"hasRouting"}}]}},{kind:"Field",name:{kind:"Name",value:"checklist"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"text"}},{kind:"Field",name:{kind:"Name",value:"linkHref"}},{kind:"Field",name:{kind:"Name",value:"linkLabel"}}]}},{kind:"Field",name:{kind:"Name",value:"reasonMessages"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"code"}},{kind:"Field",name:{kind:"Name",value:"message"}}]}}]}}]}}]},Lj={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeclineTriageMutation"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"prUrl"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"declineTriage"},arguments:[{kind:"Argument",name:{kind:"Name",value:"prUrl"},value:{kind:"Variable",name:{kind:"Name",value:"prUrl"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"prUrl"}},{kind:"Field",name:{kind:"Name",value:"githubRepo"}},{kind:"Field",name:{kind:"Name",value:"prNumber"}},{kind:"Field",name:{kind:"Name",value:"prTitle"}},{kind:"Field",name:{kind:"Name",value:"authorLogin"}},{kind:"Field",name:{kind:"Name",value:"decision"}},{kind:"Field",name:{kind:"Name",value:"effectiveDecision"}},{kind:"Field",name:{kind:"Name",value:"decisionLabel"}},{kind:"Field",name:{kind:"Name",value:"detail"}},{kind:"Field",name:{kind:"Name",value:"kanbanIssueId"}}]}}]}}]},qj={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteMappingMutation"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteMapping"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"ok"}}]}}]}}]},hk={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"EffectiveSettingsQuery"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"effectiveSettings"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"coreFields"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"label"}},{kind:"Field",name:{kind:"Name",value:"value"}},{kind:"Field",name:{kind:"Name",value:"envVar"}},{kind:"Field",name:{kind:"Name",value:"description"}}]}},{kind:"Field",name:{kind:"Name",value:"resolvedSourceLabel"}},{kind:"Field",name:{kind:"Name",value:"resolvedDestinationLabel"}},{kind:"Field",name:{kind:"Name",value:"scheduledSyncEnabled"}},{kind:"Field",name:{kind:"Name",value:"autoCreateIssues"}}]}}]}}]},Qj={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GithubFields"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"githubFields"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"disabled"}},{kind:"Field",name:{kind:"Name",value:"fields"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"label"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}}]}}]}}]},mk={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"IntegrationNavQuery"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"integrationNav"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"entries"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"label"}},{kind:"Field",name:{kind:"Name",value:"href"}}]}}]}}]}}]},tl={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"MappingsQuery"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"mappings"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"githubRepo"}},{kind:"Field",name:{kind:"Name",value:"vibeKanbanRepoId"}},{kind:"Field",name:{kind:"Name",value:"createdAt"}},{kind:"Field",name:{kind:"Name",value:"updatedAt"}}]}}]}}]},Bj={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ReconsiderTriageMutation"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"prUrl"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reconsiderTriage"},arguments:[{kind:"Argument",name:{kind:"Name",value:"prUrl"},value:{kind:"Variable",name:{kind:"Name",value:"prUrl"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"prUrl"}},{kind:"Field",name:{kind:"Name",value:"githubRepo"}},{kind:"Field",name:{kind:"Name",value:"prNumber"}},{kind:"Field",name:{kind:"Name",value:"prTitle"}},{kind:"Field",name:{kind:"Name",value:"authorLogin"}},{kind:"Field",name:{kind:"Name",value:"decision"}},{kind:"Field",name:{kind:"Name",value:"effectiveDecision"}},{kind:"Field",name:{kind:"Name",value:"decisionLabel"}},{kind:"Field",name:{kind:"Name",value:"detail"}},{kind:"Field",name:{kind:"Name",value:"kanbanIssueId"}}]}}]}}]},pk={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ReinitIntegrationMutation"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reinitIntegration"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"ok"}},{kind:"Field",name:{kind:"Name",value:"database"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"state"}},{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"Field",name:{kind:"Name",value:"source"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"state"}},{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"Field",name:{kind:"Name",value:"destination"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"state"}},{kind:"Field",name:{kind:"Name",value:"message"}}]}}]}}]}}]},Ij={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"TriggerSyncMutation"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"triggerSync"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"ok"}}]}}]}}]},Zj={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateDestinationSettings"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdateDestinationSettingsInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateDestinationSettings"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"coreFields"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"label"}},{kind:"Field",name:{kind:"Name",value:"value"}},{kind:"Field",name:{kind:"Name",value:"envVar"}},{kind:"Field",name:{kind:"Name",value:"description"}}]}},{kind:"Field",name:{kind:"Name",value:"resolvedSourceLabel"}},{kind:"Field",name:{kind:"Name",value:"resolvedDestinationLabel"}},{kind:"Field",name:{kind:"Name",value:"scheduledSyncEnabled"}},{kind:"Field",name:{kind:"Name",value:"autoCreateIssues"}}]}}]}}]},Hj={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateSettingsMutation"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdateSettingsInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateSettings"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"coreFields"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"label"}},{kind:"Field",name:{kind:"Name",value:"value"}},{kind:"Field",name:{kind:"Name",value:"envVar"}},{kind:"Field",name:{kind:"Name",value:"description"}}]}},{kind:"Field",name:{kind:"Name",value:"resolvedSourceLabel"}},{kind:"Field",name:{kind:"Name",value:"resolvedDestinationLabel"}},{kind:"Field",name:{kind:"Name",value:"scheduledSyncEnabled"}},{kind:"Field",name:{kind:"Name",value:"autoCreateIssues"}}]}}]}}]},$j={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateSourceSettings"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdateSourceSettingsInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateSourceSettings"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"coreFields"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"label"}},{kind:"Field",name:{kind:"Name",value:"value"}},{kind:"Field",name:{kind:"Name",value:"envVar"}},{kind:"Field",name:{kind:"Name",value:"description"}}]}},{kind:"Field",name:{kind:"Name",value:"resolvedSourceLabel"}},{kind:"Field",name:{kind:"Name",value:"resolvedDestinationLabel"}},{kind:"Field",name:{kind:"Name",value:"scheduledSyncEnabled"}},{kind:"Field",name:{kind:"Name",value:"autoCreateIssues"}}]}}]}}]},Gj={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpsertMappingMutation"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpsertMappingInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"upsertMapping"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"githubRepo"}},{kind:"Field",name:{kind:"Name",value:"vibeKanbanRepoId"}}]}}]}}]},Yj={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"VibeKanbanOrganizations"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"vibeKanbanOrganizations"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}}]}}]},Pj={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"VibeKanbanProjects"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"organizationId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"vibeKanbanProjects"},arguments:[{kind:"Argument",name:{kind:"Name",value:"organizationId"},value:{kind:"Variable",name:{kind:"Name",value:"organizationId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}}]}}]},Xj={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"VibeKanbanRepos"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"vibeKanbanRepos"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}}]}}]},Jj={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"VibeKanbanUiState"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"vibeKanbanUiState"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"saved"}},{kind:"Field",name:{kind:"Name",value:"error"}},{kind:"Field",name:{kind:"Name",value:"vkBoardPicker"}},{kind:"Field",name:{kind:"Name",value:"boardOrg"}},{kind:"Field",name:{kind:"Name",value:"boardProj"}},{kind:"Field",name:{kind:"Name",value:"kanbanDoneStatus"}},{kind:"Field",name:{kind:"Name",value:"vkExecutor"}},{kind:"Field",name:{kind:"Name",value:"executorOptions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}},{kind:"Field",name:{kind:"Name",value:"label"}}]}},{kind:"Field",name:{kind:"Name",value:"vkLabels"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"default_organization_id"}},{kind:"Field",name:{kind:"Name",value:"vk_workspace_executor"}},{kind:"Field",name:{kind:"Name",value:"kanban_done_status"}}]}},{kind:"Field",name:{kind:"Name",value:"orgError"}}]}}]}}]},Wi={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"StatusQuery"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"status"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FullStatusSnapshot"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FullStatusSnapshot"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"StatusSnapshot"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"timestamp"}},{kind:"Field",name:{kind:"Name",value:"pending_triage_count"}},{kind:"Field",name:{kind:"Name",value:"gh"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"state"}},{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"Field",name:{kind:"Name",value:"database"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"state"}},{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"Field",name:{kind:"Name",value:"setup"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"complete"}},{kind:"Field",name:{kind:"Name",value:"mappingCount"}},{kind:"Field",name:{kind:"Name",value:"reason"}}]}},{kind:"Field",name:{kind:"Name",value:"configuration"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"source_type"}},{kind:"Field",name:{kind:"Name",value:"destination_type"}},{kind:"Field",name:{kind:"Name",value:"vibe_kanban_board_active"}}]}},{kind:"Field",name:{kind:"Name",value:"destinations"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"state"}},{kind:"Field",name:{kind:"Name",value:"lastOkAt"}},{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"Field",name:{kind:"Name",value:"scouts"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"state"}},{kind:"Field",name:{kind:"Name",value:"lastPollAt"}},{kind:"Field",name:{kind:"Name",value:"nextPollAt"}},{kind:"Field",name:{kind:"Name",value:"lastError"}},{kind:"Field",name:{kind:"Name",value:"skipReason"}},{kind:"Field",name:{kind:"Name",value:"last_poll"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"candidates_count"}},{kind:"Field",name:{kind:"Name",value:"skipped_unmapped"}},{kind:"Field",name:{kind:"Name",value:"issues_created"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"manual_sync"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"canRun"}},{kind:"Field",name:{kind:"Name",value:"reason"}},{kind:"Field",name:{kind:"Name",value:"cooldownUntil"}}]}},{kind:"Field",name:{kind:"Name",value:"scheduled_sync"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"enabled"}}]}}]}}]},Kj={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"subscription",name:{kind:"Name",value:"StatusUpdatedSubscription"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"statusUpdated"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FullStatusSnapshot"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FullStatusSnapshot"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"StatusSnapshot"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"timestamp"}},{kind:"Field",name:{kind:"Name",value:"pending_triage_count"}},{kind:"Field",name:{kind:"Name",value:"gh"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"state"}},{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"Field",name:{kind:"Name",value:"database"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"state"}},{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"Field",name:{kind:"Name",value:"setup"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"complete"}},{kind:"Field",name:{kind:"Name",value:"mappingCount"}},{kind:"Field",name:{kind:"Name",value:"reason"}}]}},{kind:"Field",name:{kind:"Name",value:"configuration"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"source_type"}},{kind:"Field",name:{kind:"Name",value:"destination_type"}},{kind:"Field",name:{kind:"Name",value:"vibe_kanban_board_active"}}]}},{kind:"Field",name:{kind:"Name",value:"destinations"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"state"}},{kind:"Field",name:{kind:"Name",value:"lastOkAt"}},{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"Field",name:{kind:"Name",value:"scouts"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"state"}},{kind:"Field",name:{kind:"Name",value:"lastPollAt"}},{kind:"Field",name:{kind:"Name",value:"nextPollAt"}},{kind:"Field",name:{kind:"Name",value:"lastError"}},{kind:"Field",name:{kind:"Name",value:"skipReason"}},{kind:"Field",name:{kind:"Name",value:"last_poll"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"candidates_count"}},{kind:"Field",name:{kind:"Name",value:"skipped_unmapped"}},{kind:"Field",name:{kind:"Name",value:"issues_created"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"manual_sync"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"canRun"}},{kind:"Field",name:{kind:"Name",value:"reason"}},{kind:"Field",name:{kind:"Name",value:"cooldownUntil"}}]}},{kind:"Field",name:{kind:"Name",value:"scheduled_sync"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"enabled"}}]}}]}}]};function Wj(){var d,p,m;const e=kn(mk,{fetchPolicy:"cache-and-network"}),t=kn(Wi,{fetchPolicy:"cache-first"});sS(Kj,{onData:({data:v,client:y})=>{var _;const b=(_=v.data)==null?void 0:_.statusUpdated;b&&y.writeQuery({query:Wi,data:{status:b}})}});const a=((d=e.data)==null?void 0:d.integrationNav.entries)??[],r=kj.safeParse({entries:a}),u=r.success?r.data.entries:a,s=F.useMemo(()=>{var y,b;const v=(b=(y=t.data)==null?void 0:y.status)==null?void 0:b.pending_triage_count;return typeof v=="number"&&Number.isFinite(v)?v:0},[(m=(p=t.data)==null?void 0:p.status)==null?void 0:m.pending_triage_count]),c=F.useRef("");return F.useEffect(()=>{typeof Notification>"u"||Notification.permission==="default"&&Notification.requestPermission()},[]),F.useEffect(()=>{if(typeof Notification>"u"||Notification.permission!=="granted")return;if(s<=0){c.current="";return}const v=String(s);c.current!==v&&(c.current=v,new Notification("vibe-squire: PRs need triage",{body:`${s} PR(s) awaiting your review or decline decision`,icon:"/favicon.svg",tag:"vs-triage"}))},[s]),S.jsxs("div",{className:"shell",children:[S.jsxs("aside",{className:"nav-rail",children:[S.jsxs("div",{className:"brand",children:[S.jsx("span",{className:"brand-mark",children:"◇"}),S.jsx("span",{className:"brand-text",children:"vibe-squire"})]}),S.jsxs("nav",{className:"nav",children:[S.jsx(Wr,{className:({isActive:v})=>`nav-link${v?" active":""}`,end:!0,to:"/dashboard",children:"Dashboard"}),S.jsxs(Wr,{className:({isActive:v})=>`nav-link${v?" active":""}`,to:"/activity",children:["Activity",s>0?S.jsx("span",{className:"nav-badge","aria-label":`${s} pending triage`,children:s}):null]}),S.jsx(Wr,{className:({isActive:v})=>`nav-link${v?" active":""}`,to:"/settings",children:"General"}),S.jsx("div",{className:"nav-section-heading",children:"Sync adapters"}),e.loading&&!e.data?S.jsx("p",{className:"muted nav-loading",children:"Loading…"}):null,u.map(v=>S.jsx(Wr,{className:({isActive:y})=>`nav-link${y?" active":""}`,to:v.href,children:v.label},v.id)),S.jsx(Wr,{className:({isActive:v})=>`nav-link${v?" active":""}`,to:"/mappings",children:"Mappings"})]})]}),S.jsx("main",{className:"main",children:S.jsx(ix,{})})]})}function fn(e){return e instanceof Error&&e.message.trim().length>0?e.message:"Unknown error"}function eM(e){if(!e.trim())return null;try{const t=JSON.parse(e);if(t.reason==="cooldown"&&typeof t.cooldownUntil=="string"&&t.cooldownUntil.length>0)return`Cooldown active until ${t.cooldownUntil}`;if(typeof t.message=="string"&&t.message.length>0)return t.message;if(typeof t.reason=="string"&&t.reason.length>0)return t.reason;if(typeof t.error=="string"&&t.error.length>0)return t.error}catch{return null}return null}function Yh(e){if(e instanceof cn){const t=e.graphQLErrors[0];if(t!=null&&t.message){const a=eM(t.message);return a||t.message}}return fn(e)}function vk(e){if(e.database.state==="error")return!0;const{state:t}=e.gh;if(t&&t!=="ok")return!0;const a=e.destinations[0];if(a&&(a.state==="degraded"||a.state==="error"))return!0;const r=e.scouts[0];return(r==null?void 0:r.state)==="error"}const tM={first:40},nM=[{query:Wi},{query:el,variables:tM},{query:hk},{query:tl},{query:mk}];function Lm(){const e=kn(Wi,{fetchPolicy:"cache-first"}),t=(()=>{var d;const s=(d=e.data)==null?void 0:d.status;if(!s)return null;const c=Fj.safeParse(s);return c.success?c.data:null})(),[a,{loading:r}]=Gn(pk,{refetchQueries:[...nM],awaitRefetchQueries:!0,onCompleted:()=>{je.success("Reinit completed.")},onError:s=>{je.error(`Reinit failed: ${Yh(s)}`)}});return(t?vk(t):!1)?S.jsx("div",{className:"actions-row operator-head-actions",children:S.jsx("button",{type:"button",className:"btn ghost btn-sm",disabled:r,onClick:()=>{confirm("Run soft reinit? This refreshes settings, rescans checks, clears scout backoff, and reschedules sync.")&&a()},children:r?"Reinit…":"Reinit"})}):null}function aM(){return S.jsx("div",{className:"triage-actions triage-actions--pending",children:S.jsxs("span",{className:"triage-actions__pending","aria-live":"polite",children:[S.jsx("span",{className:"triage-action-spinner","aria-hidden":!0}),S.jsx("span",{children:"Working…"})]})})}function iM({prUrl:e,mode:t,onAccept:a,onDecline:r,onReconsider:u}){return S.jsx("div",{className:"triage-actions",children:t==="pending"?S.jsxs(S.Fragment,{children:[S.jsx("button",{type:"button",className:"btn btn-sm primary",onClick:()=>a(e),children:"Review"}),S.jsx("button",{type:"button",className:"btn btn-sm ghost",onClick:()=>r(e),children:"Decline"})]}):S.jsx("button",{type:"button",className:"btn btn-sm ghost",onClick:()=>u(e),children:"Reconsider"})})}function Fu(e){return e==="skipped_triage"||e==="skipped_board_limit"}function D0(e){return Fu(e)?0:e==="skipped_declined"?1:e==="linked_existing"||e==="skipped_unmapped"?2:e==="skipped_bot"?4:3}function Ra(e){return e==null?"—":String(e)}function rM({run:e,highlight:t=!1,onAccept:a,onDecline:r,onReconsider:u,triageActionPendingPr:s}){const c=F.useMemo(()=>[...e.items].sort((_,E)=>{const T=D0(_.effectiveDecision),D=D0(E.effectiveDecision);return T!==D?T-D:_.prNumber-E.prNumber}),[e.items]),d=c.some(_=>Fu(_.effectiveDecision)),p=t&&d,[m,v]=F.useState(p);F.useEffect(()=>{p&&v(!0)},[p,e.id]);const y=e.trigger==="manual"?"manual":"scheduled";let b=null;return e.phase==="running"?b=`Sync in progress... ${e.itemCount} PR row(s) recorded so far.`:e.phase==="completed"?b=`${Ra(e.candidatesCount)} PR(s) seen · ${Ra(e.issuesCreated)} created · ${Ra(e.skippedUnmapped)} unmapped · ${Ra(e.skippedBot)} bot · ${Ra(e.skippedBoardLimit)} board limit · ${Ra(e.skippedAlreadyTracked)} already tracked · ${Ra(e.skippedLinkedExisting)} linked existing${e.skippedTriage?` · ${Ra(e.skippedTriage)} pending triage`:""}${e.skippedDeclined?` · ${Ra(e.skippedDeclined)} declined`:""}`:e.phase==="aborted"&&(b=e.abortReason??"Aborted"),S.jsxs("section",{className:"card activity-run",children:[S.jsxs("div",{className:"activity-run-summary",children:[S.jsxs("div",{className:"activity-run-meta",children:[S.jsx("span",{className:"activity-run-time mono",children:e.startedAtLabel}),S.jsx("span",{className:"activity-pill",children:y}),S.jsx("span",{className:`activity-pill activity-pill-phase-${e.phase}`,children:e.phaseLabel})]}),b?S.jsx("p",{className:"muted activity-run-counts",children:b}):null,e.phase==="failed"&&e.errorMessage?S.jsx("p",{className:"banner banner-error activity-run-msg",children:e.errorMessage}):null]}),c.length>0?S.jsxs("details",{className:"activity-details",open:m,onToggle:_=>v(_.currentTarget.open),children:[S.jsxs("summary",{className:"activity-details-summary",children:["PR details (",c.length,")",p?S.jsxs(S.Fragment,{children:[" ","· ",S.jsx("span",{className:"triage-attention-hint",children:"needs attention"})]}):null]}),S.jsx("div",{className:"table-wrap activity-items-wrap",children:S.jsxs("table",{className:"data-table activity-items-table",children:[S.jsx("thead",{children:S.jsxs("tr",{children:[S.jsx("th",{children:"PR"}),S.jsx("th",{children:"Repo"}),S.jsx("th",{children:"Outcome"}),S.jsx("th",{children:"Detail"})]})}),S.jsx("tbody",{children:c.map(_=>{const E=Fu(_.effectiveDecision)?"triage-pending-row":_.effectiveDecision==="skipped_declined"?"triage-declined-row":"";return S.jsxs("tr",{className:E,children:[S.jsxs("td",{children:[S.jsxs("a",{href:_.prUrl,target:"_blank",rel:"noreferrer",children:["#",_.prNumber]}),S.jsx("div",{className:"activity-pr-title muted",children:_.prTitle}),_.authorLogin?S.jsxs("div",{className:"muted",children:["@",_.authorLogin]}):null]}),S.jsx("td",{className:"wrap",children:S.jsx("code",{children:_.githubRepo})}),S.jsxs("td",{children:[_.decisionLabel,s===_.prUrl?S.jsx(aM,{}):(Fu(_.effectiveDecision)||_.effectiveDecision==="skipped_declined")&&S.jsx(iM,{prUrl:_.prUrl,mode:Fu(_.effectiveDecision)?"pending":"declined",onAccept:a,onDecline:r,onReconsider:u})]}),S.jsxs("td",{className:"wrap muted",children:[_.kanbanIssueId?S.jsxs(S.Fragment,{children:[S.jsxs("code",{children:["issue ",_.kanbanIssueId]}),_.detail?" · ":""]}):null,_.detail??"—"]})]},_.prUrl)})})]})})]}):S.jsx("p",{className:"muted",children:"No items in this run."})]})}function lM(e){return e==="skipped_triage"||e==="skipped_board_limit"}function uM({initialLoading:e,errorMessage:t,runs:a,hasNextPage:r,loadMoreBusy:u,onLoadMore:s,onAccept:c,onDecline:d,onReconsider:p,triageActionPendingPr:m}){const v=F.useMemo(()=>a[0]??null,[a]),y=(v==null?void 0:v.id)??null,b=F.useMemo(()=>{if(!v)return 0;const _=new Set;for(const E of v.items)lM(E.effectiveDecision)&&_.add(E.prUrl);return _.size},[v]);return S.jsxs(S.Fragment,{children:[e?S.jsx("p",{children:"Loading…"}):null,t?S.jsx("p",{className:"text-danger",children:t}):null,b>0?S.jsxs("div",{className:"banner-triage-attention",children:[S.jsxs("strong",{children:[b," PR(s)"]})," awaiting your review or decline decision."]}):null,a.map(_=>S.jsx(rM,{run:_,highlight:_.id===y,onAccept:c,onDecline:d,onReconsider:p,triageActionPendingPr:m},_.id)),r?S.jsx("button",{type:"button",className:"btn ghost",onClick:s,disabled:u,children:u?"Loading…":"Load more"}):null]})}function oM({titleRow:e,intro:t,feed:a}){return S.jsxs("div",{className:"stack",children:[e,t,a]})}const x0=10;function sM(){var E,T,D,N,w;const e=kn(el,{variables:{first:x0},fetchPolicy:"cache-and-network"});sS(Uj,{onData:({client:O})=>{O.refetchQueries({include:[el]})}});const t=F.useMemo(()=>{var M;return(((M=e.data)==null?void 0:M.activityFeed.edges)??[]).map(z=>z.node)},[(E=e.data)==null?void 0:E.activityFeed.edges]),a=F.useMemo(()=>{try{return _j.parse({runs:t}).runs}catch{return[]}},[t]),r=F.useMemo(()=>{const O=new Map;for(const M of a)for(const z of M.items)O.has(z.prUrl)||O.set(z.prUrl,z);return O},[a]),u=F.useCallback((O,M)=>{const z=r.get(O);return{__typename:"ActivityItemGql",id:O,prUrl:O,githubRepo:(z==null?void 0:z.githubRepo)??"(updating)",prNumber:(z==null?void 0:z.prNumber)??0,prTitle:(z==null?void 0:z.prTitle)??"(updating)",authorLogin:(z==null?void 0:z.authorLogin)??null,decision:(z==null?void 0:z.decision)??"skipped_triage",effectiveDecision:M.effectiveDecision,decisionLabel:M.decisionLabel,detail:(z==null?void 0:z.detail)??null,kanbanIssueId:M.kanbanIssueId}},[r]),[s]=Gn(Vj,{optimisticResponse:O=>({__typename:"Mutation",acceptTriage:u(O.prUrl,{effectiveDecision:"linked_existing",decisionLabel:"Linked existing issue",kanbanIssueId:"…"})}),refetchQueries:[el],onError:O=>je.error(fn(O))}),[c]=Gn(Lj,{optimisticResponse:O=>({__typename:"Mutation",declineTriage:u(O.prUrl,{effectiveDecision:"skipped_declined",decisionLabel:"Declined",kanbanIssueId:null})}),refetchQueries:[el],onError:O=>je.error(fn(O))}),[d]=Gn(Bj,{optimisticResponse:O=>({__typename:"Mutation",reconsiderTriage:u(O.prUrl,{effectiveDecision:"skipped_triage",decisionLabel:"Pending triage",kanbanIssueId:null})}),refetchQueries:[el],onError:O=>je.error(fn(O))}),[p,m]=F.useState(null),v=F.useCallback(()=>{var M,z,Z,$,W,se;const O=(Z=(z=(M=e.data)==null?void 0:M.activityFeed)==null?void 0:z.pageInfo)==null?void 0:Z.endCursor;!O||!((se=(W=($=e.data)==null?void 0:$.activityFeed)==null?void 0:W.pageInfo)!=null&&se.hasNextPage)||e.fetchMore({variables:{first:x0,after:O}})},[e]),y=F.useCallback(O=>{m(O),s({variables:{prUrl:O}}).finally(()=>{m(M=>M===O?null:M)})},[s]),b=F.useCallback(O=>{m(O),c({variables:{prUrl:O}}).finally(()=>{m(M=>M===O?null:M)})},[c]),_=F.useCallback(O=>{m(O),d({variables:{prUrl:O}}).finally(()=>{m(M=>M===O?null:M)})},[d]);return S.jsx(oM,{titleRow:S.jsxs("div",{className:"page-title-row",children:[S.jsx("h1",{children:"Activity"}),S.jsx(Lm,{})]}),intro:S.jsx("p",{className:"muted",children:"Per-sync poll runs and item decisions."}),feed:S.jsx(uM,{initialLoading:!!(e.loading&&!e.data),errorMessage:((T=e.error)==null?void 0:T.message)??null,runs:a,hasNextPage:!!((w=(N=(D=e.data)==null?void 0:D.activityFeed)==null?void 0:N.pageInfo)!=null&&w.hasNextPage),loadMoreBusy:e.loading,onLoadMore:v,onAccept:y,onDecline:b,onReconsider:_,triageActionPendingPr:p})})}function cM(e){return ut(e)&&"code"in e&&"reason"in e}function fM(e){var t;return ut(e)&&((t=e.target)===null||t===void 0?void 0:t.readyState)===WebSocket.CLOSED}var dM=(function(e){Xn(t,e);function t(a){var r=e.call(this)||this;return r.client=a,r}return t.prototype.request=function(a){var r=this;return new et(function(u){return r.client.subscribe(j(j({},a),{query:pi(a.query)}),{next:u.next.bind(u),complete:u.complete.bind(u),error:function(s){if(s instanceof Error)return u.error(s);var c=cM(s);return c||fM(s)?u.error(new Error("Socket closed".concat(c?" with event ".concat(s.code):"").concat(c?" ".concat(s.reason):""))):u.error(new cn({graphQLErrors:Array.isArray(s)?s:[s]}))}})})},t})(ir);function on(e){return e===null?"null":Array.isArray(e)?"array":typeof e}function Yi(e){return on(e)==="object"}function hM(e){return Array.isArray(e)&&e.length>0&&e.every(t=>"message"in t)}function R0(e,t){return e.length<124?e:t}const mM="graphql-transport-ws";var jn=(e=>(e[e.InternalServerError=4500]="InternalServerError",e[e.InternalClientError=4005]="InternalClientError",e[e.BadRequest=4400]="BadRequest",e[e.BadResponse=4004]="BadResponse",e[e.Unauthorized=4401]="Unauthorized",e[e.Forbidden=4403]="Forbidden",e[e.SubprotocolNotAcceptable=4406]="SubprotocolNotAcceptable",e[e.ConnectionInitialisationTimeout=4408]="ConnectionInitialisationTimeout",e[e.ConnectionAcknowledgementTimeout=4504]="ConnectionAcknowledgementTimeout",e[e.SubscriberAlreadyExists=4409]="SubscriberAlreadyExists",e[e.TooManyInitialisationRequests=4429]="TooManyInitialisationRequests",e))(jn||{}),Mn=(e=>(e.ConnectionInit="connection_init",e.ConnectionAck="connection_ack",e.Ping="ping",e.Pong="pong",e.Subscribe="subscribe",e.Next="next",e.Error="error",e.Complete="complete",e))(Mn||{});function yk(e){if(!Yi(e))throw new Error(`Message is expected to be an object, but got ${on(e)}`);if(!e.type)throw new Error("Message is missing the 'type' property");if(typeof e.type!="string")throw new Error(`Message is expects the 'type' property to be a string, but got ${on(e.type)}`);switch(e.type){case"connection_init":case"connection_ack":case"ping":case"pong":{if(e.payload!=null&&!Yi(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object or nullish or missing, but got "${e.payload}"`);break}case"subscribe":{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${on(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!Yi(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${on(e.payload)}`);if(typeof e.payload.query!="string")throw new Error(`"${e.type}" message payload expects the 'query' property to be a string, but got ${on(e.payload.query)}`);if(e.payload.variables!=null&&!Yi(e.payload.variables))throw new Error(`"${e.type}" message payload expects the 'variables' property to be a an object or nullish or missing, but got ${on(e.payload.variables)}`);if(e.payload.operationName!=null&&on(e.payload.operationName)!=="string")throw new Error(`"${e.type}" message payload expects the 'operationName' property to be a string or nullish or missing, but got ${on(e.payload.operationName)}`);if(e.payload.extensions!=null&&!Yi(e.payload.extensions))throw new Error(`"${e.type}" message payload expects the 'extensions' property to be a an object or nullish or missing, but got ${on(e.payload.extensions)}`);break}case"next":{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${on(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!Yi(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${on(e.payload)}`);break}case"error":{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${on(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!hM(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an array of GraphQL errors, but got ${JSON.stringify(e.payload)}`);break}case"complete":{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${on(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);break}default:throw new Error(`Invalid message 'type' property "${e.type}"`)}return e}function pM(e,t){return yk(typeof e=="string"?JSON.parse(e,t):e)}function Au(e,t){return yk(e),JSON.stringify(e,t)}function vM(e){const{url:t,connectionParams:a,lazy:r=!0,onNonLazyError:u=console.error,lazyCloseTimeout:s=0,keepAlive:c=0,disablePong:d,connectionAckWaitTimeout:p=0,retryAttempts:m=5,retryWait:v=async function(ce){const U=Math.pow(2,ce);await new Promise(P=>setTimeout(P,U*1e3+Math.floor(Math.random()*2700+300)))},shouldRetry:y=fh,on:b,webSocketImpl:_,generateID:E=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,ce=>{const U=Math.random()*16|0;return(ce=="x"?U:U&3|8).toString(16)})},jsonMessageReplacer:T,jsonMessageReviver:D}=e;let N;if(_){if(!gM(_))throw new Error("Invalid WebSocket implementation provided");N=_}else typeof WebSocket<"u"?N=WebSocket:typeof global<"u"?N=global.WebSocket||global.MozWebSocket:typeof window<"u"&&(N=window.WebSocket||window.MozWebSocket);if(!N)throw new Error("WebSocket implementation missing; on Node you can `import WebSocket from 'ws';` and pass `webSocketImpl: WebSocket` to `createClient`");const w=N,O=(()=>{const ee=(()=>{const U={};return{on(P,ie){return U[P]=ie,()=>{delete U[P]}},emit(P){var ie;"id"in P&&((ie=U[P.id])==null||ie.call(U,P))}}})(),ce={connecting:b!=null&&b.connecting?[b.connecting]:[],opened:b!=null&&b.opened?[b.opened]:[],connected:b!=null&&b.connected?[b.connected]:[],ping:b!=null&&b.ping?[b.ping]:[],pong:b!=null&&b.pong?[b.pong]:[],message:b!=null&&b.message?[ee.emit,b.message]:[ee.emit],closed:b!=null&&b.closed?[b.closed]:[],error:b!=null&&b.error?[b.error]:[]};return{onMessage:ee.on,on(U,P){const ie=ce[U];return ie.push(P),()=>{ie.splice(ie.indexOf(P),1)}},emit(U,...P){for(const ie of[...ce[U]])ie(...P)}}})();function M(ee){const ce=[O.on("error",U=>{ce.forEach(P=>P()),ee(U)}),O.on("closed",U=>{ce.forEach(P=>P()),ee(U)})]}let z,Z=0,$,W=!1,se=0,Ne=!1;async function Be(){clearTimeout($);const[ee,ce]=await(z??(z=new Promise((ie,me)=>(async()=>{if(W){if(await v(se),!Z)return z=void 0,me({code:1e3,reason:"All Subscriptions Gone"});se++}O.emit("connecting",W);const ve=new w(typeof t=="function"?await t():t,mM);let A,G;function ae(){isFinite(c)&&c>0&&(clearTimeout(G),G=setTimeout(()=>{ve.readyState===w.OPEN&&(ve.send(Au({type:Mn.Ping})),O.emit("ping",!1,void 0))},c))}M(ge=>{z=void 0,clearTimeout(A),clearTimeout(G),me(ge),ge instanceof A0&&(ve.close(4499,"Terminated"),ve.onerror=null,ve.onclose=null)}),ve.onerror=ge=>O.emit("error",ge),ve.onclose=ge=>O.emit("closed",ge),ve.onopen=async()=>{try{O.emit("opened",ve);const ge=typeof a=="function"?await a():a;if(ve.readyState!==w.OPEN)return;ve.send(Au(ge?{type:Mn.ConnectionInit,payload:ge}:{type:Mn.ConnectionInit},T)),isFinite(p)&&p>0&&(A=setTimeout(()=>{ve.close(jn.ConnectionAcknowledgementTimeout,"Connection acknowledgement timeout")},p)),ae()}catch(ge){O.emit("error",ge),ve.close(jn.InternalClientError,R0(ge instanceof Error?ge.message:String(ge),"Internal client error"))}};let oe=!1;ve.onmessage=({data:ge})=>{try{const _e=pM(ge,D);if(O.emit("message",_e),_e.type==="ping"||_e.type==="pong"){O.emit(_e.type,!0,_e.payload),_e.type==="pong"?ae():d||(ve.send(Au(_e.payload?{type:Mn.Pong,payload:_e.payload}:{type:Mn.Pong})),O.emit("pong",!1,_e.payload));return}if(oe)return;if(_e.type!==Mn.ConnectionAck)throw new Error(`First message cannot be of type ${_e.type}`);clearTimeout(A),oe=!0,O.emit("connected",ve,_e.payload,W),W=!1,se=0,ie([ve,new Promise((qe,kt)=>M(kt))])}catch(_e){ve.onmessage=null,O.emit("error",_e),ve.close(jn.BadResponse,R0(_e instanceof Error?_e.message:String(_e),"Bad response"))}}})())));ee.readyState===w.CLOSING&&await ce;let U=()=>{};const P=new Promise(ie=>U=ie);return[ee,U,Promise.race([P.then(()=>{if(!Z){const ie=()=>ee.close(1e3,"Normal Closure");isFinite(s)&&s>0?$=setTimeout(()=>{ee.readyState===w.OPEN&&ie()},s):ie()}}),ce])]}function le(ee){if(fh(ee)&&(yM(ee.code)||[jn.InternalServerError,jn.InternalClientError,jn.BadRequest,jn.BadResponse,jn.Unauthorized,jn.SubprotocolNotAcceptable,jn.SubscriberAlreadyExists,jn.TooManyInitialisationRequests].includes(ee.code)))throw ee;if(Ne)return!1;if(fh(ee)&&ee.code===1e3)return Z>0;if(!m||se>=m||!y(ee))throw ee;return W=!0}r||(async()=>{for(Z++;;)try{const[,,ee]=await Be();await ee}catch(ee){try{if(!le(ee))return}catch(ce){return u==null?void 0:u(ce)}}})();function fe(ee,ce){const U=E(ee);let P=!1,ie=!1,me=()=>{Z--,P=!0};return(async()=>{for(Z++;;)try{const[ve,A,G]=await Be();if(P)return A();const ae=O.onMessage(U,oe=>{switch(oe.type){case Mn.Next:{ce.next(oe.payload);return}case Mn.Error:{ie=!0,P=!0,ce.error(oe.payload),me();return}case Mn.Complete:{P=!0,me();return}}});ve.send(Au({id:U,type:Mn.Subscribe,payload:ee},T)),me=()=>{!P&&ve.readyState===w.OPEN&&ve.send(Au({id:U,type:Mn.Complete},T)),Z--,P=!0,A()},await G.finally(ae);return}catch(ve){if(!le(ve))return}})().then(()=>{ie||ce.complete()}).catch(ve=>{ce.error(ve)}),()=>{P||me()}}return{on:O.on,subscribe:fe,iterate(ee){const ce=[],U={done:!1,error:null,resolve:()=>{}},P=fe(ee,{next(me){ce.push(me),U.resolve()},error(me){U.done=!0,U.error=me,U.resolve()},complete(){U.done=!0,U.resolve()}}),ie=(async function*(){for(;;){for(ce.length||await new Promise(ve=>U.resolve=ve);ce.length;)yield ce.shift();if(U.error)throw U.error;if(U.done)return}})();return ie.throw=async me=>(U.done||(U.done=!0,U.error=me,U.resolve()),{done:!0,value:void 0}),ie.return=async()=>(P(),{done:!0,value:void 0}),ie},async dispose(){if(Ne=!0,z){const[ee]=await z;ee.close(1e3,"Normal Closure")}},terminate(){z&&O.emit("closed",new A0)}}}class A0 extends Error{constructor(){super(...arguments);Gr(this,"name","TerminatedCloseEvent");Gr(this,"message","4499: Terminated");Gr(this,"code",4499);Gr(this,"reason","Terminated");Gr(this,"wasClean",!1)}}function fh(e){return Yi(e)&&"code"in e&&"reason"in e}function yM(e){return[1e3,1001,1006,1005,1012,1013,1014].includes(e)?!1:e>=1e3&&e<=1999}function gM(e){return typeof e=="function"&&"constructor"in e&&"CLOSED"in e&&"CLOSING"in e&&"CONNECTING"in e&&"OPEN"in e}function bM(){return typeof window>"u"?"ws://127.0.0.1:4000/graphql":`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/graphql`}const _M=new z_({uri:"/graphql"}),SM=new dM(vM({url:bM()})),kM=QO(({query:e})=>{const t=_l(e);return t.kind===nt.OPERATION_DEFINITION&&t.operation===gh.SUBSCRIPTION},SM,_M),EM=new eS({name:"@vibe-squire/web",version:"p2-4",link:kM,cache:new K_({typePolicies:{Query:{fields:{mappings:{merge(e,t){return t}},activityFeed:yO(["first","after"]),effectiveSettings:{merge:!0}}},ActivityRunGql:{keyFields:["id"]},ActivityItemGql:{keyFields:["id"]},MappingGql:{keyFields:["id"]}}})});function aa({width:e="100%"}){return S.jsx("span",{className:"ui-loading-line",style:{width:e},"aria-hidden":!0})}function _n({title:e,children:t,compact:a=!1}){return S.jsxs("section",{className:`card ${a?"compact":""}`,children:[S.jsx("h2",{className:"ui-card-heading",children:e}),t]})}function Kt({label:e,value:t}){return S.jsxs("div",{className:"ui-key-value",children:[S.jsx("span",{className:"ui-key-value-label",children:e}),S.jsx("span",{className:"ui-key-value-value",children:t})]})}function NM({configuration:e}){return S.jsxs(_n,{title:"Configuration",children:[S.jsx(Kt,{label:"Source",value:e.source_type}),S.jsx(Kt,{label:"Destination",value:e.destination_type}),S.jsx(Kt,{label:"Vibe Kanban board",value:e.vibe_kanban_board_active?"active":"inactive"})]})}const TM={ok:"var(--accent)",degraded:"var(--warn)",error:"var(--danger)",unknown:"#5a6b62",idle:"#5a6b62",running:"var(--warn)",skipped:"#5a6b62"};function OM({state:e}){return S.jsx("span",{className:"status-dot","aria-label":`State: ${e}`,title:e,style:{backgroundColor:TM[e]}})}function wl({state:e,label:t}){return S.jsxs("span",{className:"ui-status-pill",children:[S.jsx(OM,{state:e}),S.jsx("span",{children:t??e})]})}function wM({status:e}){return S.jsxs(_n,{title:"Database",children:[S.jsx(wl,{state:e.state}),e.message?S.jsx("p",{className:"muted",children:e.message}):null]})}function DM(e){return!Number.isNaN(e.getTime())}function Js(e){const t=new Date(e);if(!DM(t))return e;const a=new Intl.DateTimeFormat(void 0,{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",hour12:!1}).formatToParts(t),r=u=>{var s;return((s=a.find(c=>c.type===u))==null?void 0:s.value)??""};return`${r("year")}-${r("month")}-${r("day")} ${r("hour")}:${r("minute")}`}function z0(e){return typeof e=="string"&&e.length>0?e:null}function xM({destinations:e}){return S.jsxs(_n,{title:"Destinations",children:[e.length===0?S.jsx("p",{className:"muted",children:"No destinations"}):null,S.jsx("ul",{className:"id-list",children:e.map(t=>{const a=t,r=z0(a.lastOkAt),u=z0(a.message);return S.jsxs("li",{children:[S.jsx(wl,{state:t.state}),S.jsx(Kt,{label:"ID",value:t.id}),r?S.jsx(Kt,{label:"Last ok",value:Js(r)}):null,u?S.jsx("p",{className:"muted",children:u}):null]},t.id)})})]})}function RM({status:e}){return S.jsxs(_n,{title:"GitHub",children:[S.jsx(wl,{state:e.state}),e.message?S.jsx("p",{className:"muted",children:e.message}):null]})}function AM(e){return e.canRun?{state:"ok",label:"runnable"}:e.reason==="cooldown"?{state:"degraded",label:"cooldown",reasonText:"Cooldown active"}:e.reason==="already_running"?{state:"degraded",label:"busy",reasonText:"Sync is already running"}:e.reason==="setup_incomplete"?{state:"degraded",label:"setup required",reasonText:"Finish setup checklist to enable manual sync"}:e.reason?{state:"error",label:"blocked",reasonText:e.reason}:{state:"degraded",label:"blocked"}}function zM({manualSync:e,onSyncNow:t,syncNowPending:a=!1}){const r=AM(e);return S.jsxs(_n,{title:"Manual sync",children:[S.jsx(wl,{state:r.state,label:r.label}),S.jsx("div",{className:"actions-row manual-sync-actions",children:S.jsx("button",{type:"button",className:"btn primary btn-sm",disabled:!e.canRun||a,onClick:t,children:a?"Syncing…":"Sync now"})}),r.reasonText?S.jsx("p",{className:"muted",children:r.reasonText}):null,e.cooldownUntil?S.jsx(Kt,{label:"Cooldown until",value:Js(e.cooldownUntil)}):null]})}function CM({scheduledSync:e}){const t=e.enabled?"ok":"degraded",a=e.enabled?"enabled":"disabled";return S.jsxs(_n,{title:"Scheduled sync",compact:!0,children:[S.jsx(wl,{state:t,label:a}),e.enabled?null:S.jsx("p",{className:"muted",children:"Disabled in General settings."})]})}function C0(e){return typeof e=="string"&&e.length>0?e:null}function dh(e){return typeof e=="number"?String(e):"n/a"}function jM({scouts:e}){return S.jsxs(_n,{title:"Scouts",children:[e.length===0?S.jsx("p",{className:"muted",children:"No scouts"}):null,S.jsx("ul",{className:"id-list",children:e.map(t=>{const a=t,r=C0(a.lastPollAt),u=C0(a.nextPollAt),s=t.last_poll;return S.jsxs("li",{children:[S.jsx(wl,{state:t.state}),S.jsx(Kt,{label:"ID",value:t.id}),r?S.jsx(Kt,{label:"Last poll",value:Js(r)}):null,u?S.jsx(Kt,{label:"Next poll",value:Js(u)}):null,s?S.jsxs(S.Fragment,{children:[S.jsx(Kt,{label:"Candidates",value:dh(s.candidates_count)}),S.jsx(Kt,{label:"Skipped",value:dh(s.skipped_unmapped)}),S.jsx(Kt,{label:"Issues created",value:dh(s.issues_created)})]}):null]},t.id)})})]})}function MM({text:e,linkHref:t,linkLabel:a}){return S.jsxs("li",{className:"setup-checklist-item",children:[S.jsx("span",{className:"setup-checklist-mark","aria-hidden":!0,children:"•"}),S.jsxs("span",{className:"setup-checklist-text",children:[e,t&&a&&S.jsxs(S.Fragment,{children:[" ",S.jsx("a",{className:"setup-checklist-link",href:t,children:a})]})]})]})}function FM({setup:e,items:t}){const a=t??[];return S.jsxs(_n,{title:"Setup checklist",children:[S.jsx(Kt,{label:"Complete",value:e.complete?"yes":"no"}),S.jsx(Kt,{label:"Mappings",value:String(e.mappingCount)}),e.reason?S.jsx(Kt,{label:"Reason",value:e.reason}):null,a.length>0?S.jsx("ul",{className:"setup-checklist",children:a.map(r=>S.jsx(MM,{text:r.text,linkHref:r.linkHref,linkLabel:r.linkLabel},`${r.text}-${r.linkHref??""}`))}):null]})}function Rs({children:e}){return S.jsx("h2",{className:"ui-group-heading",children:e})}function hh({headActions:e,overview:t,sync:a,health:r,setup:u}){return S.jsxs("div",{className:"page",children:[S.jsxs("div",{className:"page-head",children:[S.jsx("h1",{children:"Dashboard"}),e?S.jsx("div",{className:"dashboard-head-actions",children:e}):null]}),S.jsxs("div",{className:"dashboard-template-grid",children:[t?S.jsxs("section",{className:"dashboard-template-slot",children:[S.jsx(Rs,{children:"Overview"}),S.jsx("div",{className:"dashboard-template-stack",children:t})]}):null,a?S.jsxs("section",{className:"dashboard-template-slot",children:[S.jsx(Rs,{children:"Sync"}),S.jsx("div",{className:"dashboard-template-stack",children:a})]}):null,r?S.jsxs("section",{className:"dashboard-template-slot",children:[S.jsx(Rs,{children:"Health"}),S.jsx("div",{className:"dashboard-template-stack",children:r})]}):null,u?S.jsxs("section",{className:"dashboard-template-slot",children:[S.jsx(Rs,{children:"Setup"}),S.jsx("div",{className:"dashboard-template-stack",children:u})]}):null]})]})}function VM(){var p,m;const e=kn(Wi),t=kn(ch),[a,{loading:r}]=Gn(Ij,{refetchQueries:[{query:Wi},{query:ch}],awaitRefetchQueries:!0,onCompleted:()=>{je.success("Sync finished.")},onError:v=>{je.error(`Sync failed: ${Yh(v)}`)}}),[u,{loading:s}]=Gn(pk,{refetchQueries:[{query:Wi},{query:ch}],awaitRefetchQueries:!0,onCompleted:()=>{je.success("Reinit completed.")},onError:v=>{je.error(`Reinit failed: ${Yh(v)}`)}});if(e.loading&&!e.data&&!e.error)return S.jsx(hh,{overview:S.jsx(_n,{title:"Loading",children:S.jsxs("div",{className:"ui-skeleton-stack",children:[S.jsx(aa,{width:"72%"}),S.jsx(aa,{width:"58%"}),S.jsx(aa,{width:"44%"})]})}),sync:S.jsx(_n,{title:"Loading",children:S.jsxs("div",{className:"ui-skeleton-stack",children:[S.jsx(aa,{width:"56%"}),S.jsx(aa,{width:"38%"})]})}),health:S.jsx(_n,{title:"Loading",children:S.jsxs("div",{className:"ui-skeleton-stack",children:[S.jsx(aa,{width:"82%"}),S.jsx(aa,{width:"68%"}),S.jsx(aa,{width:"52%"})]})}),setup:S.jsx(_n,{title:"Loading",children:S.jsxs("div",{className:"ui-skeleton-stack",children:[S.jsx(aa,{width:"64%"}),S.jsx(aa,{width:"48%"})]})})});if(e.error||!((p=e.data)!=null&&p.status))return S.jsx(hh,{overview:S.jsx(_n,{title:"Status unavailable",children:S.jsx("p",{children:"Failed to load dashboard status snapshot."})})});const c=e.data.status,d=vk(c);return S.jsx(hh,{headActions:d?S.jsx("button",{type:"button",className:"btn ghost btn-sm",disabled:s,onClick:()=>{confirm("Run soft reinit? This refreshes settings, rescans checks, clears scout backoff, and reschedules sync.")&&u()},children:s?"Reinit…":"Reinit"}):null,overview:S.jsxs(S.Fragment,{children:[S.jsx(RM,{status:c.gh}),S.jsx(wM,{status:c.database}),S.jsx(NM,{configuration:c.configuration})]}),sync:S.jsxs(S.Fragment,{children:[S.jsx(zM,{manualSync:c.manual_sync,onSyncNow:()=>{a()},syncNowPending:r}),S.jsx(CM,{scheduledSync:c.scheduled_sync})]}),health:S.jsxs(S.Fragment,{children:[S.jsx(xM,{destinations:c.destinations}),S.jsx(jM,{scouts:c.scouts})]}),setup:S.jsx(FM,{setup:c.setup,items:(m=t.data)==null?void 0:m.dashboardSetup.checklist.map(v=>({text:v.text,...v.linkHref?{linkHref:v.linkHref}:{},...v.linkLabel?{linkLabel:v.linkLabel}:{}}))})})}var no=e=>e.type==="checkbox",Ki=e=>e instanceof Date,sn=e=>e==null;const gk=e=>typeof e=="object";var St=e=>!sn(e)&&!Array.isArray(e)&&gk(e)&&!Ki(e),UM=e=>St(e)&&e.target?no(e.target)?e.target.checked:e.target.value:e,LM=(e,t)=>t.split(".").some((a,r,u)=>!isNaN(Number(a))&&e.has(u.slice(0,r).join("."))),qM=e=>{const t=e.constructor&&e.constructor.prototype;return St(t)&&t.hasOwnProperty("isPrototypeOf")},qm=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function At(e){if(e instanceof Date)return new Date(e);const t=typeof FileList<"u"&&e instanceof FileList;if(qm&&(e instanceof Blob||t))return e;const a=Array.isArray(e);if(!a&&!(St(e)&&qM(e)))return e;const r=a?[]:Object.create(Object.getPrototypeOf(e));for(const u in e)Object.prototype.hasOwnProperty.call(e,u)&&(r[u]=At(e[u]));return r}var bc=e=>/^\w*$/.test(e),ft=e=>e===void 0,Qm=e=>Array.isArray(e)?e.filter(Boolean):[],Bm=e=>Qm(e.replace(/["|']|\]/g,"").split(/\.|\[/)),ye=(e,t,a)=>{if(!t||!St(e))return a;const u=(bc(t)?[t]:Bm(t)).reduce((s,c)=>sn(s)?void 0:s[c],e);return ft(u)||u===e?ft(e[t])?a:e[t]:u},ia=e=>typeof e=="boolean",Zn=e=>typeof e=="function",rt=(e,t,a)=>{let r=-1;const u=bc(t)?[t]:Bm(t),s=u.length,c=s-1;for(;++r<s;){const d=u[r];let p=a;if(r!==c){const m=e[d];p=St(m)||Array.isArray(m)?m:isNaN(+u[r+1])?{}:[]}if(d==="__proto__"||d==="constructor"||d==="prototype")return;e[d]=p,e=e[d]}};const Yr={BLUR:"blur",FOCUS_OUT:"focusout",SUBMIT:"submit",TRIGGER:"trigger",VALID:"valid"},Hn={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Bn={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},mh="form",bk="root",QM=Jt.createContext(null);QM.displayName="HookFormControlContext";var BM=(e,t,a,r=!0)=>{const u={defaultValues:t._defaultValues};for(const s in e)Object.defineProperty(u,s,{get:()=>{const c=s;return t._proxyFormState[c]!==Hn.all&&(t._proxyFormState[c]=!r||Hn.all),e[c]}});return u};const IM=typeof window<"u"?Jt.useLayoutEffect:Jt.useEffect;var Yt=e=>typeof e=="string",ZM=(e,t,a,r,u)=>Yt(e)?(r&&t.watch.add(e),ye(a,e,u)):Array.isArray(e)?e.map(s=>(r&&t.watch.add(s),ye(a,s))):(r&&(t.watchAll=!0),a),Ph=e=>sn(e)||!gk(e);function Ca(e,t,a=new WeakSet){if(e===t)return!0;if(Ph(e)||Ph(t))return Object.is(e,t);if(Ki(e)&&Ki(t))return Object.is(e.getTime(),t.getTime());const r=Object.keys(e),u=Object.keys(t);if(r.length!==u.length)return!1;if(a.has(e)||a.has(t))return!0;a.add(e),a.add(t);for(const s of r){const c=e[s];if(!(s in t))return!1;if(s!=="ref"){const d=t[s];if(Ki(c)&&Ki(d)||(St(c)||Array.isArray(c))&&(St(d)||Array.isArray(d))?!Ca(c,d,a):!Object.is(c,d))return!1}}return!0}const HM=Jt.createContext(null);HM.displayName="HookFormContext";var $M=(e,t,a,r,u)=>t?{...a[e],types:{...a[e]&&a[e].types?a[e].types:{},[r]:u||!0}}:{},Zu=e=>Array.isArray(e)?e:[e],j0=()=>{let e=[];return{get observers(){return e},next:u=>{for(const s of e)s.next&&s.next(u)},subscribe:u=>(e.push(u),{unsubscribe:()=>{e=e.filter(s=>s!==u)}}),unsubscribe:()=>{e=[]}}};function _k(e,t){const a={};for(const r in e)if(e.hasOwnProperty(r)){const u=e[r],s=t[r];if(u&&St(u)&&s){const c=_k(u,s);St(c)&&(a[r]=c)}else e[r]&&(a[r]=s)}return a}var Gt=e=>St(e)&&!Object.keys(e).length,Im=e=>e.type==="file",Ks=e=>{if(!qm)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Sk=e=>e.type==="select-multiple",Zm=e=>e.type==="radio",GM=e=>Zm(e)||no(e),ph=e=>Ks(e)&&e.isConnected;function YM(e,t){const a=t.slice(0,-1).length;let r=0;for(;r<a;)e=ft(e)?r++:e[t[r++]];return e}function PM(e){for(const t in e)if(e.hasOwnProperty(t)&&!ft(e[t]))return!1;return!0}function wt(e,t){if(Yt(t)&&Object.prototype.hasOwnProperty.call(e,t))return delete e[t],e;const a=Array.isArray(t)?t:bc(t)?[t]:Bm(t),r=a.length===1?e:YM(e,a),u=a.length-1,s=a[u];return r&&delete r[s],u!==0&&(St(r)&&Gt(r)||Array.isArray(r)&&PM(r))&&wt(e,a.slice(0,-1)),e}var XM=e=>{for(const t in e)if(Zn(e[t]))return!0;return!1};function kk(e){return Array.isArray(e)||St(e)&&!XM(e)}function Xh(e,t={}){for(const a in e){const r=e[a];kk(r)?(t[a]=Array.isArray(r)?[]:{},Xh(r,t[a])):ft(r)||(t[a]=!0)}return t}function Vu(e,t,a){a||(a=Xh(t));for(const r in e){const u=e[r];if(kk(u))ft(t)||Ph(a[r])?a[r]=Xh(u,Array.isArray(u)?[]:{}):Vu(u,sn(t)?{}:t[r],a[r]);else{const s=t[r];a[r]=!Ca(u,s)}}return a}const M0={value:!1,isValid:!1},F0={value:!0,isValid:!0};var Ek=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(a=>a&&a.checked&&!a.disabled).map(a=>a.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!ft(e[0].attributes.value)?ft(e[0].value)||e[0].value===""?F0:{value:e[0].value,isValid:!0}:F0:M0}return M0},Nk=(e,{valueAsNumber:t,valueAsDate:a,setValueAs:r})=>ft(e)?e:t?e===""?NaN:e&&+e:a&&Yt(e)?new Date(e):r?r(e):e;const V0={isValid:!1,value:null};var Tk=e=>Array.isArray(e)?e.reduce((t,a)=>a&&a.checked&&!a.disabled?{isValid:!0,value:a.value}:t,V0):V0;function U0(e){const t=e.ref;return Im(t)?t.files:Zm(t)?Tk(e.refs).value:Sk(t)?[...t.selectedOptions].map(({value:a})=>a):no(t)?Ek(e.refs).value:Nk(ft(t.value)?e.ref.value:t.value,e)}var JM=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,KM=(e,t,a,r)=>{const u={};for(const s of e){const c=ye(t,s);c&&rt(u,s,c._f)}return{criteriaMode:a,names:[...e],fields:u,shouldUseNativeValidation:r}},Ws=e=>e instanceof RegExp,zu=e=>ft(e)?e:Ws(e)?e.source:St(e)?Ws(e.value)?e.value.source:e.value:e,L0=e=>({isOnSubmit:!e||e===Hn.onSubmit,isOnBlur:e===Hn.onBlur,isOnChange:e===Hn.onChange,isOnAll:e===Hn.all,isOnTouch:e===Hn.onTouched});const q0="AsyncFunction";var WM=e=>!!e&&!!e.validate&&!!(Zn(e.validate)&&e.validate.constructor.name===q0||St(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===q0)),e2=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),Q0=(e,t,a)=>!a&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const Hu=(e,t,a,r)=>{for(const u of a||Object.keys(e)){const s=ye(e,u);if(s){const{_f:c,...d}=s;if(c){if(c.refs&&c.refs[0]&&t(c.refs[0],u)&&!r)return!0;if(c.ref&&t(c.ref,c.name)&&!r)return!0;if(Hu(d,t))break}else if(St(d)&&Hu(d,t))break}}};function B0(e,t,a){const r=ye(e,a);if(r||bc(a))return{error:r,name:a};const u=a.split(".");for(;u.length;){const s=u.join("."),c=ye(t,s),d=ye(e,s);if(c&&!Array.isArray(c)&&a!==s)return{name:a};if(d&&d.type)return{name:s,error:d};if(d&&d.root&&d.root.type)return{name:`${s}.root`,error:d.root};u.pop()}return{name:a}}var t2=(e,t,a,r)=>{a(e);const{name:u,...s}=e;return Gt(s)||Object.keys(s).length>=Object.keys(t).length||Object.keys(s).find(c=>t[c]===(!r||Hn.all))},n2=(e,t,a)=>!e||!t||e===t||Zu(e).some(r=>r&&(a?r===t:r.startsWith(t)||t.startsWith(r))),a2=(e,t,a,r,u)=>u.isOnAll?!1:!a&&u.isOnTouch?!(t||e):(a?r.isOnBlur:u.isOnBlur)?!e:(a?r.isOnChange:u.isOnChange)?e:!0,i2=(e,t)=>!Qm(ye(e,t)).length&&wt(e,t),r2=(e,t,a)=>{const r=Zu(ye(e,a));return rt(r,bk,t[a]),rt(e,a,r),e};function I0(e,t,a="validate"){if(Yt(e)||Array.isArray(e)&&e.every(Yt)||ia(e)&&!e)return{type:a,message:Yt(e)?e:"",ref:t}}var Pr=e=>St(e)&&!Ws(e)?e:{value:e,message:""},Z0=async(e,t,a,r,u,s)=>{const{ref:c,refs:d,required:p,maxLength:m,minLength:v,min:y,max:b,pattern:_,validate:E,name:T,valueAsNumber:D,mount:N}=e._f,w=ye(a,T);if(!N||t.has(T))return{};const O=d?d[0]:c,M=le=>{u&&O.reportValidity&&(O.setCustomValidity(ia(le)?"":le||""),O.reportValidity())},z={},Z=Zm(c),$=no(c),W=Z||$,se=(D||Im(c))&&ft(c.value)&&ft(w)||Ks(c)&&c.value===""||w===""||Array.isArray(w)&&!w.length,Ne=$M.bind(null,T,r,z),Be=(le,fe,ee,ce=Bn.maxLength,U=Bn.minLength)=>{const P=le?fe:ee;z[T]={type:le?ce:U,message:P,ref:c,...Ne(le?ce:U,P)}};if(s?!Array.isArray(w)||!w.length:p&&(!W&&(se||sn(w))||ia(w)&&!w||$&&!Ek(d).isValid||Z&&!Tk(d).isValid)){const{value:le,message:fe}=Yt(p)?{value:!!p,message:p}:Pr(p);if(le&&(z[T]={type:Bn.required,message:fe,ref:O,...Ne(Bn.required,fe)},!r))return M(fe),z}if(!se&&(!sn(y)||!sn(b))){let le,fe;const ee=Pr(b),ce=Pr(y);if(!sn(w)&&!isNaN(w)){const U=c.valueAsNumber||w&&+w;sn(ee.value)||(le=U>ee.value),sn(ce.value)||(fe=U<ce.value)}else{const U=c.valueAsDate||new Date(w),P=ve=>new Date(new Date().toDateString()+" "+ve),ie=c.type=="time",me=c.type=="week";Yt(ee.value)&&w&&(le=ie?P(w)>P(ee.value):me?w>ee.value:U>new Date(ee.value)),Yt(ce.value)&&w&&(fe=ie?P(w)<P(ce.value):me?w<ce.value:U<new Date(ce.value))}if((le||fe)&&(Be(!!le,ee.message,ce.message,Bn.max,Bn.min),!r))return M(z[T].message),z}if((m||v)&&!se&&(Yt(w)||s&&Array.isArray(w))){const le=Pr(m),fe=Pr(v),ee=!sn(le.value)&&w.length>+le.value,ce=!sn(fe.value)&&w.length<+fe.value;if((ee||ce)&&(Be(ee,le.message,fe.message),!r))return M(z[T].message),z}if(_&&!se&&Yt(w)){const{value:le,message:fe}=Pr(_);if(Ws(le)&&!w.match(le)&&(z[T]={type:Bn.pattern,message:fe,ref:c,...Ne(Bn.pattern,fe)},!r))return M(fe),z}if(E){if(Zn(E)){const le=await E(w,a),fe=I0(le,O);if(fe&&(z[T]={...fe,...Ne(Bn.validate,fe.message)},!r))return M(fe.message),z}else if(St(E)){let le={};for(const fe in E){if(!Gt(le)&&!r)break;const ee=I0(await E[fe](w,a),O,fe);ee&&(le={...ee,...Ne(fe,ee.message)},M(ee.message),r&&(z[T]=le))}if(!Gt(le)&&(z[T]={ref:O,...le},!r))return z}}return M(!0),z};const l2={mode:Hn.onSubmit,reValidateMode:Hn.onChange,shouldFocusError:!0};function u2(e={}){let t={...l2,...e},a={submitCount:0,isDirty:!1,isReady:!1,isLoading:Zn(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},u=St(t.defaultValues)||St(t.values)?At(t.defaultValues||t.values)||{}:{},s=t.shouldUnregister?{}:At(u),c={action:!1,mount:!1,watch:!1,keepIsValid:!1},d={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set,registerName:new Set},p,m=0;const v={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},y={...v};let b={...y};const _={array:j0(),state:j0()},E=t.criteriaMode===Hn.all,T=R=>L=>{clearTimeout(m),m=setTimeout(R,L)},D=async R=>{if(!c.keepIsValid&&!t.disabled&&(y.isValid||b.isValid||R)){let L;t.resolver?(L=Gt((await se()).errors),N()):L=await le({fields:r,onlyCheckValid:!0,eventType:Yr.VALID}),L!==a.isValid&&_.state.next({isValid:L})}},N=(R,L)=>{!t.disabled&&(y.isValidating||y.validatingFields||b.isValidating||b.validatingFields)&&((R||Array.from(d.mount)).forEach(I=>{I&&(L?rt(a.validatingFields,I,L):wt(a.validatingFields,I))}),_.state.next({validatingFields:a.validatingFields,isValidating:!Gt(a.validatingFields)}))},w=R=>{const L=Vu(u,s),I=JM(R);rt(a.dirtyFields,I,ye(L,I))},O=(R,L=[],I,ue,re=!0,te=!0)=>{if(ue&&I&&!t.disabled){if(c.action=!0,te&&Array.isArray(ye(r,R))){const he=I(ye(r,R),ue.argA,ue.argB);re&&rt(r,R,he)}if(te&&Array.isArray(ye(a.errors,R))){const he=I(ye(a.errors,R),ue.argA,ue.argB);re&&rt(a.errors,R,he),i2(a.errors,R)}if((y.touchedFields||b.touchedFields)&&te&&Array.isArray(ye(a.touchedFields,R))){const he=I(ye(a.touchedFields,R),ue.argA,ue.argB);re&&rt(a.touchedFields,R,he)}(y.dirtyFields||b.dirtyFields)&&w(R),_.state.next({name:R,isDirty:ee(R,L),dirtyFields:a.dirtyFields,errors:a.errors,isValid:a.isValid})}else rt(s,R,L)},M=(R,L)=>{rt(a.errors,R,L),_.state.next({errors:a.errors})},z=R=>{a.errors=R,_.state.next({errors:a.errors,isValid:!1})},Z=(R,L,I,ue)=>{const re=ye(r,R);if(re){const te=ye(s,R,ft(I)?ye(u,R):I);ft(te)||ue&&ue.defaultChecked||L?rt(s,R,L?te:U0(re._f)):P(R,te),c.mount&&!c.action&&D()}},$=(R,L,I,ue,re)=>{let te=!1,he=!1;const we={name:R};if(!t.disabled){if(!I||ue){(y.isDirty||b.isDirty)&&(he=a.isDirty,a.isDirty=we.isDirty=ee(),te=he!==we.isDirty);const Le=Ca(ye(u,R),L);he=!!ye(a.dirtyFields,R),Le?wt(a.dirtyFields,R):rt(a.dirtyFields,R,!0),we.dirtyFields=a.dirtyFields,te=te||(y.dirtyFields||b.dirtyFields)&&he!==!Le}if(I){const Le=ye(a.touchedFields,R);Le||(rt(a.touchedFields,R,I),we.touchedFields=a.touchedFields,te=te||(y.touchedFields||b.touchedFields)&&Le!==I)}te&&re&&_.state.next(we)}return te?we:{}},W=(R,L,I,ue)=>{const re=ye(a.errors,R),te=(y.isValid||b.isValid)&&ia(L)&&a.isValid!==L;if(t.delayError&&I?(p=T(()=>M(R,I)),p(t.delayError)):(clearTimeout(m),p=null,I?rt(a.errors,R,I):wt(a.errors,R)),(I?!Ca(re,I):re)||!Gt(ue)||te){const he={...ue,...te&&ia(L)?{isValid:L}:{},errors:a.errors,name:R};a={...a,...he},_.state.next(he)}},se=async R=>(N(R,!0),await t.resolver(s,t.context,KM(R||d.mount,r,t.criteriaMode,t.shouldUseNativeValidation))),Ne=async R=>{const{errors:L}=await se(R);if(N(R),R)for(const I of R){const ue=ye(L,I);ue?rt(a.errors,I,ue):wt(a.errors,I)}else a.errors=L;return L},Be=async({name:R,eventType:L})=>{if(e.validate){const I=await e.validate({formValues:s,formState:a,name:R,eventType:L});if(St(I))for(const ue in I)I[ue]&&_e(`${mh}.${ue}`,{message:Yt(I.message)?I.message:"",type:Bn.validate});else Yt(I)||!I?_e(mh,{message:I||"",type:Bn.validate}):ge(mh);return I}return!0},le=async({fields:R,onlyCheckValid:L,name:I,eventType:ue,context:re={valid:!0,runRootValidation:!1}})=>{if(e.validate&&(re.runRootValidation=!0,!await Be({name:I,eventType:ue})&&(re.valid=!1,L)))return re.valid;for(const te in R){const he=R[te];if(he){const{_f:we,...Le}=he;if(we){const Ft=d.array.has(we.name),Ht=he._f&&WM(he._f);Ht&&y.validatingFields&&N([we.name],!0);const Xe=await Z0(he,d.disabled,s,E,t.shouldUseNativeValidation&&!L,Ft);if(Ht&&y.validatingFields&&N([we.name]),Xe[we.name]&&(re.valid=!1,L)||(!L&&(ye(Xe,we.name)?Ft?r2(a.errors,Xe,we.name):rt(a.errors,we.name,Xe[we.name]):wt(a.errors,we.name)),e.shouldUseNativeValidation&&Xe[we.name]))break}!Gt(Le)&&await le({context:re,onlyCheckValid:L,fields:Le,name:te,eventType:ue})}}return re.valid},fe=()=>{for(const R of d.unMount){const L=ye(r,R);L&&(L._f.refs?L._f.refs.every(I=>!ph(I)):!ph(L._f.ref))&&sa(R)}d.unMount=new Set},ee=(R,L)=>!t.disabled&&(R&&L&&rt(s,R,L),!Ca(ae(),u)),ce=(R,L,I)=>ZM(R,d,{...c.mount?s:ft(L)?u:Yt(R)?{[R]:L}:L},I,L),U=R=>Qm(ye(c.mount?s:u,R,t.shouldUnregister?ye(u,R,[]):[])),P=(R,L,I={})=>{const ue=ye(r,R);let re=L;if(ue){const te=ue._f;te&&(!te.disabled&&rt(s,R,Nk(L,te)),re=Ks(te.ref)&&sn(L)?"":L,Sk(te.ref)?[...te.ref.options].forEach(he=>he.selected=re.includes(he.value)):te.refs?no(te.ref)?te.refs.forEach(he=>{(!he.defaultChecked||!he.disabled)&&(Array.isArray(re)?he.checked=!!re.find(we=>we===he.value):he.checked=re===he.value||!!re)}):te.refs.forEach(he=>he.checked=he.value===re):Im(te.ref)?te.ref.value="":(te.ref.value=re,te.ref.type||_.state.next({name:R,values:At(s)})))}(I.shouldDirty||I.shouldTouch)&&$(R,re,I.shouldTouch,I.shouldDirty,!0),I.shouldValidate&&G(R)},ie=(R,L,I)=>{for(const ue in L){if(!L.hasOwnProperty(ue))return;const re=L[ue],te=R+"."+ue,he=ye(r,te);(d.array.has(R)||St(re)||he&&!he._f)&&!Ki(re)?ie(te,re,I):P(te,re,I)}},me=(R,L,I={})=>{const ue=ye(r,R),re=d.array.has(R),te=At(L),he=ye(s,R),we=Ca(he,te);if(rt(s,R,te),re)_.array.next({name:R,values:At(s)}),I.shouldDirty&&(w(R),_.state.next({name:R,dirtyFields:a.dirtyFields,isDirty:ee(R,te)}));else{const Le=Array.isArray(te)&&!te.length||Gt(te);!ue||ue._f||sn(te)||Le?P(R,te,I):ie(R,te,I)}we||(Q0(R,d)?_.state.next({...a,name:R,values:At(s)}):_.state.next({name:c.mount?R:void 0,values:At(s)}))},ve=async R=>{c.mount=!0;const L=R.target;let I=L.name,ue=!0;const re=ye(r,I),te=Le=>{ue=Number.isNaN(Le)||Ki(Le)&&isNaN(Le.getTime())||Ca(Le,ye(s,I,Le))},he=L0(t.mode),we=L0(t.reValidateMode);if(re){let Le,Ft;const Ht=L.type?U0(re._f):UM(R),Xe=R.type===Yr.BLUR||R.type===Yr.FOCUS_OUT,Kn=!e2(re._f)&&!e.validate&&!t.resolver&&!ye(a.errors,I)&&!re._f.deps||a2(Xe,ye(a.touchedFields,I),a.isSubmitted,we,he),Vt=Q0(I,d,Xe);rt(s,I,Ht),Xe?(!L||!L.readOnly)&&(re._f.onBlur&&re._f.onBlur(R),p&&p(0)):re._f.onChange&&re._f.onChange(R);const zl=$(I,Ht,Xe),Sc=!Gt(zl)||Vt;if(!Xe&&_.state.next({name:I,type:R.type,values:At(s)}),Kn)return(y.isValid||b.isValid)&&(t.mode==="onBlur"?Xe&&D():Xe||D()),Sc&&_.state.next({name:I,...Vt?{}:zl});if(!t.resolver&&e.validate&&await Be({name:I,eventType:R.type}),!Xe&&Vt&&_.state.next({...a}),t.resolver){const{errors:lo}=await se([I]);if(N([I]),te(Ht),ue){const or=B0(a.errors,r,I),Di=B0(lo,r,or.name||I);Le=Di.error,I=Di.name,Ft=Gt(lo)}}else N([I],!0),Le=(await Z0(re,d.disabled,s,E,t.shouldUseNativeValidation))[I],N([I]),te(Ht),ue&&(Le?Ft=!1:(y.isValid||b.isValid)&&(Ft=await le({fields:r,onlyCheckValid:!0,name:I,eventType:R.type})));ue&&(re._f.deps&&(!Array.isArray(re._f.deps)||re._f.deps.length>0)&&G(re._f.deps),W(I,Ft,Le,zl))}},A=(R,L)=>{if(ye(a.errors,L)&&R.focus)return R.focus(),1},G=async(R,L={})=>{let I,ue;const re=Zu(R);if(t.resolver){const te=await Ne(ft(R)?R:re);I=Gt(te),ue=R?!re.some(he=>ye(te,he)):I}else R?(ue=(await Promise.all(re.map(async te=>{const he=ye(r,te);return await le({fields:he&&he._f?{[te]:he}:he,eventType:Yr.TRIGGER})}))).every(Boolean),!(!ue&&!a.isValid)&&D()):ue=I=await le({fields:r,name:R,eventType:Yr.TRIGGER});return _.state.next({...!Yt(R)||(y.isValid||b.isValid)&&I!==a.isValid?{}:{name:R},...t.resolver||!R?{isValid:I}:{},errors:a.errors}),L.shouldFocus&&!ue&&Hu(r,A,R?re:d.mount),ue},ae=(R,L)=>{let I={...c.mount?s:u};return L&&(I=_k(L.dirtyFields?a.dirtyFields:a.touchedFields,I)),ft(R)?I:Yt(R)?ye(I,R):R.map(ue=>ye(I,ue))},oe=(R,L)=>({invalid:!!ye((L||a).errors,R),isDirty:!!ye((L||a).dirtyFields,R),error:ye((L||a).errors,R),isValidating:!!ye(a.validatingFields,R),isTouched:!!ye((L||a).touchedFields,R)}),ge=R=>{const L=R?Zu(R):void 0;L==null||L.forEach(I=>wt(a.errors,I)),L?L.forEach(I=>{_.state.next({name:I,errors:a.errors})}):_.state.next({errors:{}})},_e=(R,L,I)=>{const ue=(ye(r,R,{_f:{}})._f||{}).ref,re=ye(a.errors,R)||{},{ref:te,message:he,type:we,...Le}=re;rt(a.errors,R,{...Le,...L,ref:ue}),_.state.next({name:R,errors:a.errors,isValid:!1}),I&&I.shouldFocus&&ue&&ue.focus&&ue.focus()},qe=(R,L)=>Zn(R)?_.state.subscribe({next:I=>"values"in I&&R(I.values||ce(void 0,L),I)}):ce(R,L,!0),kt=R=>_.state.subscribe({next:L=>{if(n2(R.name,L.name,R.exact)&&t2(L,R.formState||y,Al,R.reRenderRoot)){const I={...s};R.callback({values:I,...a,...L,defaultValues:u})}}}).unsubscribe,ct=R=>(c.mount=!0,b={...b,...R.formState},kt({...R,formState:{...v,...R.formState}})),sa=(R,L={})=>{for(const I of R?Zu(R):d.mount)d.mount.delete(I),d.array.delete(I),L.keepValue||(wt(r,I),wt(s,I)),!L.keepError&&wt(a.errors,I),!L.keepDirty&&wt(a.dirtyFields,I),!L.keepTouched&&wt(a.touchedFields,I),!L.keepIsValidating&&wt(a.validatingFields,I),!t.shouldUnregister&&!L.keepDefaultValue&&wt(u,I);_.state.next({values:At(s)}),_.state.next({...a,...L.keepDirty?{isDirty:ee()}:{}}),!L.keepIsValid&&D()},Oi=({disabled:R,name:L})=>{if(ia(R)&&c.mount||R||d.disabled.has(L)){const re=d.disabled.has(L)!==!!R;R?d.disabled.add(L):d.disabled.delete(L),re&&c.mount&&!c.action&&D()}},wi=(R,L={})=>{let I=ye(r,R);const ue=ia(L.disabled)||ia(t.disabled),re=!d.registerName.has(R)&&I&&I._f&&!I._f.mount;return rt(r,R,{...I||{},_f:{...I&&I._f?I._f:{ref:{name:R}},name:R,mount:!0,...L}}),d.mount.add(R),I&&!re?Oi({disabled:ia(L.disabled)?L.disabled:t.disabled,name:R}):Z(R,!0,L.value),{...ue?{disabled:L.disabled||t.disabled}:{},...t.progressive?{required:!!L.required,min:zu(L.min),max:zu(L.max),minLength:zu(L.minLength),maxLength:zu(L.maxLength),pattern:zu(L.pattern)}:{},name:R,onChange:ve,onBlur:ve,ref:te=>{if(te){d.registerName.add(R),wi(R,L),d.registerName.delete(R),I=ye(r,R);const he=ft(te.value)&&te.querySelectorAll&&te.querySelectorAll("input,select,textarea")[0]||te,we=GM(he),Le=I._f.refs||[];if(we?Le.find(Ft=>Ft===he):he===I._f.ref)return;rt(r,R,{_f:{...I._f,...we?{refs:[...Le.filter(ph),he,...Array.isArray(ye(u,R))?[{}]:[]],ref:{type:he.type,name:R}}:{ref:he}}}),Z(R,!1,void 0,he)}else I=ye(r,R,{}),I._f&&(I._f.mount=!1),(t.shouldUnregister||L.shouldUnregister)&&!(LM(d.array,R)&&c.action)&&d.unMount.add(R)}}},lr=()=>t.shouldFocusError&&Hu(r,A,d.mount),ca=R=>{ia(R)&&(_.state.next({disabled:R}),Hu(r,(L,I)=>{const ue=ye(r,I);ue&&(L.disabled=ue._f.disabled||R,Array.isArray(ue._f.refs)&&ue._f.refs.forEach(re=>{re.disabled=ue._f.disabled||R}))},0,!1))},ur=(R,L)=>async I=>{let ue;I&&(I.preventDefault&&I.preventDefault(),I.persist&&I.persist());let re=At(s);if(_.state.next({isSubmitting:!0}),t.resolver){const{errors:te,values:he}=await se();N(),a.errors=te,re=At(he)}else await le({fields:r,eventType:Yr.SUBMIT});if(d.disabled.size)for(const te of d.disabled)wt(re,te);if(wt(a.errors,bk),Gt(a.errors)){_.state.next({errors:{}});try{await R(re,I)}catch(te){ue=te}}else L&&await L({...a.errors},I),lr(),setTimeout(lr);if(_.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Gt(a.errors)&&!ue,submitCount:a.submitCount+1,errors:a.errors}),ue)throw ue},Dl=(R,L={})=>{ye(r,R)&&(ft(L.defaultValue)?me(R,At(ye(u,R))):(me(R,L.defaultValue),rt(u,R,At(L.defaultValue))),L.keepTouched||wt(a.touchedFields,R),L.keepDirty||(wt(a.dirtyFields,R),a.isDirty=L.defaultValue?ee(R,At(ye(u,R))):ee()),L.keepError||(wt(a.errors,R),y.isValid&&D()),_.state.next({...a}))},ao=(R,L={})=>{const I=R?At(R):u,ue=At(I),re=Gt(R),te=re?u:ue;if(L.keepDefaultValues||(u=I),!L.keepValues){if(L.keepDirtyValues){const he=new Set([...d.mount,...Object.keys(Vu(u,s))]);for(const we of Array.from(he)){const Le=ye(a.dirtyFields,we),Ft=ye(s,we),Ht=ye(te,we);Le&&!ft(Ft)?rt(te,we,Ft):!Le&&!ft(Ht)&&me(we,Ht)}}else{if(qm&&ft(R))for(const he of d.mount){const we=ye(r,he);if(we&&we._f){const Le=Array.isArray(we._f.refs)?we._f.refs[0]:we._f.ref;if(Ks(Le)){const Ft=Le.closest("form");if(Ft){Ft.reset();break}}}}if(L.keepFieldsRef)for(const he of d.mount)me(he,ye(te,he));else r={}}s=t.shouldUnregister?L.keepDefaultValues?At(u):{}:At(te),_.array.next({values:{...te}}),_.state.next({values:{...te}})}d={mount:L.keepDirtyValues?d.mount:new Set,unMount:new Set,array:new Set,registerName:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},c.mount=!y.isValid||!!L.keepIsValid||!!L.keepDirtyValues||!t.shouldUnregister&&!Gt(te),c.watch=!!t.shouldUnregister,c.keepIsValid=!!L.keepIsValid,c.action=!1,L.keepErrors||(a.errors={}),_.state.next({submitCount:L.keepSubmitCount?a.submitCount:0,isDirty:re?!1:L.keepDirty?a.isDirty:!!(L.keepDefaultValues&&!Ca(R,u)),isSubmitted:L.keepIsSubmitted?a.isSubmitted:!1,dirtyFields:re?{}:L.keepDirtyValues?L.keepDefaultValues&&s?Vu(u,s):a.dirtyFields:L.keepDefaultValues&&R?Vu(u,R):L.keepDirty?a.dirtyFields:{},touchedFields:L.keepTouched?a.touchedFields:{},errors:L.keepErrors?a.errors:{},isSubmitSuccessful:L.keepIsSubmitSuccessful?a.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:u})},xl=(R,L)=>ao(Zn(R)?R(s):R,{...t.resetOptions,...L}),Rl=(R,L={})=>{const I=ye(r,R),ue=I&&I._f;if(ue){const re=ue.refs?ue.refs[0]:ue.ref;re.focus&&setTimeout(()=>{re.focus(),L.shouldSelect&&Zn(re.select)&&re.select()})}},Al=R=>{a={...a,...R}},ro={control:{register:wi,unregister:sa,getFieldState:oe,handleSubmit:ur,setError:_e,_subscribe:kt,_runSchema:se,_updateIsValidating:N,_focusError:lr,_getWatch:ce,_getDirty:ee,_setValid:D,_setFieldArray:O,_setDisabledField:Oi,_setErrors:z,_getFieldArray:U,_reset:ao,_resetDefaultValues:()=>Zn(t.defaultValues)&&t.defaultValues().then(R=>{xl(R,t.resetOptions),_.state.next({isLoading:!1})}),_removeUnmounted:fe,_disableForm:ca,_subjects:_,_proxyFormState:y,get _fields(){return r},get _formValues(){return s},get _state(){return c},set _state(R){c=R},get _defaultValues(){return u},get _names(){return d},set _names(R){d=R},get _formState(){return a},get _options(){return t},set _options(R){t={...t,...R}}},subscribe:ct,trigger:G,register:wi,handleSubmit:ur,watch:qe,setValue:me,getValues:ae,reset:xl,resetField:Dl,clearErrors:ge,unregister:sa,setError:_e,setFocus:Rl,getFieldState:oe};return{...ro,formControl:ro}}function _c(e={}){const t=Jt.useRef(void 0),a=Jt.useRef(void 0),[r,u]=Jt.useState({isDirty:!1,isValidating:!1,isLoading:Zn(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:Zn(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:r},e.defaultValues&&!Zn(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:c,...d}=u2(e);t.current={...d,formState:r}}const s=t.current.control;return s._options=e,IM(()=>{const c=s._subscribe({formState:s._proxyFormState,callback:()=>u({...s._formState}),reRenderRoot:!0});return u(d=>({...d,isReady:!0})),s._formState.isReady=!0,c},[s]),Jt.useEffect(()=>s._disableForm(e.disabled),[s,e.disabled]),Jt.useEffect(()=>{e.mode&&(s._options.mode=e.mode),e.reValidateMode&&(s._options.reValidateMode=e.reValidateMode)},[s,e.mode,e.reValidateMode]),Jt.useEffect(()=>{e.errors&&(s._setErrors(e.errors),s._focusError())},[s,e.errors]),Jt.useEffect(()=>{e.shouldUnregister&&s._subjects.state.next({values:s._getWatch()})},[s,e.shouldUnregister]),Jt.useEffect(()=>{if(s._proxyFormState.isDirty){const c=s._getDirty();c!==r.isDirty&&s._subjects.state.next({isDirty:c})}},[s,r.isDirty]),Jt.useEffect(()=>{var c;e.values&&!Ca(e.values,a.current)?(s._reset(e.values,{keepFieldsRef:!0,...s._options.resetOptions}),!((c=s._options.resetOptions)===null||c===void 0)&&c.keepIsValid||s._setValid(),a.current=e.values,u(d=>({...d}))):s._resetDefaultValues()},[s,e.values]),Jt.useEffect(()=>{s._state.mount||(s._setValid(),s._state.mount=!0),s._state.watch&&(s._state.watch=!1,s._subjects.state.next({...s._formState})),s._removeUnmounted()}),t.current.formState=Jt.useMemo(()=>BM(r,s),[s,r]),t.current}function o2({fields:e,values:t,saving:a,onValueChange:r,onSubmit:u}){return S.jsx("section",{className:"card",children:S.jsxs("form",{className:"form-stack",onSubmit:s=>{s.preventDefault(),u()},children:[e.map(s=>S.jsxs("label",{className:"field",children:[S.jsx("span",{className:"field-label",children:s.label}),S.jsx("textarea",{className:"input",rows:3,value:t[s.key]??"",onChange:c=>r(s.key,c.target.value)})]},s.key)),S.jsx("button",{type:"submit",className:"btn primary",disabled:a,children:a?"Saving…":"Save"})]})})}function s2(){var m;const e=kn(Qj,{fetchPolicy:"cache-and-network"}),[t,a]=Gn($j,{onCompleted:()=>{je.success("GitHub settings saved.")},onError:v=>{je.error(`Save failed: ${fn(v)}`)}}),{handleSubmit:r,reset:u,setValue:s,watch:c}=_c({defaultValues:{}}),d=((m=e.data)==null?void 0:m.githubFields)??null;F.useEffect(()=>{if(!d||d.disabled)return;const v={};for(const y of d.fields)v[y.key]=y.value;u(v)},[d,u]);const p=async v=>{await t({variables:{input:v}})};return e.loading&&!d&&!e.error?S.jsxs("div",{className:"stack",children:[S.jsx("h1",{children:"GitHub"}),S.jsx("p",{className:"muted",children:"Loading…"})]}):e.error?S.jsxs("div",{className:"stack",children:[S.jsx("h1",{children:"GitHub"}),S.jsx("p",{className:"text-danger",children:fn(e.error)})]}):d!=null&&d.disabled?S.jsxs("div",{className:"stack",children:[S.jsx("h1",{children:"GitHub"}),S.jsx("p",{className:"muted",children:"GitHub source is not active for this process."})]}):S.jsxs("div",{className:"stack",children:[S.jsx("h1",{children:"GitHub"}),S.jsx(o2,{fields:(d==null?void 0:d.fields)??[],values:c(),saving:a.loading,onValueChange:(v,y)=>s(v,y,{shouldDirty:!0}),onSubmit:()=>{r(v=>{p(v)})()}})]})}const Jh="optimistic:";function c2(){return typeof crypto<"u"&&"randomUUID"in crypto?`${Jh}${crypto.randomUUID()}`:`${Jh}${Date.now()}`}function f2(e,t){const a=e.find(s=>s.id===t.id)??e.find(s=>s.githubRepo===t.githubRepo),r=e.filter(s=>!(s.id===t.id||s.id.startsWith(Jh)&&s.githubRepo===t.githubRepo&&s.id!==t.id)),u=(a==null?void 0:a.createdAt)!=null&&typeof a.createdAt=="string"?a.createdAt:new Date().toISOString();return[...r,{__typename:"MappingGql",id:t.id,githubRepo:t.githubRepo,vibeKanbanRepoId:t.vibeKanbanRepoId,createdAt:u,updatedAt:new Date().toISOString()}]}function d2({message:e,onReloadPage:t}){return S.jsxs("section",{className:"card",children:[S.jsxs("p",{className:"text-danger",children:["Could not load Kanban repositories: ",e]}),S.jsx("button",{type:"button",className:"btn ghost",onClick:t,children:"Reload page"})]})}function h2({row:e,deleteBusy:t,onRequestDelete:a}){return S.jsxs("tr",{children:[S.jsx("td",{children:S.jsx("code",{children:e.githubRepo})}),S.jsx("td",{children:S.jsx("code",{children:e.vibeKanbanRepoId})}),S.jsx("td",{className:"table-actions",children:S.jsx("button",{type:"button",className:"btn danger ghost",disabled:t,onClick:a,children:t?"Deleting…":"Delete"})})]})}function m2({rows:e,listInitialLoading:t,listErrorMessage:a,showEmptyHint:r,deleteBusy:u,onRequestDelete:s}){return S.jsxs("section",{className:"card mappings-existing-card",children:[S.jsx("h2",{children:"Existing"}),t?S.jsx("p",{className:"muted",children:"Loading mappings…"}):null,a?S.jsxs("p",{className:"text-danger",children:["Failed to load mappings: ",a]}):null,r?S.jsx("p",{className:"muted",children:"No mappings yet. Add one above to route GitHub PRs to a Kanban repository."}):null,e.length>0?S.jsxs("table",{className:"data-table",children:[S.jsx("thead",{children:S.jsxs("tr",{children:[S.jsx("th",{children:"GitHub repo"}),S.jsx("th",{children:"Kanban repo"}),S.jsx("th",{})]})}),S.jsx("tbody",{children:e.map(c=>S.jsx(h2,{row:c,deleteBusy:u,onRequestDelete:()=>{confirm("Delete this mapping?")&&s(c.id)}},c.id))})]}):null]})}function p2({value:e,options:t,loading:a,onChange:r}){return S.jsxs("label",{className:"field",children:[S.jsx("span",{className:"field-label",children:"Kanban repository"}),S.jsxs("select",{className:"input",value:e,onChange:u=>r(u.target.value),disabled:a,children:[S.jsx("option",{value:"",children:a?"Loading…":"Select…"}),t.map(u=>S.jsx("option",{value:u.id,children:u.name??u.id},u.id))]})]})}function v2({githubRepo:e,vkRepoId:t,vkRepos:a,vkReposLoading:r,upserting:u,onGithubRepoChange:s,onVkRepoIdChange:c,onSubmit:d}){return S.jsxs("section",{className:"card",children:[S.jsx("h2",{children:"New mapping"}),S.jsxs("form",{className:"form-stack",onSubmit:p=>{p.preventDefault(),d()},children:[S.jsxs("label",{className:"field",children:[S.jsx("span",{className:"field-label",children:"GitHub repo"}),S.jsx("input",{className:"input",value:e,onChange:p=>s(p.target.value),placeholder:"owner/repo"})]}),S.jsx(p2,{value:t,options:a,loading:r,onChange:c}),S.jsx("button",{type:"submit",className:"btn primary",disabled:u,children:u?"Adding…":"Add mapping"})]})]})}function y2({titleRow:e,intro:t,vkReposError:a,newMapping:r,existingMappings:u}){return S.jsxs("div",{className:"stack",children:[e,t,a,r,u]})}function g2(){var T,D,N;const e=kn(tl,{fetchPolicy:"cache-and-network"}),t=kn(Xj,{fetchPolicy:"cache-and-network"}),a=(((T=t.data)==null?void 0:T.vibeKanbanRepos)??[]).map(w=>({id:w.id,name:w.name??void 0})),r=t.error?fn(t.error):null,u=!!(t.loading&&!t.data),{handleSubmit:s,reset:c,setValue:d,watch:p}=_c({defaultValues:{githubRepo:"",vibeKanbanRepoId:""}}),m=p(),[v,{loading:y}]=Gn(Gj,{optimisticResponse:w=>({__typename:"Mutation",upsertMapping:{__typename:"MappingGql",id:c2(),githubRepo:w.input.githubRepo,vibeKanbanRepoId:w.input.vibeKanbanRepoId}}),update(w,{data:O}){const M=O==null?void 0:O.upsertMapping;if(!M)return;const z=w.readQuery({query:tl});z&&w.writeQuery({query:tl,data:{mappings:f2(z.mappings,M)}})},onCompleted:()=>{c(),je.success("Mapping added.")},onError:w=>je.error(`Add failed: ${fn(w)}`)}),[b,{loading:_}]=Gn(qj,{optimisticResponse:()=>({__typename:"Mutation",deleteMapping:{__typename:"DeleteMappingPayload",ok:!0}}),update(w,O,{variables:M}){const z=M==null?void 0:M.id;if(z===void 0)return;const Z=w.readQuery({query:tl});Z&&w.writeQuery({query:tl,data:{mappings:Z.mappings.filter($=>$.id!==z)}})},onCompleted:()=>je.success("Mapping deleted."),onError:w=>je.error(`Delete failed: ${fn(w)}`)}),E=((D=e.data)==null?void 0:D.mappings)??[];return S.jsx(y2,{titleRow:S.jsxs("div",{className:"page-title-row",children:[S.jsx("h1",{children:"Mappings"}),S.jsx(Lm,{})]}),intro:S.jsxs("p",{className:"muted",children:["GitHub repo (",S.jsx("code",{children:"owner/repo"}),") → Vibe Kanban repository. Default Kanban ",S.jsx("strong",{children:"project"})," for new issues is set on the"," ",S.jsx("a",{href:"/vibe-kanban",children:"Vibe Kanban"})," page."]}),vkReposError:r?S.jsx(d2,{message:r,onReloadPage:()=>window.location.reload()}):null,newMapping:S.jsx(v2,{githubRepo:m.githubRepo??"",vkRepoId:m.vibeKanbanRepoId??"",vkRepos:a,vkReposLoading:u,upserting:y,onGithubRepoChange:w=>{d("githubRepo",w,{shouldDirty:!0})},onVkRepoIdChange:w=>{d("vibeKanbanRepoId",w,{shouldDirty:!0})},onSubmit:()=>{s(w=>{v({variables:{input:{githubRepo:w.githubRepo,vibeKanbanRepoId:w.vibeKanbanRepoId}}})})()}}),existingMappings:S.jsx(m2,{rows:E,listInitialLoading:!!(e.loading&&!e.data),listErrorMessage:((N=e.error)==null?void 0:N.message)??null,showEmptyHint:E.length===0&&!e.loading,deleteBusy:_,onRequestDelete:w=>{b({variables:{id:w}})}})})}function H0({checked:e,onChange:t,label:a,settingKey:r,disabled:u=!1}){return S.jsxs("label",{className:"ui-switcher",children:[S.jsxs("span",{className:"ui-switcher-copy",children:[S.jsx("span",{children:a}),r?S.jsx("span",{className:"field-key",children:r}):null]}),S.jsx("input",{className:"ui-switcher-input",type:"checkbox",checked:e,disabled:u,onChange:s=>t(s.target.checked)}),S.jsx("span",{className:"ui-switcher-track","aria-hidden":!0,children:S.jsx("span",{className:"ui-switcher-thumb"})})]})}function b2({loading:e,errorMessage:t,scheduledOn:a,autoCreate:r,onScheduledChange:u,onAutoCreateChange:s,textFields:c,texts:d,onTextChange:p,saving:m,onSubmit:v}){return S.jsxs("section",{className:"card",children:[S.jsx("h2",{children:"Kanban issue creation"}),e?S.jsx("p",{className:"muted",children:"Loading…"}):null,t?S.jsxs("p",{className:"text-danger",children:["Failed to load settings: ",t]}):null,S.jsxs("form",{className:"form-stack",onSubmit:y=>{y.preventDefault(),v()},children:[S.jsx(H0,{checked:a,onChange:u,label:"Enable scheduled sync",settingKey:"scheduled_sync_enabled"}),S.jsx(H0,{checked:r,onChange:s,label:"Auto-create issues from sync",settingKey:"auto_create_issues"}),c.map(y=>S.jsxs("label",{className:"field",children:[S.jsx("span",{className:"field-label",children:y.label}),S.jsxs("p",{className:"muted setting-field-meta",children:[S.jsx("code",{children:y.key}),y.envVar?S.jsxs(S.Fragment,{children:[" ","· env ",S.jsx("code",{children:y.envVar})]}):null]}),y.description?S.jsx("p",{className:"muted setting-field-desc",children:y.description}):null,S.jsx("input",{className:"input",name:y.key,value:d[y.key]??"",onChange:b=>p(y.key,b.target.value)})]},y.key)),S.jsx("button",{type:"submit",className:"btn primary",disabled:m,children:m?"Saving…":"Save"})]})]})}function _2({titleRow:e,settingsCard:t}){return S.jsxs("div",{className:"stack",children:[e,t]})}const S2=new Set(["poll_interval_minutes","jitter_max_seconds","run_now_cooldown_seconds","max_board_pr_count"]);function k2(){var v,y;const e=kn(hk,{fetchPolicy:"cache-and-network"}),{handleSubmit:t,reset:a,setValue:r,watch:u}=_c({defaultValues:{poll_interval_minutes:"",jitter_max_seconds:"",run_now_cooldown_seconds:"",max_board_pr_count:"",scheduled_sync_enabled:!1,auto_create_issues:!1}});F.useEffect(()=>{var E;const b=(E=e.data)==null?void 0:E.effectiveSettings;if(!b)return;const _=new Map(b.coreFields.map(T=>[T.key,T.value]));a({poll_interval_minutes:_.get("poll_interval_minutes")??"",jitter_max_seconds:_.get("jitter_max_seconds")??"",run_now_cooldown_seconds:_.get("run_now_cooldown_seconds")??"",max_board_pr_count:_.get("max_board_pr_count")??"",scheduled_sync_enabled:b.scheduledSyncEnabled,auto_create_issues:b.autoCreateIssues})},[e.data,a]);const[s,{loading:c}]=Gn(Hj,{optimisticResponse:(b,{IGNORE:_})=>{var w;const E=(w=e.data)==null?void 0:w.effectiveSettings;if(!E)return _;const T=String(E.id),D=b.input,N=D;return{__typename:"Mutation",updateSettings:{__typename:"EffectiveSettings",id:T,coreFields:E.coreFields.map(O=>({__typename:"CoreSettingField",...O,value:N[O.key]??O.value})),resolvedSourceLabel:E.resolvedSourceLabel,resolvedDestinationLabel:E.resolvedDestinationLabel,scheduledSyncEnabled:D.scheduled_sync_enabled!=null?D.scheduled_sync_enabled:E.scheduledSyncEnabled,autoCreateIssues:D.auto_create_issues!=null?D.auto_create_issues:E.autoCreateIssues}}},onCompleted(b,_){var D;const E=(D=_==null?void 0:_.variables)==null?void 0:D.input,T=(E==null?void 0:E.poll_interval_minutes)!==void 0||(E==null?void 0:E.jitter_max_seconds)!==void 0;je.success(T?"General settings saved. Scheduler will pick up interval changes.":"General settings saved.")},onError:b=>{je.error(`Save failed: ${fn(b)}`)}}),d=F.useMemo(()=>{var b;return(((b=e.data)==null?void 0:b.effectiveSettings.coreFields)??[]).filter(_=>S2.has(_.key))},[(v=e.data)==null?void 0:v.effectiveSettings.coreFields]),p=u(),m={poll_interval_minutes:p.poll_interval_minutes??"",jitter_max_seconds:p.jitter_max_seconds??"",run_now_cooldown_seconds:p.run_now_cooldown_seconds??"",max_board_pr_count:p.max_board_pr_count??""};return S.jsx(_2,{titleRow:S.jsxs("div",{className:"page-title-row",children:[S.jsx("h1",{children:"General"}),S.jsx(Lm,{})]}),settingsCard:S.jsx(b2,{loading:!!(e.loading&&!e.data),errorMessage:((y=e.error)==null?void 0:y.message)??null,scheduledOn:p.scheduled_sync_enabled??!1,autoCreate:p.auto_create_issues??!1,onScheduledChange:b=>{r("scheduled_sync_enabled",b,{shouldDirty:!0})},onAutoCreateChange:b=>{r("auto_create_issues",b,{shouldDirty:!0})},textFields:d,texts:m,onTextChange:(b,_)=>r(b,_,{shouldDirty:!0}),saving:c,onSubmit:()=>{t(b=>{s({variables:{input:{poll_interval_minutes:b.poll_interval_minutes,jitter_max_seconds:b.jitter_max_seconds,run_now_cooldown_seconds:b.run_now_cooldown_seconds,max_board_pr_count:b.max_board_pr_count,scheduled_sync_enabled:b.scheduled_sync_enabled,auto_create_issues:b.auto_create_issues}}})})()}})})}function E2({label:e,value:t,options:a,disabled:r,loading:u,hasOrgError:s,onChange:c}){return S.jsxs("label",{className:"field",children:[S.jsx("span",{className:"field-label",children:e}),S.jsxs("select",{className:"input",value:t,onChange:d=>c(d.target.value),disabled:r,children:[S.jsx("option",{value:"",children:s?"—":u&&a.length===0?"Loading…":"Select…"}),a.map(d=>S.jsx("option",{value:d.id,children:d.name??d.id},d.id))]})]})}function N2({label:e,value:t,options:a,onChange:r}){return S.jsxs("label",{className:"field",children:[S.jsx("span",{className:"field-label",children:e}),S.jsx("select",{className:"input",value:t,onChange:u=>r(u.target.value),children:a.map(u=>S.jsx("option",{value:u.value,children:u.label},u.value))})]})}function T2({value:e,options:t,loading:a,errorMessage:r,onChange:u}){return S.jsxs("label",{className:"field",children:[S.jsx("span",{className:"field-label",children:"Project"}),S.jsxs("select",{className:"input",value:e,onChange:s=>u(s.target.value),disabled:a,children:[S.jsx("option",{value:"",children:a&&t.length===0?"Loading…":"Select…"}),t.map(s=>S.jsx("option",{value:s.id,children:s.name??s.id},s.id))]}),r?S.jsx("p",{className:"text-danger",children:r}):null]})}function O2({orgLabel:e,doneStatusLabel:t,executorLabel:a,boardPickerEnabled:r,orgErrorMessage:u,orgOptions:s,orgLoading:c,selectedOrgId:d,onOrgChange:p,selectedProjectId:m,projectOptions:v,projectLoading:y,projectErrorMessage:b,onProjectChange:_,doneStatusValue:E,onDoneStatusChange:T,executorValue:D,executorOptions:N,onExecutorChange:w,saving:O,onSubmit:M}){const z=!r||!!u||c&&s.length===0;return S.jsx("section",{className:"card",children:S.jsxs("form",{className:"form-stack",onSubmit:Z=>{Z.preventDefault(),M()},children:[S.jsx(E2,{label:e,value:d,options:s,disabled:z,loading:c,hasOrgError:!!u,onChange:p}),d.trim()?S.jsxs(S.Fragment,{children:[S.jsx(T2,{value:m,options:v,loading:y,errorMessage:b,onChange:_}),S.jsxs("label",{className:"field",children:[S.jsx("span",{className:"field-label",children:t}),S.jsx("input",{className:"input",value:E,onChange:Z=>T(Z.target.value)})]}),S.jsx(N2,{label:a,value:D,options:N,onChange:w})]}):null,S.jsx("button",{type:"submit",className:"btn primary",disabled:O,children:O?"Saving…":"Save"})]})})}function w2(){var M,z,Z;const e=kn(Jj,{fetchPolicy:"cache-and-network"}),t=((M=e.data)==null?void 0:M.vibeKanbanUiState)??null,{handleSubmit:a,reset:r,setValue:u,watch:s}=_c({defaultValues:{default_organization_id:"",default_project_id:"",kanban_done_status:"",vk_workspace_executor:""}});F.useEffect(()=>{t&&r({default_organization_id:t.boardOrg,default_project_id:t.boardProj,kanban_done_status:t.kanbanDoneStatus,vk_workspace_executor:t.vkExecutor})},[t,r]);const c=s(),d=c.default_organization_id??"",p=c.default_project_id??"",m=c.kanban_done_status??"",v=c.vk_workspace_executor??"",y=kn(Yj,{skip:!(t!=null&&t.vkBoardPicker)||!!(t!=null&&t.orgError),fetchPolicy:"cache-and-network"}),b=F.useMemo(()=>{var $;return(($=y.data)==null?void 0:$.vibeKanbanOrganizations)??[]},[(z=y.data)==null?void 0:z.vibeKanbanOrganizations]),_=kn(Pj,{variables:{organizationId:d},skip:!d.trim(),fetchPolicy:"cache-and-network"}),E=F.useMemo(()=>{var $;return(($=_.data)==null?void 0:$.vibeKanbanProjects)??[]},[(Z=_.data)==null?void 0:Z.vibeKanbanProjects]),T=_.error?fn(_.error):null,[D,N]=Gn(Zj,{onCompleted:()=>{je.success("Vibe Kanban settings saved.")},onError:$=>{je.error(`Save failed: ${fn($)}`)}}),w=async $=>{await D({variables:{input:$}})};if(e.loading&&!t&&!e.error)return S.jsxs("div",{className:"stack",children:[S.jsx("h1",{children:"Vibe Kanban"}),S.jsx("p",{className:"muted",children:"Loading…"})]});if(e.error)return S.jsxs("div",{className:"stack",children:[S.jsx("h1",{children:"Vibe Kanban"}),S.jsx("p",{className:"muted",children:fn(e.error)})]});if(!t)return S.jsxs("div",{className:"stack",children:[S.jsx("h1",{children:"Vibe Kanban"}),S.jsx("p",{className:"muted",children:"Loading…"})]});const O=t;return S.jsxs("div",{className:"stack",children:[S.jsx("h1",{children:"Vibe Kanban"}),O.orgError?S.jsx("p",{className:"text-danger",children:O.orgError}):null,y.error?S.jsx("p",{className:"text-danger",children:fn(y.error)}):null,S.jsx(O2,{orgLabel:O.vkLabels.default_organization_id,doneStatusLabel:O.vkLabels.kanban_done_status,executorLabel:O.vkLabels.vk_workspace_executor,boardPickerEnabled:O.vkBoardPicker,orgErrorMessage:O.orgError??null,orgOptions:b,orgLoading:!!y.loading,selectedOrgId:d,onOrgChange:$=>{u("default_organization_id",$,{shouldDirty:!0}),u("default_project_id","",{shouldDirty:!0})},selectedProjectId:p,projectOptions:E,projectLoading:!!_.loading,projectErrorMessage:T,onProjectChange:$=>{u("default_project_id",$,{shouldDirty:!0})},doneStatusValue:m,onDoneStatusChange:$=>{u("kanban_done_status",$,{shouldDirty:!0})},executorValue:v,executorOptions:O.executorOptions,onExecutorChange:$=>{u("vk_workspace_executor",$,{shouldDirty:!0})},saving:N.loading,onSubmit:()=>{a($=>{w({default_organization_id:$.default_organization_id,default_project_id:$.default_project_id,kanban_done_status:$.kanban_done_status,vk_workspace_executor:$.vk_workspace_executor})})()}})]})}function D2(){return S.jsx(lx,{children:S.jsxs(Aa,{element:S.jsx(Wj,{}),children:[S.jsx(Aa,{index:!0,element:S.jsx(ax,{to:"/dashboard",replace:!0})}),S.jsx(Aa,{path:"dashboard",element:S.jsx(VM,{})}),S.jsx(Aa,{path:"settings",element:S.jsx(k2,{})}),S.jsx(Aa,{path:"activity",element:S.jsx(sM,{})}),S.jsx(Aa,{path:"mappings",element:S.jsx(g2,{})}),S.jsx(Aa,{path:"github",element:S.jsx(s2,{})}),S.jsx(Aa,{path:"vibe-kanban",element:S.jsx(w2,{})})]})})}y1.createRoot(document.getElementById("root")).render(S.jsx(F.StrictMode,{children:S.jsxs(Gw,{client:EM,children:[S.jsx(Rx,{children:S.jsx(D2,{})}),S.jsx(rD,{position:"top-right",toastOptions:{duration:3e3,style:{background:"#171c19",color:"#e8f0ea",border:"1px solid #2a332e"},success:{iconTheme:{primary:"#3d9f7a",secondary:"#0f1210"}},error:{iconTheme:{primary:"#c45c5c",secondary:"#0f1210"}}}})]})}))});export default x2();