PageSourceSearch

https://www.wpgraphql.com/_next/static/chunks/pages/_app-089a9985a…?dpl=dpl_6GumSXRJPEoJgvGEfG2pwkCQzyeg

js wpgraphql.com collected 2026-09-24 18:14:16 UTC 581,808 bytes, 281 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[636],{22:(e,t,r)=>{"use strict";r.d(t,{M:()=>o});var n=r(5729),i=r(6308);function o(e,t,r){let o=(0,i.Y)(t);(0,n.useEffect)(()=>{function t(e){o.current(e)}return window.addEventListener(e,t,r),()=>window.removeEventListener(e,t,r)},[e,r])}},158:(e,t,r)=>{"use strict";r.d(t,{L:()=>o});var n=r(5729),i=r(3029);function o(){let[e]=(0,n.useState)(i.e);return(0,n.useEffect)(()=>()=>e.dispose(),[e]),e}},188:(e,t,r)=>{"use strict";function n(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch(e=>setTimeout(()=>{throw e}))}r.d(t,{_:()=>n})},212:(e,t,r)=>{"use strict";function n(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=function e(t){var r,n,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t)if(Array.isArray(t)){var o=t.length;for(r=0;r<o;r++)t[r]&&(n=e(t[r]))&&(i&&(i+=" "),i+=n)}else for(n in t)t[n]&&(i&&(i+=" "),i+=n);return i}(e))&&(n&&(n+=" "),n+=t);return n}r.d(t,{$:()=>n,A:()=>i});let i=n},270:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>V});var n,i,o,s,a,l,c,u,d,p=function(){return(p=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;let f=/\r\n|[\n\r]/g;function h(e,t){let r=0,n=1;for(let i of e.body.matchAll(f)){if("number"==typeof i.index||function(e){if(!e)throw Error("Unexpected invariant triggered.")}(!1),i.index>=t)break;r=i.index+i[0].length,n+=1}return{line:n,column:t+1-r}}function m(e,t){let r=e.locationOffset.column-1,n="".padStart(r)+e.body,i=t.line-1,o=e.locationOffset.line-1,s=t.line+o,a=1===t.line?r:0,l=t.column+a,c=`${e.name}:${s}:${l}
2`,u=n.split(/\r\n|[\n\r]/g),d=u[i];if(d.length>120){let e=Math.floor(l/80),t=[];for(let e=0;e<d.length;e+=80)t.push(d.slice(e,e+80));return c+g([[`${s} |`,t[0]],...t.slice(1,e+1).map(e=>["|",e]),["|","^".padStart(l%80)],["|",t[e+1]]])}return c+g([[`${s-1} |`,u[i-1]],[`${s} |`,d],["|","^".padStart(l)],[`${s+1} |`,u[i+1]]])}function g(e){let t=e.filter(([e,t])=>void 0!==t),r=Math.max(...t.map(([e])=>e.length));return t.map(([e,t])=>e.padStart(r)+(t?" "+t:"")).join("\n")}class y extends Error{constructor(e,...t){var r,n,i;const{nodes:o,source:s,positions:a,path:l,originalError:c,extensions:u}=function(e){let t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(t);super(e),this.name="GraphQLError",this.path=null!=l?l:void 0,this.originalError=null!=c?c:void 0,this.nodes=v(Array.isArray(o)?o:o?[o]:void 0);const d=v(null==(r=this.nodes)?void 0:r.map(e=>e.loc).filter(e=>null!=e));this.source=null!=s?s:null==d||null==(n=d[0])?void 0:n.source,this.positions=null!=a?a:null==d?void 0:d.map(e=>e.start),this.locations=a&&s?a.map(e=>h(s,e)):null==d?void 0:d.map(e=>h(e.source,e.start));const p=!function(e){return"object"==typeof e&&null!==e}(null==c?void 0:c.extensions)||null==c?void 0:c.extensions;this.extensions=null!=(i=null!=u?u:p)?i:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=c&&c.stack?Object.defineProperty(this,"stack",{value:c.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,y):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(let r of this.nodes){var t;r.loc&&(e+="\n\n"+m((t=r.loc).source,h(t.source,t.start)))}else if(this.source&&this.locations)for(let t of this.locations)e+="\n\n"+m(this.source,t);return e}toJSON(){let e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function v(e){return void 0===e||0===e.length?void 0:e}function b(e,t,r){return new y(`Syntax Error: ${r}`,{source:e,positions:[t]})}class x{constructor(e,t,r){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class w{constructor(e,t,r,n,i,o){this.kind=e,this.start=t,this.end=r,this.line=n,this.column=i,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}function E(e){return e>=48&&e<=57}function k(e){return e>=97&&e<=122||e>=65&&e<=90}function _(e){return k(e)||95===e}(n=l||(l={})).QUERY="query",n.MUTATION="mutation",n.SUBSCRIPTION="subscription",(i=c||(c={})).QUERY="QUERY",i.MUTATION="MUTATION",i.SUBSCRIPTION="SUBSCRIPTION",i.FIELD="FIELD",i.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",i.FRAGMENT_SPREAD="FRAGMENT_SPREAD",i.INLINE_FRAGMENT="INLINE_FRAGMENT",i.VARIABLE_DEFINITION="VARIABLE_DEFINITION",i.SCHEMA="SCHEMA",i.SCALAR="SCALAR",i.OBJECT="OBJECT",i.FIELD_DEFINITION="FIELD_DEFINITION",i.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",i.INTERFACE="INTERFACE",i.UNION="UNION",i.ENUM="ENUM",i.ENUM_VALUE="ENUM_VALUE",i.INPUT_OBJECT="INPUT_OBJECT",i.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION",i.DIRECTIVE_DEFINITION="DIRECTIVE_DEFINITION",(o=u||(u={})).NAME="Name",o.DOCUMENT="Document",o.OPERATION_DEFINITION="OperationDefinition",o.VARIABLE_DEFINITION="VariableDefinition",o.SELECTION_SET="SelectionSet",o.FIELD="Field",o.ARGUMENT="Argument",o.FRAGMENT_SPREAD="FragmentSpread",o.INLINE_FRAGMENT="InlineFragment",o.FRAGMENT_DEFINITION="FragmentDefinition",o.VARIABLE="Variable",o.INT="IntValue",o.FLOAT="FloatValue",o.STRING="Str
2ingValue",o.BOOLEAN="BooleanValue",o.NULL="NullValue",o.ENUM="EnumValue",o.LIST="ListValue",o.OBJECT="ObjectValue",o.OBJECT_FIELD="ObjectField",o.DIRECTIVE="Directive",o.NAMED_TYPE="NamedType",o.LIST_TYPE="ListType",o.NON_NULL_TYPE="NonNullType",o.SCHEMA_DEFINITION="SchemaDefinition",o.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",o.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",o.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",o.FIELD_DEFINITION="FieldDefinition",o.INPUT_VALUE_DEFINITION="InputValueDefinition",o.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",o.UNION_TYPE_DEFINITION="UnionTypeDefinition",o.ENUM_TYPE_DEFINITION="EnumTypeDefinition",o.ENUM_VALUE_DEFINITION="EnumValueDefinition",o.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",o.DIRECTIVE_DEFINITION="DirectiveDefinition",o.SCHEMA_EXTENSION="SchemaExtension",o.DIRECTIVE_EXTENSION="DirectiveExtension",o.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",o.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",o.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",o.UNION_TYPE_EXTENSION="UnionTypeExtension",o.ENUM_TYPE_EXTENSION="EnumTypeExtension",o.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",o.TYPE_COORDINATE="TypeCoordinate",o.MEMBER_COORDINATE="MemberCoordinate",o.ARGUMENT_COORDINATE="ArgumentCoordinate",o.DIRECTIVE_COORDINATE="DirectiveCoordinate",o.DIRECTIVE_ARGUMENT_COORDINATE="DirectiveArgumentCoordinate",(s=d||(d={})).SOF="<SOF>",s.EOF="<EOF>",s.BANG="!",s.DOLLAR="$",s.AMP="&",s.PAREN_L="(",s.PAREN_R=")",s.DOT=".",s.SPREAD="...",s.COLON=":",s.EQUALS="=",s.AT="@",s.BRACKET_L="[",s.BRACKET_R="]",s.BRACE_L="{",s.PIPE="|",s.BRACE_R="}",s.NAME="Name",s.INT="Int",s.FLOAT="Float",s.STRING="String",s.BLOCK_STRING="BlockString",s.COMMENT="Comment";class j{constructor(e){const t=new w(d.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==d.EOF)do if(e.next)e=e.next;else{let t=function(e,t){let r=e.source.body,n=r.length,i=t;for(;i<n;){let t=r.charCodeAt(i);switch(t){case 65279:case 9:case 32:case 44:++i;continue;case 10:++i,++e.line,e.lineStart=i;continue;case 13:10===r.charCodeAt(i+1)?i+=2:++i,++e.line,e.lineStart=i;continue;case 35:return function(e,t){let r=e.source.body,n=r.length,i=t+1;for(;i<n;){let e=r.charCodeAt(i);if(10===e||13===e)break;if(S(e))++i;else if(O(r,i))i+=2;else break}return A(e,d.COMMENT,t,i,r.slice(t+1,i))}(e,i);case 33:return A(e,d.BANG,i,i+1);case 36:return A(e,d.DOLLAR,i,i+1);case 38:return A(e,d.AMP,i,i+1);case 40:return A(e,d.PAREN_L,i,i+1);case 41:return A(e,d.PAREN_R,i,i+1);case 46:if(46===r.charCodeAt(i+1)&&46===r.charCodeAt(i+2))return A(e,d.SPREAD,i,i+3);break;case 58:return A(e,d.COLON,i,i+1);case 61:return A(e,d.EQUALS,i,i+1);case 64:return A(e,d.AT,i,i+1);case 91:return A(e,d.BRACKET_L,i,i+1);case 93:return A(e,d.BRACKET_R,i,i+1);case 123:return A(e,d.BRACE_L,i,i+1);case 124:return A(e,d.PIPE,i,i+1);case 125:return A(e,d.BRACE_R,i,i+1);case 34:if(34===r.charCodeAt(i+1)&&34===r.charCodeAt(i+2))return function(e,t){let r=e.source.body,n=r.length,i=e.lineStart,o=t+3,s=o,a="",l=[];for(;o<n;){let n=r.charCodeAt(o);if(34===n&&34===r.charCodeAt(o+1)&&34===r.charCodeAt(o+2)){a+=r.slice(s,o),l.push(a);let n=A(e,d.BLOCK_STRING,t,o+3,(function(e){var t,r;let n=Number.MAX_SAFE_INTEGER,i=null,o=-1;for(let t=0;t<e.length;++t){let s=e[t],a=function(e){var t;let r=0;for(;r<e.length&&(9===(t=e.charCodeAt(r))||32===t);)++r;return r}(s);a!==s.length&&(i=null!=(r=i)?r:t,o=t,0!==t&&a<n&&(n=a))}return e.map((e,t)=>0===t?e:e.slice(n)).slice(null!=(t=i)?t:0,o+1)})(l).join("\n"));return e.line+=l.length-1,e.lineStart=i,n}if(92===n&&34===r.charCodeAt(o+1)&&34===r.charCodeAt(o+2)&&34===r.charCodeAt(o+3)){a+=r.slice(s,o),s=o+1,o+=4;continue}if(10===n||13===n){a+=r.slice(s,o),l.push(a),13===n&&10===r.charCodeAt(o+1)?o+=2:++o,a="",s=o,i=o;continue}if(S(n))++o;else if(O(r,o))o+=2;else throw b(e.source,o,`Invalid character within String: ${N(e,o)}.`)}throw b(e.source,o,"Unterminated string.")}(e,i);return function(e,t){let r=e.source.body,n=r.length,i=t+1,o=i,s="";for(;i<n;){let n=r.charCodeAt(i);if(34===n)return s+=r.slice(o,i),A(e,d.STRING,t,i+1,s);if(92===n){s+=r.slice(o,i);let t=117===r.charCodeAt(i+1)?123===r.charCodeAt(i+2)?function(e,t){let r=e.source.body,n=0,i=3;for(;i<12;){let e=r.charCodeAt(t+i++);if(125===e){if(i<5||!S(n))break;return{value:String.fromCodePoint(n),size:i}}if((n=n<<4|q(e))<0)break}throw b(e.source,t,`Invalid Unicode escape sequence: "${r.slice(t,t+i)}".`)}(e,i):function(e,t){let r=e.source.body,n=I(r,t+2);if(S(n))return{value:String.fromCodePoint(n),size:6};if(T(n)&&92===r.charCodeAt(t+6)&&117===r.charCodeAt(t+7)){let e=I(r,t+8);
2if(P(e))return{value:String.fromCodePoint(n,e),size:12}}throw b(e.source,t,`Invalid Unicode escape sequence: "${r.slice(t,t+6)}".`)}(e,i):function(e,t){let r=e.source.body;switch(r.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"	",size:2}}throw b(e.source,t,`Invalid character escape sequence: "${r.slice(t,t+2)}".`)}(e,i);s+=t.value,i+=t.size,o=i;continue}if(10===n||13===n)break;if(S(n))++i;else if(O(r,i))i+=2;else throw b(e.source,i,`Invalid character within String: ${N(e,i)}.`)}throw b(e.source,i,"Unterminated string.")}(e,i)}if(E(t)||45===t)return function(e,t,r){let n=e.source.body,i=t,o=r,s=!1;if(45===o&&(o=n.charCodeAt(++i)),48===o){if(E(o=n.charCodeAt(++i)))throw b(e.source,i,`Invalid number, unexpected digit after 0: ${N(e,i)}.`)}else i=C(e,i,o),o=n.charCodeAt(i);if(46===o&&(s=!0,o=n.charCodeAt(++i),i=C(e,i,o),o=n.charCodeAt(i)),(69===o||101===o)&&(s=!0,(43===(o=n.charCodeAt(++i))||45===o)&&(o=n.charCodeAt(++i)),i=C(e,i,o),o=n.charCodeAt(i)),46===o||_(o))throw b(e.source,i,`Invalid number, expected digit but got: ${N(e,i)}.`);return A(e,s?d.FLOAT:d.INT,t,i,n.slice(t,i))}(e,i,t);if(_(t))return function(e,t){let r=e.source.body,n=r.length,i=t+1;for(;i<n;){var o;if(k(o=r.charCodeAt(i))||E(o)||95===o)++i;else break}return A(e,d.NAME,t,i,r.slice(t,i))}(e,i);throw b(e.source,i,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":S(t)||O(r,i)?`Unexpected character: ${N(e,i)}.`:`Invalid character: ${N(e,i)}.`)}return A(e,d.EOF,n,n)}(this,e.end);e.next=t,t.prev=e,e=t}while(e.kind===d.COMMENT);return e}}function S(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function O(e,t){return T(e.charCodeAt(t))&&P(e.charCodeAt(t+1))}function T(e){return e>=55296&&e<=56319}function P(e){return e>=56320&&e<=57343}function N(e,t){let r=e.source.body.codePointAt(t);if(void 0===r)return d.EOF;if(r>=32&&r<=126){let e=String.fromCodePoint(r);return'"'===e?"'\"'":`"${e}"`}return"U+"+r.toString(16).toUpperCase().padStart(4,"0")}function A(e,t,r,n,i){let o=e.line,s=1+r-e.lineStart;return new w(t,r,n,o,s,i)}function C(e,t,r){if(!E(r))throw b(e.source,t,`Invalid number, expected digit but got: ${N(e,t)}.`);let n=e.source.body,i=t+1;for(;E(n.charCodeAt(i));)++i;return i}function I(e,t){return q(e.charCodeAt(t))<<12|q(e.charCodeAt(t+1))<<8|q(e.charCodeAt(t+2))<<4|q(e.charCodeAt(t+3))}function q(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function R(e,t){if(!e)throw Error(t)}function F(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return function(e,t){let r;if(null===e)return"null";if(t.includes(e))return"[Circular]";let n=[...t,e];if("function"==typeof e.toJSON){let t=e.toJSON();if(t!==e)return"string"==typeof t?t:F(t,n)}else if(Array.isArray(e)){var i,o,s=e,a=n;if(0===s.length)return"[]";if(a.length>2)return"[Array]";let t=Math.min(10,s.length),r=s.length-t,l=[];for(let e=0;e<t;++e)l.push(F(s[e],a));return 1===r?l.push("... 1 more item"):r>1&&l.push(`... ${r} more items`),"["+l.join(", ")+"]"}return i=e,o=n,0===(r=Object.entries(i)).length?"{}":o.length>2?"["+function(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){let t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(i)+"]":"{ "+r.map(([e,t])=>e+": "+F(t,o)).join(", ")+" }"}(e,t);default:return String(e)}}let D=globalThis.process&&1?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if("object"==typeof e&&null!==e){var r;let n=t.prototype[Symbol.toStringTag];if(n===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null==(r=e.constructor)?void 0:r.name)){let t=F(e,[]);throw Error(`Cannot use ${n} "${t}" from another module or realm.
3
4Ensure that there is only one instance of "graphql" in the node_modules
5directory. If different versions of "graphql" are the dependencies of other
6relied on modules, use "resolutions" to ensure only one version is installed.
7
8https://yarnpkg.com/en/docs/selective-version-resolutions
9
10Duplicate "graphql" modules cannot be used at the same time since different
11versions may have different capabilities and behavior. The data from one
12version used in the function from another could produce confusing and
13spurious results.`)}}return!1};class L{constructor(e,t="GraphQL request",r={line:1,column:1}){"string"==typeof e||R(!1,`Body must be a string. Received: ${function(e){return F(e,[])}(e)}.`),this.body=e,this.name=t,this.locationOffset=r,this.locationOffset.line>0||R(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||R(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}class M{constructor(e,t={}){const{lexer:r,...n}=t;if(r)this._lexer=r;else{const t=!function(e){return D(e,L)}(e)?new L(e):e;this._lexer=new j(t)}this._options=n,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){let e=this.expectToken(d.NAME);return this.node(e,{kind:u.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:u.DOCUMENT,definitions:this.many(d.SOF,this.parseDefinition,d.EOF)})}parseDefinition(){if(this.peek(d.BRACE_L))return this.parseOperationDefinition();let e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(e&&t.kind===d.BRACE_L)throw b(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are not supported on shorthand queries.");if(t.kind===d.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition()}if(e)throw b(this._lexer.source,this._lexer.token.start,"Unexpected description, only GraphQL definitions supp
13ort descriptions.");if("extend"===t.value)return this.parseTypeSystemExtension()}throw this.unexpected(t)}parseOperationDefinition(){let e,t=this._lexer.token;if(this.peek(d.BRACE_L))return this.node(t,{kind:u.OPERATION_DEFINITION,operation:l.QUERY,description:void 0,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let r=this.parseDescription(),n=this.parseOperationType();return this.peek(d.NAME)&&(e=this.parseName()),this.node(t,{kind:u.OPERATION_DEFINITION,operation:n,description:r,name:e,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let e=this.expectToken(d.NAME);switch(e.value){case"query":return l.QUERY;case"mutation":return l.MUTATION;case"subscription":return l.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(d.PAREN_L,this.parseVariableDefinition,d.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:u.VARIABLE_DEFINITION,description:this.parseDescription(),variable:this.parseVariable(),type:(this.expectToken(d.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(d.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let e=this._lexer.token;return this.expectToken(d.DOLLAR),this.node(e,{kind:u.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:u.SELECTION_SET,selections:this.many(d.BRACE_L,this.parseSelection,d.BRACE_R)})}parseSelection(){return this.peek(d.SPREAD)?this.parseFragment():this.parseField()}parseField(){let e,t,r=this._lexer.token,n=this.parseName();return this.expectOptionalToken(d.COLON)?(e=n,t=this.parseName()):t=n,this.node(r,{kind:u.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(d.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){let t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(d.PAREN_L,t,d.PAREN_R)}parseArgument(e=!1){let t=this._lexer.token,r=this.parseName();return this.expectToken(d.COLON),this.node(t,{kind:u.ARGUMENT,name:r,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let e=this._lexer.token;this.expectToken(d.SPREAD);let t=this.expectOptionalKeyword("on");return!t&&this.peek(d.NAME)?this.node(e,{kind:u.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:u.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let e=this._lexer.token,t=this.parseDescription();return(this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables)?this.node(e,{kind:u.FRAGMENT_DEFINITION,description:t,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:u.FRAGMENT_DEFINITION,description:t,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){let t=this._lexer.token;switch(t.kind){case d.BRACKET_L:return this.parseList(e);case d.BRACE_L:return this.parseObject(e);case d.INT:return this.advanceLexer(),this.node(t,{kind:u.INT,value:t.value});case d.FLOAT:return this.advanceLexer(),this.node(t,{kind:u.FLOAT,value:t.value});case d.STRING:case d.BLOCK_STRING:return this.parseStringLiteral();case d.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:u.BOOLEAN,value:!0});case"false":return this.node(t,{kind:u.BOOLEAN,value:!1});case"null":return this.node(t,{kind:u.NULL});default:return this.node(t,{kind:u.ENUM,value:t.value})}case d.DOLLAR:if(e){if(this.expectToken(d.DOLLAR),this._lexer.token.kind===d.NAME){let e=this._lexer.token.value;throw b(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:u.STRING,value:e.value,block:e.kind===d.BLOCK_STRING})}parseList(e){let t=()=>this.parseValueLiteral(e);return this.node(this._lexer.token,{kind:u.LIST,values:this.any(d.BRACKET_L,t,d.BRACKET_R)})}parseObject(e){let t=()=>this.parseObjectField(e);return this.node(this._lexer.token,{kind:u.OBJECT,fields:this.any(d.BRACE_L,t,d.BRACE_R)})}parseObjectField(e){let t=this._lexer.token,r=this.parseName();return this.expectToken(d.COLON),this.node(t,{kind:u.OBJECT_FIELD,name:r,value:this.parseValueLiteral(e)})}parseDirectives(e){let t=[];for(;this.peek(d.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){let t=this._lexer.token;return this.expectToken(d.AT),this.node(t,{kind:u.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){let e,t=this._lexer.token;if(this.expectOptionalToken(d.BRACKET_L)){let r=this.parseTypeReference();this.expectToken(d.BRACKET_R),e=this.node(t,{kind:u.LIST_TYPE,type:r})}else e=this.parseNamedType();return this.expectOptionalToken(d.BANG)?this.node(t,{kind:u.NON_NULL_TYPE,type:e}):e}parseNamedType(){return this.node(this._lexer.token,{kind:u.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(d.STRING)||this.peek(d.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");let r=this.parseConstDirectives(),n=this.many(d.BRACE_L,this.parseOperationTypeDefinition,d.BRACE_R);return this.node(e,{kind:u.SCHEMA_DEFINITION,description:t,directives:r,operationTypes:n})}parseOperationTypeDefinition(){let e=this._lexer.token,t=this.parseOperationType();this.expectToken(d.COLON);let r=this.parseNamedType();return this.node(e,{kind:u.OPERATION_TYPE_DEFINITION,operation:t,type:r})}parseScalarTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");let r=this.parseName(),n=this.parseConstDirectives();return this.node(e,{kind:u.SCALAR_TYPE_DEFINITION,description:t,name:r,directives:n})}parseObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");let r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:u.OBJECT_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:i,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(d.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(d.BRACE_L,this.parseFieldDefinition,d.BRACE_R)}parseFieldDefinition(){let e=this._lexer.token,t=this.parseDescription(),r=this.parseName(),n=this.parseArgumentDefs();this.expectToken(d.COLON);let i=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(e,{kind:u.FIELD_DEFINITION,description:t,name:r,arguments:n,type:i,directives:o})}parseArgumentDefs(){return this.optionalMany(d.PAREN_L,this.parseInputValueDef,d.PAREN_R)}parseInputValueDef(){let e,t=this._lexer.token,r=this.parseDescription(),n=this.parseName();this.expectToken(d.COLON);let i=this.parseTypeReference();this.expectOptionalToken(d.EQUALS)&&(e=this.parseConstValueLiteral());let o=this.parseConstDirectives();return this.node(t,{kind:u.INPUT_VALUE_DEFINITION,description:r,name:n,type:i,defaultValue:e,directives:o})}parseInterfaceTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");let r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:u.INTERFACE_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:i,fields:o})}parseUnionTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");let r=this.parseName(),n=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:u.UNION_TYPE_DEFINITION,description:t,name:r,directives:n,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(d.EQUALS)?this.delimitedMany(d.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");let r=this.parseName(),n=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:u.ENUM_TYPE_DEFINITION,description:t,name:r,directives:n,values:i})}parseEnumValuesDefinition(){return this.optionalMany(d.BRACE_L,this.parseEnumValueDefinition,d.BRACE_R)}parseEnumValueDefinition(){let e=this._lexer.token,t=this.parseDescription(),r=this.parseEnumValueName(),n=this.parseConstDirectives();return this.node(e,{kind:u.ENUM_VALUE_DEFINITION,description:t,name:r,directives:n})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw b(this._lexer.source,this._lexer.token.start,`${U(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");let r=this.parseName(),n=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:u.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:r,directives:n,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(d.BRACE_L,this.parseInputValueDef,d.BRACE_R)}parseTypeSystemExtension(){let e=this._lexer.lookahead();if(e.kind===d.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension();case"directive":if(this._options.experimentalDirectivesOnDirectiveDefinitions)return this.parseDirectiveDefinitionExtension()}throw this.unexpected(e)}parseSchemaExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let t=this.parseConstDirectives(),r=this.optionalMany(d.BRACE_L,this.parseOperationTypeDefinition,d.BRACE_R);if(0===t.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:u.SCHEMA_EXTENSION,directives:t,operationTypes:r})}parseScalarTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let t=this.parseName(),r=this.parseConstDirectives();if(0===r.length)throw this.unexpected();return this.node(e,{kind:u.SCALAR_TYPE_EXTENSION,name:t,directives:r})}parseObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let t=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===r.length&&0===n.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:u.OBJECT_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:i})}parseInterfaceTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let t=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===r.length&&0===n.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:u.INTERFACE_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:i})}parseUnionTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let t=this.parseName(),r=this.parseConstDirectives(),n=this.parseUnionMemberTypes();if(0===r.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:u.UNION_TYPE_EXTENSION,name:t,directives:r,types:n})}parseEnumTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let t=this.parseName(),r=this.parseConstDirectives(),n=this.parseEnumValuesDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:u.ENUM_TYPE_EXTENSION,name:t,directives:r,values:n})}parseInputObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let t=this.parseName(),r=this.parseConstDirectives(),n=this.parseInputFieldsDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:u.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:r,fields:n})}parseDirectiveDefinitionExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("directive"),this.expectToken(d.AT);let t=this.parseName(),r=this.parseConstDirectives();if(0===r.length)throw this.unexpected();return this.node(e,{kind:u.DIRECTIVE_EXTENSION,name:t,directives:r})}parseDirectiveDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(d.AT);let r=this.parseName(),n=this.parseArgumentDefs(),i=this._options.experimentalDirectivesOnDirectiveDefinitions?this.parseConstDirectives():[],o=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let s=this.parseDirectiveLocations();return this.node(e,{kind:u.DIRECTIVE_DEFINITION,description:t,name:r,arguments:n,directives:i,repeatable:o,locations:s})}parseDirectiveLocations(){return this.delimitedMany(d.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(c,t.value))return t;throw this.unexpected(e)}parseSchemaCoordinate(){let e,t,r=this._lexer.token,n=this.expectOptionalToken(d.AT),i=this.parseName();return(!n&&this.expectOptionalToken(d.DOT)&&(e=this.parseName()),(n||e)&&this.expectOptionalToken(d.PAREN_L)&&(t=this.parseName(),this.expectToken(d.COLON),this.expectToken(d.PAREN_R)),n)?t?this.node(r,{kind:u.DIRECTIVE_ARGUMENT_COORDINATE,name:i,argumentName:t}):this.node(r,{kind:u.DIRECTIVE_COORDINATE,name:i}):e?t?this.node(r,{kind:u.ARGUMENT_COORDINATE,name:i,fieldName:e,argumentName:t}):this.node(r,{kind:u.MEMBER_COORDINATE,name:i,memberName:e}):this.node(r,{kind:u.TYPE_COORDINATE,name:i})}node(e,t){return!0!==this._options.noLocation&&(t.loc=new x(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){let t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw b(this._lexer.source,t.start,`Expected ${B(e)}, found ${U(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){let t=this._lexer.token;if(t.kind===d.NAME&&t.value===e)this.advanceLexer();else throw b(this._lexer.source,t.start,`Expected "${e}", found ${U(t)}.`)}expectOptionalKeyword(e){let t=this._lexer.token;return t.kind===d.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){let t=null!=e?e:this._lexer.token;return b(this._lexer.source,t.start,`Unexpected ${U(t)}.`)}any(e,t,r){this.expectToken(e);let n=[];for(;!this.expectOptionalToken(r);)n.push(t.call(this));return n}optionalMany(e,t,r){if(this.expectOptionalToken(e)){let e=[];do e.push(t.call(this));while(!this.expectOptionalToken(r));return e}return[]}many(e,t,r){this.expectToken(e);let n=[];do n.push(t.call(this));while(!this.expectOptionalToken(r));return n}delimitedMany(e,t){this.expectOptionalToken(e);let r=[];do r.push(t.call(this));while(this.expectOptionalToken(e));return r}advanceLexer(){let{maxTokens:e}=this._options,t=this._lexer.advance();if(t.kind!==d.EOF&&(++this._tokenCounter,void 0!==e&&this._tokenCounter>e))throw b(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function U(e){let t=e.value;return B(e.kind)+(null!=t?` "${t}"`:"")}function B(e){return e===d.BANG||e===d.DOLLAR||e===d.AMP||e===d.PAREN_L||e===d.PAREN_R||e===d.DOT||e===d.SPREAD||e===d.COLON||e===d.EQUALS||e===d.AT||e===d.BRACKET_L||e===d.BRACKET_R||e===d.BRACE_L||e===d.
13PIPE||e===d.BRACE_R?`"${e}"`:e}var $=new Map,W=new Map,z=!0,K=!1;function G(e){return e.replace(/[\s,]+/g," ").trim()}function Q(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];"string"==typeof e&&(e=[e]);var n=e[0];return t.forEach(function(t,r){t&&"Document"===t.kind?n+=t.loc.source.body:n+=t,n+=e[r+1]}),function(e){var t=G(e);if(!$.has(t)){let l,c;var r,n,i,o,s,a=(Object.defineProperty(c=(l=new M(e,{experimentalFragmentVariables:K,allowLegacyFragmentVariables:K,experimentalFragmentArguments:K})).parseDocument(),"tokenCount",{enumerable:!1,value:l.tokenCount}),c);if(!a||"Document"!==a.kind)throw Error("Not a valid GraphQL document.");$.set(t,((o=new Set((r=new Set,n=[],a.definitions.forEach(function(e){if("FragmentDefinition"===e.kind){var t,i=e.name.value,o=G((t=e.loc).source.body.substring(t.start,t.end)),s=W.get(i);s&&!s.has(o)?z&&console.warn("Warning: fragment with name "+i+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):s||W.set(i,s=new Set),s.add(o),r.has(o)||(r.add(o),n.push(e))}else n.push(e)}),i=p(p({},a),{definitions:n})).definitions)).forEach(function(e){e.loc&&delete e.loc,Object.keys(e).forEach(function(t){var r=e[t];r&&"object"==typeof r&&o.add(r)})}),(s=i.loc)&&(delete s.startToken,delete s.endToken),i))}return $.get(t)}(n)}var H=Q;(a=Q||(Q={})).gql=H,a.resetCaches=function(){$.clear(),W.clear()},a.disableFragmentWarnings=function(){z=!1},a.enableExperimentalFragmentVariables=function(){K=!0},a.disableExperimentalFragmentVariables=function(){K=!1},Q.default=Q;let V=Q},483:(e,t,r)=>{"use strict";r.d(t,{s:()=>o});var n=r(5729),i=r(5369);let o=(e,t)=>{i._.isServer?(0,n.useEffect)(e,t):(0,n.useLayoutEffect)(e,t)}},595:(e,t,r)=>{"use strict";r.d(t,{d:()=>i});var n=r(6029);function i({size:e=32,variant:t="default",showGlow:r=!1,className:o,style:s}){let a="reversed"===t,l=a?"rgba(255,255,255,0.4)":"#435678",c=a?"rgba(255,255,255,0.5)":"#96A8C8",u=a?"rgba(0,0,0,0.12)":"#1A2540";return(0,n.jsxs)("svg",{width:e,height:e,viewBox:"0 0 160 160",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-label":"WPGraphQL for ACF",className:o,style:{...r?{filter:"drop-shadow(0 0 24px rgba(16,185,129,0.4)) drop-shadow(0 0 6px rgba(16,185,129,0.25))"}:{},...s},children:[(0,n.jsx)("rect",{width:"160",height:"160",rx:"36",fill:a?"#10B981":"#0C1220"}),(0,n.jsx)("rect",{x:"14",y:"14",width:"132",height:"14",rx:"3.5",fill:a?"rgba(0,0,0,0.28)":"#10B981",opacity:"0.9"}),(0,n.jsx)("rect",{x:"18",y:"17.5",width:"14",height:"7",rx:"1.5",fill:a?"rgba(255,255,255,0.35)":"rgba(255,255,255,0.25)"}),(0,n.jsx)("rect",{x:"14",y:"34",width:"132",height:"10",fill:a?"rgba(0,0,0,0.18)":"#131B30"}),(0,n.jsx)("rect",{x:"19",y:"37",width:"18",height:"3",rx:"1.5",fill:l,opacity:"0.8"}),(0,n.jsx)("rect",{x:"52",y:"37",width:"28",height:"3",rx:"1.5",fill:l,opacity:"0.8"}),(0,n.jsx)("rect",{x:"94",y:"37",width:"20",height:"3",rx:"1.5",fill:l,opacity:"0.8"}),(0,n.jsx)("rect",{x:"14",y:"44.75",width:"132",height:"16",fill:a?"rgba(0,0,0,0.1)":"rgba(16,185,129,0.08)"}),(0,n.jsx)("rect",{x:"14",y:"44.75",width:"3",height:"16",fill:a?"rgba(0,0,0,0.5)":"#10B981"}),(0,n.jsx)("rect",{x:"19",y:"50.5",width:"22",height:"3",rx:"1.5",fill:a?"rgba(255,255,255,0.85)":"#34D399",opacity:"0.9"}),(0,n.jsx)("rect",{x:"52",y:"50.5",width:"34",height:"3",rx:"1.5",fill:c,opacity:"0.65"}),(0,n.jsx)("rect",{x:"94",y:"50.5",width:"24",height:"3",rx:"1.5",fill:c,opacity:"0.5"}),(0,n.jsx)("rect",{x:"14",y:"60.75",width:"132",height:"0.75",fill:u}),(0,n.jsx)("rect",{x:"19",y:"66.5",width:"18",height:"3",rx:"1.5",fill:c,opacity:"0.55"}),(0,n.jsx)("rect",{x:"52",y:"66.5",width:"28",height:"3",rx:"1.5",fill:c,opacity:"0.45"}),(0,n.jsx)("rect",{x:"94",y:"66.5",width:"20",height:"3",rx:"1.5",fill:c,opacity:"0.4"}),(0,n.jsx)("rect",{x:"14",y:"76.75",width:"132",height:"0.75",fill:u}),(0,n.jsx)("rect",{x:"19",y:"82.5",width:"20",height:"3",rx:"1.5",fill:c,opacity:"0.45"}),(0,n.jsx)("rect",{x:"52",y:"82.5",width:"32",height:"3",rx:"1.5",fill:c,op
13acity:"0.35"}),(0,n.jsx)("rect",{x:"14",y:"92.75",width:"132",height:"0.75",fill:u}),(0,n.jsx)("rect",{x:"19",y:"98.5",width:"16",height:"3",rx:"1.5",fill:c,opacity:"0.35"}),(0,n.jsx)("rect",{x:"52",y:"98.5",width:"24",height:"3",rx:"1.5",fill:c,opacity:"0.28"}),(0,n.jsx)("rect",{x:"14",y:"130",width:"60",height:"16",rx:"4",fill:a?"rgba(0,0,0,0.15)":"rgba(16,185,129,0.15)",stroke:a?"rgba(0,0,0,0.25)":"rgba(16,185,129,0.3)",strokeWidth:"1"}),(0,n.jsx)("rect",{x:"90",y:"132",width:"56",height:"12",rx:"3",fill:a?"rgba(0,0,0,0.28)":"#10B981",opacity:"0.75"}),(0,n.jsx)("rect",{x:"95",y:"135.5",width:"40",height:"2.5",rx:"1.25",fill:"rgba(255,255,255,0.6)"})]})}},685:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(6029),i=r(2203),o=r.n(i),s=r(5729);let a=s.forwardRef(function({title:e,titleId:t,...r},n){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:n,"aria-labelledby":t},r),e?s.createElement("title",{id:t},e):null,s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 6H5.25A2.25 2.25 0 003 8.25v10.5A2.25 2.25 0 005.25 21h10.5A2.25 2.25 0 0018 18.75V10.5m-10.5 6L21 3m0 0h-5.25M21 3v5.25"}))});function l({title:e,excerpt:t,href:r,cta:i="View",external:s=!1}){let c="before:absolute before:inset-0 before:content-[''] before:rounded-xl focus-visible:outline-none focus-visible:before:ring-2 focus-visible:before:ring-ring",u=s?(0,n.jsx)("a",{href:r,target:"_blank",rel:"noreferrer",className:c,children:e}):(0,n.jsx)(o(),{href:r,className:c,children:e});return(0,n.jsxs)("article",{className:"group relative rounded-xl border border-border bg-card p-6 transition-all duration-200 hover:-translate-y-0.5 hover:border-primary/40 hover:shadow-glow-sm",children:[(0,n.jsx)("h2",{className:"text-2xl font-bold tracking-tight text-foreground transition-colors group-hover:text-primary",children:u}),t?(0,n.jsx)("div",{className:"prose mt-3",dangerouslySetInnerHTML:{__html:t}}):null,(0,n.jsxs)("div",{className:"mt-5 inline-flex items-center gap-1.5 font-mono text-xs font-medium uppercase tracking-widest text-primary",children:[(0,n.jsx)("span",{children:i}),s?(0,n.jsx)(a,{className:"h-3.5 w-3.5 transition-transform group-hover:-translate-y-px group-hover:translate-x-px"}):(0,n.jsx)("span",{className:"transition-transform group-hover:translate-x-1","aria-hidden":"true",children:"→"})]})]})}},735:(e,t,r)=>{"use strict";var n=r(6509),i=r(4053),o=r(6185);(0,n.jK)({templates:i.A,Layout:o.P})},907:(e,t,r)=>{"use strict";r.d(t,{k5:()=>l});var n=r(5729),i={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},o=n.createContext&&n.createContext(i),s=function(){return(s=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},a=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};function l(e){return function(t){return n.createElement(c,s({attr:s({},e.attr)},t),function e(t){return t&&t.map(function(t,r){return n.createElement(t.tag,s({key:r},t.attr),e(t.child))})}(e.child))}}function c(e){var t=function(t){var r,i=e.attr,o=e.size,l=e.title,c=a(e,["attr","size","title"]),u=o||t.size||"1em";return t.className&&(r=t.className),e.className&&(r=(r?r+" ":"")+e.className),n.createElement("svg",s({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,i,c,{className:r,style:s(s({color:e.color||t.color},t.style),e.style),height:u,width:u,xmlns:"http://www.w3.org/2000/svg"}),l&&n.createElement("title",null,l),e.children)};return void 0!==o?n.createElement(o.Consumer,null,function(e){return t(e)}):t(i)}},1201:(e,t,r)=>{"use strict";r.d(t,{B:()=>l});var n,i=r(5729),o=r(5369),s=r(483),a=r(2925);let l=null!=(n=i.useId)?n:function(){let e=(0,a.g)(),[t,r]=i.useState(e?()=>o._.nextId():null);return(0,s.s)(()=>{null===t&&r(o._.nextId())},[t]),null!=t?""+t:void 0}},1278:(e,t,r)=>{e.exports=r(445)},1321:(e,t,r)=>{"use strict";r.d(t,{P:()=>a,a:()=>s});var n=r(5729),i=r(4149);let o=Symbol();function s(e,t=!0){return Object.assign(e,{[o]:t})}function a(...e){let t=(0,n.useRef)(e);(0,n.useEffect)(()=>{t.current=e},[e]);let r=(0,i._)(e=>{for(let r of t.current)null!=r&&("function"==typeof r?r(e):r.current=e)});return e.every(e=>null==e||(null==e?void 0:e[o]))?void 0:r}},1453:(e,t,r)=>{"use strict";let n;r.d(t,{El:()=>l,O_:()=>a,Uw:()=>s});var i=r(5729);let o=(0,i.createContext)(null);o.displayName="OpenClosedContext";var s=((n=s||{})[n.Open=1]="Open",n[n.Closed=2]="Closed",n[n.Closing=4]="Closing",n[n.Opening=8]="Opening",n);function a(){return(0,i.useContext)(o)}function l({value:e,children:t}){return i.createElement(o.Provider,{value:e},t)}},1673:(e,t,r)=>{"use strict";r.d(t,{T:()=>i});var n=r(5369);function i(e){return n._.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}},1805:(e,t,r)=>{"use strict";r.d(t,{YZ:()=>i,lG:()=>s,w:()=>o});var n=r(6029);function i({children:e,icon:t,align:r="center"}){return(0,n.jsxs)("div",{className:`flex items-center gap-3 ${"center"===r?"justify-center":"justify-start"}`,children:["center"===r&&(0,n.jsx)("span",{className:"hidden h-px w-10 bg-gradient-to-r from-transparent to-primary/40 sm:block","aria-hidden":"true"}),(0,n.jsxs)("span",{className:"inline-flex items-center gap-2 font-mono text-xs font-medium uppercase tracking-widest text-primary",children:[t&&(0,n.jsx)(t,{className:"size-3.5","aria-hidden":"true"}),e]}),(0,n.jsx)("span",{className:`${"center"===r?"hidden sm:block ":""}h-px ${"center"===r?"w-10 bg-gradient-to-l from-transparent to-primary/40":"w-16 bg-gradient-to-r from-primary/40 to-transparent"}`,"aria-hidden":"true"})]})}function o({eyebrow:e,icon:t,lead:r,accent:s,intro:a,align:l="center"}){return(0,n.jsxs)("div",{className:"center"===l?"mx-auto max-w-3xl text-center":"",children:[(0,n.jsx)(i,{icon:t,align:l,children:e}),(0,n.jsxs)("h2",{className:"mt-4 text-display-sm font-extrabold tracking-tight text-foreground sm:text-display-md",children:[r,(0,n.jsx)("br",{}),(0,n.jsx)("span",{className:"text-primary",children:s})]}),a&&(0,n.jsx)("p",{className:`mt-4 text-base text-muted-foreground sm:text-lg ${"center"===l?"":"max-w-xl"}`,children:a})]})}function s({children:e,className:t=""}){return(0,n.jsx)("div",{className:`ide-bg ide-border ide-text mt-6 rounded-lg border p-4 font-mono text-xs leading-relaxed ${t}`,children:e})}},2203:(e,t,r)=>{e.exports=r(6916)},2357:(e,t,r)=>{"use strict";function n(e){let t=e.parentElement,r=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(r=t),t=t.parentElement;let n=(null==t?void 0:t.getAttribute("disabled"))==="";return!(n&&function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(r))&&n}r.d(t,{l:()=>n})},2461:(e,t,r)=>{"use strict";r.d(t,{A:()=>m});
13var n=r(6029),i=r(6654),o=r(5729);let s=o.forwardRef(function({title:e,titleId:t,...r},n){return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:n,"aria-labelledby":t},r),e?o.createElement("title",{id:t},e):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 13.5l10.5-11.25L12 10.5h8.25L9.75 21.75 12 13.5H3.75z"}))}),a=o.forwardRef(function({title:e,titleId:t,...r},n){return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:n,"aria-labelledby":t},r),e?o.createElement("title",{id:t},e):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6.042A8.967 8.967 0 006 3.75c-1.052 0-2.062.18-3 .512v14.25A8.987 8.987 0 016 18c2.305 0 4.408.867 6 2.292m0-14.25a8.966 8.966 0 016-2.292c1.052 0 2.062.18 3 .512v14.25A8.987 8.987 0 0018 18a8.967 8.967 0 00-6 2.292m0-14.25v14.25"}))}),l=o.forwardRef(function({title:e,titleId:t,...r},n){return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:n,"aria-labelledby":t},r),e?o.createElement("title",{id:t},e):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 13.125C3 12.504 3.504 12 4.125 12h2.25c.621 0 1.125.504 1.125 1.125v6.75C7.5 20.496 6.996 21 6.375 21h-2.25A1.125 1.125 0 013 19.875v-6.75zM9.75 8.625c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125v11.25c0 .621-.504 1.125-1.125 1.125h-2.25a1.125 1.125 0 01-1.125-1.125V8.625zM16.5 4.125c0-.621.504-1.125 1.125-1.125h2.25C20.496 3 21 3.504 21 4.125v15.75c0 .621-.504 1.125-1.125 1.125h-2.25a1.125 1.125 0 01-1.125-1.125V4.125z"}))}),c=o.forwardRef(function({title:e,titleId:t,...r},n){return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:n,"aria-labelledby":t},r),e?o.createElement("title",{id:t},e):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17.25 6.75L22.5 12l-5.25 5.25m-10.5 0L1.5 12l5.25-5.25m7.5-3l-4.5 16.5"}))}),u=o.forwardRef(function({title:e,titleId:t,...r},n){return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:n,"aria-labelledby":t},r),e?o.createElement("title",{id:t},e):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.75 7.5l3 2.25-3 2.25m4.5 0h3m-9 8.25h13.5A2.25 2.25 0 0021 18V6a2.25 2.25 0 00-2.25-2.25H5.25A2.25 2.25 0 003 6v12a2.25 2.25 0 002.25 2.25z"}))}),d=o.forwardRef(function({title:e,titleId:t,...r},n){return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:n,"aria-labelledby":t},r),e?o.createElement("title",{id:t},e):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 3c2.755 0 5.455.232 8.083.678.533.09.917.556.917 1.096v1.044a2.25 2.25 0 01-.659 1.591l-5.432 5.432a2.25 2.25 0 00-.659 1.591v2.927a2.25 2.25 0 01-1.244 2.013L9.75 21v-6.568a2.25 2.25 0 00-.659-1.591L3.659 7.409A2.25 2.25 0 013 5.818V4.774c0-.54.384-1.006.917-1.096A48.32 48.32 
130 0112 3z"}))}),p=o.forwardRef(function({title:e,titleId:t,...r},n){return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:n,"aria-labelledby":t},r),e?o.createElement("title",{id:t},e):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.25 6.087c0-.355.186-.676.401-.959.221-.29.349-.634.349-1.003 0-1.036-1.007-1.875-2.25-1.875s-2.25.84-2.25 1.875c0 .369.128.713.349 1.003.215.283.401.604.401.959v0a.64.64 0 01-.657.643 48.39 48.39 0 01-4.163-.3c.186 1.613.293 3.25.315 4.907a.656.656 0 01-.658.663v0c-.355 0-.676-.186-.959-.401a1.647 1.647 0 00-1.003-.349c-1.036 0-1.875 1.007-1.875 2.25s.84 2.25 1.875 2.25c.369 0 .713-.128 1.003-.349.283-.215.604-.401.959-.401v0c.31 0 .555.26.532.57a48.039 48.039 0 01-.642 5.056c1.518.19 3.058.309 4.616.354a.64.64 0 00.657-.643v0c0-.355-.186-.676-.401-.959a1.647 1.647 0 01-.349-1.003c0-1.035 1.008-1.875 2.25-1.875 1.243 0 2.25.84 2.25 1.875 0 .369-.128.713-.349 1.003-.215.283-.4.604-.4.959v0c0 .333.277.599.61.58a48.1 48.1 0 005.427-.63 48.05 48.05 0 00.582-4.717.532.532 0 00-.533-.57v0c-.355 0-.676.186-.959.401-.29.221-.634.349-1.003.349-1.035 0-1.875-1.007-1.875-2.25s.84-2.25 1.875-2.25c.37 0 .713.128 1.003.349.283.215.604.401.96.401v0a.656.656 0 00.658-.663 48.422 48.422 0 00-.37-5.36c-1.886.342-3.81.574-5.766.689a.578.578 0 01-.61-.58v0z"}))}),f=o.forwardRef(function({title:e,titleId:t,...r},n){return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:n,"aria-labelledby":t},r),e?o.createElement("title",{id:t},e):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12.75L11.25 15 15 9.75m-3-7.036A11.959 11.959 0 013.598 6 11.99 11.99 0 003 9.749c0 5.592 3.824 10.29 9 11.623 5.176-1.332 9-6.03 9-11.622 0-1.31-.21-2.571-.598-3.751h-.152c-3.196 0-6.1-1.248-8.25-3.285z"}))}),h={Bars:i.A,Bars3Icon:i.A,BoltIcon:s,BookOpenIcon:a,ChartBarIcon:l,CodeBracketIcon:c,CommandLineIcon:u,FunnelIcon:d,PuzzlePieceIcon:p,ShieldCheckIcon:f};function m({icon:e,...t}){if(!e)return null;let r=h[e];return r?(0,n.jsx)(r,{className:"h-6 w-6","aria-hidden":"true",...t}):null}},2562:(e,t,r)=>{"use strict";let n,i;r.d(t,{FX:()=>m,O5:()=>l,XX:()=>u,cq:()=>p,mK:()=>c,oE:()=>g});var o=r(5729),s=r(2599),a=r(5219),l=((n=l||{})[n.None=0]="None",n[n.RenderStrategy=1]="RenderStrategy",n[n.Static=2]="Static",n),c=((i=c||{})[i.Unmount=0]="Unmount",i[i.Hidden=1]="Hidden",i);function u({ourProps:e,theirProps:t,slot:r,defaultTag:n,features:i,visible:o=!0,name:s,mergeRefs:l}){l=null!=l?l:f;let c=h(t,e);if(o)return d(c,r,n,s,l);let p=null!=i?i:0;if(2&p){let{static:e=!1,...t}=c;if(e)return d(t,r,n,s,l)}if(1&p){let{unmount:e=!0,...t}=c;return(0,a.Y)(+!e,{0:()=>null,1:()=>d({...t,hidden:!0,style:{display:"none"}},r,n,s,l)})}return d(c,r,n,s,l)}function d(e,t={},r,n,i){let{as:a=r,children:l,refName:c="ref",...u}=y(e,["unmount","static"]),p=void 0!==e.ref?{[c]:e.ref}:{},f="function"==typeof l?l(t):l;"className"in u&&u.className&&"function"==typeof u.className&&(u.className=u.className(t));let m={};if(t){let e=!1,r=[];for(let[n,i]of Object.entries(t))"boolean"==typeof i&&(e=!0),!0===i&&r.push(n);e&&(m["data-headlessui-state"]=r.join(" "))}if(a===o.Fragment&&Object.keys(g(u)).length>0){if(!(0,o.isValidElement)(f)||Array.isArray(f)&&f.length>1)throw Error(['Passing props on "Fragment"!',"",`The current component <${n} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(u).map(e=>`  - ${e}`).join(`
14`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(e=>`  - ${e}`).join(`
15`)].join(`
16`));let e=f.props,t="function"==typeof(null==e?void 0:e.className)?(...t)=>(0,s.x)(null==e?void 0:e.className(...t),u.className):(0,s.x)(null==e?void 0:e.className,u.className);return(0,o.cloneElement)(f,Object.assign({},h(f.props,g(y(u,["ref"]))),m,p,{ref:i(f.ref,p.ref)},t?{className:t}:{}))}return(0,o.createElement)(a,Object.assign({},y(u,["ref"]),a!==o.Fragment&&p,a!==o.Fragment&&m),f)}function p(){let e=(0,o.useRef)([]),t=(0,o.useCallback)(t=>{for(let r of e.current)null!=r&&("function"==typeof r?r(t):r.current=t)},[]);return(...r)=>{if(!r.every(e=>null==e))return e.current=r,t}}function f(...e){return e.every(e=>null==e)?void 0:t=>{for(let r of e)null!=r&&("function"==typeof r?r(t):r.current=t)}}function h(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},r={};for(let n of e)for(let e in n)e.startsWith("on")&&"function"==typeof n[e]?(null!=r[e]||(r[e]=[]),r[e].push(n[e])):t[e]=n[e];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(r).map(e=>[e,void 0])));for(let e in r)Object.assign(t,{[e](t,...n){for(let i of r[e]){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;i(t,...n)}}});return t}function m(e){var t;return Object.assign((0,o.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function g(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function y(e,t=[]){let r=Object.assign({},e);for(let e of t)e in r&&delete r[e];return r}},2599:(e,t,r)=>{"use strict";function n(...e){return Array.from(new Set(e.flatMap(e=>
16"string"==typeof e?e.split(" "):[]))).filter(Boolean).join(" ")}r.d(t,{x:()=>n})},2601:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={default:function(){return u},getImageProps:function(){return c}};for(var i in n)Object.defineProperty(t,i,{enumerable:!0,get:n[i]});let o=r(4761),s=r(4851),a=r(5815),l=o._(r(2645));function c(e){let{props:t}=(0,s.getImgProps)(e,{defaultLoader:l.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let u=a.Image},2645:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return s}});let n=r(8471),i=r(7637);function o({config:e,src:t,width:r,quality:s}){let a=(0,i.getDeploymentId)();if(t.startsWith("/")&&!t.startsWith("//"))if(t.includes("/_next/static/immutable")&&!(0,i.getAssetToken)())a=void 0;else{let e=t.indexOf("?");if(-1!==e){let r=new URLSearchParams(t.slice(e+1)),n=r.get("dpl");if(n){a=n,r.delete("dpl");let i=r.toString();t=t.slice(0,e)+(i?"?"+i:"")}}}if(t.startsWith("/")&&t.includes("?")&&e.localPatterns?.length===1&&"**"===e.localPatterns[0].pathname&&""===e.localPatterns[0].search)throw Object.defineProperty(Error(`Image with src "${t}" is using a query string which is not configured in images.localPatterns.
17Read more: https://nextjs.org/docs/messages/next-image-unconfigured-localpatterns`),"__NEXT_ERROR_CODE",{value:"E871",enumerable:!1,configurable:!0});let l=(0,n.findClosestQuality)(s,e);return`${e.path}?url=${encodeURIComponent(t)}&w=${r}&q=${l}${t.startsWith("/")&&a?`&dpl=${a}`:""}`}o.__next_img_default=!0;let s=o},2774:(e,t,r)=>{"use strict";let n,i,o,s,a;r.d(t,{BD:()=>d,Bm:()=>g,CU:()=>b,MZ:()=>m,Me:()=>p,iq:()=>h,wl:()=>v});var l=r(5219),c=r(1673);let u=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var d=((n=d||{})[n.First=1]="First",n[n.Previous=2]="Previous",n[n.Next=4]="Next",n[n.Last=8]="Last",n[n.WrapAround=16]="WrapAround",n[n.NoScroll=32]="NoScroll",n),p=((i=p||{})[i.Error=0]="Error",i[i.Overflow=1]="Overflow",i[i.Success=2]="Success",i[i.Underflow=3]="Underflow",i),f=((o=f||{})[o.Previous=-1]="Previous",o[o.Next=1]="Next",o);function h(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(u)).sort((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}var m=((s=m||{})[s.Strict=0]="Strict",s[s.Loose=1]="Loose",s);function g(e,t=0){var r;return e!==(null==(r=(0,c.T)(e))?void 0:r.body)&&(0,l.Y)(t,{0:()=>e.matches(u),1(){let t=e;for(;null!==t;){if(t.matches(u))return!0;t=t.parentElement}return!1}})}var y=((a=y||{})[a.Keyboard=0]="Keyboard",a[a.Mouse=1]="Mouse",a);function v(e,t=e=>e){return e.slice().sort((e,r)=>{let n=t(e),i=t(r);if(null===n||null===i)return 0;let o=n.compareDocumentPosition(i);return o&Node.DOCUMENT_POSITION_FOLLOWING?-1:o&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function b(e,t,{sorted:r=!0,relativeTo:n=null,skipElements:i=[]}={}){var o,s,a;let l=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,c=Array.isArray(e)?r?v(e):e:h(e);i.length>0&&c.length>1&&(c=c.filter(e=>!i.includes(e))),n=null!=n?n:l.activeElement;let u=(()=>{if(5&t)return 1;if(10&t)return -1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),d=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,c.indexOf(n))-1;if(4&t)return Math.max(0,c.indexOf(n))+1;if(8&t)return c.length-1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),p=32&t?{preventScroll:!0}:{},f=0,m=c.length,g;do{if(f>=m||f+m<=0)return 0;let e=d+f;if(16&t)e=(e+m)%m;else{if(e<0)return 3;if(e>=m)return 1}null==(g=c[e])||g.focus(p),f+=u}while(g!==l.activeElement);return 6&t&&null!=(a=null==(s=null==(o=g)?void 0:o.matches)?void 0:s.call(o,"textarea,input"))&&a&&g.select(),2}"u">typeof document&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0))},2909:(e,t,r)=>{"use strict";r.d(t,{A:()=>
17o});var n=r(6029),i=r(5088);function o({width:e,height:t,size:r,markOnly:s,variant:a="default",subLabel:l,className:c}){let u=r??e??t??40;return s?(0,n.jsx)(i.p,{size:u,variant:a,className:c}):(0,n.jsx)(i.Q,{size:u,variant:a,subLabel:l,className:c})}},2925:(e,t,r)=>{"use strict";r.d(t,{g:()=>s});var n,i=r(5729),o=r(5369);function s(){let e,t=(e="u"<typeof document,(0,(n||(n=r.t(i,2))).useSyncExternalStore)(()=>()=>{},()=>!1,()=>!e)),[s,a]=i.useState(o._.isHandoffComplete);return s&&!1===o._.isHandoffComplete&&a(!1),i.useEffect(()=>{!0!==s&&a(!0)},[s]),i.useEffect(()=>o._.handoff(),[]),!t&&s}},2940:(e,t,r)=>{"use strict";r.d(t,{j:()=>l});var n=r(5729),i=r(2774),o=r(6308);function s(e,t,r){let i=(0,o.Y)(t);(0,n.useEffect)(()=>{function t(e){i.current(e)}return document.addEventListener(e,t,r),()=>document.removeEventListener(e,t,r)},[e,r])}var a=r(22);function l(e,t,r=!0){let o=(0,n.useRef)(!1);function c(r,n){if(!o.current||r.defaultPrevented)return;let s=n(r);if(null!==s&&s.getRootNode().contains(s)&&s.isConnected){for(let t of function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e)){if(null===t)continue;let e=t instanceof HTMLElement?t:t.current;if(null!=e&&e.contains(s)||r.composed&&r.composedPath().includes(e))return}return(0,i.Bm)(s,i.MZ.Loose)||-1===s.tabIndex||r.preventDefault(),t(r,s)}}(0,n.useEffect)(()=>{requestAnimationFrame(()=>{o.current=r})},[r]);let u=(0,n.useRef)(null);s("pointerdown",e=>{var t,r;o.current&&(u.current=(null==(r=null==(t=e.composedPath)?void 0:t.call(e))?void 0:r[0])||e.target)},!0),s("mousedown",e=>{var t,r;o.current&&(u.current=(null==(r=null==(t=e.composedPath)?void 0:t.call(e))?void 0:r[0])||e.target)},!0),s("click",e=>{/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0||/Android/gi.test(window.navigator.userAgent)||u.current&&(c(e,()=>u.current),u.current=null)},!0),s("touchend",e=>c(e,()=>e.target instanceof HTMLElement?e.target:null),!0),(0,a.M)("blur",e=>c(e,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}},3029:(e,t,r)=>{"use strict";r.d(t,{e:()=>function e(){let t=[],r={addEventListener:(e,t,n,i)=>(e.addEventListener(t,n,i),r.add(()=>e.removeEventListener(t,n,i))),requestAnimationFrame(...e){let t=requestAnimationFrame(...e);return r.add(()=>cancelAnimationFrame(t))},nextFrame:(...e)=>r.requestAnimationFrame(()=>r.requestAnimationFrame(...e)),setTimeout(...e){let t=setTimeout(...e);return r.add(()=>clearTimeout(t))},microTask(...e){let t={current:!0};return(0,n._)(()=>{t.current&&e[0]()}),r.add(()=>{t.current=!1})},style(e,t,r){let n=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:r}),this.add(()=>{Object.assign(e.style,{[t]:n})})},group(t){let r=e();return t(r),this.add(()=>r.dispose())},add:e=>(t.push(e),()=>{let r=t.indexOf(e);if(r>=0)for(let e of t.splice(r,1))e()}),dispose(){for(let e of t.splice(0))e()}};return r}});var n=r(188)},3155:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return r(6892)}])},3429:(e,t,r)=>{"use strict";r.d(t,{o:()=>c});var n=r(5088),i=r(9667),o=r(595),s=r(4353),a=r(6170);let l={"wp-graphql":{description:"The GraphQL API for WordPress: schema, queries, mutations.",Mark:n.p,theme:""},acf:{description:"Query Advanced Custom Fields field groups with GraphQL.",Mark:o.d,theme:"theme-acf"},"smart-cache":{description:"Caching, invalidation, and persisted queries.",Mark:s.K,theme:"theme-smart-cache"},ide:{description:"Extend and embed the GraphQL IDE in wp-admin.",Mark:i.D,theme:"theme-ide"}};function c(){return(0,a.QQ)().map(e=>({...e,...l[e.key]??{}}))}},3860:(e,t,r)=>{"use strict";let n;r.d(t,{e:()=>C});var i=r(5729),o=r(158),s=r(4149),a=r(483);function l(){let e=(0,i.useRef)(!1);return(0,a.s)(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var c=r(6308),u=r(2925),d=r(1321),p=r(3029),f=r(5219);function h(e,...t){e&&t.length>0&&e.classList.add(...t)}function m(e,...t){e&&t.length>0&&e.classList.remove(...t)}var g=r(1453),y=r(2599),v=r(2562);function b(e=""){return e.split(/\s+/).filter(e=>e.length>1)}let x=(0,i.createContext)(null);x.displayName="TransitionContext";var w=((n=w||{}).Visible="visible",n.Hidden="hidden",n);let E=(0,i.createContext)(null);function k(e){return"children"in e?k(e.children):e.current.filter(({el:e})=>null!==e.current).filter(({state:e})=>"visible"===e).length>0}function _(e,t){let r=(0,c.Y)(e),n=(0,i.useRef)([]),a=l(),u=(0,o.L)(),d=(0,s._)((e,t=v.mK.Hidden)=>{let i=n.current.findIndex(({el:t})=>t===e);-1!==i&&((0,f.Y)(t,{[v.mK.Unmount](){n.current.splice(i,1)},[v.mK.Hidden](){n.current[i].state="hidden"}}),u.microTask(()=>{var e;!k(n)&&a.current&&(null==(e=r.current)||e.call(r))}))}),p=(0,s._)(e=>{let t=n.current.find(({el:t})=>t===e);return t?"visible"!==t.state&&(t.state="visible"):n.current.push({el:e,state:"visible"}),()=>d(e,v.mK.Unmount)}),h=(0,i.useRef)([]),m=(0,i.useRef)(Promise.resolve()),g=(0,i.useRef)({enter:[],leave:[],idle:[]}),y=(0,s._)((e,r,n)=>{h.current.splice(0),t&&(t.chains.current[r]=t.chains.current[r].filter(([t])=>t!==e)),null==t||t.chains.current[r].push([e,new Promise(e=>{h.current.push(e)})]),null==t||t.chains.current[r].push([e,new Promise(e=>{Promise.all(g.current[r].map(([e,t])=>t)).then(()=>e())}
17)]),"enter"===r?m.current=m.current.then(()=>null==t?void 0:t.wait.current).then(()=>n(r)):n(r)}),b=(0,s._)((e,t,r)=>{Promise.all(g.current[t].splice(0).map(([e,t])=>t)).then(()=>{var e;null==(e=h.current.shift())||e()}).then(()=>r(t))});return(0,i.useMemo)(()=>({children:n,register:p,unregister:d,onStart:y,onStop:b,wait:m,chains:g}),[p,d,n,y,b,g,m])}function j(){}E.displayName="NestingContext";let S=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function O(e){var t;let r={};for(let n of S)r[n]=null!=(t=e[n])?t:j;return r}let T=v.O5.RenderStrategy,P=(0,v.FX)(function(e,t){let{show:r,appear:n=!1,unmount:o=!0,...l}=e,c=(0,i.useRef)(null),p=(0,d.P)(c,t);(0,u.g)();let f=(0,g.O_)();if(void 0===r&&null!==f&&(r=(f&g.Uw.Open)===g.Uw.Open),![!0,!1].includes(r))throw Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[h,m]=(0,i.useState)(r?"visible":"hidden"),y=_(()=>{m("hidden")}),[b,w]=(0,i.useState)(!0),j=(0,i.useRef)([r]);(0,a.s)(()=>{!1!==b&&j.current[j.current.length-1]!==r&&(j.current.push(r),w(!1))},[j,r]);let S=(0,i.useMemo)(()=>({show:r,appear:n,initial:b}),[r,n,b]);(0,i.useEffect)(()=>{if(r)m("visible");else if(k(y)){let e=c.current;if(!e)return;let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&m("hidden")}else m("hidden")},[r,y]);let O={unmount:o},P=(0,s._)(()=>{var t;b&&w(!1),null==(t=e.beforeEnter)||t.call(e)}),A=(0,s._)(()=>{var t;b&&w(!1),null==(t=e.beforeLeave)||t.call(e)});return i.createElement(E.Provider,{value:y},i.createElement(x.Provider,{value:S},(0,v.XX)({ourProps:{...O,as:i.Fragment,children:i.createElement(N,{ref:p,...O,...l,beforeEnter:P,beforeLeave:A})},theirProps:{},defaultTag:i.Fragment,features:T,visible:"visible"===h,name:"Transition"})))}),N=(0,v.FX)(function(e,t){var r,n,w;let j,{beforeEnter:S,afterEnter:P,beforeLeave:N,afterLeave:A,enter:C,enterFrom:I,enterTo:q,entered:R,leave:F,leaveFrom:D,leaveTo:L,...M}=e,U=(0,i.useRef)(null),B=(0,d.P)(U,t),$=null==(r=M.unmount)||r?v.mK.Unmount:v.mK.Hidden,{show:W,appear:z,initial:K}=function(){let e=(0,i.useContext)(x);if(null===e)throw Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),[G,Q]=(0,i.useState)(W?"visible":"hidden"),H=function(){let e=(0,i.useContext)(E);if(null===e)throw Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:V,unregister:Y}=H;(0,i.useEffect)(()=>V(U),[V,U]),(0,i.useEffect)(()=>{if($===v.mK.Hidden&&U.current)return W&&"visible"!==G?void Q("visible"):(0,f.Y)(G,{hidden:()=>Y(U),visible:()=>V(U)})},[G,U,V,Y,W,$]);let X=(0,c.Y)({base:b(M.className),enter:b(C),enterFrom:b(I),enterTo:b(q),entered:b(R),leave:b(F),leaveFrom:b(D),leaveTo:b(L)}),J=(w={beforeEnter:S,afterEnter:P,beforeLeave:N,afterLeave:A},j=(0,i.useRef)(O(w)),(0,i.useEffect)(()=>{j.current=O(w)},[w]),j),Z=(0,u.g)();(0,i.useEffect)(()=>{if(Z&&"visible"===G&&null===U.current)throw Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[U,G,Z]);let ee=z&&W&&K,et=Z&&(!K||z)?W?"enter":"leave":"idle",er=function(e=0){let[t,r]=(0,i.useState)(e),n=l(),o=(0,i.useCallback)(e=>{n.current&&r(t=>t|e)},[t,n]),s=(0,i.useCallback)(e=>!!(t&e),[t]);return{flags:t,addFlag:o,hasFlag:s,removeFlag:(0,i.useCallback)(e=>{n.current&&r(t=>t&~e)},[r,n]),toggleFlag:(0,i.useCallback)(e=>{n.current&&r(t=>t^e)},[r])}}(0),en=(0,s._)(e=>(0,f.Y)(e,{enter:()=>{er.addFlag(g.Uw.Opening),J.current.beforeEnter()},leave:()=>{er.addFlag(g.Uw.Closing),J.current.beforeLeave()},idle:()=>{}})),ei=(0,s._)(e=>(0,f.Y)(e,{enter:()=>{er.removeFlag(g.Uw.Opening),J.current.afterEnter()},leave:()=>{er.removeFlag(g.Uw.Closing),J.current.afterLeave()},idle:()=>{}})),eo=_(()=>{Q("hidden"),Y(U)},H),es=(0,i.useRef)(!1);!function({immediate:e,container:t,direction:r,classes:n,onStart:i,onStop:s}){let u=l(),d=(0,o.L)(),g=(0,c.Y)(r);(0,a.s)(()=>{e&&(g.current="enter")},[e]),(0,a.s)(()=>{let e=(0,p.e)();d.add(e.dispose);let r=t.current;if(r&&"idle"!==g.current&&u.current){var o,a,l;let t,c,u,d,y,v,b;return e.dispose(),i.current(g.current),e.add((o=n.current,a="enter"===g.current,l=()=>{e.dispose(),s.current(g.current)},c=a?"enter":"leave",u=(0,p.e)(),d=void 0!==l?(t={called:!1},(...e)=>{if(!t.called)return t.called=!0,l(...e)}):()=>{}
17,"enter"===c&&(r.removeAttribute("hidden"),r.style.display=""),y=(0,f.Y)(c,{enter:()=>o.enter,leave:()=>o.leave}),v=(0,f.Y)(c,{enter:()=>o.enterTo,leave:()=>o.leaveTo}),b=(0,f.Y)(c,{enter:()=>o.enterFrom,leave:()=>o.leaveFrom}),m(r,...o.base,...o.enter,...o.enterTo,...o.enterFrom,...o.leave,...o.leaveFrom,...o.leaveTo,...o.entered),h(r,...o.base,...y,...b),u.nextFrame(()=>{m(r,...o.base,...y,...b),h(r,...o.base,...y,...v),function(e,t){let r=(0,p.e)();if(!e)return r.dispose;let{transitionDuration:n,transitionDelay:i}=getComputedStyle(e),[o,s]=[n,i].map(e=>{let[t=0]=e.split(",").filter(Boolean).map(e=>e.includes("ms")?parseFloat(e):1e3*parseFloat(e)).sort((e,t)=>t-e);return t}),a=o+s;if(0!==a){r.group(r=>{r.setTimeout(()=>{t(),r.dispose()},a),r.addEventListener(e,"transitionrun",e=>{e.target===e.currentTarget&&r.dispose()})});let n=r.addEventListener(e,"transitionend",e=>{e.target===e.currentTarget&&(t(),n())})}else t();r.add(()=>t()),r.dispose}(r,()=>(m(r,...o.base,...y),h(r,...o.base,...o.entered),d()))}),u.dispose)),e.dispose}},[r])}({immediate:ee,container:U,classes:X,direction:et,onStart:(0,c.Y)(e=>{es.current=!0,eo.onStart(U,e,en)}),onStop:(0,c.Y)(e=>{es.current=!1,eo.onStop(U,e,ei),"leave"!==e||k(eo)||(Q("hidden"),Y(U))})});let ea=M;return ee?ea={...ea,className:(0,y.x)(M.className,...X.current.enter,...X.current.enterFrom)}:es.current&&(ea.className=(0,y.x)(M.className,null==(n=U.current)?void 0:n.className),""===ea.className&&delete ea.className),i.createElement(E.Provider,{value:eo},i.createElement(g.El,{value:(0,f.Y)(G,{visible:g.Uw.Open,hidden:g.Uw.Closed})|er.flags},(0,v.XX)({ourProps:{ref:B},theirProps:ea,defaultTag:"div",features:T,visible:"visible"===G,name:"Transition.Child"})))}),A=(0,v.FX)(function(e,t){let r=null!==(0,i.useContext)(x),n=null!==(0,g.O_)();return i.createElement(i.Fragment,null,!r&&n?i.createElement(P,{ref:t,...e}):i.createElement(N,{ref:t,...e}))}),C=Object.assign(P,{Child:A,Root:P})},4053:(e,t,r)=>{"use strict";r.d(t,{A:()=>eg});var n=r(6029),i=r(270),o=r(2203),s=r.n(o);let a=(0,i.Ay)`
18  fragment PostPreview on Post {
19    id
20    title
21    uri
22    date
23    author {
24      node {
25        id
26        name
27        uri
28        avatar {
29          url
30        }
31      }
32    }
33  }
34`;function l({post:e,isLatest:t}){if(!e)return null;let r=e?.date?new Date(e.date).toLocaleDateString("en-us",{year:"numeric",month:"long",day:"numeric"}):null;return(0,n.jsxs)("article",{className:`flex w-full flex-col justify-between rounded-xl border border-border bg-card p-6 transition-all hover:border-primary/40 hover:shadow-glow-sm ${t?"xl:col-span-2 xl:row-span-2":""}`,children:[(0,n.jsxs)("div",{className:"mb-4 flex items-center",children:[(0,n.jsx)("img",{className:"mr-4 h-10 w-10 rounded-full border border-border",src:e.author.node.avatar.url,alt:e.author.node.name}),(0,n.jsxs)("div",{className:"text-sm",children:[(0,n.jsx)("p",{className:"leading-none text-foreground",children:e.author.node.name}),(0,n.jsx)("time",{className:"font-mono text-xs text-muted-foreground",dateTime:e.date,children:r})]})]}),(0,n.jsx)("div",{children:(0,n.jsx)("h2",{className:"mb-2 text-2xl font-bold leading-8 tracking-tight",children:(0,n.jsx)(s(),{href:e.uri,legacyBehavior:!0,children:(0,n.jsx)("a",{className:"text-foreground hover:text-primary transition-colors",children:e.title})})})})]})}var c=r(6185);function u({data:e}){if(!e||!e.category)return null;let{category:t}=e;return(0,n.jsx)(c.A,{children:(0,n.jsxs)("main",{className:"content px-6 max-w-lg mx-auto md:max-w-5xl mb-10",children:[(0,n.jsxs)("div",{className:"space-y-2 pt-6 pb-8 md:space-y-5",children:[(0,n.jsxs)("h1",{className:"text-display-md font-extrabold tracking-tight text-foreground sm:text-display-lg",children:["Category: ",t?.name??null]}),(0,n.jsx)("p",{className:"text-lg leading-7 text-muted-foreground",children:t?.description??null})]}),(0,n.jsx)("ul",{className:"grid gap-8 grid-cols-1 md:grid-cols-2 xl:grid-cols-3 auto-rows-fr",children:t?.posts?.nodes?.map((e,t)=>(0,n.jsx)("li",{className:`flex w-full ${0===t?"xl:col-span-2":""}`,children:(0,n.jsx)(l,{post:e,isLatest:0===t})},e.id))})]})})}u.queries={category:{query:(0,i.Ay)`
35      query Category_Node($id: ID!) {
36        category(id: $id, idType: URI) {
37          name
38          description
39          posts {
40            nodes {
41              ...PostPreview
42            }
43          }
44        }
45      }
46      ${a}
47    `,variables:({seed:e})=>({id:e?.uri})}};var d=r(8588),p=r.n(d);function f({data:e}){return(0,n.jsx)(c.A,{children:(0,n.jsx)("div",{className:"overflow-hidden",children:(0,n.jsx)("div",{className:"mx-auto px-4 pb-28  sm:px-6 md:px-8 xl:px-12 xl:max-w-6xl",children:(0,n.jsxs)("main",{className:"content space-y-6 divide-y divide-border",children:[(0,n.jsxs)("div",{className:"pt-10 max-w-3xl mx-auto 
47space-y-6 pb-16 ",children:[(0,n.jsx)("div",{className:"flex justify-center mb-8",children:(0,n.jsx)("dl",{children:(0,n.jsxs)("div",{className:"sm:flex sm:flex-wrap justify-center xl:block",children:[(0,n.jsx)("dt",{className:"sr-only",children:"Author"}),(0,n.jsx)("dd",{className:"flex justify-center font-medium m-6 sm:mx-3 xl:mx-0",children:(0,n.jsx)(p(),{src:e?.user?.avatar?.url,alt:e?.user?.name,width:50,height:50,className:"mr-3 h-10 w-10 rounded-full border border-border bg-muted"})}),(0,n.jsx)("dd",{className:"text-center items-center",children:(0,n.jsx)("h1",{className:"col-span-full break-words text-display-md font-extrabold tracking-tight text-foreground sm:text-display-lg",children:e?.user?.name})})]})})}),(0,n.jsx)("div",{className:"prose mx-auto max-w-3xl text-center text-lg leading-7",dangerouslySetInnerHTML:{__html:e?.user?.description??""}})]}),(0,n.jsx)("div",{className:"max-w-3xl mx-auto space-y-6",children:(0,n.jsx)("ul",{className:"divide-y divide-border",children:e?.user?.posts&&e?.user?.posts.nodes.map(e=>(0,n.jsx)("li",{className:"py-12",children:(0,n.jsx)(l,{post:e})},e.id))})})]})})})})}f.queries={user:{query:(0,i.Ay)`
48      query Author_User($id: ID!) {
49        user(id: $id, idType: URI) {
50          id
51          name
52          description
53          avatar {
54            url
55          }
56          posts {
57            nodes {
58              ...PostPreview
59            }
60          }
61        }
62      }
63      ${a}
64    `,variables:({seed:e})=>({id:e?.uri})}};var h=r(685),m=r(4611),g=r(8233),y=r(6196),v=r(6470);let b=(0,i.Ay)`
65  fragment ExtensionPreview on ExtensionPlugin {
66    id
67    title
68    uri
69    content
70    extensionFields {
71      pluginHost
72      pluginLink
73      pluginReadmeLink
74    }
75  }
76`;function x({extension:e}){return(0,n.jsx)(h.A,{title:e.title,excerpt:e?.content,href:e.extensionFields?.pluginLink,cta:"View Extension",external:!0})}let w=(0,i.Ay)`
77  fragment RecipePreview on CodeSnippet {
78    id
79    title
80    content
81    uri
82  }
83`;function E({recipe:e}){let t=e?.content?e.content.split("</p>"):null,r=t?t[0]+"</p>":null;return(0,n.jsx)(h.A,{title:e.title,excerpt:r,href:e.uri,cta:"View Recipe"})}let k=(0,i.Ay)`
84  fragment FilterPreview on Filter {
85    id
86    title
87    content
88    uri
89  }
90`;function _({filter:e}){let t=e?.content?e.content.split("</p>"):null,r=t?t[0]+"</p>":null;return(0,n.jsx)(h.A,{title:e.title,excerpt:r,href:e.uri,cta:"View Filter"})}let j=(0,i.Ay)`
91  fragment FunctionPreview on Function {
92    id
93    title
94    content
95    uri
96  }
97`;function S({node:e}){let t=e?.content?e.content.split("</p>"):null,r=t?t[0]+"</p>":null;return(0,n.jsx)(h.A,{title:e.title,excerpt:r,href:e.uri,cta:"View Function"})}let O=(0,i.Ay)`
98  fragment ActionPreview on Action {
99    id
100    title
101    content
102    uri
103  }
104`;function T({node:e}){let t=e?.content?e.content.split("</p>"):null,r=t?t[0]+"</p>":null;return(0,n.jsx)(h.A,{title:e.title,excerpt:r,href:e.uri,cta:"View Action"})}var P=r(5729);let N=P.forwardRef(function({title:e,titleId:t,...r},n){return P.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:n,"aria-labelledby":t},r),e?P.createElement("title",{id:t},e):null,P.createElement("path",{fillRule:"evenodd",d:"M4.25 2A2.25 2.25 0 002 4.25v2.5A2.25 2.25 0 004.25 9h2.5A2.25 2.25 0 009 6.75v-2.5A2.25 2.25 0 006.75 2h-2.5zm0 9A2.25 2.25 0 002 13.25v2.5A2.25 2.25 0 004.25 18h2.5A2.25 2.25 0 009 15.75v-2.5A2.25 2.25 0 006.75 11h-2.5zm9-9A2.25 2.25 0 0011 4.25v2.5A2.25 2.25 0 0013.25 9h2.5A2.25 2.25 0 0018 6.75v-2.5A2.25 2.25 0 0015.75 2h-2.5zm0 9A2.25 2.25 0 0011 13.25v2.5A2.25 2.25 0 0013.25 18h2.5A2.25 2.25 0 0018 15.75v-2.5A2.25 2.25 0 0015.75 11h-2.5z",clipRule:"evenodd"}))});var A=r(1805),C=r(9133),I=r(5973);function q({nodes:e=[]}){let t=e.filter(e=>!(0,I.y)(e?.title));return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("section",{className:"relative overflow-hidden border-b border-border",children:[(0,n.jsx)("div",{"aria-hidden":"true",className:"pointer-events-none absolute inset-0 -z-10",style:{background:"radial-gradient(ellipse 900px 500px at 50% 0%, hsl(var(--primary) / 0.10) 0%, transparent 70%)"}}),(0,n.jsxs)("div",{className:"mx-auto max-w-7xl px-6 py-20 lg:py-24",children:[(0,n.jsx)(A.w,{icon:N,eyebrow:"Featured Extensions",lead:"Built by the makers",accent:"of WPGraphQL.",intro:"First-party extensions from the WPGraphQL team — deeply integrated, actively maintained, and held to the same standard as core."}),(0,n.jsx)("div",{className:"mt-14 grid gap-6 md:grid-cols-3",children:I.b.map(({name:e,href:t,description:r,theme:i,Mark:o},a)=>(0,n.jsx)(s(),{href:t,legacyBehavior:!0,children:(0,n.jsxs)("a",{className:`${i} group relative flex flex-col overflow-hidden rounded-2xl border border-border bg-card p-8 transition-all hover:-translate-y-1 hover:border-primary/40 hover:shadow-glow-md`,children:[(0,n.jsx)(C.A,{variant:a}),(0,n.jsx)("div",{"aria-hidden":"true",className:"pointer-events-none absolute -left-4 -top-4 h-40 w-40 rounded-full bg-primary/20 blur-2xl transition-opacity group-hover:bg-primary/30"}),(0,n.jsx)("div",{"aria-hidden":"true",className:"pointer-events-none absolute inset-0 bg-gradient-to-b from-transparent via-card/30 to-card"}),(0,n.jsxs)("div",{className:"relative flex flex-1 flex-col",children:[(0,n.jsx)(o,{size:64,className:"h-16 w-16 rounded-xl"}),(0,n.jsx)("h3",{className:"mt-6 text-headline font-bold tracking-tight text-foreground",children:e}),(0,n.jsx)("p",{className:"mt-2 flex-1 text-base text-muted-foreground",children:r}),(0,n.jsxs)("span",{className:"mt-6 inline-flex items-center gap-1 text-sm font-semibold text-primary",children:["Explore ",e,(0,n.jsx)("span",{"aria-hidden":"true",className:"transition-transform group-hover:translate-x-0.5",children:"→"})]})]})]})},t))})]})]}),t.length>0&&(0,n.jsx)("section",{className:"bg-card/40",children:(0,n.jsxs)("div",{className:"mx-auto max-w-7xl px-6 py-20",children:[(0,n.jsx)(A.w,{icon:N,eyebrow:"Community Extensions",lead:"Built by the",accent:"wider community.",intro:"Plugins that extend WPGraphQL, maintained by the wider community."}),(0,n.jsx)("div",{className:"mx-auto mt-14 grid max-w-5xl gap-5",children:t.map(e=>(0,n.jsx)(x,{extension:e},e.id))})]})})]})}var R=r(9053),F=r.n(R);function D({data:e}){let{archive:t}=e,r=t?.contentNodes?.nodes??[];if(t?.uri?.startsWith("/recipes")||t?.__typename==="CodeSnippetTag"&&r.length>0&&r.every(e=>"CodeSnippet"===e.__typename)){let e=(0,y.A)(),i=r.filter(e=>"CodeSnippet"===e.__typename),o=v?.relations?.byUri??{},s=i.reduce((e,t,r)=>{let n=o[String(t.uri??"").replace(/\/+$/,"").toLowerCase()]||null,i=n?.group||"Uncategorized";return e[i]||(e[i]=[]),e[i].push({...t,title:n?.title||t.title||`Recipe ${r+1}`,summary:n?.summary||""}),e},{}),a=Object.keys(s).sort((e,t)=>
104"Uncategorized"===e?1:"Uncategorized"===t?-1:e.localeCompare(t)),l={},c=a.map(e=>{let t=function(e){let t,r=String(e??"").toLowerCase().trim();do t=r,r=r.replace(/<[^>]*>/g,"");while(r!==t);return r.replace(/&[a-z0-9#]+;/gi,"").replace(/[^a-z0-9\s-]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-")}(e)||"group",r=l[t]??0;return l[t]=r+1,{id:0===r?t:`${t}-${r}`,title:e,tagName:"h2"}}),u=[{id:"recipes",title:"Recipes",tagName:"h2"},...c];return(0,n.jsxs)(m.A,{docsNavData:e,toc:u,children:[(0,n.jsx)(g.A,{items:[{label:"Developer Reference",href:"/developer-reference"},{label:"Recipes"}]}),(0,n.jsxs)("div",{id:"content-wrapper",className:"relative z-20 mt-8 max-w-none prose dark:prose-dark prose-code:before:content-none prose-code:after:content-none",children:[(0,n.jsx)("h1",{children:t?.label?t.label:t?.name??"Recipes"}),t?.description?(0,n.jsx)("div",{dangerouslySetInnerHTML:{__html:t.description}}):(0,n.jsx)("p",{children:"WPGraphQL recipes are practical snippets that show how to customize WPGraphQL with actions, filters, and functions."}),(0,n.jsx)("div",{id:"recipes",children:a.map((e,t)=>{let r=s[e]||[],i=c[t];return(0,n.jsxs)("section",{children:[(0,n.jsx)("h2",{id:i?.id,children:e}),(0,n.jsx)("div",{className:"not-prose grid gap-5",children:r.map(e=>(0,n.jsx)(h.A,{title:e.title,excerpt:e.summary||(e?.content?function(e,t=180){let r=F()(String(e??"").replace(/<[^>]*>/g," ")).replace(/\u00a0/g," ").replace(/\s+/g," ").trim();return r.length<=t?r:`${r.slice(0,t).trim()}...`}(e.content):""),href:e.uri,cta:"View recipe"},e.id||e.uri))})]},e)})})]})]})}return r.some(e=>"ExtensionPlugin"===e.__typename)?(0,n.jsx)(c.A,{children:(0,n.jsx)(q,{nodes:r})}):(0,n.jsx)(c.A,{children:(0,n.jsxs)("div",{className:"mx-auto max-w-5xl px-6 pb-24 pt-16 sm:pt-20",children:[(0,n.jsxs)("header",{className:"mx-auto max-w-3xl text-center",children:[(0,n.jsx)("h1",{className:"text-display-md font-extrabold tracking-tight text-foreground sm:text-display-lg",children:t?.label?t.label:t?.name??"Archive"}),t?.description&&(0,n.jsx)("div",{className:"prose mx-auto mt-5 text-base leading-relaxed sm:text-lg",dangerouslySetInnerHTML:{__html:t.description}})]}),(0,n.jsx)("main",{className:"mt-12 grid gap-5 sm:mt-16",children:t?.contentNodes?.nodes?.map(e=>{switch(e.__typename){case"ExtensionPlugin":return(0,n.jsx)(x,{extension:e},e.id);case"CodeSnippet":return(0,n.jsx)(E,{recipe:e},e.id);case"Filter":return(0,n.jsx)(_,{filter:e},e.id);case"Function":return(0,n.jsx)(S,{node:e},e.id);case"Action":return(0,n.jsx)(T,{node:e},e.id);default:return(0,n.jsx)("pre",{className:"overflow-auto rounded-xl border border-border bg-card p-6 text-xs",children:JSON.stringify(e,null,2)},e.id)}})})]})})}function L({data:e}){return(0,n.jsx)(c.A,{children:(0,n.jsxs)("main",{className:"content",children:[(0,n.jsx)("h2",{children:"INDEX..."}),(0,n.jsx)("pre",{children:JSON.stringify(e,null,2)})]})})}function M(e){return F()(String(e??"").replace(/<[^>]*>/g," ")).replace(/\u00a0/g," ").replace(/\s+/g," ").trim()}function U({data:e}){var t;let r,i,{node:o}=e;if(!o)return null;let{content:a,toc:l}=(t=o.content,r={},i=[],{content:String(t??"").replace(/<h([23])([^>]*)>([\s\S]*?)<\/h\1>/gi,(e,t,n,o)=>{let s=n.match(/\sid=(["'])(.*?)\1/i),a=M(o),l=function(e){let t,r=String(e??"").toLowerCase().trim();do t=r,r=r.replace(/<[^>]*>/g,"");while(r!==t);return r.replace(/&[a-z0-9#]+;/gi,"").replace(/[^a-z0-9\s-]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-")}(s?.[2]||a)||"section",c=r[l]??0;r[l]=c+1;let u=0===c?l:`${l}-${c}`,d=2===Number(t)?"h2":"h3";i.push({id:u,title:a||"Section",tagName:d});let p=n.replace(/\sid=(["']).*?\1/i,"");return`<h${t}${p} id="${u}">${o}</h${t}>`}),toc:i}),c=(0,y.A)(),u=function(e,t=200){let r=M(e);return r.length<=t?r:`${r.slice(0,t).trim()}...`}(o.content),d=v?.relations?.byUri?.[String(o.uri??"").replace(/\/+$/,"").toLowerCase()]||null,p=Array.isArray(d?.relatedActions)?d.relatedActions:[],f=Array.isArray(d?.relatedFilters)?d.relatedFilters:[],h=Array.isArray(d?.relatedFunctions)?d.relatedFunctions:[],b=p.length>0||f.length>0||h.length>0,x=[{id:"overview",title:"Overview",tagName:"h2"},...b?[{id:"related-apis",title:"Related APIs",tagName:"h2"}]:[],...l];return(0,n.jsxs)(m.A,{docsNavData:c,toc:x,children:[(0,n.jsx)(g.A,{items:[{label:"Developer Reference",href:"/developer-reference"},{label:"Recipes",href:"/recipes"},...o.title?[{label:o.title}]:[]]}),(0,n.jsx)("div",{id:"content-wrapper",className:"relative z-20 mt-8 max-w-none prose dark:prose-dark prose-code:before:content-none prose-code:after:content-none",children:(0,n.jsxs)("article",{children:[(0,n.jsxs)("header",{children:[o.title?(0,n.jsx)("h1",{children:o.title}):null,u?(0,n.jsx)("p",{children:u}):null,o?.recipeTags?.nodes?.length?(0,n.jsx)("ul",{className:"not-prose m-0 mb-6 flex list-none flex-wrap gap-2 p-0",children:o.recipeTags.nodes.map(e=>(0,n.jsx)("li",{children:(0,n.jsx)(s(),{href:e.uri,className:"inline-flex items-center rounded-md border border-slate-300 px-2.5 py-1 text-xs font-semibold uppercase tracking-wide text-slate-700 hover:border-sky-500 hover:text-sky-500 dark:border-slate-600 dar
104k:text-slate-300 dark:hover:border-sky-300 dark:hover:text-sky-300",children:e.name})},e.id))}):null]}),(0,n.jsx)("div",{id:"overview",children:o.content?(0,n.jsx)("div",{id:"content",dangerouslySetInnerHTML:{__html:a}}):null}),b?(0,n.jsxs)("section",{id:"related-apis",children:[(0,n.jsx)("h2",{children:"Related APIs"}),p.length>0?(0,n.jsxs)("div",{children:[(0,n.jsx)("h3",{children:"Actions"}),(0,n.jsx)("ul",{children:p.map(e=>(0,n.jsx)("li",{children:(0,n.jsx)(s(),{href:`/actions/${e}`,children:e})},`action-${e}`))})]}):null,f.length>0?(0,n.jsxs)("div",{children:[(0,n.jsx)("h3",{children:"Filters"}),(0,n.jsx)("ul",{children:f.map(e=>(0,n.jsx)("li",{children:(0,n.jsx)(s(),{href:`/filters/${e}`,children:e})},`filter-${e}`))})]}):null,h.length>0?(0,n.jsxs)("div",{children:[(0,n.jsx)("h3",{children:"Functions"}),(0,n.jsx)("ul",{children:h.map(e=>(0,n.jsx)("li",{children:(0,n.jsx)(s(),{href:`/functions/${e}`,children:e})},`function-${e}`))})]}):null]}):null]})})]})}function B({data:e}){let{post:t}=e;if(!t)return null;let r=t?.date?new Date(t.date).toLocaleDateString("en-us",{weekday:"long",year:"numeric",month:"long",day:"numeric"}):null;return(0,n.jsx)(c.A,{children:(0,n.jsx)("div",{className:"overflow-hidden",children:(0,n.jsx)("div",{className:"mx-auto mt-10 px-4 pb-6 sm:mt-16 sm:px-6 md:px-8 xl:px-12 xl:max-w-6xl",children:(0,n.jsx)("main",{className:"content",children:(0,n.jsxs)("article",{className:"relative pt-10 max-w-3xl mx-auto",children:[(0,n.jsxs)("header",{children:[(0,n.jsxs)("dl",{children:[(0,n.jsx)("dt",{className:"sr-only",children:"Date"}),(0,n.jsx)("dd",{className:"absolute inset-x-0 top-0 text-center text-sm font-mono text-muted-foreground",children:(0,n.jsx)("time",{dateTime:t?.date,children:r})})]}),(0,n.jsxs)("div",{className:"space-y-6",children:[(0,n.jsx)("h1",{className:"col-span-full break-words text-center text-display-md font-extrabold tracking-tight text-foreground sm:text-display-lg",children:t.title}),(0,n.jsx)("div",{className:"flex flex-wrap justify-center gap-3",children:t?.categories?.nodes?.map((e,t)=>(0,n.jsx)(s(),{href:e.uri,legacyBehavior:!0,children:(0,n.jsx)("a",{className:"font-mono text-xs font-medium uppercase tracking-widest text-primary hover:text-orange-wpg-200",children:e.name})},t))})]}),(0,n.jsx)("div",{className:"flex justify-center my-8",children:(0,n.jsx)("dl",{children:(0,n.jsxs)("div",{className:"justify-center",children:[(0,n.jsx)("dt",{className:"sr-only",children:"Author"}),(0,n.jsx)("dd",{className:"flex justify-center font-medium mt-6 mx-3",children:(0,n.jsx)(p(),{src:t?.author?.node?.avatar?.url,alt:t?.author?.node?.name,width:50,height:50,className:"mr-3 h-10 w-10 rounded-full border border-border bg-muted"})}),(0,n.jsx)("dd",{className:"text-center items-center",children:(0,n.jsx)(s(),{href:t?.author?.node?.uri,legacyBehavior:!0,children:(0,n.jsx)("a",{className:"text-primary hover:text-orange-wpg-200 transition-colors pt-5 text-center",children:t?.author?.node?.name})})})]})})})]}),(0,n.jsx)("div",{className:"mx-auto py-12 px-4 max-w-7xl sm:px-6 lg:px-8 lg:py-12",children:(0,n.jsx)("div",{id:"content",className:"prose",dangerouslySetInnerHTML:{__html:t.content}})})]})})})})})}function $({data:e}){let t=e?.posts?.nodes;return(0,n.jsx)(c.A,{children:(0,n.jsxs)("main",{className:"content px-6 max-w-lg mx-auto md:max-w-5xl mb-10",children:[(0,n.jsxs)("div",{className:"space-y-2 pt-6 pb-8 md:space-y-5",children:[(0,n.jsx)("h1",{className:"text-display-md font-extrabold tracking-tight text-foreground sm:text-display-lg",children:"Blog"}),(0,n.jsx)("p",{className:"text-lg leading-7 text-muted-foreground",children:"Read the latest posts from the WPGraphQL team"})]}),(0,n.jsx)("ul",{className:"grid gap-8 grid-cols-1 md:grid-cols-2 xl:grid-cols-3 auto-rows-fr",children:t.map((e,t)=>(0,n.jsx)("li",{className:`flex w-full ${0===t?"xl:col-span-2":""}`,children:(0,n.jsx)(l,{post:e,isLatest:0===t})},e.id))})]})})}D.queries={archive:{query:(0,i.Ay)`
105      query Archive_Node($uri: String!) {
106        archive: nodeByUri(uri: $uri) {
107          __typename
108          id
109          uri
110          ... on ContentType {
111            name
112            description
113            label
114            contentNodes(first: 100) {
115              nodes {
116                __typename
117                ...ExtensionPreview
118                ...RecipePreview
119                ...FilterPreview
120                ...FunctionPreview
121                ...ActionPreview
122              }
123            }
124          }
125          ... on TermNode {
126            name
127            description
128            ... on CodeSnippetTag {
129              contentNodes(first: 100) {
130                nodes {
131                  __typename
132                  ...ExtensionPreview
133                  ...RecipePreview
134                  ...FilterPreview
135                  ...FunctionPreview
136                  ...ActionPreview
137                }
138              }
139            }
140          }
141        }
142      }
143      ${b}
144      ${w}
145      ${k}
146      ${j}
147      ${O}
148    `,variables:({seed:e})=>({uri:e?.uri})}},L.queries={posts:{query:(0,i.Ay)`
149      query Index_Posts {
150        INDEX: __typename
151        posts {
152          nodes {
153            id
154            title
155            author {
156              node {
157                name
158                uri
159              }
160            }
161          }
162        }
163      }
164    `,variables:()=>({})}},U.queries={node:{query:(0,i.Ay)`
165      query SingleCodeSnippet_Node($uri: ID!) {
166        node: contentNode(id: $uri, idType: URI) {
167          id
168          ... on NodeWithTitle {
169            title
170          }
171          uri
172          ... on NodeWithContentEditor {
173            content
174          }
175          ... on CodeSnippet {
176            recipeTags: codeSnippetTags {
177              nodes {
178                id
179                name
180                uri
181              }
182            }
183          }
184        }
185      }
186    `,variables:({seed:e})=>({uri:e?.uri})}},B.queries={post:{query:(0,i.Ay)`
187      query Singular_Post($uri: ID!) {
188        post(id: $uri, idType: URI) {
189          id
190          title
191          uri
192          date
193          content
194          author {
195            node {
196              name
197              uri
198              avatar {
199                url
200              }
201            }
202          }
203          categories {
204            nodes {
205              id
206              name
207              uri
208            }
209          }
210        }
211      }
212    `,variables:({uri:e})=>({uri:e})}},$.queries={posts:{query:(0,i.Ay)`
213      query ArchivePost_Posts($first: Int) {
214        posts(first: $first) {
215          nodes {
216            ...PostPreview
217          }
218        }
219      }
220      ${a}
221    `,variables:()=>({first:100})}};var W=r(6947);function z(){return(0,n.jsx)("section",{className:"px-4 py-20 sm:px-6 lg:px-8 lg:py-28",children:(0,n.jsxs)("div",{className:"relative mx-auto max-w-4xl overflow-hidden rounded-2xl border border-border bg-card px-8 py-16 text-center shadow-elev-lg sm:px-16",children:[(0,n.jsx)("div",{"aria-hidden":"true",className:"pointer-events-none absolute left-1/2 -bottom-1/4 -z-10 h-[60%] w-[60%] -translate-x-1/2 rounded-full bg-primary/20 blur-3xl"}),(0,n.jsx)("p",{className:"font-mono text-xs font-medium uppercase tracking-widest text-primary",children:"Get Started"}),(0,n.jsxs)("h2",{className:"mt-3 text-display-sm font-bold tracking-tight text-foreground sm:text-display-md",children:["Boost your productivity with"," ",(0,n.jsx)("span",{className:"text-primary",children:"WPGraphQL"})]}),(0,n.jsx)("p",{className:"mx-auto mt-4 max-w-xl text-base text-muted-foreground sm:text-lg",children:"Free, open-source, and trusted by teams shipping WordPress at scale."}),(0,n.jsxs)("div",{className:"mt-10 flex flex-wrap justify-center gap-4",children:[(0,n.jsx)(W.$,{asChild:!0,size:"lg",children:(0,n.jsx)("a",{href:"https://wordpress.org/plugins/wp-graphql",target:"_blank",rel:"noreferrer",children:"Download the Plugin"})}),(0,n.jsx)(W.$,{asChild:!0,variant:"secondary",size:"lg",children:(0,n.jsx)(s(),{href:"/docs/introduction",children:"Read the Docs"})})]})]})})}function K(){return(0,n.jsx)("section",{className:"px-4 py-20 sm:px-6 lg:px-8 lg:py-28",children:(0,n.jsxs)("div",{className:"mx-auto max-w-7xl",children:[(0,n.jsxs)("div",{className:"mx-auto max-w-3xl text-center",children:[(0,n.jsx)("p",{className:"font-mono text-xs font-medium uppercase tracking-widest text-primary",children:"Extensions"}),(0,n.jsxs)("h2",{className:"mt-3 text-display-sm font-bold tracking-tight text-foreground sm:text-display-md",children:["Take your graph ",(0,n.jsx)("span",{className:"text-primary",children:"further"})]}),(0,n.jsx)("p",{className:"mx-auto mt-5 max-w-prose text-base text-muted-foreground sm:text-lg",children:"Build queries faster, bring every custom field into your schema, and serve responses at the edge — first-party extensions from the team behind WPGraphQL, held to the same standard as core."})]}),(0,n.jsx)("div",{className:"mt-14 grid gap-6 md:grid-cols-3",children:I.b.map(({name:e,href:t,description:r,theme:i,Mark:o},a)=>(0,n.jsx)(s(),{href:t,legacyBehavior:!0,children:(0,n.jsxs)("a",{className:`${i} group relative flex flex-col overflow-hidden rounded-2xl border border-border bg-card p-8 transition-all hover:-translate-y-1 hover:border-primary/40 hover:shadow-glow-md`,children:[(0,n.jsx)(C.A,{variant:a}),(0,n.jsx)("div",{"aria-hidden":"true",className:"pointer-events-none absolute -left-4 -top-4 h-40 w-40 rounded-full bg-primary/20 blur-2xl transition-opacity group-hover:bg-primary/30"}),(0,n.jsx)("div",{"aria-hidden":"true",className:"pointer-events-none absolute inset-0 bg-gradient-to-b from-transparent via-card/30 to-card"}),(0,n.jsxs)("div",{className:"relative flex flex-1 flex-col",children:[(0,n.jsx)(o,{size:64,className:"h-16 w-16 rounded-xl"}),(0,n.jsx)("h3",{className:"mt-6 text-headline font-bold tracking-tight text-foreground",children:e}),(0,n.jsx)("p",{className:"mt-2 flex-1 text-base text-muted-foreground",children:r}),(0,n.jsxs)("span",{className:"mt-6 inline-flex items-center gap-1 text-sm font-semibold text-primary",children:["Explore ",e,(0,n.jsx)("span",{"aria-hidden":"true",className:"transition-transform group-hover:translate-x-0.5",children:"→"})]})]})]})},t))}),(0,n.jsx)("div",{className:"mt-12 flex justify-center",children:(0,n.jsx)(W.$,{asChild:!0,variant:"outline",size:"lg",children:(0,n.jsx)(s(),{href:"/extensions",children:"Browse all extensions"})})})]})})}
221let G={key:"ide-tok-key",str:"ide-tok-str",num:"ide-tok-num",kw:"ide-tok-kw",punc:"ide-tok-punc",cmt:"ide-tok-cmt"};function Q({kind:e="key",children:t}){return(0,n.jsx)("span",{className:G[e]||G.key,children:t})}function H({children:e}){return(0,n.jsx)("div",{className:"ide-pane-bg ide-muted border-b ide-border px-4 py-2 text-left font-mono text-[0.6rem] font-medium uppercase tracking-widest",children:e})}function V({query:e,response:t,label:r="GraphiQL",className:i=""}){return(0,n.jsxs)("div",{className:`ide-bg ide-text overflow-hidden rounded-xl border ide-border text-left shadow-elev-lg ${i}`,role:"img","aria-label":"Mock GraphQL IDE showing a query and its response",children:[(0,n.jsxs)("div",{className:"ide-header-bg flex items-center justify-between border-b ide-border px-4 py-2.5",children:[(0,n.jsxs)("div",{className:"flex gap-1.5",children:[(0,n.jsx)("span",{className:"size-2.5 rounded-full bg-[#FF5F57]"}),(0,n.jsx)("span",{className:"size-2.5 rounded-full bg-[#FEBC2E]"}),(0,n.jsx)("span",{className:"size-2.5 rounded-full bg-[#28C840]"})]}),(0,n.jsx)("span",{className:"ide-muted font-mono text-[0.65rem] font-medium uppercase tracking-widest",children:r})]}),(0,n.jsxs)("div",{className:"ide-divide grid grid-cols-1 sm:grid-cols-2 [&>*+*]:border-t sm:[&>*+*]:border-t-0 sm:[&>*+*]:border-l",children:[(0,n.jsxs)("section",{children:[(0,n.jsx)(H,{children:"Query"}),(0,n.jsx)("pre",{className:"overflow-x-auto px-4 py-4 text-left font-mono text-[0.8rem] leading-relaxed",children:e})]}),(0,n.jsxs)("section",{children:[(0,n.jsx)(H,{children:"Response"}),(0,n.jsx)("pre",{className:"overflow-x-auto px-4 py-4 text-left font-mono text-[0.8rem] leading-relaxed",children:t})]})]})]})}let Y=[{title:"Hello, world",author:"Jane Doe",date:"Dec 8, 2025"},{title:"Welcome to wpgraphql.blog",author:"Alex Chen",date:"Dec 4, 2025"},{title:"Querying sticky posts with GraphQL",author:"Sam Patel",date:"Nov 27, 2025"}];function X({children:e}){return(0,n.jsx)("div",{className:"ide-pane-bg ide-muted border-b ide-border px-4 py-2 text-left font-mono text-[0.6rem] font-medium uppercase tracking-widest",children:e})}function J({title:e,author:t,date:r}){return(0,n.jsxs)("article",{className:"ide-pane-bg group relative rounded-lg border ide-border p-3",children:[(0,n.jsx)("span",{"aria-hidden":"true",className:"absolute -top-2 left-3 rounded-sm border ide-border ide-pane-bg ide-tok-key px-1.5 py-0.5 font-mono text-[0.55rem] uppercase tracking-widest opacity-0 transition-opacity group-hover:opacity-100",children:"<PostCard />"}),(0,n.jsx)("h4",{className:"ide-text text-[0.85rem] font-semibold leading-tight",children:e}),(0,n.jsxs)("p",{className:"ide-muted mt-1 font-mono text-[0.65rem]",children:["by ",(0,n.jsx)("span",{className:"ide-tok-str",children:t})," \xb7 ",r]})]})}let Z=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Q,{kind:"cmt",children:"// pages/index.tsx"}),"\n",(0,n.jsx)(Q,{kind:"kw",children:"query"})," ",(0,n.jsx)(Q,{kind:"key",children:"GetRecentPosts"})," ",(0,n.jsx)(Q,{kind:"punc",children:"{"}),"\n","  ",(0,n.jsx)(Q,{kind:"key",children:"posts"})," ",(0,n.jsx)(Q,{kind:"punc",children:"{"}),"\n","    ",(0,n.jsx)(Q,{kind:"key",children:"nodes"})," ",(0,n.jsx)(Q,{kind:"punc",children:"{"}),"\n","      ",(0,n.jsx)(Q,{kind:"punc",children:"..."}),(0,n.jsx)(Q,{kind:"key",children:"PostCard"}),"\n","    ",(0,n.jsx)(Q,{kind:"punc",children:"}"}),"\n","  ",(0,n.jsx)(Q,{kind:"punc",children:"}"}),"\n",(0,n.jsx)(Q,{kind:"punc",children:"}"}),"\n","\n",(0,n.jsx)(Q,{kind:"cmt",children:"// components/PostCard.tsx"}),"\n",(0,n.jsx)(Q,{kind:"kw",children:"fragment"})," ",(0,n.jsx)(Q,{kind:"key",children:"PostCard"})," ",(0,n.jsx)(Q,{kind:"kw",children:"on"})," ",(0,n.jsx)(Q,{kind:"key",children:"Post"})," ",(0,n.jsx)(Q,{kind:"punc",children:"{"}),"\n","  ",(0,n.jsx)(Q,{kind:"key",children:"id"}),"\n","  ",(0,n.jsx)(Q,{kind:"key",children:"title"}),"\n","  ",(0,n.jsx)(Q,{kind:"key",children:"date"}),"\n","  ",(0,n.jsx)(Q,{kind:"key",children:"author"})," ",(0,n.jsx)(Q,{kind:"punc",children:"{"}),"\n","    ",(0,n.jsx)(Q,{kind:"key",children:"node"})," ",(0,n.jsx)(Q,{kind:"punc",children:"{"}),"\n","      ",(0,n.jsx)(Q,{kind:"key",children:"name"}),"\n","    ",(0,n.jsx)(Q,{kind:"punc",children:"}"}),"\n","  ",(0,n.jsx)(Q,{kind:"punc",children:"}"}),"\n",(0,n.jsx)(Q,{kind:"punc",children:"}"})]});function ee(){return(0,n.jsxs)("div",{className:"ide-bg ide-text overflow-hidden rounded-xl border ide-border text-left shadow-elev-lg",role:"img","aria-label":"Data colocation demo: a posts feed UI with co-located GraphQL fragments",children:[(0,n.jsxs)("div",{className:"ide-header-bg flex items-center justify-between border-b ide-border px-4 py-2.5",children:[(0,n.jsxs)("div",{className:"flex gap-1.5",children:[(0,n.jsx)("span",{className:"size-2.5 rounded-full bg-[#FF5F57]"}),(0,n.jsx)("span",{className:"size-2.5 rounded-full bg-[#FEBC2E]"}),(0,n.jsx)("span",{className:"size-2.5 rounded-full bg-[#28C840]"})]}),(0,n.jsx)("span",{className:"ide-muted font-mono text-[0.65rem] font-medium uppercase tracking-widest",children:"GraphQL \xb7 React"})]}),(0,n.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 [&>*+*]:border-t [&>*+*]:ide-border sm:[&>*+*]:border-t-0 sm:[&>*+*]:border-l",children:[(0,n.jsxs)("section",{children:[(0,n.jsx)(X,{children:"Preview"}),(0,n.jsxs)("div",{className:"space-y-3 p-4",children:[(0,n.jsx)("h3",{className:"ide-text font-mono text-[0.7rem] uppercase tracking-widest",children:"Recent Posts"}),Y.map(e=>(0,n.jsx)(J,{...e},e.title)),(0,n.jsx)("p",{className:"ide-muted pt-1 text-center font-mono text-[0.55rem]",children:"Hover a card to see its component name"})]})]}),(0,n.jsxs)("section",{children:[(0,n.jsx)(X,{children:"Co-located Fragments"}),(0,n.jsx)("pre",{className:"overflow-x-auto px-4 py-4 text-left font-mono text-[0.78rem] leading-relaxed",children:Z})]})]})]})}let et=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Q,{kind:"kw",children:"query"})," ",(0,n.jsx)(Q,{kind:"key",children:"GetUser"})," ",(0,n.jsx)(Q,{kind:"punc",children:"{"}),"\n","  ",(0,n.jsx)(Q,{kind:"key",children:"user"}),(0,n.jsx)(Q,{kind:"punc",children:"("}),(0,n.jsx)(Q,{kind:"key",children:"id"}),(0,n.jsx)(Q,{kind:"punc",children:": "}),(0,n.jsx)(Q,{kind:"str",children:'"dXNlcjox"'}),(0,n.jsxs)(Q,{kind:"punc",children:[") ","{"]}),"\n","    ",(0,n.jsx)(Q,{kind:"key",children:"name"}),"\n","    ",(0,n.jsx)(Q,{kind:"key",children:"email"}),"\n","  ",(0,n.jsx)(Q,{kind:"punc",children:"}"}),"\n",(0,n.jsx)(Q,{kind:"punc",children:"}"})]}),er=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Q,{kind:"punc",children:"{"}),"\n","  ",(0,n.jsx)(Q,{kind:"str",children:'"data"'}),(0,n.jsxs)(Q,{kind:"punc",children:[": ","{"]}),"\n","    ",(0,n.jsx)(Q,{kind:"str",children:'"user"'}),(0,n.jsxs)(Q,{kind:"punc",children:[": ","{"]}),"\n","      ",(0,n.jsx)(Q,{kind:"str",children:'"name"'}),(0,n.jsx)(Q,{kind:"punc",children:": "}),(0,n.jsx)(Q,{kind:"str",children:'"Jane Doe"'}),(0,n.jsx)(Q,{kind:"punc",children:","}),"\n","      ",(0,n.jsx)(Q,{kind:"str",children:'"email"'}),(0,n.jsx)(Q,{kind:"punc",children:": "}),(0,n.jsx)(Q,{kind:"str",children:'"[email protected]"'}),"\n","    ",(0,n.jsx)(Q,{kind:"punc",children:"}"}),"\n","  ",(0,n.jsx)(Q,{kind:"punc",children:"}"}),"\n",(0,n.jsx)(Q,{kind:"punc",children:"}"})]}),en=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Q,{kind:"kw",children:"query"})," ",(0,n.jsx)(Q,{kind:"key",children:"GetPostsWithAuthor"})," ",(0,n.jsx)(Q,{kind:"punc",children:"{"}),"\n","  ",(0,n.jsx)(Q,{kind:"key",children:"posts"})," ",(0,n.jsx)(Q,{kind:"punc",children:"{"}),"\n","    ",(0,n.jsx)(Q,{kind:"key",children:"nodes"})," ",(0,n.jsx)(Q,{kind:"punc",children:"{"}),"\n","      ",(0,n.jsx)(Q,{kind:"key",children:"title"}),"\n","      ",(0,n.jsx)(Q,{kind:"key",children:"author"})," ",(0,n.jsx)(Q,{kind:"punc",children:"{"}),"\n","        ",(0,n.jsx)(Q,{kind:"key",children:"node"})," ",(0,n.jsx)(Q,{kind:"punc",children:"{"}),"\n","          ",(0,n.jsx)(Q,{kind:"key",children:"name"}),"\n","        ",(0,n.jsx)(Q,{kind:"punc",children:"}"}),"\n","      ",(0,n.jsx)(Q,{kind:"punc",children:"}"}),"\n","      ",(0,n.jsx)(Q,{kind:"key",children:"categories"})," ",(0,n.jsx)(Q,{kind:"punc",children:"{"}),"\n","        ",(0,n.jsx)(Q,{kind:"key",children:"nodes"})," ",(0,n.jsx)(Q,{kind:"punc",children:"{"}),"\n","          ",(0,n.jsx)(Q,{kind:"key",children:"name"}),"\n","        ",(0,n.jsx)(Q,{kind:"punc",children:"}"}),"\n","      ",(0,n.jsx)(Q,{kind:"punc",children:"}"}),"\n","    ",(0,n.jsx)(Q,{kind:"punc",children:"}"}),"\n","  ",(0,n.jsx)(Q,{kind:"punc",children:"}"}),"\n",(0,n.jsx)(Q,{kind:"punc",children:"}"})]}),ei=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Q,{kind:"punc",children:"{"}),"\n","  ",(0,n.jsx)(Q,{kind:"str",children:'"data"'}),(0,n.jsxs)(Q,{kind:"punc",children:[": ","{"]}),"\n","    ",(0,n.jsx)(Q,{kind:"str",children:'"posts"'}),(0,n.jsxs)(Q,{kind:"punc",children:[": ","{"]}),"\n","      ",(0,n.jsx)(Q,{kind:"str",children:'"nodes"'}),(0,n.jsx)(Q,{kind:"punc",children:": ["}),"\n","        ",(0,n.jsx)(Q,{kind:"punc",children:"{"}),"\n","          ",(0,n.jsx)(Q,{kind:"str",children:'"title"'}),(0,n.jsx)(Q,{kind:"punc",children:": "}),(0,n.jsx)(Q,{kind:"str",children:'"Hello, world"'}),(0,n.jsx)(Q,{kind:"punc",children:","}),"\n","          ",(0,n.jsx)(Q,{kind:"str",children:'"author"'}),(0,n.jsxs)(Q,{kind:"punc",children:[": ","{"]}),"\n","            ",(0,n.jsx)(Q,{kind:"str",children:'"node"'}),(0,n.jsxs)(Q,{kind:"punc",children:[": ","{"]}),"\n","              ",(0,n.jsx)(Q,{kind:"str",children:'"name"'}),(0,n.jsx)(Q,{kind:"punc",children:": "}),(0,n.jsx)(Q,{kind:"str",children:'"Jane"'}),"\n","            ",(0,n.jsx)(Q,{kind:"punc",children:"}"}),"\n","          ",(0,n.jsx)(Q,{kind:"punc",children:"}"}),(0,n.jsx)(Q,{kind:"punc",children:","}),"\n","          ",(0,n.jsx)(Q,{kind:"str",children:'"categories"'}),(0,n.jsxs)(Q,{kind:"punc",children:[": ","{"]}),"\n","            ",(0,n.jsx)(Q,{kind:"str",children:'"nodes"'}),(0,n.jsx)(Q,{kind:"punc",children:": ["}),"\n","              ",(0,n.jsx)(Q,{kind:"punc",children:"{"}),"\n","                ",(0,n.jsx)(Q,{kind:"str",children:'"name"'}),(0,n.jsx)(Q,{kind:"punc",children:": "}),(0,n.jsx)(Q,{kind:"str",children:'"News"'}),"\n","              ",(0,n.jsx)(Q,{kind:"punc",children:"}"}),"\n","            ",(0,n.jsx)(Q,{kind:"punc",children:"]"}),"\n","          ",(0,n.jsx)(Q,{kind:"punc",children:"}"}),"\n","        ",(0,n.jsx)(Q,{kind:"punc",children:"}"}),"\n","      ",(0,n.jsx)(Q,{kind:"punc",children:"]"}),"\n","    ",(0,n.jsx)(Q,{kind:"punc",children:"}"}),"\n","  ",(0,n.jsx)(Q,{kind:"punc",children:"}"}),"\n",(0,n.jsx)(Q,{kind:"punc",children:"}"})]});function eo({eyebrow:e,title:t,body:r,query:i,response:o}){return(0,n.jsx)("section",{className:"py-20 sm:py-28",children:(0,n.jsxs)("div",{className:"mx-auto max-w-3xl px-4 text-center sm:px-6 lg:max-w-7xl lg:px-8",children:[(0,n.jsx)("p",{className:"font-mono text-xs font-medium uppercase tracking-widest text-primary",children:e}),(0,n.jsx)("h2",{className:"mt-3 text-display-sm font-bold tracking-tight text-foreground sm:text-display-md",children:t}),(0,n.jsx)("p",{className:"mx-auto mt-5 max-w-prose text-base text-muted-foreground sm:text-lg",children:r}),(0,n.jsx)("div",{className:"mx-auto mt-12 max-w-4xl",children:(0,n.jsx)(V,{query:i,response:o})})]})})}function es(){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(eo,{eyebrow:"Efficient Data Fetching",title:(0,n.jsxs)(n.Fragment,{children:["Query what you need."," ",(0,n.jsx)("span",{className:"text-primary",children:"Get exactly that."})]}),body:"With GraphQL, the client makes declarative queries, asking for the exact data needed, and exactly what was asked for is given in response — nothing more. Clients have control over their application, and the GraphQL server only fetches what was requested.",query:et,response:er}
221),(0,n.jsx)(eo,{eyebrow:"Nested Resources",title:(0,n.jsxs)(n.Fragment,{children:["Fetch many resources in a"," ",(0,n.jsx)("span",{className:"text-primary",children:"single request"})]}),body:"GraphQL queries access multiple root resources and smoothly follow references between connected ones. While a typical REST API would require round-trip requests to many endpoints, GraphQL can return everything your app needs in one round-trip — quick even on slow mobile connections.",query:en,response:ei}),(0,n.jsx)("section",{className:"py-20 sm:py-28",children:(0,n.jsxs)("div",{className:"mx-auto max-w-3xl px-4 text-center sm:px-6 lg:max-w-7xl lg:px-8",children:[(0,n.jsx)("p",{className:"font-mono text-xs font-medium uppercase tracking-widest text-primary",children:"Data Colocation"}),(0,n.jsxs)("h2",{className:"mt-3 text-display-sm font-bold tracking-tight text-foreground sm:text-display-md",children:["Define data needs"," ",(0,n.jsx)("span",{className:"text-primary",children:"next to your components"})]}),(0,n.jsx)("p",{className:"mx-auto mt-5 max-w-prose text-base text-muted-foreground sm:text-lg",children:"GraphQL fragments let each component declare the fields it needs. Compose those fragments into one query at the page level — the data graph stays in sync with the UI tree, automatically."}),(0,n.jsx)("div",{className:"mx-auto mt-12 max-w-4xl",children:(0,n.jsx)(ee,{})})]})})]})}let ea=[{name:"Gatsby",src:"/logos/logo-gatsby.png"}
221,{name:"Next.js",src:"/logos/logo-nextjs.png"},{name:"Vue",src:"/logos/logo-vue.png"},{name:"Svelte",src:"/logos/logo-svelte.png"}];function el(){return(0,n.jsx)("section",{className:"px-4 py-20 sm:px-6 lg:px-8 lg:py-28",children:(0,n.jsxs)("div",{className:"mx-auto max-w-7xl",children:[(0,n.jsxs)("div",{className:"mx-auto max-w-3xl text-center",children:[(0,n.jsx)("p",{className:"font-mono text-xs font-medium uppercase tracking-widest text-primary",children:"Framework Agnostic"}),(0,n.jsxs)("h2",{className:"mt-3 text-display-sm font-bold tracking-tight text-foreground sm:text-display-md",children:["Build rich JavaScript applications with"," ",(0,n.jsx)("span",{className:"text-primary",children:"WordPress & GraphQL"})]}),(0,n.jsx)("p",{className:"mx-auto mt-5 max-w-prose text-base text-muted-foreground sm:text-lg",children:"WPGraphQL separates your CMS from your presentation layer. Content creators use the CMS they know; developers use the frameworks and tools they love."})]}),(0,n.jsx)("div",{className:"mx-auto mt-14 grid max-w-4xl grid-cols-2 gap-3 sm:grid-cols-4",children:ea.map(e=>(0,n.jsxs)("div",{className:"group flex flex-col items-center gap-3 rounded-xl border border-border bg-card p-6 transition-all hover:-translate-y-1 hover:border-primary/40 hover:shadow-glow-sm",children:[(0,n.jsx)(p(),{src:e.src,alt:e.name,height:56,width:56,className:"h-14 w-auto"}),(0,n.jsx)("span",{className:"font-mono text-xs uppercase tracking-widest text-muted-foreground group-hover:text-foreground",children:e.name})]},e.name))})]})})}let ec=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Q,{kind:"kw",children:"query"})," ",(0,n.jsx)(Q,{kind:"key",children:"GetPosts"})," ",(0,n.jsx)(Q,{kind:"punc",children:"{"}),"\n","  ",(0,n.jsx)(Q,{kind:"key",children:"posts"})," ",(0,n.jsx)(Q,{kind:"punc",children:"{"}),"\n","    ",(0,n.jsx)(Q,{kind:"key",children:"nodes"})," ",(0,n.jsx)(Q,{kind:"punc",children:"{"}),"\n","      ",(0,n.jsx)(Q,{kind:"key",children:"title"}),"\n","      ",(0,n.jsx)(Q,{kind:"key",children:"date"}),"\n","    ",(0,n.jsx)(Q,{kind:"punc",children:"}"}),"\n","  ",(0,n.jsx)(Q,{kind:"punc",children:"}"}),"\n",(0,n.jsx)(Q,{kind:"punc",children:"}"})]}),eu=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Q,{kind:"punc",children:"{"}),"\n","  ",(0,n.jsx)(Q,{kind:"str",children:'"data"'}),(0,n.jsxs)(Q,{kind:"punc",children:[": ","{"]}),"\n","    ",(0,n.jsx)(Q,{kind:"str",children:'"posts"'}),(0,n.jsxs)(Q,{kind:"punc",children:[": ","{"]}),"\n","      ",(0,n.jsx)(Q,{kind:"str",children:'"nodes"'}),(0,n.jsx)(Q,{kind:"punc",children:": ["}),"\n","        ",(0,n.jsx)(Q,{kind:"punc",children:"{"}),"\n","          ",(0,n.jsx)(Q,{kind:"str",children:'"title"'}),(0,n.jsx)(Q,{kind:"punc",children:": "}),(0,n.jsx)(Q,{kind:"str",children:'"Hello, world"'}),(0,n.jsx)(Q,{kind:"punc",children:","}),"\n","          ",(0,n.jsx)(Q,{kind:"str",children:'"date"'}),(0,n.jsx)(Q,{kind:"punc",children:": "}),(0,n.jsx)(Q,{kind:"str",children:'"2025-12-08"'}),"\n","        ",(0,n.jsx)(Q,{kind:"punc",children:"}"}),"\n","      ",(0,n.jsx)(Q,{kind:"punc",children:"]"}),"\n","    ",(0,n.jsx)(Q,{kind:"punc",children:"}"}),"\n","  ",(0,n.jsx)(Q,{kind:"punc",children:"}"}),"\n",(0,n.jsx)(Q,{kind:"punc",children:"}"})]});function ed(){return(0,n.jsxs)("section",{className:"relative overflow-hidden",children:[(0,n.jsx)(C.A,{variant:7,count:48,width:1440,height:720,opacity:.75,intensity:1.6,className:"-z-10 [mask-image:linear-gradient(to_bottom,black,transparent_85%)]"}),(0,n.jsx)("div",{className:"mx-auto max-w-8xl px-4 py-20 sm:px-6 lg:px-8 lg:py-28",children:(0,n.jsxs)("div",{className:"grid items-center gap-12 lg:grid-cols-2",children:[(0,n.jsxs)("div",{className:"lg:max-w-xl",children:[(0,n.jsxs)("span",{className:"inline-flex items-center gap-2 rounded-full border border-border bg-card/60 px-3 py-1 font-mono text-xs text-muted-foreground",children:[(0,n.jsx)("span",{className:"size-1.5 rounded-full bg-primary animate-glow-pulse"}),"Free \xb7 Open Source \xb7 GPL-3"]}),(0,n.jsxs)("h1",{className:"mt-6 text-display-md font-extrabold tracking-tight text-foreground sm:text-display-lg",children:["GraphQL API for"," ",(0,n.jsx)("span",{className:"text-primary",children:"every WordPress site"})]}),(0,n.jsx)("p",{className:"mt-6 max-w-lg text-base leading-relaxed text-muted-foreground sm:text-lg",children:"WPGraphQL is a free, open-source WordPress plugin that provides an extendable GraphQL schema and API for any WordPress site."}),(0,n.jsxs)("div",{className:"mt-10 flex flex-wrap items-center gap-4",children:[(0,n.jsx)(W.$,{asChild:!0,size:"lg",children:(0,n.jsx)("a",{href:"https://wordpress.org/plugins/wp-graphql",target:"_blank",rel:"noreferrer",children:"Download the Plugin"})}),(0,n.jsx)(W.$,{asChild:!0,variant:"secondary",size:"lg",children:(0,n.jsx)(s(),{href:"/docs/introduction",children:"Read the Docs"})})]})]}),(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsx)(V,{query:ec,response:eu}),(0,n.jsx)("div",{"aria-hidden":"true",className:"pointer-events-none absolute right-0 top-0 -z-10 h-[55vh] w-[55vh] -translate-y-1/3 translate-x-1/3 rounded-full bg-primary/15 blur-3xl"})]})]})})]})}let ep=[{src:"/logos/logo-apollo.png",alt:"Apollo GraphQL",width:80,height:80},{src:"/logos/logo-credit-karma.png",alt:"Credit Karma",width:80,height:80},{src:"/logos/logo-denverpost.svg",alt:"The Denver Post",width:220,height:80},{src:"/logos/logo-dfuzr.png",alt:"Dfuzr",width:260,height:80},{src:"/logos/logo-funkhaus.png",alt:"Funkhaus",width:280,height:80},{src:"/logos/logo-harness.png",alt:"Harness Software",width:250,height:75},{src:"/logos/logo-webdev-studios.png",alt:"Web Dev Studios",width:200,height:75},{src:"/logos/logo-quartz.jpg",alt:"Quartz",width:80,height:80},{src:"/logos/logo-hope-lab.png",alt:"Hope Lab",width:120,height:80}];function ef(){return(0,n.jsx)("section",{className:"px-4 py-20 sm:px-6 lg:px-8 lg:py-28",children:(0,n.jsxs)("div",{className:"mx-auto max-w-7xl text-center",children:[(0,n.jsx)("p",{className:"font-mono text-xs font-medium uppercase tracking-widest text-primary",children:"Trusted by"}),(0,n.jsx)("h2",{className:"mt-3 text-display-sm font-bold tracking-tight text-foreground sm:text-display-md",children:"Who's using WPGraphQL?"}),(0,n.jsx)("p",{className:"mx-auto mt-5 max-w-2xl text-base text-muted-foreground sm:text-lg",children:"Digital agencies, product teams and freelancers around the world trust WPGraphQL in production to bridge modern front-end stacks with content managed in WordPress."}),(0,n.jsx)("div",{className:"mt-12 grid grid-cols-2 gap-3 sm:grid-cols-3",children:ep.map(e=>(0,n.jsx)("div",{className:"flex h-28 items-center justify-center rounded-xl border border-border bg-white px-8 ring-1 ring-transparent transition-all hover:ring-primary/40",children:(0,n.jsx)(p(),{src:e.src,alt:e.alt,width:e.width,height:e.height,className:"max-h-12 w-auto opacity-90 transition-opacity hover:opacity-100"})},e.alt))})]})})}function eh({data:e}){return(0,n.jsx)(c.A,{children:(0,n.jsxs)("main",{className:"content",children:[(0,n.jsx)(ed,{}),(0,n.jsx)(el,{}),(0,n.jsx)(es,{}),(0,n.jsx)(K,{}),(0,n.jsx)(ef,{}),(0,n.jsx)(z,{})]})})}function em({data:e}){let{post:t}=e;return t?(0,n.jsx)(c.A,{children:(0,n.jsx)("div",{className:"overflow-hidden",children:(0,n.jsx)("div",{className:"mx-auto mt-10 px-4 pb-6 sm:mt-16 sm:px-6 md:px-8 xl:px-12 xl:max-w-6xl",children:(0,n.jsx)("main",{className:"content",children:(0,n.jsxs)("article",{className:"relative pt-10 max-w-3xl mx-auto",children:[(0,n.jsx)("header",{children:(0,n.jsx)("div",{className:"space-y-6",children:(0,n.jsx)("h1",{className:"col-span-full break-words text-center text-display-md font-extrabold tracking-tight text-foreground sm:text-display-lg",children:t.title})})}),(0,n.jsx)("div",{className:"mx-auto py-12 px-4 max-w-7xl sm:px-6 lg:px-8 lg:py-12",children:(0,n.jsx)("div",{id:"content",className:"prose",dangerouslySetInnerHTML:{__html:t.content}})})]})})})})}):null}eh.layoutProps={meta:{title:"WPGraphQL - The GraphQL API for WordPress"}},eh.queries={},em.queries={post:{query:(0,i.Ay)`
222      query SingleDeveloperReference_Post($uri: ID!) {
223        post(id: $uri, idType: URI) {
224          id
225          title
226          uri
227          content
228        }
229      }
230    `,variables:({seed:e})=>({uri:e?.uri})}};let eg={category:u,author:f,archive:D,"archive-post":$,"single-code-snippet"
230:U,"single-function":em,"single-action":em,"single-filter":em,singular:B,"front-page":eh,home:$,index:L}},4149:(e,t,r)=>{"use strict";r.d(t,{_:()=>o});var n=r(5729),i=r(6308);let o=function(e){let t=(0,i.Y)(e);return n.useCallback((...e)=>t.current(...e),[t])}},4353:(e,t,r)=>{"use strict";r.d(t,{K:()=>i});var n=r(6029);function i({size:e=32,variant:t="default",showGlow:r=!1,showSweep:o=!1,className:s,style:a}){let l="reversed"===t,c=l?"rgba(0,0,0,0.55)":"#F43F5E",u=l?"rgba(0,0,0,0.2)":"#F43F5E",d=e<=20?5:e<=32?3.5:1.5,p=e<=20?6:e<=32?4:2,f=e<=20?7:e<=32?4.5:2.5;return(0,n.jsxs)("svg",{width:e,height:e,viewBox:"0 0 160 160",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-label":"WPGraphQL Smart Cache",className:s,style:{...r?{filter:"drop-shadow(0 0 24px rgba(244,63,94,0.42)) drop-shadow(0 0 6px rgba(244,63,94,0.25))"}:{},...a},children:[(0,n.jsx)("rect",{width:"160",height:"160",rx:"36",fill:l?"#F43F5E":"#0C1220"}),(0,n.jsx)("circle",{cx:"80",cy:"80",r:"60",stroke:c,strokeWidth:d,fill:"none",opacity:"0.18"}),(0,n.jsx)("circle",{cx:"80",cy:"80",r:"44",stroke:c,strokeWidth:p,fill:"none",opacity:"0.40"}),(0,n.jsx)("circle",{cx:"80",cy:"80",r:"28",stroke:c,strokeWidth:f,fill:"none",opacity:"0.72"}),o&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("path",{d:"M 80 80 L 130 30 A 71 71 0 0 0 151 80 Z",fill:u,opacity:"0.05"}),(0,n.jsx)("line",{x1:"80",y1:"80",x2:"130",y2:"30",stroke:u,strokeWidth:"1",strokeLinecap:"round",opacity:"0.2"}),(0,n.jsx)("circle",{cx:"116",cy:"44",r:"2.5",fill:l?"rgba(0,0,0,0.5)":"#FB7185",opacity:"0.75"})]}),(0,n.jsx)("circle",{cx:"80",cy:"80",r:"9",fill:l?"rgba(0,0,0,0.45)":"#F43F5E",opacity:"0.93"}),(0,n.jsx)("circle",{cx:"80",cy:"80",r:"4.5",fill:l?"rgba(255,255,255,0.75)":"#FFF1F2",opacity:"0.87"})]})}},4611:(e,t,r)=>{"use strict";r.d(t,{A:()=>N});var n=r(6029),i=r(5669),o=r.n(i),s=r(5729),a=r(2203),l=r.n(a),c=r(1278),u=r(5429),d=r(4656);function p(e){return(e||"").split(/[?#]/)[0].replace(/\/$/,"")}function f(e,t){if(!e)return!1;let r=p(e.href);return!!r&&r===t||!!Array.isArray(e.items)&&e.items.some(e=>f(e,t))}function h({item:e,currentPath:t,className:r}){let i=p(e.href),o=i&&i===t;return(0,n.jsx)(l(),{href:e.href,legacyBehavior:!0,children:(0,n.jsx)("a",{"aria-current":o?"page":void 0,className:(0,d.cn)("-ml-px block border-l py-1 pl-4 text-sm transition-colors",o?"border-primary text-primary":"border-transparent text-muted-foreground hover:border-primary/50 hover:text-foreground",r),children:e.title})})}function m({item:e,currentPath:t}){let r=f(e,t),[i,o]=(0,s.useState)(null),[a,l]=(0,s.useState)(t);a!==t&&(l(t),o(null));let c=i??r;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"flex items-center",children:[(0,n.jsx)("div",{className:"min-w-0 flex-1",children:(0,n.jsx)(h,{item:e,currentPath:t})}),(0,n.jsx)("button",{type:"button","aria-expanded":c,"aria-label":`${c?"Collapse":"Expand"} ${e.title}`,onClick:()=>o(!c),className:"flex h-6 w-6 flex-none items-center justify-center rounded text-muted-foreground transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:(0,n.jsx)(u.A,{"aria-hidden":"true",className:(0,d.cn)("h-4 w-4 transition-transform",c&&"rotate-90")})})]}),c&&(0,n.jsx)("ul",{className:"ml-4 border-l border-border",children:e.items.map(e=>(0,n.jsx)("li",{children:(0,n.jsx)(h,{item:e,currentPath:t})},e.href))})]})}function g({docsNavData:e}){let{asPath:t}=(0,c.useRouter)(),r=p(t),i=(0,s.useMemo)(()=>{if(!e)return null;for(let[t,n]of Object.entries(e))if(n?.some(e=>f(e,r)))return t;return null},[e,r]),o=(0,s.useRef)({});return((0,s.useEffect)(()=>{if(!i)return;let e=o.current[i];if(!e)return;let t=function(e){let t=e?.parentElement;for(;t;){let e=window.getComputedStyle(t).overflowY;if("auto"===e||"scroll"===e)return t;t=t.parentElement}return null}(e);if(!t)return;let r=e.getBoundingClientRect().top,n=t.getBoundingClientRect().top;t.scrollTop+=r-n},[i,r]),e)?(0,n.jsx)("nav",{children:Object.keys(e).reduce((t,i)=>{let s=e[i];return s?.length&&t.push((0,n.jsxs)("div",{ref:e=>{e&&(o.current[i]=e)},className:"mb-8",children:[(0,n.jsx)("h3",{className:"mb-3 font-mono text-xs font-medium uppercase tracking-widest text-muted-foreground",children:i}),(0,n.jsx)("ul",{className:"border-l border-border space-y-1",children:s.map(e=>(0,n.jsx)("li",{children:Array.isArray(e.items)&&e.items.length>0?(0,n.jsx)(m,{item:e,currentPath:r}):(0,n.jsx)(h,{item:e,currentPath:r})},e.href??e.title))})]},i)),t},[])}):null}var y=r(6550),v=r(3860);let b=s.forwardRef(function({title:e,titleId:t,...r},n){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:n,"aria-labelledby":t},r),e?s.createElement("title",{id:t},e):null,s.createElement("path",{fillRule:"evenodd",d:"M10 3a.75.75 0 01.55.24l3.25 3.5a.75.75 0 11-1.1 1.02L10 4.852 7.3 7.76a.75.75 0 01-1.1-1.02l3.25-3.5A.75.75 0 0110 3zm-3.76 9.2a.75.75 0 011.06.04l2.7 2.908 2.7-2.908a.75.75 0 111.1 1.02l-3.25 3.5a.75.75 0 01-1.1 0l-3.25-3.5a.75.75 0 01.04-1.06z",clipRule:"evenodd"}))}),x=s.forwardRef(function({title:e,titleId:t,...r},n){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:n,"aria-labelledby":t},r),e?s.createElement("title",{id:t},e):null,s.createElement("path",{fillRule:"evenodd",d:"M16.704 4.153a.75.75 0 01.143 1.052l-8 10.5a.75.75 0 01-1.127.075l-4.5-4.5a.75.75 0 011.06-1.06l3.894 3.893 7.48-9.817a.75.75 0 011.05-.143z",clipRule:"evenodd"}))});var w=r(3429);function E({product:e}){let t=(0,c.useRouter)(),r=(0,w.o)();if(r.length<2)return null;let i=r.find(t=>t.key===e?.key)??r[0];return(0,n.jsx)("div",{className:"mb-6",children:(0,n.jsxs)(y.W,{value:i.key,onChange:e=>{let n=r.find(t=>t.key===e);
230n&&n.key!==i.key&&t.push(n.basePath)},children:[(0,n.jsx)(y.W.Label,{className:"mb-2 block text-xs font-semibold uppercase tracking-wide text-muted-foreground",children:"Viewing docs for"}),(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsxs)(y.W.Button,{className:"flex w-full items-center gap-2 rounded-md border border-border bg-card px-3 py-2 text-left text-sm font-medium text-foreground shadow-sm transition-colors hover:border-primary/50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:[i.Mark&&(0,n.jsx)(i.Mark,{size:20,className:"h-5 w-5 flex-shrink-0"}),(0,n.jsx)("span",{className:"flex-1 truncate",children:i.label}),(0,n.jsx)(b,{className:"h-4 w-4 flex-shrink-0 text-muted-foreground","aria-hidden":"true"})]}),(0,n.jsx)(v.e,{as:s.Fragment,leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,n.jsx)(y.W.Options,{className:"absolute z-30 mt-1 w-full overflow-hidden rounded-md border border-border bg-card py-1 shadow-lg focus:outline-none",children:r.map(e=>(0,n.jsx)(y.W.Option,{value:e.key,className:({active:t})=>`${e.theme??""} flex cursor-pointer items-center gap-2 px-3 py-2 text-sm ${t?"bg-accent text-foreground":"text-muted-foreground"}`,children:({selected:t})=>(0,n.jsxs)(n.Fragment,{children:[e.Mark&&(0,n.jsx)(e.Mark,{size:20,className:"h-5 w-5 flex-shrink-0"}),(0,n.jsx)("span",{className:`flex-1 truncate ${t?"font-semibold text-primary":""}`,children:e.label}),t&&(0,n.jsx)(x,{className:"h-4 w-4 flex-shrink-0 text-primary","aria-hidden":"true"})]})},e.key))})})]})]})})}var k=r(6185);function _({toc:e}){let[t,r]=(0,s.useState)(null);return((0,s.useEffect)(()=>{if(!e?.length)return;let t=e.map(e=>e.id).filter(Boolean).map(e=>document.getElementById(e)).filter(Boolean);if(!t.length)return;let n=new Map,i=new IntersectionObserver(e=>{if(e.forEach(e=>{e.isIntersecting?n.set(e.target.id,e.target):n.delete(e.target.id)}),0===n.size)return;let t=null,i=1/0;for(let e of n.values()){let r=e.getBoundingClientRect().top;r<i&&(i=r,t=e)}t&&r(t.id)},{rootMargin:"-80px 0px -60% 0px",threshold:[0,1]});return t.forEach(e=>i.observe(e)),()=>i.disconnect()},[e]),e&&Array.isArray(e)&&0!==e.length)?(0,n.jsxs)("nav",{"aria-label":"Table of contents",children:[(0,n.jsx)("h2",{className:"mb-3 font-mono text-xs font-medium uppercase tracking-widest text-muted-foreground",children:"On this page"}),(0,n.jsx)("ul",{className:"border-l border-border space-y-1 text-sm leading-6",children:e.map(e=>{let r=e.id===t;return(0,n.jsx)("li",{className:"h3"===e.tagName?"ml-3":"",children:(0,n.jsx)(l(),{href:`#${e.id}`,legacyBehavior:!0,children:(0,n.jsx)("a",{className:(0,d.cn)("-ml-px block border-l py-1 pl-4 transition-colors",r?"border-primary text-primary":"border-transparent text-muted-foreground hover:border-primary/50 hover:text-foreground"),children:e.title})})},e.id)})})]}):null}var j=r(8631);let S=s.forwardRef(function({title:e,titleId:t,...r},n){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:n,"aria-labelledby":t},r),e?s.createElement("title",{id:t},e):null,s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6.75h16.5M3.75 12h16.5M12 17.25h8.25"}))});var O=r(8696);function T({children:e}){return(0,n.jsx)(j.A,{children:({open:t})=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(j.A.Button,{className:"fixed right-6 bottom-6 z-50 inline-flex h-12 w-12 items-center justify-center rounded-full border border-border bg-card text-foreground shadow-elev-md transition-colors hover:bg-accent focus:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:t?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"sr-only",children:"Close Docs Nav menu"}),(0,n.jsx)(O.A,{title:"Close",className:"h-6 w-6"})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"sr-only",children:"Open Docs Nav menu"}),(0,n.jsx)(S,{title:"Open",className:"h-6 w-6"})]})}),(0,n.jsx)(j.A.Panel,{children:(0,n.jsx)("div",{className:"fixed inset-0 z-40 h-[100dvh] w-[100dvw] overflow-scroll bg-background p-6 pt-24",children:e})})]})})}var P=r(6170);function N({children:e,toc:t,docsNavData:r,product:i}){let s=i?.themeClass??"",a=i?.key??P.s;return(0,n.jsxs)(k.A,{children:[(0,n.jsx)(o(),{children:(0,n.jsx)("meta",{name:"docsearch:product",content:a})}),(0,n.jsxs)("div",{className:s,children:[(0,n.jsx)("aside",{className:"z-20 lg:hidden",children:(0,n.jsxs)(T,{children:[(0,n.jsx)(E,{product:i}),(0,n.jsx)(g,{docsNavData:r})]})}),(0,n.jsx)("div",{className:"mx-auto w-full max-w-8xl px-6 lg:px-8",children:(0,n.jsxs)("div",{className:"lg:grid lg:grid-cols-[14rem_minmax(0,1fr)_12rem] lg:gap-10",children:[(0,n.jsx)("aside",{id:"docs-nav",className:"hidden lg:block",children:(0,n.jsxs)("div",{className:"sticky top-16 max-h-[calc(100vh-4rem)] overflow-y-auto py-10 pr-4",children:[(0,n.jsx)(E,{product:i}),(0,n.jsx)(g,{docsNavData:r})]})}),(0,n.jsx)("article",{id:"doc-content",className:"min-w-0 py-10",children:(0,n.jsx)("div",{className:"mx-auto max-w-3xl",children:e})}),(0,n.jsx)("aside",{id:"doc-table-of-contents",className:"hidden lg:block",children:(0,n.jsx)("div",{className:"sticky top-16 max-h-[calc(100vh-4rem)] overflow-y-auto py-10",children:t&&(0,n.jsx)(_,{toc:t})})})]})})]})]})}},4656:(e,t,r)=>{"use strict";let n,i,o,s,a;r.d(t,{cn:()=>ew});var l,c=r(212);let u=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),d=[],p=(e,t,r)=>{if(0==e.length-t)return r.classGroupId;let n=e[t],i=r.nextPart.get(n);if(i){let r=p(e,t+1,i);if(r)return r}let o=r.validators;if(null===o)return;let s=0===t?e.join("-"):e.slice(t).join("-"),a=o.length;for(let e=0;e<a;
230e++){let t=o[e];if(t.validator(s))return t.classGroupId}},f=(e,t)=>{let r=u();for(let n in e)h(e[n],r,n,t);return r},h=(e,t,r,n)=>{let i=e.length;for(let o=0;o<i;o++)m(e[o],t,r,n)},m=(e,t,r,n)=>{"string"==typeof e?g(e,t,r):"function"==typeof e?y(e,t,r,n):v(e,t,r,n)},g=(e,t,r)=>{(""===e?t:b(t,e)).classGroupId=r},y=(e,t,r,n)=>{x(e)?h(e(n),t,r,n):(null===t.validators&&(t.validators=[]),t.validators.push({classGroupId:r,validator:e}))},v=(e,t,r,n)=>{let i=Object.entries(e),o=i.length;for(let e=0;e<o;e++){let[o,s]=i[e];h(s,b(t,o),r,n)}},b=(e,t)=>{let r=e,n=t.split("-"),i=n.length;for(let e=0;e<i;e++){let t=n[e],i=r.nextPart.get(t);i||(i=u(),r.nextPart.set(t,i)),r=i}return r},x=e=>"isThemeGetter"in e&&!0===e.isThemeGetter,w=[],E=(e,t,r,n,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:i}),k=/\s+/,_=e=>{let t;if("string"==typeof e)return e;let r="";for(let n=0;n<e.length;n++)e[n]&&(t=_(e[n]))&&(r&&(r+=" "),r+=t);return r},j=[],S=e=>{let t=t=>t[e]||j;return t.isThemeGetter=!0,t},O=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,T=/^\((?:(\w[\w-]*):)?(.+)\)$/i,P=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,N=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,A=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,C=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,I=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,q=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,R=e=>P.test(e),F=e=>!!e&&!Number.isNaN(Number(e)),D=e=>!!e&&Number.isInteger(Number(e)),L=e=>e.endsWith("%")&&F(e.slice(0,-1)),M=e=>N.test(e),U=()=>!0,B=e=>A.test(e)&&!C.test(e),$=()=>!1,W=e=>I.test(e),z=e=>q.test(e),K=e=>!H(e)&&!er(e),G=e=>e.startsWith("@container")&&("/"===e[10]&&void 0!==e[11]||"s"===e[11]&&void 0!==e[16]&&e.startsWith("-size/",10)||"n"===e[11]&&void 0!==e[18]&&e.startsWith("-normal/",10)),Q=e=>eu(e,eh,$),H=e=>O.test(e),V=e=>eu(e,em,B),Y=e=>eu(e,eg,F),X=e=>eu(e,ev,U),J=e=>eu(e,ey,$),Z=e=>eu(e,ep,$),ee=e=>eu(e,ef,z),et=e=>eu(e,eb,W),er=e=>T.test(e),en=e=>ed(e,em),ei=e=>ed(e,ey),eo=e=>ed(e,ep),es=e=>ed(e,eh),ea=e=>ed(e,ef),el=e=>ed(e,eb,!0),ec=e=>ed(e,ev,!0),eu=(e,t,r)=>{let n=O.exec(e);return!!n&&(n[1]?t(n[1]):r(n[2]))},ed=(e,t,r=!1)=>{let n=T.exec(e);return!!n&&(n[1]?t(n[1]):r)},ep=e=>"position"===e||"percentage"===e,ef=e=>"image"===e||"url"===e,eh=e=>"length"===e||"size"===e||"bg-size"===e,em=e=>"length"===e,eg=e=>"number"===e,ey=e=>"family-name"===e,ev=e=>"number"===e||"weight"===e,eb=e=>"shadow"===e,ex=(l=()=>{let e=S("color"),t=S("font"),r=S("text"),n=S("font-weight"),i=S("tracking"),o=S("leading"),s=S("breakpoint"),a=S("container"),l=S("spacing"),c=S("radius"),u=S("shadow"),d=S("inset-shadow"),p=S("text-shadow"),f=S("drop-shadow"),h=S("blur"),m=S("perspective"),g=S("aspect"),y=S("ease"),v=S("animate"),b=()=>["auto","avoid","all","avoid-page","page","left","right","column"],x=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],w=()=>[...x(),er,H],E=()=>["auto","hidden","clip","visible","scroll"],k=()=>["auto","contain","none"],_=()=>[er,H,l],j=()=>[R,"full","auto",..._()],O=()=>[D,"none","subgrid",er,H],T=()=>["auto",{span:["full",D,er,H]},D,er,H],P=()=>[D,"auto",er,H],N=()=>["auto","min","max","fr",er,H],A=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],C=()=>["start","end","center","stretch","center-safe","end-safe"],I=()=>["auto",..._()],q=()=>[R,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",..._()],B=()=>[R,"screen","full","dvw","lvw","svw","min","max","fit",..._()],$=()=>[R,"screen","full","lh","dvh","lvh","svh","min","max","fit",..._()],W=()=>[e,er,H],z=()=>[...x(),eo,Z,{position:[er,H]}],eu=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ed=()=>["auto","cover","contain",es,Q,{size:[er,H]}],ep=()=>[L,en,V],ef=()=>["","none","full",c,er,H],eh=()=>["",F,en,V],em=()=>["solid","dashed","dotted","double"],eg=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ey=()=>[F,L,eo,Z],ev=()=>["","none",h,er,H],eb=()=>["none",F,er,H],ex=()=>["none",F,er,H],ew=()=>[F,er,H],eE=()=>[R,"full",..._()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[M],breakpoint:[M],color:[U],container:[M],"drop-shadow":[M],ease:["in","out","in-out"],font:[K],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[M],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[M],shadow:[M],spacing:["px",F],text:[M],"text-shadow":[M],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",R,H,er,g]}],container:["container"],"container-type":[{"@container":["","normal","size",er,H]}
vendor: 6,084 bytes, line 230
230],"container-named":[G],columns:[{columns:[F,H,er,a]}],"break-after":[{"break-after":b()}],"break-before":[{"break-before":b()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:w()}],overflow:[{overflow:E()}],"overflow-x":[{"overflow-x":E()}],"overflow-y":[{"overflow-y":E()}],overscroll:[{overscroll:k()}],"overscroll-x":[{"overscroll-x":k()}],"overscroll-y":[{"overscroll-y":k()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:j()}],"inset-x":[{"inset-x":j()}],"inset-y":[{"inset-y":j()}],start:[{"inset-s":j(),start:j()}],end:[{"inset-e":j(),end:j()}],"inset-bs":[{"inset-bs":j()}],"inset-be":[{"inset-be":j()}],top:[{top:j()}],right:[{right:j()}],bottom:[{bottom:j()}],left:[{left:j()}],visibility:["visible","invisible","collapse"],z:[{z:[D,"auto",er,H]}],basis:[{basis:[R,"full","auto",a,..._()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[F,R,"auto","initial","none",H]}],grow:[{grow:["",F,er,H]}],shrink:[{shrink:["",F,er,H]}],order:[{order:[D,"first","last","none",er,H]}],"grid-cols":[{"grid-cols":O()}],"col-start-end":[{col:T()}],"col-start":[{"col-start":P()}],"col-end":[{"col-end":P()}],"grid-rows":[{"grid-rows":O()}],"row-start-end":[{row:T()}],"row-start":[{"row-start":P()}],"row-end":[{"row-end":P()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":N()}],"auto-rows":[{"auto-rows":N()}],gap:[{gap:_()}],"gap-x":[{"gap-x":_()}],"gap-y":[{"gap-y":_()}],"justify-content":[{justify:[...A(),"normal"]}],"justify-items":[{"justify-items":[...C(),"normal"]}],"justify-self":[{"justify-self":["auto",...C()]}],"align-content":[{content:["normal",...A()]}],"align-items":[{items:[...C(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...C(),{baseline:["","last"]}]}],"place-content":[{"place-content":A()}],"place-items":[{"place-items":[...C(),"baseline"]}],"place-self":[{"place-self":["auto",...C()]}],p:[{p:_()}],px:[{px:_()}],py:[{py:_()}],ps:[{ps:_()}],pe:[{pe:_()}],pbs:[{pbs:_()}],pbe:[{pbe:_()}],pt:[{pt:_()}],pr:[{pr:_()}],pb:[{pb:_()}],pl:[{pl:_()}],m:[{m:I()}],mx:[{mx:I()}],my:[{my:I()}],ms:[{ms:I()}],me:[{me:I()}],mbs:[{mbs:I()}],mbe:[{mbe:I()}],mt:[{mt:I()}],mr:[{mr:I()}],mb:[{mb:I()}],ml:[{ml:I()}],"space-x":[{"space-x":_()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":_()}],"space-y-reverse":["space-y-reverse"],size:[{size:q()}],"inline-size":[{inline:["auto",...B()]}],"min-inline-size":[{"min-inline":["auto",...B()]}],"max-inline-size":[{"max-inline":["none",...B()]}],"block-size":[{block:["auto",...$()]}],"min-block-size":[{"min-block":["auto",...$()]}],"max-block-size":[{"max-block":["none",...$()]}],w:[{w:[a,"screen",...q()]}],"min-w":[{"min-w":[a,"screen","none",...q()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...q()]}],h:[{h:["screen","lh",...q()]}],"min-h":[{"min-h":["screen","lh","none",...q()]}],"max-h":[{"max-h":["screen","lh",...q()]}],"font-size":[{text:["base",r,en,V]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,ec,X]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",L,H]}],"font-family":[{font:[ei,J,t]}],"font-features":[{"font-features":[H]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,er,H]}],"line-clamp":[{"line-clamp":[F,"none",er,Y]}],leading:[{leading:[o,..._()]}],"list-image":[{"list-image":["none",er,H]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",er,H]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:W()}],"text-color":[{text:W()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...em(),"wavy"]}],"text-decoration-thickness":[{decoration:[F,"from-font","auto",er,V]}],"text-decoration-color":[{decoration:W()}],"underline-offset":[{"underline-offset":[F,"auto",er,H]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:_()}],"tab-size":[{tab:[D,er,H]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",er,H]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",er,H]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:z()}],"bg-repeat":[{bg:eu()}],"bg-size":[{bg:ed()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},D,er,H],radial:["",er,H],conic:[D,er,H]},ea,ee]}],"bg-color":[{bg:W()}],"gradient-from-pos":[{from:ep()}
vendor: 7,374 bytes, line 230
230],"gradient-via-pos":[{via:ep()}],"gradient-to-pos":[{to:ep()}],"gradient-from":[{from:W()}],"gradient-via":[{via:W()}],"gradient-to":[{to:W()}],rounded:[{rounded:ef()}],"rounded-s":[{"rounded-s":ef()}],"rounded-e":[{"rounded-e":ef()}],"rounded-t":[{"rounded-t":ef()}],"rounded-r":[{"rounded-r":ef()}],"rounded-b":[{"rounded-b":ef()}],"rounded-l":[{"rounded-l":ef()}],"rounded-ss":[{"rounded-ss":ef()}],"rounded-se":[{"rounded-se":ef()}],"rounded-ee":[{"rounded-ee":ef()}],"rounded-es":[{"rounded-es":ef()}],"rounded-tl":[{"rounded-tl":ef()}],"rounded-tr":[{"rounded-tr":ef()}],"rounded-br":[{"rounded-br":ef()}],"rounded-bl":[{"rounded-bl":ef()}],"border-w":[{border:eh()}],"border-w-x":[{"border-x":eh()}],"border-w-y":[{"border-y":eh()}],"border-w-s":[{"border-s":eh()}],"border-w-e":[{"border-e":eh()}],"border-w-bs":[{"border-bs":eh()}],"border-w-be":[{"border-be":eh()}],"border-w-t":[{"border-t":eh()}],"border-w-r":[{"border-r":eh()}],"border-w-b":[{"border-b":eh()}],"border-w-l":[{"border-l":eh()}],"divide-x":[{"divide-x":eh()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":eh()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...em(),"hidden","none"]}],"divide-style":[{divide:[...em(),"hidden","none"]}],"border-color":[{border:W()}],"border-color-x":[{"border-x":W()}],"border-color-y":[{"border-y":W()}],"border-color-s":[{"border-s":W()}],"border-color-e":[{"border-e":W()}],"border-color-bs":[{"border-bs":W()}],"border-color-be":[{"border-be":W()}],"border-color-t":[{"border-t":W()}],"border-color-r":[{"border-r":W()}],"border-color-b":[{"border-b":W()}],"border-color-l":[{"border-l":W()}],"divide-color":[{divide:W()}],"outline-style":[{outline:[...em(),"none","hidden"]}],"outline-offset":[{"outline-offset":[F,er,H]}],"outline-w":[{outline:["",F,en,V]}],"outline-color":[{outline:W()}],shadow:[{shadow:["","none",u,el,et]}],"shadow-color":[{shadow:W()}],"inset-shadow":[{"inset-shadow":["none",d,el,et]}],"inset-shadow-color":[{"inset-shadow":W()}],"ring-w":[{ring:eh()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:W()}],"ring-offset-w":[{"ring-offset":[F,V]}],"ring-offset-color":[{"ring-offset":W()}],"inset-ring-w":[{"inset-ring":eh()}],"inset-ring-color":[{"inset-ring":W()}],"text-shadow":[{"text-shadow":["none",p,el,et]}],"text-shadow-color":[{"text-shadow":W()}],opacity:[{opacity:[F,er,H]}],"mix-blend":[{"mix-blend":[...eg(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":eg()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[F]}],"mask-image-linear-from-pos":[{"mask-linear-from":ey()}],"mask-image-linear-to-pos":[{"mask-linear-to":ey()}],"mask-image-linear-from-color":[{"mask-linear-from":W()}],"mask-image-linear-to-color":[{"mask-linear-to":W()}],"mask-image-t-from-pos":[{"mask-t-from":ey()}],"mask-image-t-to-pos":[{"mask-t-to":ey()}],"mask-image-t-from-color":[{"mask-t-from":W()}],"mask-image-t-to-color":[{"mask-t-to":W()}],"mask-image-r-from-pos":[{"mask-r-from":ey()}],"mask-image-r-to-pos":[{"mask-r-to":ey()}],"mask-image-r-from-color":[{"mask-r-from":W()}],"mask-image-r-to-color":[{"mask-r-to":W()}],"mask-image-b-from-pos":[{"mask-b-from":ey()}],"mask-image-b-to-pos":[{"mask-b-to":ey()}],"mask-image-b-from-color":[{"mask-b-from":W()}],"mask-image-b-to-color":[{"mask-b-to":W()}],"mask-image-l-from-pos":[{"mask-l-from":ey()}],"mask-image-l-to-pos":[{"mask-l-to":ey()}],"mask-image-l-from-color":[{"mask-l-from":W()}],"mask-image-l-to-color":[{"mask-l-to":W()}],"mask-image-x-from-pos":[{"mask-x-from":ey()}],"mask-image-x-to-pos":[{"mask-x-to":ey()}],"mask-image-x-from-color":[{"mask-x-from":W()}],"mask-image-x-to-color":[{"mask-x-to":W()}],"mask-image-y-from-pos":[{"mask-y-from":ey()}],"mask-image-y-to-pos":[{"mask-y-to":ey()}],"mask-image-y-from-color":[{"mask-y-from":W()}],"mask-image-y-to-color":[{"mask-y-to":W()}],"mask-image-radial":[{"mask-radial":[er,H]}],"mask-image-radial-from-pos":[{"mask-radial-from":ey()}],"mask-image-radial-to-pos":[{"mask-radial-to":ey()}],"mask-image-radial-from-color":[{"mask-radial-from":W()}],"mask-image-radial-to-color":[{"mask-radial-to":W()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":x()}],"mask-image-conic-pos":[{"mask-conic":[F]}],"mask-image-conic-from-pos":[{"mask-conic-from":ey()}],"mask-image-conic-to-pos":[{"mask-conic-to":ey()}],"mask-image-conic-from-color":[{"mask-conic-from":W()}],"mask-image-conic-to-color":[{"mask-conic-to":W()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:z()}],"mask-repeat":[{mask:eu()}],"mask-size":[{mask:ed()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",er,H]}],filter:[{filter:["","none",er,H]}],blur:[{blur:ev()}],brightness:[{brightness:[F,er,H]}],contrast:[{contrast:[F,er,H]}],"drop-shadow":[{"drop-shadow":["","none",f,el,et]}],"drop-shadow-color":[{"drop-shadow":W()}],grayscale:[{grayscale:["",F,er,H]}],"hue-rotate":[{"hue-rotate":[F,er,H]}],invert:[{invert:["",F,er,H]}],saturate:[{saturate:[F,er,H]}],sepia:[{sepia:["",F,er,H]}],"backdrop-filter":[{"backdrop-filter":["","none",er,H]}],"backdrop-blur":[{"backdrop-blur":ev()}],"backdrop-brightness":[{"backdrop-brightness":[F,er,H]}],"backdrop-contrast":[{"backdrop-contrast":[F,er,H]}],"backdrop-grayscale":[{"backdrop-grayscale":["",F,er,H]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[F,er,H]}],"backdrop-invert":[{"backdrop-invert":["",F,er,H]}],"backdrop-opacity":[{"backdrop-opacity":[F,er,H]}],"backdrop-saturate":[{"backdrop-saturate":[F,er,H]}],"backdrop-sepia":[{"backdrop-sepia":["",F,er,H]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":_()}],"border-spacing-x":[{"border-spacing-x":_()}],"border-spacing-y":[{"border-spacing-y":_()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",er,H]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[F,"initial",er,H]}],ease:[{ease:["linear","initial",y,er,H]}],delay:[{delay:[F,er,H]}],animate:[{animate:["none",v,er,H]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,er,H]}],"perspective-origin":[{"perspective-origin":w()}],rotate:[{rotate:eb()}],"rotate-x":[{"rotate-x":eb()}],"rotate-y":[{"rotate-y":eb()}],"rotate-z":[{"rotate-z":eb()}],scale:[{scale:ex()}],"scale-x":[{"scale-x":ex()}],"scale-y":[{"scale-y":ex()}],"scale-z":[{"scale-z":ex()}],"scale-3d":["scale-3d"],skew:[{skew:ew()}],"skew-x":[{"skew-x":ew()}],"skew-y":[{"skew-y":ew()}],transform:[{transform:[er,H,"","none","gpu","cpu"]}],"transform-origin":[{origin:w()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:eE()}],"translate-x":[{"translate-x":eE()}],"translate-y":[{"translate-y":eE()}],"translate-z":[{"translate-z":eE()}],"translate-none":["translate-none"],zoom:[{zoom:[D,er,H]}],accent:[{accent:W()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:W()}
230],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",er,H]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":W()}],"scrollbar-track-color":[{"scrollbar-track":W()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":_()}],"scroll-mx":[{"scroll-mx":_()}],"scroll-my":[{"scroll-my":_()}],"scroll-ms":[{"scroll-ms":_()}],"scroll-me":[{"scroll-me":_()}],"scroll-mbs":[{"scroll-mbs":_()}],"scroll-mbe":[{"scroll-mbe":_()}],"scroll-mt":[{"scroll-mt":_()}],"scroll-mr":[{"scroll-mr":_()}],"scroll-mb":[{"scroll-mb":_()}],"scroll-ml":[{"scroll-ml":_()}],"scroll-p":[{"scroll-p":_()}],"scroll-px":[{"scroll-px":_()}],"scroll-py":[{"scroll-py":_()}],"scroll-ps":[{"scroll-ps":_()}],"scroll-pe":[{"scroll-pe":_()}],"scroll-pbs":[{"scroll-pbs":_()}],"scroll-pbe":[{"scroll-pbe":_()}],"scroll-pt":[{"scroll-pt":_()}],"scroll-pr":[{"scroll-pr":_()}],"scroll-pb":[{"scroll-pb":_()}],"scroll-pl":[{"scroll-pl":_()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",er,H]}],fill:[{fill:["none",...W()]}],"stroke-w":[{stroke:[F,en,V,Y]}],stroke:[{stroke:["none",...W()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},a=e=>{let t=i(e);if(t)return t;let r=((e,t)=>{let{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:i,sortModifiers:o,postfixLookupClassGroupIds:s}=t,a=[],l=e.trim().split(k),c="";for(let e=l.length-1;e>=0;e-=1){let t,u=l[e],{isExternal:d,modifiers:p,hasImportantModifier:f,baseClassName:h,maybePostfixModifierPosition:m}=r(u);if(d){c=u+(c.length>0?" "+c:c);continue}let g=!!m;if(g){let e=(t=n(h.substring(0,m)))&&s[t]?n(h):void 0;e&&e!==t&&(t=e,g=!1)}else t=n(h);if(!t){if(!g||!(t=n(h))){c=u+(c.length>0?" "+c:c);continue}g=!1}let y=0===p.length?"":1===p.length?p[0]:o(p).join(":"),v=f?y+"!":y,b=v+t;if(a.indexOf(b)>-1)continue;a.push(b);let x=i(t,g);for(let e=0;e<x.length;++e){let t=x[e];a.push(v+t)}c=u+(c.length>0?" "+c:c)}return c})(e,n);return o(e,r),r},s=e=>{var t;let r;return i=(n={cache:(e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null),i=(i,o)=>{r[i]=o,++t>e&&(t=0,n=r,r=Object.create(null))};return{get(e){let t=r[e];return void 0!==t?t:void 0!==(t=n[e])?(i(e,t),t):void 0},set(e,t){e in r?r[e]=t:i(e,t)}}})((t=[].reduce((e,t)=>
230t(e),l())).cacheSize),parseClassName:(e=>{let{prefix:t,experimentalParseClassName:r}=e,n=e=>{let t,r=[],n=0,i=0,o=0,s=e.length;for(let a=0;a<s;a++){let s=e[a];if(0===n&&0===i){if(":"===s){r.push(e.slice(o,a)),o=a+1;continue}if("/"===s){t=a;continue}}"["===s?n++:"]"===s?n--:"("===s?i++:")"===s&&i--}let a=0===r.length?e:e.slice(o),l=a,c=!1;return a.endsWith("!")?(l=a.slice(0,-1),c=!0):a.startsWith("!")&&(l=a.slice(1),c=!0),E(r,c,l,t&&t>o?t-o:void 0)};if(t){let e=t+":",r=n;n=t=>t.startsWith(e)?r(t.slice(e.length)):E(w,!1,t,void 0,!0)}if(r){let e=n;n=t=>r({className:t,parseClassName:e})}return n})(t),sortModifiers:(r=new Map,t.orderSensitiveModifiers.forEach((e,t)=>{r.set(e,1e6+t)}),e=>{let t=[],n=[];for(let i=0;i<e.length;i++){let o=e[i],s="["===o[0],a=r.has(o);s||a?(n.length>0&&(n.sort(),t.push(...n),n=[]),t.push(o)):n.push(o)}return n.length>0&&(n.sort(),t.push(...n)),t}),postfixLookupClassGroupIds:(e=>{let t=Object.create(null),r=e.postfixLookupClassGroups;if(r)for(let e=0;e<r.length;e++)t[r[e]]=!0;return t})(t),...(e=>{let t=(e=>{let{theme:t,classGroups:r}=e;return f(r,t)})(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:e=>{if(e.startsWith("[")&&e.endsWith("]")){var r;let t,n,i;return -1===(r=e).slice(1,-1).indexOf(":")?void 0:(n=(t=r.slice(1,-1)).indexOf(":"),(i=t.slice(0,n))?"arbitrary.."+i:void 0)}let n=e.split("-"),i=+(""===n[0]&&n.length>1);return p(n,i,t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=n[e],i=r[e];if(t){if(i){let e=Array(i.length+t.length);for(let t=0;t<i.length;t++)e[t]=i[t];for(let r=0;r<t.length;r++)e[i.length+r]=t[r];return e}return t}return i||d}return r[e]||d}}})(t)}).cache.get,o=n.cache.set,s=a,a(e)},(...e)=>s(((...e)=>{let t,r,n=0,i="";for(;n<e.length;)(t=e[n++])&&(r=_(t))&&(i&&(i+=" "),i+=r);return i})(...e)));function ew(...e){return ex((0,c.$)(e))}},4851:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return c}});let n=r(7637),i=r(7876),o=r(5720),s=["-moz-initial","fill","none","scale-down",void 0];function a(e){return void 0!==e.default}function l(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function c({src:e,sizes:t,unoptimized:r=!1,priority:u=!1,preload:d=!1,loading:p,className:f,quality:h,width:m,height:g,fill:y=!1,style:v,overrideSrc:b,onLoad:x,onLoadingComplete:w,placeholder:E="empty",blurDataURL:k,fetchPriority:_,decoding:j="async",layout:S,objectFit:O,objectPosition:T,lazyBoundary:P,lazyRoot:N,...A},C){var I;let q,R,F,{imgConf:D,showAltText:L,blurComplete:M,defaultLoader:U}=C,B=D||o.imageConfigDefault;if("allSizes"in B)q=B;else{let e=[...B.deviceSizes,...B.imageSizes].sort((e,t)=>e-t),t=B.deviceSizes.sort((e,t)=>e-t),r=B.qualities?.sort((e,t)=>e-t);q={...B,allSizes:e,deviceSizes:t,qualities:r}}if(void 0===U)throw Object.defineProperty(Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config"),"__NEXT_ERROR_CODE",{value:"E163",enumerable:!1,configurable:!0});let $=A.loader||U;delete A.loader,delete A.srcSet;let W="__next_img_default"in $;if(W){if("custom"===q.loader)throw Object.defineProperty(Error(`Image with src "${e}" is missing "loader" prop.
231Read more: https://nextjs.org/docs/messages/next-image-missing-loader`),"__NEXT_ERROR_CODE",{value:"E252",enumerable:!1,configurable:!0})}else{let e=$;$=t=>{let{config:r,...n}=t;return e(n)}}if(S){"fill"===S&&(y=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[S];e&&(v={...v,...e});let r={responsive:"100vw",fill:"100vw"}[S];r&&!t&&(t=r)}let z="",K=l(m),G=l(g);if((I=e)&&"object"==typeof I&&(a(I)||void 0!==I.src)){let t=a(e)?e.default:e;if(!t.src)throw Object.defineProperty(Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received ${JSON.stringify(t)}`),"__NEXT_ERROR_CODE",{value:"E460",enumerable:!1,configurable:!0});if(!t.height||!t.width)throw Object.defineProperty(Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received ${JSON.stringify(t)}
231`),"__NEXT_ERROR_CODE",{value:"E48",enumerable:!1,configurable:!0});if(R=t.blurWidth,F=t.blurHeight,k=k||t.blurDataURL,z=t.src,!y)if(K||G){if(K&&!G){let e=K/t.width;G=Math.round(t.height*e)}else if(!K&&G){let e=G/t.height;K=Math.round(t.width*e)}}else K=t.width,G=t.height}let Q=!u&&!d&&("lazy"===p||void 0===p);(!(e="string"==typeof e?e:z)||e.startsWith("data:")||e.startsWith("blob:"))&&(r=!0,Q=!1),q.unoptimized&&(r=!0),W&&!q.dangerouslyAllowSVG&&e.split("?",1)[0].endsWith(".svg")&&(r=!0);let H=l(h),V=Object.assign(y?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:O,objectPosition:T}:{},L?{}:{color:"transparent"},v),Y=M||"empty"===E?null:"blur"===E?`url("data:image/svg+xml;charset=utf-8,${(0,i.getImageBlurSvg)({widthInt:K,heightInt:G,blurWidth:R,blurHeight:F,blurDataURL:k||"",objectFit:V.objectFit})}")`:`url("${E}")`,X=s.includes(V.objectFit)?"fill"===V.objectFit?"100% 100%":"cover":V.objectFit,J=Y?{backgroundSize:X,backgroundPosition:V.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:Y}:{},Z=function({config:e,src:t,unoptimized:r,width:i,quality:o,sizes:s,loader:a}){if(r){if(t.startsWith("/")&&!t.startsWith("//")){let e=(0,n.getDeploymentId)();if(t.includes("/_next/static/immutable")&&!(0,n.getAssetToken)())e=void 0;else if(e){let r=t.indexOf("?");if(-1!==r){let n=new URLSearchParams(t.slice(r+1));n.get("dpl")||(n.append("dpl",e),t=t.slice(0,r)+"?"+n.toString())}else t+=`?dpl=${e}`}}return{src:t,srcSet:void 0,sizes:void 0}}let{widths:l,kind:c}=function({deviceSizes:e,allSizes:t},r,n){if(n){let r=/(^|\s)(1?\d?\d)vw/g,i=[];for(let e;e=r.exec(n);)i.push(parseInt(e[2]));if(i.length){let r=.01*Math.min(...i);return{widths:t.filter(t=>t>=e[0]*r),kind:"w"}}return{widths:t,kind:"w"}}return"number"!=typeof r?{widths:e,kind:"w"}:{widths:[...new Set([r,2*r].map(e=>t.find(t=>t>=e)||t[t.length-1]))],kind:"x"}}(e,i,s),u=l.length-1;return{sizes:s||"w"!==c?s:"100vw",srcSet:l.map((r,n)=>`${a({config:e,src:t,quality:o,width:r})} ${"w"===c?r:n+1}${c}`).join(", "),src:a({config:e,src:t,quality:o,width:l[u]})}}({config:q,src:e,unoptimized:r,width:K,quality:H,sizes:t,loader:$}),ee=Q?"lazy":p;return{props:{...A,loading:ee,fetchPriority:_,width:K,height:G,decoding:j,className:f,style:{...V,...J},sizes:Z.sizes,srcSet:Z.srcSet,src:b||Z.src},meta:{unoptimized:r,preload:d||u,placeholder:E,fill:y}}}},5088:(e,t,r)=>{"use strict";r.d(t,{Q:()=>s,p:()=>o});var n=r(6029),i=r(4656);function o({size:e=32,variant:t="default",className:r}){return(0,n.jsxs)("svg",{width:e,height:e,viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-label":"WPGraphQL",className:r,children:[(0,n.jsx)("circle",{cx:"256",cy:"256",r:"256",fill:"reversed"===t?"#FF8C1A":"#0E1628"}),(0,n.jsx)("path",{d:"m117.592 300.896c0-35.138.58-39.429 7.074-52.301 5.682-11.133 20.758-25.05 30.732-28.065 2.203-.696 2.899.348 6.726 9.858 12.408 31.195 37.11 54.505 69.349 65.29l8.465 2.899.348 16.815c.116 9.394-.116 16.932-.58 16.816-.58 0-2.899-3.131-5.45-6.958-11.945-18.671-35.718-30.036-59.724-28.645-21.802 1.276-40.589 12.061-52.765 30.152l-4.175 6.147zm25.165 85.353c10.09-3.015 17.743-13.568 17.743-24.47 0-7.77 9.51-16.699 17.627-16.699 10.321 0 17.396 6.958 18.787 18.44 1.276 10.32 5.567 16.815 14.032 21.337 4.407 2.436 6.147 2.552 32.471 2.552 26.441 0 28.065-.116 32.588-2.552 5.566-3.015 11.712-9.51 12.872-14.032.58-1.74.928-25.049.928-51.838v-48.706l-2.9-5.103c-4.87-8.582-10.437-11.597-24.469-13.452-19.019-2.436-30.036-7.538-41.053-18.787-8.117-8.118-14.96-21.57-16.815-33.051-3.71-21.918 7.19-46.503 26.325-59.26 11.48-7.654 20.526-10.437 33.979-10.437 8.813 0 12.64.58 19.25 2.9 14.728 5.218 25.745 14.031 33.515 27.02 8.234 13.916 8.002 10.205 8.698 94.514.58 68.885.928 76.539 2.783 82.337 6.146 19.02 18.903 34.559 34.443 42.097 21.338 10.437 42.212 11.133 60.767 2.087 19.019-9.393 33.747-30.615 37.69-54.389 2.435-14.612-1.16-23.193-11.83-28.528-10.32-5.219-21.917-3.827-29.107 3.479-4.639 4.639-6.262 8.118-8.234 17.86-2.551 12.06-8.118 17.394-18.323 17.394-6.378 0-12.524-3.247-15.424-8.233-2.203-3.827-2.319-6.61-2.899-78.743-.58-66.566-.812-75.727-2.667-82.801-12.409-47.895-49.403-80.366-98.69-86.513-24.584-3.015-56.94 6.843-78.858 24.354-17.627 13.916-29.108 30.615-36.53 52.997l-3.479 9.974-11.944 4.29c-19.02 6.727-28.645 12.641-42.909 26.441-12.872 12.525-21.802 26.441-27.6 43.14-5.335 15.772-5.799 21.339-5.799 75.844v51.374l2.668 5.102c3.015 5.683 10.089 11.25 16.003 12.64 2.204.465 14.38.929 27.253 1.044 17.511.116 24.701-.347 29.108-1.623zm132.204-172.793c6.
23103-2.551 8.35-4.87 11.48-11.597 4.523-9.625 3.248-20.526-3.362-28.064-4.755-5.45-9.51-7.306-18.555-7.306-6.03 0-8.234.58-12.64 3.363-15.077 9.51-14.265 34.79 1.39 42.792 6.147 3.016 15.425 3.363 21.687.812z",fill:"reversed"===t?"#0A0F1E":"#FF8C1A",fillRule:"nonzero"})]})}function s({showWordmark:e=!0,size:t=32,variant:r="default",subLabel:a,className:l,markClassName:c,wordmarkClassName:u}){return(0,n.jsxs)("div",{className:(0,i.cn)("flex items-center gap-3",l),children:[(0,n.jsx)(o,{size:t,variant:r,className:c}),e&&(0,n.jsxs)("div",{className:(0,i.cn)("flex flex-col leading-none",u),children:[(0,n.jsx)("span",{className:(0,i.cn)("font-bold tracking-tight","light"===r?"text-navy-950":"text-foreground"),style:{fontSize:.56*t,letterSpacing:"-0.02em"},children:"WPGraphQL"}),a&&(0,n.jsx)("span",{className:(0,i.cn)("font-mono mt-0.5","light"===r?"text-navy-400":"text-muted-foreground"),style:{fontSize:.25*t,letterSpacing:"0.04em"},children:a})]})]})}},5219:(e,t,r)=>{"use strict";function n(e,t,...r){if(e in t){let n=t[e];return"function"==typeof n?n(...r):n}let i=Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(e=>`"${e}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(i,n),i}r.d(t,{Y:()=>n})},5369:(e,t,r)=>{"use strict";r.d(t,{_:()=>s});var n=Object.defineProperty,i=(e,t,r)=>{let i;return(i="symbol"!=typeof t?t+"":t)in e?n(e,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[i]=r,r};class o{constructor(){i(this,"current",this.detect()),i(this,"handoffState","pending"),i(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"u"<typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}}let s=new o},5429:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(5729);let i=n.forwardRef(function({title:e,titleId:t,...r},i){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:i,"aria-labelledby":t},r),e?n.createElement("title",{id:t},e):null,n.createElement("path",{fillRule:"evenodd",d:"M7.21 14.77a.75.75 0 01.02-1.06L11.168 10 7.23 6.29a.75.75 0 111.04-1.08l4.5 4.25a.75.75 0 010 1.08l-4.5 4.25a.75.75 0 01-1.06-.02z",clipRule:"evenodd"}))})},5596:(e,t,r)=>{"use strict";var n=r(5729),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=n.useState,s=n.useEffect,a=n.useLayoutEffect,l=n.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!i(e,r)}catch(e){return!0}}var u="u"<typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=o({inst:{value:r,getSnapshot:t}}),i=n[0].inst,u=n[1];return a(function(){i.value=r,i.getSnapshot=t,c(i)&&u({inst:i})},[e,r,t]),s(function(){return c(i)&&u({inst:i}),e(function(){c(i)&&u({inst:i})})},[e]),l(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:u},5612:(e,t,r)=>{"use strict";let n;r.d(t,{D:()=>i});var i=((n=i||{}).Space=" ",n.Enter="Enter",n.Escape="Escape",n.Backspace="Backspace",n.Delete="Delete",n.ArrowLeft="ArrowLeft",n.ArrowUp="ArrowUp",n.ArrowRight="ArrowRight",n.ArrowDown="ArrowDown",n.Home="Home",n.End="End",n.PageUp="PageUp",n.PageDown="PageDown",n.Tab="Tab",n)},5669:(e,t,r)=>{e.exports=r(3276)},5675:(e,t,r)=>{"use strict";var n=r(5729),i=r(7133),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},s=i.useSyncExternalStore,a=n.useRef,l=n.useEffect,c=n.useMemo,u=n.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var d=a(null);if(null===d.current){var p={hasValue:!1,value:null};d.current=p}else p=d.current;var f=s(e,(d=c(function(){function e(e){if(!l){if(l=!0,s=e,e=n(e),void 0!==i&&p.hasValue){var t=p.value;if(i(t,e))return a=t}return a=e}if(t=a,o(s,e))return t;var r=n(e);return void 0!==i&&i(t,r)?(s=e,t):(s=e,a=r)}var s,a,l=!1,c=void 0===r?null:r;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]},[t,r,n,i]))[0],d[1]);return l(function(){p.hasValue=!0,p.value=f},[f]),u(f),f}},5727:()=>{},5815:(e,t,r)=>{"use strict";
231Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return w}});let n=r(4761),i=r(3514),o=r(6029),s=i._(r(5729)),a=n._(r(6760)),l=n._(r(3276)),c=r(4851),u=r(5720),d=r(9528),p=r(265),f=n._(r(2645)),h=r(9058),m={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1};function g(e,t,r,n,i,o,s){let a=e?.src;e&&e["data-loaded-src"]!==a&&(e["data-loaded-src"]=a,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&i(!0),r?.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let n=!1,i=!1;r.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>n,isPropagationStopped:()=>i,persist:()=>{},preventDefault:()=>{n=!0,t.preventDefault()},stopPropagation:()=>{i=!0,t.stopPropagation()}})}n?.current&&n.current(e)}}))}function y(e){return s.use?{fetchPriority:e}:{fetchpriority:e}}let v=s.useLayoutEffect,b=(0,s.forwardRef)(({src:e,srcSet:t,sizes:r,height:n,width:i,decoding:a,className:l,style:c,fetchPriority:u,placeholder:d,loading:p,unoptimized:f,fill:m,onLoadRef:b,onLoadingCompleteRef:x,setBlurComplete:w,setShowAltText:E,sizesInput:k,onLoad:_,onError:j,...S},O)=>{let T=(0,s.useRef)(!1),P=(0,s.useRef)(null);v(()=>{let{current:e}=T,{current:t}=P;e||null===t||(j&&(t.src=t.src),t.complete&&g(t,d,b,x,w,f,k),T.current=!0)},[e,d,b,x,j,f,k]);let N=(0,h.useMergedRef)(O,P);return(0,o.jsx)("img",{...S,...y(u),loading:p,width:i,height:n,decoding:a,"data-nimg":m?"fill":"1",className:l,style:c,sizes:r,srcSet:t,src:e,ref:N,onLoad:e=>{g(e.currentTarget,d,b,x,w,f,k)},onError:e=>{E(!0),"empty"!==d&&w(!0),j&&j(e)}})});function x({isAppRouter:e,imgAttributes:t}){let r={as:"image",imageSrcSet:t.srcSet,imageSizes:t.sizes,crossOrigin:t.crossOrigin,referrerPolicy:t.referrerPolicy,...y(t.fetchPriority)};return e&&a.default.preload?(a.default.preload(t.src,r),null):(0,o.jsx)(l.default,{children:(0,o.jsx)("link",{rel:"preload",href:t.srcSet?void 0:t.src,...r},"__nimg-"+t.src+t.srcSet+t.sizes)})}let w=(0,s.forwardRef)((e,t)=>{let r=(0,s.useContext)(p.RouterContext),n=(0,s.useContext)(d.ImageConfigContext),i=(0,s.useMemo)(()=>{let e=m||n||u.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),r=e.deviceSizes.sort((e,t)=>e-t),i=e.qualities?.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:r,qualities:i,localPatterns:e.localPatterns}},[n]),{onLoad:a,onLoadingComplete:l}=e,h=(0,s.useRef)(a);(0,s.useEffect)(()=>{h.current=a},[a]);let g=(0,s.useRef)(l);(0,s.useEffect)(()=>{g.current=l},[l]);let[y,v]=(0,s.useState)(!1),[w,E]=(0,s.useState)(!1),{props:k,meta:_}=(0,c.getImgProps)(e,{defaultLoader:f.default,imgConf:i,blurComplete:y,showAltText:w});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(b,{...k,unoptimized:_.unoptimized,placeholder:_.placeholder,fill:_.fill,onLoadRef:h,onLoadingCompleteRef:g,setBlurComplete:v,setShowAltText:E,sizesInput:e.sizes,ref:t}),_.preload?(0,o.jsx)(x,{isAppRouter:!r,imgAttributes:k}):null]})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5973:(e,t,r)=>{"use strict";r.d(t,{b:()=>s,y:()=>a});var n=r(9667),i=r(595),o=r(4353);let s=[{name:"WPGraphQL IDE",href:"/extensions/wp-graphql-ide",description:"A schema-aware GraphQL IDE, native to wp-admin.",theme:"theme-ide",Mark:n.D,aliases:["wpgraphql ide"]},{name:"WPGraphQL for ACF",href:"/extensions/wp-graphql-acf",description:"Expose Advanced Custom Fields to the GraphQL schema.",theme:"theme-acf",Mark:i.d,aliases:["advanced custom fields","for acf"]},{name:"WPGraphQL Smart Cache",href:"/extensions/wp-graphql-smart-cache",description:"Fast responses with smart, tag-based invalidation.",theme:"theme-smart-cache",Mark:o.K,aliases:["smart cache"]}];function a(e=""){let t=e.toLowerCase();return s.some(e=>e.aliases.some(e=>t.includes(e)))}},6069:(e,t,r)=>{"use strict";function n(e=[],{idKey:t="id",parentKey:r="parentId",childrenKey:i="children"}={}){let o=[],s={};
231return e.forEach(e=>{let n={...e},{[t]:a,[r]:l=0}=n;s[a]=s[a]||[],n[i]=s[a],l?(s[l]=s[l]||[]).push(n):o.push(n)}),o}function i(e){return e?.cssClasses?.find(e=>e.startsWith("icon-"))?.replace("icon-","")}r.d(t,{L:()=>i,U:()=>n})},6170:(e,t,r)=>{"use strict";r.d(t,{$e:()=>i,QQ:()=>o,s:()=>n});let n="wp-graphql",i={[n]:{key:n,label:"WPGraphQL",shortLabel:"WPGraphQL",basePath:"/docs",docsFolder:"plugins/wp-graphql/docs",themeClass:null,enabled:!0},acf:{key:"acf",label:"WPGraphQL for ACF",shortLabel:"ACF",basePath:"/docs/acf",docsFolder:"plugins/wp-graphql-acf/docs",themeClass:"theme-acf",enabled:!0},"smart-cache":{key:"smart-cache",label:"WPGraphQL Smart Cache",shortLabel:"Smart Cache",basePath:"/docs/smart-cache",docsFolder:"plugins/wp-graphql-smart-cache/docs",themeClass:"theme-smart-cache",enabled:!0},ide:{key:"ide",label:"WPGraphQL IDE",shortLabel:"IDE",basePath:"/docs/ide",docsFolder:"plugins/wp-graphql-ide/docs",themeClass:"theme-ide",enabled:!0}};function o(){return Object.values(i).filter(e=>e.enabled)}i[n],Object.keys(i).filter(e=>e!==n)},6185:(e,t,r)=>{"use strict";r.d(t,{P:()=>J,A:()=>X});var n=r(6029),i=r(270),o=r(5729),s=r(2203),a=r.n(s),l=r(8631),c=r(3860),u=r(6654),d=r(8696);let p=o.forwardRef(function({title:e,titleId:t,...r},n){return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:n,"aria-labelledby":t},r),e?o.createElement("title",{id:t},e):null,o.createElement("path",{fillRule:"evenodd",d:"M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z",clipRule:"evenodd"}))});var f=r(2461),h=r(2909),m=r(6550),g=r(9278);let y=(...e)=>e.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim(),v={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"},b=(0,o.createContext)({}),x=(0,o.forwardRef)(({color:e,size:t,width:r,height:n,strokeWidth:i,absoluteStrokeWidth:s,nonScalingStroke:a,className:l="",children:c,iconNode:u=[],icon:d={node:u,aliases:[],size:24},...p},f)=>{let{size:h=24,strokeWidth:m=2,absoluteStrokeWidth:g=!1,nonScalingStroke:x=!1,color:w="currentColor",className:E=""}=(0,o.useContext)(b)??{},k=!!c||(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(p),[_,j,S=[]]=function(e,t={}){return function(e,t={}){let r=t.attributeNames??{},n=e=>r[e]??e,i=e.size??e.width??v.width,o=e.size??e.height??v.height,s=e.aliases?.filter(e=>"string"==typeof e&&""!==e.trim()).map(e=>`lucide-${e}`)??[],a=[...e.name?[`lucide-${e.name}`]:[],...s],l=t.className?.split(" ").filter(Boolean)??[],c=!1===t.includeDefaultClasses?y(...l):y("lucide",...a,...l),u=t.absoluteStrokeWidth?Number(t.strokeWidth??v["stroke-width"])*Number(e.size??e.width??v.width)/Number(t.size??t.width??v.width):t.strokeWidth??v["stroke-width"];return["svg",{...Object.entries(v).reduce((e,[t,r])=>(e[n(t)]=r,e),{}),..."color"in t&&t.color&&{[n("stroke")]:t.color},..."size"in t&&null!=t.size&&{[n("width")]:t.size,[n("height")]:t.size},..."width"in t&&null!=t.width&&{[n("width")]:t.width},..."height"in t&&null!=t.height&&{[n("height")]:t.height},[n("stroke-width")]:u,...c&&{[n("class")]:c},[n("viewBox")]:`0 0 ${i} ${o}`,...!1===t.hasA11yProp?{[n("aria-hidden")]:"true"}:{},..."attributes"in t&&t.attributes},e.node.map(e=>{let[r,i,o]=e,s=t.nonScalingStroke?{[n("vector-effect")]:"non-scaling-stroke",...i}:i;return o?[r,s,o]:[r,s]})]}(e,{...t,attributeNames:{...t.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}(d,{color:e??w,width:r??t??h,height:n??t??h,strokeWidth:i??m,absoluteStrokeWidth:s??g,nonScalingStroke:a??x,className:y(E,l),hasA11yProp:k,attributes:p});return(0,o.createElement)(_,{ref:f,...j},[...S.map(([e,t])=>(0,o.createElement)(e,t)),...Array.isArray(c)?c:[c]])});function w(e,t=[],r=[]){let n,i="string"==typeof e?function(e,t,r=[]){if(null==t)throw Error("[lucide]: iconNode is required when icon name is used");return{name:e?.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),size:24,node:t,...r.length>0?{aliases:r}:{}}}(e,t,r):e,s=(0,o.forwardRef)(({className:e,...t},r)=>(0,o.createElement)(x,{ref:r,icon:i,className:e,...t}));return i.name&&(s.displayName=(n=(e=>{let t="",r=!1;for(let n of e){if("-"===n||"_"===n||n<=" "){r=t.length>0;continue}0===t.length?t+=n.toLowerCase():t+=r?n.toUpperCase():n,r=!1}return t})(i.name)).charAt(0).toUpperCase()+n.slice(1)),s}
231let E={name:"sun",size:24,node:[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]};E.node;let k=w(E),_={name:"moon",size:24,node:[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]};_.node;let j=w(_),S={name:"monitor",size:24,node:[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]};S.node;let O=w(S);var T=r(4656);let P=[{value:"light",label:"Light",Icon:k},{value:"dark",label:"Dark",Icon:j},{value:"system",label:"System",Icon:O}];function N({panelClassName:e="mt-4"}){let{theme:t,setTheme:r,resolvedTheme:i}=(0,g.D)(),[s,a]=(0,o.useState)(!1);return(0,o.useEffect)(()=>
231a(!0),[]),(0,n.jsxs)(m.W,{value:t??"system",onChange:r,children:[(0,n.jsx)(m.W.Label,{className:"sr-only",children:"Theme"}),(0,n.jsx)(m.W.Button,{type:"button",className:"rounded-md p-2 text-muted-foreground hover:text-foreground hover:bg-accent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:"dark"===(s?i??"dark":"dark")?(0,n.jsx)(j,{className:"size-5","aria-hidden":"true"}):(0,n.jsx)(k,{className:"size-5","aria-hidden":"true"})}),(0,n.jsx)(m.W.Options,{className:(0,T.cn)("absolute z-50 top-full max-md:right-[60px] w-36 py-1 -mt-5","rounded-lg border border-border bg-popover text-popover-foreground shadow-elev-lg","text-sm font-medium overflow-hidden",e),children:P.map(({value:e,label:t,Icon:r})=>(0,n.jsx)(m.W.Option,{value:e,as:o.Fragment,children:({active:e,selected:i})=>(0,n.jsxs)("li",{className:(0,T.cn)("py-1.5 px-3 flex items-center cursor-pointer gap-2",i&&"text-primary",e&&"bg-accent"),children:[(0,n.jsx)(r,{className:"size-4","aria-hidden":"true"}),t]})},e))})]})}var A=r(6069),C=r(6509),I=r(907);let q={name:"GitHub",href:"https://github.com/wp-graphql/wp-graphql",icon:function(e){return(0,I.k5)({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"title",attr:{},child:[]},{tag:"path",attr:{d:"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"}}]})(e)}},R={name:"WordPress Plugin",href:"https://wordpress.org/plugins/wp-graphql",icon:function(e){return(0,I.k5)({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"title",attr:{},child:[]},{tag:"path",attr:{d:"M21.469 6.825c.84 1.537 1.318 3.3 1.318 5.175 0 3.979-2.156 7.456-5.363 9.325l3.295-9.527c.615-1.54.82-2.771.82-3.864 0-.405-.026-.78-.07-1.11m-7.981.105c.647-.03 1.232-.105 1.232-.105.582-.075.514-.93-.067-.899 0 0-1.755.135-2.88.135-1.064 0-2.85-.15-2.85-.15-.585-.03-.661.855-.075.885 0 0 .54.061 1.125.09l1.68 4.605-2.37 7.08L5.354 6.9c.649-.03 1.234-.1 1.234-.1.585-.075.516-.93-.065-.896 0 0-1.746.138-2.874.138-.2 0-.438-.008-.69-.015C4.911 3.15 8.235 1.215 12 1.215c2.809 0 5.365 1.072 7.286 2.833-.046-.003-.091-.009-.141-.009-1.06 0-1.812.923-1.812 1.914 0 .89.513 1.643 1.06 2.531.411.72.89 1.643.89 2.977 0 .915-.354 1.994-.821 3.479l-1.075 3.585-3.9-11.61.001.014zM12 22.784c-1.059 0-2.081-.153-3.048-.437l3.237-9.406 3.315 9.087c.024.053.05.101.078.149-1.12.393-2.325.609-3.582.609M1.211 12c0-1.564.336-3.05.935-4.39L7.29 21.709C3.694 19.96 1.212 16.271 1.211 12M12 0C5.385 0 0 5.385 0 12s5.385 12 12 12 12-5.385 12-12S18.615 0 12 0"}}]})(e)}},F=[q,R],D=[q,R,{name:"Twitter",href:"https://twitter.com/wpgraphql",icon:function(e){return(0,I.k5)({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"title",attr:{},child:[]},{tag:"path",attr:{d:"M21.543 7.104c.015.211.015.423.015.636 0 6.507-4.954 14.01-14.01 14.01v-.003A13.94 13.94 0 0 1 0 19.539a9.88 9.88 0 0 0 7.287-2.041 4.93 4.93 0 0 1-4.6-3.42 4.916 4.916 0 0 0 2.223-.084A4.926 4.926 0 0 1 .96 9.167v-.062a4.887 4.887 0 0 0 2.235.616A4.928 4.928 0 0 1 1.67 3.148 13.98 13.98 0 0 0 11.82 8.292a4.929 4.929 0 0 1 8.39-4.49 9.868 9.868 0 0 0 3.128-1.196 4.941 4.941 0 0 1-2.165 2.724A9.828 9.828 0 0 0 24 4.555a10.019 10.019 0 0 1-2.457 2.549z"}}]})(e)}},{name:"YouTube",href:"https://www.youtube.com/c/WPGraphQL",icon:function(e){return(0,I.k5)({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"title",attr:{},child:[]},{tag:"path",attr:{d:"M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"}}]})(e)}},{name:"Discord",href:"/discord",icon:function(e){return(0,I.k5)({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"title",attr:{},child:[]},{tag:"path",attr:{d:"M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 
2310 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z"}}]})(e)}}];var L=r(5973),M=r(3429),U=r(7472),B=r(9133);function $(e){let t=e?.label?.toLowerCase(),r=e?.path?.replace(/\/$/,"");return"extensions"===t||"/extensions"===r}function W({label:e="Extensions",viewAllHref:t="/extensions"}){return(0,n.jsx)(l.A,{className:"relative",children:({open:r})=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(l.A.Button,{className:(0,T.cn)("group inline-flex items-center gap-1 rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",r?"text-foreground":"text-muted-foreground hover:text-foreground"),children:[(0,n.jsx)("span",{children:e}),(0,n.jsx)(p,{className:(0,T.cn)("h-4 w-4 transition-transform",r&&"rotate-180"),"aria-hidden":"true"})]}),(0,n.jsx)(c.e,{as:o.Fragment,enter:"transition ease-out duration-200",enterFrom:"opacity-0 translate-y-1",enterTo:"opacity-100 translate-y-0",leave:"transition ease-in duration-150",leaveFrom:"opacity-100 translate-y-0",leaveTo:"opacity-0 translate-y-1",children:(0,n.jsx)(l.A.Panel,{className:"absolute z-50 -ml-4 mt-3 w-screen max-w-md transform lg:left-1/2 lg:ml-0 lg:-translate-x-1/2",children:(0,n.jsxs)("div",{className:"overflow-hidden rounded-xl border border-border bg-popover text-popover-foreground shadow-elev-lg",children:[(0,n.jsx)("p",{className:"px-6 pb-2 pt-5 font-mono text-xs font-medium uppercase tracking-widest text-muted-foreground",children:"Featured Extensions"}),(0,n.jsx)("div",{className:"grid gap-2 px-4 pb-4 sm:px-6",children:L.b.map(({name:e,href:t,description:r,theme:i,Mark:o},s)=>(0,n.jsx)(a(),{href:t,legacyBehavior:!0,children:(0,n.jsxs)("a",{className:`${i} group relative -m-2 flex items-start gap-4 overflow-hidden rounded-lg p-3 transition-colors hover:bg-accent`,children:[(0,n.jsx)("div",{className:"pointer-events-none absolute inset-0 opacity-0 transition-opacity duration-200 group-hover:opacity-100",children:(0,n.jsx)(B.A,{variant:s,count:16,width:360,height:104,opacity:1,intensity:1.8,className:"[mask-image:linear-gradient(to_right,black_60%,transparent)]"})}),(0,n.jsx)(o,{size:40,className:"relative h-10 w-10 flex-shrink-0 rounded-md"}),(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsx)("p",{className:"text-sm font-semibold text-foreground",children:e}),(0,n.jsx)("p",{className:"mt-1 text-xs text-muted-foreground",children:r})]})]})},t))}),(0,n.jsx)(a(),{href:t,legacyBehavior:!0,children:(0,n.jsxs)("a",{className:"flex items-center justify-between border-t border-border bg-muted/40 px-6 py-3 text-sm font-medium text-foreground transition-colors hover:bg-accent",children:[(0,n.jsx)("span",{children:"View All Extensions"}),(0,n.jsx)("span",{"aria-hidden":"true",children:"→"})]})})]})})})]})})}function z({label:e="Extensions",viewAllHref:t="/extensions"}){return(0,n.jsxs)("div",{className:"mt-2 border-t border-border pt-4",children:[(0,n.jsxs)("div",{className:"flex items-center justify-between px-3",children:[(0,n.jsx)("p",{className:"font-mono text-xs font-medium uppercase tracking-widest text-muted-foreground",children:e}),(0,n.jsx)(a(),{href:t,legacyBehavior:!0,children:(0,n.jsx)("a",{className:"text-xs font-medium text-primary hover:underline",children:"View All Extensions →"})})]}),(0,n.jsx)("div",{className:"mt-2 grid grid-cols-1 gap-2",children:L.b.map(({name:e,href:t,description:r,Mark:i}
231)=>(0,n.jsx)(a(),{href:t,legacyBehavior:!0,children:(0,n.jsxs)("a",{className:"flex items-center gap-4 rounded-lg p-3 transition-colors hover:bg-accent",children:[(0,n.jsx)(i,{size:40,className:"h-10 w-10 flex-shrink-0 rounded-md"}),(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"text-sm font-semibold text-foreground",children:e}),(0,n.jsx)("p",{className:"mt-0.5 text-xs text-muted-foreground",children:r})]})]})},t))})]})}function K(e){let t=e?.label?.toLowerCase(),r=e?.path?.replace(/\/$/,"");return"docs"===t||"/docs"===r}function G({label:e="Docs",viewAllHref:t="/docs"}){return(0,n.jsx)(l.A,{className:"relative",children:({open:r})=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(l.A.Button,{className:(0,T.cn)("group inline-flex items-center gap-1 rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",r?"text-foreground":"text-muted-foreground hover:text-foreground"),children:[(0,n.jsx)("span",{children:e}),(0,n.jsx)(p,{className:(0,T.cn)("h-4 w-4 transition-transform",r&&"rotate-180"),"aria-hidden":"true"})]}),(0,n.jsx)(c.e,{as:o.Fragment,enter:"transition ease-out duration-200",enterFrom:"opacity-0 translate-y-1",enterTo:"opacity-100 translate-y-0",leave:"transition ease-in duration-150",leaveFrom:"opacity-100 translate-y-0",leaveTo:"opacity-0 translate-y-1",children:(0,n.jsx)(l.A.Panel,{className:"absolute z-50 -ml-4 mt-3 w-screen max-w-md transform lg:left-1/2 lg:ml-0 lg:-translate-x-1/2",children:(0,n.jsxs)("div",{className:"overflow-hidden rounded-xl border border-border bg-popover text-popover-foreground shadow-elev-lg",children:[(0,n.jsx)("p",{className:"px-6 pb-2 pt-5 font-mono text-xs font-medium uppercase tracking-widest text-muted-foreground",children:"Documentation"}),(0,n.jsx)("div",{className:"grid gap-2 px-4 pb-4 sm:px-6",children:(0,M.o)().map(({key:e,label:t,basePath:r,description:i,theme:o,Mark:s})=>(0,n.jsx)(a(),{href:r,legacyBehavior:!0,children:(0,n.jsxs)("a",{className:`${o} group relative -m-2 flex items-start gap-4 overflow-hidden rounded-lg p-3 transition-colors hover:bg-accent`,children:[s&&(0,n.jsx)(s,{size:40,className:"relative h-10 w-10 flex-shrink-0 rounded-md"}),(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsx)("p",{className:"text-sm font-semibold text-foreground",children:t}),(0,n.jsx)("p",{className:"mt-1 text-xs text-muted-foreground",children:i})]})]})},e))}),(0,n.jsx)(a(),{href:t,legacyBehavior:!0,children:(0,n.jsxs)("a",{className:"flex items-center justify-between border-t border-border bg-muted/40 px-6 py-3 text-sm font-medium text-foreground transition-colors hover:bg-accent",children:[(0,n.jsx)("span",{children:"All Documentation"}),(0,n.jsx)("span",{"aria-hidden":"true",children:"→"})]})})]})})})]})})}function Q({label:e="Docs",viewAllHref:t="/docs"}){return(0,n.jsxs)("div",{className:"mt-2 border-t border-border pt-4",children:[(0,n.jsxs)("div",{className:"flex items-center justify-between px-3",children:[(0,n.jsx)("p",{className:"font-mono text-xs font-medium uppercase tracking-widest text-muted-foreground",children:e}),(0,n.jsx)(a(),{href:t,legacyBehavior:!0,children:(0,n.jsx)("a",{className:"text-xs font-medium text-primary hover:underline",children:"All Documentation →"})})]}),(0,n.jsx)("div",{className:"mt-2 grid grid-cols-1 gap-2",children:(0,M.o)().map(({key:e,label:t,basePath:r,description:i,Mark:o})=>(0,n.jsx)(a(),{href:r,legacyBehavior:!0,children:(0,n.jsxs)("a",{className:"flex items-center gap-4 roun
231ded-lg p-3 transition-colors hover:bg-accent",children:[o&&(0,n.jsx)(o,{size:40,className:"h-10 w-10 flex-shrink-0 rounded-md"}),(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"text-sm font-semibold text-foreground",children:t}),(0,n.jsx)("p",{className:"mt-0.5 text-xs text-muted-foreground",children:i})]})]})},e))})]})}let H=(0,i.Ay)`
232  fragment NavMenu on RootQuery {
233    menu(id: "Primary Nav", idType: NAME) {
234      id
235      name
236      menuItems(first: 100) {
237        nodes {
238          id
239          label
240          description
241          url
242          target
243          path
244          parentId
245          cssClasses
246        }
247      }
248    }
249  }
250`;function V(){let[e,t]=(0,o.useState)(!1),r=(0,C.eF)(),i=(0,A.U)(r?.menu?.menuItems?.nodes,{idKey:"id",parentKey:"parentId",childrenKey:"children"});return(0,o.useEffect)(()=>{let e=()=>t(window.scrollY>50);return window.addEventListener("scroll",e,{passive:!0}),e(),()=>window.removeEventListener("scroll",e)},[]),(0,n.jsxs)(l.A,{as:"header",className:(0,T.cn)("sticky top-0 z-50 w-full border-b border-border bg-background/80 backdrop-blur supports-[backdrop-filter]:bg-background/60 transition-shadow",e&&"shadow-elev-md"),children:[(0,n.jsxs)("div",{className:"mx-auto flex max-w-8xl items-center justify-between gap-6 px-4 py-3 sm:px-6 md:justify-start md:space-x-10",children:[(0,n.jsx)("div",{className:"flex flex-1 justify-start lg:w-0",children:(0,n.jsx)(a(),{href:"/",legacyBehavior:!0,children:(0,n.jsxs)("a",{className:"flex items-center",children:[(0,n.jsx)("span",{className:"sr-only",children:"WPGraphQL"}),(0,n.jsx)(h.A,{size:36})]})})}),(0,n.jsxs)("div",{className:"-my-2 -mr-2 flex items-center md:hidden",children:[(0,n.jsxs)(U.v,{className:"flex h-9 w-9 items-center justify-center rounded-md text-muted-foreground hover:bg-accent hover:text-foreground transition-colors",children:[(0,n.jsx)("span",{className:"sr-only",children:"Search"}),(0,n.jsxs)("svg",{width:"20",height:"20",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,n.jsx)("path",{d:"m19 19-3.5-3.5"}),(0,n.jsx)("circle",{cx:"11",cy:"11",r:"6"})]})]}),(0,n.jsx)(N,{}),(0,n.jsxs)(l.A.Button,{className:"ml-1 inline-flex h-9 w-9 items-center justify-center rounded-md text-muted-foreground hover:bg-accent hover:text-foreground transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:[(0,n.jsx)("span",{className:"sr-only",children:"Open menu"}),(0,n.jsx)(u.A,{className:"h-5 w-5","aria-hidden":"true"})]})]}),(0,n.jsx)(l.A.Group,{as:"nav",className:"hidden md:flex items-center gap-8",children:i&&i.map(e=>K(e)?(0,n.jsx)(G,{label:e.label,viewAllHref:e.path||"/docs"},e.id):$(e)?(0,n.jsx)(W,{label:e.label,viewAllHref:e.path||"/extensions"},e.id):e.children&&e.children.length?(0,n.jsx)(l.A,{className:"relative",children:({open:t})=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(l.A.Button,{className:(0,T.cn)("group inline-flex items-center gap-1 rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",t?"text-foreground":"text-muted-foreground hover:text-foreground"),children:[(0,n.jsx)("span",{children:e.label}),(0,n.jsx)(p,{className:(0,T.cn)("h-4 w-4 transition-transform",t&&"rotate-180"),"aria-hidden":"true"})]}),(0,n.jsx)(c.e,{as:o.Fragment,enter:"transition ease-out duration-200",enterFrom:"opacity-0 translate-y-1",enterTo:"opacity-100 translate-y-0",leave:"transition ease-in duration-150",leaveFrom:"opacity-100 translate-y-0",leaveTo:"opacity-0 translate-y-1",children:(0,n.jsx)(l.A.Panel,{className:"absolute z-50 -ml-4 mt-3 w-screen max-w-md transform lg:left-1/2 lg:ml-0 lg:max-w-2xl lg:-translate-x-1/2",children:(0,n.jsx)("div",{className:"overflow-hidden rounded-xl border border-border bg-popover text-popover-foreground shadow-elev-lg",children:(0,n.jsx)("div",{className:"grid gap-2 p-4 sm:gap-4 sm:p-6 lg:grid-cols-2",children:e.children?.map(e=>{let t=(0,A.L)(e);return(0,n.jsxs)("a",{href:e.path,className:"-m-2 flex items-start gap-4 roun
250ded-lg p-3 transition-colors hover:bg-accent",children:[t&&(0,n.jsx)("div",{className:"flex h-10 w-10 flex-shrink-0 items-center justify-center rounded-md border border-border bg-muted text-primary",children:(0,n.jsx)(f.A,{icon:t})}),(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"text-sm font-semibold text-foreground",children:e.label}),e.description&&(0,n.jsx)("p",{className:"mt-1 text-xs text-muted-foreground",children:e.description})]})]},e.id)})})})})})]})},e.id):(0,n.jsx)(a(),{href:e.path,legacyBehavior:!0,children:(0,n.jsx)("a",{className:"text-sm font-medium text-muted-foreground transition-colors hover:text-foreground",children:e.label})},e.id))}),(0,n.jsxs)("div",{className:"hidden flex-1 items-center justify-end gap-3 md:flex lg:w-0",children:[(0,n.jsxs)(U.v,{className:"flex h-9 w-9 items-center justify-center rounded-md text-muted-foreground hover:bg-accent hover:text-foreground transition-colors",children:[(0,n.jsx)("span",{className:"sr-only",children:"Search"}),(0,n.jsxs)("svg",{width:"18",height:"18",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,n.jsx)("path",{d:"m19 19-3.5-3.5"}),(0,n.jsx)("circle",{cx:"11",cy:"11",r:"6"})]})]}),F.map(e=>(0,n.jsxs)("a",{href:e.href,className:"flex h-9 w-9 items-center justify-center rounded-md text-muted-foreground hover:bg-accent hover:text-foreground transition-colors",target:"_blank",rel:"noreferrer",children:[(0,n.jsx)("span",{className:"sr-only",children:e.name}),(0,n.jsx)(e.icon,{className:"h-5 w-5","aria-hidden":"true"})]},e.name)),(0,n.jsx)(N,{})]})]}),(0,n.jsx)(c.e,{as:o.Fragment,enter:"duration-200 ease-out",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"duration-100 ease-in",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:(0,n.jsx)(l.A.Panel,{focus:!0,className:"absolute inset-x-0 top-0 z-50 origin-top-right transform p-2 transition md:hidden",children:(0,n.jsx)("div",{className:"rounded-xl border border-border bg-popover text-popover-foreground shadow-elev-lg",children:(0,n.jsxs)("div",{className:"px-5 pt-5 pb-6",children:[(0,n.jsxs)("div",{className:"flex items-center justify-between",children:[(0,n.jsx)(a(),{href:"/",legacyBehavior:!0,children:(0,n.jsx)("a",{children:(0,n.jsx)(h.A,{size:32})})}),(0,n.jsxs)(l.A.Button,{className:"-mr-2 inline-flex h-9 w-9 items-center justify-center rounded-md text-muted-foreground hover:bg-accent hover:text-foreground transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:[(0,n.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,n.jsx)(d.A,{className:"h-5 w-5","aria-hidden":"true"})]})]}),(0,n.jsx)("nav",{className:"mt-6 grid grid-cols-1 gap-2",children:i.map(e=>{if(K(e))return(0,n.jsx)(Q,{label:e.label,viewAllHref:e.path||"/docs"},e.id);if($(e))return(0,n.jsx)(z,{label:e.label,viewAllHref:e.path||"/extensions"},e.id);let t=(0,A.L)(e);return(0,n.jsx)(a(),{href:e.path,legacyBehavior:!0,children:(0,n.jsxs)("a",{className:"flex items-center gap-4 roun
250ded-lg p-3 transition-colors hover:bg-accent",children:[t?(0,n.jsx)("div",{className:"flex h-10 w-10 flex-shrink-0 items-center justify-center rounded-md border border-border bg-muted text-primary",children:(0,n.jsx)(f.A,{icon:t})}):null,(0,n.jsx)("div",{className:"text-sm font-semibold text-foreground",children:e.label})]})},e.path)})})]})})})})]})}function Y(){let e=new Date().getFullYear();return(0,n.jsx)("footer",{className:"mt-24 border-t border-border bg-card/50",children:(0,n.jsxs)("div",{className:"mx-auto flex max-w-7xl flex-col gap-8 px-6 py-12 md:flex-row md:items-center md:justify-between",children:[(0,n.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,n.jsx)(a(),{href:"/",legacyBehavior:!0,children:(0,n.jsxs)("a",{className:"flex items-center",children:[(0,n.jsx)("span",{className:"sr-only",children:"WPGraphQL"}),(0,n.jsx)(h.A,{size:32})]})}),(0,n.jsxs)("p",{className:"font-mono text-xs text-muted-foreground",children:["\xa9 ",e," WPGraphQL \xb7 GPL-3 Licensed"]})]}),(0,n.jsx)("div",{className:"flex items-center gap-2",children:D.map(e=>(0,n.jsxs)("a",{href:e.href,className:"flex h-9 w-9 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-accent hover:text-foreground",target:"_blank",rel:"noreferrer",children:[(0,n.jsx)("span",{className:"sr-only",children:e.name}),(0,n.jsx)(e.icon,{className:"h-5 w-5","aria-hidden":"true"})]},e.name))})]})})}function X({children:e}){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(V,{}),e,(0,n.jsx)(Y,{})]})}let J={queries:{navMenu:{query:(0,i.Ay)`
251        query Layout_NavMenu {
252          ...NavMenu
253        }
254        ${H}
255      `,variables:()=>({})}}}},6196:(e,t,r)=>{"use strict";function n(){return{"Developer Reference":[{title:"Overview",href:"/developer-reference"},{title:"Actions",href:"/actions"},{title:"Filters",href:"/filters"},{title:"Functions",href:"/functions"},{title:"Recipes",href:"/recipes"}]}}r.d(t,{A:()=>n})},6308:(e,t,r)=>{"use strict";r.d(t,{Y:()=>o});var n=r(5729),i=r(483);function o(e){let t=(0,n.useRef)(e);return(0,i.s)(()=>{t.current=e},[e]),t}},6470:e=>{"use strict";e.exports=JSON.parse('{"plugin":"wp-graphql","generatedAt":"2026-09-22T18:21:07.813Z","stats":{"totalRecipes":31},"recipes":[{"title":"ACF Nav Menu Plugin Support","slug":"acf-nav-menu-plugin-support","uri":"/recipes/acf-nav-menu-plugin-support","wordpressUri":"/recipes/acf-nav-menu-plugin-support/","uriKey":"/recipes/acf-nav-menu-plugin-support","group":"Uncategorized","summary":"This adds support (native) for the ACF Nav Menu field plugin ( https://github.com/jgraup/advanced-custom-fields-nav-menu-field ). This also requires WPGraphQL for Advanced Custom Fields . add_filter( \'wpgraphql_acf_regis…","relatedActions":[],"relatedFilters":[],"relatedFunctions":["graphql"]},{"title":"Add Edit Link to All Post Types","slug":"add-edit-link-to-all-post-types","uri":"/recipes/add-edit-link-to-all-post-types","wordpressUri":"/recipes/add-edit-link-to-all-post-types/","uriKey":"/recipes/add-edit-link-to-all-post-types","group":"Custom Fields","summary":"The following snippet shows how to add the “Edit” link as a GraphQL field to all post types: add_action( \'graphql_register_types\', function() { register_graphql_field( \'ContentNode\', \'editLink\', [ \'type\' => \'String\', \'de…","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["graphql","register_graphql_field"]},{"title":"Add field for unencoded content","slug":"add-field-for-unencoded-content","uri":"/recipes/add-field-for-unencoded-content","wordpressUri":"/recipes/add-field-for-unencoded-content/","uriKey":"/recipes/add-field-for-unencoded-content","group":"Custom Fields","summary":"The following adds a field to the NodeWithContentEditor interface to get the unencoded content for a post: add_action( \'graphql_register_types\', function() { register_graphql_field( \'NodeWithContentEditor\', \'unencodedCon…","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["graphql","register_graphql_field"]},{"title":"Add field to output URLs for Sitemap","slug":"add-field-to-output-urls-for-sitemap","uri":"/recipes/add-field-to-output-urls-for-sitemap","wordpressUri":"/recipes/add-field-to-output-urls-for-sitemap/","uriKey":"/recipes/add-field-to-output-urls-for-sitemap","group":"Custom Fields","summary":"The following code is an example of how you can create a field called allUrls that will output site URLs that could be used to generate a sitemap. The resolver uses mostly hard-coded data, but shows what a potential solu…","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["register_graphql_field"]},{"title":"Add Primary Category field for The SEO Framework plugin","slug":"add-primary-category-field-for-the-seo-framework-plugin","uri":"/recipes/add-primary-category-field-for-the-seo-framework-plugin","wordpressUri":"/recipes/add-primary-category-field-for-the-seo-framework-plugin/","uriKey":"/recipes/add-primary-category-field-for-the-seo-framework-plugin","group":"Custom Fields","summary":"The following adds a field called primaryCat field when using The SEO Framework WordPress Plugin add_action( \'init\', function() { register_graphql_connection([ \'fromType\' => \'Post\', \'toType\' => \'Category\', \'fromFieldName…","relatedActions":[],"relatedFilters":[],"relatedFunctions":["register_graphql_connection"]},{"title":"Add WP Admin Color Schemes to WPGraphQL","slug":"add-wp-admin-color-schemes-to-wpgraphql","uri":"/recipes/add-wp-admin-color-schemes-to-wpgraphql","wordpressUri":"/recipes/add-wp-admin-color-schemes-to-wpgraphql/","uriKey":"/recipes/add-wp-admin-color-schemes-to-wpgraphql","group":"WP Admin","
255summary":"The following example code allows you to add WP Admin Color Schemes data to WPGraphQL. add_action( \'graphql_register_types\', function() { $mock_colors = \' { \\"fresh\\":{ \\"name\\":\\"Default\\", \\"url\\":false, \\"colors\\":[ \\"#222\\", \\"#3…","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["graphql","register_graphql_field","register_graphql_object_type"]},{"title":"Allow login mutation to be public when the endpoint is fully restricted","slug":"allow-login-mutation-to-be-public-when-the-endpoint-is-fully-restricted","uri":"/recipes/allow-login-mutation-to-be-public-when-the-endpoint-is-fully-restricted","wordpressUri":"/recipes/allow-login-mutation-to-be-public-when-the-endpoint-is-fully-restricted/","uriKey":"/recipes/allow-login-mutation-to-be-public-when-the-endpoint-is-fully-restricted","group":"Authorization","summary":"If you’ve configured your WPGraphQL settings to “Limit the execution of GraphQL operations to authenticated requests”, this will block all root operations unless the user making the request is already authenticated. If y…","relatedActions":[],"relatedFilters":["graphql_require_authentication_allowed_fields","request"],"relatedFunctions":["graphql"]},{"title":"Changing the Server Debug Flag","slug":"change-the-debug-flag","uri":"/recipes/change-the-debug-flag","wordpressUri":"/recipes/change-the-debug-flag/","uriKey":"/recipes/change-the-debug-flag","group":"Extensions","summary":"The following snippets show how to change the Debug Flag for the GraphQL Server execution. By default, the function callstack trace is not included with errors data unless users are logged in. If you wanted to track this…","relatedActions":["graphql_server_config"],"relatedFilters":[],"relatedFunctions":["graphql"]},{"title":"Debugging JWT Authentication","slug":"debugging-jwt-authentication","uri":"/recipes/debugging-jwt-authentication","wordpressUri":"/recipes/debugging-jwt-authentication/","uriKey":"/recipes/debugging-jwt-authentication","group":"WP Admin","summary":"This snippet outputs the $_SERVER superglobal so we can see if the Authorization token is being passed to the server or not. add_action( \'init\', function() { if ( is_graphql_http_request() ) { wp_send_json( [ \'server\' =>…","relatedActions":[],"relatedFilters":[],"relatedFunctions":["is_graphql_http_request"]},{"title":"Deprecating a field in the Schema","slug":"deprecating-a-field-in-the-schema","uri":"/recipes/deprecating-a-field-in-the-schema","wordpressUri":"/recipes/deprecating-a-field-in-the-schema/","uriKey":"/recipes/deprecating-a-field-in-the-schema","group":"Custom Fields","summary":"Sometimes it can be helpful to deprecate a field in the Schema without removing it altogether. This snippet shows how to deprecate the `Post.excerpt` field. You can use this technique to deprecate other fields. // Filter…","relatedActions":[],"relatedFilters":["graphql_object_fields"],"relatedFunctions":[]},{"title":"Filter Connection Args","slug":"filter-connection-args","uri":"/recipes/filter-connection-args","wordpressUri":"/recipes/filter-connection-args/","uriKey":"/recipes/filter-connection-args","group":"Uncategorized","summary":"This filters connection args by checking the field name the connection is coming from as well as the type the connection is coming from. add_filter( \'graphql_connection_query_args\', function( $args, \\\\WPGraphQL\\\\Data\\\\Conne…","relatedActions":[],"relatedFilters":["graphql_connection_query_args"],"relatedFunctions":[]},{"title":"Filter to add restricted field on Model","slug":"filter-to-add-restricted-field-on-model","uri":"/recipes/filter-to-add-restricted-field-on-model","wordpressUri":"/recipes/filter-to-add-restricted-field-on-model/","uriKey":"/recipes/filter-to-add-restricted-field-on-model","group":"Queries","summary":"Labels on Post Types are not publicly exposed by WordPress. They are attributes for use in the Admin, and are treated with respect to proper access to the admin. To see the labels, the user requesting them must be authen…","relatedActions":[],"relatedFilters":["request"],"relatedFunctions":["graphql"]},{"title":"Fix pagination conflict with the “Advanced Taxonomy Terms Order” plugin","slug":"fix-pagination-conflict-with-the-advanced-taxonomy-terms-order-plugin","uri":"/recipes/fix-pagination-conflict-with-the-advanced-taxonomy-terms-order-plugin","wordpressUri":"/recipes/fix-pagination-conflict-with-the-advanced-taxonomy-terms-order-plugin/","uriKey":"/recipes/fix-pagination-conflict-with-the-advanced-taxonomy-terms-order-plugin","group":"Uncategorized","summary":"When using the Advanced Taxonomy Terms Order plugin along with WPGraphQL, you might experience some issues with paginated queries. This snippet should help correct the conflict: add_action( \'pre_get_terms\', function() {…","relatedActions":[],"relatedFilters":["graphql_term_object_connection_query_args","request"],"relatedFunctions":["graphql","is_graphql_request"]},{"title":"Fix pagination conflict with the “Post Type Order” plugin","slug":"fix-pagination-conflict-with-the-post-type-order-plugin","uri":"/recipes/fix-pagination-conflict-with-the-post-type-order-plugin","wordpressUri":"/recipes/fix-pagination-conflict-with-the-post-type-order-plugin/","uriKey":"/recipes/fix-pagination-conflict-with-the-post-type-order-plugin","group":"Uncategorized","summary":"When using the Post Type Order plugin along with WPGraphQL, you might experience some issues with paginated queries. This snippet should help correct the conflict: add_action( \'pre_get_posts\', function () { // access the…","relatedActions":[],"relatedFilters":["graphql_post_object_connection_query_args","request"],"relatedFunctions":["graphql","is_graphql_request"]},{"title":"List of Key Values","slug":"list-of-key-values","uri":"/recipes/list-of-key-values","wordpressUri":"/recipes/list-of-key-values/","uriKey":"/recipes/list-of-key-values","group":"Custom Fields","summary":"This is an example showing how to return a list of keys and values where the keys and values are both strings. add_action( \'graphql_register_types\', function() { register_graphql_object_type( \'keyValue\', [ \'description\'…","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["register_graphql_field","register_graphql_object_type"]},{"title":"Log WPGraphQL requests to error log","slug":"log-wpgraphql-requests-to-error-log","uri":"/recipes/log-wpgraphql-requests-to-error-log","wordpressUri":"/recipes/log-wpgraphql-requests-to-error-log/","uriKey":"/recipes/log-wpgraphql-requests-to-error-log","group":"WP Admin","
255summary":"This snippet logs all WPGraphQL requests to the error log add_action( \'do_graphql_request\', function( $query, $operation, $variables, $params) { error_log( wp_json_encode( [ \'query\' => $query, \'operation\' => $operation,…","relatedActions":["do_graphql_request"],"relatedFilters":[],"relatedFunctions":["do_graphql_request"]},{"title":"Make all Users Public","slug":"make-all-users-public","uri":"/recipes/make-all-users-public","wordpressUri":"/recipes/make-all-users-public/","uriKey":"/recipes/make-all-users-public","group":"Authorization","summary":"The following snippets allow for Users with no published content to be shown in public (non-authenticated) WPGraphQL query results. For a more detailed write-up, read the blog post: Allowing WPGraphQL to show unpublished…","relatedActions":[],"relatedFilters":["graphql_connection_query_args","graphql_object_visibility"],"relatedFunctions":[]},{"title":"Making Menus and Menu Items public","slug":"making-menus-and-menu-items-public","uri":"/recipes/making-menus-and-menu-items-public","wordpressUri":"/recipes/making-menus-and-menu-items-public/","uriKey":"/recipes/making-menus-and-menu-items-public","group":"Authorization","summary":"By default, Menus and Menu Items that are not assigned to a Menu Location are considered private, meaning they are not exposed in non-authenticated WPGraphQL Queries. If you want to expose Menus and Menu Items that are n…","relatedActions":[],"relatedFilters":["graphql_data_is_private"],"relatedFunctions":["graphql"]},{"title":"Page Siblings Connection","slug":"page-siblings-connection","uri":"/recipes/page-siblings-connection","wordpressUri":"/recipes/page-siblings-connection/","uriKey":"/recipes/page-siblings-connection","group":"Uncategorized","summary":"Below is a connection that adds the ability to query page siblings (i.e. pages that share the same parent) add_action( \'graphql_register_types\', function() { register_graphql_connection( [ \'fromType\' => \'Page\', \'toType\'…","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["register_graphql_connection"]},{"title":"Popular Posts","slug":"popular-posts","uri":"/recipes/popular-posts","wordpressUri":"/recipes/popular-posts/","uriKey":"/recipes/popular-posts","group":"Custom Post Types","summary":"The following code allows you to query for popular posts. It’s still up to you to determine the best way to store popular posts, but this example assumes a meta_key is involved. Beware though, meta queries can be expensi…","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["graphql","register_graphql_connection","register_graphql_field"]},{"title":"Query the Homepage","slug":"query-the-homepage","uri":"/recipes/query-the-homepage","wordpressUri":"/recipes/query-the-homepage/","uriKey":"/recipes/query-the-homepage","group":"Queries","summary":"In WordPress, the homepage can be a Page or an archive of posts of the Post post_type (which is represented by WPGraphQL as a “ContentType” node). This query allows you to query the homepage, and specify what data you wa…","relatedActions":[],"relatedFilters":[],"relatedFunctions":[]},{"title":"Register a basic Mutation","slug":"register-a-basic-mutation","uri":"/recipes/register-a-basic-mutation","wordpressUri":"/recipes/register-a-basic-mutation/","uriKey":"/recipes/register-a-basic-mutation","group":"Custom Fields","summary":"This snippet shows how to register a basic GraphQL Mutation with a single input field, a single output field, and the input is simply returned as the value for the output. add_action( \'graphql_register_types\', function()…","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["graphql","register_graphql_mutation"]},{"title":"Register Connection to Attached Media","slug":"register-connection-to-attached-media","uri":"/recipes/register-connection-to-attached-media","wordpressUri":"/recipes/register-connection-to-attached-media/","uriKey":"/recipes/register-connection-to-attached-media","group":"Custom Post Types","summary":"This code shows how to register a connection to attached media in WPGraphQL add_action( \'graphql_register_types\', function() { register_graphql_connection([ \'fromType\' => \'ContentNode\', \'toType\' => \'MediaItem\', \'fromFiel…","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["register_graphql_connection"]},{"title":"Register field as a list of strings","slug":"register-field-as-a-list-of-strings","uri":"/recipes/register-field-as-a-list-of-strings","wordpressUri":"/recipes/register-field-as-a-list-of-strings/","uriKey":"/recipes/register-field-as-a-list-of-strings","group":"Custom Fields","summary":"The below code registers a field called listOfStrings that returns a list of strings as the result: add_action( \'graphql_register_types\', function() { register_graphql_field( \'RootQuery\', \'listOfStrings\', [ \'type\' => [ \'…","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["register_graphql_field"]},{"title":"Register GraphQL Field with Argument","slug":"register-graphql-field-with-argument","uri":"/recipes/register-graphql-field-with-argument","wordpressUri":"/recipes/register-graphql-field-with-argument/","uriKey":"/recipes/register-graphql-field-with-argument","group":"Custom Fields","summary":"This is an example of registering a field with an argument showing how to use the argument in a resolver. add_action( \'graphql_register_types\', function() { register_graphql_field( \'RootQuery\', \'myNewField\', [ \'type\' =>…","relatedActions":["graphql_register_types"],"relatedFilters":["request"],"relatedFunctions":["register_graphql_field"]},{"title":"Register object and field for custom list of users","slug":"register-object-and-field-for-custom-list-of-users","uri":"/recipes/register-object-and-field-for-custom-list-of-users","wordpressUri":"/recipes/register-object-and-field-for-custom-list-of-users/","uriKey":"/recipes/register-object-and-field-for-custom-list-of-users","group":"Custom Fields","summary":"The following code creates an object type called StuntPerformer and creates a field on the RootQuery called stuntPerformers that returns a custom list of users. In this case, the list of users are the admins of the websi…","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["graphql","register_graphql_field","register_graphql_object_type"]}
255,{"title":"Remove Extensions from GraphQL Response","slug":"remove-extensions-from-graphql-response","uri":"/recipes/remove-extensions-from-graphql-response","wordpressUri":"/recipes/remove-extensions-from-graphql-response/","uriKey":"/recipes/remove-extensions-from-graphql-response","group":"Execution","summary":"This snippet removes the “extensions” from the GraphQL response: add_filter( \'graphql_request_results\', function( $response ) { // If it\'s an ExecutionResult object, we need to handle it differently if ( $response instan…","relatedActions":[],"relatedFilters":["graphql_request_results"],"relatedFunctions":["graphql"]},{"title":"Showing Post Type labels in public queries","slug":"showing-post-type-labels-in-public-queries","uri":"/recipes/showing-post-type-labels-in-public-queries","wordpressUri":"/recipes/showing-post-type-labels-in-public-queries/","uriKey":"/recipes/showing-post-type-labels-in-public-queries","group":"Authorization","summary":"WPGraphQL respects WordPress core access control rights. This means that data that is only available to authenticated users in the WordPress admin is only available to authenticated users making GraphQL requests. Sometim…","relatedActions":[],"relatedFilters":[],"relatedFunctions":["graphql"]},{"title":"Tag to Content Node Connection","slug":"tag-to-content-node-connection","uri":"/recipes/tag-to-content-node-connection","wordpressUri":"/recipes/tag-to-content-node-connection/","uriKey":"/recipes/tag-to-content-node-connection","group":"Custom Post Types","summary":"The following code registers a connection from Tags to ContentNodes. A field name called contentNodes will be added to the Tag type to make it easy to view all Posts that are tagged with that specific term. add_action( \'…","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["graphql","register_graphql_connection"]},{"title":"Update WPGraphQL Endpoint URL","slug":"update-wpgraphql-endpoint-url","uri":"/recipes/update-wpgraphql-endpoint-url","wordpressUri":"/recipes/update-wpgraphql-endpoint-url/","uriKey":"/recipes/update-wpgraphql-endpoint-url","group":"WP Admin","summary":"You can modify the WPGraphQL endpoint in code with the following: function my_new_graphql_endpoint() { return \'cutepuppies\'; }; add_filter( \'graphql_endpoint\', \'my_new_graphql_endpoint\' ); This will change the graphql en…","relatedActions":[],"relatedFilters":["graphql_endpoint"],"relatedFunctions":["graphql"]},{"title":"Using GraphQL Fragments in PHP","slug":"using-graphql-fragments-in-php","uri":"/recipes/using-graphql-fragments-in-php","wordpressUri":"/recipes/using-graphql-fragments-in-php/","uriKey":"/recipes/using-graphql-fragments-in-php","group":"Queries","summary":"You can execute GraphQL queries in PHP. In this case, we even show using a GraphQL Fragment. add_action( \'init\', function() { $results = graphql([ \'query\' => \' { posts { nodes { ...PostFields } } } fragment PostFields on…","relatedActions":[],"relatedFilters":[],"relatedFunctions":["graphql"]}],"relations":{"actions":{"graphql_register_types":[{"title":"Add Edit Link to All Post Types","slug":"add-edit-link-to-all-post-types","uri":"/recipes/add-edit-link-to-all-post-types","wordpressUri":"/recipes/add-edit-link-to-all-post-types/","uriKey":"/recipes/add-edit-link-to-all-post-types","group":"Custom Fields","summary":"The following snippet shows how to add the “Edit” link as a GraphQL field to all post types: add_action( \'graphql_register_types\', function() { register_graphql_field( \'ContentNode\', \'editLink\', [ \'type\' => \'String\', \'de…","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["graphql","register_graphql_field"]},{"title":"Add field for unencoded content","slug":"add-field-for-unencoded-content","uri":"/recipes/add-field-for-unencoded-content","wordpressUri":"/recipes/add-field-for-unencoded-content/","uriKey":"/recipes/add-field-for-unencoded-content","group":"Custom Fields","summary":"The following adds a field to the NodeWithContentEditor interface to get the unencoded content for a post: add_action( \'graphql_register_types\', function() { register_graphql_field( \'NodeWithContentEditor\', \'unencodedCon…","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["graphql","register_graphql_field"]},{"title":"Add field to output URLs for Sitemap","slug":"add-field-to-output-urls-for-sitemap","uri":"/recipes/add-field-to-output-urls-for-sitemap","wordpressUri":"/recipes/add-field-to-output-urls-for-sitemap/","uriKey":"/recipes/add-field-to-output-urls-for-sitemap","group":"Custom Fields","summary":"The following code is an example of how you can create a field called allUrls that will output site URLs that could be used to generate a sitemap. The resolver uses mostly hard-coded data, but shows what a potential solu…","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["register_graphql_field"]},{"title":"Add WP Admin Color Schemes to WPGraphQL","slug":"add-wp-admin-color-schemes-to-wpgraphql","uri":"/recipes/add-wp-admin-color-schemes-to-wpgraphql","wordpressUri":"/recipes/add-wp-admin-color-schemes-to-wpgraphql/","uriKey":"/recipes/add-wp-admin-color-schemes-to-wpgraphql","group":"WP Admin","
255summary":"The following example code allows you to add WP Admin Color Schemes data to WPGraphQL. add_action( \'graphql_register_types\', function() { $mock_colors = \' { \\"fresh\\":{ \\"name\\":\\"Default\\", \\"url\\":false, \\"colors\\":[ \\"#222\\", \\"#3…","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["graphql","register_graphql_field","register_graphql_object_type"]},{"title":"List of Key Values","slug":"list-of-key-values","uri":"/recipes/list-of-key-values","wordpressUri":"/recipes/list-of-key-values/","uriKey":"/recipes/list-of-key-values","group":"Custom Fields","summary":"This is an example showing how to return a list of keys and values where the keys and values are both strings. add_action( \'graphql_register_types\', function() { register_graphql_object_type( \'keyValue\', [ \'description\'…","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["register_graphql_field","register_graphql_object_type"]},{"title":"Page Siblings Connection","slug":"page-siblings-connection","uri":"/recipes/page-siblings-connection","wordpressUri":"/recipes/page-siblings-connection/","uriKey":"/recipes/page-siblings-connection","group":"Uncategorized","summary":"Below is a connection that adds the ability to query page siblings (i.e. pages that share the same parent) add_action( \'graphql_register_types\', function() { register_graphql_connection( [ \'fromType\' => \'Page\', \'toType\'…","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["register_graphql_connection"]},{"title":"Popular Posts","slug":"popular-posts","uri":"/recipes/popular-posts","wordpressUri":"/recipes/popular-posts/","uriKey":"/recipes/popular-posts","group":"Custom Post Types","summary":"The following code allows you to query for popular posts. It’s still up to you to determine the best way to store popular posts, but this example assumes a meta_key is involved. Beware though, meta queries can be expensi…","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["graphql","register_graphql_connection","register_graphql_field"]},{"title":"Register a basic Mutation","slug":"register-a-basic-mutation","uri":"/recipes/register-a-basic-mutation","wordpressUri":"/recipes/register-a-basic-mutation/","uriKey":"/recipes/register-a-basic-mutation","group":"Custom Fields","summary":"This snippet shows how to register a basic GraphQL Mutation with a single input field, a single output field, and the input is simply returned as the value for the output. add_action( \'graphql_register_types\', function()…","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["graphql","register_graphql_mutation"]},{"title":"Register Connection to Attached Media","slug":"register-connection-to-attached-media","uri":"/recipes/register-connection-to-attached-media","wordpressUri":"/recipes/register-connection-to-attached-media/","uriKey":"/recipes/register-connection-to-attached-media","group":"Custom Post Types","summary":"This code shows how to register a connection to attached media in WPGraphQL add_action( \'graphql_register_types\', function() { register_graphql_connection([ \'fromType\' => \'ContentNode\', \'toType\' => \'MediaItem\', \'fromFiel…","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["register_graphql_connection"]},{"title":"Register field as a list of strings","slug":"register-field-as-a-list-of-strings","uri":"/recipes/register-field-as-a-list-of-strings","wordpressUri":"/recipes/register-field-as-a-list-of-strings/","uriKey":"/recipes/register-field-as-a-list-of-strings","group":"Custom Fields","summary":"The below code registers a field called listOfStrings that returns a list of strings as the result: add_action( \'graphql_register_types\', function() { register_graphql_field( \'RootQuery\', \'listOfStrings\', [ \'type\' => [ \'…","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["register_graphql_field"]},{"title":"Register GraphQL Field with Argument","slug":"register-graphql-field-with-argument","uri":"/recipes/register-graphql-field-with-argument","wordpressUri":"/recipes/register-graphql-field-with-argument/","uriKey":"/recipes/register-graphql-field-with-argument","group":"Custom Fields","summary":"This is an example of registering a field with an argument showing how to use the argument in a resolver. add_action( \'graphql_register_types\', function() { register_graphql_field( \'RootQuery\', \'myNewField\', [ \'type\' =>…","relatedActions":["graphql_register_types"],"relatedFilters":["request"],"relatedFunctions":["register_graphql_field"]},{"title":"Register object and field for custom list of users","slug":"register-object-and-field-for-custom-list-of-users","uri":"/recipes/register-object-and-field-for-custom-list-of-users","wordpressUri":"/recipes/register-object-and-field-for-custom-list-of-users/","uriKey":"/recipes/register-object-and-field-for-custom-list-of-users","group":"Custom Fields","summary":"The following code creates an object type called StuntPerformer and creates a field on the RootQuery called stuntPerformers that returns a custom list of users. In this case, the list of users are the admins of the websi…","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["graphql","register_graphql_field","register_graphql_object_type"]},{"title":"Tag to Content Node Connection","slug":"tag-to-content-node-connection","uri":"/recipes/tag-to-content-node-connection","wordpressUri":"/recipes/tag-to-content-node-connection/","uriKey":"/recipes/tag-to-content-node-connection","group":"Custom Post Types","summary":"The following code registers a connection from Tags to ContentNodes. A field name called contentNodes will be added to the Tag type to make it easy to view all Posts that are tagged with that specific term. add_action( \'…","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["graphql","register_graphql_connection"]}],"graphql_server_config":[{"title":"Changing the Server Debug Flag","slug":"change-the-debug-flag","uri":"/recipes/change-the-debug-flag","wordpressUri":"/recipes/change-the-debug-flag/","uriKey":"/recipes/change-the-debug-flag","group":"Extensions","summary":"The following snippets show how to change the Debug Flag for the GraphQL Server execution. By default, the function callstack trace is not included with errors data unless users are logged in. If you wanted to track this…","relatedActions":["graphql_server_config"],"relatedFilters":[],"relatedFunctions":["graphql"]}],"do_graphql_request":[{"title":"Log WPGraphQL requests to error log","slug":"log-wpgraphql-requests-to-error-log","uri":"/recipes/log-wpgraphql-requests-to-error-log","wordpressUri":"/recipes/log-wpgraphql-requests-to-error-log/","uriKey":"/recipes/log-wpgraphql-requests-to-error-log","group":"WP Admin","
255summary":"This snippet logs all WPGraphQL requests to the error log add_action( \'do_graphql_request\', function( $query, $operation, $variables, $params) { error_log( wp_json_encode( [ \'query\' => $query, \'operation\' => $operation,…","relatedActions":["do_graphql_request"],"relatedFilters":[],"relatedFunctions":["do_graphql_request"]}]},"filters":{"graphql_require_authentication_allowed_fields":[{"title":"Allow login mutation to be public when the endpoint is fully restricted","slug":"allow-login-mutation-to-be-public-when-the-endpoint-is-fully-restricted","uri":"/recipes/allow-login-mutation-to-be-public-when-the-endpoint-is-fully-restricted","wordpressUri":"/recipes/allow-login-mutation-to-be-public-when-the-endpoint-is-fully-restricted/","uriKey":"/recipes/allow-login-mutation-to-be-public-when-the-endpoint-is-fully-restricted","group":"Authorization","summary":"If you’ve configured your WPGraphQL settings to “Limit the execution of GraphQL operations to authenticated requests”, this will block all root operations unless the user making the request is already authenticated. If y…","relatedActions":[],"relatedFilters":["graphql_require_authentication_allowed_fields","request"],"relatedFunctions":["graphql"]}],"request":[{"title":"Allow login mutation to be public when the endpoint is fully restricted","slug":"allow-login-mutation-to-be-public-when-the-endpoint-is-fully-restricted","uri":"/recipes/allow-login-mutation-to-be-public-when-the-endpoint-is-fully-restricted","wordpressUri":"/recipes/allow-login-mutation-to-be-public-when-the-endpoint-is-fully-restricted/","uriKey":"/recipes/allow-login-mutation-to-be-public-when-the-endpoint-is-fully-restricted","group":"Authorization","summary":"If you’ve configured your WPGraphQL settings to “Limit the execution of GraphQL operations to authenticated requests”, this will block all root operations unless the user making the request is already authenticated. If y…","relatedActions":[],"relatedFilters":["graphql_require_authentication_allowed_fields","request"],"relatedFunctions":["graphql"]},{"title":"Filter to add restricted field on Model","slug":"filter-to-add-restricted-field-on-model","uri":"/recipes/filter-to-add-restricted-field-on-model","wordpressUri":"/recipes/filter-to-add-restricted-field-on-model/","uriKey":"/recipes/filter-to-add-restricted-field-on-model","group":"Queries","summary":"Labels on Post Types are not publicly exposed by WordPress. They are attributes for use in the Admin, and are treated with respect to proper access to the admin. To see the labels, the user requesting them must be authen…","relatedActions":[],"relatedFilters":["request"],"relatedFunctions":["graphql"]},{"title":"Fix pagination conflict with the “Advanced Taxonomy Terms Order” plugin","slug":"fix-pagination-conflict-with-the-advanced-taxonomy-terms-order-plugin","uri":"/recipes/fix-pagination-conflict-with-the-advanced-taxonomy-terms-order-plugin","wordpressUri":"/recipes/fix-pagination-conflict-with-the-advanced-taxonomy-terms-order-plugin/","uriKey":"/recipes/fix-pagination-conflict-with-the-advanced-taxonomy-terms-order-plugin","group":"Uncategorized","summary":"When using the Advanced Taxonomy Terms Order plugin along with WPGraphQL, you might experience some issues with paginated queries. This snippet should help correct the conflict: add_action( \'pre_get_terms\', function() {…","relatedActions":[],"relatedFilters":["graphql_term_object_connection_query_args","request"],"relatedFunctions":["graphql","is_graphql_request"]},{"title":"Fix pagination conflict with the “Post Type Order” plugin","slug":"fix-pagination-conflict-with-the-post-type-order-plugin","uri":"/recipes/fix-pagination-conflict-with-the-post-type-order-plugin","wordpressUri":"/recipes/fix-pagination-conflict-with-the-post-type-order-plugin/","uriKey":"/recipes/fix-pagination-conflict-with-the-post-type-order-plugin","group":"Uncategorized","summary":"When using the Post Type Order plugin along with WPGraphQL, you might experience some issues with paginated queries. This snippet should help correct the conflict: add_action( \'pre_get_posts\', function () { // access the…","relatedActions":[],"relatedFilters":["graphql_post_object_connection_query_args","request"],"relatedFunctions":["graphql","is_graphql_request"]},{"title":"Register GraphQL Field with Argument","slug":"register-graphql-field-with-argument","uri":"/recipes/register-graphql-field-with-argument","wordpressUri":"/recipes/register-graphql-field-with-argument/","uriKey":"/recipes/register-graphql-field-with-argument","group":"Custom Fields","summary":"This is an example of registering a field with an argument showing how to use the argument in a resolver. add_action( \'graphql_register_types\', function() { register_graphql_field( \'RootQuery\', \'myNewField\', [ \'type\' =>…","relatedActions":["graphql_register_types"],"relatedFilters":["request"],"relatedFunctions":["register_graphql_field"]}],"graphql_object_fields":[{"title":"Deprecating a field in the Schema","slug":"deprecating-a-field-in-the-schema","uri":"/recipes/
255deprecating-a-field-in-the-schema","wordpressUri":"/recipes/deprecating-a-field-in-the-schema/","uriKey":"/recipes/deprecating-a-field-in-the-schema","group":"Custom Fields","summary":"Sometimes it can be helpful to deprecate a field in the Schema without removing it altogether. This snippet shows how to deprecate the `Post.excerpt` field. You can use this technique to deprecate other fields. // Filter…","relatedActions":[],"relatedFilters":["graphql_object_fields"],"relatedFunctions":[]}],"graphql_connection_query_args":[{"title":"Filter Connection Args","slug":"filter-connection-args","uri":"/recipes/filter-connection-args","wordpressUri":"/recipes/filter-connection-args/","uriKey":"/recipes/filter-connection-args","group":"Uncategorized","summary":"This filters connection args by checking the field name the connection is coming from as well as the type the connection is coming from. add_filter( \'graphql_connection_query_args\', function( $args, \\\\WPGraphQL\\\\Data\\\\Conne…","relatedActions":[],"relatedFilters":["graphql_connection_query_args"],"relatedFunctions":[]},{"title":"Make all Users Public","slug":"make-all-users-public","uri":"/recipes/make-all-users-public","wordpressUri":"/recipes/make-all-users-public/","uriKey":"/recipes/make-all-users-public","group":"Authorization","summary":"The following snippets allow for Users with no published content to be shown in public (non-authenticated) WPGraphQL query results. For a more detailed write-up, read the blog post: Allowing WPGraphQL to show unpublished…","relatedActions":[],"relatedFilters":["graphql_connection_query_args","graphql_object_visibility"],"relatedFunctions":[]}],"graphql_term_object_connection_query_args":[{"title":"Fix pagination conflict with the “Advanced Taxonomy Terms Order” plugin","slug":"fix-pagination-conflict-with-the-advanced-taxonomy-terms-order-plugin","uri":"/recipes/fix-pagination-conflict-with-the-advanced-taxonomy-terms-order-plugin","wordpressUri":"/recipes/fix-pagination-conflict-with-the-advanced-taxonomy-terms-order-plugin/","uriKey":"/recipes/fix-pagination-conflict-with-the-advanced-taxonomy-terms-order-plugin","group":"Uncategorized","summary":"When using the Advanced Taxonomy Terms Order plugin along with WPGraphQL, you might experience some issues with paginated queries. This snippet should help correct the conflict: add_action( \'pre_get_terms\', function() {…","relatedActions":[],"relatedFilters":["graphql_term_object_connection_query_args","request"],"relatedFunctions":["graphql","is_graphql_request"]}],"graphql_post_object_connection_query_args":[{"title":"Fix pagination conflict with the “Post Type Order” plugin","slug":"fix-pagination-conflict-with-the-post-type-order-plugin","uri":"/recipes/fix-pagination-conflict-with-the-post-type-order-plugin","wordpressUri":"/recipes/fix-pagination-conflict-with-the-post-type-order-plugin/","uriKey":"/recipes/fix-pagination-conflict-with-the-post-type-order-plugin","group":"Uncategorized","summary":"When using the Post Type Order plugin along with WPGraphQL, you might experience some issues with paginated queries. This snippet should help correct the conflict: add_action( \'pre_get_posts\', function () { // access the…","relatedActions":[],"relatedFilters":["graphql_post_object_connection_query_args","request"],"relatedFunctions":["graphql","is_graphql_request"]}],"graphql_object_visibility":[{"title":"Make all Users Public","slug":"make-all-users-public","uri":"/recipes/make-all-users-public","wordpressUri":"/recipes/make-all-users-public/","uriKey":"/recipes/make-all-users-public","group":"Authorization","summary":"The following snippets allow for Users with no published content to be shown in public (non-authenticated) WPGraphQL query results. For a more detailed write-up, read the blog post: Allowing WPGraphQL to show unpublished…","relatedActions":[],"relatedFilters":["graphql_connection_query_args","graphql_object_visibility"],"relatedFunctions":[]}],"graphql_data_is_private":[{"title":"Making Menus and Menu Items public","slug":"making-menus-and-menu-items-public","uri":"/recipes/making-menus-and-menu-items-public","wordpressUri":"/recipes/making-menus-and-menu-items-public/","uriKey":"/recipes/making-menus-and-menu-items-public","group":"Authorization","summary":"By default, Menus and Menu Items that are not assigned to a Menu Location are considered private, meaning they are not exposed in non-authenticated WPGraphQL Quer
255ies. If you want to expose Menus and Menu Items that are n…","relatedActions":[],"relatedFilters":["graphql_data_is_private"],"relatedFunctions":["graphql"]}],"graphql_request_results":[{"title":"Remove Extensions from GraphQL Response","slug":"remove-extensions-from-graphql-response","uri":"/recipes/remove-extensions-from-graphql-response","wordpressUri":"/recipes/remove-extensions-from-graphql-response/","uriKey":"/recipes/remove-extensions-from-graphql-response","group":"Execution","summary":"This snippet removes the “extensions” from the GraphQL response: add_filter( \'graphql_request_results\', function( $response ) { // If it\'s an ExecutionResult object, we need to handle it differently if ( $response instan…","relatedActions":[],"relatedFilters":["graphql_request_results"],"relatedFunctions":["graphql"]}],"graphql_endpoint":[{"title":"Update WPGraphQL Endpoint URL","slug":"update-wpgraphql-endpoint-url","uri":"/recipes/update-wpgraphql-endpoint-url","wordpressUri":"/recipes/update-wpgraphql-endpoint-url/","uriKey":"/recipes/update-wpgraphql-endpoint-url","group":"WP Admin","summary":"You can modify the WPGraphQL endpoint in code with the following: function my_new_graphql_endpoint() { return \'cutepuppies\'; }; add_filter( \'graphql_endpoint\', \'my_new_graphql_endpoint\' ); This will change the graphql en…","relatedActions":[],"relatedFilters":["graphql_endpoint"],"relatedFunctions":["graphql"]}]},"functions":{"graphql":[{"title":"ACF Nav Menu Plugin Support","slug":"acf-nav-menu-plugin-support","uri":"/recipes/acf-nav-menu-plugin-support","wordpressUri":"/recipes/acf-nav-menu-plugin-support/","uriKey":"/recipes/acf-nav-menu-plugin-support","group":"Uncategorized","summary":"This adds support (native) for the ACF Nav Menu field plugin ( https://github.com/jgraup/advanced-custom-fields-nav-menu-field ). This also requires WPGraphQL for Advanced Custom Fields . add_filter( \'wpgraphql_acf_regis…","relatedActions":[],"relatedFilters":[],"relatedFunctions":["graphql"]},{"title":"Add Edit Link to All Post Types","slug":"add-edit-link-to-all-post-types","uri":"/recipes/add-edit-link-to-all-post-types","wordpressUri":"/recipes/add-edit-link-to-all-post-types/","uriKey":"/recipes/add-edit-link-to-all-post-types","group":"Custom Fields","summary":"The following snippet shows how to add the “Edit” link as a GraphQL field to all post types: add_action( \'graphql_register_types\', function() { register_graphql_field( \'ContentNode\', \'editLink\', [ \'type\' => \'String\', \'de…","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["graphql","register_graphql_field"]},{"title":"Add field for unencoded content","slug":"add-field-for-unencoded-content","uri":"/recipes/add-field-for-unencoded-content","wordpressUri":"/recipes/add-field-for-unencoded-content/","uriKey":"/recipes/add-field-for-unencoded-content","group":"Custom Fields","summary":"The following adds a field to the NodeWithContentEditor interface to get the unencoded content for a post: add_action( \'graphql_register_types\', function() { register_graphql_field( \'NodeWithContentEditor\', \'unencodedCon…","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["graphql","register_graphql_field"]},{"title":"Add WP Admin Color Schemes to WPGraphQL","slug":"add-wp-admin-color-schemes-to-wpgraphql","uri":"/recipes/add-wp-admin-color-schemes-to-wpgraphql","wordpressUri":"/recipes/add-wp-admin-color-schemes-to-wpgraphql/","uriKey":"/recipes/add-wp-admin-color-schemes-to-wpgraphql","group":"WP Admin","summary":"The following example code allows you to add WP Admin Color Schemes data to WPGraphQL. add_action( \'graphql_register_types\', function() { $mock_colors = \' { \\"fresh\\":{ \\"name\\":\\"Default\\", \\"url\\":false, \\"colors\\":[ \\"#222\\", \\"#3…","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["graphql","register_graphql_field","register_graphql_object_type"]},{"title":"Allow login mutation to be public when the endpoint is fully restricted","slug":"allow-login-mutation-to-be-public-w
255hen-the-endpoint-is-fully-restricted","uri":"/recipes/allow-login-mutation-to-be-public-when-the-endpoint-is-fully-restricted","wordpressUri":"/recipes/allow-login-mutation-to-be-public-when-the-endpoint-is-fully-restricted/","uriKey":"/recipes/allow-login-mutation-to-be-public-when-the-endpoint-is-fully-restricted","group":"Authorization","summary":"If you’ve configured your WPGraphQL settings to “Limit the execution of GraphQL operations to authenticated requests”, this will block all root operations unless the user making the request is already authenticated. If y…","relatedActions":[],"relatedFilters":["graphql_require_authentication_allowed_fields","request"],"relatedFunctions":["graphql"]},{"title":"Changing the Server Debug Flag","slug":"change-the-debug-flag","uri":"/recipes/change-the-debug-flag","wordpressUri":"/recipes/change-the-debug-flag/","uriKey":"/recipes/change-the-debug-flag","group":"Extensions","summary":"The following snippets show how to change the Debug Flag for the GraphQL Server execution. By default, the function callstack trace is not included with errors data unless users are logged in. If you wanted to track this…","relatedActions":["graphql_server_config"],"relatedFilters":[],"relatedFunctions":["graphql"]},{"title":"Filter to add restricted field on Model","slug":"filter-to-add-restricted-field-on-model","uri":"/recipes/filter-to-add-restricted-field-on-model","wordpressUri":"/recipes/filter-to-add-restricted-field-on-model/","uriKey":"/recipes/filter-to-add-restricted-field-on-model","group":"Queries","summary":"Labels on Post Types are not publicly exposed by WordPress. They are attributes for use in the Admin, and are treated with respect to proper access to the admin. To see the labels, the user requesting them must be authen…","relatedActions":[],"relatedFilters":["request"],"relatedFunctions":["graphql"]},{"title":"Fix pagination conflict with the “Advanced Taxonomy Terms Order” plugin","slug":"fix-pagination-conflict-with-the-advanced-taxonomy-terms-order-plugin","uri":"/recipes/fix-pagination-conflict-with-the-advanced-taxonomy-terms-order-plugin","wordpressUri":"/recipes/fix-pagination-conflict-with-the-advanced-taxonomy-terms-order-plugin/","uriKey":"/recipes/fix-pagination-conflict-with-the-advanced-taxonomy-terms-order-plugin","group":"Uncategorized","summary":"When using the Advanced Taxonomy Terms Order plugin along with WPGraphQL, you might experience some issues with paginated queries. This snippet should help correct the conflict: add_action( \'pre_get_terms\', function() {…","relatedActions":[],"relatedFilters":["graphql_term_object_connection_query_args","request"],"relatedFunctions":["graphql","is_graphql_request"]},{"title":"Fix pagination conflict with the “Post Type Order” plugin","slug":"fix-pagination-conflict-with-the-post-type-order-plugin","uri":"/recipes/fix-pagination-conflict-with-the-post-type-order-plugin","wordpressUri":"/recipes/fix-pagination-conflict-with-the-post-type-order-plugin/","uriKey":"/recipes/fix-pagination-conflict-with-the-post-type-order-plugin","group":"Uncategorized","summary":"When using the Post Type Order plugin along with WPGraphQL, you might experience some issues with paginated queries. This snippet should help correct the conflict: add_action( \'pre_get_posts\', function () { // access the…","relatedActions":[],"relatedFilters":["graphql_post_object_connection_query_args","request"],"relatedFunctions":["graphql","is_graphql_request"]},{"title":"Making Menus and Menu Items public","slug":"making-menus-and-menu-items-public","uri":"/recipes/making-menus-and-menu-items-public","wordpressUri":"/recipes/making-menus-and-menu-items-public/","uriKey":"/recipes/making-menus-and-menu-items-public","group":"Authorization","summary":"By default, Menus and Menu Items that are not assigned to a Menu Location are considered private, meaning they are not exposed in non-authenticated WPGraphQL Queries. If you want to expose Menus and Menu Items that are n…","relatedActions":[],"relatedFilters":["graphql_data_is_private"],"relatedFunctions":["graphql"]},{"title":"Popular Posts","slug":"popular-posts","uri":"/recipes/popular-posts","wordpressUri":"/recipes/popular-posts/","uriKey":"/recipes/popular-posts","group":"Custom Post Types","summary":"The following code allows you to query for popular posts. It’s still up to you to determine the best way to store popular posts, but this example assumes a meta_key is involved. Beware though, meta queries can be expensi…","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["graphql","register_graphql_connection","register_graphql_field"]},{"title":"Register a basic Mutation","slug":"register-a-basic-mutation","uri":"/recipes/register-a-basic-mutation","wordpressUri":"/recipes/register-a-basic-mutation/","uriKey":"/recipes/register-a-basic-mutation","group":"Custom Fields","summary":"This snippet shows how to register a basic GraphQL Mutation with a single input field, a single output field, and the input is simply returned as the value for the output. add_action( \'graphql_register_types\', function()…","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["graphql","register_graphql_mutation"]},{"title":"Register object and field for custom list of users","slug":"register-object-and-field-for-custom-list-of-users","uri":"/recipes/register-object-and-field-for-custom-list-of-users","wordpressUri":"/recipes/register-object-and-field-for-custom-list-of-users/","uriKey":"/recipes/register-object-and-field-for-custom-list-of-users","group":"Custom Fields","summary":"The following code creates an object type called StuntPerformer and creates a field on the RootQuery called stuntPerformers that returns a custom list of users. In this case, the list of users are the admins of the websi…","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["graphql","register_graphql_field","register_graphql_object_type"]}
255,{"title":"Remove Extensions from GraphQL Response","slug":"remove-extensions-from-graphql-response","uri":"/recipes/remove-extensions-from-graphql-response","wordpressUri":"/recipes/remove-extensions-from-graphql-response/","uriKey":"/recipes/remove-extensions-from-graphql-response","group":"Execution","summary":"This snippet removes the “extensions” from the GraphQL response: add_filter( \'graphql_request_results\', function( $response ) { // If it\'s an ExecutionResult object, we need to handle it differently if ( $response instan…","relatedActions":[],"relatedFilters":["graphql_request_results"],"relatedFunctions":["graphql"]},{"title":"Showing Post Type labels in public queries","slug":"showing-post-type-labels-in-public-queries","uri":"/recipes/showing-post-type-labels-in-public-queries","wordpressUri":"/recipes/showing-post-type-labels-in-public-queries/","uriKey":"/recipes/showing-post-type-labels-in-public-queries","group":"Authorization","summary":"WPGraphQL respects WordPress core access control rights. This means that data that is only available to authenticated users in the WordPress admin is only available to authenticated users making GraphQL requests. Sometim…","relatedActions":[],"relatedFilters":[],"relatedFunctions":["graphql"]},{"title":"Tag to Content Node Connection","slug":"tag-to-content-node-connection","uri":"/recipes/tag-to-content-node-connection","wordpressUri":"/recipes/tag-to-content-node-connection/","uriKey":"/recipes/tag-to-content-node-connection","group":"Custom Post Types","summary":"The following code registers a connection from Tags to ContentNodes. A field name called contentNodes will be added to the Tag type to make it easy to view all Posts that are tagged with that specific term. add_action( \'…","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["graphql","register_graphql_connection"]},{"title":"Update WPGraphQL Endpoint URL","slug":"update-wpgraphql-endpoint-url","uri":"/recipes/update-wpgraphql-endpoint-url","wordpressUri":"/recipes/update-wpgraphql-endpoint-url/","uriKey":"/recipes/update-wpgraphql-endpoint-url","group":"WP Admin","summary":"You can modify the WPGraphQL endpoint in code with the following: function my_new_graphql_endpoint() { return \'cutepuppies\'; }; add_filter( \'graphql_endpoint\', \'my_new_graphql_endpoint\' ); This will change the graphql en…","relatedActions":[],"relatedFilters":["graphql_endpoint"],"relatedFunctions":["graphql"]},{"title":"Using GraphQL Fragments in PHP","slug":"using-graphql-fragments-in-php","uri":"/recipes/using-graphql-fragments-in-php","wordpressUri":"/recipes/using-graphql-fragments-in-php/","uriKey":"/recipes/using-graphql-fragments-in-php","group":"Queries","summary":"You can execute GraphQL queries in PHP. In this case, we even show using a GraphQL Fragment. add_action( \'init\', function() { $results = graphql([ \'query\' => \' { posts { nodes { ...PostFields } } } fragment PostFields on…","relatedActions":[],"relatedFilters":[],"relatedFunctions":["graphql"]}],"register_graphql_field":[{"title":"Add Edit Link to All Post Types","slug":"add-edit-link-to-all-post-types","uri":"/recipes/add-edit-link-to-all-post-types","wordpressUri":"/recipes/add-edit-link-to-all-post-types/","uriKey":"/recipes/add-edit-link-to-all-post-types","group":"Custom Fields","summary":"The following snippet shows how to add the “Edit” link as a GraphQL field to all post types: add_action( \'graphql_register_types\', function() { register_graphql_field( \'ContentNode\', \'editLink\', [ \'type\' => \'String\', \'de…","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["graphql","register_graphql_field"]},{"title":"Add field for unencoded content","slug":"add-field-for-unencoded-content","uri":"/recipes/add-field-for-unencoded-content","wordpressUri":"/recipes/add-field-for-unencoded-content/","uriKey":"/recipes/add-field-for-unencoded-content","group":"Custom Fields","summary":"The following adds a field to the NodeWithContentEditor interface to get the unencoded content for a post: add_action( \'graphql_register_types\', function() { register_graphql_field( \'NodeWithContentEditor\', \'unencodedCon…","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["graphql","register_graphql_field"]},{"title":"Add field to output URLs for Sitemap","slug":"add-field-to-output-urls-for-sitemap","uri":"/recipes/add-field-to-output-urls-for-sitemap","wordpressUri":"/recipes/add-field-to-output-urls-for-sitemap/","uriKey":"/recipes/add-field-to-output-urls-for-sitemap","group":"Custom Fields","summary":"The following code is an example of how you can create a field called allUrls that will output site URLs that could be used to generate a sitemap. The resolver uses mostly hard-coded data, but shows what a potential solu…","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["register_graphql_field"]},{"title":"Add WP Admin Color Schemes to WPGraphQL","slug":"add-wp-admin-color-schemes-to-wpgraphql","uri":"/recipes/add-wp-admin-color-schemes-to-wpgraphql","wordpressUri":"/recipes/add-wp-admin-color-schemes-to-wpgraphql/","uriKey":"/recipes/add-wp-admin-color-schemes-to-wpgraphql","group":"WP Admin","
255summary":"The following example code allows you to add WP Admin Color Schemes data to WPGraphQL. add_action( \'graphql_register_types\', function() { $mock_colors = \' { \\"fresh\\":{ \\"name\\":\\"Default\\", \\"url\\":false, \\"colors\\":[ \\"#222\\", \\"#3…","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["graphql","register_graphql_field","register_graphql_object_type"]},{"title":"List of Key Values","slug":"list-of-key-values","uri":"/recipes/list-of-key-values","wordpressUri":"/recipes/list-of-key-values/","uriKey":"/recipes/list-of-key-values","group":"Custom Fields","summary":"This is an example showing how to return a list of keys and values where the keys and values are both strings. add_action( \'graphql_register_types\', function() { register_graphql_object_type( \'keyValue\', [ \'description\'…","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["register_graphql_field","register_graphql_object_type"]},{"title":"Popular Posts","slug":"popular-posts","uri":"/recipes/popular-posts","wordpressUri":"/recipes/popular-posts/","uriKey":"/recipes/popular-posts","group":"Custom Post Types","summary":"The following code allows you to query for popular posts. It’s still up to you to determine the best way to store popular posts, but this example assumes a meta_key is involved. Beware though, meta queries can be expensi…","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["graphql","register_graphql_connection","register_graphql_field"]},{"title":"Register field as a list of strings","slug":"register-field-as-a-list-of-strings","uri":"/recipes/register-field-as-a-list-of-strings","wordpressUri":"/recipes/register-field-as-a-list-of-strings/","uriKey":"/recipes/register-field-as-a-list-of-strings","group":"Custom Fields","summary":"The below code registers a field called listOfStrings that returns a list of strings as the result: add_action( \'graphql_register_types\', function() { register_graphql_field( \'RootQuery\', \'listOfStrings\', [ \'type\' => [ \'…","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["register_graphql_field"]},{"title":"Register GraphQL Field with Argument","slug":"register-graphql-field-with-argument","uri":"/recipes/register-graphql-field-with-argument","wordpressUri":"/recipes/register-graphql-field-with-argument/","uriKey":"/recipes/register-graphql-field-with-argument","group":"Custom Fields","summary":"This is an example of registering a field with an argument showing how to use the argument in a resolver. add_action( \'graphql_register_types\', function() { register_graphql_field( \'RootQuery\', \'myNewField\', [ \'type\' =>…","relatedActions":["graphql_register_types"],"relatedFilters":["request"],"relatedFunctions":["register_graphql_field"]},{"title":"Register object and field for custom list of users","slug":"register-object-and-field-for-custom-list-of-users","uri":"/recipes/register-object-and-field-for-custom-list-of-users","wordpressUri":"/recipes/register-object-and-field-for-custom-list-of-users/","uriKey":"/recipes/register-object-and-field-for-custom-list-of-users","group":"Custom Fields","summary":"The following code creates an object type called StuntPerformer and creates a field on the RootQuery called stuntPerformers that returns a custom list of users. In this case, the list of users are the admins of the websi…","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["graphql","register_graphql_field","register_graphql_object_type"]}],"register_graphql_connection":[{"title":"Add Primary Category field for The SEO Framework plugin","slug":"add-primary-category-field-for-the-seo-framework-plugin","uri":"/recipes/add-primary-category-field-for-the-seo-framework-plugin","wordpressUri":"/recipes/add-primary-category-field-for-the-seo-framework-plugin/","uriKey":"/recipes/add-primary-category-field-for-the-seo-framework-plugin","group":"Custom Fields","summary":"The following adds a field called primaryCat field when using The SEO Framework WordPress Plugin add_action( \'init\', function() { register_graphql_connection([ \'fromType\' => \'Post\', \'toType\' => \'Category\', \'fromFieldName…","relatedActions":[],"relatedFilters":[],"relatedFunctions":["register_graphql_connection"]},{"title":"Page Siblings Connection","slug":"page-siblings-connection","uri":"/recipes/page-siblings-connection","wordpressUri":"/recipes/page-siblings-connection/","uriKey":"/recipes/page-siblings-connection","group":"Uncategorized","summary":"Below is a connection that adds the ability to query page siblings (i.e. pages that share the same parent) add_action( \'graphql_register_types\', function() { register_graphql_connection( [ \'fromType\' => \'Page\', \'toType\'…","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["register_graphql_connection"]},{"title":"Popular Posts","slug":"popular-posts","uri":"/recipes/popular-posts","wordpressUri":"/recipes/popular-posts/","uriKey":"/recipes/popular-posts","group":"Custom Post Types","summary":"The following code allows you to query for popular posts. It’s still up to you to determine the best way to store popular posts, but this example assumes a meta_key is involved. Beware though, meta queries can be expensi…","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["graphql","register_graphql_connection","register_graphql_field"]},{"title":"Register Connection to Attached Media","slug":"register-connection-to-attached-media","uri":"/recipes/register-connection-to-attached-media","wordpressUri":"/recipes/register-connection-to-attached-media/","uriKey":"/recipes/register-connection-to-attached-media","group":"Custom Post Types","summary":"This code shows how to register a connection to attached media in WPGraphQL add_action( \'graphql_register_types\', function() { register_graphql_connection([ \'fromType\' => \'ContentNode\', \'toType\' => \'MediaItem\', \'fromFiel…","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["register_graphql_connection"]},{"title":"Tag to Content Node Connection","slug":"tag-to-content-node-connection","uri":"/recipes/tag-to-content-node-connection","wordpressUri":"/recipes/tag-to-content-node-connection/","uriKey":"/recipes/tag-to-content-node-connection","group":"Custom Post Types","summary":"The following code registers a connection from Tags to ContentNodes. A field name called contentNodes will be added to the Tag type to make it easy to view all Posts that are tagged with that specific term. add_action( \'…","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["graphql","register_graphql_connection"]}],"register_graphql_object_type":[{"title":"Add WP Admin Color Schemes to WPGraphQL","slug":"add-wp-admin-color-schemes-to-wpgraphql","uri":"/recipes/add-wp-admin-color-schemes-to-wpgraphql","wordpressUri":"/recipes/add-wp-admin-color-schemes-to-wpgraphql/","uriKey":"/recipes/add-wp-admin-color-schemes-to-wpgraphql","group":"WP Admin","
255summary":"The following example code allows you to add WP Admin Color Schemes data to WPGraphQL. add_action( \'graphql_register_types\', function() { $mock_colors = \' { \\"fresh\\":{ \\"name\\":\\"Default\\", \\"url\\":false, \\"colors\\":[ \\"#222\\", \\"#3…","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["graphql","register_graphql_field","register_graphql_object_type"]},{"title":"List of Key Values","slug":"list-of-key-values","uri":"/recipes/list-of-key-values","wordpressUri":"/recipes/list-of-key-values/","uriKey":"/recipes/list-of-key-values","group":"Custom Fields","summary":"This is an example showing how to return a list of keys and values where the keys and values are both strings. add_action( \'graphql_register_types\', function() { register_graphql_object_type( \'keyValue\', [ \'description\'…","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["register_graphql_field","register_graphql_object_type"]},{"title":"Register object and field for custom list of users","slug":"register-object-and-field-for-custom-list-of-users","uri":"/recipes/register-object-and-field-for-custom-list-of-users","wordpressUri":"/recipes/register-object-and-field-for-custom-list-of-users/","uriKey":"/recipes/register-object-and-field-for-custom-list-of-users","group":"Custom Fields","summary":"The following code creates an object type called StuntPerformer and creates a field on the RootQuery called stuntPerformers that returns a custom list of users. In this case, the list of users are the admins of the websi…","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["graphql","register_graphql_field","register_graphql_object_type"]}],"is_graphql_http_request":[{"title":"Debugging JWT Authentication","slug":"debugging-jwt-authentication","uri":"/recipes/debugging-jwt-authentication","wordpressUri":"/recipes/debugging-jwt-authentication/","uriKey":"/recipes/debugging-jwt-authentication","group":"WP Admin","summary":"This snippet outputs the $_SERVER superglobal so we can see if the Authorization token is being passed to the server or not. add_action( \'init\', function() { if ( is_graphql_http_request() ) { wp_send_json( [ \'server\' =>…","relatedActions":[],"relatedFilters":[],"relatedFunctions":["is_graphql_http_request"]}],"is_graphql_request":[{"title":"Fix pagination conflict with the “Advanced Taxonomy Terms Order” plugin","slug":"fix-pagination-conflict-with-the-advanced-taxonomy-terms-order-plugin","uri":"/recipes/fix-pagination-conflict-with-the-advanced-taxonomy-terms-order-plugin","wordpressUri":"/recipes/fix-pagination-conflict-with-the-advanced-taxonomy-terms-order-plugin/","uriKey":"/recipes/fix-pagination-conflict-with-the-advanced-taxonomy-terms-order-plugin","group":"Uncategorized","summary":"When using the Advanced Taxonomy Terms Order plugin along with WPGraphQL, you might experience some issues with paginated queries. This snippet should help correct the conflict: add_action( \'pre_get_terms\', function() {…","relatedActions":[],"relatedFilters":["graphql_term_object_connection_query_args","request"],"relatedFunctions":["graphql","is_graphql_request"]},{"title":"Fix pagination conflict with the “Post Type Order” plugin","slug":"fix-pagination-conflict-with-the-post-type-order-plugin","uri":"/recipes/fix-pagination-conflict-with-the-post-type-order-plugin","wordpressUri":"/recipes/fix-pagination-conflict-with-the-post-type-order-plugin/","uriKey":"/recipes/fix-pagination-conflict-with-the-post-type-order-plugin","group":"Uncategorized","summary":"When using the Post Type Order plugin along with WPGraphQL, you might experience some issues with paginated queries. This snippet should help correct the conflict: add_action( \'pre_get_posts\', function () { // access the…","relatedActions":[],"relatedFilters":["graphql_post_object_connection_query_args","request"],"relatedFunctions":["graphql","is_graphql_request"]}],"do_graphql_request":[{"title":"Log WPGraphQL requests to error log","slug":"log-wpgraphql-requests-to-error-log","uri":"/recipes/log-wpgraphql-requests-to-error-log","wordpressUri":"/recipes/log-wpgraphql-requests-to-error-log/","uriKey":"/recipes/log-wpgraphql-requests-to-error-log","group":"WP Admin","
255summary":"This snippet logs all WPGraphQL requests to the error log add_action( \'do_graphql_request\', function( $query, $operation, $variables, $params) { error_log( wp_json_encode( [ \'query\' => $query, \'operation\' => $operation,…","relatedActions":["do_graphql_request"],"relatedFilters":[],"relatedFunctions":["do_graphql_request"]}],"register_graphql_mutation":[{"title":"Register a basic Mutation","slug":"register-a-basic-mutation","uri":"/recipes/register-a-basic-mutation","wordpressUri":"/recipes/register-a-basic-mutation/","uriKey":"/recipes/register-a-basic-mutation","group":"Custom Fields","summary":"This snippet shows how to register a basic GraphQL Mutation with a single input field, a single output field, and the input is simply returned as the value for the output. add_action( \'graphql_register_types\', function()…","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["graphql","register_graphql_mutation"]}]},"byUri":{"/recipes/acf-nav-menu-plugin-support":{"title":"ACF Nav Menu Plugin Support","slug":"acf-nav-menu-plugin-support","uri":"/recipes/acf-nav-menu-plugin-support","wordpressUri":"/recipes/acf-nav-menu-plugin-support/","uriKey":"/recipes/acf-nav-menu-plugin-support","group":"Uncategorized","summary":"This adds support (native) for the ACF Nav Menu field plugin ( https://github.com/jgraup/advanced-custom-fields-nav-menu-field ). This also requires WPGraphQL for Advanced Custom Fields . add_filter( \'wpgraphql_acf_regis…","relatedActions":[],"relatedFilters":[],"relatedFunctions":["graphql"]},"/recipes/add-edit-link-to-all-post-types":{"title":"Add Edit Link to All Post Types","slug":"add-edit-link-to-all-post-types","uri":"/recipes/add-edit-link-to-all-post-types","wordpressUri":"/recipes/add-edit-link-to-all-post-types/","uriKey":"/recipes/add-edit-link-to-all-post-types","group":"Custom Fields","summary":"The following snippet shows how to add the “Edit” link as a GraphQL field to all post types: add_action( \'graphql_register_types\', function() { register_graphql_field( \'ContentNode\', \'editLink\', [ \'type\' => \'String\', \'de…","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["graphql","register_graphql_field"]},"/recipes/add-field-for-unencoded-content":{"title":"Add field for unencoded content","slug":"add-field-for-unencoded-content","uri":"/recipes/add-field-for-unencoded-content","wordpressUri":"/recipes/add-field-for-unencoded-content/","uriKey":"/recipes/add-field-for-unencoded-content","group":"Custom Fields","summary":"The following adds a field to the NodeWithContentEditor interface to get the unencoded content for a post: add_action( \'graphql_register_types\', function() { register_graphql_field( \'NodeWithContentEditor\', \'unencodedCon…","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["graphql","register_graphql_field"]},"/recipes/add-field-to-output-urls-for-sitemap":{"title":"Add field to output URLs for Sitemap","slug":"add-field-to-output-urls-for-sitemap","uri":"/recipes/add-field-to-output-urls-for-sitemap","wordpressUri":"/recipes/add-field-to-output-urls-for-sitemap/","uriKey":"/recipes/add-field-to-output-urls-for-sitemap","group":"Custom Fields","summary":"The following code is an example of how you can create a field called allUrls that will output site URLs that could be used to generate a sitemap. The resolver uses mostly hard-coded data, but shows what a potential solu…","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["register_graphql_field"]},"/recipes/add-primary-category-field-for-the-seo-framework-plugin":{"title":"Add Primary Category field for The SEO Framework plugin","slug":"add-primary-category-field-for-the-seo-framework-plugin","uri":"/recipes/add-primary-category-field-for-the-seo-framework-plugin","wordpressUri":"/recipes/add-primary-category-field-for-the-seo-framework-plugin/","uriKey":"/recipes/add-primary-category-field-for-the-seo-framework-plugin","group":"Custom Fields","summary":"The following adds a field called primaryCat field when using The SEO Framework WordPress Plugin add_action( \'init\', function() { register_graphql_connection([ \'fromType\' => \'Post\', \'toType\' => \'Category\', \'fromFieldName…","relatedActions":[],"relatedFilters":[],"relatedFunctions":["register_graphql_connection"]},"/recipes/add-wp-admin-color-schemes-to-wpgraphql":{"title":"Add WP Admin Color Schemes to WPGraphQL","slug":"add-wp-admin-color-schemes-to-wpgraphql","uri":"/recipes/add-wp-admin-color-schemes-to-wpgraphql","wordpressUri":"/recipes/add-wp-admin-color-schemes-to-wpgraphql/","uriKey":"/recipes/add-wp-admin-color-schemes-to-wpgraphql","group":"WP Admin","
255summary":"The following example code allows you to add WP Admin Color Schemes data to WPGraphQL. add_action( \'graphql_register_types\', function() { $mock_colors = \' { \\"fresh\\":{ \\"name\\":\\"Default\\", \\"url\\":false, \\"colors\\":[ \\"#222\\", \\"#3…","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["graphql","register_graphql_field","register_graphql_object_type"]},"/recipes/allow-login-mutation-to-be-public-when-the-endpoint-is-fully-restricted":{"title":"Allow login mutation to be public when the endpoint is fully restricted","slug":"allow-login-mutation-to-be-public-when-the-endpoint-is-fully-restricted","uri":"/recipes/allow-login-mutation-to-be-public-when-the-endpoint-is-fully-restricted","wordpressUri":"/recipes/allow-login-mutation-to-be-public-when-the-endpoint-is-fully-restricted/","uriKey":"/recipes/allow-login-mutation-to-be-public-when-the-endpoint-is-fully-restricted","group":"Authorization","summary":"If you’ve configured your WPGraphQL settings to “Limit the execution of GraphQL operations to authenticated requests”, this will block all root operations unless the user making the request is already authenticated. If y…","relatedActions":[],"relatedFilters":["graphql_require_authentication_allowed_fields","request"],"relatedFunctions":["graphql"]},"/recipes/change-the-debug-flag":{"title":"Changing the Server Debug Flag","slug":"change-the-debug-flag","uri":"/recipes/change-the-debug-flag","wordpressUri":"/recipes/change-the-debug-flag/","uriKey":"/recipes/change-the-debug-flag","group":"Extensions","summary":"The following snippets show how to change the Debug Flag for the GraphQL Server execution. By default, the function callstack trace is not included with errors data unless users are logged in. If you wanted to track this…","relatedActions":["graphql_server_config"],"relatedFilters":[],"relatedFunctions":["graphql"]},"/recipes/debugging-jwt-authentication":{"title":"Debugging JWT Authentication","slug":"debugging-jwt-authentication","uri":"/recipes/debugging-jwt-authentication","wordpressUri":"/recipes/debugging-jwt-authentication/","uriKey":"/recipes/debugging-jwt-authentication","group":"WP Admin","summary":"This snippet outputs the $_SERVER superglobal so we can see if the Authorization token is being passed to the server or not. add_action( \'init\', function() { if ( is_graphql_http_request() ) { wp_send_json( [ \'server\' =>…","relatedActions":[],"relatedFilters":[],"relatedFunctions":["is_graphql_http_request"]},"/recipes/deprecating-a-field-in-the-schema":{"title":"Deprecating a field in the Schema","slug":"deprecating-a-field-in-the-schema","uri":"/recipes/deprecating-a-field-in-the-schema","wordpressUri":"/recipes/deprecating-a-field-in-the-schema/","uriKey":"/recipes/deprecating-a-field-in-the-schema","group":"Custom Fields","summary":"Sometimes it can be helpful to deprecate a field in the Schema without removing it altogether. This snippet shows how to deprecate the `Post.excerpt` field. You can use this technique to deprecate other fields. // Filter…","relatedActions":[],"relatedFilters":["graphql_object_fields"],"relatedFunctions":[]},"/recipes/filter-connection-args":{"title":"Filter Connection Args","slug":"filter-connection-args","uri":"/recipes/filter-connection-args","wordpressUri":"/recipes/filter-connection-args/","uriKey":"/recipes/filter-connection-args","group":"Uncategorized","summary":"This filters connection args by checking the field name the connection is coming from as well as the type the connection is coming from. add_filter( \'graphql_connection_query_args\', function( $args, \\\\WPGraphQL\\\\Data\\\\Conne…","relatedActions":[],"relatedFilters":["graphql_connection_query_args"],"relatedFunctions":[]},"/recipes/filter-to-add-restricted-field-on-model":{"title":"Filter to add restricted field on Model","slug":"filter-to-add-restricted-field-on-model","uri":"/recipes/filter-to-add-restricted-field-on-model","wordpressUri":"/recipes/filter-to-add-restricted-field-on-model/","uriKey":"/recipes/filter-to-add-restricted-field-on-model","group":"Queries","summary":"Labels on Post Types are not publicly exposed by WordPress. They are attributes for use in the Admin, and are treated with respect to proper access to the admin. To see the labels, the user requesting them must be authen…","relatedActions":[],"relatedFilters":["request"],"relatedFunctions":["graphql"]},"/recipes/fix-pagination-conflict-with-the-advanced-taxonomy-terms-order-plugin":{"title":"Fix pagination conflict with the “Advanced Taxonomy Terms Order” plugin","slug":"fix-pagination-conflict-with-the-advanced-taxonomy-terms-order-plugin","uri":"/recipes/fix-pagination-conflict-with-the-advanced-taxonomy-terms-order-plugin","wordpressUri":"/recipes/fix-pagination-conflict-with-the-advanced-taxonomy-terms-order-plugin/","uriKey":"/recipes/fix-pagination-conflict-with-the-advanced-taxonomy-terms-order-plugin","group":"Uncategorized","summary":"When using the Advanced Taxonomy Terms Order plugin along with WPGraphQL, you might experience some issues with paginated queries. This snippet should help correct the conflict: add_action( \'pre_get_terms\', function() {…","relatedActions":[],"relatedFilters":["graphql_term_object_connection_query_args","request"],"relatedFunctions":["graphql","is_graphql_request"]},"/recipes/fix-pagination-conflict-with-the-post-type-order-plugin":{"title":"Fix pagination conflict with the “Post Type Order” plugin","slug":"fix-pagination-conflict-with-the-post-type-order-plugin","uri":"/recipes/fix-pagination-conflict-with-the-post-type-order-plugin","wordpressUri":"/recipes/fix-pagination-conflict-with-the-post-type-order-plugin/","uriKey":"/recipes/fix-pagination-conflict-with-the-post-type-order-plugin","group":"Uncategorized","summary":"When using the Post Type Order plugin along with WPGraphQL, you might experience some issues with paginated queries. This snippet should help correct the conflict: add_action( \'pre_get_posts\', function () { // access the…","relatedActions":[],"relatedFilters":["graphql_post_object_connection_query_args","request"],"relatedFunctions":["graphql","is_graphql_request"]},"/recipes/list-of-key-values":{"title":"List of Key Values","slug":"list-of-key-values","uri":"/recipes/list-of-key-values","wordpressUri":"/recipes/list-of-key-values/","uriKey":"/recipes/list-of-key-values","group":"Custom Fields","summary":"This is an example showing how to return a list of keys and values where the keys and values are both strings. add_action( \'graphql_register_types\', function() { register_graphql_object_type( \'keyValue\', [ \'description\'…","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["register_graphql_field","register_graphql_object_type"]},"/recipes/log-wpgraphql-requests-to-error-log":{"title":"Log WPGraphQL requests to error log","slug":"log-wpgraphql-requests-to-error-log","uri":"/recipes/log-wpgraphql-requests-to-error-log","wordpressUri":"/recipes/log-wpgraphql-requests-to-error-log/","uriKey":"/recipes/log-wpgraphql-requests-to-error-log","group":"WP Admin","
255summary":"This snippet logs all WPGraphQL requests to the error log add_action( \'do_graphql_request\', function( $query, $operation, $variables, $params) { error_log( wp_json_encode( [ \'query\' => $query, \'operation\' => $operation,…","relatedActions":["do_graphql_request"],"relatedFilters":[],"relatedFunctions":["do_graphql_request"]},"/recipes/make-all-users-public":{"title":"Make all Users Public","slug":"make-all-users-public","uri":"/recipes/make-all-users-public","wordpressUri":"/recipes/make-all-users-public/","uriKey":"/recipes/make-all-users-public","group":"Authorization","summary":"The following snippets allow for Users with no published content to be shown in public (non-authenticated) WPGraphQL query results. For a more detailed write-up, read the blog post: Allowing WPGraphQL to show unpublished…","relatedActions":[],"relatedFilters":["graphql_connection_query_args","graphql_object_visibility"],"relatedFunctions":[]},"/recipes/making-menus-and-menu-items-public":{"title":"Making Menus and Menu Items public","slug":"making-menus-and-menu-items-public","uri":"/recipes/making-menus-and-menu-items-public","wordpressUri":"/recipes/making-menus-and-menu-items-public/","uriKey":"/recipes/making-menus-and-menu-items-public","group":"Authorization","summary":"By default, Menus and Menu Items that are not assigned to a Menu Location are considered private, meaning they are not exposed in non-authenticated WPGraphQL Queries. If you want to expose Menus and Menu Items that are n…","relatedActions":[],"relatedFilters":["graphql_data_is_private"],"relatedFunctions":["graphql"]},"/recipes/page-siblings-connection":{"title":"Page Siblings Connection","slug":"page-siblings-connection","uri":"/recipes/page-siblings-connection","wordpressUri":"/recipes/page-siblings-connection/","uriKey":"/recipes/page-siblings-connection","group":"Uncategorized","summary":"Below is a connection that adds the ability to query page siblings (i.e. pages that share the same parent) add_action( \'graphql_register_types\', function() { register_graphql_connection( [ \'fromType\' => \'Page\', \'toType\'…","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["register_graphql_connection"]},"/recipes/popular-posts":{"title":"Popular Posts","slug":"popular-posts","uri":"/recipes/popular-posts","wordpressUri":"/recipes/popular-posts/","uriKey":"/recipes/popular-posts","group":"Custom Post Types","summary":"The following code allows you to query for popular posts. It’s still up to you to determine the best way to store popular posts, but this example assumes a meta_key is involved. Beware though, meta queries can be expensi…","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["graphql","register_graphql_connection","register_graphql_field"]},"/recipes/query-the-homepage":{"title":"Query the Homepage","slug":"query-the-homepage","uri":"/recipes/query-the-homepage","wordpressUri":"/recipes/query-the-homepage/","uriKey":"/recipes/query-the-homepage","group":"Queries","summary":"In WordPress, the homepage can be a Page or an archive of posts of the Post post_type (which is represented by WPGraphQL as a “ContentType” node). This query allows you to query the homepage, and specify what data you wa…","relatedActions":[],"relatedFilters":[],"relatedFunctions":[]},"/recipes/register-a-basic-mutation":{"title":"Register a basic Mutation","slug":"register-a-basic-mutation","uri":"/recipes/register-a-basic-mutation","wordpressUri":"/recipes/register-a-basic-mutation/","uriKey":"/recipes/register-a-basic-mutation","group":"Custom Fields","summary":"This snippet shows how to register a basic GraphQL Mutation with a single input field, a single output field, and the input is simply returned as the value for the output. add_action( \'graphql_register_types\', function()…","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["graphql","register_graphql_mutation"]},"/recipes/register-connection-to-attached-media":{"title":"Register Connection to Attached Media","slug":"register-connection-to-attached-media","uri":"/recipes/register-connection-to-attached-media","wordpressUri":"/recipes/register-connection-to-attached-media/","uriKey":"/recipes/register-connection-to-attached-media","group":"Custom Post Types","summary":"This code shows how to register a connection to attached media in WPGraphQL add_action( \'graphql_register_types\', function() { register_graphql_connection([ \'fromType\' => \'ContentNode\', \'toType\' => \'MediaItem\', \'fromFiel…","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["register_graphql_connection"]},"/recipes/register-field-as-a-list-of-strings":{"title":"Register field as a list of strings","slug":"register-field-as-a-list-of-strings","uri":"/recipes/register-field-as-a-list-of-strings","wordpressUri":"/recipes/register-field-as-a-list-of-strings/","uriKey":"/recipes/register-field-as-a-list-of-strings","group":"Custom Fields","summary":"The below code registers a field called listOfStrings that returns a list of strings as the result: add_action( \'graphql_register_types\', function() { register_graphql_field( \'RootQuery\', \'listOfStrings\', [ \'type\' => [ \'…","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["register_graphql_field"]},"/recipes/register-graphql-field-with-argument":{"title":"Register GraphQL Field with Argument","slug":"register-graphql-field-with-argument","uri":"/recipes/register-graphql-field-with-argument","wordpressUri":"/recipes/register-graphql-field-with-argument/","uriKey":"/recipes/register-graphql-field-with-argument","group":"Custom Fields","summary":"This is an example of registering a field with an argument showing how to use the argument in a resolver. add_action( \'graphql_register_types\', function() { register_graphql_field( \'RootQuery\', \'myNewField\', [ \'type\' =>…","relatedActions":["graphql_register_types"],"relatedFilters":["request"],"relatedFunctions":["register_graphql_field"]},"/recipes/register-object-and-field-for-custom-list-of-users":{"title":"Register object and field for custom list of users","slug":"register-object-and-field-for-custom-list-of-users","uri":"/recipes/register-object-and-field-for-custom-list-of-users","wordpressUri":"/recipes/register-object-and-field-for-custom-list-of-users/","uriKey":"/recipes/register-object-and-field-for-custom-list-of-users","group":"Custom Fields","summary":"The following code creates an object type called StuntPerformer and creates a field on the RootQuery called stuntPerformers that returns a custom list of users. In this case, the list of users are the admins of the websi…","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["graphql","register_graphql_field","register_graphql_object_type"]},"/recipes/remove-extensions-from-graphql-response":{"title":"Remove E
255xtensions from GraphQL Response","slug":"remove-extensions-from-graphql-response","uri":"/recipes/remove-extensions-from-graphql-response","wordpressUri":"/recipes/remove-extensions-from-graphql-response/","uriKey":"/recipes/remove-extensions-from-graphql-response","group":"Execution","summary":"This snippet removes the “extensions” from the GraphQL response: add_filter( \'graphql_request_results\', function( $response ) { // If it\'s an ExecutionResult object, we need to handle it differently if ( $response instan…","relatedActions":[],"relatedFilters":["graphql_request_results"],"relatedFunctions":["graphql"]},"/recipes/showing-post-type-labels-in-public-queries":{"title":"Showing Post Type labels in public queries","slug":"showing-post-type-labels-in-public-queries","uri":"/recipes/showing-post-type-labels-in-public-queries","wordpressUri":"/recipes/showing-post-type-labels-in-public-queries/","uriKey":"/recipes/showing-post-type-labels-in-public-queries","group":"Authorization","summary":"WPGraphQL respects WordPress core access control rights. This means that data that is only available to authenticated users in the WordPress admin is only available to authenticated users making GraphQL requests. Sometim…","relatedActions":[],"relatedFilters":[],"relatedFunctions":["graphql"]},"/recipes/tag-to-content-node-connection":{"title":"Tag to Content Node Connection","slug":"tag-to-content-node-connection","uri":"/recipes/tag-to-content-node-connection","wordpressUri":"/recipes/tag-to-content-node-connection/","uriKey":"/recipes/tag-to-content-node-connection","group":"Custom Post Types","summary":"The following code registers a connection from Tags to ContentNodes. A field name called contentNodes will be added to the Tag type to make it easy to view all Posts that are tagged with that specific term. add_action( \'…","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["graphql","register_graphql_connection"]},"/recipes/update-wpgraphql-endpoint-url":{"title":"Update WPGraphQL Endpoint URL","slug":"update-wpgraphql-endpoint-url","uri":"/recipes/update-wpgraphql-endpoint-url","wordpressUri":"/recipes/update-wpgraphql-endpoint-url/","uriKey":"/recipes/update-wpgraphql-endpoint-url","group":"WP Admin","summary":"You can modify the WPGraphQL endpoint in code with the following: function my_new_graphql_endpoint() { return \'cutepuppies\'; }; add_filter( \'graphql_endpoint\', \'my_new_graphql_endpoint\' ); This will change the graphql en…","relatedActions":[],"relatedFilters":["graphql_endpoint"],"relatedFunctions":["graphql"]},"/recipes/using-graphql-fragments-in-php":{"title":"Using GraphQL Fragments in PHP","slug":"using-graphql-fragments-in-php","uri":"/recipes/using-graphql-fragments-in-php","wordpressUri":"/recipes/using-graphql-fragments-in-php/","uriKey":"/recipes/using-graphql-fragments-in-php","group":"Queries","summary":"You can execute GraphQL queries in PHP. In this case, we even show using a GraphQL Fragment. add_action( \'init\', function() { $results = graphql([ \'query\' => \' { posts { nodes { ...PostFields } } } fragment PostFields on…","relatedActions":[],"relatedFilters":[],"relatedFunctions":["graphql"]}}}}')},6509:(e,t,r)=>{"use strict";r.d(t,{UY:()=>s,jK:()=>n,eF:()=>a}),r(3601),globalThis.fetch?.bind(globalThis);function n({templates:e,Layout:t}={}){}var i=r(5729);let o=(0,i.createContext)(null);function s({value:e,children:t}){return(0,i.createElement)(o.Provider,{value:e},t)}function a(){return(0,i.useContext)(o)}r(3601)},6550:(e,t,r)=>{"use strict";let n,i,o,s,a;r.d(t,{W:()=>K});var l=r(5729),c=r(483),u=r(6308);function d(e,t){let[r,n]=(0,l.useState)(e),i=(0,u.Y)(e);return(0,c.s)(()=>n(i.current),[i,n,...t]),r}var p=r(4149),f=r(158),h=r(1201),m=r(2940),g=r(7163),y=r(1321);let v=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function b(e){var t,r;let n=null!=(t=e.innerText)?t:"",i=e.cloneNode(!0);if(!(i instanceof HTMLElement))return n;let o=!1;for(let e of i.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))e.remove(),o=!0;let s=o?null!=(r=i.innerText)?r:"":n;return v.test(s)&&(s=s.replace(v,"")),s}function x(e){return[e.screenX,e.screenY]}var w=r(6942),E=r(1453),k=r(2357),_=((n=_||{})[n.First=0]="First",n[n.Previous=1]="Previous",n[n.Next=2]="Next",n[n.Last=3]="Last",n[n.Specific=4]="Specific",n[n.Nothing=5]="Nothing",n),j=r(3029),S=r(2774);function O(e,t){return e?e+"["+t+"]":t}var T=r(5219),P=r(1673),N=r(2562),A=r(5612),C=((i=C||{})[i.Open=0]="Open",i[i.Closed=1]="Closed",i),I=((o=I||{})[o.Single=0]="Single",o[o.Multi=1]="Multi",o),q=((s=q||{})[s.Pointer=0]="Pointer",s[s.Other=1]="Other",s),R=((a=R||{})[a.OpenListbox=0]="OpenListbox",a[a.CloseListbox=1]="CloseListbox",a[a.GoToOption=2]="GoToOption",a[a.Search=3]="Search",a[a.ClearSearch=4]="ClearSearch",a[a.RegisterOption=5]="RegisterOption",a[a.UnregisterOption=6]="UnregisterOption",a[a.RegisterLabel=7]="RegisterLabel",a);function F(e,t=e=>e){let r=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,n=(0,S.wl)(t(e.options.slice()),e=>e.dataRef.current.domRef.current),i=r?n.indexOf(r):null;return -1===i&&(i=null),{options:n,activeOptionIndex:i}}let D={1:e=>e.dataRef.current.disabled||1===e.listboxState?e:{...e,activeOptionIndex:null,listboxState:1},0(e){if(e.dataRef.current.disabled||0===e.listboxState)return e;let t=e.activeOptionIndex,{isSelected:r}=e.dataRef.current,n=e.options.findIndex(e=>r(e.dataRef.current.value));return -1!==n&&(t=n),{...e,listboxState:0,activeOptionIndex:t}},2(e,t){var r;if(e.dataRef.current.disabled||1===e.listboxState)return e;let n=F(e),i=function(e,t){let r=t.resolveItems();if(r.length<=0)return null;let n=t.resolveActiveIndex(),i=null!=n?n:-1;switch(e.focus){case 0:for(let e=0;e<r.length;++e)if(!t.resolveDisabled(r[e],e,r))return e;return n;case 1:for(let e=i-1;e>=0;--e)if(!t.resolveDisabled(r[e],e,r))return e;return n;case 2:for(let e=i+1;e<r.length;++e)if(!t.resolveDisabled(r[e],e,r))return e;return n;case 3:for(let e=r.length-1;e>=0;--e)if(!t.resolveDisabled(r[e],e,r))return e;return n;case 4:for(let n=0;n<r.length;++n)if(t.resolveId(r[n],n,r)===e.id)return n;return n;case 5:return null;default:throw Error("Unexpected object: "+e)}}(t,{resolveItems:()=>n.options,resolveActiveIndex:()=>n.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...e,...n,searchQuery:"",activeOptionIndex:i,activationTrigger:null!=(r=t.trigger)?r:1}},3:(e,t)=>
255{if(e.dataRef.current.disabled||1===e.listboxState)return e;let r=+(""===e.searchQuery),n=e.searchQuery+t.value.toLowerCase(),i=(null!==e.activeOptionIndex?e.options.slice(e.activeOptionIndex+r).concat(e.options.slice(0,e.activeOptionIndex+r)):e.options).find(e=>{var t;return!e.dataRef.current.disabled&&(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(n))}),o=i?e.options.indexOf(i):-1;return -1===o||o===e.activeOptionIndex?{...e,searchQuery:n}:{...e,searchQuery:n,activeOptionIndex:o,activationTrigger:1}},4:e=>e.dataRef.current.disabled||1===e.listboxState||""===e.searchQuery?e:{...e,searchQuery:""},5:(e,t)=>{let r={id:t.id,dataRef:t.dataRef},n=F(e,e=>[...e,r]);return null===e.activeOptionIndex&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(n.activeOptionIndex=n.options.indexOf(r)),{...e,...n}},6:(e,t)=>{let r=F(e,e=>{let r=e.findIndex(e=>e.id===t.id);return -1!==r&&e.splice(r,1),e});return{...e,...r,activationTrigger:1}},7:(e,t)=>({...e,labelId:t.id})},L=(0,l.createContext)(null);function M(e){let t=(0,l.useContext)(L);if(null===t){let t=Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,M),t}return t}L.displayName="ListboxActionsContext";let U=(0,l.createContext)(null);function B(e){let t=(0,l.useContext)(U);if(null===t){let t=Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,B),t}return t}function $(e,t){return(0,T.Y)(t.type,D,e,t)}U.displayName="ListboxDataContext";let W=l.Fragment,z=N.O5.RenderStrategy|N.O5.Static,K=Object.assign((0,N.FX)(function(e,t){let{value:r,defaultValue:n,form:i,name:o,onChange:s,by:a=(e,t)=>e===t,disabled:u=!1,horizontal:d=!1,multiple:h=!1,...g}=e,v=d?"horizontal":"vertical",b=(0,y.P)(t),[x=h?[]:void 0,k]=function(e,t,r){let[n,i]=(0,l.useState)(r),o=void 0!==e,s=(0,l.useRef)(o),a=(0,l.useRef)(!1),c=(0,l.useRef)(!1);return!o||s.current||a.current?o||!s.current||c.current||(c.current=!0,s.current=o,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")):(a.current=!0,s.current=o,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")),[o?e:n,(0,p._)(e=>(o||i(e),null==t?void 0:t(e)))]}(r,s,n),[j,P]=(0,l.useReducer)($,{dataRef:(0,l.createRef)(),listboxState:1,options:[],searchQuery:"",labelId:null,activeOptionIndex:null,activationTrigger:1}),A=(0,l.useRef)({static:!1,hold:!1}),C=(0,l.useRef)(null),I=(0,l.useRef)(null),q=(0,l.useRef)(null),R=(0,p._)("string"==typeof a?(e,t)=>(null==e?void 0:e[a])===(null==t?void 0:t[a]):a),F=(0,l.useCallback)(e=>(0,T.Y)(D.mode,{1:()=>x.some(t=>R(t,e)),0:()=>R(x,e)}),[x]),D=(0,l.useMemo)(()=>({...j,value:x,disabled:u,mode:+!!h,orientation:v,compare:R,isSelected:F,optionsPropsRef:A,labelRef:C,buttonRef:I,optionsRef:q}),[x,u,h,j]);(0,c.s)(()=>{j.dataRef.current=D},[D]),(0,m.j)([D.buttonRef,D.optionsRef],(e,t)=>{var r;P({type:1}),(0,S.Bm)(t,S.MZ.Loose)||(e.preventDefault(),null==(r=D.buttonRef.current)||r.focus())},0===D.listboxState);let M=(0,l.useMemo)(()=>({open:0===D.listboxState,disabled:u,value:x}),[D,u,x]),B=(0,p._)(e=>{let t=D.options.find(t=>t.id===e);t&&Y(t.dataRef.current.value)}),z=(0,p._)(()=>{if(null!==D.activeOptionIndex){let{dataRef:e,id:t}=D.options[D.activeOptionIndex];Y(e.current.value),P({type:2,focus:_.Specific,id:t})}}),K=(0,p._)(()=>P({type:0})),G=(0,p._)(()=>P({type:1})),Q=(0,p._)((e,t,r)=>e===_.Specific?P({type:2,focus:_.Specific,id:t,trigger:r}):P({type:2,focus:e,trigger:r})),H=(0,p._)((e,t)=>(P({type:5,id:e,dataRef:t}),()=>P({type:6,id:e}))),V=(0,p._)(e=>(P({type:7,id:e}),()=>P({type:7,id:null}))),Y=(0,p._)(e=>(0,T.Y)(D.mode,{0:()=>null==k?void 0:k(e),1(){let t=D.value.slice(),r=t.findIndex(t=>R(t,e));return -1===r?t.push(e):t.splice(r,1),null==k?void 0:k(t)}})),X=(0,p._)(e=>P({type:3,value:e})),J=(0,p._)(()=>P({type:4})),Z=(0,l.useMemo)(()=>({onChange:Y,registerOption:H,registerLabel:V,goToOption:Q,closeListbox:G,openListbox:K,selectActiveOption:z,selectOption:B,search:X,clearSearch:J}),[]),ee=(0,l.useRef)(null),et=(0,f.L)();return(0,l.useEffect)(()=>{ee.current&&void 0!==n&&et.addEventListener(ee.current,"reset",()=>{null==k||k(n)})},[ee,k]),l.createElement(L.Provider,{value:Z},l.createElement(U.Provider,{value:D},l.createElement(E.El,{value:(0,T.Y)(D.listboxState,{0:E.Uw.Open,1:E.Uw.Closed})},null!=o&&null!=x&&(function e(t={},r=null,n=[]){for(let[i,o]of Object.entries(t))!function t(r,n,i){if(Array.isArray(i))for(let[e,o]of i.entries())t(r,O(n,e.toString()),o);else i instanceof Date?r.push([n,i.toISOString()]):"boolean"==typeof i?r.push([n,i?"1":"0"]):"string"==typeof i?r.push([n,i]):"number"==typeof i?r.push([n,`${i}`]):null==i?r.push([n,""]):e(i,n,r)}(n,O(r,i),o);return n})({[o]:x}).map(([e,t],r)=>l.createElement(w.j,{features:w.O.Hidden,ref:0===r?e=>{var t;ee.current=null!=(t=null==e?void 0:e.closest("form"))?t:null}:void 0,...(0,N.oE)({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:i,disabled:u,name:e,value:t})})),(0,N.XX)({ourProps:{ref:b},theirProps:g,slot:M,defaultTag:W,name:"Listbox"}))))}),{Button:(0,N.FX)(function(e,t){var r;let n=(0,h.B)(),{id:i=`headlessui-listbox-button-${n}`,...o}=e,s=B("Listbox.Button"),a=M("Listbox.Button"),c=(0,y.P)(s.buttonRef,t),u=(0,f.L)(),m=(0,p._)(e=>{switch(e.key){case A.D.Space:case A.D.Enter:case A.D.ArrowDown:e.preventDefault(),a.openListbox(),u.nextFrame(()=>{s.value||a.goToOption(_.First)});break;case A.D.ArrowUp:e.preventDefault(),a.openListbox(),u.nextFrame(()=>{s.value||a.goToOption(_.Last)})}}),v=(0,p._)(e=>{e.key===A.D.Space&&e.preventDefault()}),b=(0,p._)(e=>{if((0,k.l)(e.currentTarget))return e.preventDefault();0===s.listboxState?(a.closeListbox(),u.nextFrame(()=>{var e;return null==(e=s.buttonRef.current)?void 0:e.focus({preventScroll:!0})}
255)):(e.preventDefault(),a.openListbox())}),x=d(()=>{if(s.labelId)return[s.labelId,i].join(" ")},[s.labelId,i]),w=(0,l.useMemo)(()=>({open:0===s.listboxState,disabled:s.disabled,value:s.value}),[s]),E={ref:c,id:i,type:(0,g.c)(e,s.buttonRef),"aria-haspopup":"listbox","aria-controls":null==(r=s.optionsRef.current)?void 0:r.id,"aria-expanded":0===s.listboxState,"aria-labelledby":x,disabled:s.disabled,onKeyDown:m,onKeyUp:v,onClick:b};return(0,N.XX)({ourProps:E,theirProps:o,slot:w,defaultTag:"button",name:"Listbox.Button"})}),Label:(0,N.FX)(function(e,t){let r=(0,h.B)(),{id:n=`headlessui-listbox-label-${r}`,...i}=e,o=B("Listbox.Label"),s=M("Listbox.Label"),a=(0,y.P)(o.labelRef,t);(0,c.s)(()=>s.registerLabel(n),[n]);let u=(0,p._)(()=>{var e;return null==(e=o.buttonRef.current)?void 0:e.focus({preventScroll:!0})}),d=(0,l.useMemo)(()=>({open:0===o.listboxState,disabled:o.disabled}),[o]);return(0,N.XX)({ourProps:{ref:a,id:n,onClick:u},theirProps:i,slot:d,defaultTag:"label",name:"Listbox.Label"})}),Options:(0,N.FX)(function(e,t){var r;let n=(0,h.B)(),{id:i=`headlessui-listbox-options-${n}`,...o}=e,s=B("Listbox.Options"),a=M("Listbox.Options"),c=(0,y.P)(s.optionsRef,t),u=(0,f.L)(),m=(0,f.L)(),g=(0,E.O_)(),v=null!==g?(g&E.Uw.Open)===E.Uw.Open:0===s.listboxState;(0,l.useEffect)(()=>{var e;let t=s.optionsRef.current;t&&0===s.listboxState&&t!==(null==(e=(0,P.T)(t))?void 0:e.activeElement)&&t.focus({preventScroll:!0})},[s.listboxState,s.optionsRef]);let b=(0,p._)(e=>{switch(m.dispose(),e.key){case A.D.Space:if(""!==s.searchQuery)return e.preventDefault(),e.stopPropagation(),a.search(e.key);case A.D.Enter:if(e.preventDefault(),e.stopPropagation(),null!==s.activeOptionIndex){let{dataRef:e}=s.options[s.activeOptionIndex];a.onChange(e.current.value)}0===s.mode&&(a.closeListbox(),(0,j.e)().nextFrame(()=>{var e;return null==(e=s.buttonRef.current)?void 0:e.focus({preventScroll:!0})}
255));break;case(0,T.Y)(s.orientation,{vertical:A.D.ArrowDown,horizontal:A.D.ArrowRight}):return e.preventDefault(),e.stopPropagation(),a.goToOption(_.Next);case(0,T.Y)(s.orientation,{vertical:A.D.ArrowUp,horizontal:A.D.ArrowLeft}):return e.preventDefault(),e.stopPropagation(),a.goToOption(_.Previous);case A.D.Home:case A.D.PageUp:return e.preventDefault(),e.stopPropagation(),a.goToOption(_.First);case A.D.End:case A.D.PageDown:return e.preventDefault(),e.stopPropagation(),a.goToOption(_.Last);case A.D.Escape:return e.preventDefault(),e.stopPropagation(),a.closeListbox(),u.nextFrame(()=>{var e;return null==(e=s.buttonRef.current)?void 0:e.focus({preventScroll:!0})});case A.D.Tab:e.preventDefault(),e.stopPropagation();break;default:1===e.key.length&&(a.search(e.key),m.setTimeout(()=>a.clearSearch(),350))}}),x=d(()=>{var e;return null==(e=s.buttonRef.current)?void 0:e.id},[s.buttonRef.current]),w=(0,l.useMemo)(()=>({open:0===s.listboxState}),[s]),k={"aria-activedescendant":null===s.activeOptionIndex||null==(r=s.options[s.activeOptionIndex])?void 0:r.id,"aria-multiselectable":1===s.mode||void 0,"aria-labelledby":x,"aria-orientation":s.orientation,id:i,onKeyDown:b,role:"listbox",tabIndex:0,ref:c};return(0,N.XX)({ourProps:k,theirProps:o,slot:w,defaultTag:"ul",features:z,visible:v,name:"Listbox.Options"})}),Option:(0,N.FX)(function(e,t){let r,n,i,o=(0,h.B)(),{id:s=`headlessui-listbox-option-${o}`,disabled:a=!1,value:d,...f}=e,m=B("Listbox.Option"),g=M("Listbox.Option"),v=null!==m.activeOptionIndex&&m.options[m.activeOptionIndex].id===s,w=m.isSelected(d),E=(0,l.useRef)(null),k=(r=(0,l.useRef)(""),n=(0,l.useRef)(""),(0,p._)(()=>{let e=E.current;if(!e)return"";let t=e.innerText;if(r.current===t)return n.current;let i=(function(e){let t=e.getAttribute("aria-label");if("string"==typeof t)return t.trim();let r=e.getAttribute("aria-labelledby");if(r){let e=r.split(" ").map(e=>{let t=document.getElementById(e);if(t){let e=t.getAttribute("aria-label");return"string"==typeof e?e.trim():b(t).trim()}return null}).filter(Boolean);if(e.length>0)return e.join(", ")}return b(e).trim()})(e).trim().toLowerCase();return r.current=t,n.current=i,i})),S=(0,u.Y)({disabled:a,value:d,domRef:E,get textValue(){return k()}}),O=(0,y.P)(t,E);(0,c.s)(()=>{if(0!==m.listboxState||!v||0===m.activationTrigger)return;let e=(0,j.e)();return e.requestAnimationFrame(()=>{var e,t;null==(t=null==(e=E.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})}),e.dispose},[E,v,m.listboxState,m.activationTrigger,m.activeOptionIndex]),(0,c.s)(()=>g.registerOption(s,S),[S,s]);let T=(0,p._)(e=>{if(a)return e.preventDefault();g.onChange(d),0===m.mode&&(g.closeListbox(),(0,j.e)().nextFrame(()=>{var e;return null==(e=m.buttonRef.current)?void 0:e.focus({preventScroll:!0})}
255))}),P=(0,p._)(()=>{if(a)return g.goToOption(_.Nothing);g.goToOption(_.Specific,s)}),A=(i=(0,l.useRef)([-1,-1]),{wasMoved(e){let t=x(e);return(i.current[0]!==t[0]||i.current[1]!==t[1])&&(i.current=t,!0)},update(e){i.current=x(e)}}),C=(0,p._)(e=>A.update(e)),I=(0,p._)(e=>{A.wasMoved(e)&&(a||v||g.goToOption(_.Specific,s,0))}),q=(0,p._)(e=>{A.wasMoved(e)&&(a||v&&g.goToOption(_.Nothing))}),R=(0,l.useMemo)(()=>({active:v,selected:w,disabled:a}),[v,w,a]);return(0,N.XX)({ourProps:{id:s,ref:O,role:"option",tabIndex:!0===a?void 0:-1,"aria-disabled":!0===a||void 0,"aria-selected":w,disabled:void 0,onClick:T,onFocus:P,onPointerEnter:C,onMouseEnter:C,onPointerMove:I,onMouseMove:I,onPointerLeave:q,onMouseLeave:q},theirProps:f,slot:R,defaultTag:"li",name:"Listbox.Option"})})})},6654:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(5729);let i=n.forwardRef(function({title:e,titleId:t,...r},i){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:i,"aria-labelledby":t},r),e?n.createElement("title",{id:t},e):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"}))})},6772:(e,t,r)=>{e.exports=r(9387)},6892:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>g});var n=r(6029),i=r(5729);r(735);var o=r(1278),s=r(6772),a=r.n(s),l=r(9278);let c="G-K34TZSKN01";r(8358),r(5727);var u=r(7472);let d="data-pre-enhanced",p=`
256<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
257  <rect width="14" height="14" x="8" y="8" rx="2" ry="2"></rect>
258  <path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"></path>
259</svg>`,f=`
260<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
261  <polyline points="20 6 9 17 4 12"></polyline>
262</svg>`;function h(e){if(!e||e.hasAttribute(d))return;e.setAttribute(d,"true");let t=e.querySelector("code"),r=function(e){if(!e)return"";let t=Array.from(e.classList).find(e=>e.startsWith("language-"));return t?t.replace(/^language-/,""):""}(t),n=document.createElement("div");n.className="code-block-wrap not-prose",e.parentNode.insertBefore(n,e);let i=document.createElement("div");i.className="code-block-header",i.innerHTML=`
263    <div class="code-block-dots" aria-hidden="true">
264      <span class="code-block-dot" style="background:#FF5F57"></span>
265      <span class="code-block-dot" style="background:#FEBC2E"></span>
266      <span class="code-block-dot" style="background:#28C840"></span>
267    </div>
268    <div class="code-block-meta">
269      ${r?`<span class="code-block-lang">${r}</span>`:""}
270      <button type="button" class="code-block-copy" aria-label="Copy code">
271        ${p}<span class="code-block-copy-label">Copy</span>
272      </button>
273    </div>
274  `;let o=i.querySelector(".code-block-copy");o.addEventListener("click",async()=>{let r=(t?.textContent??e.textContent??"").replace(/\n$/,"");try{await navigator.clipboard.writeText(r),o.classList.add("is-copied"),o.innerHTML=`${f}<span class="code-block-copy-label">Copied</span>`,setTimeout(()=>{o.classList.remove("is-copied"),o.innerHTML=`${p}<span class="code-block-copy-label">Copy</span>`},1500)}catch{o.classList.add("is-error"),o.querySelector(".code-block-copy-label").textContent="Failed"}}),n.appendChild(i),n.appendChild(e)}function m(){let{asPath:e}=(0,o.useRouter)();return(0,i.useEffect)(()=>{let e=requestAnimationFrame(()=>{document.querySelectorAll(".prose pre").forEach(h)});return()=>cancelAnimationFrame(e)},[e]),null}function g({Component:e,pageProps:t}){let r=(0,o.useRouter)();return(0,i.useEffect)(()=>{let e=e=>{window.gtag("config",c,{page_path:e})};return r.events.on("routeChangeComplete",e),()=>{r.events.off("routeChangeComplete",e)}},[r.events]),(0,n.jsx)(l.N,{attribute:"class",defaultTheme:"dark",enableSystem:!0,children:(0,n.jsxs)(u.Y,{children:[(0,n.jsx)(a(),{strategy:"afterInteractive",src:`https://www.googletagmanager.com/gtag/js?i
274d=${c}`}),(0,n.jsx)(a(),{id:"google-analytics",strategy:"afterInteractive",dangerouslySetInnerHTML:{__html:`
275            window.dataLayer = window.dataLayer || [];
276            function gtag(){dataLayer.push(arguments);}
277            gtag('js', new Date());
278            gtag('config', '${c}', {
279              page_path: window.location.pathname,
280            });
281          `}}),(0,i.createElement)(e,{...t,key:r.asPath}),(0,n.jsx)(m,{})]})})}},6916:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={default:function(){return _},useLinkStatus:function(){return k}};for(var i in n)Object.defineProperty(t,i,{enumerable:!0,get:n[i]});let o=r(3514),s=r(6029),a=o._(r(5729)),l=r(8338),c=r(2472),u=r(9537),d=r(1031),p=r(1400),f=r(265),h=r(7511),m=r(8876),g=r(4381),y=r(9058),v=new Set;function b(e,t,r,n){if((0,c.isLocalURL)(t)){if(!n.bypassPrefetchedCheck){let i=t+"%"+r+"%"+(void 0!==n.locale?n.locale:"locale"in e?e.locale:void 0);if(v.has(i))return;v.add(i)}e.prefetch(t,r,n).catch(e=>{})}}function x(e){return"string"==typeof e?e:(0,u.formatUrl)(e)}let w=a.default.forwardRef(function(e,t){let r,n,{href:i,as:o,children:u,prefetch:v=null,passHref:w,replace:E,shallow:k,scroll:_,locale:j,onClick:S,onNavigate:O,onMouseEnter:T,onTouchStart:P,legacyBehavior:N=!1,transitionTypes:A,...C}=e;r=u,N&&("string"==typeof r||"number"==typeof r)&&(r=(0,s.jsx)("a",{children:r}));let I=a.default.useContext(f.RouterContext),q=!1!==v,{href:R,as:F}=a.default.useMemo(()=>{if(!I){let e=x(i);return{href:e,as:o?x(o):e}}let[e,t]=(0,l.resolveHref)(I,i,!0);return{href:e,as:o?(0,l.resolveHref)(I,o):t||e}},[I,i,o]),D=a.default.useRef(R),L=a.default.useRef(F);N&&(n=a.default.Children.only(r));let M=N?n&&"object"==typeof n&&n.ref:t,[U,B,$]=(0,h.useIntersection)({rootMargin:"200px"}),W=a.default.useCallback(e=>{(L.current!==F||D.current!==R)&&($(),L.current=F,D.current=R),U(e)},[F,R,$,U]),z=(0,y.useMergedRef)(W,M);a.default.useEffect(()=>{!I||B&&q&&b(I,R,F,{bypassPrefetchedCheck:!1,locale:j})},[F,R,B,j,q,I?.locale,I]);let K={ref:z,onClick(e){N||"function"!=typeof S||S(e),N&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(e),!I||e.defaultPrevented||function(e,t,r,n,i,o,s,a,l){let u,{nodeName:d}=e.currentTarget;if(!("A"===d.toUpperCase()&&((u=e.currentTarget.getAttribute("target"))&&"_self"!==u||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which)||e.currentTarget.hasAttribute("download"))){if(!(0,c.isLocalURL)(r)){i&&(e.preventDefault(),location.replace(r));return}e.preventDefault(),(()=>{if(l){let e=!1;if(l({preventDefault:()=>{e=!0}}),e)return}let e=s??!0;"beforePopState"in t?t[i?"replace":"push"](r,n,{shallow:o,locale:a,scroll:e}):t[i?"replace":"push"](n||r,{scroll:e})})()}}(e,I,R,F,E,k,_,j,O)},onMouseEnter(e){N||"function"!=typeof T||T(e),N&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),I&&b(I,R,F,{locale:j,priority:!0,bypassPrefetchedCheck:!0})},onTouchStart:function(e){N||"function"!=typeof P||P(e),N&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),I&&b(I,R,F,{locale:j,priority:!0,bypassPrefetchedCheck:!0})}};if((0,d.isAbsoluteUrl)(F))K.href=F;else if(!N||w||"a"===n.type&&!("href"in n.props)){let e=void 0!==j?j:I?.locale;K.href=I?.isLocaleDomain&&(0,m.getDomainLocale)(F,e,I?.locales,I?.domainLocales)||(0,g.addBasePath)((0,p.addLocale)(F,e,I?.defaultLocale))}return N?a.default.cloneElement(n,K):(0,s.jsx)("a",{...C,...K,children:r})}),E=(0,a.createContext)({pending:!1}),k=()=>(0,a.useContext)(E),_=w;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6942:(e,t,r)=>{"use strict";let n;r.d(t,{O:()=>o,j:()=>s});var i=r(2562),o=((n=o||{})[n.None=1]="None",n[n.Focusable=2]="Focusable",n[n.Hidden=4]="Hidden",n);let s=(0,i.FX)(function(e,t){var r;let{features:n=1,...o}=e,s={ref:t,"aria-hidden":(2&n)==2||(null!=(r=o["aria-hidden"])?r:void 0),hidden:(4&n)==4||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(4&n)==4&&(2&n)!=2&&{display:"none"}}};return(0,i.XX)({ourProps:s,theirProps:o,slot:{},defaultTag:"div",name:"Hidden"})})},6947:(e,t,r)=>{"use strict";let n,i;r.d(t,{$:()=>I});var o=r(6029),s=r(5729),a=r.t(s,2),l=Object.defineProperty,c=(e,t)=>l(e,"name",{value:t,configurable:!0});function u(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function d(...e){return t=>{let r=!1,n=e.map(e=>{let n=u(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){let r=n[t];"function"==typeof r?r():u(e[t],null)}}}}function p(...e){return s.useCallback(d(...e),e)}c(u,"setRef"),c(d,"composeRefs"),c(p,"useComposedRefs");var f=Object.defineProperty,h=(e,t)=>f(e,"name",{value:t,configurable:!0});function m(e){let t=s.forwardRef((t,r)=>{let{children:n,...i}=t,o=null,a=!1,l=[];
281k(n)&&"function"==typeof O&&(n=O(n._payload)),s.Children.forEach(n,e=>{if(w(e)){a=!0;let t="child"in e.props?e.props.child:e.props.children;k(t)&&"function"==typeof O&&(t=O(t._payload)),o=v(e,t),l.push(o?.props?.children)}else l.push(e)}),o?o=s.cloneElement(o,void 0,l):!a&&1===s.Children.count(n)&&s.isValidElement(n)&&(o=n);let c=o?x(o):void 0,u=p(r,c);if(!o){if(n||0===n)throw Error(a?S(e):j(e));return n}let d=b(i,o.props??{});return o.type!==s.Fragment&&(d.ref=r?u:c),s.cloneElement(o,d)});return t.displayName=`${e}.Slot`,t}h(m,"createSlot");var g=m("Slot"),y=Symbol.for("radix.slottable");h(function(e){let t=h(e=>"child"in e?e.children(e.child):e.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=y,t},"createSlottable");var v=h((e,t)=>{if("child"in e.props){let t=e.props.child;return s.isValidElement(t)?s.cloneElement(t,void 0,e.props.children(t.props.children)):null}return s.isValidElement(t)?t:null},"getSlottableElementFromSlottable");function b(e,t){let r={...t};for(let n in t){let i=e[n],o=t[n];/^on[A-Z]/.test(n)?i&&o?r[n]=(...e)=>{let t=o(...e);return i(...e),t}:i&&(r[n]=i):"style"===n?r[n]={...i,...o}:"className"===n&&(r[n]=[i,o].filter(Boolean).join(" "))}return{...e,...r}}function x(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(r=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}function w(e){return s.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===y}h(b,"mergeProps"),h(x,"getElementRef"),h(w,"isSlottable");var E=Symbol.for("react.lazy");function k(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===E&&"_payload"in e&&_(e._payload)}function _(e){return"object"==typeof e&&null!==e&&"then"in e}h(k,"isLazyComponent"),h(_,"isPromiseLike");var j=h(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),S=h(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),O=a[" use ".trim().toString()],T=r(212);let P=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,N=T.$;var A=r(4656);let C=(n="inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium cursor-pointer transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",i={variants:{variant:{default:"bg-primary text-primary-foreground shadow-glow-sm hover:shadow-glow-md hover:-translate-y-0.5",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}},e=>{var t;if((null==i?void 0:i.variants)==null)return N(n,null==e?void 0:e.class,null==e?void 0:e.className);let{variants:r,defaultVariants:o}=i,s=Object.keys(r).map(t=>{let n=null==e?void 0:e[t],i=null==o?void 0:o[t];if(null===n)return null;let s=P(n)||P(i);return r[t][s]}),a=e&&Object.entries(e).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{});return N(n,s,null==i||null==(t=i.compoundVariants)?void 0:t.reduce((e,t)=>{let{class:r,className:n,...i}=t;return Object.entries(i).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...o,...a}[t]):({...o,...a})[t]===r})?[...e,r,n]:e},[]),null==e?void 0:e.class,null==e?void 0:e.className)}),I=s.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...i},s)=>(0,o.jsx)(n?g:"button",{"data-slot":"button",className:(0,A.cn)(C({variant:t,size:r,className:e})),ref:s,...i}));I.displayName="Button"},7133:(e,t,r)=>{"use strict";e.exports=r(5596)},7163:(e,t,r)=>{"use strict";r.d(t,{c:()=>s});var n=r(5729),i=r(483);function o(e){var t;if(e.type)return e.type;let r=null!=(t=e.as)?t:"button";if("string"==typeof r&&"button"===r.toLowerCase())return"button"}
281function s(e,t){let[r,s]=(0,n.useState)(()=>o(e));return(0,i.s)(()=>{s(o(e))},[e.type,e.as]),(0,i.s)(()=>{r||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&s("button")},[r,t]),r}},7203:(e,t,r)=>{"use strict";e.exports=r(5675)},7472:(e,t,r)=>{"use strict";let n,i;r.d(t,{v:()=>a6,Y:()=>a5});var o,s,a,l,c,u,d,p,f=r(6029),h=r(6760),m=r(5729),g=r.t(m,2),y=r(1278),v=r(5669),b=r.n(v);function x(e){return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function w(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function E(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?w(Object(r),!0).forEach(function(t){!function(e,t,r){var n;(n=function(e,t){if("object"!=x(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=x(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==x(n)?n:n+"")in e)?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function k({size:e=20,color:t="currentColor"}){return m.createElement("svg",{width:e,height:e,className:"DocSearch-Search-Icon",viewBox:"0 0 24 24","aria-hidden":"true"},m.createElement("circle",{cx:"11",cy:"11",r:"8",stroke:t,fill:"none",strokeWidth:"1.4"}),m.createElement("path",{d:"m21 21-4.3-4.3",stroke:t,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"}))}function _(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.includes(r)||({}).propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}let j="5.0.5";function S(e={serializable:!0}){let t={};return{get(r,n,i={miss:()=>Promise.resolve()}){let o=JSON.stringify(r);if(o in t)return Promise.resolve(e.serializable?JSON.parse(t[o]):t[o]);let s=n();return s.then(e=>i.miss(e)).then(()=>s)},set:(r,n)=>(t[JSON.stringify(r)]=e.serializable?JSON.stringify(n):n,Promise.resolve(n)),delete:e=>(delete t[JSON.stringify(e)],Promise.resolve()),clear:()=>(t={},Promise.resolve())}}async function*O(e){let t=e.getReader();try{for(;;){let{done:e,value:r}=await t.read();if(e)return;yield r}}finally{t.releaseLock()}}async function*T(e){let t=new TextDecoder("utf-8"),r=[],n=0,i=!1,o=!0;for await(let s of Symbol.asyncIterator in e?e:O(e)){let e=t.decode(s,{stream:!0}),a=0;for(i&&(i=!1,e.length>0&&"\n"===e[0]&&(a=1));a<e.length;){let t,s,l=e.indexOf("\r",a),c=e.indexOf("\n",a);if(-1===l&&-1===c){let t=e.slice(a);if(r.push(t),(n+=t.length)>0xa00000)throw Error("SSE line buffer exceeded 10MB");break}-1!==l&&(-1===c||l<c)?(t=l,l+1<e.length?s="\n"===e[l+1]?2:1:(i=!0,s=1)):(t=c,s=1);let u=e.slice(a,t);r.push(u);let d=1===r.length?r[0]:r.join("");r.length=0,n=0,o&&(d.startsWith("\uFEFF")&&(d=d.slice(1)),o=!1),yield d,a=t+s}}let s=t.decode();if(s&&r.push(s),r.length>0){let e=r.join("");o&&e.startsWith("\uFEFF")&&(e=e.slice(1)),yield e}}var P=class{data=[];eventType="";lastEventId=null;retry=null;decode(e){let t,r;if(""===e)return this.dispatch();if(":"===e[0])return null;let n=e.indexOf(":");switch(-1===n?(t=e,r=""):(t=e.slice(0,n)," "===(r=e.slice(n+1))[0]&&(r=r.slice(1))),t){case"data":this.data.push(r);break;case"event":this.eventType=r;break;case"id":r.includes("\0")||(this.lastEventId=r);break;case"retry":/^[0-9]+$/.test(r)&&(this.retry=parseInt(r,10))}return null}dispatch(){let e=this.eventType;if(this.eventType="",0===this.data.length)return null;let t={data:this.data.join("\n"),event:e,id:this.lastEventId,retry:this.retry};return this.data=[],t}};async function*N(e){let t=new P;for await(let r of T(e)){let e=t.decode(r);null!==e&&(yield e)}}function A(e,t="up"){let r=Date.now();return{...e,status:t,lastUpdate:r,isUp:function(){return"up"===t||Date.now()-r>12e4},isTimedOut:function(){return"timed out"===t&&Date.now()-r<=12e4}}}
281var C=class extends Error{name="AlgoliaError";constructor(e,t){super(e),t&&(this.name=t)}},I=class extends C{stackTrace;constructor(e,t,r){super(e,r),this.stackTrace=t}},q=class extends I{constructor(e){super("Unreachable hosts - your application id may be incorrect. If the error persists, please visit our help center https://alg.li/support-unreachable-hosts or reach out to the Algolia Support team: https://alg.li/support",e,"RetryError")}},R=class extends I{status;constructor(e,t,r,n="ApiError"){super(e,r,n),this.status=t}},F=class extends C{response;constructor(e,t){super(e,"DeserializationError"),this.response=t}},D=class extends R{error;constructor(e,t,r,n){super(e,t,n,"DetailedApiError"),this.error=r}};function L(e,t,r){var n;let i=Object.keys(n=r).filter(e=>void 0!==n[e]).sort().map(e=>`${e}=${encodeURIComponent("[object Array]"===Object.prototype.toString.call(n[e])?n[e].join(","):n[e]).replace(/\+/g,"%20")}`).join("&"),o=`${e.protocol}://${e.url}${e.port?`:${e.port}`:""}/${"/"===t.charAt(0)?t.substring(1):t}`;return i.length&&(o+=`?${i}`),o}function M(e,t){if("GET"!==e.method&&(void 0!==e.data||void 0!==t.data))return JSON.stringify(Array.isArray(e.data)?e.data:{...e.data,...t.data})}function U(e,t,r){let n={Accept:"application/json",...e,...t,...r},i={};return Object.keys(n).forEach(e=>{let t=n[e];i[e.toLowerCase()]=t}),i}function B(e){let t=e.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return{...e,request:{...e.request,headers:{...e.request.headers,...t}}}}function $(e,t,r){if(null==r||"string"==typeof r&&0===r.length)throw Error(`Parameter \`${e}\` is required when calling \`${t}\`.`)}var W="5.55.2";function z({className:e}){return m.createElement("svg",{viewBox:"0 0 38 38",className:e,stroke:"currentColor",strokeOpacity:".5"},m.createElement("g",{fill:"none",fillRule:"evenodd"},m.createElement("g",{transform:"translate(1 1)",strokeWidth:"2"},m.createElement("circle",{strokeOpacity:".3",cx:"18",cy:"18",r:"18"}),m.createElement("path",{d:"M36 18c0-9.94-8.06-18-18-18"},m.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"1s",repeatCount:"indefinite"})))))}function K({className:e=""}){return m.createElement("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.3",strokeLinecap:"round",strokeLinejoin:"round",className:`DocSearch-Hit-icon-sparkles ${e}`,"aria-hidden":"true"},m.createElement("path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z"}),m.createElement("path",{d:"M20 3v4"}),m.createElement("path",{d:"M22 5h-4"}),m.createElement("path",{d:"M4 17v2"}),m.createElement("path",{d:"M5 18H3"}))}function G(){return m.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20"},m.createElement("g",{stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"},m.createElement("path",{d:"M3.18 6.6a8.23 8.23 0 1112.93 9.94h0a8.23 8.23 0 01-11.63 0"}),m.createElement("path",{d:"M6.44 7.25H2.55V3.36M10.45 6v5.6M10.45 11.6L13 13"})))}function Q(e){if(null==e)throw TypeError("Cannot destructure "+e)}function H(){return(H=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}function V(e){let t=H({},(Q(e),e));return m.createElement("svg",E({width:"20",height:"20",viewBox:"0 0 20 20"},t),m.createElement("path",{d:"M10 10l5.09-5.09L10 10l5.09 5.09L10 10zm0 0L4.91 4.91 10 10l-5.09 5.09L10 10z",stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"}))}let Y=()=>m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},m.createElement("path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"}),m.createElement("path",{d:"M14 2v4a2 2 0 0 0 2 2h4"}),m.createElement("path",{d:"M10 9H8"}),m.createElement("path",{d:"M16 13H8"}),m.createElement("path",{d:"M16 17H8"}));function X(e){switch(e.type){case"lvl1":return m.createElement(Y,null);case"content":return m.createElement(Z,null);default:return m.createElement(J,null)}}function J(){return m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"},m.createElement("line",{x1:"4",x2:"20",y1:"9",y2:"9"}),m.createElement("line",{x1:"4",x2:"20",y1:"15",y2:"15"}),m.createElement("line",{x1:"10",x2:"8",y1:"3",y2:"21"}),m.createElement("line",{x1:"16",x2:"14",y1:"3",y2:"21"}))}function Z(){return m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"},m.createElement("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),m.createElement("polyline",{points:"14 2 14 8 20 8"}),m.createElement("line",{x1:"16",y1:"13",x2:"8",y2:"13"}),m.createElement("line",{x1:"16",y1:"17",x2:"8",y2:"17"}),m.createElement("polyline",{points:"10 9 9 9 8 9"}))}function ee({translations:e={}}){let{poweredByText:t="Powered by"}=e;return m.createElement("a",{href:`https://www.algolia.com/ref/docsearch/?utm_source=${window.location.hostname}&utm_medium=referral&utm_content=powered_by&utm_campaign=docsearch`,target:"_blank",rel:"noopener noreferrer"},m.createElement("span",{className:"DocSearch-Label"},t),m.createElement("svg",{width:"80",height:"24","aria-label":"Algolia",role:"img",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 2196.2 500"},m.createElement("defs",null,m.createElement("style",null,".cls-1,.cls-2{fill:#003dff;}.cls-2{fill-rule:evenodd;}")),m.createElement("path",{className:"cls-2",d:"M1070.38,275.3V5.91c0-3.63-3.24-6.39-6.82-5.83l-50.46,7.94c-2.87,.45-4.99,2.93-4.99,5.84l.17,273.22c0,12.92,0,92.7,95.97,95.49,3.33,.1,6.09-2.58,6.09-5.91v-40.78c0-2.96-2.19-5.51-5.12-5.84-34.85-4.01-34.85-47.57-34.85-54.72Z"}),m.createElement("rect",{className:"cls-1",x:"1845.88",y:"104.73",width:"62.58",height:"277.9",rx:"5.9",ry:"5.9"}),m.createElement("path",{className:"cls-2",d:"M1851.78,71.38h50.77c3.26,0,5.9-2.64,5.9-5.9V5.9c0-3.62-3.24-6.39-6.82-5.83l-50.77,7.95c-2.87,.45-4.99,2.92
281-4.99,5.83v51.62c0,3.26,2.64,5.9,5.9,5.9Z"}),m.createElement("path",{className:"cls-2",d:"M1764.03,275.3V5.91c0-3.63-3.24-6.39-6.82-5.83l-50.46,7.94c-2.87,.45-4.99,2.93-4.99,5.84l.17,273.22c0,12.92,0,92.7,95.97,95.49,3.33,.1,6.09-2.58,6.09-5.91v-40.78c0-2.96-2.19-5.51-5.12-5.84-34.85-4.01-34.85-47.57-34.85-54.72Z"}),m.createElement("path",{className:"cls-2",d:"M1631.95,142.72c-11.14-12.25-24.83-21.65-40.78-28.31-15.92-6.53-33.26-9.85-52.07-9.85-18.78,0-36.15,3.17-51.92,9.85-15.59,6.66-29.29,16.05-40.76,28.31-11.47,12.23-20.38,26.87-26.76,44.03-6.38,17.17-9.24,37.37-9.24,58.36,0,20.99,3.19,36.87,9.55,54.21,6.38,17.32,15.14,32.11,26.45,44.36,11.29,12.23,24.83,21.62,40.6,28.46,15.77,6.83,40.12,10.33,52.4,10.48,12.25,0,36.78-3.82,52.7-10.48,15.92-6.68,29.46-16.23,40.78-28.46,11.29-12.25,20.05-27.04,26.25-44.36,6.22-17.34,9.24-33.22,9.24-54.21,0-20.99-3.34-41.19-10.03-58.36-6.38-17.17-15.14-31.8-26.43-44.03Zm-44.43,163.75c-11.47,15.75-27.56,23.7-48.09,23.7-20.55,0-36.63-7.8-48.1-23.7-11.47-15.75-17.21-34.01-17.21-61.2,0-26.89,5.59-49.14,17.06-64.87,11.45-15.75,27.54-23.52,48.07-23.52,20.55,0,36.63,7.78,48.09,23.52,11.47,15.57,17.36,37.98,17.36,64.87,0,27.19-5.72,45.3-17.19,61.2Z"}),m.createElement("path",{className:"cls-2",d:"M894.42,104.73h-49.33c-48.36,0-90.91,25.48-115.75,64.1-14.52,22.58-22.99,49.63-22.99,78.73,0,44.89,20.13,84.92,51.59,111.1,2.93,2.6,6.05,4.98,9.31,7.14,12.86,8.49,28.11,13.47,44.52,13.47,1.23,0,2.46-.03,3.68-.09,.36-.02,.71-.05,1.07-.07,.87-.05,1.75-.11,2.62-.2,.34-.03,.68-.08,1.02-.12,.91-.1,1.82-.21,2.73-.34,.21-.03,.42-.07,.63-.1,32.89-5.07,61.56-30.82,70.9-62.81v57.83c0,3.26,2.64,5.9,5.9,5.9h50.42c3.26,0,5.9-2.64,5.9-5.9V110.63c0-3.26-2.64-5.9-5.9-5.9h-56.32Zm0,206.92c-12.2,10.16-27.97,13.98-44.84,15.12-.16,.01-.33,.03-.49,.04-1.12,.07-2.24,.1-3.36,.1-42.24,0-77.12-35.89-77.12-79.37,0-10.25,1.96-20.01,5.42-28.98,11.22-29.12,38.77-49.74,71.06-49.74h49.33v142.83Z"}),m.createElement("path",{className:"cls-2",d:"M2133.97,104.73h-49.33c-48.36,0-90.91,25.48-115.75,64.1-14.52,22.58-22.99,49.63-22.99,78.73,0,44.89,20.13,84.92,51.59,111.1,2.93,2.6,6.05,4.98,9.31,7.14,12.86,8.49,28.11,13.47,44.52,13.47,1.23,0,2.46-.03,3.68-.09,.36-.02,.71-.05,1.07-.07,.87-.05,1.75-.11,2.62-.2,.34-.03,.68-.08,1.02-.12,.91-.1,1.82-.21,2.73-.34,.21-.03,.42-.07,.63-.1,32.89-5.07,61.56-30.82,70.9-62.81v57.83c0,3.26,2.64,5.9,5.9,5.9h50.42c3.26,0,5.9-2.64,5.9-5.9V110.63c0-3.26-2.64-5.9-5.9-5.9h-56.32Zm0,206.92c-12.2,10.16-27.97,13.98-44.84,15.12-.16,.01-.33,.03-.49,.04-1.12,.07-2.24,.1-3.36,.1-42.24,0-77.12-35.89-77.12-79.37,0-10.25,1.96-20.01,5.42-28.98,11.22-29.12,38.77-49.74,71.06-49.74h49.33v142.83Z"}),m.createElement("path",{className:"cls-2",d:"M1314.05,104.73h-49.33c-48.36,0-90.91,25.48-115.75,64.1-11.79,18.34-19.6,39.64-22.11,62.59-.58,5.3-.88,10.68-.88,16.14s.31,11.15,.93,16.59c4.28,38.09,23.14,71.61,50.66,94.52,2.93,2.6,6.05,4.98,9.31,7.14,12.86,8.49,28.11,13.47,44.52,13.47h0c17.99,0,34.61-5.93,48.16-15.97,16.29-11.58,28.88-28.54,34.48-47.75v50.26h-.11v11.08c0,21.84-5.71,38.27-17.34,49.36-11.61,11.08-31.04,16.63-58.25,16.63-11.12,0-28.79-.59-46.6-2.41-2.83-.29-5.46,1.5-6.27,4.22l-12.78,43.11c-1.02,3.46,1.27,7.02,4.83,7.53,21.52,3.08,42.52,4.68,54.65,4.68,48.91,0,85.16-10.75,108.89-32.21,21.48-19.41,33.15-48.89,35.2-88.52V110.63c0-3.26-2.64-5.9-5.9-5.9h-56.32Zm0,64.1s.65,139.13,0,143.36c-12.08,9.77-27.11,13.59-43.49,14.7-.16,.01-.33,.03-.49,.04-1.12,.07-2.24,.1-3.36,.1-1.32,0-2.63-.03-3.94-.1-40.41-2.11-74.52-37.26-74.52-79.38,0-10.25,1.96-20.01,5.42-28.98,11.22-29.12,38.77-49.74,71.06-49.74h49.33Z"}),m.createElement("path",{className:"cls-1",d:"M249.83,0C113.3,0,2,110.09,.03,246.16c-2,138.19,110.12,252.7,248.33,253.5,42.68,.25,83.79-10.19,120.3-30.03,3.56-1.93,4.11-6.83,1.08-9.51l-23.38-20.72c-4.75-4.21-11.51-5.4-17.36-2.92-25.48,10.84-53.17,16.38-81.71,16.03-111.68-1.37-201.91-94.29-200.13-205.96,1.76-110.26,92-199.41,202.67-199.41h202.69V407.41l-115-102.18c-3.72-3.31-9.42-2.66-12.42,1.31-18.46,24.44-48.53,39.64-81.93,37.34-46.33-3.2-83.87-40.5-87.34-86.81-4.15-55.24,39.63-101.52,94-101.52,49.18,0,89.68,37.85,93.91,85.95,.38,4.28,2.31,8.27,5.52,11.12l29.95,26.55c3.4,3.01,8.79,1.17,9.63-3.3,2.16-11.55,2.92-23.58,2.07-35.92-4.82-70.34-61.8-126.93-132.17-131.26-80.68-4.97-148.13,58.14-150.27,137.25-2.09,77.1,61.08,143.56,138.19,145.26,32.19,.71,62.03-9.41,86.14-26.95l150.26,133.2c6.44,5.71,16.61,1.14,16.61-7.47V9.48C499.66,4.25,495.42,0,490.18,0H249.83Z"})))}
281function et(){if(!window.localStorage)return;let e=[];for(let t in window.localStorage)if(t.includes("__DOCSEARCH_")){let r=window.localStorage[t];e.push({key:t,size:r.length+t.length})}e.sort((e,t)=>t.size-e.size);let t=Math.ceil(e.length/2);for(let r=0;r<t&&r<e.length;r++)try{window.localStorage.removeItem(e[r].key)}catch(e){}}let er=["_highlightResult","_snippetResult"];function en({key:e,limit:t=5}){let r=!1===function(){if(!("localStorage"in window))return!1;let e="__TEST_KEY__";try{return window.localStorage.setItem(e,""),window.localStorage.removeItem(e),!0}catch(e){return!1}}()?{setItem(){},getItem:()=>[]}:{setItem(t){try{window.localStorage.setItem(e,JSON.stringify(t))}catch(r){if(r instanceof DOMException&&"QuotaExceededError"===r.name)try{et(),window.localStorage.setItem(e,JSON.stringify(t))}catch(e){}}},getItem(){let t=window.localStorage.getItem(e);if(null===t)return[];try{let e=JSON.parse(t);return Array.isArray(e)?e:[]}catch(t){return window.localStorage.removeItem(e),[]}}},n=r.getItem().slice(0,t);return{add(e){let{_highlightResult:i,_snippetResult:o}=e,s=_(e,er),a=n.findIndex(e=>e.objectID===s.objectID);a>-1&&n.splice(a,1),n.unshift(s),n=n.slice(0,t),r.setItem(n)},remove(e){n=n.filter(t=>t.objectID!==e.objectID),r.setItem(n)},getAll:()=>n}}let ei={};function eo(e,t){let r=m.useRef(ei);return r.current===ei&&(r.current=e(t)),r}function es(){}let ea=Object.freeze([]),el=Object.freeze({});function ec(e){m.useEffect(e,ea)}class eu{static create(){return new eu}currentId=0;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=0,t()},e)}isStarted(){return 0!==this.currentId}clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)};disposeEffect=()=>this.clear}function ed(){let e=eo(eu.create).current;return ec(e.disposeEffect),e}let ep={...g},ef=ep.useInsertionEffect,eh=ef&&ef!==ep.useLayoutEffect?ef:e=>e();function em(e){let t=eo(eg).current;return t.next=e,eh(t.effect),t.trampoline}function eg(){let e={next:void 0,callback:ey,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function ey(){}let ev=0,eb=ep.useId;function ex(e,t){if(void 0!==eb){let r=eb();return e??(t?`${t}-${r}`:r)}return function(e,t="mui"){let[r,n]=m.useState(e),i=e||r;return m.useEffect(()=>{null==r&&(ev+=1,n(`${t}-${ev}`))},[r,t]),i}(e,t)}let ew="u">typeof document?m.useLayoutEffect:()=>{},eE=[];function ek(e){let t=(t,r)=>{let n,o=eo(e_).current;try{for(let e of(i=o,eE))e.before(o);for(let i of(n=e(t,r),eE))i.after(o);o.didInitialize=!0}finally{i=void 0}return n};return t.displayName=e.displayName||e.name,t}function e_(){return{didInitialize:!1}}function ej(){let e=new Map;return{emit(t,r){e.get(t)?.forEach(e=>e(r))},on(t,r){e.has(t)||e.set(t,new Set),e.get(t).add(r)},off(t,r){e.get(t)?.delete(r)}}}class eS{nodesRef={current:[]};events=ej();addNode(e){this.nodesRef.current.push(e)}removeNode(e){let t=this.nodesRef.current.findIndex(t=>t===e);-1!==t&&this.nodesRef.current.splice(t,1)}}let eO=m.createContext(null),eT=m.createContext(null),eP=()=>m.useContext(eO)?.id||null,eN=e=>{let t=m.useContext(eT);return e??t};function eA(e){let t=ex(),r=eN(e),n=eP();return ew(()=>{if(!t)return;let e={id:t,parentId:n};return r?.addNode(e),()=>{r?.removeNode(e)}},[r,t,n]),t}function eC(e){let{children:t,id:r}=e,n=eP();return(0,f.jsx)(eO.Provider,{value:m.useMemo(()=>({id:r,parentId:n}),[r,n]),children:t})}function eI(e){let{children:t,externalTree:r}=e,n=eo(()=>r??new eS).current;return(0,f.jsx)(eT.Provider,{value:n,children:t})}function eq(){return"u">typeof window}function eR(e){return eL(e)?(e.nodeName||"").toLowerCase():"#document"}function eF(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function eD(e){var t;return null==(t=(eL(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function eL(e){return!!eq()&&(e instanceof Node||e instanceof eF(e).Node)}function eM(e){return!!eq()&&(e instanceof Element||e instanceof eF(e).Element)}function eU(e){return!!eq()&&(e instanceof HTMLElement||e instanceof eF(e).HTMLElement)}function eB(e){return!(!eq()||"u"<typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof eF(e).ShadowRoot)}function e$(e){let{overflow:t,overflowX:r,overflowY:n,display:i}=eY(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&"inline"!==i&&"contents"!==i}function eW(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}let ez=/transform|translate|scale|rotate|perspective|filter/,eK=/paint|layout|strict|content/,eG=e=>!!e&&"none"!==e;function eQ(e){let t=eM(e)?eY(e):e;return eG(t.transform)||eG(t.translate)||eG(t.scale)||eG(t.rotate)||eG(t.perspective)||!eH()&&(eG(t.backdropFilter)||eG(t.filter))||ez.test(t.willChange||"")||eK.test(t.contain||"")}function eH(){return null==n&&(n="u">typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),n}function eV(e){return/^(html|body|#document)$/.test(eR(e))}function eY(e){return eF(e).getComputedStyle(e)}function eX(e){return eM(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function eJ(e){if("html"===eR(e))return e;let t=e.assignedSlot||e.parentNode||eB(e)&&e.host||eD(e);return eB(t)?t.host:t}function eZ(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);let i=function e(t){let r=eJ(t);return eV(r)?(t.ownerDocument||t).body:eU(r)&&e$(r)?r:e(r)}(e),o=i===(null==(n=e.ownerDocument)?void 0:n.body),s=eF(i);if(!o)return t.concat(i,eZ(i,[],r));{let e=e0(s);
281return t.concat(s,s.visualViewport||[],e$(i)?i:[],e&&r?eZ(e):[])}}function e0(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var e1=r(7133),e2=r(7203);let e5=parseInt(m.version,10),e3=e5>=19?function(e,t,r,n,o){let s,a=i;if(!a){let i;return i=m.useCallback(()=>t(e.getSnapshot(),r,n,o),[e,t,r,n,o]),(0,e1.useSyncExternalStore)(e.subscribe,i,i)}let l=a.syncIndex;return a.syncIndex+=1,a.didInitialize?(s=a.syncHooks[l]).store===e&&s.selector===t&&Object.is(s.a1,r)&&Object.is(s.a2,n)&&Object.is(s.a3,o)||(s.store!==e&&(a.didChangeStore=!0),s.store=e,s.selector=t,s.a1=r,s.a2=n,s.a3=o,s.value=t(e.getSnapshot(),r,n,o)):(s={store:e,selector:t,a1:r,a2:n,a3:o,value:t(e.getSnapshot(),r,n,o)},a.syncHooks.push(s)),s.value}:function(e,t,r,n,i){return(0,e2.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,r,n,i))};eE.push({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let r=0;r<e.syncHooks.length;r+=1){let n=e.syncHooks[r],i=n.selector(n.store.state,n.a1,n.a2,n.a3);Object.is(n.value,i)||(t=!0,n.value=i)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let r=new Set;for(let t of e.syncHooks)r.add(t.store);let n=[];for(let e of r)n.push(e.subscribe(t));return()=>{for(let e of n)e()}}),(0,e1.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});class e4{constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){if(this.state===e)return;this.state=e,this.updateTick+=1;let t=this.updateTick;for(let r of this.listeners){if(t!==this.updateTick)return;r(e)}}update(e){for(let t in e)if(!Object.is(this.state[t],e[t]))return void this.setState({...this.state,...e})}set(e,t){Object.is(this.state[e],t)||this.setState({...this.state,[e]:t})}notifyAll(){let e={...this.state};this.setState(e)}use(e,t,r,n){return e3(this,e,t,r,n)}}class e6 extends e4{constructor(e,t={},r){super(e),this.context=t,this.selectors=r}useSyncedValue(e,t){m.useDebugValue(e);let r=this;ew(()=>{r.state[e]!==t&&r.set(e,t)},[r,e,t])}useSyncedValueWithCleanup(e,t){let r=this;ew(()=>(r.state[e]!==t&&r.set(e,t),()=>{r.set(e,void 0)}),[r,e,t])}useSyncedValues(e){let t=this;ew(()=>{t.update(e)},[t,...Object.values(e)])}useControlledProp(e,t){m.useDebugValue(e);let r=this,n=void 0!==t;ew(()=>{n&&!Object.is(r.state[e],t)&&r.setState({...r.state,[e]:t})},[r,e,t,n])}select(e,t,r,n){return(0,this.selectors[e])(this.state,t,r,n)}useState(e,t,r,n){return m.useDebugValue(e),e3(this,this.selectors[e],t,r,n)}useContextCallback(e,t){m.useDebugValue(e);let r=em(t??es);this.context[e]=r}useStateSetter(e){let t=m.useRef(void 0);return void 0===t.current&&(t.current=t=>{this.set(e,t)}),t.current}observe(e,t){let r,n=(r="function"==typeof e?e:this.selectors[e])(this.state);return t(n,n,this),this.subscribe(e=>{let i=r(e);if(!Object.is(n,i)){let e=n;n=i,t(i,e,this)}})}}let{userAgent:e8,platform:e9,maxTouchPoints:e7}="u"<typeof navigator?{userAgent:"",platform:"",maxTouchPoints:0}:{userAgent:navigator.userAgent,platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??0},te=e8.toLowerCase(),tt=e9.toLowerCase(),tr=/^i(os$|p)/.test(tt)||"macintel"===tt&&e7>1,tn="android",ti=tt===tn||te.includes(tn),to=!tr&&tt.startsWith("mac");tt.startsWith("win"),ti||/^(linux|chrome os)/.test(tt);let ts=/jsdom|happydom/.test(te);function ta(e){e.preventDefault(),e.stopPropagation()}function tl(e){return""===e.pointerType&&!!e.isTrusted||(ti&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function tc(e){return!ts&&(!ti&&0===e.width&&0===e.height||ti&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)}function tu(e,t){let r=["mouse","pen"];return t||r.push("",void 0),r.includes(e)}let td={open:e=>e.open,transitionStatus:e=>e.transitionStatus,domReferenceElement:e=>e.domReferenceElement,referenceElement:e=>e.positionReference??e.referenceElement,floatingElement:e=>e.floatingElement,floatingId:e=>e.floatingId};class tp extends e6{constructor(e){const{syncOnly:t,nested:r,onOpenChange:n,triggerElements:i,...o}=e;super({...o,positionReference:o.referenceElement,domReferenceElement:o.referenceElement},{onOpenChange:n,dataRef:{current:{}},events:ej(),nested:r,triggerElements:i},td),this.syncOnly=t}syncOpenEvent=(e,t)=>
281{let r;e&&this.state.open&&(null==t||"click"!==(r=t.type)&&"mousedown"!==r&&"keydown"!==r&&"keyup"!==r)||(this.context.dataRef.current.openEvent=e?t:void 0)};dispatchOpenChange=(e,t)=>{this.syncOpenEvent(e,t.event);let r={open:e,reason:t.reason,nativeEvent:t.event,nested:this.context.nested,triggerElement:t.trigger};this.context.events.emit("openchange",r)};setOpen=(e,t)=>{this.syncOnly||this.dispatchOpenChange(e,t),this.context.onOpenChange?.(e,t)}}function tf(e,t,r,n){return e.addEventListener(t,r,n),()=>{e.removeEventListener(t,r,n)}}function th(...e){return()=>{for(let t=0;t<e.length;t+=1){let r=e[t];r&&r()}}}function tm(e){return e?.ownerDocument||document}let tg="u">typeof CSS&&!!CSS.supports?.("-webkit-backdrop-filter:none");function ty(e,t,r,n){let i=!1,o=!1,s=n??el;return{reason:e,event:t??new Event("base-ui"),cancel(){i=!0},allowPropagation(){o=!0},get isCanceled(){return i},get isPropagationAllowed(){return o},trigger:r,...s}}tg||te.includes("firefox"),tg||te.includes("chrom");let tv="trigger-press",tb="trigger-hover",tx="trigger-focus",tw="outside-press",tE="item-press",tk="focus-out",t_="escape-key",tj="list-navigation",tS="sibling-open";function tO(e){return`data-base-ui-${e}`}let tT="data-base-ui-focusable",tP="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])",tN="ArrowLeft",tA="ArrowRight",tC="ArrowUp",tI="ArrowDown";function tq(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function tR(e,t){if(!e||!t)return!1;let r=t.getRootNode?.();if(e.contains(t))return!0;if(r&&eB(r)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function tF(e){return"composedPath"in e?e.composedPath()[0]:e.target}function tD(e,t){if(!eM(e))return!1;if(t.hasElement(e))return!e.hasAttribute("data-trigger-disabled");for(let[,r]of t.entries())if(tR(r,e))return!r.hasAttribute("data-trigger-disabled");return!1}function tL(e,t){return null!=t&&("composedPath"in e?e.composedPath().includes(t):null!=e.target&&t.contains(e.target))}function tM(e){return eU(e)&&e.matches(tP)}function tU(e){return!!e&&"combobox"===e.getAttribute("role")&&tM(e)}function tB(e){return e?e.hasAttribute(tT)?e:e.querySelector(`[${tT}]`)||e:null}function t$(e,t,r=!0){return e.filter(e=>e.parentId===t).flatMap(t=>[...!r||t.context?.open?[t]:[],...t$(e,t.id,r)])}function tW(e,t){let r=[],n=e.find(e=>e.id===t)?.parentId;for(;n;){let t=e.find(e=>e.id===n);n=t?.parentId,t&&(r=r.concat(t))}return r}function tz(){return!1}class tK{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;let t=this.callbacks,r=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,r>0)for(let r=0;r<t.length;r+=1)t[r]?.(e)};request(e){let t=this.nextId;return this.nextId+=1,this.callbacks.push(e),this.callbacksCount+=1,this.isScheduled||(requestAnimationFrame(this.tick),this.isScheduled=!0),t}cancel(e){let t=e-this.startId;t<0||t>=this.callbacks.length||(this.callbacks[t]=null,this.callbacksCount-=1)}}let tG=new tK;class tQ{static create(){return new tQ}static request(e){return tG.request(e)}static cancel(e){return tG.cancel(e)}currentId=null;request(e){this.cancel(),this.currentId=tG.request(()=>{this.currentId=null,e()})}cancel=()=>{null!==this.currentId&&(tG.cancel(this.currentId),this.currentId=null)};disposeEffect=()=>this.cancel}function tH(){let e=eo(tQ.create).current;return ec(e.disposeEffect),e}function tV(e){let t=eo(tY,e).current;return t.next=e,ew(t.effect),t}function tY(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}function tX(e,t){return t<0||t>=e.length}function tJ(e,t){return t0(e.current,{disabledIndices:t})}function tZ(e,t){return t0(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function t0(e,{startingIndex:t=-1,decrement:r=!1,disabledIndices:n,amount:i=1}={}){let o=t;do o+=r?-i:i;while(o>=0&&o<=e.length-1&&t1(e,o,n));return o}function t1(e,t,r){if("function"==typeof r?r(t):r?.includes(t)??!1)return!0;let n=e[t];return!!n&&(!!(!t2(n)||n.matches(":disabled"))||!r&&(n.hasAttribute("disabled")||"true"===n.getAttribute("aria-disabled")))}function t2(e,t=e?eY(e):null){var r;
281return!!e&&!!e.isConnected&&!!t&&"hidden"!==(r=t).visibility&&"collapse"!==r.visibility&&("function"==typeof e.checkVisibility?e.checkVisibility():"none"!==t.display&&"contents"!==t.display)}let t5=0;function t3(e,t={}){let{preventScroll:r=!1,sync:n=!1,shouldFocus:i}=t;function o(){(!i||i())&&e?.focus({preventScroll:r})}if(cancelAnimationFrame(t5),n)return o(),es;let s=requestAnimationFrame(o);return t5=s,()=>{t5===s&&(cancelAnimationFrame(s),t5=0)}}function t4(e){return tg&&0===e.movementX&&0===e.movementY}function t6(e,t,r){switch(e){case"vertical":return t;case"horizontal":return r;default:return t||r}}function t8(e,t){return t6(t,e===tC||e===tI,e===tN||e===tA)}function t9(e,t,r){return t6(t,e===tI,r?e===tN:e===tA)||"Enter"===e||" "===e||""===e}let t7=function(e,...t){let r=new URL("https://base-ui.com/production-error");return r.searchParams.set("code",e.toString()),t.forEach(e=>r.searchParams.append("args[]",e)),`Base UI error #${e}; visit ${r} for the full message.`},re=m.createContext(void 0);function rt(e){let t=m.useContext(re);if(void 0===t&&!e)throw Error(t7(36));return t}let rr=m.createContext(null);function rn(e){let t=m.useContext(rr);if(null===t&&!e)throw Error(t7(5));return t}let ri={style:{transition:"none"}},ro={fallbackAxisSide:"none"},rs={fallbackAxisSide:"end"},ra={clipPath:"inset(50%)",position:"fixed",top:0,left:0},rl=m.createContext(void 0);function rc(){let e=m.useContext(rl);return e?.direction??"ltr"}let ru=m.createContext(void 0);function rd(e=!0){let t=m.useContext(ru);if(void 0===t&&!e)throw Error(t7(25));return t}function rp(e,t){return e&&!t?e:!e&&t?t:e||t?{...e,...t}:void 0}let rf={};function rh(e,t,r,n,i){if(!r&&!n&&!i&&!e)return rm(t);let o=rm(e);return t&&(o=rg(o,t)),r&&(o=rg(o,r)),n&&(o=rg(o,n)),i&&(o=rg(o,i)),o}function rm(e){return rv(e)?{...rb(e,rf)}:function(e){let t={...e};for(let e in t){let r=t[e];ry(e,r)&&(t[e]=rx(r))}return t}(e)}function rg(e,t){return rv(t)?rb(t,e):function(e,t){if(!t)return e;for(let r in t){let n=t[r];switch(r){case"style":e[r]=rp(e.style,n);break;case"className":e[r]=rE(e.className,n);break;default:ry(r,n)?e[r]=function(e,t){return t?e?(...r)=>{let n=r[0];if(rk(n)){rw(n);let i=t(...r);return n.baseUIHandlerPrevented||e?.(...r),i}let i=t(...r);return e?.(...r),i}:rx(t):e}(e[r],n):e[r]=n}}return e}(e,t)}function ry(e,t){let r=e.charCodeAt(0),n=e.charCodeAt(1),i=e.charCodeAt(2);return 111===r&&110===n&&i>=65&&i<=90&&("function"==typeof t||void 0===t)}function rv(e){return"function"==typeof e}function rb(e,t){return rv(e)?e(t):e??rf}function rx(e){return e?(...t)=>{let r=t[0];return rk(r)&&rw(r),e(...t)}:e}function rw(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function rE(e,t){return t?e?t+" "+e:t:e}function rk(e){return null!=e&&"object"==typeof e&&"nativeEvent"in e}class r_{constructor(){this.idMap=new Map}add(e,t){this.idMap.set(e,t)}delete(e){this.idMap.delete(e)}hasElement(e){for(let t of this.idMap.values())if(t===e)return!0;return!1}hasMatchingElement(e){for(let t of this.idMap.values())if(e(t))return!0;return!1}getById(e){return this.idMap.get(e)}entries(){return this.idMap.entries()}elements(){return this.idMap.values()}get size(){return this.idMap.size}}let rj=e=>e.triggerIdProp??e.activeTriggerId,rS=e=>e.openProp??e.open,rO=e=>(e.popupElement?.id??e.floatingId)||void 0;function rT(e,t){return void 0!==t&&rS(e)&&rj(e)===t}let rP={open:rS,mounted:e=>e.mounted,transitionStatus:e=>e.transitionStatus,floatingRootContext:e=>e.floatingRootContext,triggerCount:e=>e.triggerCount,preventUnmountingOnClose:e=>e.preventUnmountingOnClose,payload:e=>e.payload,activeTriggerId:rj,activeTriggerElement:e=>e.mounted?e.activeTriggerElement:null,popupId:rO,isTriggerActive:(e,t)=>void 0!==t&&rj(e)===t,isOpenedByTrigger:(e,t)=>rT(e,t),isMountedByTrigger:(e,t)=>void 0!==t&&rj(e)===t&&e.mounted,triggerProps:(e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps,triggerPopupId:(e,t)=>rT(e,t)||void 0!==t&&rS(e)&&null==rj(e)&&1===e.triggerCount?rO(e):void 0,popupProps:e=>e.popupProps,popupElement:e=>e.popupElement,positionerElement:e=>e.positionerElement,disabled:e=>"menubar"===e.parent.type&&e.parent.context.disabled||e.disabled,modal:e=>(void 0===e.parent.type||"context-menu"===e.parent.type)&&(e.modal??!0),openMethod:e=>e.openMethod,allowMouseEnter:e=>e.allowMouseEnter,highlightItemOnHover:e=>e.highlightItemOnHover,parent:e=>e.parent,rootId:e=>"menu"===e.parent.type?e.parent.store.select("rootId"):void 0!==e.parent.type?e.parent.context.rootId:e.rootId,activeIndex:e=>e.activeIndex,isActive:(e,t)=>
281e.activeIndex===t,hoverEnabled:e=>e.hoverEnabled,instantType:e=>e.instantType,lastOpenChangeReason:e=>e.openChangeReason,floatingTreeRoot:e=>"menu"===e.parent.type?e.parent.store.select("floatingTreeRoot"):e.floatingTreeRoot,floatingNodeId:e=>e.floatingNodeId,floatingParentNodeId:e=>e.floatingParentNodeId,itemProps:e=>e.itemProps,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin,keyboardEventRelay:e=>e.keyboardEventRelay?e.keyboardEventRelay:"menu"===e.parent.type?e.parent.store.select("keyboardEventRelay"):void 0};class rN extends e6{constructor(e){super({...{...{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:new tp({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:new r_,floatingId:void 0,syncOnly:!1,nested:!1,onOpenChange:void 0}),floatingId:void 0,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:el,inactiveTriggerProps:el,popupProps:el},disabled:!1,modal:!0,openMethod:null,allowMouseEnter:!1,highlightItemOnHover:!0,parent:{type:void 0},rootId:void 0,activeIndex:null,hoverEnabled:!0,instantType:void 0,openChangeReason:null,floatingTreeRoot:new eS,floatingNodeId:void 0,floatingParentNodeId:null,itemProps:el,keyboardEventRelay:void 0,closeDelay:0,adaptiveOrigin:void 0},...e},{positionerRef:m.createRef(),popupRef:m.createRef(),typingRef:{current:!1},itemDomElements:{current:[]},itemLabels:{current:[]},allowMouseUpTriggerRef:{current:!1},triggerFocusTargetRef:m.createRef(),beforeContentFocusGuardRef:m.createRef(),onOpenChangeComplete:void 0,triggerElements:new r_},rP),this.unsubscribeParentListener=this.observe("parent",e=>{if(this.unsubscribeParentListener?.(),"menu"===e.type){let t=e.store.select("rootId"),r=e.store.select("floatingTreeRoot"),n=e.store.select("keyboardEventRelay");this.unsubscribeParentListener=e.store.subscribe(()=>{let i=e.store.select("rootId"),o=e.store.select("floatingTreeRoot"),s=e.store.select("keyboardEventRelay");(t!==i||r!==o||n!==s)&&(t=i,r=o,n=s,this.notifyAll())}),this.context.allowMouseUpTriggerRef=e.store.context.allowMouseUpTriggerRef;return}void 0!==e.type&&(this.context.allowMouseUpTriggerRef=e.context.allowMouseUpTriggerRef),this.unsubscribeParentListener=null})}setOpen(e,t){this.state.floatingRootContext.context.events.emit("setOpen",{open:e,eventDetails:t})}unsubscribeParentListener=null}function rA(e,t=!1,r=!1){let[n,i]=m.useState(e&&t?"idle":void 0),[o,s]=m.useState(e);return e&&!o&&(s(!0),i("starting")),e||!o||"ending"===n||r||i("ending"),e||o||"ending"!==n||i(void 0),ew(()=>{if(!e&&o&&"ending"!==n&&r){let e=tQ.request(()=>{i("ending")});return()=>{tQ.cancel(e)}}},[e,o,n,r]),ew(()=>{if(!e||t)return;let r=tQ.request(()=>{i(void 0)});return()=>{tQ.cancel(r)}},[t,e]),ew(()=>{if(!e||!t)return;e&&o&&"idle"!==n&&i("starting");let r=tQ.request(()=>{i("idle")});return()=>{tQ.cancel(r)}},[t,e,o,n]),{mounted:o,setMounted:s,transitionStatus:n}}function rC(e){return null==e?e:"current"in e?e.current:e}function rI(e,t=!1){let r=tH();return em((n,i=null)=>{r.cancel();let o=rC(e);if(null==o)return;let s=()=>{h.flushSync(n)};if("function"!=typeof o.getAnimations||globalThis.BASE_UI_ANIMATIONS_DISABLED)return void n();function a(){Promise.all(o.getAnimations().map(e=>e.finished)).then(()=>{i?.aborted||s()},()=>{i?.aborted||(o.getAnimations().some(e=>e.pending||"finished"!==e.playState)?a():s())})}if(t){let e="data-starting-style";if(!o.hasAttribute(e))return void r.request(a);let t=new MutationObserver(()=>{o.hasAttribute(e)||(t.disconnect(),a())});return t.observe(o,{attributes:!0,attributeFilter:[e]}),void i?.addEventListener("abort",()=>t.disconnect(),{once:!0})}r.request(a)})}function rq(e){let{enabled:t=!0,open:r,ref:n,onComplete:i}=e,o=em(i),s=rI(n,r);m.useEffect(()=>{if(!t)return;let e=new AbortController;return s(o,e.signal),()=>{e.abort()}},[t,r,o,s])}let rR={tabIndex:-1,[tT]:""};function rF({handle:e,store:t}){return ew(()=>e.attachStore(t),[e,t]),null}
281let rD=m.createContext(void 0),rL=ek(function(e){var t;let r,{children:n,open:i,onOpenChange:o,onOpenChangeComplete:s,defaultOpen:a=!1,disabled:l=!1,modal:c,loopFocus:u=!0,orientation:d="vertical",actionsRef:p,closeParentOnEsc:h=!1,handle:g,triggerId:y,defaultTriggerId:v=null,highlightItemOnHover:b=!0}=e,x=rd(!0),w=rt(!0),E=rn(!0),k=m.useContext(rD),_=m.useMemo(()=>k&&w?{type:"menu",store:w.store}:E?{type:"menubar",context:E}:x&&!w?{type:"context-menu",context:x}:{type:void 0},[x,w,E,k]),j=(t={open:a,openProp:i,activeTriggerId:v,triggerIdProp:y,parent:_},eo(()=>new rN(t)).current);j.useControlledProp("openProp",i),j.useControlledProp("triggerIdProp",y),j.useContextCallback("onOpenChangeComplete",s);let S=ex(),O=ex(),T=j.useState("floatingTreeRoot"),P=eA(T),N=eP(),A=j.useState("open"),C=j.useState("activeTriggerElement"),I=j.useState("positionerElement"),q=j.useState("hoverEnabled"),R=j.useState("disabled"),F=j.useState("lastOpenChangeReason"),D=j.useState("parent"),L=j.useState("activeIndex"),M=j.useState("payload"),U=j.useState("floatingParentNodeId"),B=m.useRef(null),$=m.useRef("context-menu"!==D.type),W=ed(),z=m.useRef(!0),K=ed(),G=null!=U,{openMethod:Q,triggerProps:H}=function(e){var t;let r,n,[i,o]=m.useState(null),s=function(e,t){var r;let n,i,{onClick:o,onPointerDown:s}=(r=em((r,n)=>{("function"==typeof e?e():e)||t(n||(tr?"touch":""))}),n=m.useRef(""),i=m.useCallback(e=>{e.defaultPrevented||(n.current=e.pointerType,r(e,e.pointerType))},[r]),{onClick:m.useCallback(e=>{0===e.detail?r(e,"keyboard"):("pointerType"in e?r(e,e.pointerType):r(e,n.current),n.current="")},[r]),onPointerDown:i});return m.useMemo(()=>({onClick:o,onPointerDown:s}),[o,s])}(e,o);return t=t=>{t&&!e&&o(null)},r=m.useRef(e),ew(()=>{r.current!==e&&n(r.current),r.current=e},[e,n=em(t)]),m.useMemo(()=>({openMethod:i,triggerProps:s}),[i,s])}(A);j.useSyncedValues({disabled:l,highlightItemOnHover:b,modal:void 0===D.type?c:void 0,openMethod:Q,rootId:S}),function(e,t={}){let{closeOnActiveTriggerUnmount:r=!1}=t,n=m.useRef(null),i=e.useState("open"),o=e.useState("triggerCount"),s=e.useState("activeTriggerId"),a=e.useState("activeTriggerElement");ew(()=>{if(!i){n.current=null,0!==e.state.triggerCount&&e.set("triggerCount",0);return}let t=e.context.triggerElements.size,o={};e.state.triggerCount!==t&&(o.triggerCount=t);let s=e.select("activeTriggerId"),a=null;if(s){let t=e.context.triggerElements.getById(s);if(t)n.current=s,t!==e.state.activeTriggerElement&&(o.activeTriggerElement=t);else{for(let[t,r]of e.context.triggerElements.entries())if(r===e.state.activeTriggerElement){o.activeTriggerId=t,o.activeTriggerElement=r,n.current=t;break}void 0===o.activeTriggerId&&(n.current===s?a=s:n.current=null)}}else n.current=null;if(!a&&!s&&1===t){let t=e.context.triggerElements.entries().next();if(!t.done){let[e,r]=t.value;o.activeTriggerId=e,o.activeTriggerElement=r,n.current=e}}(void 0!==o.triggerCount||void 0!==o.activeTriggerId||void 0!==o.activeTriggerElement)&&e.update(o),a&&r&&queueMicrotask(()=>{if(e.select("open")&&e.select("activeTriggerId")===a&&!e.context.triggerElements.getById(a)){let t=ty("none");e.setOpen(!1,t),t.isCanceled||e.update({activeTriggerId:null,activeTriggerElement:null})}})},[i,e,o,s,a,r])}(j);let{forceUnmount:V}=function(e,t,r){let{mounted:n,setMounted:i,transitionStatus:o}=rA(e),s=t.useState("preventUnmountingOnClose"),a=!e&&s;t.useSyncedValues({mounted:n,transitionStatus:o,preventUnmountingOnClose:a});let l=em(()=>{i(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),r?.(),t.context.onOpenChangeComplete?.(!1)});return rq({enabled:n&&!e&&!a,open:e,ref:t.context.popupRef,onComplete(){e||l()}}),{forceUnmount:l,transitionStatus:o}}(A,j,()=>{j.set("allowMouseEnter",!1)});ew(()=>{x&&!w?j.update({parent:{type:"context-menu",context:x},floatingNodeId:P,floatingParentNodeId:N}):w&&j.update({floatingNodeId:P,floatingParentNodeId:N})},[x,w,P,N,j]),m.useEffect(()=>{if(A||(B.current=null),"context-menu"===D.type){if(!A){W.clear(),$.current=!1;return}W.start(500,()=>{$.current=!0})}},[W,A,D.type]),ew(()=>{A||q||j.set("hoverEnabled",!0)},[A,q,j]);let Y=em((e,t)=>{let r,n=t.reason;if(!e&&!j.select("open")||A===e&&t.trigger===C&&F===n)return;let i=(r=!1,t.preventUnmountOnClose=()=>{r=!0},()=>r);if(e||null!=t.trigger||(t.trigger=C??void 0),o?.(e,t),t.isCanceled)return;j.state.floatingRootContext.dispatchOpenChange(e,t);let s=t.event;if(!1===e&&s?.type==="click"&&"touch"===s.pointerType&&!z.current)return;e&&n===tx?(z.current=!1,K.start(300,()=>{z.current=!0})):(z.current=!0,K.clear());let a=(n===tv||n===tE)&&0===s.detail,l=!e&&(n===t_||null==n),c={open:e,openChangeReason:n};B.current=t.event,function(e,t,r,n=!1){t?e.preventUnmountingOnClose=!1:n&&(e.preventUnmountingOnClose=!0);let i=r?.id??null;(i||t)&&(e.activeTriggerId=i,e.activeTriggerElement=r??null)}(c,e,t.trigger,i()),j.update(c),"menubar"===D.type&&(n===tx||n===tk||n===tb||n===tj||n===tS)?j.set("instantType","group"):a||l?j.set("instantType",a?"click":"dismiss"):j.set("instantType",void 0)}),X=function(e){let{popupStore:t,treatPopupAsFloatingElement:r=!1,floatingRootContext:n,floatingId:i,nested:o,onOpenChange:s}=e,a=t.useState("open"),l=t.useState("activeTriggerElement"),c=t.useState(r?"popupElement":"positionerElement"),u=t.context.triggerElements,d=m.useRef(null);
281void 0===n&&null===d.current&&(d.current=new tp({open:a,transitionStatus:void 0,referenceElement:l,floatingElement:c,triggerElements:u,onOpenChange:s,floatingId:i,syncOnly:!0,nested:o}));let p=n??d.current;return t.useSyncedValue("floatingId",i),ew(()=>{let e={open:a,floatingId:i,referenceElement:l,floatingElement:c};eM(l)&&(e.domReferenceElement=l),p.state.positionReference===p.state.referenceElement&&(e.positionReference=l),p.update(e)},[a,i,l,c,p]),p.context.onOpenChange=s,p.context.nested=o,p}({popupStore:j,floatingId:O,nested:null!=N,onOpenChange:Y}),J=X.context.events;ew(()=>{let e=({open:e,eventDetails:t})=>Y(e,t);return J.on("setOpen",e),()=>{J?.off("setOpen",e)}},[J,Y]);let Z=m.useCallback(()=>{j.setOpen(!1,ty("imperative-action"))},[j]);m.useImperativeHandle(p,()=>({unmount:V,close:Z}),[V,Z]),"context-menu"===D.type&&(r=D.context),m.useImperativeHandle(r?.positionerRef,()=>I,[I]),m.useImperativeHandle(r?.actionsRef,()=>({setOpen:Y}),[Y]);let ee=function(e,t={}){let{enabled:r=!0,escapeKey:n=!0,outsidePress:i=!0,outsidePressEvent:o="sloppy",referencePress:s=tz,bubbles:a,externalTree:l}=t,c="rootStore"in e?e.rootStore:e,u=c.useState("open"),d=c.useState("floatingElement"),{dataRef:p}=c.context,f=eN(l),h=em("function"==typeof i?i:()=>!1),g="function"==typeof i?h:i,y=!1!==g,v=em(()=>o),{escapeKey:b,outsidePress:x}={escapeKey:"boolean"==typeof a?a:a?.escapeKey??!1,outsidePress:"boolean"==typeof a?a:a?.outsidePress??!0},w=m.useRef(!1),E=m.useRef(!1),k=m.useRef(!1),_=m.useRef(!1),j=m.useRef(""),S=m.useRef(null),O=ed(),T=ed(),P=em(()=>{T.clear(),p.current.insideReactTree=!1}),N=em(e=>{let t=p.current.floatingContext?.nodeId;return(f?t$(f.nodesRef.current,t):[]).some(t=>t.context?.open&&!t.context.dataRef.current[e])}),A=em(e=>tL(e,c.select("floatingElement"))||tL(e,c.select("domReferenceElement"))),C=em(e=>{s()&&c.setOpen(!1,ty(tv,e.nativeEvent))}),I=em(e=>{if(!u||!r||!n||"Escape"!==e.key||_.current||!b&&N("__escapeKeyBubbles"))return;let t=ty(t_,"nativeEvent"in e?e.nativeEvent:e);c.setOpen(!1,t),t.isCanceled||e.preventDefault(),b||t.isPropagationAllowed||e.stopPropagation()}),q=em(()=>{p.current.insideReactTree=!0,T.start(0,P)}),R=em(e=>{if(!u||!r||0!==e.button)return;let t=tF(e.nativeEvent);tR(c.select("floatingElement"),t)&&(w.current||(w.current=!0,E.current=!1))}),F=em(e=>{!u||!r||(e.defaultPrevented||e.nativeEvent.defaultPrevented)&&w.current&&(E.current=!0)});m.useEffect(()=>{if(!u||!r)return P;p.current.__escapeKeyBubbles=b,p.current.__outsidePressBubbles=x;let e=new eu,t=new eu;function i(){k.current=!0,t.start(0,()=>{k.current=!1})}function o(){w.current=!1,E.current=!1}function s(){let e=j.current,t=v(),r="function"==typeof t?t():t;return"string"==typeof r?r:r["pen"!==e&&e?e:"mouse"]}function a(e){let t=p.current.floatingContext?.nodeId,r=f&&t$(f.nodesRef.current,t).some(t=>tL(e,t.context?.elements.floating));return A(e)||r}function l(e){let r;if("intentional"===(r=s())&&"click"!==e.type||"sloppy"===r&&"click"===e.type){"click"===e.type||A(e)||(t.clear(),k.current=!1),P();return}if(p.current.insideReactTree)return void P();let n=tF(e),i=`[${tO("inert")}]`,o=eM(n)?n.getRootNode():null,l=Array.from((eB(o)?o:tm(c.select("floatingElement"))).querySelectorAll(i)),u=c.context.triggerElements;if(n&&(u.hasElement(n)||u.hasMatchingElement(e=>tR(e,n))))return;let d=eM(n)?n:null;for(;d&&!eV(d);){let e=eJ(d);if(eV(e)||!eM(e))break;d=e}if(!(l.length&&eM(n)&&!n.matches("html,body")&&!tR(n,c.select("floatingElement"))&&l.every(e=>!tR(d,e)))){if(eU(n)&&!("touches"in e)){let t=eV(n),r=eY(n),i=/auto|scroll/,o=t||i.test(r.overflowX),s=t||i.test(r.overflowY),a=o&&n.clientWidth>0&&n.scrollWidth>n.clientWidth,l=s&&n.clientHeight>0&&n.scrollHeight>n.clientHeight,c="rtl"===r.direction,u=l&&(c?e.offsetX<=n.offsetWidth-n.clientWidth:e.offsetX>n.clientWidth),d=a&&e.offsetY>n.clientHeight;if(u||d)return}if(!a(e)){if("intentional"===s()&&k.current){t.clear(),k.current=!1;return}"function"==typeof g&&!g(e)||N("__outsidePressBubbles")||(c.setOpen(!1,ty(tw,e)),P())}}}function h(e){if("sloppy"!==s()||!c.select("open")||!r||A(e))return;let t=e.touches[0];t&&(S.current={startTime:Date.now(),startX:t.clientX,startY:t.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},O.start(1e3,()=>{S.current&&(S.current.dismissOnTouchEnd=!1,S.current.dismissOnMouseDown=!1)}))}function m(e,t){let r=tF(e);if(!r)return;let n=tf(r,e.type,()=>{t(e),n()})}function T(e){O.clear(),"pointerdown"===e.type&&(j.current=e.pointerType),("mousedown"!==e.type||!S.current||S.current.dismissOnMouseDown)&&m(e,e=>{if("pointerdown"===e.type)"sloppy"!==s()||"touch"===e.pointerType||!c.select("open")||!r||A(e)||l(e);else l(e)})}function C(e){if(!w.current)return;let r=E.current;if(o(),"intentional"===s()){if("pointercancel"===e.type){r&&i();return}a(e)||(r?i():("function"!=typeof g||g(e))&&(t.clear(),k.current=!0,P()))}}function q(e){if("sloppy"!==s()||!S.current||A(e))return;let t=e.touches[0];if(!t)return;let r=Math.abs(t.clientX-S.current.startX),n=Math.abs(t.clientY-S.current.startY),i=Math.sqrt(r*r+n*n);i>5&&(S.current.dismissOnTouchEnd=!0),i>10&&(l(e),O.clear(),S.current=null)}function R(e){"sloppy"!==s()||!S.current||A(e)||(S.current.dismissOnTouchEnd&&l(e),O.clear(),S.current=null)}let F=tm(d),D=th(n&&th(tf(F,"keydown",I),tf(F,"compositionstart",function(){e.clear(),_.current=!0}),tf(F,"compositionend",function(){e.start(5*!!tg,()=>{_.current=!1})}
281)),y&&th(tf(F,"click",T,!0),tf(F,"pointerdown",T,!0),tf(F,"pointerup",C,!0),tf(F,"pointercancel",C,!0),tf(F,"mousedown",T,!0),tf(F,"mouseup",C,!0),tf(F,"touchstart",function(e){j.current="touch",m(e,h)},!0),tf(F,"touchmove",function(e){m(e,q)},!0),tf(F,"touchend",function(e){m(e,R)},!0)));return()=>{D(),e.clear(),t.clear(),o(),k.current=!1,P()}},[p,d,n,y,g,u,r,b,x,I,P,v,N,A,f,c,O]);let D=m.useMemo(()=>({onKeyDown:I,onPointerDown:C,onClick:C}),[I,C]),L=m.useMemo(()=>({onKeyDown:I,onPointerDown:F,onMouseDown:F,onClickCapture:q,onMouseDownCapture(e){q(),R(e)},onPointerDownCapture(e){q(),R(e)},onMouseUpCapture:q,onTouchEndCapture:q,onTouchMoveCapture:q}),[I,q,R,F]);return m.useMemo(()=>r?{reference:D,floating:L,trigger:D}:{},[r,D,L])}(X,{enabled:!R,bubbles:{escapeKey:h&&"menu"===D.type},outsidePress:()=>"context-menu"!==D.type||B.current?.type==="contextmenu"||$.current,externalTree:G?T:void 0}),et=rc(),er=m.useCallback(e=>{j.select("activeIndex")!==e&&j.set("activeIndex",e)},[j]),en=function(e,t){let{listRef:r,activeIndex:n,onNavigate:i=()=>{},enabled:o=!0,selectedIndex:s=null,allowEscape:a=!1,loopFocus:l=!1,nested:c=!1,rtl:u=!1,virtual:d=!1,focusItemOnOpen:p="auto",focusItemOnHover:f=!0,openOnArrowKeyDown:h=!0,disabledIndices:g,orientation:y="vertical",parentOrientation:v,id:b,resetOnPointerLeave:x=!0,externalTree:w,grid:E}=t,k=null!=E,_="rootStore"in e?e.rootStore:e,j=_.useState("open"),S=_.useState("floatingElement"),O=_.useState("domReferenceElement"),T=_.context.dataRef,P=tB(S),N=tU(O),A=tV(P),C=eP(),I=eN(w),q=m.useRef(p),R=m.useRef(s??-1),F=m.useRef(null),D=m.useRef(!0),L=em(e=>{i(-1===R.current?null:R.current,e)}),M=m.useRef(!!S),U=m.useRef(j),B=m.useRef(!1),$=m.useRef(!1),W=m.useRef(null),z=tV(g),K=tV(j),G=tV(s),Q=tV(x),H=tH(),V=tH(),Y=em(()=>{function e(e){d?I?.events.emit("virtualfocus",e):W.current=t3(e,{sync:B.current,preventScroll:!0})}let t=r.current[R.current],n=$.current;t&&e(t),(B.current?e=>e():e=>H.request(e))(()=>{let i=r.current[R.current]||t;!i||(t||e(i),er&&(n||!D.current)&&i.scrollIntoView?.({block:"nearest",inline:"nearest"}))})});ew(()=>{T.current.orientation=y},[T,y]),ew(()=>{o&&(j&&S?(R.current=s??-1,q.current&&null!=s&&($.current=!0,L())):M.current&&(R.current=-1,L()))},[o,j,S,s,L]),ew(()=>{if(o){if(!j){B.current=!1;return}if(S)if(null==n){if(B.current=!1,null!=G.current)return;if(M.current&&(R.current=-1,Y()),(!U.current||!M.current)&&q.current&&(null!=F.current||!0===q.current&&null==F.current)){let e=0,t=()=>{null==r.current[0]?(e<2&&(e?e=>V.request(e):queueMicrotask)(t),e+=1):(R.current=null==F.current||t9(F.current,y,u)||c?tJ(r):tZ(r),F.current=null,L())};t()}}else tX(r.current,n)||(R.current=n,Y(),$.current=!1)}},[o,j,S,n,G,c,r,y,u,L,Y,V]),ew(()=>{if(!o||S||!I||d||!M.current)return;let e=I.nodesRef.current,t=e.find(e=>e.id===C)?.context?.elements.floating,r=tq(tm(O??t??null)),n=e.some(e=>e.context&&tR(e.context.elements.floating,r));t&&!n&&D.current&&t.focus({preventScroll:!0})},[o,S,O,I,C,d]),ew(()=>{U.current=j,M.current=!!S}),ew(()=>{j||(F.current=null,q.current=p)},[j,p]);let X=null!=n,J=em(e=>{if(!K.current)return;let t=r.current.indexOf(e.currentTarget);-1!==t&&(R.current!==t||n!==t)&&(R.current=t,L(e))}),Z=em(()=>v??I?.nodesRef.current.find(e=>e.id===C)?.context?.dataRef?.current.orientation),ee=em(()=>tJ(r,z.current)),et=em(e=>{var t;if(D.current=!1,B.current=!0,229===e.which||!K.current&&e.currentTarget===A.current)return;if(c&&(t=e.key,"both"===y||"horizontal"===y&&k?"Escape"===t:t6(y,u?t===tA:t===tN,t===tC))){t8(e.key,Z())||ta(e),_.setOpen(!1,ty(tj,e.nativeEvent)),eU(O)&&(d?I?.events.emit("virtualfocus",O):O.focus());return}let n=R.current,i=tJ(r,g),o=tZ(r,g);if(N||("Home"===e.key&&(ta(e),R.current=i,L(e)),"End"===e.key&&(ta(e),R.current=o,L(e))),null!=E){let t=E(e,R.current,r,y,l,u,g,i,o);if(null!=t&&(R.current=t,L(e)),"both"===y)return}if(t8(e.key,y)){if(ta(e),j&&!d&&tq(e.currentTarget.ownerDocument)===e.currentTarget){R.current=t9(e.key,y,u)?i:o,L(e);return}t9(e.key,y,u)?l?n>=o?a&&n!==r.current.length?R.current=-1:(B.current=!1,R.current=i):R.current=t0(r.current,{startingIndex:n,disabledIndices:g}):R.current=Math.min(o,t0(r.current,{startingIndex:n,disabledIndices:g})):l?n<=i?a&&-1!==n?R.current=r.current.length:(B.current=!1,R.current=o):R.current=t0(r.current,{startingIndex:n,decrement:!0,disabledIndices:g}):R.current=Math.max(i,t0(r.current,{startingIndex:n,decrement:!0,disabledIndices:g}
281)),tX(r.current,R.current)&&(R.current=-1),L(e)}}),er=m.useMemo(()=>({onFocus(e){B.current=!0,J(e)},onClick:({currentTarget:e})=>e.focus({preventScroll:!0}),onMouseMove(e){!t4(e)&&(B.current=!0,$.current=!1,f&&J(e))},onPointerLeave(e){if(!K.current||!D.current||"touch"===e.pointerType)return;B.current=!0;let t=e.relatedTarget;if(!(!f||r.current.includes(t))&&Q.current&&(W.current?.(),W.current=null,R.current=-1,L(e),!d)){let e=A.current,t=tq(tm(e));e&&tR(e,t)&&e.focus({preventScroll:!0})}}}),[J,K,A,f,r,L,Q,d]),en=m.useMemo(()=>d&&j&&X&&{"aria-activedescendant":`${b}-${n}`},[d,j,X,b,n]),ei=m.useMemo(()=>({"aria-orientation":"both"===y?void 0:y,...!N?en:{},onKeyDown(e){if("Tab"===e.key&&e.shiftKey&&j&&!d){let t=tF(e.nativeEvent);if(t&&!tR(A.current,t))return;ta(e),_.setOpen(!1,ty(tk,e.nativeEvent)),eU(O)&&O.focus();return}et(e)},onPointerMove(e){t4(e)||(D.current=!0)}}),[en,et,A,y,N,_,j,d,O]),eo=m.useMemo(()=>{function e(e){_.setOpen(!0,ty(tj,e.nativeEvent,e.currentTarget))}function t(e){"auto"===p&&tl(e.nativeEvent)&&(q.current=!d)}function r(e){q.current=p,"auto"===p&&tc(e.nativeEvent)&&(q.current=!0)}return{onKeyDown(t){var r;let n=_.select("open");D.current=!1;let i=t.key.startsWith("Arrow"),o=(r=t.key,t6(Z(),u?r===tN:r===tA,r===tI)),s=t8(t.key,y),a=(c?o:s)||"Enter"===t.key||""===t.key.trim();if(d&&n)return et(t);if(n||h||!i){if(a){let e=t8(t.key,Z());F.current=c&&e?null:t.key}if(c){o&&(ta(t),n?(R.current=ee(),L(t)):e(t));return}s&&(null!=G.current&&(R.current=G.current),ta(t),!n&&h?e(t):et(t),n&&L(t))}},onFocus(e){_.select("open")&&!d&&(R.current=-1,L(e))},onPointerDown:r,onPointerEnter:r,onMouseDown:t,onClick:t}},[et,p,ee,c,L,_,h,y,Z,u,G,d]),es=m.useMemo(()=>({...en,...eo}),[en,eo]);return m.useMemo(()=>o?{reference:es,floating:ei,item:er,trigger:eo}:{},[o,es,ei,eo,er])}(X,{enabled:!R,listRef:j.context.itemDomElements,activeIndex:L,nested:void 0!==D.type,loopFocus:u,orientation:d,parentOrientation:"menubar"===D.type?D.context.orientation:void 0,rtl:"rtl"===et,disabledIndices:ea,onNavigate:er,openOnArrowKeyDown:"context-menu"!==D.type,externalTree:G?T:void 0,focusItemOnHover:b}),ei=m.useCallback(e=>{j.context.typingRef.current=e},[j]),es=function(e,t){let{listRef:r,elementsRef:n,activeIndex:i,onMatch:o,disabledIndices:s,onTyping:a,enabled:l=!0,resetMs:c=750,selectedIndex:u=null}=t,d="rootStore"in e?e.rootStore:e,p=d.useState("open"),f=ed(),h=m.useRef(""),g=m.useRef(u??i??-1),y=m.useRef(null),v=em(e=>{function t(e){let t=n?.current[e];return!(t&&!t2(t)||t?.matches(":disabled"))&&(null==s||!t1(ea,e,s))}function l(e,r,n=0){if(0===e.length)return -1;let i=(n%e.length+e.length)%e.length,o=r.toLowerCase();for(let r=0;r<e.length;r+=1){let n=(i+r)%e.length,s=e[n];if(s?.toLowerCase().startsWith(o)&&t(n))return n}return -1}let d=r.current;if(h.current.length>0&&" "===e.key&&(ta(e),a?.(!0)),h.current.length>0&&" "!==h.current[0]&&-1===l(d,h.current)&&" "!==e.key&&a?.(!1),null==d||1!==e.key.length||e.ctrlKey||e.metaKey||e.altKey)return;p&&" "!==e.key&&(ta(e),a?.(!0));let m=""===h.current;m&&(g.current=u??i??-1),d.every((e,r)=>!(e&&t(r))||e[0]?.toLowerCase()!==e[1]?.toLowerCase())&&h.current===e.key&&(h.current="",g.current=y.current),h.current+=e.key,f.start(c,()=>{h.current="",g.current=y.current,a?.(!1)});let v=m?u??i??-1:g.current,b=l(d,h.current,(v??0)+1);-1!==b?(o?.(b),y.current=b):" "!==e.key&&(h.current="",a?.(!1))}),b=em(e=>{let t=e.relatedTarget,r=d.select("domReferenceElement"),n=d.select("floatingElement");tR(r,t)||tR(n,t)||(f.clear(),h.current="",g.current=y.current,a?.(!1))});ew(()=>{(p||null===u)&&(f.clear(),y.current=null,""!==h.current&&(h.current=""))},[p,u,f]);let x=m.useMemo(()=>({onKeyDown:v,onBlur:b}),[v,b]);return m.useMemo(()=>l?{reference:x,floating:x}:{},[l,x])}(X,{enabled:!R,listRef:j.context.itemLabels,elementsRef:j.context.itemDomElements,activeIndex:L,resetMs:500,onMatch:e=>{A&&e!==L&&j.set("activeIndex",e)},onTyping:ei}),ec=m.useMemo(()=>{let e=rh(es.reference,en.reference,ee.reference,{onMouseMove(){j.set("allowMouseEnter",!0)}},H);return e["aria-haspopup"]="menu",e["aria-expanded"]=A,e},[j,es.reference,en.reference,ee.reference,H,A]),ep=m.useMemo(()=>{let e=rh(en.trigger,ee.trigger,H);return e["aria-haspopup"]="menu",e["aria-expanded"]=!1,e},[en.trigger,ee.trigger,H]),ef=m.useMemo(()=>rh(rR,{id:O,role:"menu","aria-labelledby":C?.id,onMouseMove(){j.set("allowMouseEnter",!0),"menu"===D.type&&j.set("hoverEnabled",!1)},onClick(){j.select("hoverEnabled")&&j.set("hoverEnabled",!1)},onKeyDown(e){let t=j.select("keyboardEventRelay");t&&!e.isPropagationStopped()&&t(e)}},es.floating,en.floating,ee.floating),[C,O,D.type,j,es.floating,en.floating,ee.floating]),eh=en.item??el;j.useSyncedValues({floatingRootContext:X,activeTriggerProps:ec,inactiveTriggerProps:ep,popupProps:ef,itemProps:eh}),ew(()=>()=>{j.update({activeTriggerProps:el,inactiveTriggerProps:el,popupProps:el})},[j]);let eg=m.useMemo(()=>({store:j,parent:_}),[j,_]),ey=(0,f.jsxs)(re.Provider,{value:eg,children:[g&&(0,f.jsx)(rF,{handle:g,store:j}),"function"==typeof n?n({payload:M}):n]});return void 0===D.type||"context-menu"===D.type?(0,f.jsx)(eI,{externalTree:T,children:ey}):ey});class rM{constructor(){this.pointerType=void 0,this.interactedInside=!1,this.handler=void 0,this.blockMouseMove=!0,this.performedPointerEventsMutation=!1,this.pointerEventsScopeElement=null,this.pointerEventsReferenceElement=null,this.pointerEventsFloatingElement=null,this.restTimeoutPending=!1,this.openChangeTimeout=new eu,this.restTimeout=new eu,this.handleCloseOptions=void 0}static create(){return new rM}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose}let rU=new WeakMap;function rB(e){if(!e.performedPointerEventsMutation)return;let t=e.pointerEventsScopeElement;t&&rU.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty("pointer-events"),e.pointerEventsReferenceElement?.style.removeProperty("pointer-events"),e.pointerEventsFloatingElement?.style.removeProperty("pointer-events"),rU.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function r$(e,t){let{scopeElement:r,referenceElement:n,floatingElement:i}=t,o=rU.get(r);o&&o!==e&&rB(o),rB(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=r,e.pointerEventsReferenceElement=n,e.pointerEventsFloatingElement=i,rU.set(r,e),r.style.pointerEvents="none",n.style.pointerEvents="auto",i.style.pointerEvents="auto"}function rW(e){let t=e.context.dataRef.current,r=eo(()=>t.hoverInteractionState??rM.create()).current;return t.hoverInteractionState||(t.hoverInteractionState=r),ec(t.hoverInteractionState.disposeEffect),t.hoverInteractionState}function rz(e,t,r){let n=null==r||tu(r)?"function"==typeof e?e():e:0;return"number"==typeof n?n:n?.[t]}function rK(e){return"function"==typeof e?e():e}function rG(e,t){return t||"click"===e||"mousedown"===e}let rQ={current:null},rH=.1*.1;function rV(e,t,r,n,i,o){return n>=t!=o>=t&&e<=(i-r)*(t-n)/(o-n)+r}function rY(e,t,r,n,i,o,s,a,l,c){let u=!1;return rV(e,t,r,n,i,o)&&(u=!u),rV(e,t,i,o,s,a)&&(u=!u),rV(e,t,s,a,l,c)&&(u=!u),rV(e,t,l,c,r,n)&&(u=!u),u}
281function rX(e,t,r,n,i,o){let s=Math.min(r,i),a=Math.max(r,i),l=Math.min(n,o),c=Math.max(n,o);return e>=s&&e<=a&&t>=l&&t<=c}let rJ=to&&tg,rZ=((o={}).startingStyle="data-starting-style",o.endingStyle="data-ending-style",o),r0={"data-starting-style":""},r1={"data-ending-style":""},r2={transitionStatus:e=>"starting"===e?r0:"ending"===e?r1:null};(s={}).open="data-open",s.closed="data-closed",s[s.startingStyle=rZ.startingStyle]="startingStyle",s[s.endingStyle=rZ.endingStyle]="endingStyle",s.anchorHidden="data-anchor-hidden",s.side="data-side",s.align="data-align";let r5={"data-popup-open":"","data-pressed":""},r3={"data-open":""},r4={"data-closed":""},r6={"data-anchor-hidden":""},r8={open:e=>e?r5:null},r9={open:e=>e?r3:r4,anchorHidden:e=>e?r6:null},r7={...r9,...r2};function ne(e,t,r,n){var i,o,s,a,l;let c=eo(nt).current;return i=c,o=e,s=t,a=r,l=n,(i.refs[0]!==o||i.refs[1]!==s||i.refs[2]!==a||i.refs[3]!==l)&&nr(c,[e,t,r,n]),c.callback}function nt(){return{callback:null,cleanup:null,refs:[]}}function nr(e,t){if(e.refs=t,t.every(e=>null==e)){e.callback=null;return}e.callback=r=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),null!=r){let n=Array(t.length).fill(null);for(let e=0;e<t.length;e+=1){let i=t[e];if(null!=i)switch(typeof i){case"function":{let t=i(r);"function"==typeof t&&(n[e]=t);break}case"object":i.current=r}}e.cleanup=()=>{for(let e=0;e<t.length;e+=1){let r=t[e];if(null!=r)switch(typeof r){case"function":{let t=n[e];"function"==typeof t?t():r(null);break}case"object":r.current=null}}}}}}function nn(e){if(!m.isValidElement(e))return null;let t=e.props;return(e5>=19?t?.ref:e.ref)??null}function ni(e,t,r={}){let n=t.render,i=function(e,t={}){var r,n,i;let{className:o,style:s,render:a}=e,{state:l=el,ref:c,props:u,stateAttributesMapping:d,enabled:p=!0}=t,f=p?"function"==typeof o?o(l):o:void 0,h=p?"function"==typeof s?s(l):s:void 0,m=p?function(e,t){let r={};for(let n in e){let i=e[n];if(t?.hasOwnProperty(n)){let e=t[n](i);null!=e&&Object.assign(r,e);continue}!0===i?r[`data-${n.toLowerCase()}`]="":i&&(r[`data-${n.toLowerCase()}`]=i.toString())}return r}(l,d):el,g=p&&u?function(e){if(Array.isArray(e)){if(0===e.length)return rf;if(1===e.length)return rm(e[0]);let t=rm(e[0]);for(let r=1;r<e.length;r+=1)t=rg(t,e[r]);return t}return rh(void 0,e)}(u):void 0,y=p?rp(m,g)??{}:el;if("u">typeof document)if(p)if(Array.isArray(c)){let e;r=[y.ref,nn(a),...c],n=e=eo(nt).current,i=r,(n.refs.length!==i.length||n.refs.some((e,t)=>e!==i[t]))&&nr(e,r),y.ref=e.callback}else y.ref=ne(y.ref,nn(a),c);else ne(null,null);return p?(void 0!==f&&(y.className=rE(y.className,f)),void 0!==h&&(y.style=rp(y.style,h)),y):el}(t,r);return!1===r.enabled?null:function(e,t,r,n){if(t){if("function"==typeof t)return t(r,n);let e=rh(r,t.props);e.ref=r.ref;let i=t;return i?.$$typeof===no&&(i=m.Children.toArray(t)[0]),m.cloneElement(i,e)}if(e&&"string"==typeof e){var i,o;return i=e,o=r,"button"===i?(0,m.createElement)("button",{type:"button",...o,key:o.key}):"img"===i?(0,m.createElement)("img",{alt:"",...o,key:o.key}):m.createElement(i,o)}throw Error(t7(8))}(e,n,i,r.state??el)}let no=Symbol.for("react.lazy"),ns=m.createContext(void 0);function na(e=!1){let t=m.useContext(ns);if(void 0===t&&!e)throw Error(t7(16));return t}function nl(e,t,{detail:r=0}={}){e.dispatchEvent(new(eF(e)).PointerEvent("click",{bubbles:!0,cancelable:!0,composed:!0,detail:r,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,altKey:t.altKey,metaKey:t.metaKey}))}function nc(e={}){let{disabled:t=!1,focusableWhenDisabled:r,tabIndex:n=0,native:i=!0,composite:o}=e,s=m.useRef(null),a=na(!0),l=o??void 0!==a,{props:c}=function(e){let{focusableWhenDisabled:t,disabled:r,composite:n=!1,tabIndex:i=0,isNativeButton:o}=e,s=n&&!1!==t,a=n&&!1===t;return{props:m.useMemo(()=>{let e={onKeyDown(e){r&&t&&"Tab"!==e.key&&e.preventDefault()}};return n||(e.tabIndex=i,!o&&r&&(e.tabIndex=t?i:-1)),(o&&(t||s)||!o&&r)&&(e["aria-disabled"]=r),o&&(!t||a)&&(e.disabled=r),e},[n,r,t,s,a,o,i])}}({focusableWhenDisabled:r,disabled:t,composite:l,tabIndex:n,isNativeButton:i}),u=m.useCallback(()=>{let e=s.current;nu(e)&&l&&t&&void 0===c.disabled&&e.disabled&&(e.disabled=!1)},[t,c.disabled,l]);return ew(u,[u]),{getButtonProps:m.useCallback((e={})=>{let{onClick:r,onMouseDown:n,onKeyUp:o,onKeyDown:s,onPointerDown:a,...u}=e;return rh({onClick(e){t?e.preventDefault():r?.(e)},onMouseDown(e){t||n?.(e)},onKeyDown(e){var r;if(t||(rw(e),s?.(e),e.baseUIHandlerPrevented))return;let n=e.target===e.currentTarget,o=e.currentTarget,a=nu(o),c=!i&&eU(r=o)&&"A"===r.tagName&&!!r.href,u=n&&(i?a:!c),d="Enter"===e.key,p=" "===e.key,f=o.getAttribute("role"),h=f?.startsWith("menuitem")||"option"===f||"gridcell"===f;if(n&&l&&p){if(e.defaultPrevented&&h)return;e.preventDefault(),(!i||a)&&(e.preventBaseUIHandler(),nl(o,e));return}if(!u||i||!p&&!d){n&&c&&p&&e.preventDefault();return}!e.defaultPrevented&&(e.preventDefault(),d&&(e.preventBaseUIHandler(),nl(o,e)))},onKeyUp(e){t||((rw(e),o?.(e),e.target===e.currentTarget&&i&&l&&nu(e.currentTarget)&&" "===e.key)?e.preventDefault():!e.baseUIHandlerPrevented&&(e.target!==e.currentTarget||i||l||e.defaultPrevented||" "!==e.key||(e.preventBaseUIHandler(),nl(e.currentTarget,e))))},onPointerDown(e){t?e.preventDefault():a?.(e)}},i?{type:"button"}:{role:"button"},c,u)},[t,c,l,i]),buttonRef:em(e=>{s.current=e,u()})}}function nu(e){return eU(e)&&"BUTTON"===e.tagName}let nd=m.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},nextIndexRef:{current:0}});function np(e={}){let{guess:t,label:r,metadata:n,textRef:i,index:o}=e,{register:s,unregister:a,subscribeMapChange:l,nextIndexRef:c}=m.useContext(nd),u=m.useRef(-1),[d,p]=m.useState(null==o&&t?()=>
281{if(-1===u.current){let e=c.current;c.current+=1,u.current=e}return u.current}:-1),f=o??d,h=m.useRef(null),g=m.useCallback(e=>{let t=h.current;t&&a(t),h.current=e,e&&s(e,{metadata:n??null,index:o??null,label:r,textRef:i})},[o,s,a,n,r,i]);return ew(()=>{if(null==o)return l(e=>{let t=h.current?e.get(h.current)?.index:null;null!=t&&p(t)})},[o,l]),{ref:g,index:f}}function nf(e){let{render:t,className:r,style:n,state:i=el,props:o=ea,refs:s=ea,metadata:a,stateAttributesMapping:l,tag:c="div",...u}=e,{compositeProps:d,compositeRef:p}=function(e={}){let{highlightItemOnHover:t,highlightedIndex:r,onHighlightedIndexChange:n}=na(),{ref:i,index:o}=np(e),s=r===o,a=m.useRef(null),l=ne(i,a);return{compositeProps:{tabIndex:s?0:-1,onFocus(){n(o)},onMouseMove(){let e=a.current;if(!t||!e)return;let r=e.hasAttribute("disabled")||"true"===e.ariaDisabled;s||r||e.focus()}},compositeRef:l,index:o}}({metadata:a});return ni(c,e,{state:i,ref:[p,...s],props:[d,...o,u],stateAttributesMapping:l})}function nh(e){for(let t of Array.from(e.children))if("summary"===eR(t))return t;return null}function nm(e){let t=e?eR(e):"";return null!=e&&e.matches('a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]')&&("summary"!==t||null!=e.parentElement&&"details"===eR(e.parentElement)&&nh(e.parentElement)===e)&&("details"!==t||null==nh(e))&&("input"!==t||"hidden"!==e.type)}function ng(e){if(!nm(e)||!e.isConnected||e.matches(":disabled"))return!1;for(let t=e;t;t=function(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let r=e.getRootNode();return eB(r)?r.host:null}(t)){let r=t!==e,n="slot"===eR(t);if(t.hasAttribute("inert")||r&&"details"===eR(t)&&!t.open&&!function(e,t){let r=nh(t);return!!r&&(e===r||tR(r,e))}(e,t)||t.hasAttribute("hidden")||!n&&!function(e,t){let r=eY(e);return t?"none"!==r.display:t2(e,r)}(t,r))return!1}return!0}function ny(e){let t=e.tabIndex;if(t<0){let t=eR(e);if("details"===t||"audio"===t||"video"===t||eU(e)&&e.isContentEditable)return 0}return t}function nv(e){return"input"!==eR(e)?null:"radio"===e.type&&""!==e.name?e:null}function nb(e){if(eU(e)&&"slot"===eR(e)){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return eU(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function nx(e){return ng(e)&&ny(e)>=0}function nw(e){let t=[];return!function e(t,r){nb(t).forEach(t=>{nm(t)&&r.push(t),e(t,r)})}(e,t),t.filter(ng)}function nE(e){let t=nw(e);return t.filter(e=>ny(e)>=0&&function(e,t){let r=nv(e);if(!r)return!0;let n=t.find(e=>{let t=nv(e);return t?.name===r.name&&t.form===r.form&&t.checked});return n?n===r:t.find(e=>{let t=nv(e);return t?.name===r.name&&t.form===r.form})===r}(e,t))}function nk(e,t){let r=nE(e),n=r.length;if(0===n)return;let i=tq(tm(e)),o=r.indexOf(i);return r[-1===o?1===t?0:n-1:o+t]}function n_(e){return nk(tm(e).body,1)||e}function nj(e){return nk(tm(e).body,-1)||e}function nS(e,t){if(!e)return null;let r=nE(tm(e).body),n=r.length;if(0===n)return null;let i=r.indexOf(e);return -1===i?null:r[(i+t+n)%n]}function nO(e,t){let r=t||e.currentTarget,n=e.relatedTarget;return!n||!tR(r,n)}function nT(e){let t=[];!function e(t,r,n){nb(t).forEach(t=>{eU(t)&&t.matches(r)&&n.push(t),e(t,r,n)})}(e,"[data-tabindex]",t),t.forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")})}function nP(e){return ex(e,"base-ui")}let nN=to||tr,nA={clipPath:"inset(50%)",overflow:"hidden",whiteSpace:"nowrap",border:0,padding:0,width:1,height:1,margin:-1},nC={...nA,position:"fixed",top:0,left:0};({...nA,position:"absolute"});let nI=m.forwardRef(function(e,t){let[r,n]=m.useState();return ew(()=>{nN&&tg&&n("button")},[]),(0,f.jsx)("span",{...e,ref:t,style:nC,"aria-hidden":!r||void 0,tabIndex:0,role:r,"data-base-ui-focus-guard":""})}),nq=(a=function(e,t){var r;let n,i,o,s,a,l,c,u,d,p,{render:g,className:y,style:v,disabled:b=!1,nativeButton:x=!0,id:w,openOnHover:E,delay:k=100,closeDelay:_=0,handle:j,payload:S,...O}=e,T=rt(!0),P=(i=m.useCallback(e=>void 0===j?es:j.subscribeStore(e),[j]),o=m.useCallback(()=>void 0===j?void 0:j.store,[j]),(0,e1.useSyncExternalStore)(i,o,()=>j?.serverStore)??T?.store);if(!P)throw Error(t7(85));let N=nP(w),A=P.useState("isTriggerActive",N),C=P.useState("floatingRootContext"),I=P.useState("isOpenedByTrigger",N),q=P.useState("triggerPopupId",N),R=m.useRef(null),F=(n=rn(!0),m.useMemo(()=>n?{type:"menubar",context:n}:{type:void 0},[n])),D=na(!0),L=eN(),M=m.useMemo(()=>L??new eS,[L]),U=eA(M),{registerTrigger:B,isMountedByThisTrigger:$}=(r={payload:S,closeDelay:_,parent:F,floatingTreeRoot:M,floatingNodeId:U,floatingParentNodeId:eP(),keyboardEventRelay:D?.relayKeyboardEvent},s=P.useState("isMountedByTrigger",N),a=m.useRef(null),l=m.useRef(null),c=m.useCallback(e=>{if(void 0===N)return;let t=!1;if(null!==a.current){let e=a.current,r=l.current,n=P.context.triggerElements.getById(e);r&&n===r&&(P.context.triggerElements.delete(e),t=!0),a.current=null,l.current=null}if(null!==e&&(a.current=N,l.current=e,P.context.triggerElements.add(N,e),t=!0),t){let e=P.context.triggerElements.size;P.select("open")&&P.state.triggerCount!==e&&P.set("triggerCount",e)}},[P,N]),u=em(e=>{let t=P.select("open"),n=P.select("activeTriggerId");n===N?P.update({activeTriggerElement:e,...t?r:null}):null==n&&t&&P.update({activeTriggerId:N,activeTriggerElement:e,...r})}),d=m.useCallback(e=>{c(e),e&&u(e)},[c,u]),ew(()=>{s&&P.update({activeTriggerElement:R.current,...r})},[s,P,R,...Object.values(r)]),{registerTrigger:d,isMountedByThisTrigger:s}),W="menubar"===F.type,z=P.useState("disabled"),K=b||z||W&&F.context.disabled,{getButtonProps:G,buttonRef:Q}=nc({disabled:K,native:x});m.useEffect(()=>{I||void 0!==F.type||(P.context.allowMouseUpTriggerRef.current=!1)},[P,I,F.type]);let H=m.useRef(null),V=ed(),Y=em(e=>{let t;if(!H.current)return;V.clear(),P.context.allowMouseUpTriggerRef.current=!1;let r=e.target;!(tR(H.current,r)||tR(P.select("positionerElement"),r))&&r!==H.current&&(null==r||function e(t){return eU(t)&&t.hasAttribute("data-rootownerid")?t.getAttribute("data-rootownerid"):eV(t)?void 0:e(eJ(t))}(r)!==P.select("rootId"))&&(t=function(e){let t=e.getBoundingClientRect(),r=eF(e);if(ts)return t;let n=r.getComputedStyle(e,"::before"),i=r.getComputedStyle(e,"::after");if("none"===n.content&&"none"===i.content)return t;let o=parseFloat(n.width)||0,s=parseFloat(n.height)||0,a=parseFloat(i.width)||0,l=parseFloat(i.height)||0,c=Math.max(t.width,o,a),u=Math.max(t.height,s,l),d=c-t.width,p=u-t.height;return{left:t.left-d/2,right:t.right+d/2,top:t.top-p/2,bottom:t.bottom+p/2}}(H.current),e.clientX>=t.left-5&&e.clientX<=t.right+5&&e.clientY>
281=t.top-5&&e.clientY<=t.bottom+5||M.events.emit("close",{domEvent:e,reason:"cancel-open"}))});m.useEffect(()=>{I&&P.select("lastOpenChangeReason")===tb&&tm(H.current).addEventListener("mouseup",Y,{once:!0})},[I,Y,P]);let X=W&&F.context.hasSubmenuOpen,J=function(e,t={}){let{enabled:r=!0,delay:n=0,handleClose:i=null,mouseOnly:o=!1,restMs:s=0,move:a=!0,triggerElementRef:l=rQ,externalTree:c,isActiveTrigger:u=!0,getHandleCloseContext:d,isClosing:p,shouldOpen:f,guardStaleOpen:g=!1}=t,y="rootStore"in e?e.rootStore:e,{dataRef:v,events:b}=y.context,x=eN(c),w=rW(y),E=m.useRef(!1),k=tV(i),_=tV(n),j=tV(s),S=tV(r),O=tV(f),T=tV(p),P=em(()=>rG(v.current.openEvent?.type,w.interactedInside)),N=em(()=>O.current?.()!==!1),A=em((e,t,r)=>{let n=y.context.triggerElements;return n.hasElement(t)?!e||!tR(e,t):!!eM(r)&&n.hasMatchingElement(e=>tR(e,r))&&(!e||!tR(e,r))}),C=em(()=>{w.handler&&(tm(y.select("domReferenceElement")).removeEventListener("mousemove",w.handler),w.handler=void 0)}),I=em(()=>{rB(w)});return u&&(w.handleCloseOptions=k.current?.__options),m.useEffect(()=>C,[C]),m.useEffect(()=>{if(r)return b.on("openchange",e),()=>{b.off("openchange",e)};function e(e){e.open?E.current=!1:(E.current=e.reason===tb,C(),w.openChangeTimeout.clear(),w.restTimeout.clear(),w.blockMouseMove=!0,w.restTimeoutPending=!1)}},[r,b,w,C]),m.useEffect(()=>{if(!r)return;function e(t,r=!0){let n=rz(_.current,"close",w.pointerType);n?w.openChangeTimeout.start(n,()=>{y.setOpen(!1,ty(tb,t)),x?.events.emit("floating.closed",t)}):r&&(w.openChangeTimeout.clear(),y.setOpen(!1,ty(tb,t)),x?.events.emit("floating.closed",t))}let t=l.current??(u?y.select("domReferenceElement"):null);if(!eM(t))return;function n(e){if(w.openChangeTimeout.clear(),w.blockMouseMove=!1,o&&!tu(w.pointerType))return;let t=rK(j.current),r=rz(_.current,"open",w.pointerType),n=tF(e),i=e.currentTarget??null,s=y.select("domReferenceElement"),a=i;if(eM(n)&&!y.context.triggerElements.hasElement(n)){for(let e of y.context.triggerElements.elements())if(tR(e,n)){a=e;break}}eM(i)&&eM(s)&&!y.context.triggerElements.hasElement(i)&&tR(i,s)&&(a=s);let l=null!=a&&A(s,a,n),c=y.select("open"),u=T.current?.()??"ending"===y.select("transitionStatus"),d=!c&&u&&E.current,p=!l&&eM(a)&&eM(s)&&tR(s,a)&&d,f=t>0&&!r,h=!c||l;if(l&&(c||d)||p){N()&&y.setOpen(!0,ty(tb,e,a));return}!f&&(r?w.openChangeTimeout.start(r,()=>{h&&N()&&y.setOpen(!0,ty(tb,e,a))}):h&&N()&&y.setOpen(!0,ty(tb,e,a)))}function i(t){if(P())return void I();C();let r=tm(y.select("domReferenceElement"));w.restTimeout.clear(),w.restTimeoutPending=!1;let n=v.current.floatingContext??d?.();if(!tD(t.relatedTarget,y.context.triggerElements)){if(k.current&&n){y.select("open")||w.openChangeTimeout.clear();let i=l.current;w.handler=k.current({...n,tree:x,x:t.clientX,y:t.clientY,onClose(){I(),C(),S.current&&!P()&&i===y.select("domReferenceElement")&&e(t,!0)}}),r.addEventListener("mousemove",w.handler),w.handler(t);return}"touch"===w.pointerType&&tR(y.select("floatingElement"),t.relatedTarget)||e(t)}}let s=g?tf(t,"mouseout",function(e){tR(t,e.relatedTarget)||(w.openChangeTimeout.clear(),w.restTimeout.clear(),w.restTimeoutPending=!1)}):void 0;return a?th(tf(t,"mousemove",n,{once:!0}),tf(t,"mouseenter",n),tf(t,"mouseleave",i),s):th(tf(t,"mouseenter",n),tf(t,"mouseleave",i),s)},[C,I,v,_,y,r,k,w,u,A,P,o,a,j,l,x,S,d,T,N,g]),m.useMemo(()=>{if(r)return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){let{nativeEvent:t}=e,r=e.currentTarget,n=y.select("domReferenceElement"),i=y.select("open"),s=A(n,r,e.target);if(o&&!tu(w.pointerType))return;if(i&&s&&w.handleCloseOptions?.blockPointerEvents){let e=y.select("floatingElement");if(e){let t=w.handleCloseOptions?.getScope?.()??r.ownerDocument.body;r$(w,{scopeElement:t,referenceElement:r,floatingElement:e})}}let a=rK(j.current);function l(){if(w.restTimeoutPending=!1,P())return;let e=y.select("open");!w.blockMouseMove&&(!e||s)&&N()&&y.setOpen(!0,ty(tb,t,r))}(!i||s)&&0!==a&&(!s&&w.restTimeoutPending&&e.movementX**2+e.movementY**2<2||(w.restTimeout.clear(),"touch"===w.pointerType?h.flushSync(()=>{l()}):s&&i?l():(w.restTimeoutPending=!0,w.restTimeout.start(a,l))))}};function e(e){w.pointerType=e.pointerType}},[r,w,P,A,o,y,j,N])}(C,{enabled:(E??X)&&!K&&(!W||X&&!$),handleClose:function(e={}){let{blockPointerEvents:t=!1}=e,r=new eu,n=({x:e,y:t,placement:n,elements:i,onClose:o,nodeId:s,tree:a})=>{let l=n?.split("-")[0],c=!1,u=null,d=null,p="u">typeof performance?performance.now():0;return function(n){r.clear();let f=i.domReference,h=i.floating;if(!f||!h||null==l||null==e||null==t)return;let{clientX:m,clientY:g}=n,y=tF(n),v="mouseleave"===n.type,b=tR(h,y),x=tR(f,y);if(b&&(c=!0,!v))return;if(x&&(c=!1,!v)){c=!0;return}if(v&&eM(n.relatedTarget)&&tR(h,n.relatedTarget))return;function w(){return!!(a&&t$(a.nodesRef.current,s).length>0)}function E(){w()||(r.clear(),o())}if(w())return;let k=f.getBoundingClientRect(),_=h.getBoundingClientRect(),j=e>_.right-_.width/2,S=t>_.bottom-_.height/2,O=_.width>k.width,T=_.height>k.height,P=(O?k:_).left,N=(O?k:_).right,A=(T?k:_).top,C=(T?k:_).bottom;if("top"===l&&t>=k.bottom-1||"bottom"===l&&t<=k.top+1||"left"===l&&e>=k.right-1||"right"===l&&e<=k.left+1)return void E();let I=!1;switch(l){case"top":I=rX(m,g,P,k.top+1,N,_.bottom-1);break;
281case"bottom":I=rX(m,g,P,_.top+1,N,k.bottom-1);break;case"left":I=rX(m,g,_.right-1,C,k.left+1,A);break;case"right":I=rX(m,g,k.right-1,C,_.left+1,A)}if(I)return;if(c&&(!(m>=k.x)||!(m<=k.x+k.width)||!(g>=k.y)||!(g<=k.y+k.height))||!v&&function(e,t){let r=performance.now(),n=r-p;if(null===u||null===d||0===n)return u=e,d=t,p=r,!1;let i=e-u,o=t-d;return u=e,d=t,p=r,i*i+o*o<n*n*rH}(m,g))return void E();let q=!1;switch(l){case"top":{let r=O?.25:2,n=t+.5+1,i=j||O?_.bottom-.5:_.top,o=j?O?_.bottom-.5:_.top:_.bottom-.5;q=rY(m,g,O||j?e+r:e-r,n,O?e-r:j?e+r:e-r,n,_.left,i,_.right,o);break}case"bottom":{let r=O?.25:2,n=t-.5,i=j||O?_.top+.5:_.bottom,o=j?O?_.top+.5:_.bottom:_.top+.5;q=rY(m,g,O||j?e+r:e-r,n,O?e-r:j?e+r:e-r,n,_.left,i,_.right,o);break}case"left":{let r=T?.25:2,n=e+.5+1,i=S||T?_.right-.5:_.left,o=S?T?_.right-.5:_.left:_.right-.5;q=rY(m,g,i,_.top,o,_.bottom,n,T||S?t+r:t-r,n,T?t-r:S?t+r:t-r);break}case"right":{let r=T?.25:2,n=e-.5,i=S||T?_.left+.5:_.right,o=S?T?_.left+.5:_.right:_.left+.5;q=rY(m,g,n,T||S?t+r:t-r,n,T?t-r:S?t+r:t-r,i,_.top,o,_.bottom)}}q?c||r.start(40,E):E()}};return n.__options={...e,blockPointerEvents:t},n}({blockPointerEvents:!W}),mouseOnly:!0,move:!1,restMs:void 0===F.type?k:void 0,delay:{close:_},triggerElementRef:R,externalTree:M,isActiveTrigger:A,isClosing:()=>"ending"===P.select("transitionStatus")}),Z=function(e,t){let r=ed(),[n,i]=m.useState(!1);return ew(()=>{e&&t===tb?(i(!0),r.start(500,()=>{i(!1)})):e||(r.clear(),i(!1))},[e,t,r]),n}(I,P.select("lastOpenChangeReason")),ee=function(e,t={}){let{enabled:r=!0,event:n="click",toggle:i=!0,ignoreMouse:o=!1,stickIfOpen:s=!0,touchOpenDelay:a=0,reason:l=tv}=t,c="rootStore"in e?e.rootStore:e,u=c.context.dataRef,d=m.useRef(void 0),p=tH(),f=ed(),h=m.useMemo(()=>{function e(e,t,r,n){let i=ty(l,t,r);e&&"touch"===n&&a>0?f.start(a,()=>{c.setOpen(!0,i)}):c.setOpen(e,i)}function t(e,t,r){let n=u.current.openEvent,o=c.select("domReferenceElement")!==t;return!!e&&!!o||!e||!i||!!n&&!!s&&!r(n.type)}return{onPointerDown(e){d.current=tu(e.pointerType,!0)&&tc(e.nativeEvent)?"virtual":e.pointerType},onMouseDown(r){let i=d.current,s=r.nativeEvent,a=c.select("open");if(0!==r.button||"click"===n||tu(i,!0)&&o)return;let l=t(a,r.currentTarget,e=>"click"===e||"mousedown"===e),u=tF(s);if(tM(u))return void e(l,s,u,i);let f=r.currentTarget;p.request(()=>{e(l,s,f,i)})},onClick(r){if("mousedown-only"===n)return;let i=d.current;if("mousedown"===n&&i){d.current=void 0;return}tu(i,!0)&&o||e(t(c.select("open"),r.currentTarget,e=>"click"===e||"mousedown"===e||"keydown"===e||"keyup"===e),r.nativeEvent,r.currentTarget,i)},onKeyDown(){d.current=void 0}}},[u,n,o,l,c,s,i,p,f,a]);return m.useMemo(()=>r?{reference:h}:el,[r,h])}(C,{enabled:!K,event:I&&W?"click":"mousedown",toggle:!0,ignoreMouse:!1,stickIfOpen:void 0===F.type&&Z}),et=function(e,t={}){let{enabled:r=!0,delay:n}=t,i="rootStore"in e?e.rootStore:e,{events:o,dataRef:s}=i.context,a=m.useRef(!1),l=m.useRef(null),c=m.useRef(!0),u=ed();m.useEffect(()=>{let e=i.select("domReferenceElement");if(!r)return;let t=eF(e);return th(tf(t,"blur",function(){let e=i.select("domReferenceElement");!i.select("open")&&eU(e)&&e===tq(tm(e))&&(a.current=!0)}),rJ&&tf(t,"keydown",function(){c.current=!0},!0),rJ&&tf(t,"pointerdown",function(){c.current=!1},!0))},[i,r]),m.useEffect(()=>{if(r)return o.on("openchange",e),()=>{o.off("openchange",e)};function e(e){if(e.reason===tv||e.reason===t_){let e=i.select("domReferenceElement");eM(e)&&(l.current=e,a.current=!0)}}},[o,r,i]);let d=m.useMemo(()=>{function e(){a.current=!1,l.current=null}return{onMouseLeave(){e()},onFocus(t){let r=t.currentTarget;if(a.current){if(l.current===r)return;e()}let o=tF(t.nativeEvent);if(eM(o)){if(rJ&&!t.relatedTarget){if(!c.current&&!tM(o))return}else if(!function(e){if(!e||ts)return!0;try{return e.matches(":focus-visible")}catch(e){return!0}}(o))return}let s=tD(t.relatedTarget,i.context.triggerElements),{nativeEvent:d,currentTarget:p}=t,f="function"==typeof n?n():n;i.select("open")&&s||0===f||void 0===f?i.setOpen(!0,ty(tx,d,p)):u.start(f,()=>{a.current||i.setOpen(!0,ty(tx,d,p))})},onBlur(t){e();let r=t.relatedTarget,n=t.nativeEvent,o=eM(r)&&r.hasAttribute(tO("focus-guard"))&&"outside"===r.getAttribute("data-type");u.start(0,()=>{let e=i.select("domReferenceElement"),t=tq(tm(e));!r&&t===e||tR(s.current.floatingContext?.refs.floating.current,t)||tR(e,t)||o||tD(r??t,i.context.triggerElements)||i.setOpen(!1,ty(tx,n))})}}},[s,n,i,u]);return m.useMemo(()=>r?{reference:d,trigger:d}:{},[r,d])}(C,{enabled:!K&&X}),er=function(e){let{enabled:t=!0,mouseDownAction:r,open:n}=e,i=m.useRef(!1);return m.useMemo(()=>t?{onMouseDown:e=>{("open"===r&&!n||"close"===r&&n)&&(i.current=!0,tm(e.currentTarget).addEventListener("click",()=>{i.current=!1},{once:!0}))},onClick:e=>{i.current&&(i.current=!1,e.preventBaseUIHandler())}}:el,[t,r,n])}({open:I,enabled:W,mouseDownAction:"open"}),en=m.useMemo(()=>rh(et.reference,ee.reference),[et.reference,ee.reference]),ei=P.useState("triggerProps",$),{preFocusGuardRef:eo,handlePreFocusGuardFocus:ea,handleFocusTargetFocus:ec}={preFocusGuardRef:p=m.useRef(null),handlePreFocusGuardFocus:function(e){h.flushSync(()=>{P.setOpen(!1,ty(tk,e.nativeEvent,e.currentTarget))});let t=nS(p.current,-1);t?.focus()},handleFocusTargetFocus:function(e){let t=P.select("positionerElement");
281if(t&&nO(e,t))P.context.beforeContentFocusGuardRef.current?.focus();else{h.flushSync(()=>{P.setOpen(!1,ty(tk,e.nativeEvent,e.currentTarget))});let r=nS(P.context.triggerFocusTargetRef.current||R.current,1);for(;null!==r&&tR(t,r);){let e=r;if((r=n_(r))===e)break}r?.focus()}}},ep={disabled:K,open:I},ef=[H,t,Q,B,R],eh=[en,J??el,ei,{"aria-haspopup":"menu","aria-controls":q,id:N,onMouseDown:e=>{P.select("open")||(V.start(200,()=>{P.context.allowMouseUpTriggerRef.current=!0}),tm(e.currentTarget).addEventListener("mouseup",Y,{once:!0}))}},W?{role:"menuitem"}:{},er,O,G],eg=ni("button",e,{enabled:!W,stateAttributesMapping:r8,state:ep,ref:ef,props:eh});return W?(0,f.jsx)(nf,{tag:"button",render:g,className:y,style:v,state:ep,refs:ef,props:eh,stateAttributesMapping:r8}):I?(0,f.jsxs)(m.Fragment,{children:[(0,f.jsx)(nI,{ref:eo,onFocus:ea},`${N}-pre-focus-guard`),(0,f.jsx)(m.Fragment,{children:eg},N),(0,f.jsx)(nI,{ref:P.context.triggerFocusTargetRef,onFocus:ec},`${N}-post-focus-guard`)]}):(0,f.jsx)(m.Fragment,{children:eg},N)},m.forwardRef(ek(a))),nR=m.createContext(null),nF=tO("portal"),nD=m.forwardRef(function(e,t){let{render:r,className:n,style:i,children:o,container:s,...a}=e,{node:l,nodeId:c,subtree:u}=function(e={}){let{ref:t,container:r,componentProps:n=el,elementProps:i}=e,o=ex(),s=m.useContext(nR),a=s?.portalNode,[l,c]=m.useState(null),[u,d]=m.useState(null),p=em(e=>{null!==e&&d(e)}),f=m.useRef(null);ew(()=>{if(null===r){f.current&&(f.current=null,d(null),c(null));return}let e=(r&&(eL(r)?r:r.current))??a??document.body;if(null==e){f.current&&(f.current=null,d(null),c(null));return}f.current!==e&&(f.current=e,d(null),c(e))},[r,a]);let g=ni("div",n,{ref:[t,p],props:[{id:o,[nF]:""},i]}),y=l&&g?h.createPortal(g,l):null;return{node:u,nodeId:m.isValidElement(g)?g.props.id:void 0,subtree:y}}({container:s,ref:t,componentProps:e,elementProps:a}),d=m.useRef(null),p=m.useRef(null),g=m.useRef(null),y=m.useRef(null),[v,b]=m.useState(null),x=m.useRef(!1),w=v?.modal,E=v?.open,k=!!v&&!v.modal&&v.open&&!!l;m.useEffect(()=>{if(l&&!w)return th(tf(l,"focusin",e,!0),tf(l,"focusout",e,!0));function e(e){l&&e.relatedTarget&&nO(e)&&("focusin"===e.type?x.current&&(nT(l),x.current=!1):(nE(l).forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}),x.current=!0))}},[l,w]),ew(()=>{l&&!0===E&&x.current&&(nT(l),x.current=!1)},[E,l]);let _=m.useMemo(()=>({beforeOutsideRef:d,afterOutsideRef:p,beforeInsideRef:g,afterInsideRef:y,portalNode:l,setFocusManagerState:b}),[l]);return(0,f.jsxs)(m.Fragment,{children:[u,(0,f.jsxs)(nR.Provider,{value:_,children:[k&&l&&(0,f.jsx)(nI,{"data-type":"outside",ref:d,onFocus:e=>{if(nO(e,l))g.current?.focus();else{let e=nj(v?v.domReference:null);e?.focus()}}}),k&&l&&(0,f.jsx)("span",{"aria-owns":c,style:ra}),l&&h.createPortal(o,l),k&&l&&(0,f.jsx)(nI,{"data-type":"outside",ref:p,onFocus:e=>{if(nO(e,l))y.current?.focus();else{let t=n_(v?v.domReference:null);t?.focus(),v?.closeOnFocusOut&&v?.onOpenChange(!1,ty(tk,e.nativeEvent))}}})]})]})}),nL=m.createContext(void 0),nM=m.forwardRef(function(e,t){let{keepMounted:r=!1,...n}=e,{store:i}=rt();return i.useState("mounted")||r?(0,f.jsx)(nL.Provider,{value:r,children:(0,f.jsx)(nD,{ref:t,...n})}):null}),nU=m.createContext(void 0);function nB(e){let t=m.useContext(nU);if(void 0===t&&!e)throw Error(t7(33));return t}let n$=Math.min,nW=Math.max,nz=Math.round,nK=Math.floor,nG=e=>({x:e,y:e}),nQ={left:"right",right:"left",bottom:"top",top:"bottom"};function nH(e,t){return"function"==typeof e?e(t):e}function nV(e){return e.split("-")[0]}function nY(e){return e.split("-")[1]}function nX(e){return"x"===e?"y":"x"}function nJ(e){return"y"===e?"height":"width"}function nZ(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function n0(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let n1=["left","right"],n2=["right","left"],n5=["top","bottom"],n3=["bottom","top"];function n4(e){let t=nV(e);return nQ[t]+e.slice(t.length)}function n6(e){var t,r,n,i;return"number"!=typeof e?{top:null!=(t=e.top)?t:0,right:null!=(r=e.right)?r:0,bottom:null!=(n=e.bottom)?n:0,left:null!=(i=e.left)?i:0}:{top:e,right:e,bottom:e,left:e}}function n8(e){let{x:t,y:r,width:n,height:i}=e;return{width:n,height:i,top:r,left:t,right:t+n,bottom:r+i,x:t,y:r}}function n9(e,t,r){let n,{reference:i,floating:o}=e,s=nZ(t),a=nX(nZ(t)),l=nJ(a),c=nV(t),u=i.x+i.width/2-o.width/2,d=i.y+i.height/2-o.height/2,p=i[l]/2-o[l]/2;switch(c){case"top":n={x:u,y:i.y-o.height};break;case"bottom":n={x:u,y:i.y+i.height};break;case"right":n={x:i.x+i.width,y:d};break;case"left":n={x:i.x-o.width,y:d};break;default:n={x:i.x,y:i.y}}let f=nY(t);return f&&(n[a]+=p*("end"===f?1:-1)*(r&&"y"===s?-1:1)),n}async function n7(e,t){var r;void 0===t&&(t={});let{x:n,y:i,platform:o,rects:s,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:f=0}=nH(t,e),h=n6(f),m=a[p?"floating"===d?"reference":"floating":d],g=n8(await o.getClippingRect
281({element:null==(r=await (null==o.isElement?void 0:o.isElement(m)))||r?m:m.contextElement||await (null==o.getDocumentElement?void 0:o.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),y="floating"===d?{x:n,y:i,width:s.floating.width,height:s.floating.height}:s.reference,v=await (null==o.getOffsetParent?void 0:o.getOffsetParent(a.floating)),b=await (null==o.isElement?void 0:o.isElement(v))&&await (null==o.getScale?void 0:o.getScale(v))||{x:1,y:1},x=n8(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:v,strategy:l}):y);return{top:(g.top-x.top+h.top)/b.y,bottom:(x.bottom-g.bottom+h.bottom)/b.y,left:(g.left-x.left+h.left)/b.x,right:(x.right-g.right+h.right)/b.x}}let ie=async(e,t,r)=>{let{placement:n="bottom",strategy:i="absolute",middleware:o=[],platform:s}=r,a=s.detectOverflow?s:{...s,detectOverflow:n7},l=await (null==s.isRTL?void 0:s.isRTL(t)),c=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=n9(c,n,l),p=n,f=0,h={};for(let r=0;r<o.length;r++){let m=o[r];if(!m)continue;let{name:g,fn:y}=m,{x:v,y:b,data:x,reset:w}=await y({x:u,y:d,initialPlacement:n,placement:p,strategy:i,middlewareData:h,rects:c,platform:a,elements:{reference:e,floating:t}});u=null!=v?v:u,d=null!=b?b:d,h[g]={...h[g],...x},w&&f<50&&(f++,"object"==typeof w&&(w.placement&&(p=w.placement),w.rects&&(c=!0===w.rects?await s.getElementRects({reference:e,floating:t,strategy:i}):w.rects),{x:u,y:d}=n9(c,p,l)),r=-1)}return{x:u,y:d,placement:p,strategy:i,middlewareData:h}},it=new Set(["left","top"]);async function ir(e,t){let{placement:r,platform:n,elements:i}=e,o=await (null==n.isRTL?void 0:n.isRTL(i.floating)),s=nV(r),a=nY(r),l="y"===nZ(r),c=it.has(s)?-1:1,u=o&&l?-1:1,d=nH(t,e),{mainAxis:p,crossAxis:f,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&"number"==typeof h&&(f="end"===a?-1*h:h),l?{x:f*u,y:p*c}:{x:p*c,y:f*u}}function ii(e){let t=eY(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,i=eU(e),o=i?e.offsetWidth:r,s=i?e.offsetHeight:n,a=nz(r)!==o||nz(n)!==s;return a&&(r=o,n=s),{width:r,height:n,$:a}}function io(e){return eM(e)?e:e.contextElement}function is(e){let t=io(e);if(!eU(t))return nG(1);let r=t.getBoundingClientRect(),{width:n,height:i,$:o}=ii(t),s=(o?nz(r.width):r.width)/n,a=(o?nz(r.height):r.height)/i;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}let ia=nG(0);function il(e){let t=eF(e);return eH()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ia}function ic(e,t,r,n){var i;void 0===t&&(t=!1),void 0===r&&(r=!1);let o=e.getBoundingClientRect(),s=io(e),a=nG(1);t&&(n?eM(n)&&(a=is(n)):a=is(e));let l=(void 0===(i=r)&&(i=!1),n&&i&&n===eF(s))?il(s):nG(0),c=(o.left+l.x)/a.x,u=(o.top+l.y)/a.y,d=o.width/a.x,p=o.height/a.y;if(s&&n){let e=eF(s),t=eM(n)?eF(n):n,r=e,i=e0(r);for(;i&&t!==r;){let e=is(i),t=i.getBoundingClientRect(),n=eY(i),o=t.left+(i.clientLeft+parseFloat(n.paddingLeft))*e.x,s=t.top+(i.clientTop+parseFloat(n.paddingTop))*e.y;c*=e.x,u*=e.y,d*=e.x,p*=e.y,c+=o,u+=s,i=e0(r=eF(i))}}return n8({width:d,height:p,x:c,y:u})}function iu(e,t){let r=eX(e).scrollLeft;return t?t.left+r:ic(eD(e)).left+r}function id(e,t){let r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-iu(e,r),y:r.top+t.scrollTop}}function ip(e,t,r){var n;let i;if("viewport"===t||"layoutViewport"===t)i=function(e,t,r){void 0===r&&(r="viewport");let n="layoutViewport"===r,i=eF(e),o=eD(e),s=i.visualViewport,a=o.clientWidth,l=o.clientHeight,c=0,u=0;if(s){let e=!eH()||"fixed"===t;n?e||(c=-s.offsetLeft,u=-s.offsetTop):(a=s.width,l=s.height,e&&(c=s.offsetLeft,u=s.offsetTop))}if(0>=iu(o)){let e=o.ownerDocument,t=e.body,r=getComputedStyle(t),n="CSS1Compat"===e.compatMode&&parseFloat(r.marginLeft)+parseFloat(r.marginRight)||0,i=Math.abs(o.clientWidth-t.clientWidth-n),s="stable both-edges"===getComputedStyle(o).scrollbarGutter?i/2:i;s<=25&&(a-=s)}return{width:a,height:l,x:c,y:u}}(e,r,t);else if("document"===t){let t,r,o,s,a,l;t=eX(n=eD(e)),r=n.ownerDocument.body,o=nW(n.scrollWidth,n.clientWidth,r.scrollWidth,r.clientWidth),s=nW(n.scrollHeight,n.clientHeight,r.scrollHeight,r.clientHeight),a=-t.scrollLeft+iu(n),l=-t.scrollTop,"rtl"===eY(r).direction&&(a+=nW(n.clientWidth,r.clientWidth)-o),i={width:o,height:s,x:a,y:l}}else if(eM(t)){let e,n,o,s,a,l;n=(e=ic(t,!0,"fixed"===r)).top+t.clientTop,o=e.left+t.clientLeft,s=is(t),a=t.clientWidth*s.x,l=t.clientHeight*s.y,i={width:a,height:l,x:o*s.x,y:n*s.y}}else{let r=il(e);i={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return n8(i)}function ih(e){return"static"===eY(e).position}function im(e,t){if(!eU(e)||"fixed"===eY(e).position)return null;if(t)return t(e);let r=e.offsetParent;return eD(e)===r&&(r=r.ownerDocument.body),r}function ig(e,t){var r;let n=eF(e);if(eW(e))return n;if(!eU(e)){let t=eJ(e);for(;t&&!eV(t);){if(eM(t)&&!ih(t))return t;t=eJ(t)}return n}let i=im(e,t);for(;i&&(r=i,/^(table|td|th)$/.test(eR(r)))&&ih(i);)i=im(i,t);return i&&eV(i)&&ih(i)&&!eQ(i)?n:i||function(e){let t=eJ(e);for(;eU(t)&&!eV(t);){if(eQ(t))return t;if(eW(t))break;t=eJ(t)}return null}(e)||n}let iy=async function(e){let t=this.getOffsetParent||ig,r=this.getDimensions,n=await r(e.floating);return{reference:function(e,t,r){let n=eU(t),i=eD(t),o="fixed"===r,s=ic(e,!0,o,t),a={scrollLeft:0,scrollTop:0},l=nG(0);if((n||!o)&&(("body"!==eR(t)||e$(i))&&(a=eX(t)),n)){let e=ic(t,!0,o,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}!n&&i&&(l.x=iu(i));let c=!i||n||o?nG(0):id(i,a);return{x:s.left+a.scrollLeft-l.x-c.x,y:s.top+a.scrollTop-l.y-c.y,width:s.width,height:s.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},iv={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:i}=e,o="fixed"===i,s=eD(n),a=!!t&&eW(t.floating);if(n===s||a&&o)return r;let l={scrollLeft:0,scrollTop:0},c=nG(1),u=nG(0),d=eU(n);
281if((d||!o)&&(("body"!==eR(n)||e$(s))&&(l=eX(n)),d)){let e=ic(n);c=is(n),u.x=e.x+n.clientLeft,u.y=e.y+n.clientTop}let p=!s||d||o?nG(0):id(s,l);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+u.x+p.x,y:r.y*c.y-l.scrollTop*c.y+u.y+p.y}},getDocumentElement:eD,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e,o=[..."clippingAncestors"===r?eW(t)?[]:function(e,t){let r=t.get(e);if(r)return r;let n=eZ(e,[],!1).filter(e=>eM(e)&&"body"!==eR(e)),i=null,o="fixed"===eY(e).position,s=o?eJ(e):e;for(;eM(s)&&!eV(s);){let e=eY(s),t=eQ(s),r=i?i.position:o?"fixed":"";t||"fixed"!==r&&("absolute"!==r||"static"!==e.position)?i=e:n=n.filter(e=>e!==s),s=eJ(s)}return t.set(e,n),n}(t,this._c):[].concat(r),n],s=ip(t,o[0],i),a=s.top,l=s.right,c=s.bottom,u=s.left;for(let e=1;e<o.length;e++){let r=ip(t,o[e],i);a=nW(r.top,a),l=n$(r.right,l),c=n$(r.bottom,c),u=nW(r.left,u)}return{width:l-u,height:c-a,x:u,y:a}},getOffsetParent:ig,getElementRects:iy,getClientRects:function(e){return e.getClientRects?Array.from(e.getClientRects()):[]},getDimensions:function(e){let{width:t,height:r}=ii(e);return{width:t,height:r}},getScale:is,isElement:eM,isRTL:function(e){return"rtl"===eY(e).direction}};function ib(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ix(e,t,r,n){let i;void 0===n&&(n={});let{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:c=!1}=n,u=io(e),d=o||s?[...u?eZ(u):[],...t?eZ(t):[]]:[];d.forEach(e=>{o&&e.addEventListener("scroll",r),s&&e.addEventListener("resize",r)});let p=u&&l?function(e,t,r){let n,i=null,o=eD(e);function s(){var e;clearTimeout(n),null==(e=i)||e.disconnect(),i=null}function a(r,l){void 0===r&&(r=!1),void 0===l&&(l=1),s();let c=e.getBoundingClientRect(),{left:u,top:d,width:p,height:f}=c;if(r||t(),!p||!f)return;let h={rootMargin:-nK(d)+"px "+-nK(o.clientWidth-(u+p))+"px "+-nK(o.clientHeight-(d+f))+"px "+-nK(u)+"px",threshold:nW(0,n$(1,l))||1},m=!0;function g(t){let r=t[0].intersectionRatio;if(!ib(c,e.getBoundingClientRect()))return a();if(r!==l){if(!m)return a();r?a(!1,r):n=setTimeout(()=>{a(!1,1e-7)},1e3)}m=!1}try{i=new IntersectionObserver(g,{...h,root:o.ownerDocument})}catch(e){i=new IntersectionObserver(g,h)}i.observe(e)}let l=eF(e),c=()=>a(r);return l.addEventListener("resize",c),a(!0),()=>{l.removeEventListener("resize",c),s()}}(u,r,s):null,f=-1,h=null;a&&(h=new ResizeObserver(e=>{let[n]=e;n&&n.target===u&&h&&t&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),r()}),u&&!c&&h.observe(u),t&&h.observe(t));let m=c?ic(e):null;return c&&function t(){let n=ic(e);m&&!ib(m,n)&&r(),m=n,i=requestAnimationFrame(t)}(),r(),()=>{var e;d.forEach(e=>{o&&e.removeEventListener("scroll",r),s&&e.removeEventListener("resize",r)}),null==p||p(),null==(e=h)||e.disconnect(),h=null,c&&cancelAnimationFrame(i)}}var iw="u">typeof document?m.useLayoutEffect:function(){};function iE(e,t){let r,n,i;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((r=e.length)!==t.length)return!1;for(n=r;0!=n--;)if(!iE(e[n],t[n]))return!1;return!0}if((r=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(n=r;0!=n--;)if(!({}).hasOwnProperty.call(t,i[n]))return!1;for(n=r;0!=n--;){let r=i[n];if(("_owner"!==r||!e.$$typeof)&&!iE(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function ik(e){return"u"<typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function i_(e,t){let r=ik(e);return Math.round(t*r)/r}function ij(e){let t=m.useRef(e);return iw(()=>{t.current=e}),t}function iS(e){return function(e,t){let{nodeId:r,externalTree:n}=e,i=t.useState("referenceElement"),o=t.useState("floatingElement"),s=t.useState("domReferenceElement"),a=t.useState("open"),l=t.useState("floatingId"),[c,u]=m.useState(null),[d,p]=m.useState(void 0),[f,g]=m.useState(void 0),y=m.useRef(null),v=eN(n),b=m.useMemo(()=>({reference:i,floating:o,domReference:s}),[i,o,s]),x=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:i,elements:{reference:o,floating:s}={},transform:a=!0,whileElementsMounted:l,open:c}=e,[u,d]=m.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[p,f]=m.useState(n);iE(p,n)||f(n);let[g,y]=m.useState(null),[v,b]=m.useState(null),x=m.useCallback(e=>
281{e!==_.current&&(_.current=e,y(e))},[]),w=m.useCallback(e=>{e!==j.current&&(j.current=e,b(e))},[]),E=o||g,k=s||v,_=m.useRef(null),j=m.useRef(null),S=m.useRef(u),O=null!=l,T=ij(l),P=ij(i),N=ij(c),A=m.useCallback(()=>{var e,n;let i,o,s;if(!_.current||!j.current)return;let a={placement:t,strategy:r,middleware:p};P.current&&(a.platform=P.current),(e=_.current,n=j.current,i=new Map,o=null!=a?a:{},s={...iv,...o.platform,_c:i},ie(e,n,{...o,platform:s})).then(e=>{let t={...e,isPositioned:!1!==N.current};C.current&&!iE(S.current,t)&&(S.current=t,h.flushSync(()=>{d(t)}))})},[p,t,r,P,N]);iw(()=>{!1===c&&S.current.isPositioned&&(S.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[c]);let C=m.useRef(!1);iw(()=>(C.current=!0,()=>{C.current=!1}),[]),iw(()=>{if(E&&(_.current=E),k&&(j.current=k),E&&k){if(T.current)return T.current(E,k,A);A()}},[E,k,A,T,O]);let I=m.useMemo(()=>({reference:_,floating:j,setReference:x,setFloating:w}),[x,w]),q=m.useMemo(()=>({reference:E,floating:k}),[E,k]),R=m.useMemo(()=>{let e={position:r,left:0,top:0};if(!q.floating)return e;let t=i_(q.floating,u.x),n=i_(q.floating,u.y);return a?{...e,transform:"translate("+t+"px, "+n+"px)",...ik(q.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,a,q.floating,u.x,u.y]);return m.useMemo(()=>({...u,update:A,refs:I,elements:q,floatingStyles:R}),[u,A,I,q,R])}({...e,elements:{...b,...c&&{reference:c}}}),w=eM(d)?d:null,E=void 0===f?t.state.floatingElement:f;t.useSyncedValue("referenceElement",d??null),t.useSyncedValue("domReferenceElement",void 0===d?s:w),t.useSyncedValue("floatingElement",E);let k=m.useCallback(e=>{let t=eM(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;u(t),x.refs.setReference(t)},[x.refs]),_=m.useCallback(e=>{(eM(e)||null===e)&&(y.current=e,p(e)),(eM(x.refs.reference.current)||null===x.refs.reference.current||null!==e&&!eM(e))&&x.refs.setReference(e)},[x.refs,p]),j=m.useCallback(e=>{g(e),x.refs.setFloating(e)},[x.refs]),S=m.useMemo(()=>({...x.refs,setReference:_,setFloating:j,setPositionReference:k,domReference:y}),[x.refs,_,j,k]),O=m.useMemo(()=>({...x.elements,domReference:s}),[x.elements,s]),T=m.useMemo(()=>({...x,dataRef:t.context.dataRef,open:a,onOpenChange:t.setOpen,events:t.context.events,floatingId:l,refs:S,elements:O,nodeId:r,rootStore:t}),[x,S,O,r,t,a,l]);return ew(()=>{s&&(y.current=s)},[s]),ew(()=>{t.context.dataRef.current.floatingContext=T;let e=v?.nodesRef.current.find(e=>e.id===r);e&&(e.context=T)}),m.useMemo(()=>({...x,context:T,refs:S,elements:O,rootStore:t}),[x,S,O,T,t])}(e,e.rootContext)}let iO={name:"hide",async fn(e){let{width:t,height:r,x:n,y:i}=e.rects.reference,o=await e.platform.detectOverflow(e,{elementContext:"reference"});return{data:{referenceHidden:o.top-r>=0||o.right-t>=0||o.bottom-r>=0||o.left-t>=0||0===t&&0===r&&0===n&&0===i}}}},iT={sideX:"left",sideY:"top"},iP="--available-width",iN="--available-height";function iA(e,t,r){let n="inline-start"===e||"inline-end"===e;return({top:"top",right:n?r?"inline-start":"inline-end":"right",bottom:"bottom",left:n?r?"inline-end":"inline-start":"left"})[t]}function iC(e,t,r){let{rects:n,placement:i}=e;return{side:iA(t,nV(i),r),align:nY(i)||"center",anchor:{width:n.reference.width,height:n.reference.height},positioner:{width:n.floating.width,height:n.floating.height}}}function iI(e){return null!=e&&"current"in e}function iq(e){let{children:t,elementsRef:r,labelsRef:n,onMapChange:i}=e,o=em(i),[,s]=m.useState(!1),a=eo(iF).current,l=eo(iR).current,c=m.useRef(0),u=m.useRef(!0),d=m.useRef([]),p=m.useRef(null),h=em(()=>{u.current||(u.current=!0,s(e=>!e))}),g=em((e,t)=>{l.set(e,t),h()}),y=em(e=>{l.delete(e),h()}),v=em(e=>{let t=new Map;return r.current.length=0,n&&(n.current.length=0),e.forEach(e=>{t.set(e.element,{...e.registration.metadata??{},index:e.index}),r.current[e.index]=e.element,n&&(n.current[e.index]=void 0!==e.registration.label?e.registration.label:e.registration.textRef?.current?.textContent??e.element.textContent)}),c.current=r.current.length,t}),b=em(()=>{var e;let t,r,n,i,[s,c]=(e=l,t=new Set,r=[],n=[],e.forEach((e,i)=>{if(!i.isConnected)return;let o=e.index,s={index:o??-1,element:i,registration:e};null===o?n.push(s):o>=0&&(t.add(o),r.push(s))}),i=0,n.sort((e,t)=>
281iD(e.element,t.element)),n.forEach(e=>{for(;t.has(i);)i+=1;e.index=i,r.push(e),i+=1}),t.size>0&&r.sort((e,t)=>e.index-t.index),[r,n.map(e=>e.element)]),f=v(s);!function(e){if(p.current?.disconnect(),p.current=null,"function"!=typeof MutationObserver||e.length<2)return;let t=new MutationObserver(r=>{if(!function(e){for(let t of e)for(let e=0;e<t.removedNodes.length;e+=1)if(t.removedNodes[e].isConnected)return!0;return!1}(r))return;let n=null;for(let r of e)if(r.isConnected){if(n&&iD(n,r)>0){t.disconnect(),h();return}n=r}});p.current=t;let r=new Set;for(let t=1;t<e.length;t+=1){let n=function(e,t){let r=e.parentElement;for(;r&&!r.contains(t);)r=r.parentElement;return r}(e[t-1],e[t]);n&&r.add(n)}r.forEach(e=>t.observe(e,{childList:!0}))}(c),d.current=s,u.current=!1,a.forEach(e=>e(f)),o(f)});ew(()=>(u.current||v(d.current),()=>{r.current=[],n&&(n.current=[])}),[r,n,v]),ew(()=>{u.current&&b()}),ew(()=>()=>{p.current?.disconnect(),u.current=!0},[]);let x=em(e=>(a.add(e),()=>{a.delete(e)})),w=m.useMemo(()=>({register:g,unregister:y,subscribeMapChange:x,nextIndexRef:c}),[g,y,x,c]);return(0,f.jsx)(nd.Provider,{value:w,children:t})}function iR(){return new Map}function iF(){return new Set}function iD(e,t){return e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}let iL=m.forwardRef(function(e,t){let r,{cutout:n,...i}=e;if(n){let e=n.getBoundingClientRect();r=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${e.left}px ${e.top}px,${e.left}px ${e.bottom}px,${e.right}px ${e.bottom}px,${e.right}px ${e.top}px,${e.left}px ${e.top}px)`}return(0,f.jsx)("div",{ref:t,role:"presentation","data-base-ui-inert":"",...i,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:r}})});function iM(e){return"starting"===e?ri:el}let iU={},iB={},i$="";function iW(e,t,r){return/hidden|clip/.test(e.getComputedStyle(e$(t)?t:r).overflowY)}class iz{lockCount=0;restore=null;timeoutLock=eu.create();timeoutUnlock=eu.create();acquire(e){return this.lockCount+=1,1===this.lockCount&&null===this.restore&&this.timeoutLock.start(0,()=>this.lock(e)),this.release}release=()=>{this.lockCount-=1,0===this.lockCount&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{0===this.lockCount&&this.restore&&(this.restore?.(),this.restore=null)};lock(e){let t,r,n,i,o;if(0===this.lockCount||null!==this.restore)return;let s=tm(e),a=s.documentElement,l=s.body,c=eF(a);if(iW(c,a,l)){let t=new c.MutationObserver(()=>{iW(c,a,l)||(t.disconnect(),this.restore=null,this.lock(e))}),r={attributes:!0};t.observe(a,r),t.observe(l,r),this.restore=()=>t.disconnect();return}let u=tr||!function(e){if("u"<typeof document)return!1;let t=tm(e);return eF(t).innerWidth-t.documentElement.clientWidth>0}(e);this.restore=u?(r=(t=tm(e)).documentElement,n=t.body,o={overflowY:(i=e$(r)?r:n).style.overflowY,overflowX:i.style.overflowX},Object.assign(i.style,{overflowY:"hidden",overflowX:"hidden"}),()=>{Object.assign(i.style,o)}):function(e){let t=tm(e),r=t.documentElement,n=t.body,i=eF(r),o=0,s=0,a=!1,l=tQ.create();if(tg&&(i.visualViewport?.scale??1)!==1)return()=>{};function c(){let t=i.getComputedStyle(r),l=i.getComputedStyle(n),c=(t.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";o=r.scrollTop,s=r.scrollLeft,iU={scrollbarGutter:r.style.scrollbarGutter,overflowY:r.style.overflowY,overflowX:r.style.overflowX},i$=r.style.scrollBehavior,iB={position:n.style.position,height:n.style.height,width:n.style.width,boxSizing:n.style.boxSizing,overflowY:n.style.overflowY,overflowX:n.style.overflowX,scrollBehavior:n.style.scrollBehavior};let u=r.scrollHeight>r.clientHeight,d=r.scrollWidth>r.clientWidth,p="scroll"===t.overflowY||"scroll"===l.overflowY,f="scroll"===t.overflowX||"scroll"===l.overflowX,h=Math.max(0,i.innerWidth-n.clientWidth),m=Math.max(0,i.innerHeight-n.clientHeight),g=parseFloat(l.marginTop)+parseFloat(l.marginBottom),y=parseFloat(l.marginLeft)+parseFloat(l.marginRight),v=e$(r)?r:n;if(a=function(e){if(!("u">typeof CSS&&CSS.supports&&CSS.supports("scrollbar-gutter","stable"))||"u"<typeof document)return!1;let t=tm(e),r=t.documentElement,n=t.body,i=e$(r)?r:n,o=i.style.overflowY,s=r.style.scrollbarGutter;r.style.scrollbarGutter="stable",i.style.overflowY="scroll";let a=i.offsetWidth;i.style.overflowY="hidden";let l=i.offsetWidth;return i.style.overflowY=o,r.style.scrollbarGutter=s,a===l}(e)){r.style.scrollbarGutter=c,v.style.overflowY="hidden",v.style.overflowX="hidden";return}Object.assign(r.style,{scrollbarGutter:c,overflowY:"hidden",overflowX:"hidden"}),(u||p)&&(r.style.overflowY="scroll"),(d||f)&&(r.style.overflowX="scroll"),Object.assign(n.style,{position:"relative",height:g||m?`calc(100dvh - ${g+m}px)`:"100dvh",width:y||h?`calc(100vw - ${y+h}px)`:"100vw",boxSizing:"border-box",overflowY:"hidden",overflowX:"hidden",scrollBehavior:"unset"}),n.scrollTop=o,n.scrollLeft=s,r.setAttribute("data-base-ui-scroll-locked",""),r.style.scrollBehavior="unset"}
281function u(){Object.assign(r.style,iU),Object.assign(n.style,iB),a||(r.scrollTop=o,r.scrollLeft=s,r.removeAttribute("data-base-ui-scroll-locked"),r.style.scrollBehavior=i$)}c();let d=tf(i,"resize",function(){u(),l.request(c)});return()=>{l.cancel(),u(),"function"==typeof i.removeEventListener&&d()}}(e)}}let iK=new iz,iG=m.forwardRef(function(e,t){var r;let{anchor:n,positionMethod:i="absolute",className:o,render:s,side:a,align:l,sideOffset:c=0,alignOffset:u=0,collisionBoundary:d="clipping-ancestors",collisionPadding:p=5,arrowPadding:h=5,sticky:g=!1,disableAnchorTracking:y=!1,collisionAvoidance:v=ro,style:b,...x}=e,{store:w}=rt(),E=function(){let e=m.useContext(nL);if(void 0===e)throw Error(t7(32));return e}(),k=rd(!0),_=w.useState("parent"),j=w.useState("floatingRootContext"),S=w.useState("floatingTreeRoot"),O=w.useState("mounted"),T=w.useState("open"),P=w.useState("modal"),N=w.useState("openMethod"),A=w.useState("activeTriggerElement"),C=w.useState("transitionStatus"),I=w.useState("positionerElement"),q=w.useState("instantType"),R=w.useState("adaptiveOrigin"),F=w.useState("lastOpenChangeReason"),D=w.useState("floatingNodeId"),L=w.useState("floatingParentNodeId"),M=j.useState("domReferenceElement"),U=m.useRef(null),B=rI(I),$=n,W=c,z=u,K=l,G=v;"context-menu"===_.type&&($=n??_.context?.anchor,K=K??"start",a||"center"===K||(z=e.alignOffset??2,W=e.sideOffset??-5));let Q=a,H=K;"menu"===_.type?(Q=Q??"inline-end",H=H??"start",G=e.collisionAvoidance??rs):"menubar"===_.type&&(Q=Q??("vertical"===_.context.orientation?"inline-end":"bottom"),H=H??"start");
281let V="context-menu"===_.type,Y=function(e,t){var r,n,i,o,s,a,l,c,u,d,p,f,h,g;let y,v,b,x,{anchor:w,positionMethod:E="absolute",side:k="bottom",sideOffset:_=0,align:j="center",alignOffset:S=0,collisionBoundary:O,collisionPadding:T=5,sticky:P=!1,arrowPadding:N=5,disableAnchorTracking:A=!1,inline:C,keepMounted:I=!1,floatingRootContext:q,mounted:R,collisionAvoidance:F,shift:D,nodeId:L,adaptiveOrigin:M,lazyFlip:U=!1,externalTree:B}=e,[$,W]=m.useState(null);R||null===$||W(null);let z=F.side||"flip",K=F.align||"flip",G=F.fallbackAxisSide||"end",Q=D?.crossAxis??!1,H=D?.rootBoundary,V="function"==typeof w?w:void 0,Y=em(V),X=V?Y:w,J=tV(w),Z=tV(R),ee="rtl"===rc(),et=$||({top:"top",right:"right",bottom:"bottom",left:"left","inline-end":ee?"left":"right","inline-start":ee?"right":"left"})[k],er="center"===j?et:`${et}-${j}`,en=T;"number"==typeof en?en={top:en,right:en,bottom:en,left:en}:en&&(en={top:en.top||0,right:en.right||0,bottom:en.bottom||0,left:en.left||0});let ei=+("bottom"===k),eo=+("top"===k),es=+("right"===k),ea=+("left"===k),el={boundary:"clipping-ancestors"===O?"clippingAncestors":O,padding:en},ec=m.useRef(null),eu=tV(_),ed=tV(S),ep=[];C&&ep.push(C),ep.push((r=e=>{let t=iC(e,k,ee),r="function"==typeof eu.current?eu.current(t):eu.current,n="function"==typeof ed.current?ed.current(t):ed.current;return{mainAxis:r,crossAxis:n,alignmentAxis:n}},n=["function"!=typeof _?_:0,"function"!=typeof S?S:0,ee,k],void 0===(i=r)&&(i=0),{name:(y={name:"offset",options:i,async fn(e){var t,r;let{x:n,y:o,placement:s,middlewareData:a}=e,l=await ir(e,i);return s===(null==(t=a.offset)?void 0:t.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:n+l.x,y:o+l.y,data:{...l,placement:s}}}}).name,fn:y.fn,options:[r,n]}));let ef="none"===K&&"shift"!==z,eh=!ef&&(P||Q||"shift"===z),eg="none"===z?null:{name:(v={name:"flip",options:s=o={...el,padding:{top:en.top+1+ei,right:en.right+1+ea,bottom:en.bottom+1+eo,left:en.left+1+es},mainAxis:!Q&&"flip"===z,crossAxis:"flip"===K&&"alignment",fallbackAxisSideDirection:G},async fn(e){var t,r,n,i,o,a,l,c;let u,d,p,{placement:f,middlewareData:h,rects:m,initialPlacement:g,platform:y,elements:v}=e,{mainAxis:b=!0,crossAxis:x=!0,fallbackPlacements:w,fallbackStrategy:E="bestFit",fallbackAxisSideDirection:k="none",flipAlignment:_=!0,...j}=nH(s,e);if(null!=(t=h.arrow)&&t.alignmentOffset)return{};let S=nV(f),O=nZ(g),T=nV(g)===g,P=await (null==y.isRTL?void 0:y.isRTL(v.floating)),N=w||(T||!_?[n4(g)]:(u=n4(g),[n0(g),u,n0(u)])),A="none"!==k;!w&&A&&N.push(...(d=nY(g),p=function(e,t,r){switch(e){case"top":case"bottom":if(r)return t?n2:n1;return t?n1:n2;case"left":case"right":return t?n5:n3;default:return[]}}(nV(g),"start"===k,P),d&&(p=p.map(e=>e+"-"+d),_&&(p=p.concat(p.map(n0)))),p));let C=[g,...N],I=await y.detectOverflow(e,j),q=[],R=(null==(r=h.flip)?void 0:r.overflows)||[];if(b&&q.push(I[S]),x){let e,t,r,n,i=(a=f,l=m,void 0===(c=P)&&(c=!1),e=nY(a),r=nJ(t=nX(nZ(a))),n="x"===t?e===(c?"end":"start")?"right":"left":"start"===e?"bottom":"top",l.reference[r]>l.floating[r]&&(n=n4(n)),[n,n4(n)]);q.push(I[i[0]],I[i[1]])}if(R=[...R,{placement:f,overflows:q}],!q.every(e=>e<=0)){let e=((null==(n=h.flip)?void 0:n.index)||0)+1,t=C[e];if(t&&("alignment"!==x||O===nZ(t)||R.every(e=>nZ(e.placement)!==O||e.overflows[0]>0)))return{data:{index:e,overflows:R},reset:{placement:t}};let r=null==(i=R.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!r)switch(E){case"bestFit":{let e=null==(o=R.filter(e=>{if(A){let t=nZ(e.placement);return t===O||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:o[0];e&&(r=e);break}case"initialPlacement":r=g}if(f!==r)return{reset:{placement:r}}}return{}}}).name,fn:v.fn,options:[o,void 0]},ey=ef?null:(c={...el,rootBoundary:H,mainAxis:"none"!==K,crossAxis:eh,limiter:P||Q?void 0:{fn:(void 0===(l=a=e=>{if(!ec.current)return{};let{width:t,height:r}=ec.current.getBoundingClientRect(),n=nZ(nV(e.placement)),i="y"===n?en.left+en.right:en.top+en.bottom;return{offset:("y"===n?t:r)/2+i/2}})&&(l={}),{options:l,fn(e){var t,r,n,i;let{x:o,y:s,placement:a,rects:c,middlewareData:u}=e,{offset:d=0,mainAxis:p=!0,crossAxis:f=!0}=nH(l,e),h={x:o,y:s},m=nZ(a),g=nX(m),y=h[g],v=h[m],b=nH(d,e),x="number"==typeof b?{mainAxis:b,crossAxis:0}:{mainAxis:null!=(t=b.mainAxis)?t:0,crossAxis:null!=(r=b.crossAxis)?r:0};if(p){let e="y"===g?"height":"width",t=c.reference[g]-c.floating[e]+x.mainAxis,r=c.reference[g]+c.reference[e]-x.mainAxis;y<t?y=t:y>r&&(y=r)}if(f){let e="y"===g?"width":"height",t=it.has(nV(a)),r=c.reference[m]-c.floating[e]+(t&&(null==(n=u.offset)?void 0:n[m])||0)+(t?0:x.crossAxis),o=c.reference[m]+c.reference[e]+(t?0:(null==(i=u.offset)?void 0:i[m])||0)-(t?x.crossAxis:0);v<r?v=r:v>o&&(v=o)}return{[g]:y,[m]:v}}}).fn,options:[a,void 0]}},u=[el,P,Q,H,en,K],void 0===(d=c)&&(d={}),{name:(b={name:"shift",options:d,async fn(e){let{x:t,y:r,placement:n,platform:i}=e,{mainAxis:o=!0,crossAxis:s=!1,limiter:a={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...l}=nH(d,e),c={x:t,y:r},u=await i.detectOverflow(e,l),p=nZ(n),f=nX(p),h=c[f],m=c[p],g=(e,t)=>nW(t+u["y"===e?"top":"left"],n$(t,t-u["y"===e?"bottom":"right"]));o&&(h=g(f,h)),s&&(m=g(p,m));let y=a.fn({...e,[f]:h,[p]:m});return{...y,data:{x:y.x-t,y:y.y-r,enabled:{[f]:o,[p]:s}}}}}).name,fn:b.fn,options:[c,u]});"shift"===z||"shift"===K||"center"===j?ep.push(ey,eg):ep.push(eg,ey),ep.push({name:(x={name:"size",options:f=p={...el,apply({elements:{floating:e},availableWidth:t,availableHeight:r,rects:n}
281){if(!Z.current)return;let i=e.style;i.setProperty(iP,`${t}px`),i.setProperty(iN,`${r}px`);let o=eF(e).devicePixelRatio||1,{x:s,y:a,width:l,height:c}=n.reference,u=(Math.round((s+l)*o)-Math.round(s*o))/o,d=(Math.round((a+c)*o)-Math.round(a*o))/o;i.setProperty("--anchor-width",`${u}px`),i.setProperty("--anchor-height",`${d}px`)}},async fn(e){let t,r,{placement:n,rects:i,platform:o,elements:s}=e,{apply:a=()=>{},...l}=nH(f,e),c=await o.detectOverflow(e,l),u=nV(n),d=nY(n),p="y"===nZ(n),{width:h,height:m}=i.floating;"top"===u||"bottom"===u?(t=u,r=d===(await (null==o.isRTL?void 0:o.isRTL(s.floating))?"start":"end")?"left":"right"):(r=u,t="end"===d?"top":"bottom");let g=m-c.top-c.bottom,y=h-c.left-c.right,v=n$(m-c[t],g),b=n$(h-c[r],y),x=e.middlewareData.shift,w=!x,E=v,k=b;null!=x&&x.enabled.x&&(k=y),null!=x&&x.enabled.y&&(E=g),w&&!d&&(p?k=h-2*nW(c.left,c.right):E=m-2*nW(c.top,c.bottom)),await a({...e,availableWidth:k,availableHeight:E});let _=await o.getDimensions(s.floating);return h!==_.width||m!==_.height?{reset:{rects:!0}}:{}}}).name,fn:x.fn,options:[p,void 0]},(h=e=>({element:ec.current||tm(e.elements.floating).createElement("div"),padding:N,offsetParent:"floating"}),g=[N],{...{name:"arrow",options:h,async fn(e){let{x:t,y:r,placement:n,rects:i,platform:o,elements:s,middlewareData:a}=e,{element:l,padding:c=0,offsetParent:u="real"}=nH(h,e)||{};if(null==l)return{};let d=n6(c),p={x:t,y:r},f=nX(nZ(n)),m=nJ(f),g=await o.getDimensions(l),y="y"===f,v=y?"clientHeight":"clientWidth",b=i.reference[m]+i.reference[f]-p[f]-i.floating[m],x=p[f]-i.reference[f],w="real"===u?await o.getOffsetParent?.(l):s.floating,E=s.floating[v]||i.floating[m];E&&await o.isElement?.(w)||(E=s.floating[v]||i.floating[m]);let k=E/2-g[m]/2-1,_=Math.min(d[y?"top":"left"],k),j=Math.min(d[y?"bottom":"right"],k),S=E-g[m]-j,O=E/2-g[m]/2+(b/2-x/2),T=nW(_,n$(O,S)),P=!a.arrow&&null!=nY(n)&&O!==T&&i.reference[m]/2-(O<_?_:j)-g[m]/2<0,N=P?O<_?O-_:O-S:0;return{[f]:p[f]+N,data:{[f]:T,centerOffset:O-T-N,...P&&{alignmentOffset:N}},reset:P}}},options:[h,g]}),{name:"transformOrigin",fn(e){let{elements:t,middlewareData:r,placement:n,rects:i,y:o}=e,s=nV(n),a=nZ(s),l=ec.current,c=r.arrow?.x||0,u=r.arrow?.y||0,d=l?.clientWidth||0,p=l?.clientHeight||0,f=c+d/2,h=u+p/2,m=Math.abs(r.shift?.y||0),g=i.reference.height/2,y="function"==typeof _?_(iC(e,k,ee)):_,v=m>y,b={top:`${f}px calc(100% + ${y}px)`,bottom:`${f}px ${-y}px`,left:`calc(100% + ${y}px) ${h}px`,right:`${-y}px ${h}px`}[s],x=`${f}px ${i.reference.y+g-o}px`;return t.floating.style.setProperty("--transform-origin",eh&&"y"===a&&v?x:b),{}}},iO,M),ew(()=>{!R&&q&&q.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[R,q]);let ev=m.useMemo(()=>({elementResize:!A&&"u">typeof ResizeObserver,layoutShift:!A&&"u">typeof IntersectionObserver}),[A]),{refs:eb,elements:ex,x:eE,y:ek,middlewareData:e_,update:ej,placement:eS,context:eO,isPositioned:eT,floatingStyles:eP}=t({rootContext:q,open:I?R:void 0,placement:er,middleware:ep,strategy:E,whileElementsMounted:I?void 0:(...e)=>ix(...e,ev),nodeId:L,externalTree:B}),{sideX:eN,sideY:eA}=e_.adaptiveOrigin||iT,eC=eT?E:"fixed",eI=m.useMemo(()=>{let e;return(e=eT?M?{position:eC,[eN]:eE,[eA]:ek}:{...eP,position:eC}:{position:eC,top:0,left:0})[iP]="100vw",e[iN]="100vh",eT||(e.opacity=0),e},[M,eC,eN,eE,eA,ek,eP,eT]),eq=m.useRef(null);ew(()=>{if(!R)return;let e=J.current,t="function"==typeof e?e():e,r=(iI(t)?t.current:t)||null;r!==eq.current&&(eb.setPositionReference(r),eq.current=r)},[R,eb,X,J]),m.useEffect(()=>{if(!R)return;let e=J.current;"function"!=typeof e&&iI(e)&&e.current!==eq.current&&(eb.setPositionReference(e.current),eq.current=e.current)},[R,eb,X,J]),m.useEffect(()=>{if(I&&R&&ex.reference&&ex.floating)return ix(ex.reference,ex.floating,ej,ev)},[I,R,ex,ej,ev]);let eR=nV(eS),eD=iA(k,eR,ee),eL=nY(eS)||"center",eM=!!e_.hide?.referenceHidden;ew(()=>{U&&R&&eT&&eR!==et&&W(eR)},[U,R,eT,eR,et]);let eU=m.useMemo(()=>({position:"absolute",top:e_.arrow?.y,left:e_.arrow?.x}),[e_.arrow]),eB=e_.arrow?.centerOffset!==0;return m.useMemo(()=>({positionerStyles:eI,arrowStyles:eU,arrowRef:ec,arrowUncentered:eB,side:eD,align:eL,physicalSide:eR,anchorHidden:eM,refs:eb,context:eO,isPositioned:eT,update:ej}),[eI,eU,ec,eB,eD,eL,eR,eM,eb,eO,eT,ej])}({anchor:$,floatingRootContext:j,positionMethod:k?"fixed":i,mounted:O,side:Q,sideOffset:W,align:H,alignOffset:z,arrowPadding:V?0:h,collisionBoundary:d,collisionPadding:p,sticky:g,nodeId:D,keepMounted:E,disableAnchorTracking:y,collisionAvoidance:G,shift:V?{crossAxis:!("side"in G&&"flip"===G.side),rootBoundary:"layoutViewport"}:void 0,externalTree:S,adaptiveOrigin:R},iS);m.useEffect(()=>{function e(e){e.open&&(e.parentNodeId===D&&w.set("hoverEnabled",!1),e.nodeId!==D&&e.parentNodeId===w.select("floatingParentNodeId")&&w.setOpen(!1,ty(tS)))}return S.events.on("menuopenchange",e),()=>{S.events.off("menuopenchange",e)}},[w,S.events,D]),m.useEffect(()=>{if(null!=w.select("floatingParentNodeId"))return S.events.on("menuopenchange",e),()=>{S.events.off("menuopenchange",e)};function e(e){if(e.open||e.nodeId!==w.select("floatingParentNodeId"))return;let t=e.reason??tS;w.setOpen(!1,ty(t))}},[S.events,w]);let X=ed();m.useEffect(()=>{T||X.clear()},[T,X]),m.useEffect(()=>{function e(e){if(T&&e.nodeId===w.select("floatingParentNodeId"))if(e.target&&A&&A!==e.target){let e=w.select("closeDelay");e>0?X.isStarted()||X.start(e,()=>{w.setOpen(!1,ty(tS))}):w.setOpen(!1,ty(tS))}else X.clear()}return S.events.on("itemhover",e),()=>{S.events.off("itemhover",e)}},[S.events,T,A,w,X]),m.useEffect(()=>{let e={open:T,nodeId:D,parentNodeId:L,reason:w.select("lastOpenChangeReason")};S.events.emit("menuopenchange",e)},[S.events,T,w,D,L]),ew(()=>{let e=U.current;if(M&&(U.current=M),e&&M&&M!==e){w.set("instantType",void 0);let e=new AbortController;return B(()=>{w.set("instantType","trigger-change")},e.signal),()=>{e.abort()}}},[M,B,w]);let J={open:T,side:Y.side,align:Y.align,anchorHidden:Y.anchorHidden,nested:"menu"===_.type,instant:q},Z="menubar"===_.type&&_.context.modal,ee=P&&F!==tb;!function(e,t,r,n){let[i,o]=m.useState(!1);ew(()=>
281{if(!e||!t||null==r)return void o(!1);let n=tm(r).documentElement.clientWidth,i=r.offsetWidth;o(n>0&&i>0&&i>=n-20)},[e,t,r]),function(e=!0,t=null){ew(()=>{if(e)return iK.acquire(t)},[e,t])}(e&&(!t||i),n)}(T&&(Z||ee),"touch"===N,I,A);let et=function(e,t,{styles:r,transitionStatus:n,props:i,refs:o,hidden:s,inert:a=!1}){let l={...r};return a&&(l.pointerEvents="none"),ni("div",e,{state:t,ref:o,props:[{role:"presentation",hidden:s,style:l},iM(n),i],stateAttributesMapping:r9})}(e,J,{styles:Y.positionerStyles,transitionStatus:C,props:x,refs:[t,w.useStateSetter("positionerElement")],hidden:!O,inert:!T}),er=O&&"menu"!==_.type&&("menubar"!==_.type&&P&&F!==tb||"menubar"===_.type&&_.context.modal),en=null;return"menubar"===_.type?en=_.context.contentElement:void 0===_.type&&(en=A),(0,f.jsxs)(nU.Provider,{value:Y,children:[er&&(0,f.jsx)(iL,{ref:"context-menu"===_.type||"nested-context-menu"===_.type?_.context.internalBackdropRef:null,inert:(r=!T,e5>=19?r:r?"true":void 0),cutout:en}),(0,f.jsx)(eC,{id:D,children:(0,f.jsx)(iq,{elementsRef:w.context.itemDomElements,labelsRef:w.context.itemLabels,children:et})})]})}),iQ={inert:new WeakMap,"aria-hidden":new WeakMap},iH="data-base-ui-inert",iV={inert:new WeakSet,"aria-hidden":new WeakSet},iY=new WeakMap,iX=0,iJ=(e,t)=>t.map(t=>{if(e.contains(t))return t;let r=function e(t){return t?eB(t)?t.host:e(t.parentNode):null}(t);return e.contains(r)?r:null}).filter(e=>null!=e),iZ=e=>{let t=new Set;return e.forEach(e=>{let r=e;for(;r&&!t.has(r);)t.add(r),r=r.parentNode}),t},i0=(e,t,r)=>{let n=[],i=e=>{!e||r.has(e)||Array.from(e.children).forEach(e=>{"script"!==eR(e)&&(t.has(e)?i(e):n.push(e))})};return i(e),n};function i1(e,t={}){let{ariaHidden:r=!1,inert:n=!1,mark:i=!0}=t,o=tm(e[0]).body;return function(e,t,r,n,{mark:i=!0}){let o=null;n?o="inert":r&&(o="aria-hidden");let s=null,a=null,l=iJ(t,e),c=i?i0(t,iZ(l),new Set(l)):[],u=[],d=[];if(o){let e=iQ[o],r=iV[o];a=r,s=e;let n=iJ(t,Array.from(t.querySelectorAll("[aria-live]"))),i=l.concat(n);i0(t,iZ(i),new Set(i)).forEach(t=>{let n=t.getAttribute(o),i=null!==n&&"false"!==n,s=(e.get(t)||0)+1;e.set(t,s),u.push(t),1===s&&i&&r.add(t),i||t.setAttribute(o,"inert"===o?"":"true")})}return i&&c.forEach(e=>{let t=(iY.get(e)||0)+1;iY.set(e,t),d.push(e),1===t&&e.setAttribute(iH,"")}),iX+=1,()=>{s&&u.forEach(e=>{let t=(s.get(e)||0)-1;s.set(e,t),t||(!a?.has(e)&&o&&e.removeAttribute(o),a?.delete(e))}),i&&d.forEach(e=>{let t=(iY.get(e)||0)-1;iY.set(e,t),t||e.removeAttribute(iH)}),(iX-=1)||(iQ.inert=new WeakMap,iQ["aria-hidden"]=new WeakMap,iV.inert=new WeakSet,iV["aria-hidden"]=new WeakSet,iY=new WeakMap)}}(e,o,r,n,{mark:i})}let i2=[];function i5(){i2=i2.filter(e=>e.deref()?.isConnected)}function i3(e){i5(),e&&"body"!==eR(e)&&(i2.push(new WeakRef(e)),i2.length>20&&(i2=i2.slice(-20)))}function i4(){return i5(),i2[i2.length-1]?.deref()}function i6(e){if(e.hasAttribute("tabindex")&&!e.hasAttribute("data-tabindex")||!e.getAttribute("role")?.includes("dialog"))return;let t=nw(e).filter(e=>{let t=e.getAttribute("data-tabindex")||"";return nx(e)||e.hasAttribute("data-tabindex")&&!t.startsWith("-")}),r=e.getAttribute("tabindex");0===t.length?"0"!==r&&(e.setAttribute("tabindex","0"),e.setAttribute("data-tabindex","0")):("-1"!==r||e.hasAttribute("data-tabindex")&&"-1"!==e.getAttribute("data-tabindex"))&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}function i8(e){let{context:t,children:r,disabled:n=!1,initialFocus:i=!0,returnFocus:o=!0,restoreFocus:s=!1,modal:a=!0,closeOnFocusOut:l=!0,openInteractionType:c="",nextFocusableElement:u,previousFocusableElement:d,beforeContentFocusGuardRef:p,externalTree:h,getInsideElements:g}=e,y="rootStore"in t?t.rootStore:t,v=y.useState("open"),b=y.useState("domReferenceElement"),x=y.useState("floatingElement"),{events:w,dataRef:E}=y.context,k=em(()=>E.current.floatingContext?.nodeId),_=tU(b)&&!1===i,j=tV(i),S=tV(o),O=tV(c),T=tV(v),P=eN(h),N=m.useContext(nR),A=m.useRef(!1),C=m.useRef(!1),I=m.useRef(!1),q=m.useRef(null),R=m.useRef(""),F=m.useRef(""),D=m.useRef(null),L=m.useRef(null),M=ne(D,p,N?.beforeInsideRef),U=ne(L,N?.afterInsideRef),B=ed(),$=ed(),W=tH(),z=null!=N,K=tB(x),G=em
281((e=K)=>e?nE(e):[]),Q=em(()=>g?.().filter(e=>null!=e)??[]);m.useEffect(()=>{if(!n&&a)return tf(tm(K),"keydown",function(e){"Tab"===e.key&&tR(K,tq(tm(K)))&&0===G().length&&!_&&ta(e)})},[n,K,a,_,G]),m.useEffect(()=>{if(n||!v)return;let e=tm(K);function t(){I.current=!1}return th(tf(e,"pointerdown",function(e){let t=tF(e),r=Q();I.current=!(tR(x,t)||tR(b,t)||tR(N?.portalNode,t)||r.some(e=>e===t||tR(e,t))),F.current=e.pointerType||"keyboard",t?.closest("[data-base-ui-click-trigger]")&&(C.current=!0,$.start(0,()=>{C.current=!1}))},!0),tf(e,"pointerup",t,!0),tf(e,"pointercancel",t,!0),tf(e,"keydown",function(){F.current="keyboard"},!0),t)},[n,x,b,K,v,N,$,Q]),m.useEffect(()=>{if(n||!l)return;let e=tm(K);function t(t){let r=t.relatedTarget,n=t.currentTarget,i=tF(t);a&&null==r&&null!=i&&tR(x,i)&&i3(i),queueMicrotask(()=>{let o=k(),l=y.context.triggerElements,c=Q(),p=r?.hasAttribute(tO("focus-guard"))&&[D.current,L.current,N?.beforeInsideRef.current,N?.afterInsideRef.current,N?.beforeOutsideRef.current,N?.afterOutsideRef.current,rC(d),rC(u)].includes(r),f=!(tR(b,r)||tR(x,r)||tR(r,x)||tR(N?.portalNode,r)||c.some(e=>e===r||tR(e,r))||l.hasMatchingElement(e=>tR(e,r))||p||P&&(t$(P.nodesRef.current,o).find(e=>tR(e.context?.elements.floating,r)||tR(e.context?.elements.domReference,r))||tW(P.nodesRef.current,o).find(e=>[e.context?.elements.floating,tB(e.context?.elements.floating)].includes(r)||e.context?.elements.domReference===r)));if(n===b&&K&&i6(K),s&&n!==b&&!t2(i)&&tq(e)===e.body){if(eU(K)&&(K.focus(),"popup"===s))return void W.request(()=>{K.focus()});let e=G(),t=q.current,r=(t&&e.includes(t)?t:null)||e[e.length-1]||K;eU(r)&&r.focus()}if(E.current.insideReactTree){E.current.insideReactTree=!1;return}(_||!a)&&r&&f&&!C.current&&(_||r!==i4())&&(A.current=!0,y.setOpen(!1,ty(tk,t)))})}let r=eU(b)?b:null;if(x||r)return th(r&&tf(r,"focusout",t),r&&tf(r,"pointerdown",function(){C.current=!0,$.start(0,()=>{C.current=!1})}),x&&tf(x,"focusin",function(e){let t=tF(e);nx(t)&&(q.current=t)}),x&&tf(x,"focusout",t),x&&N&&tf(x,"focusout",function(){I.current||(E.current.insideReactTree=!0,B.start(0,()=>{E.current.insideReactTree=!1}))},!0))},[n,b,x,K,a,P,N,y,l,s,G,_,k,E,B,$,W,u,d,Q]),m.useEffect(()=>{if(n||!x||!v)return;let e=Array.from(N?.portalNode?.querySelectorAll(`[${tO("portal")}]`)||[]),t=P?tW(P.nodesRef.current,k()):[],r=t.find(e=>tU(e.context?.elements.domReference||null))?.context?.elements.domReference,i=i1([x,...e,D.current,L.current,N?.beforeOutsideRef.current,N?.afterOutsideRef.current,...Q(),r,rC(d),rC(u),_?b:null].filter(e=>null!=e),{ariaHidden:a||_,mark:!1}),o=i1([x,...e].filter(e=>null!=e));return()=>{o(),i()}},[v,n,b,x,a,N,_,P,k,u,d,Q]),ew(()=>{if(!v||n||!eU(K))return;R.current="",F.current="";let e=tm(K),t=tq(e);queueMicrotask(()=>{let r,n=j.current,i="function"==typeof n?n(O.current||""):n;if(void 0===i||!1===i||tR(K,t))return;let o=null,s=()=>(null==o&&(o=G(K)),o[0]||K);r=(r=!0===i||null===i?s():rC(i))||s();let a=tR(K,tq(e));t3(r,{preventScroll:r===K,shouldFocus(){if(!T.current)return!1;if(a)return!0;let t=tq(e);return!(t!==r&&tR(K,t))}})})},[n,v,K,G,j,O,T]),ew(()=>{if(n||!K)return;let e=tm(K),t=tq(e),r=null==O.current;function i(e){var t,r;let n;if(e.open||(t=e.nativeEvent,r=F.current,n=eF(tF(t)),R.current=t instanceof n.KeyboardEvent?"keyboard":t instanceof n.FocusEvent?r||"keyboard":"pointerType"in t?t.pointerType||"keyboard":"touches"in t?"touch":t instanceof n.MouseEvent?r||(0===t.detail?"keyboard":"mouse"):""),e.reason===tb&&"mouseleave"===e.nativeEvent.type&&(A.current=!0),e.reason===tw)if(e.nested)A.current=!1;else if(tl(e.nativeEvent)||tc(e.nativeEvent))A.current=!1;else{let e=!1;tm(K).createElement("div").focus({get preventScroll(){return e=!0,!1}}),e?A.current=!1:A.current=!0}}return i3(t),w.on("openchange",i),()=>{w.off("openchange",i);let n=tq(e),o=Q(),s=tR(x,n)||o.some(e=>e===n||tR(e,n))||P&&t$(P.nodesRef.current,k(),!1).some(e=>tR(e.context?.elements.floating,n)),a=S.current,l=R.current,c=function(e){let n=S.current,i="function"==typeof n?n(e):n;if(void 0===i||!1===i)return null;null===i&&(i=!0);let o=b?.isConnected?b:null,s=t?.isConnected&&"body"!==eR(t)?t:null,a=r?s||o:o||s;return(a||(a=i4()||null),"boolean"==typeof i)?a:rC(i)||a||null}(l);queueMicrotask(()=>{let t=c?nx(c)?c:nE(c)[0]||c:null;if(a&&!A.current&&eU(t)&&("boolean"!=typeof a||t===n||n===e.body||s)){let e={preventScroll:!0};"keyboard"===l&&(e.focusVisible=!0),t.focus(e)}A.current=!1})}},[n,x,K,S,O,w,P,b,k,Q]),ew(()=>
281{if(!tg||v||!x)return;let e=tq(tm(x));eU(e)&&tM(e)&&tR(x,e)&&e.blur()},[v,x]),ew(()=>{if(!n&&N)return N.setFocusManagerState({modal:a,closeOnFocusOut:l,open:v,onOpenChange:y.setOpen,domReference:b}),()=>{N.setFocusManagerState(null)}},[n,N,a,v,y,l,b]),ew(()=>{if(!n&&K)return i6(K),()=>{queueMicrotask(i5)}},[n,K]);let H=!n&&(!a||!_)&&(z||a);return(0,f.jsxs)(m.Fragment,{children:[H&&(0,f.jsx)(nI,{"data-type":"inside",ref:M,onFocus:e=>{if(a){let e=G();t3(e[e.length-1])}else if(N?.portalNode)if(A.current=!1,nO(e,N.portalNode)){let e=n_(b);e?.focus()}else rC(d??N.beforeOutsideRef)?.focus()}}),r,H&&(0,f.jsx)(nI,{"data-type":"inside",ref:U,onFocus:e=>{if(a)t3(G()[0]);else if(N?.portalNode)if(l&&(A.current=!0),nO(e,N.portalNode)){let e=nj(b);e?.focus()}else rC(u??N.afterOutsideRef)?.focus()}})]})}let i9=m.createContext(void 0),i7=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Home","End"]),oe=m.forwardRef(function(e,t){let{render:r,className:n,style:i,finalFocus:o,...s}=e,{store:a}=rt(),{side:l,align:c}=nB(),u=null!=function(e){let t=m.useContext(i9);if(void 0===t&&!e)throw Error(t7(69));return t}(!0),d=a.useState("open"),p=a.useState("transitionStatus"),h=a.useState("popupProps"),g=a.useState("mounted"),y=a.useState("instantType"),v=a.useState("activeTriggerElement"),b=a.useState("parent"),x=a.useState("lastOpenChangeReason"),w=a.useState("rootId"),E=a.useState("floatingRootContext"),k=a.useState("floatingTreeRoot"),_=a.useState("closeDelay"),j=a.useState("hoverEnabled"),S=a.useState("disabled"),O=a.useState("openMethod"),T="context-menu"===b.type;rq({open:d,ref:a.context.popupRef,onComplete(){d&&a.context.onOpenChangeComplete?.(!0)}}),m.useEffect(()=>{function e(e){a.setOpen(!1,ty(e.reason,e.domEvent))}return k.events.on("close",e),()=>{k.events.off("close",e)}},[k.events,a]),function(e,t={}){let{enabled:r=!0,closeDelay:n=0,nodeId:i}=t,o="rootStore"in e?e.rootStore:e,s=o.useState("open"),a=o.useState("floatingElement"),l=o.useState("domReferenceElement"),{dataRef:c}=o.context,u=eN(),d=eP(),p=rW(o),f=ed(),h=em(()=>rG(c.current.openEvent?.type,p.interactedInside)),g=em(()=>{var e;return e=c.current.openEvent?.type,e?.includes("mouse")&&"mousedown"!==e}),y=em(()=>{rB(p)});ew(()=>{s||(p.pointerType=void 0,p.restTimeoutPending=!1,p.interactedInside=!1,y())},[s,p,y]),m.useEffect(()=>y,[y]),ew(()=>{if(r&&s&&p.handleCloseOptions?.blockPointerEvents&&g()&&eM(l)&&a){let e=tm(a),t=u?.nodesRef.current.find(e=>e.id===d)?.context?.elements.floating;t&&(t.style.pointerEvents="");let r=p.pointerEventsScopeElement!==a?p.pointerEventsScopeElement:null,n=t!==a?t:null,i=p.handleCloseOptions?.getScope?.()??r??n??l.closest("[data-rootownerid]")??e.body;return r$(p,{scopeElement:i,referenceElement:l,floatingElement:a}),()=>{y()}}},[r,s,l,a,p,g,u,d,y]),m.useEffect(()=>{if(r)return th(a&&tf(a,"mouseenter",function(){p.openChangeTimeout.clear(),f.clear(),u?.events.off("floating.closed",t),y()}),a&&tf(a,"mouseleave",function(r){if(e()&&u)return void u.events.on("floating.closed",t);if(tD(r.relatedTarget,o.context.triggerElements))return;let s=c.current.floatingContext?.nodeId??i,a=r.relatedTarget;if(!(u&&s&&eM(a)&&t$(u.nodesRef.current,s,!1).some(e=>tR(e.context?.elements.floating,a)))){let e,t;if(p.handler)return void p.handler(r);y(),g()&&!h()&&(e=rz(n,"close",p.pointerType),t=()=>{o.setOpen(!1,ty(tb,r)),u?.events.emit("floating.closed",r)},e?p.openChangeTimeout.start(e,t):(p.openChangeTimeout.clear(),t()))}}),a&&tf(a,"pointerdown",function(e){let t=tF(e);if(t?.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${tP}`)==null){p.interactedInside=!1;return}p.interactedInside=t?.closest("[aria-haspopup]")!=null},!0),()=>{u?.events.off("floating.closed",t)});function e(){return!!(u&&d&&t$(u.nodesRef.current,d).length>0)}function t(r){!u||!d||e()||f.start(0,()=>{u.events.off("floating.closed",t),o.setOpen(!1,ty(tb,r)),u.events.emit("floating.closed",r)})}},[r,a,o,c,n,i,g,h,y,p,u,d,f])}(E,{enabled:j&&!S&&!T&&"menubar"!==b.type,closeDelay:_});let P=a.useStateSetter("popupElement"),N=ni("div",e,{state:{transitionStatus:p,side:l,align:c,open:d,nested:"menu"===b.type,instant:y}
281,ref:[t,a.context.popupRef,P],stateAttributesMapping:r7,props:[h,{onKeyDown(e){u&&i7.has(e.key)&&e.stopPropagation()}},iM(p),s,{"data-rootownerid":w}]}),A=void 0===b.type||T;return(v||"menubar"===b.type&&x!==tw)&&(A=!0),(0,f.jsx)(i8,{context:E,openInteractionType:O,modal:T,disabled:!g,returnFocus:void 0===o?A:o,initialFocus:"menu"!==b.type,restoreFocus:!0,externalTree:"menubar"!==b.type?k:void 0,previousFocusableElement:v,nextFocusableElement:void 0===b.type?a.context.triggerFocusTargetRef:void 0,beforeContentFocusGuardRef:void 0===b.type?a.context.beforeContentFocusGuardRef:void 0,children:N})}),ot=m.createContext(void 0),or=m.createContext(void 0),on=m.memo(m.forwardRef(function(e,t){let{render:r,className:n,value:i,defaultValue:o,onValueChange:s,disabled:a=!1,style:l,"aria-labelledby":c,...u}=e,[d,p]=m.useState(void 0),[h,g]=function({controlled:e,default:t,name:r,state:n="value"}){let{current:i}=m.useRef(void 0!==e),[o,s]=m.useState(t),a=m.useCallback(e=>{i||s(e)},[]);return[i?e:o,a]}({controlled:i,default:o,name:"MenuRadioGroup"}),y=em((e,t)=>{s?.(e,t),t.isCanceled||g(e)}),v=ni("div",e,{state:{disabled:a},ref:t,props:{role:"group","aria-labelledby":c??d,"aria-disabled":a||void 0,...u}}),b=m.useMemo(()=>({value:h,setValue:y,disabled:a}),[h,y,a]);return(0,f.jsx)(or.Provider,{value:p,children:(0,f.jsx)(ot.Provider,{value:b,children:v})})})),oi=m.createContext(void 0),oo=((l={}).checked="data-checked",l.unchecked="data-unchecked",l.disabled="data-disabled",l.highlighted="data-highlighted",l),os={checked:e=>e?{[oo.checked]:""}:{[oo.unchecked]:""},...r2},oa={type:"regular-item"},ol=m.forwardRef(function(e,t){let{render:r,className:n,id:i,label:o,nativeButton:s=!1,disabled:a=!1,closeOnClick:l=!1,value:c,style:u,...d}=e,p=np({guess:!0,label:o}),h=nB(!0),g=nP(i),{store:y}=rt(),v=y.useState("isActive",p.index),b=y.useState("itemProps"),{value:x,setValue:w,disabled:E}=function(){let e=m.useContext(ot);if(void 0===e)throw Error(t7(34));return e}(),k=y.useState("disabled"),_=a||E||k,j=x===c,{getItemProps:S,itemRef:O}=function(e){let{closeOnClick:t,disabled:r,highlighted:n,id:i,store:o,typingRef:s=o.context.typingRef,nativeButton:a,itemMetadata:l,nodeId:c}=e,u=m.useRef(null),{getButtonProps:d,buttonRef:p}=nc({disabled:r,focusableWhenDisabled:!0,native:a,composite:!0}),f=function(e){let{closeOnClick:t,highlighted:r,id:n,nodeId:i,store:o,typingRef:s,itemRef:a,itemMetadata:l}=e,{events:c}=o.useState("floatingTreeRoot"),u=o.useState("open"),d=rd(!0),p=void 0!==d;return m.useMemo(()=>({id:n,role:"menuitem",tabIndex:u&&r?0:-1,onKeyDown(e){" "===e.key&&s?.current&&e.preventDefault()},onMouseMove(e){i&&c.emit("itemhover",{nodeId:i,target:e.currentTarget})},onClick(e){t&&c.emit("close",{domEvent:e,reason:tE})},onMouseUp(e){if(d){let t=d.initialCursorPointRef.current;if(d.initialCursorPointRef.current=null,p&&t&&1>=Math.abs(e.clientX-t.x)&&1>=Math.abs(e.clientY-t.y)||p&&!to&&2===e.button)return}a.current&&o.context.allowMouseUpTriggerRef.current&&(!p||2===e.button)&&"regular-item"===l.type&&nl(a.current,e,{detail:1})}}),[t,r,n,c,i,u,o,s,a,d,p,l])}({closeOnClick:t,highlighted:n,id:i,nodeId:c,store:o,typingRef:s,itemRef:u,itemMetadata:l}),h=m.useCallback(e=>rh(f,{onMouseEnter(){"submenu-trigger"===l.type&&l.setActive()}},e,d),[f,d,l]),g=ne(u,p);return m.useMemo(()=>({getItemProps:h,itemRef:g}),[h,g])}({closeOnClick:l,disabled:_,highlighted:v,id:g,store:y,nativeButton:s,nodeId:h?.context.nodeId,itemMetadata:oa}),T=m.useMemo(()=>({disabled:_,highlighted:v,checked:j}),[_,v,j]),P=ni("div",e,{state:T,stateAttributesMapping:os,props:[b,{role:"menuitemradio","aria-checked":j,onClick:function(e){w(c,ty(tE,e.nativeEvent,void 0,{preventUnmountOnClose:es}))}},d,S],ref:[O,t,p.ref]});return(0,f.jsx)(oi.Provider,{value:T,children:P})}),oc=m.forwardRef(function(e,t){let{render:r,className:n,style:i,keepMounted:o=!1,...s}=e,a=function(){let e=m.useContext(oi);if(void 0===e)throw Error(t7(35));return e}(),l=m.useRef(null),{transitionStatus:c,mounted:u,setMounted:d}=rA(a.checked);return rq({open:a.checked,ref:l,onComplete(){a.checked||d(!1)}}),ni("span",e,{state:{checked:a.checked,disabled:a.disabled,highlighted:a.highlighted,transitionStatus:c},stateAttributesMapping:os,ref:[t,l],props:{"aria-hidden":!0,...s},enabled:o||u})}),ou=m.forwardRef(function(e,t){let{render:r,className:n,style:i,id:o,...s}=e,a=nP(o),l=function(){let e=m.useContext(or);if(void 0===e)throw Error(t7(31));return e}();return ew(()=>(l(a),()=>{l(e=>e===a?void 0:e)}),[l,a]),ni("div",e,{ref:t,props:{id:a,role:"presentation",...s}})});function od(e){return`${e.charAt(0).toLocaleUpperCase()}${e.substring(1)}`}function op(e,t){return e.collections.find(e=>(null==e?void 0:e.source.sourceId)===t)}function of(e){return e.replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&#039;/g,"'").replace(/&amp;/g,"&")}let oh=["lvl0","lvl1","lvl2","lvl3","lvl4","lvl5","lvl6"],om=new Map;function og(e,t,r){return e.reduce((e,n)=>{let i=t(n);return e.hasOwnProperty(i)||(e[i]=[]),e[i].length<(r||5)&&e[i].push(n),e},{})}function oy(e){return e}function ov(e){return 1===e.button||e.altKey||e.ctrlKey||e.metaKey||e.shiftKey}function ob(e){return!e||0===e.trim().length}function ox(){}let ow=/(<mark>|<\/mark>)/g,oE=RegExp(ow.source);function ok(e){var t,r;if(!e.__docsearch_parent&&!e._highlightResult)return e.hierarchy.lvl0;let n=e.__docsearch_parent?null==(t=e.__docsearch_parent)||null==(t=t._highlightResult)||null==(t=t.hierarchy)?void 0:t.lvl0:null==(r=e._highlightResult)||null==(r=r.hierarchy)?void 0:r.lvl0;return n?n.value&&oE.test(n.value)?n.value.replace(ow,""):n.value:e.hierarchy.lvl0}function o_(){return m.createElement("svg",{className:"DocSearch-Hit-Select-Icon",width:"20",height:"20",viewBox:"0 0 20 20"},m.createElement("g",{stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"},m.createElement("path",{d:"M18 3v4c0 2-2 4-4 4H2"}),m.createElement("path",{d:"M8 17l-6-6 6-6"})))}function oj(){return m.createElement("svg",{width:"40",height:"40",viewBox:"0 0 20 20",fill:"none",fillRule:"evenodd",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"},m.createElement("path",{d:"M19 4.8a16 16 0 00-2-1.2m-3.3-1.2A16 16 0 001.1 4.7M16.7 8a12 12 0 00-2.8-1.4M10 6a12 12 0 00-6.7 2M12.3 14.7a4 4 0 00-4.5 0M14.5 11.4A8 8 0 0010 10M3 16L18 2M10 18h0"}))}function oS(){return m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"64",height:"64",viewBox:"0 0 24 24",fill:"none",stroke:"#5a5e9a",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},m.createElement("path",{d:"m13.5 8.5-5 5"}),m.createElement("path",{d:"m8.5 8.5 5 5"}),m.createElement("circle",{cx:"11",cy:"11",r:"8"}),m.createElement("path",{d:"m21 21-4.3-4.3"}))}function oO(){return m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},m.createElement("path",{d:"M12 17v5"}),m.createElement("path",{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7
281a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z"}))}function oT(){return m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true"},m.createElement("polyline",{points:"6 9 12 15 18 9"}))}function oP(){return m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true"},m.createElement("polyline",{points:"20 6 9 17 4 12"}))}function oN(e){return e.label?e.label:e.key.replace(/[._-]+/g," ").replace(/\b\w/g,e=>e.toUpperCase())}let oA=["className","type"];function oC({children:e}){return m.createElement("div",{className:"DocSearch-Chip"},e)}oC.Dismiss=function(e){let{className:t,type:r="button"}=e,n=_(e,oA),i=`DocSearch-Chip-Dismiss${t?` ${t}`:""}`;return m.createElement("button",E({type:r,className:i,tabIndex:0},n),m.createElement(V,{"aria-hidden":"true"}))};let oI=["className"],oq=["align","alignOffset","side","sideOffset","collisionBoundary","container"],oR=["className","children"],oF=["className"];function oD(e){let t=H({},(Q(e),e));return m.createElement(rL,t)}oD.Trigger=m.forwardRef((e,t)=>{let{className:r}=e,n=_(e,oI),i=`DocSearch-Menu-Trigger${r?` ${r}`:""}`;return m.createElement(nq,E({className:i,ref:t},n))}),oD.Popup=function(e){let{align:t="start",alignOffset:r=0,side:n="bottom",sideOffset:i=4,collisionBoundary:o="clipping-ancestors",container:s}=e,a=_(e,oq);return m.createElement(nM,{container:s},m.createElement(iG,{className:"DocSearch-Menu-Positioner",align:t,alignOffset:r,side:n,sideOffset:i,collisionBoundary:o},m.createElement(oe,E({className:"DocSearch-Menu-Popup"},a))))},oD.RadioGroup=function(e){let t=H({},(Q(e),e));return m.createElement(on,t)},oD.RadioItem=function(e){let{className:t,children:r}=e,n=_(e,oR),i=`DocSearch-Menu-Item DocSearch-Menu-RadioItem${t?` ${t}`:""}`;return m.createElement(ol,E({className:i,closeOnClick:!0},n),m.createElement("span",{className:"DocSearch-Menu-RadioItem-Indicator"},m.createElement(oc,null,m.createElement(oP,null))),r)},oD.GroupLabel=function(e){let{className:t}=e,r=_(e,oF),n=`DocSearch-Menu-GroupLabel${t?` ${t}`:""}`;return m.createElement(ou,E({className:n},r))};let oL=m.memo(function({facet:e,selectedValue:t,defaultValueLabel:r,onSelectionChange:n,registerTrigger:i,menuTriggerSelectedAriaLabel:o}){let s=oN(e),a=m.useCallback(t=>{n(e.key,t)},[e.key,n]),l=m.useCallback(t=>{i(e.key,t)},[e.key,i]);return m.createElement(oD,null,m.createElement(oD.Trigger,{ref:l,"data-has-selection":!!t,"aria-label":t?`${s}, ${t} ${o}`:s},m.createElement("span",null,od(s)),m.createElement(oT,null)),m.createElement(oD.Popup,null,m.createElement(oD.RadioGroup,{value:t,onValueChange:a},m.createElement(oD.RadioItem,{value:"",label:`${r} ${s}`},r),e.values.map(e=>m.createElement(oD.RadioItem,{key:e,value:e,label:e},od(e))))))}),oM=m.memo(function({facetKey:e,facetLabel:t,value:r,dismissAriaLabel:n,onDismiss:i}){let o=m.useCallback(t=>{i(e,t)},[e,i]);return m.createElement(oC,null,od(r),m.createElement(oC.Dismiss,{"aria-label":`${n} ${od(r)} (${t})`,onClick:o}))}),oU=m.memo(function({facets:e,selections:t,onSelectionChange:r,clearSelections:n,translations:i={}}){let{defaultValueLabel:o="All",facetMenuTriggerAriaLabel:s="selected",clearAllLabel:a="Clear all",facetsAriaLabel:l="Search filters",selectedFacetsAriaLabel:c="Selected search filters",clearFacetAriaLabel:u="Clear filter:"}=i,d=m.useMemo(()=>new Set(e.map(e=>e.key)),[e]),p=m.useMemo(()=>Object.entries(t).filter(([e,t])=>!!t&&d.has(e)),[t,d]),f=m.useRef(new Map),h=m.useCallback((e,t)=>{t?f.current.set(e,t):f.current.delete(e)},[]),g=m.useCallback((e,t)=>
281{let n=t.currentTarget,i=n.closest(".DocSearch-FacetSelectionBar");if(i){var o,s;let t=Array.from(i.querySelectorAll(".DocSearch-Chip-Dismiss")),r=t.indexOf(n),a=null!=(o=null!=(s=t[r+1])?s:t[r-1])?o:f.current.get(e);null==a||a.focus()}r(e,"")},[r]),y=m.useCallback(()=>{var e;null==(e=f.current.values().next().value)||e.focus(),n()},[n]),v=m.useMemo(()=>new Map(e.map(e=>[e.key,oN(e)])),[e]);return 0===e.length?null:m.createElement(m.Fragment,null,m.createElement("div",{className:"DocSearch-FacetBar",role:"group","aria-label":l},e.map(e=>{var n;let i=null!=(n=t[e.key])?n:"";return m.createElement(oL,{key:e.key,facet:e,selectedValue:i,defaultValueLabel:o,registerTrigger:h,menuTriggerSelectedAriaLabel:s,onSelectionChange:r})})),p.length>0&&m.createElement("div",{className:"DocSearch-FacetSelectionBar",role:"group","aria-label":c},p.map(([e,t])=>{var r;return m.createElement(oM,{key:e,facetKey:e,facetLabel:null!=(r=v.get(e))?r:e,value:t,dismissAriaLabel:u,onDismiss:g})}),m.createElement("button",{type:"button",className:"DocSearch-FacetSelectionBar-Action",onClick:y},a)))}),oB=["actionsBeforeClose","autoFocus","clearButtonAriaLabel","clearButtonTitle","closeButtonAriaLabel","closeButtonText","hideInput","inputOverlay","inputProps","inputRef","isFromSelection","leadingElement","onClose","placeholder","searchInputLabel","state"];function o$(e){let{actionsBeforeClose:t,autoFocus:r,clearButtonAriaLabel:n,clearButtonTitle:i,closeButtonAriaLabel:o,closeButtonText:s,hideInput:a,inputOverlay:l,inputProps:c,inputRef:u,isFromSelection:d,leadingElement:p,onClose:f,placeholder:h,searchInputLabel:g,state:y}=e,v=_(e,oB),{onReset:b}=v.getFormProps({inputElement:u.current});m.useEffect(()=>{r&&u.current&&u.current.focus()},[r,u]),m.useEffect(()=>{d&&u.current&&u.current.select()},[d,u]);let x=v.getInputProps({inputElement:u.current,autoFocus:r,maxLength:512}),w="stalled"===y.status;return m.createElement("form",{className:"DocSearch-Form",onSubmit:e=>{e.preventDefault()},onReset:b},p||(w?m.createElement("div",{className:"DocSearch-LoadingIndicator"},m.createElement(z,null)):m.createElement("label",E({className:"DocSearch-MagnifierLabel"},v.getLabelProps()),m.createElement(k,null),m.createElement("span",{className:"DocSearch-VisuallyHiddenForAccessibility"},g))),l,m.createElement("input",E(E(E({className:"DocSearch-Input",ref:u},x),c),{},{placeholder:h,hidden:a})),m.createElement("div",{className:"DocSearch-Actions"},t,m.createElement("button",{type:"button",title:s,className:"DocSearch-Action DocSearch-Close","aria-label":o,onClick:f},m.createElement(V,null))))}function oW({state:e,containerRef:t,modalRef:r,formElementRef:n,dropdownRef:i,getRootProps:o,onClose:s,showDropdown:a,searchBox:l,filterBar:c,screenState:u,footer:d}){return m.createElement("div",E(E({ref:t},o({"aria-expanded":!0})),{},{className:["DocSearch","DocSearch-Container","stalled"===e.status&&"DocSearch-Container--Stalled","error"===e.status&&"DocSearch-Container--Errored"].filter(Boolean).join(" "),role:"button",tabIndex:0,onMouseDown:e=>{e.target===e.currentTarget&&s()}}),m.createElement("div",{className:"DocSearch-Modal",ref:r},m.createElement("header",{className:"DocSearch-SearchBar",ref:n},l),c,a&&m.createElement("div",{className:"DocSearch-Dropdown",ref:i},u),m.createElement("footer",{className:"DocSearch-Footer"},d)))}function oz(e){return m.createElement("svg",{width:"20",height:"20","aria-label":e.ariaLabel,viewBox:"0 0 24 24",role:"img"},m.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.4"},e.children))}function oK({translations:e={},isAskAiActive:t=!1,footerAction:r}){let{selectText:n="Select",selectKeyAriaLabel:i="Enter key",submitQuestionText:o="Submit question",navigateText:s="Navigate",navigateUpKeyAriaLabel:a="Arrow up",navigateDownKeyAriaLabel:l="Arrow down",closeText:c="Close",backToSearchText:u="Back to search",closeKeyAriaLabel:d="Escape key",poweredByText:p="Powered by"}=e;return m.createElement(m.Fragment,null,m.createElement("ul",{className:"DocSearch-Commands"},m.createElement("li",null,m.createElement("kbd",{className:"DocSearch-Commands-Key"},m.createElement(oz,{ariaLabel:l},m.createElement("path",{d:"M12 5v14"}),m.createElement("path",{d:"m19 12-7 7-7-7"}))),m.createElement("kbd",{className:"DocSearch-Commands-Key"},m.createElement(oz,{ariaLabel:a},m.createElement("path",{d:"m5 12 7-7 7 7"}),m.createElement("path",{d:"M12 19V5"}))),m.createElement("span",{className:"DocSearch-Label"},s)),m.createElement("li",null,m.createElement("kbd",{className:"DocSearch-Commands-Key"},m.createElement(oz,{ariaLabel:i},m.createElement("polyline",{points:"9 10 4 15 9 20"}),m.createElement("path",{d:"M20 4v7a4 4 0 0 1-4 4H4"}))),m.createElement("span",{className:"DocSearch-Label"},t?o:n)),m.createElement("li",null,m.createElement("kbd",{className:"DocSearch-Commands-Key"},m.createElement("span",{className:"DocSearch-Escape-Key"},"ESC")),m.createElement("span",{className:"DocSearch-Label","aria-label":d}
281,t?u:c))),m.createElement("div",{className:"DocSearch-Footer-Actions"},null!=r&&"boolean"!=typeof r&&m.createElement("div",{className:"DocSearch-Footer-Action"},r),m.createElement("div",{className:"DocSearch-Logo"},m.createElement(ee,{translations:{poweredByText:p}}))))}function oG({hit:e,children:t}){return m.createElement("a",{href:e.url},t)}function oQ({title:e,subText:t}){return m.createElement("div",{className:"DocSearch-Hit-content-wrapper"},m.createElement("span",{className:"DocSearch-Hit-title"},e),m.createElement("span",{className:"DocSearch-Hit-path"},t))}let oH=[[864e5,"day"],[36e5,"hour"],[6e4,"minute"],[1e3,"second"]],oV=["hit","attribute","tagName"];function oY(e,t){return t.split(".").reduce((e,t)=>(null==e?void 0:e[t])?e[t]:null,e)}function oX(e){let{hit:t,attribute:r,tagName:n="span"}=e;return(0,m.createElement)(n,E(E({},_(e,oV)),{},{dangerouslySetInnerHTML:{__html:oY(t,`_snippetResult.${r}.value`)||oY(t,r)}}))}function oJ(e){var t;let{askAiResultsTitle:r="Ask AI Assistant"}=e.translations||{},n=m.useId(),i=m.useMemo(()=>e.title?of(e.title):null,[e.title]);return e.collection&&0!==e.collection.items.length?"askAI"===e.collection.source.sourceId?m.createElement("section",{className:"DocSearch-Hits"},m.createElement("h2",{id:n,className:"DocSearch-Hit-source"},r),m.createElement("ul",E(E({className:"DocSearch-Hits-padded"},e.getListProps({source:e.collection.source})),{},{"aria-labelledby":n}),e.collection.items.map(t=>m.createElement(o1,E({key:t.objectID,item:t,translations:e.translations},e))))):"recentConversations"===e.collection.source.sourceId?m.createElement("section",{className:"DocSearch-Hits"},m.createElement("div",{className:"DocSearch-Hit-source"},m.createElement(K,null),i),m.createElement("ul",E({className:"DocSearch-Hits-padded"},e.getListProps({source:e.collection.source})),e.collection.items.map((t,r)=>m.createElement(oZ,E({key:[e.title,t.objectID].join(":"),item:t,index:r},e))))):m.createElement("section",{className:"DocSearch-Hits"},m.createElement("div",{className:"DocSearch-Hit-source"},null!=(t=e.sourceIcon)?t:null,i),m.createElement("ul",E({className:"DocSearch-Hits-padded"},e.getListProps({source:e.collection.source})),e.collection.items.map((t,r)=>m.createElement(oZ,E({key:[e.title,t.objectID].join(":"),item:t,index:r},e))))):null}function oZ({item:e,index:t,renderIcon:r,renderAction:n,getItemProps:i,onItemClick:o,collection:s,hitComponent:a,translations:l={},renderResultBadge:c}){let u,{recentConversationTimestampFallback:d="A while ago"}=l,p="content"===e.type?"content":`hierarchy.${e.type}`,f=(u="content"===e.type||"askAI"===e.type?oh.length:oh.indexOf(e.type),oh.slice(0,u).map(t=>e.hierarchy[t]?of(e.hierarchy[t]):null).filter(Boolean).join(" > "));return m.createElement("li",E({className:["DocSearch-Hit",e.__docsearch_parent&&"DocSearch-Hit--Child"].filter(Boolean).join(" ")},i({item:e,source:s.source,onClick(t){o(e,t)}})),m.createElement(a,{hit:e},m.createElement("div",{className:"DocSearch-Hit-Container"},r({item:e,index:t}),"lvl0"===e.type&&m.createElement(oQ,{title:m.createElement(oX,{hit:e,attribute:"hierarchy.lvl0"}),subText:m.createElement(oX,{hit:e,attribute:"content"})}),"askAI"===e.type?m.createElement(o0,{item:e,relativeDateFallbackText:d}):m.createElement(oQ,{title:m.createElement(oX,{hit:e,attribute:p}),subText:f}),null==c?void 0:c({item:e}),n({item:e}))))}function o0({item:e,relativeDateFallbackText:t}){let r=function(e,t=Date.now()){let[r]=(0,m.useState)(()=>{var r;let n=Math.abs(Number(t)-Number(e)),[i,o]=null!=(r=oH.find(([e])=>n>=e))?r:oH[oH.length-1];return[Math.floor(n/i),o]}),n=(0,m.useMemo)(()=>{let e="u">typeof navigator?navigator.language:void 0,[t,n]=r;return new Intl.RelativeTimeFormat(e,{style:"long"}).format(-1*t,n)},[r]);return e?n:null}(e.hierarchy.lvl2?new Date(e.hierarchy.lvl2):null);return m.createElement(oQ,{title:of(e.hierarchy.lvl1||""),subText:r||t})}function o1({item:e,getItemProps:t,onItemClick:r,collection:n}){return e.query?m.createElement("li",E({className:"DocSearch-Hit"},t({item:e,source:n.source,onClick(t){r(e,t)}})),m.createElement("div",{className:"DocSearch-Hit--AskAI"},m.createElement("div",{className:"DocSearch-Hit-AskAIButton DocSearch-Hit-Container"},m.createElement("div",{className:" DocSearch-Hit-AskAIButton-icon DocSearch-Hit-icon"},m.createElement(K,null)),m.createElement("div",{className:"DocSearch-Hit-AskAIButton-title"},m.createElement("span",{className:"DocSearch-Hit-AskAIButton-title-query"},e.query))))):null}let o2=["translations"];function o5(e){let{translations:t={}}=e,r=_(e,o2),{recentSearchesTitle:n="Recently viewed docs",saveRecentSearchButtonTitle:i="Pin this search",removeRecentSearchButtonTitle:o="Remove this search from history",favoriteSearchesTitle:s="Pinned",removeFavoriteSearchButtonTitle:a="Remove this saved search"}=t,l=op(r.state,"favoriteSearches"),c=op(r.state,"recentSearches");return m.createElement(m.Fragment,null,l&&m.createElement(oJ,E(E({},r),{},{title:s,collection:l,sourceIcon:m.createElement(oO,null),renderIcon:({item:e})=>m.createElement("div",{className:"DocSearch-Hit-icon"},m.createElement(X,{type:e.type})),renderAction:({item:e})=>m.createElement("div",{className:"DocSearch-Hit-action"},m.createElement("button",{className:"DocSearch-Hit-action-button",title:a,type:"submit",onClick:t=>{t.preventDefault(),t.stopPropagation(),r.favoriteSearches.remove(e),r.refresh()}},m.createElement(V,null)))})),c&&m.createElement(oJ,E(E({},r),{},{title:n,collection:c,sourceIcon:m.createElement(G,null),renderIcon:({item:e})=>m.createElement("div",{className:"DocSearch-Hit-icon"},m.createElement(X,{type:e.type})),renderAction:({item:e})=>m.createElement(m.Fragment,null,m.createElement("div",{className:"DocSearch-Hit-action"},m.createElement("button",{className:"DocSearch-Hit-action-button DocSearch-Hit-action-button--pin",title:i,type:"submit",onClick:t=>{t.preventDefault(),t.stopPropagation(),r.favoriteSearches.add(e),r.recentSearches.remove(e),r.refresh()}},m.createElement(oO,null))),m.createElement("div",{className:"DocSearch-Hit-action"},m.createElement("button",{className:"DocSearch-Hit-action-button",title:o,type:"submit",onClick:t=>{t.preventDefault(),t.stopPropagation(),r.recentSearches.remove(e),r.refresh()}},m.createElement(V,null))))})))}function o3({translations:e={}}){let{titleText:t="Unable to fetch results",helpText:r="You might want to check your network connection."}=e;return m.createElement("div",{className:"DocSearch-ErrorScreen"},m.createElement("div",{className:"DocSearch-Screen-Icon"},m.createElement(oj,null)),m.createElement("p",{className:"DocSearch-Title"},t),m.createElement("p",{className:"DocSearch-Help"},r))}let o4=["translations"];function o6(e){let{translations:t={}}=e,r=_(e,o4),{noResultsText:n="No results found for",suggestedQueryText:i="Try searching for",reportMissingResultsText:o="Believe this query should return results?",reportMissingResultsLinkText:s="Let us know."}=t,a=r.state.context.searchSuggestions;return m.createElement("div",{className:`DocSearch-NoResults ${r.canHandleAskAi?"DocSearch-NoResults--withAskA
281i":""}`},m.createElement("div",{className:"DocSearch-Screen-Icon"},m.createElement(oS,null)),m.createElement("p",{className:"DocSearch-Title"},n,' "',m.createElement("strong",null,r.state.query),'"'),a&&a.length>0&&m.createElement("div",{className:"DocSearch-NoResults-Prefill-List"},m.createElement("p",{className:"DocSearch-Help"},i,":"),m.createElement("div",{className:"DocSearch-NoResults-Prefill-List-Items"},a.slice(0,3).reduce((e,t)=>[...e,m.createElement("p",{key:t},m.createElement(k,{size:16}),m.createElement("button",{className:"DocSearch-Prefill",key:t,type:"button",onClick:()=>{r.setQuery(t.toLowerCase()+" "),r.refresh(),r.inputRef.current.focus()}},t))],[]))),r.getMissingResultsUrl&&m.createElement("p",{className:"DocSearch-Help"},`${o} `,m.createElement("a",{href:r.getMissingResultsUrl({query:r.state.query}),target:"_blank",rel:"noopener noreferrer"},s)))}function o8(e){return"string"==typeof e||"number"==typeof e||"boolean"==typeof e}function o9({item:e,resultBadgeKey:t,translations:r={}}){if(!t)return null;let n=(function(e){let t=om.get(e);if(t)return t;let r=e.replace(/\[(\w+)\]/g,".$1").replace(/^\/./,"").split(".");return om.set(e,r),r})(t).reduce((e,t)=>{if(e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,t))return e[t]},e);if(null==n)return null;let{resultBadgeLabelText:i="Category"}=r,o=null;if(o8(n))o=String(n).trim();else if(Array.isArray(n)){let e=n.filter(o8).map(e=>String(e).trim());o=e.length>0?e.join(", "):null}return null===o||0===o.length?null:m.createElement("div",{className:"DocSearch-Hit-badge"},m.createElement("span",{className:"DocSearch-VisuallyHiddenForAccessibility"},`${i}: ${o}`),m.createElement("span",{"aria-hidden":"true"},o))}let o7=["translations","resultBadgeKey"];function se(e){let{translations:t={},resultBadgeKey:r}=e,n=_(e,o7),i=m.useCallback(()=>m.createElement("div",{className:"DocSearch-Hit-action"},m.createElement(o_,null)),[]),o=m.useCallback(({item:e})=>m.createElement(o9,{item:e,resultBadgeKey:r,translations:{resultBadgeLabelText:t.resultBadgeLabelText}}),[r,t.resultBadgeLabelText]);return m.createElement("div",{className:"DocSearch-Dropdown-Container"},n.state.collections.map(e=>{if(0===e.items.length)return null;let r=ok(e.items[0]);return m.createElement(oJ,E(E({},n),{},{key:e.source.sourceId,translations:t,title:r,collection:e,renderIcon:({item:t,index:r})=>{var n;return m.createElement(m.Fragment,null,t.__docsearch_parent&&m.createElement("svg",{className:"DocSearch-Hit-Tree",viewBox:"0 0 24 54"},m.createElement("g",{stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"},t.__docsearch_parent!==(null==(n=e.items[r+1])?void 0:n.__docsearch_parent)?m.createElement("path",{d:"M8 6v21M20 27H8.3"}):m.createElement("path",{d:"M8 6v42M20 27H8.3"}))),m.createElement("div",{className:"DocSearch-Hit-icon"},m.createElement(X,{type:t.type})))},renderAction:i,renderResultBadge:o}))}),n.resultsFooterComponent&&m.createElement("section",{className:"DocSearch-HitsFooter"},m.createElement(n.resultsFooterComponent,{state:n.state})))}async function st({query:e,state:t,setContext:r,setStatus:n,searchClient:i,indexes:o,insights:s,appId:a,apiKey:l,maxResultsPerGroup:c,transformItems:u=oy,saveRecentSearch:d,onClose:p,facetSelections:f}){try{let{results:n}=await i.search({requests:o.map(t=>{var r,n,i,o,a,l,c;let u=t.name,d=t.searchParameters,p=function(e,t){let r=Object.entries(t),n=new Set(r.map(([e])=>e)),i=[];for(let[e,t]of r)""!==t&&i.push(`${e}:${t}`);if(0===n.size)return e;let o=[];return e&&Array.isArray(e)?o=e:e&&(o=[e]),[...o.filter(e=>{if("string"!=typeof e)return!0;let t=e.indexOf(":"),r=e.slice(0,t);return t<=0||!n.has(r)}),...i]}(null==d?void 0:d.facetFilters,f.current);return E(E({query:e,indexName:u,attributesToRetrieve:null!=(r=null==d?void 0:d.attributesToRetrieve)?r:["hierarchy.lvl0","hierarchy.lvl1","hierarchy.lvl2","hierarchy.lvl3","hierarchy.lvl4","hierarchy.lvl5","hierarchy.lvl6","content","type","url"],attributesToSnippet:null!=(n=null==d?void 0:d.attributesToSnippet)?n:["hierarchy.lvl1:15","hierarchy.lvl2:15","hierarchy.lvl3:15","hierarchy.lvl4:15","hierarchy.lvl5:15","hierarchy.lvl6:15","content:15"],snippetEllipsisText:null!=(i=null==d?void 0:d.snippetEllipsisText)?i:"…",highlightPreTag:null!=(o=null==d?void 0:d.highlightPreTag)?o:"<mark>",highlightPostTag:null!=(a=null==d?void 0:d.highlightPostTag)?a:"</mark>",hitsPerPage:null!=(l=null==d?void 0:d.hitsPerPage)?l:20,clickAnalytics:null!=(c=null==d?void 0:d.clickAnalytics)?c:s},d),p?{facetFilters:p}:{})})});return n.flatMap(e=>{let{hits:n,nbHits:i}=e,o=og(u(n),e=>ok(e),c);if(t.context.searchSuggestions.length<Object.keys(o).length){var f;r({searchSuggestions:E(E({},null!=(f=t.context.searchSuggestions)?f:[]),Object.keys(o))})}if(i){let e=t.context.nbHits;r({nbHits:(null!=e?e:0)+i})}let h={};return s&&(h={__autocomplete_indexName:e.index,__autocomplete_queryID:e.queryID,__autocomplete_algoliaCredentials:{appId:a,apiKey:l}}),Object.values(o).map((t,r)=>({sourceId:`hits_${e.index}_${r}`,onSelect({item:e,event:t}){d(e),ov(t)||p()},getItemUrl:({item:e})=>e.url,getItems:()=>Object.values(og(t,e=>e.hierarchy.lvl1,c)).map(e=>e.map(t=>{let r=null,n=e.find(e=>"lvl1"===e.type&&e.hierarchy.lvl1===t.hierarchy.lvl1);return"lvl1"!==t.type&&n&&(r=n),E(E({},t),{},{__docsearch_parent:r},h)})).flat()}))})}catch(e){throw"RetryError"===e.name&&n("error"),e}}function sr(e,t){var r=void 0;return function(){for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];r&&clearTimeout(r),r=setTimeout(function(){return e.apply(void 0,i)},t)}}function sn(e){return e!==Object(e)}var si=function(){};function so(e){var t=e.item,r=e.items;return{index:t.__autocomplete_indexName,items:[t],positions:[1+(void 0===r?[]:r).findIndex(function(e){return e.objectID===t.objectID})],queryID:t.__autocomplete_queryID,algoliaSource:["autocomplete"]}}function ss(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var sa=["items"],sl=["items"];function sc(e){return(sc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function su(e){return function(e){if(Array.isArray(e))return sd(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e){if(e){if("string"==typeof e)return sd(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return sd(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function sd(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function sp(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function sf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function sh(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
281t%2?sf(Object(r),!0).forEach(function(t){var n,i,o;n=e,i=t,o=r[t],(i=function(e){var t=function(e,t){if("object"!==sc(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==sc(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===sc(t)?t:String(t)}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sf(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function sm(e){return e.map(function(e){var t=e.items,r=sp(e,sa);return sh(sh({},r),{},{objectIDs:(null==t?void 0:t.map(function(e){return e.objectID}))||r.objectIDs})})}function sg(e){return e.objectID&&e.__autocomplete_indexName&&e.__autocomplete_queryID}function sy(e){return(sy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function sv(e){return function(e){if(Array.isArray(e))return sb(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e){if(e){if("string"==typeof e)return sb(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return sb(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function sb(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function sx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function sw(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?sx(Object(r),!0).forEach(function(t){var n,i,o;n=e,i=t,o=r[t],(i=function(e){var t=function(e,t){if("object"!==sy(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==sy(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===sy(t)?t:String(t)}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sx(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var sE="2.15.0",sk="https://cdn.jsdelivr.net/npm/search-insights@".concat(sE,"/dist/search-insights.min.js"),s_=sr(function(e){var t,r=e.onItemsChange,n=e.items,i=e.insights,o=e.state;r({insights:i,insightsEvents:Object.keys(t=n.reduce(function(e,t){var r;return e[t.__autocomplete_indexName]=(null!=(r=e[t.__autocomplete_indexName])?r:[]).concat(t),e},{})).map(function(e){var r=t[e];return{index:e,items:r,algoliaSource:["autocomplete"]}}).map(function(e){return sw({eventName:"Items Viewed"},e)}),state:o})},400);function sj(e){var t,r=sw({onItemsChange:function(e){var t=e.insights,r=e.insightsEvents,n=e.state;t.viewedObjectIDs.apply(t,sv(r.map(function(e){return sw(sw({},e),{},{algoliaSource:sS(e.algoliaSource,n.context)})})))},onSelect:function(e){var t=e.insights,r=e.insightsEvents,n=e.state;t.clickedObjectIDsAfterSearch.apply(t,sv(r.map(function(e){return sw(sw({},e),{},{algoliaSource:sS(e.algoliaSource,n.context)})})))},onActive:si,__autocomplete_clickAnalytics:!0},e),n=r.insightsClient,i=r.insightsInitParams,o=r.onItemsChange,s=r.onSelect,a=r.onActive,l=r.__autocomplete_clickAnalytics,c=n;if(n||(t=function(e){var t=e.window,r=t.AlgoliaAnalyticsObject||"aa";"string"==typeof r&&(c=t[r]),c||(t.AlgoliaAnalyticsObject=r,t[r]||(t[r]=function(){t[r].queue||(t[r].queue=[]);for(var e=arguments.length,n=Array(e),i=0;i<e;i++)n[i]=arguments[i];t[r].queue.push(n)}),t[r].version=sE,c=t[r],function(e){var t="[Autocomplete]: Could not load search-insights.js. Please load it manually following https://alg.li/insights-autocomplete";try{var r=e.document.createElement("script");r.async=!0,r.src=sk,r.onerror=function(){console.error(t)},document.body.appendChild(r)}catch(e){console.error(t)}}(t))},"u">typeof window&&t({window:window})),!c)return{};i&&c("init",sw({partial:!0},i));var u=function(e){var t,r,n,i,o=(n=(r=function(e){if(Array.isArray(e))return e}(t=(e.version||"").split(".").map(Number))||function(e){var t=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,n,i,o,s=[],a=!0,l=!1;try{i=(t=t.call(e)).next,!1;for(;!(a=(r=i.call(t)).done)&&(s.push(r.value),2!==s.length);a=!0);}catch(e){l=!0,n=e}
281finally{try{if(!a&&null!=t.return&&(o=t.return(),Object(o)!==o))return}finally{if(l)throw n}}return s}}(t)||function(e){if(e){if("string"==typeof e)return ss(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return ss(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0],i=r[1],n>=3||2===n&&i>=4||1===n&&i>=10);function s(t,r,n){if(o&&void 0!==n){var i=n[0].__autocomplete_algoliaCredentials,s=i.appId,a=i.apiKey;e.apply(void 0,[t].concat(su(r),[{headers:{"X-Algolia-Application-Id":s,"X-Algolia-API-Key":a}}]))}else e.apply(void 0,[t].concat(su(r)))}return{init:function(t,r){e("init",{appId:t,apiKey:r})},setAuthenticatedUserToken:function(t){e("setAuthenticatedUserToken",t)},setUserToken:function(t){e("setUserToken",t)},clickedObjectIDsAfterSearch:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];t.length>0&&s("clickedObjectIDsAfterSearch",sm(t),t[0].items)},clickedObjectIDs:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];t.length>0&&s("clickedObjectIDs",sm(t),t[0].items)},clickedFilters:function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];r.length>0&&e.apply(void 0,["clickedFilters"].concat(r))},convertedObjectIDsAfterSearch:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];t.length>0&&s("convertedObjectIDsAfterSearch",sm(t),t[0].items)},convertedObjectIDs:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];t.length>0&&s("convertedObjectIDs",sm(t),t[0].items)},convertedFilters:function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];r.length>0&&e.apply(void 0,["convertedFilters"].concat(r))},viewedObjectIDs:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];t.length>0&&t.reduce(function(e,t){var r=t.items,n=sp(t,sl);return[].concat(su(e),su((function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:20,r=[],n=0;n<e.objectIDs.length;n+=t)r.push(sh(sh({},e),{},{objectIDs:e.objectIDs.slice(n,n+t)}));return r})(sh(sh({},n),{},{objectIDs:(null==r?void 0:r.map(function(e){return e.objectID}))||n.objectIDs})).map(function(e){return{items:r,payload:e}})))},[]).forEach(function(e){var t=e.items;return s("viewedObjectIDs",[e.payload],t)})},viewedFilters:function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];r.length>0&&e.apply(void 0,["viewedFilters"].concat(r))}}}(c),d={current:[]},p=sr(function(e){var t=e.state;if(t.isOpen){var r=t.collections.reduce(function(e,t){return[].concat(sv(e),sv(t.items))},[]).filter(sg);!function e(t,r){if(t===r)return!0;if(sn(t)||sn(r)||"function"==typeof t||"function"==typeof r)return t===r;if(Object.keys(t).length!==Object.keys(r).length)return!1;for(var n=0,i=Object.keys(t);n<i.length;n++){var o=i[n];if(!(o in r)||!e(t[o],r[o]))return!1}return!0}(d.current.map(function(e){return e.objectID}),r.map(function(e){return e.objectID}))&&(d.current=r,r.length>0&&s_({onItemsChange:o,items:r,insights:u,state:t}))}},0);return{name:"aa.algoliaInsightsPlugin",subscribe:function(e){var t=e.setContext,r=e.onSelect,n=e.onActive;function i(e){var r;t({algoliaInsightsPlugin:{__algoliaSearchParameters:sw(sw({},l?{clickAnalytics:!0}:{}),e?{userToken:"number"==typeof(r=e)?r.toString():r}:{}),insights:u}})}c("addAlgoliaAgent","insights-plugin"),i(),c("onUserTokenChange",function(e){i(e)}),c("getUserToken",null,function(e,t){i(t)}),r(function(e){var t=e.item,r=e.state,n=e.event,i=e.source;sg(t)&&s({state:r,event:n,insights:u,item:t,insightsEvents:[sw({eventName:"Item Selected"},so({item:t,items:i.getItems().filter(sg)}))]})}),n(function(e){var t=e.item,r=e.source,n=e.state,i=e.event;sg(t)&&a({state:n,event:i,insights:u,item:t,insightsEvents:[sw({eventName:"Item Active"},so({item:t,items:r.getItems().filter(sg)}))]})})},onStateChange:function(e){p({state:e.state})},__autocomplete_pluginOptions:e}}function sS(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1?arguments[1]:void 0;return[].concat(sv(t),["autocomplete-internal"],sv(null!=(e=r.algoliaInsightsPlugin)&&e.__automaticInsights?["autocomplete-automatic"]:[]))}var sO=!0;function sT(e){return(sT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function sP(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function sN(e){return e.reduce(function(e,t){return e.concat(t)},[])}function sA(e){return(sA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function sC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function sI(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
281t%2?sC(Object(r),!0).forEach(function(t){var n,i,o;n=e,i=t,o=r[t],(i=function(e){var t=function(e,t){if("object"!==sA(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==sA(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===sA(t)?t:String(t)}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sC(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function sq(e){return 0===e.collections.length?0:e.collections.reduce(function(e,t){return e+t.items.length},0)}var sR=0;function sF(e,t){}function sD(e){return arguments.length>1&&void 0!==arguments[1]&&arguments[1],e}function sL(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function sM(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?sL(Object(r),!0).forEach(function(t){var n,i,o;n=e,i=t,o=r[t],(i=function(e){var t=function(e,t){if("object"!==sU(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==sU(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===sU(t)?t:String(t)}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sL(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function sU(e){return(sU="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function sB(e){return(sB="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s$(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function sW(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function sz(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?sW(Object(r),!0).forEach(function(t){var n,i,o;n=e,i=t,o=r[t],(i=function(e){var t=function(e,t){if("object"!==sB(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==sB(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===sB(t)?t:String(t)}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sW(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function sK(e){return(sK="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function sG(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function sQ(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?sG(Object(r),!0).forEach(function(t){sH(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sG(Object(r)).forEac
281h(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function sH(e,t,r){var n;return(n=function(e,t){if("object"!==sK(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==sK(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"===sK(n)?n:String(n))in e)?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sV(e){return(sV="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function sY(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function sX(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?sY(Object(r),!0).forEach(function(t){var n,i,o;n=e,i=t,o=r[t],(i=function(e){var t=function(e,t){if("object"!==sV(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==sV(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===sV(t)?t:String(t)}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sY(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function sJ(e){return function(e){if(Array.isArray(e))return sZ(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e){if(e){if("string"==typeof e)return sZ(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return sZ(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function sZ(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function s0(e){return!!e.execute}function s1(e){return Promise.all(e.reduce(function(e,t){if(!s0(t))return e.push(t),e;var r,n=t.searchClient,i=t.execute,o=t.requesterId,s=t.requests,a=e.find(function(e){return s0(t)&&s0(e)&&e.searchClient===n&&!!o&&e.requesterId===o});return a?(r=a.items).push.apply(r,sJ(s)):e.push({execute:i,requesterId:o,items:s,searchClient:n}),e},[]).map(function(e){if(!s0(e))return Promise.resolve(e);var t=e.execute,r=e.items;return t({searchClient:e.searchClient,requests:r})})).then(function(e){return sN(e)})}function s2(e,t){return{then:function(r,n){return s2(e.then(s4(r,t,e),s4(n,t,e)),t)},catch:function(r){return s2(e.catch(s4(r,t,e)),t)},finally:function(r){return r&&t.onCancelList.push(r),s2(e.finally(s4(r&&function(){return t.onCancelList=[],r()},t,e)),t)},cancel:function(){t.isCanceled=!0;var e=t.onCancelList;t.onCancelList=[],e.forEach(function(e){e()})},isCanceled:function(){return!0===t.isCanceled}}}function s5(e){return s2(new Promise(function(t,r){return e(t,r)}),{isCanceled:!1,onCancelList:[]})}function s3(e){return s2(e,{isCanceled:!1,onCancelList:[]})}function s4(e,t,r){return e?function(r){return t.isCanceled?r:e(r)}:r}function s6(e){var t,r=(t=e.collections.map(function(e){return e.items.length}).reduce(function(e,t,r){var n=e[r-1]||0;return e.push(n+t),e},[]).reduce(function(t,r){return r<=e.activeItemId?t+1:t},0),e.collections[t]);if(!r)return null;var n=r.items[function(e){for(var t=e.state,r=e.collection,n=!1,i=0,o=0;!1===n;){var s=t.collections[i];if(s===r){n=!0;break}o+=s.items.length,i++}return t.activeItemId-o}({state:e,collection:r})],i=r.source,o=i.getItemInputValue({item:n,state:e}),s=i.getItemUrl({item:n,state:e});return{item:n,itemInputValue:o,itemUrl:s,source:i}}function s8(e){return(s8="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}s5.resolve=function(e){return s3(Promise.resolve(e))},s5.reject=function(e){return s3(Promise.reject(e))};var s9=["event","nextState","props","query","refresh","store"];function s7(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ae(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
281t%2?s7(Object(r),!0).forEach(function(t){var n,i,o;n=e,i=t,o=r[t],(i=function(e){var t=function(e,t){if("object"!==s8(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==s8(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===s8(t)?t:String(t)}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s7(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var at=null,ar=(c=-1,u=-1,d=void 0,function(e){var t=++c;return Promise.resolve(e).then(function(e){return d&&t<u?d:(u=t,d=e,e)})});function an(e){var t=e.event,r=e.nextState,n=void 0===r?{}:r,i=e.props,o=e.query,s=e.refresh,a=e.store,l=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,s9);at&&i.environment.clearTimeout(at);var c=l.setCollections,u=l.setIsOpen,d=l.setQuery,p=l.setActiveItemId,f=l.setStatus,h=l.setContext;if(d(o),p(i.defaultActiveItemId),!o&&!1===i.openOnFocus){var m,g=a.getState().collections.map(function(e){return ae(ae({},e),{},{items:[]})});f("idle"),c(g),u(null!=(m=n.isOpen)?m:i.shouldPanelOpen({state:a.getState()}));var y=s3(ar(g).then(function(){return Promise.resolve()}));return a.pendingRequests.add(y)}f("loading"),at=i.environment.setTimeout(function(){f("stalled")},i.stallThreshold);var v=s3(ar(i.getSources(ae({query:o,refresh:s,state:a.getState()},l)).then(function(e){return Promise.all(e.map(function(e){return Promise.resolve(e.getItems(ae({query:o,refresh:s,state:a.getState()},l))).then(function(t){return function(e,t,r){if(null==e?void 0:e.execute){var n="algolia"===e.requesterId?Object.assign.apply(Object,[{}].concat(sJ(Object.keys(r.context).map(function(e){var t;return null==(t=r.context[e])?void 0:t.__algoliaSearchParameters})))):{};return sX(sX({},e),{},{requests:e.queries.map(function(r){return{query:"algolia"===e.requesterId?sX(sX({},r),{},{params:sX(sX({},n),r.params)}):r,sourceId:t,transformResponse:e.transformResponse}})})}return{items:e,sourceId:t}}(t,e.sourceId,a.getState())})})).then(s1).then(function(t){var r,n=t.some(function(e){var t;return!Array.isArray(t=e.items)&&!!(null==t?void 0:t._automaticInsights)});return n&&h({algoliaInsightsPlugin:ae(ae({},(null==(r=a.getState().context)?void 0:r.algoliaInsightsPlugin)||{}),{},{__automaticInsights:n})}),e.map(function(e){var r=t.filter(function(t){return t.sourceId===e.sourceId}),n=r.map(function(e){return e.items}),i=r[0].transformResponse,o=i?i({results:n,hits:n.map(function(e){return e.hits}).filter(Boolean),facetHits:n.map(function(e){var t;return null==(t=e.facetHits)?void 0:t.map(function(e){return{label:e.value,count:e.count,_highlightResult:{label:{value:e.highlighted}}}})}).filter(Boolean)}):n;return e.onResolve({source:e,results:n,items:o,state:a.getState()}),sF(Array.isArray(o),function(){return'The `getItems` function from source "'.concat(e.sourceId,'" must return an array of items but returned type ').concat(JSON.stringify(sV(o)),":\n\n").concat(JSON.stringify(sD(o),null,2),".\n\nSee: https://www.algolia.com/doc/ui-libraries/autocomplete/core-concepts/sources/#param-getitems")}),sF(o.every(Boolean),'The `getItems` function from source "'.concat(e.sourceId,'" must return an array of items but returned ').concat(JSON.stringify(void 0),".\n\nDid you forget to return items?\n\nSee: https://www.algolia.com/doc/ui-libraries/autocomplete/core-concepts/sources/#param-getitems")),{source:e,items:o}})}).then(function(e){var t,r,n,o,s,l;return r=(t={collections:e,props:i,state:a.getState()}).collections,n=t.props,o=t.state,s=r.reduce(function(e,t){return sQ(sQ({},e),{},sH({},t.source.sourceId,sQ(sQ({},t.source),{},{getItems:function(){return sN(t.items)}})))},{}),l=n.plugins.reduce(function(e,t){return t.reshape?t.reshape(e):e},{sourcesBySourceId:s,state:o}).sourcesBySourceId,sN(n.reshape({sourcesBySourceId:l,sources:Object.values(l),state:o}
281)).filter(Boolean).map(function(e){return{source:e,items:e.getItems()}})})}))).then(function(e){f("idle"),c(e);var r,d=i.shouldPanelOpen({state:a.getState()});u(null!=(r=n.isOpen)?r:i.openOnFocus&&!o&&d||d);var p=s6(a.getState());if(null!==a.getState().activeItemId&&p){var h=p.item,m=p.itemInputValue,g=p.itemUrl,y=p.source;y.onActive(ae({event:t,item:h,itemInputValue:m,itemUrl:g,refresh:s,source:y,state:a.getState()},l))}}).finally(function(){f("idle"),at&&i.environment.clearTimeout(at)});return a.pendingRequests.add(v)}function ai(e,t,r){return[e,null==r?void 0:r.sourceId,t].filter(Boolean).join("-").replace(/\s/g,"")}function ao(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var as=function(e,t){var r,n=!1,i=[],o=function(e){var t="u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e){if(e){if("string"==typeof e)return ao(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return ao(e,void 0)}}(e))){t&&(e=t);var r=0,n=function(){};return{s:n,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:n}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==t.return||t.return()}finally{if(s)throw i}}}}(e);try{for(o.s();!(r=o.n()).done;){var s,a,l=null==(s=r.value.__autocomplete_pluginOptions)||null==(a=s.awaitSubmit)?void 0:a.call(s);if("number"==typeof l)i.push(l);else if(!0===l){n=!0;break}}}catch(e){o.e(e)}finally{o.f()}return n?t.wait():i.length>0?t.wait(Math.max.apply(Math,i)):void 0};function aa(e){return(aa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var al=["event","props","refresh","store"];function ac(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function au(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ac(Object(r),!0).forEach(function(t){var n,i,o;n=e,i=t,o=r[t],(i=function(e){var t=function(e,t){if("object"!==aa(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==aa(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===aa(t)?t:String(t)}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ac(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var ad=/((gt|sm)-|galaxy nexus)|samsung[- ]|samsungbrowser/i;function ap(e){return e.nativeEvent||e}function af(e){return(af="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var ah=["props","refresh","store"],am=["inputElement","formElement","panelElement"],ag=["inputElement"],ay=["inputElement","maxLength"],av=["source"],ab=["item","source"];function ax(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function aw(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ax(Object(r),!0).forEach(function(t){var n,i,o;n=e,i=t,o=r[t],(i=function(e){var t=function(e,t){if("object"!==af(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==af(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===af(t)?t:String(t)}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ax(Object(r)).forEac
281h(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function aE(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var ak=[{segment:"autocomplete-core",version:"1.19.2"}];function a_(e){return(a_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function aj(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function aS(e,t,r){var n;return(n=function(e,t){if("object"!==a_(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==a_(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"===a_(n)?n:String(n))in e)?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function aO(e){var t,r=e.state;return!1===r.isOpen||null===r.activeItemId?null:(null==(t=s6(r))?void 0:t.itemInputValue)||null}function aT(e,t,r,n){if(!r)return null;if(e<0&&(null===t||null!==n&&0===t))return r+e;var i=(null===t?-1:t)+e;return i<=-1||i>=r?null===n?null:0:i}function aP(e){return(aP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function aN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function aA(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?aN(Object(r),!0).forEach(function(t){var n,i,o;n=e,i=t,o=r[t],(i=function(e){var t=function(e,t){if("object"!==aP(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==aP(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===aP(t)?t:String(t)}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):aN(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var aC=function(e,t){switch(t.type){case"setActiveItemId":case"mousemove":return aA(aA({},e),{},{activeItemId:t.payload});case"setQuery":return aA(aA({},e),{},{query:t.payload,completion:null});case"setCollections":return aA(aA({},e),{},{collections:t.payload});case"setIsOpen":return aA(aA({},e),{},{isOpen:t.payload});case"setStatus":return aA(aA({},e),{},{status:t.payload});case"setContext":return aA(aA({},e),{},{context:aA(aA({},e.context),t.payload)});case"ArrowDown":var r=aA(aA({},e),{},{activeItemId:t.payload.hasOwnProperty("nextActiveItemId")?t.payload.nextActiveItemId:aT(1,e.activeItemId,sq(e),t.props.defaultActiveItemId)});return aA(aA({},r),{},{completion:aO({state:r})});case"ArrowUp":var n=aA(aA({},e),{},{activeItemId:aT(-1,e.activeItemId,sq(e),t.props.defaultActiveItemId)});return aA(aA({},n),{},{completion:aO({state:n})});case"Escape":if(e.isOpen)return aA(aA({},e),{},{activeItemId:null,isOpen:!1,completion:null});return aA(aA({},e),{},{activeItemId:null,query:"",status:"idle",collections:[]});case"submit":return aA(aA({},e),{},{activeItemId:null,isOpen:!1,status:"idle"});case"reset":return aA(aA({},e),{},{activeItemId:!0===t.props.openOnFocus?t.props.defaultActiveItemId:null,status:"idle",completion:null,query:""});case"focus":return aA(aA({},e),{},{activeItemId:t.props.defaultActiveItemId,isOpen:(t.props.openOnFocus||!!e.query)&&t.props.shouldPanelOpen({state:e})});case"blur":if(t.props.debug)return e;return aA(aA({},e),{},{isOpen:!1,activeItemId:null});case"mouseleave":return aA(aA({},e),{},{activeItemId:t.props.defaultActiveItemId});default:return sF(!1,"The reducer action ".concat(JSON.stringify(t.type)," is not supported.")),e}};function aI(e){return(aI="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function aq(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function aR(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
281t%2?aq(Object(r),!0).forEach(function(t){var n,i,o;n=e,i=t,o=r[t],(i=function(e){var t=function(e,t){if("object"!==aI(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==aI(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===aI(t)?t:String(t)}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):aq(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let aF=["translations"];function aD(e){let{translations:t={}}=e,r=_(e,aF),{clearButtonTitle:n="Clear",clearButtonAriaLabel:i="Clear the query",closeButtonText:o="Close",closeButtonAriaLabel:s="Close",searchInputLabel:a="Search"}=t,l=m.createElement(m.Fragment,null,m.createElement("button",{className:"DocSearch-Clear",type:"reset","aria-label":i,hidden:!r.state.query,tabIndex:r.state.query?0:-1,"aria-hidden":r.state.query?"false":"true"},n),r.state.query&&m.createElement("div",{className:"DocSearch-Divider"}));return m.createElement(o$,E(E({},r),{},{clearButtonTitle:n,clearButtonAriaLabel:i,closeButtonText:o,closeButtonAriaLabel:s,searchInputLabel:a,inputProps:{enterKeyHint:"search"},actionsBeforeClose:l}))}let aL=["translations"];function aM(e){let{translations:t={}}=e,r=_(e,aL);return m.createElement("div",{className:"DocSearch-Dropdown-Container"},m.createElement(o5,E(E({},r),{},{translations:t})))}let aU=["translations"],aB=m.memo(e=>{var t;let{translations:r={}}=e,n=_(e,aU);return(null==(t=n.state)?void 0:t.status)==="error"?m.createElement(o3,{translations:null==r?void 0:r.errorScreen}):ob(n.state.query)?m.createElement(aM,E(E({},n),{},{hasCollections:n.hasCollections,translations:null==r?void 0:r.startScreen})):n.hasCollections?m.createElement(se,E(E({},n),{},{translations:null==r?void 0:r.resultsScreen})):m.createElement(o6,E(E({},n),{},{translations:null==r?void 0:r.noResultsScreen}))},function(e,t){let r="loading"===t.state.status||"stalled"===t.state.status,n="idle"===t.state.status&&!ob(t.state.query)&&e.state.query!==t.state.query&&e.state.collections===t.state.collections;return r||n}),a$=["appId","apiKey","maxResultsPerGroup","theme","onClose","transformItems","hitComponent","resultsFooterComponent","navigator","initialScrollY","transformSearchClient","disableUserPersonalization","initialQuery","translations","getMissingResultsUrl","insights","recentSearchesLimit","recentSearchesWithFavoritesLimit","indices","facets","footerAction"],aW=["footer","searchBox","facets"];function az(e){var t;let r,{appId:n,apiKey:i,maxResultsPerGroup:o,theme:s,onClose:a=ox,transformItems:l=oy,hitComponent:c=oG,resultsFooterComponent:u=()=>null,navigator:d,initialScrollY:f=0,transformSearchClient:h=oy,disableUserPersonalization:g=!1,initialQuery:y="",translations:v={},getMissingResultsUrl:b,insights:x=!1,recentSearchesLimit:w=7,recentSearchesWithFavoritesLimit:k=4,indices:O,facets:T,footerAction:P}=e,C=_(e,a$),{footer:I,searchBox:z,facets:K}=v,G=_(v,aW),[Q,H]=m.useState({query:"",collections:[],completion:null,context:{},isOpen:!1,activeItemId:null,status:"idle"}),V=(null==v||null==(t=v.searchBox)?void 0:t.placeholderText)||C.placeholder||"Search docs",{containerRef:Y,modalRef:X,formElementRef:J,dropdownRef:Z,inputRef:ee}={containerRef:m.useRef(null),modalRef:m.useRef(null),formElementRef:m.useRef(null),dropdownRef:m.useRef(null),inputRef:m.useRef(null)},{initialQuery:er,initialQueryFromSelection:ei}=(r=m.useRef(window.getSelection().toString().slice(0,512)).current,{initialQuery:m.useRef(y||r).current,initialQueryFromSelection:r}),eo=m.useMemo(()=>{let e=function(e,t){if(!e||"string"!=typeof e)throw Error("`appId` is missing.");if(!t||"string"!=typeof t)throw Error("`apiKey` is missing.");let{compression:r,...n}={};return function({appId:e,apiKey:t,authMode:r,algoliaAgents:n,...i}){let o=function(e,t,r="WithinHeaders"){let n={"x-algolia-api-key":t,"x-algolia-application-id":e};return{headers:()=>"WithinHeaders"===r?n:{},queryParameters:()=>"WithinQueryParameters"===r?n:{}}}(e,t,r),s=function({hosts:e,hostsCache:t,baseHeaders:r,logger:n,baseQueryParameters:i,algoliaAgent:o,timeouts:s,requester:a,requestsCache:l,responsesCache:c,compress:u,compression:d}){async function p(e){let r=await Promise.all(e.map(e=>t.get(e,()=>Promise.resolve(A(e))))),n=r.filter(e=>e.isUp()),i=r.filter(e=>e.isTimedOut()),o=[...n,...i];return{hosts:o.length>0?o:e,getTimeout:(e,t)=>(0===i.length&&0===e?1:i.length+3+e)*t}}async function f(l,c,f){let h=[],m=M(l,c),g=U(r,l.headers,c.headers),y="gzip"===d&&void 0!==m&&m.length>750&&("POST"===l.method||"PUT"===l.method);y&&void 0===u&&n.info("Compression is disabled because no compress method is available.");let v=y&&void 0!==u,b=v?await u(m):m;v&&(g["content-encoding"]="gzip");let x="GET"===l.method?{...l.data,...c.data}:{},w={...i,...l.queryParameters,...x};
281if(o.value&&(w["x-algolia-agent"]=o.value),c&&c.queryParameters)for(let e of Object.keys(c.queryParameters))c.queryParameters[e]&&"[object Object]"!==Object.prototype.toString.call(c.queryParameters[e])?w[e]=c.queryParameters[e].toString():w[e]=c.queryParameters[e];let E=0,k=async(e,r)=>{let i=e.pop();if(void 0===i)throw new q(h.map(e=>B(e)));let o={...s,...c.timeouts},u={data:b,headers:g,method:l.method,url:L(i,l.path,w),connectTimeout:r(E,o.connect),responseTimeout:r(E,f?o.read:o.write)},d=t=>{let r={request:u,response:t,host:i,triesLeft:e.length};return h.push(r),r},p=await a.send(u);if(function({isTimedOut:e,status:t}){return e||function({isTimedOut:e,status:t}){return!e&&0==~~t}({isTimedOut:e,status:t})||2!=~~(t/100)&&4!=~~(t/100)}(p)){let o=d(p);return p.isTimedOut&&E++,n.info("Retryable failure",B(o)),await t.set(i,A(i,p.isTimedOut?"timed out":"down")),k(e,r)}if(function({status:e}){return 2==~~(e/100)}(p)){if(204!==p.status&&0!==p.content.length)try{return JSON.parse(p.content)}catch(e){throw new F(e.message,p)}return}throw d(p),function({content:e,status:t},r){try{let n=JSON.parse(e);if("error"in n)return new D(n.message,t,n.error,r);return new R(n.message,t,r)}catch{}return new R(e,t,r)}(p,h)},_=e.filter(e=>"readWrite"===e.accept||(f?"read"===e.accept:"write"===e.accept)),j=await p(_);return k([...j.hosts].reverse(),j.getTimeout)}async function*h(t,n={}){if(!a.sendStream)throw Error("This requester does not support streaming");let l=M(t,n),c=U(r,t.headers,n.headers);c.accept="text/event-stream";let u="GET"===t.method?{...t.data,...n.data}:{},d={...i,...t.queryParameters,...u};if(o.value&&(d["x-algolia-agent"]=o.value),n&&n.queryParameters)for(let e of Object.keys(n.queryParameters))n.queryParameters[e]&&"[object Object]"!==Object.prototype.toString.call(n.queryParameters[e])?d[e]=n.queryParameters[e].toString():d[e]=n.queryParameters[e];let f=t.useReadTransporter||"GET"===t.method,m=e.filter(e=>"readWrite"===e.accept||(f?"read"===e.accept:"write"===e.accept)),g=(await p(m)).hosts[0];if(!g)throw new q([]);let y={...s,...n.timeouts},v={data:l,headers:c,method:t.method,url:L(g,t.path,d),connectTimeout:y.connect,responseTimeout:f?y.read:y.write},b=await a.sendStream(v);yield*N(b)}return{hostsCache:t,requester:a,timeouts:s,logger:n,algoliaAgent:o,baseHeaders:r,baseQueryParameters:i,hosts:e,request:function(e,t={}){let n=e.useReadTransporter||"GET"===e.method;if(!0!==(t.cacheable||e.cacheable))return f(e,t,n);let o={request:e,requestOptions:t,transporter:{queryParameters:i,headers:r}};return c.get(o,()=>l.get(o,()=>l.set(o,f(e,t,n)).then(e=>Promise.all([l.delete(o),e]),e=>Promise.all([l.delete(o),Promise.reject(e)])).then(([e,t])=>t)),{miss:e=>c.set(o,e)})},requestStream:h,requestsCache:l,responsesCache:c}}({hosts:[{url:`${e}-dsn.algolia.net`,accept:"read",protocol:"https"},{url:`${e}.algolia.net`,accept:"write",protocol:"https"}].concat(function(e){for(let t=e.length-1;t>0;t--){let r=Math.floor(Math.random()*(t+1)),n=e[t];e[t]=e[r],e[r]=n}return e}([{url:`${e}-1.algolianet.com`,accept:"readWrite",protocol:"https"},{url:`${e}-2.algolianet.com`,accept:"readWrite",protocol:"https"},{url:`${e}-3.algolianet.com`,accept:"readWrite",protocol:"https"}])),...i,algoliaAgent:function({algoliaAgents:e,client:t,version:r}){let n,i=(n={value:`Algolia for JavaScript (${r})`,add(e){let t=`; ${e.segment}${void 0!==e.version?` (${e.version})`:""}`;return -1===n.value.indexOf(t)&&(n.value=`${n.value}${t}`),n}}).add({segment:t,version:r});return e.forEach(e=>i.add(e)),i}({algoliaAgents:n,client:"Lite",version:W}),baseHeaders:{"content-type":"text/plain",...o.headers(),...i.baseHeaders},baseQueryParameters:{...o.queryParameters(),...i.baseQueryParameters}});return{transporter:s,appId:e,apiKey:t,clearCache:()=>Promise.all([s.requestsCache.clear(),s.responsesCache.clear()]).then(()=>void 0),get _ua(){return s.algoliaAgent.value},addAlgoliaAgent(e,t){s.algoliaAgent.add({segment:e,version:t})},setClientApiKey({apiKey:e}){r&&"WithinHeaders"!==r?s.baseQueryParameters["x-algolia-api-key"]=e:s.baseHeaders["x-algolia-api-key"]=e},searchForHits(e,t){return this.search(e,t)},searchForFacets(e,t){return this.search(e,t)},customPost({path:e,parameters:t,body:r},n){$("path","customPost",e);let i="/{path}".replace("{path}",e);return s.request({method:"POST",path:i,queryParameters:t||{},headers:{},data:r||{}},n)},getRecommendations(e,t){e&&Array.isArray(e)&&(e={requests:e}),$("getRecommendationsParams","getRecommendations",e),$("getRecommendationsParams.requests","getRecommendations",e.requests);let r={method:"POST",path:"/1/indexes/*/recommendations",queryParameters:{},headers:{},data:e,useReadTransporter:!0,cacheable:!0};return s.request(r,t)},search(e,t){e&&Array.isArray(e)&&(e={requests:e.map(({params:e,...t})=>"facet"===t.type?{...t,...e,type:"facet"}:{...t,...e,facet:void 0,maxFacetHits:void 0,facetQuery:void 0})}),$("searchMethodParams","search",e),$("searchMethodParams.requests","search",e.requests);let r={method:"POST",path:"/1/indexes/*/queries",queryParameters:{},headers:{},data:e,useReadTransporter:!0,cacheable:!0};return s.request(r,t)}}}({appId:e,apiKey:t,timeouts:{connect:1e3,read:2e3,write:3e4},logger:{debug:(e,t)=>Promise.resolve(),info:(e,t)=>Promise.resolve(),error:(e,t)=>
281Promise.resolve()},requester:{send:function(e){return new Promise(t=>{let r=new XMLHttpRequest;r.open(e.method,e.url,!0),Object.keys(e.headers).forEach(t=>r.setRequestHeader(t,e.headers[t]));let n=(e,n)=>setTimeout(()=>{r.abort(),t({status:0,content:n,isTimedOut:!0})},e),i=n(e.connectTimeout,"Connection timeout"),o;r.onreadystatechange=()=>{r.readyState>r.OPENED&&void 0===o&&(clearTimeout(i),o=n(e.responseTimeout,"Socket timeout"))},r.onerror=()=>{0===r.status&&(clearTimeout(i),clearTimeout(o),t({content:r.responseText||"Network request failed",status:r.status,isTimedOut:!1}))},r.onload=()=>{clearTimeout(i),clearTimeout(o),t({content:r.responseText,status:r.status,isTimedOut:!1})},r.send(e.data)})}},algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:S(),requestsCache:S({serializable:!1}),hostsCache:function e(t){let r=[...t.caches],n=r.shift();return void 0===n?{get:(e,t,r={miss:()=>Promise.resolve()})=>t().then(e=>Promise.all([e,r.miss(e)])).then(([e])=>e),set:(e,t)=>Promise.resolve(t),delete:e=>Promise.resolve(),clear:()=>Promise.resolve()}:{get:(t,i,o={miss:()=>Promise.resolve()})=>n.get(t,i,o).catch(()=>e({caches:r}).get(t,i,o)),set:(t,i)=>n.set(t,i).catch(()=>e({caches:r}).set(t,i)),delete:t=>n.delete(t).catch(()=>e({caches:r}).delete(t)),clear:()=>n.clear().catch(()=>e({caches:r}).clear())}}({caches:[function(e){let t,r=`algolia-client-js-${e.key}`;function n(){return void 0===t&&(t=e.localStorage||window.localStorage),t}function i(){return JSON.parse(n().getItem(r)||"{}")}function o(){return new Promise(e=>setTimeout(e,0))}return{get:(t,s,a={miss:()=>Promise.resolve()})=>o().then(()=>{let o,l,c,u,{namespace:d,changed:p}=(o=e.timeToLive?1e3*e.timeToLive:null,l=i(),c=new Date().getTime(),u=!1,{namespace:Object.fromEntries(Object.entries(l).filter(([,e])=>e&&void 0!==e.timestamp&&(!o||!(e.timestamp+o<c))||(u=!0,!1))),changed:u}),f=d[JSON.stringify(t)];return(p&&n().setItem(r,JSON.stringify(d)),f)?f.value:s().then(e=>a.miss(e).then(()=>e))}),set:(e,t)=>o().then(()=>{let o=i();return o[JSON.stringify(e)]={timestamp:new Date().getTime(),value:t},n().setItem(r,JSON.stringify(o)),t}),delete:e=>o().then(()=>{let t=i();delete t[JSON.stringify(e)],n().setItem(r,JSON.stringify(t))}),clear:()=>Promise.resolve().then(()=>{n().removeItem(r)})}}({key:`${W}-${e}`}),S()]}),...n})}(n,i);return e.addAlgoliaAgent("docsearch",j),!1===/docsearch.js \(.*\)/.test(e.transporter.algoliaAgent.value)&&e.addAlgoliaAgent("docsearch-react",j),h(e)},[n,i,h]),es=m.useMemo(()=>(function({indices:e}){if(!Array.isArray(e)||e.length<1)throw Error("Must supply at least one `indices` entry for DocSearch");return e.map(e=>"string"==typeof e?{name:e}:e)})({indices:O}),[O]),ea=es[0].name,el=m.useRef(void 0),{visibleFacets:ec,facetSelections:eu,facetSelectionsRef:ed,handleFacetSelectionChange:ep,clearFacetSelections:ef}=function({facets:e,indexes:t,searchClient:r,onSelectionsChange:n}){let i=m.useMemo(()=>(function(e=[]){let t=new Map;for(let r of e){let e=r.key.trim().toLowerCase();if(!(0===e.length||t.has(e))){if(t.size>=5)break;t.set(e,r)}}return Array.from(t.values())})(e),[e]),o=m.useRef(i),s=function({facets:e,indexes:t,searchClient:r}){let[n,i]=m.useState({}),o=e.map(e=>e.key).join(","),s=JSON.stringify(t.map(e=>{var t;return[e.name,null!=(t=e.searchParameters)?t:null]}));return m.useEffect(()=>{let e=!0,n=o?o.split(","):[];return 0===n.length||0===t.length?()=>{e=!1}:(r.search({requests:t.map(e=>({indexName:e.name,query:"",hitsPerPage:0,facets:n}))}).then(({results:t})=>{if(!e)return;let r=n.reduce((e,t)=>(e[t]=[],e),{});t.forEach(e=>{var t;Object.entries(null!=(t=e.facets)?t:{}).forEach(([e,t])=>{r[e]&&(r[e]=Array.from(new Set([...r[e],...Object.keys(t)])).sort((e,t)=>e.localeCompare(t,void 0,{sensitivity:"base"})))})}),i(r)}).catch(()=>{e&&i({})}),()=>{e=!1})},[o,s,r]),n}({facets:i,indexes:t,searchClient:r}),[a,l]=m.useState(()=>(function(e){let t={};for(let n of e){var r;let e=null==(r=n.searchParameters)?void 0:r.facetFilters;for(let r of Array.isArray(e)?e:[e]){if("string"!=typeof r)continue;let e=r.indexOf(":");if(e<=0)continue;let n=r.slice(0,e),i=r.slice(e+1);n&&i&&(t[n]=i)}}return t})(t)),c=m.useRef(a),u=m.useRef(n),d=m.useMemo(()=>i.map(e=>{var t;return E(E({},e),{},{values:null!=(t=s[e.key])?t:[]})}).filter(e=>e.values.length>0),[s,i]);m.useLayoutEffect(()=>{o.current=i,u.current=n});let p=m.useCallback(e=>{var t;c.current=e,l(e),null==(t=u.current)||t.call(u)},[]);return{visibleFacets:d,facetSelections:a,facetSelectionsRef:c,handleFacetSelectionChange:m.useCallback((e,t)=>{if(c.current[e]===t)return;let r=E({},c.current);r[e]=t,p(r)},[p]),clearFacetSelections:m.useCallback(()=>
281{if(0===Object.keys(c.current).length)return;let e={};for(let t of o.current)c.current[t.key]&&(e[t.key]="");p(e)},[p])}}({facets:T,indexes:es,searchClient:eo,onSelectionsChange:()=>{var e;return null==(e=el.current)?void 0:e.refresh()}}),{favoriteSearches:eh,recentSearches:em}=function({defaultIndexName:e,recentSearchesLimit:t,recentSearchesWithFavoritesLimit:r}){let n=m.useRef(en({key:`__DOCSEARCH_FAVORITE_SEARCHES__${e}`,limit:10})).current;return{favoriteSearches:n,recentSearches:m.useRef(en({key:`__DOCSEARCH_RECENT_SEARCHES__${e}`,limit:0===n.getAll().length?t:r})).current}}({defaultIndexName:ea,recentSearchesLimit:w,recentSearchesWithFavoritesLimit:k}),eg=function({favoriteSearches:e,recentSearches:t,disableUserPersonalization:r}){return m.useCallback(function(n){let i,o;if(r)return;let s="content"===n.type?n.__docsearch_parent||(i=n.hierarchy,o=["lvl6","lvl5","lvl4","lvl3","lvl2","lvl1","lvl0"].find(e=>i[e]),E(E({},n),{},{type:o||"lvl0",content:null})):n;s&&-1===e.getAll().findIndex(e=>e.objectID===s.objectID)&&t.add(s)},[e,t,r])}({favoriteSearches:eh,recentSearches:em,disableUserPersonalization:g}),ey=m.useCallback(e=>{Q.context.algoliaInsightsPlugin&&e.__autocomplete_id&&Q.context.algoliaInsightsPlugin.insights.clickedObjectIDsAfterSearch({eventName:"Item Selected",index:e.__autocomplete_indexName,items:[e],positions:[e.__autocomplete_id],queryID:e.__autocomplete_queryID})},[Q.context.algoliaInsightsPlugin]);el.current||(el.current=function(e){var t,r,n,i,o,s,a,l,c,u,d,f,h,m,g,y,v,b,x,w,E=[],k=(r="u">typeof window?window:{},n=e.plugins||[],sz(sz({debug:!1,openOnFocus:!1,enterKeyHint:void 0,ignoreCompositionEvents:!1,placeholder:"",autoFocus:!1,defaultActiveItemId:null,stallThreshold:300,insights:void 0,environment:r,shouldPanelOpen:function(e){return sq(e.state)>0},reshape:function(e){return e.sources}},e),{},{id:null!=(t=e.id)?t:"autocomplete-".concat(sR++),plugins:n,initialState:sz({activeItemId:null,query:"",completion:null,collections:[],isOpen:!1,status:"idle",context:{}},e.initialState),onStateChange:function(t){var r;null==(r=e.onStateChange)||r.call(e,t),n.forEach(function(e){var r;return null==(r=e.onStateChange)?void 0:r.call(e,t)})},onSubmit:function(t){var r;null==(r=e.onSubmit)||r.call(e,t),n.forEach(function(e){var r;return null==(r=e.onSubmit)?void 0:r.call(e,t)})},onReset:function(t){var r;null==(r=e.onReset)||r.call(e,t),n.forEach(function(e){var r;return null==(r=e.onReset)?void 0:r.call(e,t)})},getSources:function(t){var r;return Promise.all([].concat(function(e){if(Array.isArray(e))return s$(e)}(r=n.map(function(e){return e.getSources}))||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e){if(e){if("string"==typeof e)return s$(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return s$(e,void 0)}}(r)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[e.getSources]).filter(Boolean).map(function(e){var r;return r=[],Promise.resolve(e(t)).then(function(e){return sF(Array.isArray(e),function(){return"The `getSources` function must return an array of sources but returned type ".concat(JSON.stringify(sU(e)),":\n\n").concat(JSON.stringify(sD(e),null,2))}),Promise.all(e.filter(function(e){return!!e}).map(function(e){if(sF("string"==typeof e.sourceId,"A source must provide a `sourceId` string."),r.includes(e.sourceId))throw Error("[Autocomplete] The `sourceId` ".concat(JSON.stringify(e.sourceId)," is not unique."));r.push(e.sourceId);var t={getItemInputValue:function(e){return e.state.query},getItemUrl:function(){},onSelect:function(e){(0,e.setIsOpen)(!1)},onActive:si,onResolve:si};return Object.keys(t).forEach(function(e){t[e].__default=!0}),Promise.resolve(sM(sM({},t),e))}))})})).then(function(e){return sN(e)}).then(function(e){return e.map(function(e){return sz(sz({},e),{}
281,{onSelect:function(t){e.onSelect(t),E.forEach(function(e){var r;return null==(r=e.onSelect)?void 0:r.call(e,t)})},onActive:function(t){e.onActive(t),E.forEach(function(e){var r;return null==(r=e.onActive)?void 0:r.call(e,t)})},onResolve:function(t){e.onResolve(t),E.forEach(function(e){var r;return null==(r=e.onResolve)?void 0:r.call(e,t)})}})})})},navigator:sz({navigate:function(e){var t=e.itemUrl;r.location.assign(t)},navigateNewTab:function(e){var t=e.itemUrl,n=r.open(t,"_blank","noopener");null==n||n.focus()},navigateNewWindow:function(e){var t=e.itemUrl;r.open(t,"_blank","noopener")}},e.navigator)})),_=(i=function(e){var t,r,n=e.prevState,i=e.state;if(k.onStateChange(aR({prevState:n,state:i,refresh:O,navigator:k.navigator},j)),!P()&&null!=(t=i.context)&&null!=(r=t.algoliaInsightsPlugin)&&r.__automaticInsights&&!1!==k.insights){var o=sj({__autocomplete_clickAnalytics:!1});k.plugins.push(o),T([o])}},o=k.initialState,{getState:function(){return o},dispatch:function(e,t){var r=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?sP(Object(r),!0).forEach(function(t){var n,i,o;n=e,i=t,o=r[t],(i=function(e){var t=function(e,t){if("object"!==sT(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==sT(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===sT(t)?t:String(t)}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sP(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},o);i({state:o=aC(o,{type:e,props:k,payload:t}),prevState:r})},pendingRequests:(s=[],{add:function(e){return s.push(e),e.finally(function(){s=s.filter(function(t){return t!==e})})},cancelAll:function(){s.forEach(function(e){return e.cancel()})},isEmpty:function(){return 0===s.length},wait:function(e){return sO?(sO=!1,(p=e?Promise.race([Promise.all(s),new Promise(function(t){return setTimeout(t,e)})]):Promise.all(s)).then(function(){sO=!0})):p}})}),j={setActiveItemId:function(e){_.dispatch("setActiveItemId",e)},setQuery:function(e){_.dispatch("setQuery",e)},setCollections:function(e){var t=0,r=e.map(function(e){return sI(sI({},e),{},{items:sN(e.items).map(function(e){return sI(sI({},e),{},{__autocomplete_id:t++})})})});_.dispatch("setCollections",r)},setIsOpen:function(e){_.dispatch("setIsOpen",e)},setStatus:function(e){_.dispatch("setStatus",e)},setContext:function(e){_.dispatch("setContext",e)}},S=(l=(a=aR({props:k,refresh:O,store:_,navigator:k.navigator},j)).props,c=a.refresh,u=a.store,d=aE(a,ah),{getEnvironmentProps:function(e){var t=e.inputElement,r=e.formElement,n=e.panelElement;function i(e){(u.getState().isOpen||!u.pendingRequests.isEmpty())&&e.target!==t&&!1===[r,n].some(function(t){var r;return t===(r=e.target)||t.contains(r)})&&(u.dispatch("blur",null),l.debug||u.pendingRequests.cancelAll())}return aw({onTouchStart:i,onMouseDown:i,onTouchMove:function(e){!1!==u.getState().isOpen&&t===l.environment.document.activeElement&&e.target!==t&&t.blur()}},aE(e,am))},getRootProps:function(e){return aw({role:"combobox","aria-expanded":u.getState().isOpen,"aria-haspopup":"listbox","aria-controls":u.getState().isOpen?u.getState().collections.map(function(e){var t=e.source;return ai(l.id,"list",t)}).join(" "):void 0,"aria-labelledby":ai(l.id,"label")},e)},getFormProps:function(e){e.inputElement;var t=aE(e,ag),r=function(t){var r;l.onSubmit(aw({event:t,refresh:c,state:u.getState()},d)),u.dispatch("submit",null),null==(r=e.inputElement)||r.blur()};return aw({action:"",noValidate:!0,role:"search",onSubmit:function(e){e.preventDefault();var t=as(l.plugins,u.pendingRequests);void 0!==t?t.then(function(){return r(e)}):r(e)},onReset:function(t){var r;t.preventDefault(),l.onReset(aw({event:t,refresh:c,state:u.getState()},d)),u.dispatch("reset",null),null==(r=e.inputElement)||r.focus()}},t)},getLabelProps:function(e){return aw({htmlFor:ai(l.id,"input"),id:ai(l.id,"label")},e)},getInputProps:function(e){function t(e){(l.openOnFocus||u.getState().query
281)&&an(aw({event:e,props:l,query:u.getState().completion||u.getState().query,refresh:c,store:u},d)),u.dispatch("focus",null)}var r,n,i=e||{},o=(i.inputElement,i.maxLength),s=void 0===o?512:o,a=aE(i,ay),p=s6(u.getState()),f=!!((r=(null==(n=l.environment.navigator)?void 0:n.userAgent)||"")&&r.match(ad)),h=l.enterKeyHint||(null!=p&&p.itemUrl&&!f?"go":"search");return aw({"aria-autocomplete":"both","aria-activedescendant":u.getState().isOpen&&null!==u.getState().activeItemId?ai(l.id,"item-".concat(u.getState().activeItemId),null==p?void 0:p.source):void 0,"aria-controls":u.getState().isOpen?u.getState().collections.filter(function(e){return e.items.length>0}).map(function(e){var t=e.source;return ai(l.id,"list",t)}).join(" "):void 0,"aria-labelledby":ai(l.id,"label"),value:u.getState().completion||u.getState().query,id:ai(l.id,"input"),autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",enterKeyHint:h,spellCheck:"false",autoFocus:l.autoFocus,placeholder:l.placeholder,maxLength:s,type:"search",onChange:function(e){var t=e.currentTarget.value;l.ignoreCompositionEvents&&ap(e).isComposing?d.setQuery(t):an(aw({event:e,props:l,query:t.slice(0,s),refresh:c,store:u},d))},onCompositionEnd:function(e){an(aw({event:e,props:l,query:e.currentTarget.value.slice(0,s),refresh:c,store:u},d))},onKeyDown:function(e){ap(e).isComposing||function(e){var t=e.event,r=e.props,n=e.refresh,i=e.store,o=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,al);if("ArrowUp"===t.key||"ArrowDown"===t.key){var s=function(){var e=s6(i.getState()),t=r.environment.document.getElementById(ai(r.id,"item-".concat(i.getState().activeItemId),null==e?void 0:e.source));t&&(t.scrollIntoViewIfNeeded?t.scrollIntoViewIfNeeded(!1):t.scrollIntoView(!1))},a=function(){var e=s6(i.getState());if(null!==i.getState().activeItemId&&e){var r=e.item,s=e.itemInputValue,a=e.itemUrl,l=e.source;l.onActive(au({event:t,item:r,itemInputValue:s,itemUrl:a,refresh:n,source:l,state:i.getState()},o))}};t.preventDefault(),!1===i.getState().isOpen&&(r.openOnFocus||i.getState().query)?an(au({event:t,props:r,query:i.getState().query,refresh:n,store:i},o)).then(function(){i.dispatch(t.key,{nextActiveItemId:r.defaultActiveItemId}),a(),setTimeout(s,0)}):(i.dispatch(t.key,{}),a(),s())}else if("Escape"===t.key)t.preventDefault(),i.dispatch(t.key,null),i.pendingRequests.cancelAll();else if("Tab"===t.key)i.dispatch("blur",null),i.pendingRequests.cancelAll();else if("Enter"===t.key){if(null===i.getState().activeItemId||i.getState().collections.every(function(e){return 0===e.items.length})){var l=as(r.plugins,i.pendingRequests);void 0!==l?l.then(i.pendingRequests.cancelAll):r.debug||i.pendingRequests.cancelAll();return}t.preventDefault();var c=s6(i.getState()),u=c.item,d=c.itemInputValue,p=c.itemUrl,f=c.source;if(t.metaKey||t.ctrlKey)void 0!==p&&(f.onSelect(au({event:t,item:u,itemInputValue:d,itemUrl:p,refresh:n,source:f,state:i.getState()},o)),r.navigator.navigateNewTab({itemUrl:p,item:u,state:i.getState()}));else if(t.shiftKey)void 0!==p&&(f.onSelect(au({event:t,item:u,itemInputValue:d,itemUrl:p,refresh:n,source:f,state:i.getState()},o)),r.navigator.navigateNewWindow({itemUrl:p,item:u,state:i.getState()}));else if(t.altKey);else{if(void 0!==p){f.onSelect(au({event:t,item:u,itemInputValue:d,itemUrl:p,refresh:n,source:f,state:i.getState()},o)),r.navigator.navigate({itemUrl:p,item:u,state:i.getState()});return}an(au({event:t,nextState:{isOpen:!1},props:r,query:d,refresh:n,store:i},o)).then(function(){f.onSelect(au({event:t,item:u,itemInputValue:d,itemUrl:p,refresh:n,source:f,state:i.getState()},o))})}}}(aw({event:e,props:l,refresh:c,store:u},d))},onFocus:t,onBlur:si,onClick:function(r){e.inputElement!==l.environment.document.activeElement||u.getState().isOpen||t(r)}},a)},getPanelProps:function(e){return aw({onMouseDown:function(e){e.preventDefault()},onMouseLeave:function(){u.dispatch("mouseleave",null)}},e)},getListProps:function(e){var t=e||{},r=t.source,n=aE(t,av);return aw({role:"listbox","aria-labelledby":ai(l.id,"label"),id:ai(l.id,"list",r)},n)},getItemProps:function(e){var t=e.item,r=e.source,n=aE(e,ab);return aw({id:ai(l.id,"item-".concat(t.__autocomplete_id),r),role:"option","aria-selected":u.getState().activeItemId===t.__autocomplete_id,onMouseMove:function(e){if(t.__autocomplete_id!==u.getState().activeItemId){u.dispatch("mousemove",t.__autocomplete_id);var r=s6(u.getState());if(null!==u.getState().activeItemId&&r){var n=r.item,i=r.itemInputValue,o=r.itemUrl,s=r.source;s.onActive(aw({event:e,item:n,itemInputValue:i,itemUrl:o,refresh:c,source:s,state:u.getState()},d))}}},onMouseDown:function(e){e.preventDefault()},onClick:function(e){var n=r.getItemInputValue({item:t,state:u.getState()}),i=r.getItemUrl({item:t,state:u.getState()});(i?Promise.resolve():an(aw({event:e,nextState:{isOpen:!1},props:l,query:n,refresh:c,store:u}
281,d))).then(function(){r.onSelect(aw({event:e,item:t,itemInputValue:n,itemUrl:i,refresh:c,source:r,state:u.getState()},d))})}},n)}});function O(){return an(aR({event:new Event("input"),nextState:{isOpen:_.getState().isOpen},props:k,navigator:k.navigator,query:_.getState().query,refresh:O,store:_},j))}function T(e){e.forEach(function(e){var t;return null==(t=e.subscribe)?void 0:t.call(e,aR(aR({},j),{},{navigator:k.navigator,refresh:O,onSelect:function(e){E.push({onSelect:e})},onActive:function(e){E.push({onActive:e})},onResolve:function(e){E.push({onResolve:e})}}))})}function P(){return k.plugins.some(function(e){return"aa.algoliaInsightsPlugin"===e.name})}if(k.insights&&!P()){var N="boolean"==typeof k.insights?{}:k.insights;k.plugins.push(sj(N))}return T(k.plugins),!function(e){var t,r,n=e.metadata,i=e.environment;if(null==(t=i.navigator)||null==(r=t.userAgent)?void 0:r.includes("Algolia Crawler")){var o=i.document.createElement("meta"),s=i.document.querySelector("head");o.name="algolia:metadata",setTimeout(function(){o.content=JSON.stringify(n),s.appendChild(o)},0)}}({metadata:(v=(f={plugins:k.plugins,options:e}).plugins,w=(x=null==(h=((null==(m=(b=f.options).__autocomplete_metadata)?void 0:m.userAgents)||[])[0])?void 0:h.segment)?aS({},x,Object.keys((null==(g=b.__autocomplete_metadata)?void 0:g.options)||{})):{},{plugins:v.map(function(e){return{name:e.name,options:Object.keys(e.__autocomplete_pluginOptions||[])}}),options:function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?aj(Object(r),!0).forEach(function(t){aS(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):aj(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({"autocomplete-core":Object.keys(b)},w),ua:ak.concat((null==(y=b.__autocomplete_metadata)?void 0:y.userAgents)||[])}),environment:k.environment}),aR(aR({refresh:O,navigator:k.navigator},S),j)}({id:"docsearch",defaultActiveItemId:0,openOnFocus:!0,initialState:{query:er,context:{searchSuggestions:[]}},insights:!!x,navigator:d,onStateChange(e){H(e.state)},getSources:({query:e,state:t,setContext:r,setStatus:s})=>ob(e)?function({recentSearches:e,favoriteSearches:t,saveRecentSearch:r,onClose:n,disableUserPersonalization:i}){return i?[]:[{sourceId:"favoriteSearches",onSelect({item:e,event:t}){r(e),ov(t)||n()},getItemUrl:({item:e})=>e.url,getItems:()=>t.getAll()},{sourceId:"recentSearches",onSelect({item:e,event:t}){r(e),ov(t)||n()},getItemUrl:({item:e})=>e.url,getItems:()=>e.getAll()}]}({recentSearches:em,favoriteSearches:eh,saveRecentSearch:eg,onClose:a,disableUserPersonalization:g}):st({query:e,state:{context:t.context},setContext:r,setStatus:s,searchClient:eo,indexes:es,insights:!!x,appId:n,apiKey:i,maxResultsPerGroup:o,transformItems:l,saveRecentSearch:eg,onClose:a,facetSelections:ed})}));let ev=el.current,{getEnvironmentProps:eb,getRootProps:ex,refresh:ew}=ev;!function({getEnvironmentProps:e,containerRef:t,dropdownRef:r,formElementRef:n,inputRef:i,initialScrollY:o,modalRef:s,theme:a}){!function({getEnvironmentProps:e,panelElement:t,formElement:r,inputElement:n}){m.useEffect(()=>{if(!(t&&r&&n))return;let{onTouchStart:i,onTouchMove:o}=e({panelElement:t,formElement:r,inputElement:n});return window.addEventListener("touchstart",i),window.addEventListener("touchmove",o),()=>{window.removeEventListener("touchstart",i),window.removeEventListener("touchmove",o)}},[e,t,r,n])}({getEnvironmentProps:e,panelElement:r.current,formElement:n.current,inputElement:i.current}),function({container:e}){m.useEffect(()=>{if(!e)return;let t=e.querySelectorAll("a[href]:not([disabled]), button:not([disabled]), input:not([disabled])"),r=t[0],n=t[t.length-1];function i(e){"Tab"===e.key&&(e.shiftKey?document.activeElement===r&&(e.preventDefault(),n.focus()):document.activeElement===n&&(e.preventDefault(),r.focus()))}return e.addEventListener("keydown",i),()=>{e.removeEventListener("keydown",i)}},[e])}({container:t.current}),function({initialScrollY:e,modalRef:t,theme:r}){(({theme:e})=>{(0,m.useEffect)(()=>
281{if(!e)return;let t=document.documentElement.dataset.theme;if(e!==t)return document.documentElement.dataset.theme=e,()=>{void 0===t?delete document.documentElement.dataset.theme:document.documentElement.dataset.theme=t}},[e])})({theme:r}),m.useEffect(()=>(document.body.classList.add("DocSearch--active"),()=>{var t,r;document.body.classList.remove("DocSearch--active"),null==(t=(r=window).scrollTo)||t.call(r,0,e)}),[e]),m.useEffect(()=>{window.localStorage&&function(){if(!window.localStorage)return 0;let e=0;for(let t in window.localStorage)window.localStorage.hasOwnProperty(t)&&(e+=window.localStorage[t].length+t.length);return e}()>4194304&&et()},[]),m.useLayoutEffect(()=>{let e=window.innerWidth-document.body.clientWidth;return document.body.style.marginInlineEnd=`${e}px`,()=>{document.body.style.marginInlineEnd="0px"}},[]),m.useEffect(()=>{function e(){if(t.current){let e=.01*window.innerHeight;t.current.style.setProperty("--docsearch-vh",`${e}px`)}}return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[t])}({initialScrollY:o,modalRef:s,theme:a})}({getEnvironmentProps:eb,containerRef:Y,dropdownRef:Z,formElementRef:J,inputRef:ee,initialScrollY:f,modalRef:X,theme:s}),m.useEffect(()=>{var e;Z.current&&("function"==typeof(e=Z.current).scrollTo?e.scrollTo({top:0,behavior:"smooth"}):e.scrollTop=0)},[Q.query,Z]),function({initialQuery:e,inputRef:t,refresh:r}){m.useEffect(()=>{e.length>0&&(r(),t.current&&t.current.focus())},[e,t,r])}({initialQuery:er,inputRef:ee,refresh:ew});let eE=!0,ek=Q.collections.some(e=>e.items.length>0);return"idle"===Q.status&&!1===ek&&ob(Q.query)&&(eE=!1),m.createElement(oW,{state:Q,containerRef:Y,modalRef:X,formElementRef:J,dropdownRef:Z,getRootProps:ex,showDropdown:eE,searchBox:m.createElement(aD,E(E({},ev),{},{state:Q,placeholder:V||"Search docs",autoFocus:ob(er),inputRef:ee,isFromSelection:!!er&&er===ei,translations:z,onClose:a})),filterBar:ob(Q.query)?null:m.createElement(oU,{facets:ec,selections:eu,translations:K,clearSelections:ef,onSelectionChange:ep}),screenState:m.createElement(aB,E(E({},ev),{},{indexName:ea,state:Q,hitComponent:c,resultsFooterComponent:u,disableUserPersonalization:g,recentSearches:em,favoriteSearches:eh,inputRef:ee,translations:G,getMissingResultsUrl:b,hasCollections:ek,resultBadgeKey:C.resultBadgeKey,onItemClick:(e,t)=>{ey(e),eg(e),ov(t)||a()}})),footer:m.createElement(oK,{translations:I,footerAction:P}),onClose:a})}var aK=r(212),aG=r(2203),aQ=r.n(aG);let aH=["Ctrl ","Control"],aV=["⌘","Command"];var aY=r(6170);let aX="HB50HVJDY8",aJ=/^\/(docs|actions|filters|functions|recipes|developer-reference)(\/|$)/,aZ=/^\/(blog(\/|$)|\d{4}\/)/,a0="blog";function a1(e){let t=e.split(/[?#]/)[0],r=t.match(/^\/docs\/([^/]+)/);return r&&(0,aY.QQ)().some(e=>e.key!==aY.s&&e.key===r[1])?r[1]:aJ.test(t)?aY.s:aZ.test(t)?a0:null}let a2=(0,m.createContext)();function a5({children:e}){let t=(0,y.useRouter)(),[r,n]=(0,m.useState)(!1),[i,o]=(0,m.useState)(null),[s,a]=(0,m.useState)(null),l=(0,m.useCallback)(()=>{a(a1(t.asPath)),n(!0)},[n,t.asPath]),c=(0,m.useCallback)(()=>{n(!1)},[n]),u=(0,m.useCallback)(e=>{a(a1(t.asPath)),n(!0),o(e.key)},[n,o,t.asPath]),d=(0,m.useCallback)(e=>{o(document.querySelector(".DocSearch-Input")?.value??""),a(e)},[o,a]);return function({isOpen:e,onOpen:t,onClose:r}){(0,m.useEffect)(()=>{function n(n){let i,o;(27===n.keyCode&&e||"k"===n.key&&(n.metaKey||n.ctrlKey)||(o=(i=n.target).tagName,!i.isContentEditable&&"INPUT"!==o&&"SELECT"!==o&&"TEXTAREA"!==o&&"/"===n.key&&!e))&&(n.preventDefault(),e?r():!document.body.classList.contains("DocSearch--active")&&(document.body.classList.contains("DocSearch--active")||t()))}return window.addEventListener("keydown",n),()=>{window.removeEventListener("keydown",n)}},[e,t,r])}({isOpen:r,onOpen:l,onClose:c}),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(b(),{children:(0,f.jsx)("link",{rel:"preconnect",href:`https://${aX}-dsn.algolia.net`,crossOrigin:"true"})}),(0,f.jsx)(a2.Provider,{value:{isOpen:r,onOpen:l,onClose:c,onInput:u},children:e}),r&&(0,h.createPortal)((0,f.jsx)(az,{initialQuery:i,initialScrollY:window.scrollY,indices:[{name:"wpgraphql",searchParameters:{distinct:1,attributesToRetrieve:["hierarchy.lvl0","hierarchy.lvl1","hierarchy.lvl2","hierarchy.lvl3","hierarchy.lvl4","hierarchy.lvl5","hierarchy.lvl6","content","type","url","anchor","product","tags"],...s?{facetFilters:[s===a0?"tags:blog":`product:${s}`]}:{}}}],onClose:c,apiKey:"0c11d662dad18e8a18d20c969b25c65f",appId:aX,placeholder:"Search...",navigator:{navigate({itemUrl:e}){n(!1),t.push(e)}},hitComponent:a4},s??"all"),document.body),r&&(0,f.jsx)(a3,{value:s,onChange:d},`chips-${s??"all"}`)]})}
281function a3({value:e,onChange:t}){let[r]=(0,m.useState)(()=>{let e=document.createElement("div");return e.className="DocSearch-ProductFilter",e});(0,m.useEffect)(()=>{let e=document.querySelector(".DocSearch-Modal .DocSearch-SearchBar");if(e)return e.insertAdjacentElement("afterend",r),()=>{r.remove()}},[r]);let n=[{key:null,shortLabel:"All",themeClass:null},...(0,aY.QQ)().map(({key:e,shortLabel:t,themeClass:r})=>({key:e,shortLabel:t,themeClass:r})),{key:a0,shortLabel:"Blog",themeClass:null}];return(0,h.createPortal)((0,f.jsx)("div",{role:"group","aria-label":"Filter results by product",className:"DocSearch-ProductFilter-Chips",children:n.map(r=>(0,f.jsx)("button",{type:"button","aria-pressed":e===r.key,className:(0,aK.A)("DocSearch-ProductFilter-Chip",r.themeClass,{"DocSearch-ProductFilter-Chip--active":e===r.key}),onClick:()=>{e!==r.key&&t(r.key)},children:r.shortLabel},r.key??"all"))}),r)}function a4({hit:e,children:t}){let r=function(e){let t="string"==typeof e.product?e.product:null;if(t&&aY.$e[t]){let{shortLabel:e,themeClass:r}=aY.$e[t];return{label:e,themeClass:r}}return Array.isArray(e.tags)&&e.tags.includes("blog")?{label:"Blog",themeClass:null}:null}(e),n=!!r&&!e.__is_child?.();return(0,f.jsx)(aQ(),{href:e.url,legacyBehavior:!0,children:(0,f.jsxs)("a",{className:(0,aK.A)({"DocSearch-Hit--Result":e.__is_result?.(),"DocSearch-Hit--Parent":e.__is_parent?.(),"DocSearch-Hit--FirstChild":e.__is_first?.(),"DocSearch-Hit--LastChild":e.__is_last?.(),"DocSearch-Hit--Child":e.__is_child?.()},n&&"DocSearch-Hit--withBadge"),children:[t,n&&(0,f.jsx)("span",{"aria-hidden":"true",className:(0,aK.A)("DocSearch-Hit-ProductBadge",r.themeClass),children:r.label})]})})}function a6({children:e,...t}){let r=(0,m.useRef)(),n=function(){let[e,t]=(0,m.useState)();return(0,m.useEffect)(()=>{"u">typeof navigator&&(/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)?t(aV):t(aH))},[]),e}(),{onOpen:i,onInput:o}=(0,m.useContext)(a2);return(0,m.useEffect)(()=>{function e(e){r&&r.current===document.activeElement&&o&&/[a-zA-Z0-9]/.test(String.fromCharCode(e.keyCode))&&o(e)}return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}},[o,r]),(0,f.jsx)("button",{type:"button",ref:r,onClick:i,...t,children:"function"==typeof e?e({actionKey:n}):e})}},7511:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return l}});let n=r(5729),i=r(5954),o="function"==typeof IntersectionObserver,s=new Map,a=[];function l({rootRef:e,rootMargin:t,disabled:r}){let c=r||!o,[u,d]=(0,n.useState)(!1),p=(0,n.useRef)(null),f=(0,n.useCallback)(e=>{p.current=e},[]);return(0,n.useEffect)(()=>{if(o){if(c||u)return;let r=p.current;if(r&&r.tagName)return function(e,t,r){let{id:n,observer:i,elements:o}=function(e){let t,r={root:e.root||null,margin:e.rootMargin||""},n=a.find(e=>e.root===r.root&&e.margin===r.margin);if(n&&(t=s.get(n)))return t;let i=new Map;return t={id:r,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=i.get(e.target),r=e.isIntersecting||e.intersectionRatio>0;t&&r&&t(r)})},e),elements:i},a.push(r),s.set(r,t),t}(r);return o.set(e,t),i.observe(e),function(){if(o.delete(e),i.unobserve(e),0===o.size){i.disconnect(),s.delete(n);let e=a.findIndex(e=>e.root===n.root&&e.margin===n.margin);e>-1&&a.splice(e,1)}}}(r,e=>e&&d(e),{root:e?.current,rootMargin:t})}else if(!u){let e=(0,i.requestIdleCallback)(()=>d(!0));return()=>(0,i.cancelIdleCallback)(e)}},[c,t,e,u,p.current]),[f,u,(0,n.useCallback)(()=>{d(!1)},[])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7876:(e,t)=>{"use strict";function r({widthInt:e,heightInt:t,blurWidth:n,blurHeight:i,blurDataURL:o,objectFit:s}){let a=n?40*n:e,l=i?40*i:t,c=a&&l?`viewBox='0 0 ${a} ${l}'`:"";return`%3Csvg xmlns='http://www.w3.org/2000/svg' ${c}%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3Cfe
281ColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='${c?"none":"contain"===s?"xMidYMid":"cover"===s?"xMidYMid slice":"none"}' style='filter: url(%23b);' href='${o}'/%3E%3C/svg%3E`}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return r}})},8233:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(6029),i=r(2203),o=r.n(i);function s({items:e}){return e&&0!==e.length?(0,n.jsx)("nav",{"aria-label":"Breadcrumb",className:"not-prose mb-4",children:(0,n.jsx)("ol",{className:"flex flex-wrap items-center gap-1.5 font-mono text-xs tracking-wide text-muted-foreground",children:e.map((t,r)=>{let i=r===e.length-1;return(0,n.jsxs)("li",{className:"flex items-center gap-1.5",children:[r>0&&(0,n.jsx)("span",{"aria-hidden":"true",className:"text-border",children:"/"}),t.href&&!i?(0,n.jsx)(o(),{href:t.href,className:"transition-colors hover:text-primary",children:t.label}):(0,n.jsx)("span",{"aria-current":i?"page":void 0,className:"text-foreground",children:t.label})]},t.label)})})}):null}},8358:()=>{},8471:(e,t)=>{"use strict";function r(e,t){let r=e||75;return t?.qualities?.length?t.qualities.reduce((e,t)=>Math.abs(t-r)<Math.abs(e-r)?t:e,t.qualities[0]):r}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"findClosestQuality",{enumerable:!0,get:function(){return r}})},8588:(e,t,r)=>{e.exports=r(2601)},8631:(e,t,r)=>{"use strict";let n,i,o;r.d(t,{A:()=>H});var s=r(5729),a=r(6760),l=r(4149),c=r(483),u=r(188),d=r(1673);function p(...e){return(0,s.useMemo)(()=>(0,d.T)(...e),[...e])}var f=r(2925),h=r(1321);let m=(0,s.createContext)(!1);var g=r(5369),y=r(2562);let v=s.Fragment,b=s.Fragment,x=(0,s.createContext)(null),w=(0,s.createContext)(null);Object.assign((0,y.FX)(function(e,t){var r;let n,i,o=(0,s.useRef)(null),d=(0,h.P)((0,h.a)(e=>{o.current=e}),t),b=p(o),E=function(e){let t=(0,s.useContext)(m),r=(0,s.useContext)(x),n=p(e),[i,o]=(0,s.useState)(()=>{if(!t&&null!==r||g._.isServer)return null;let e=null==n?void 0:n.getElementById("headlessui-portal-root");if(e)return e;if(null===n)return null;let i=n.createElement("div");return i.setAttribute("id","headlessui-portal-root"),n.body.appendChild(i)});return(0,s.useEffect)(()=>{null!==i&&(null!=n&&n.body.contains(i)||null==n||n.body.appendChild(i))},[i,n]),(0,s.useEffect)(()=>{t||null!==r&&o(r.current)},[r,o,t]),i}(o),[k]=(0,s.useState)(()=>{var e;return g._.isServer?null:null!=(e=null==b?void 0:b.createElement("div"))?e:null}),_=(0,s.useContext)(w),j=(0,f.g)();return(0,c.s)(()=>{!E||!k||E.contains(k)||(k.setAttribute("data-headlessui-portal",""),E.appendChild(k))},[E,k]),(0,c.s)(()=>{if(k&&_)return _.register(k)},[_,k]),r=()=>{var e;E&&k&&(k instanceof Node&&E.contains(k)&&E.removeChild(k),E.childNodes.length<=0&&(null==(e=E.parentElement)||e.removeChild(E)))},n=(0,l._)(r),i=(0,s.useRef)(!1),(0,s.useEffect)(()=>(i.current=!1,()=>{i.current=!0,(0,u._)(()=>{i.current&&n()})}),[n]),j&&E&&k?(0,a.createPortal)((0,y.XX)({ourProps:{ref:d},theirProps:e,defaultTag:v,name:"Portal"}),k):null}),{Group:(0,y.FX)(function(e,t){let{target:r,...n}=e,i={ref:(0,h.P)(t)};return s.createElement(x.Provider,{value:r},(0,y.XX)({ourProps:i,theirProps:n,defaultTag:b,name:"Popover.Group"}))})});var E=r(6308),k=r(1201),_=r(2940),j=r(7163),S=r(6942),O=r(22),T=((n=T||{})[n.Forwards=0]="Forwards",n[n.Backwards=1]="Backwards",n);function P(){let e=(0,s.useRef)(0);return(0,O.M)("keydown",t=>{"Tab"===t.key&&(e.current=+!!t.shiftKey)},!0),e}var N=r(1453),A=r(2357),C=r(2774),I=r(5219),q=r(5612),R=((i=R||{})[i.Open=0]="Open",i[i.Closed=1]="Closed",i),F=((o=F||{})[o.TogglePopover=0]="TogglePopover",o[o.ClosePopover=1]="ClosePopover",o[o.SetButton=2]="SetButton",o[o.SetButtonId=3]="SetButtonId",o[o.SetPanel=4]="SetPanel",o[o.SetPanelId=5]="SetPanelId",o);let D={0:e=>{let t={...e,popoverState:(0,I.Y)(e.popoverState,{0:1,1:0})};return 0===t.popoverState&&(t.__demoMode=!1),t},1:e=>1===e.popoverState?e:{...e,popoverState:1},2:(e,t)=>e.button===t.button?e:{...e,button:t.button},3:(e,t)=>
281e.buttonId===t.buttonId?e:{...e,buttonId:t.buttonId},4:(e,t)=>e.panel===t.panel?e:{...e,panel:t.panel},5:(e,t)=>e.panelId===t.panelId?e:{...e,panelId:t.panelId}},L=(0,s.createContext)(null);function M(e){let t=(0,s.useContext)(L);if(null===t){let t=Error(`<${e} /> is missing a parent <Popover /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,M),t}return t}L.displayName="PopoverContext";let U=(0,s.createContext)(null);function B(e){let t=(0,s.useContext)(U);if(null===t){let t=Error(`<${e} /> is missing a parent <Popover /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,B),t}return t}U.displayName="PopoverAPIContext";let $=(0,s.createContext)(null);function W(){return(0,s.useContext)($)}$.displayName="PopoverGroupContext";let z=(0,s.createContext)(null);function K(e,t){return(0,I.Y)(t.type,D,e,t)}z.displayName="PopoverPanelContext";let G=y.O5.RenderStrategy|y.O5.Static,Q=y.O5.RenderStrategy|y.O5.Static,H=Object.assign((0,y.FX)(function(e,t){var r,n,i;let o,a,c,u,d,f,{__demoMode:m=!1,...g}=e,v=(0,s.useRef)(null),b=(0,h.P)(t,(0,h.a)(e=>{v.current=e})),x=(0,s.useRef)([]),k=(0,s.useReducer)(K,{__demoMode:m,popoverState:+!m,buttons:x,button:null,buttonId:null,panel:null,panelId:null,beforePanelSentinel:(0,s.createRef)(),afterPanelSentinel:(0,s.createRef)()}),[{popoverState:j,button:O,buttonId:T,panel:P,panelId:A,beforePanelSentinel:q,afterPanelSentinel:R},F]=k,D=p(null!=(r=v.current)?r:O),M=(0,s.useMemo)(()=>{if(!O||!P)return!1;for(let e of document.querySelectorAll("body > *"))if(Number(null==e?void 0:e.contains(O))^Number(null==e?void 0:e.contains(P)))return!0;let e=(0,C.iq)(),t=e.indexOf(O),r=(t+e.length-1)%e.length,n=(t+1)%e.length,i=e[r],o=e[n];return!P.contains(i)&&!P.contains(o)},[O,P]),B=(0,E.Y)(T),$=(0,E.Y)(A),G=(0,s.useMemo)(()=>({buttonId:B,panelId:$,close:()=>F({type:1})}),[B,$,F]),Q=W(),H=null==Q?void 0:Q.registerPopover,V=(0,l._)(()=>{var e;return null!=(e=null==Q?void 0:Q.isFocusWithinPopoverGroup())?e:(null==D?void 0:D.activeElement)&&((null==O?void 0:O.contains(D.activeElement))||(null==P?void 0:P.contains(D.activeElement)))});(0,s.useEffect)(()=>null==H?void 0:H(G),[H,G]);let[Y,X]=(o=(0,s.useContext)(w),a=(0,s.useRef)([]),c=(0,l._)(e=>(a.current.push(e),o&&o.register(e),()=>u(e))),u=(0,l._)(e=>{let t=a.current.indexOf(e);-1!==t&&a.current.splice(t,1),o&&o.unregister(e)}),d=(0,s.useMemo)(()=>({register:c,unregister:u,portals:a}),[c,u,a]),[a,(0,s.useMemo)(()=>function({children:e}){return s.createElement(w.Provider,{value:d},e)},[d])]),J=function({defaultContainers:e=[],portals:t,mainTreeNodeRef:r}={}){var n;let i=(0,s.useRef)(null!=(n=null==r?void 0:r.current)?n:null),o=p(i),a=(0,l._)(()=>{var r,n,s;let a=[];for(let t of e)null!==t&&(t instanceof HTMLElement?a.push(t):"current"in t&&t.current instanceof HTMLElement&&a.push(t.current));if(null!=t&&t.current)for(let e of t.current)a.push(e);for(let e of null!=(r=null==o?void 0:o.querySelectorAll("html > *, body > *"))?r:[])e!==document.body&&e!==document.head&&e instanceof HTMLElement&&"headlessui-portal-root"!==e.id&&(e.contains(i.current)||e.contains(null==(s=null==(n=i.current)?void 0:n.getRootNode())?void 0:s.host)||a.some(t=>e.contains(t))||a.push(e));return a});
281return{resolveContainers:a,contains:(0,l._)(e=>a().some(t=>t.contains(e))),mainTreeNodeRef:i,MainTreeNode:(0,s.useMemo)(()=>function(){return null!=r?null:s.createElement(S.j,{features:S.O.Hidden,ref:i})},[i,r])}}({mainTreeNodeRef:null==Q?void 0:Q.mainTreeNodeRef,portals:Y,defaultContainers:[O,P]});n=null==D?void 0:D.defaultView,i="focus",f=(0,E.Y)(e=>{var t,r,n,i;e.target!==window&&e.target instanceof HTMLElement&&0===j&&(V()||O&&P&&(J.contains(e.target)||null!=(r=null==(t=q.current)?void 0:t.contains)&&r.call(t,e.target)||null!=(i=null==(n=R.current)?void 0:n.contains)&&i.call(n,e.target)||F({type:1})))}),(0,s.useEffect)(()=>{function e(e){f.current(e)}return(n=null!=n?n:window).addEventListener(i,e,!0),()=>n.removeEventListener(i,e,!0)},[n,i,!0]),(0,_.j)(J.resolveContainers,(e,t)=>{F({type:1}),(0,C.Bm)(t,C.MZ.Loose)||(e.preventDefault(),null==O||O.focus())},0===j);let Z=(0,l._)(e=>{F({type:1});let t=e?e instanceof HTMLElement?e:"current"in e&&e.current instanceof HTMLElement?e.current:O:O;null==t||t.focus()}),ee=(0,s.useMemo)(()=>({close:Z,isPortalled:M}),[Z,M]),et=(0,s.useMemo)(()=>({open:0===j,close:Z}),[j,Z]);return s.createElement(z.Provider,{value:null},s.createElement(L.Provider,{value:k},s.createElement(U.Provider,{value:ee},s.createElement(N.El,{value:(0,I.Y)(j,{0:N.Uw.Open,1:N.Uw.Closed})},s.createElement(X,null,(0,y.XX)({ourProps:{ref:b},theirProps:g,slot:et,defaultTag:"div",name:"Popover"}),s.createElement(J.MainTreeNode,null))))))}),{Button:(0,y.FX)(function(e,t){let r=(0,k.B)(),{id:n=`headlessui-popover-button-${r}`,...i}=e,[o,a]=M("Popover.Button"),{isPortalled:c}=B("Popover.Button"),u=(0,s.useRef)(null),d=`headlessui-focus-sentinel-${(0,k.B)()}`,f=W(),m=null==f?void 0:f.closeOthers,g=null!==(0,s.useContext)(z);(0,s.useEffect)(()=>{if(!g)return a({type:3,buttonId:n}),()=>{a({type:3,buttonId:null})}},[g,n,a]);let[v]=(0,s.useState)(()=>Symbol()),b=(0,h.P)(u,t,g?null:e=>{if(e)o.buttons.current.push(v);else{let e=o.buttons.current.indexOf(v);-1!==e&&o.buttons.current.splice(e,1)}o.buttons.current.length>1&&console.warn("You are already using a <Popover.Button /> but only 1 <Popover.Button /> is supported."),e&&a({type:2,button:e})}),x=(0,h.P)(u,t),w=p(u),E=(0,l._)(e=>{var t,r,n;if(g){if(1===o.popoverState)return;switch(e.key){case q.D.Space:case q.D.Enter:e.preventDefault(),null==(r=(t=e.target).click)||r.call(t),a({type:1}),null==(n=o.button)||n.focus()}}else switch(e.key){case q.D.Space:case q.D.Enter:e.preventDefault(),e.stopPropagation(),1===o.popoverState&&(null==m||m(o.buttonId)),a({type:0});break;case q.D.Escape:if(0!==o.popoverState)return null==m?void 0:m(o.buttonId);if(!u.current||null!=w&&w.activeElement&&!u.current.contains(w.activeElement))return;e.preventDefault(),e.stopPropagation(),a({type:1})}}),_=(0,l._)(e=>{g||e.key===q.D.Space&&e.preventDefault()}),O=(0,l._)(t=>{var r,n;(0,A.l)(t.currentTarget)||e.disabled||(g?(a({type:1}),null==(r=o.button)||r.focus()):(t.preventDefault(),t.stopPropagation(),1===o.popoverState&&(null==m||m(o.buttonId)),a({type:0}),null==(n=o.button)||n.focus()))}),N=(0,l._)(e=>{e.preventDefault(),e.stopPropagation()}),R=0===o.popoverState,F=(0,s.useMemo)(()=>({open:R}),[R]),D=(0,j.c)(e,u),L=g?{ref:x,type:D,onKeyDown:E,onClick:O}:{ref:b,id:o.buttonId,type:D,"aria-expanded":0===o.popoverState,"aria-controls":o.panel?o.panelId:void 0,onKeyDown:E,onKeyUp:_,onClick:O,onMouseDown:N},U=P(),$=(0,l._)(()=>{let e=o.panel;e&&(0,I.Y)(U.current,{[T.Forwards]:()=>(0,C.CU)(e,C.BD.First),[T.Backwards]:()=>(0,C.CU)(e,C.BD.Last)})===C.Me.Error&&(0,C.CU)((0,C.iq)().filter(e=>"true"!==e.dataset.headlessuiFocusGuard),(0,I.Y)(U.current,{[T.Forwards]:C.BD.Next,[T.Backwards]:C.BD.Previous}),{relativeTo:o.button})});return s.createElement(s.Fragment,null,(0,y.XX)({ourProps:L,theirProps:i,slot:F,defaultTag:"button",name:"Popover.Button"}),R&&!g&&c&&s.createElement(S.j,{id:d,features:S.O.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:$}))}),Overlay:(0,y.FX)(function(e,t){let r=(0,k.B)(),{id:n=`headlessui-popover-overlay-${r}`,...i}=e,[{popoverState:o},a]=M("Popover.Overlay"),c=(0,h.P)(t),u=(0,N.O_)(),d=null!==u?(u&N.Uw.Open)===N.Uw.Open:0===o,p=(0,l._)(e=>{if((0,A.l)(e.currentTarget))return e.preventDefault();a({type:1})}),f=(0,s.useMemo)(()=>({open:0===o}),[o]);return(0,y.XX)({ourProps:{ref:c,id:n,"aria-hidden":!0,onClick:p},theirProps:i,slot:f,defaultTag:"div",features:G,visible:d,name:"Popover.Overlay"})}),Panel:(0,y.FX)(function(e,t){let r=(0,k.B)(),{id:n=`headlessui-popover-panel-${r}`,focus:i=!1,...o}=e,[a,u]=M("Popover.Panel"),{close:d,isPortalled:f}=B("Popover.Panel"),m=`headlessui-focus-sentinel-before-${(0,k.B)()}`,g=`headlessui-focus-sentinel-after-${(0,k.B)()}`,v=(0,s.useRef)(null),b=(0,h.P)(v,t,e=>{u({type:4,panel:e})}),x=p(v),w=(0,y.cq)();(0,c.s)(()=>(u({type:5,panelId:n}),()=>{u({type:5,panelId:null})}),[n,u]);let E=(0,N.O_)(),_=null!==E?(E&N.Uw.Open)===N.Uw.Open:0===a.popoverState,j=(0,l._)(e=>{var t;if(e.key===q.D.Escape){if(0!==a.popoverState||!v.current||null!=x&&x.activeElement&&!v.current.contains(x.activeElement))return;e.preventDefault(),e.stopPropagation(),u({type:1}
281),null==(t=a.button)||t.focus()}});(0,s.useEffect)(()=>{var t;e.static||1===a.popoverState&&(null==(t=e.unmount)||t)&&u({type:4,panel:null})},[a.popoverState,e.unmount,e.static,u]),(0,s.useEffect)(()=>{if(a.__demoMode||!i||0!==a.popoverState||!v.current)return;let e=null==x?void 0:x.activeElement;v.current.contains(e)||(0,C.CU)(v.current,C.BD.First)},[a.__demoMode,i,v,a.popoverState]);let O=(0,s.useMemo)(()=>({open:0===a.popoverState,close:d}),[a,d]),A={ref:b,id:n,onKeyDown:j,onBlur:i&&0===a.popoverState?e=>{var t,r,n,i,o;let s=e.relatedTarget;s&&v.current&&(null!=(t=v.current)&&t.contains(s)||(u({type:1}),(null!=(n=null==(r=a.beforePanelSentinel.current)?void 0:r.contains)&&n.call(r,s)||null!=(o=null==(i=a.afterPanelSentinel.current)?void 0:i.contains)&&o.call(i,s))&&s.focus({preventScroll:!0})))}:void 0,tabIndex:-1},R=P(),F=(0,l._)(()=>{let e=v.current;e&&(0,I.Y)(R.current,{[T.Forwards]:()=>{var t;(0,C.CU)(e,C.BD.First)===C.Me.Error&&(null==(t=a.afterPanelSentinel.current)||t.focus())},[T.Backwards]:()=>{var e;null==(e=a.button)||e.focus({preventScroll:!0})}})}),D=(0,l._)(()=>{let e=v.current;e&&(0,I.Y)(R.current,{[T.Forwards]:()=>{var e;if(!a.button)return;let t=(0,C.iq)(),r=t.indexOf(a.button),n=t.slice(0,r+1),i=[...t.slice(r+1),...n];for(let t of i.slice())if("true"===t.dataset.headlessuiFocusGuard||null!=(e=a.panel)&&e.contains(t)){let e=i.indexOf(t);-1!==e&&i.splice(e,1)}(0,C.CU)(i,C.BD.First,{sorted:!1})},[T.Backwards]:()=>{var t;(0,C.CU)(e,C.BD.Previous)===C.Me.Error&&(null==(t=a.button)||t.focus())}})});return s.createElement(z.Provider,{value:n},_&&f&&s.createElement(S.j,{id:m,ref:a.beforePanelSentinel,features:S.O.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:F}),(0,y.XX)({mergeRefs:w,ourProps:A,theirProps:o,slot:O,defaultTag:"div",features:Q,visible:_,name:"Popover.Panel"}),_&&f&&s.createElement(S.j,{id:g,ref:a.afterPanelSentinel,features:S.O.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:D}))}),Group:(0,y.FX)(function(e,t){let r,n=(0,s.useRef)(null),i=(0,h.P)(n,t),[o,a]=(0,s.useState)([]),c={mainTreeNodeRef:r=(0,s.useRef)(null),MainTreeNode:(0,s.useMemo)(()=>function(){return s.createElement(S.j,{features:S.O.Hidden,ref:r})},[r])},u=(0,l._)(e=>{a(t=>{let r=t.indexOf(e);if(-1!==r){let e=t.slice();return e.splice(r,1),e}return t})}),p=(0,l._)(e=>(a(t=>[...t,e]),()=>u(e))),f=(0,l._)(()=>{var e;let t=(0,d.T)(n);if(!t)return!1;let r=t.activeElement;return!!(null!=(e=n.current)&&e.contains(r))||o.some(e=>{var n,i;return(null==(n=t.getElementById(e.buttonId.current))?void 0:n.contains(r))||(null==(i=t.getElementById(e.panelId.current))?void 0:i.contains(r))})}),m=(0,l._)(e=>{for(let t of o)t.buttonId.current!==e&&t.close()}),g=(0,s.useMemo)(()=>({registerPopover:p,unregisterPopover:u,isFocusWithinPopoverGroup:f,closeOthers:m,mainTreeNodeRef:c.mainTreeNodeRef}),[p,u,f,m,c.mainTreeNodeRef]),v=(0,s.useMemo)(()=>({}),[]);return s.createElement($.Provider,{value:g},(0,y.XX)({ourProps:{ref:i},theirProps:e,slot:v,defaultTag:"div",name:"Popover.Group"}),s.createElement(c.MainTreeNode,null))})})},8696:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(5729);let i=n.forwardRef(function({title:e,titleId:t,...r},i){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:i,"aria-labelledby":t},r),e?n.createElement("title",{id:t},e):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"}))})},8876:(e,t,r)=>{"use strict";function n(e,t,r,n){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return n}}),r(2034),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9053:e=>{"use strict";function t(e){if(null==e)return"";let t=String(e);return(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=t.replace(/&#x([0-9a-f]{1,6});/gi,(e,t)=>{let r=parseInt(t,16);return!Number.isFinite(r)||r<0||r>1114111?e:String.fromCodePoint(r)})).replace(/&#(\d{1,7});/g,(e,t)=>{let r=parseInt(t,10);return!Number.isFinite(r)||r<0||r>1114111?e:String.fromCodePoint(r)})).replace(/&nbsp;/gi,"\xa0")).replace(/&ldquo;/gi,"“")).replace(/&rdquo;/gi,"”")).replace(/&lsquo;/gi,"‘")).replace(/&rsquo;/gi,"’")).replace(/&hellip;/gi,"…")).replace(/&mdash;/gi,"—")).replace(/&ndash;/gi,"–")).replace(/&quot;/gi,'"')).replace(/&apos;/gi,"'")).replace(/&lt;/gi,"<")).replace(/&gt;/gi,">")).replace(/&amp;/gi,"&")}e.exports=t,e.exports.decodeHtmlEntities=t},9058:(e,t,r)=>{"use strict";
281Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useMergedRef",{enumerable:!0,get:function(){return i}});let n=r(5729);function i(e,t){let r=(0,n.useRef)(null),i=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=i.current;t&&(i.current=null,t())}else e&&(r.current=o(e,n)),t&&(i.current=o(t,n))},[e,t])}function o(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9133:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(6029);let i=new Map;function o({variant:e=0,count:t=16,width:r=320,height:s=360,className:a="",opacity:l=.7,intensity:c=1}){var u,d,p,f;let h,m,g,y,v,b,x,w,E,{points:k,bright:_,edges:j}=(w=`${e}:${t}:${r}:${s}`,(E=i.get(w))||(u=e,d=t,p=r,f=s,m=(h=9301*u+49297>>>0,()=>{let e=Math.imul((h=h+0x6d2b79f5|0)^h>>>15,1|h);return(((e=e+Math.imul(e^e>>>7,61|e)^e)^e>>>14)>>>0)/0x100000000}),y=(g=Array.from({length:d},()=>[+(m()*p).toFixed(1),+(m()*f).toFixed(1)])).map(()=>.3>m()),v=(1.7*Math.sqrt(p*f/d))**2,b=new Set,x=[],g.forEach((e,t)=>{let r=g.map((t,r)=>[r,(e[0]-t[0])**2+(e[1]-t[1])**2]).filter(([e])=>e!==t).sort((e,t)=>e[1]-t[1]),n=1+ +(m()>.6);for(let e=0;e<n&&e<r.length;e++){let[n,i]=r[e];if(i>v)continue;let o=t<n?`${t}-${n}`:`${n}-${t}`;b.has(o)||(b.add(o),x.push([t,n]))}}),E={points:g,bright:y,edges:x},i.set(w,E)),E),S=e=>Math.min(1,+(e*c).toFixed(3)),O=Math.min(1.5,.5+c/2);return(0,n.jsxs)("svg",{"aria-hidden":"true",viewBox:`0 0 ${r} ${s}`,preserveAspectRatio:"xMidYMid slice",style:{opacity:l},className:`pointer-events-none absolute inset-0 h-full w-full text-primary ${a}`,children:[(0,n.jsx)("g",{stroke:"currentColor",strokeWidth:.6*O,children:j.map(([e,t],r)=>(0,n.jsx)("line",{x1:k[e][0],y1:k[e][1],x2:k[t][0],y2:k[t][1],strokeOpacity:S(.18)},r))}),(0,n.jsx)("g",{fill:"currentColor",children:k.map(([e,t],r)=>_[r]?(0,n.jsxs)("g",{children:[(0,n.jsx)("circle",{cx:e,cy:t,r:3.4*O,fillOpacity:S(.12)}),(0,n.jsx)("circle",{cx:e,cy:t,r:1.5*O,fillOpacity:S(.9)})]},r):(0,n.jsx)("circle",{cx:e,cy:t,r:+O,fillOpacity:S(.45)},r))})]})}},9278:(e,t,r)=>{"use strict";r.d(t,{D:()=>u,N:()=>d});var n=r(5729),i=(e,t,r,n,i,o,s,a)=>{let l=document.documentElement,c=["light","dark"];function u(t){var r;(Array.isArray(e)?e:[e]).forEach(e=>{let r="class"===e,n=r&&o?i.map(e=>o[e]||e):i;r?(l.classList.remove(...n),l.classList.add(o&&o[t]?o[t]:t)):l.setAttribute(e,t)}),r=t,a&&c.includes(r)&&(l.style.colorScheme=r)}if(n)u(n);else try{let e=localStorage.getItem(t)||r,n=s&&"system"===e?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e;u(n)}catch(e){}},o=["light","dark"],s="(prefers-color-scheme: dark)",a="u"<typeof window,l=n.createContext(void 0),c={setTheme:e=>{},themes:[]},u=()=>{var e;return null!=(e=n.useContext(l))?e:c},d=e=>n.useContext(l)?n.createElement(n.Fragment,null,e.children):n.createElement(f,{...e}),p=["light","dark"],f=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:r=!0,enableColorScheme:i=!0,storageKey:a="theme",themes:c=p,defaultTheme:u=r?"system":"light",attribute:d="data-theme",value:f,children:v,nonce:b,scriptProps:x})=>{let[w,E]=n.useState(()=>m(a,u)),[k,_]=n.useState(()=>"system"===w?y():w),j=f?Object.values(f):c,S=n.useCallback(e=>{let n=e;if(!n)return;"system"===e&&r&&(n=y());let s=f?f[n]:n,a=t?g(b):null,l=document.documentElement,c=e=>{"class"===e?(l.classList.remove(...j),s&&l.classList.add(s)):e.startsWith("data-")&&(s?l.setAttribute(e,s):l.removeAttribute(e))};if(Array.isArray(d)?d.forEach(c):c(d),i){let e=o.includes(u)?u:null,t=o.includes(n)?n:e;l.style.colorScheme=t}null==a||a()},[b]),O=n.useCallback(e=>{let t="function"==typeof e?e(w):e;E(t);try{localStorage.setItem(a,t)}catch(e){}},[w]),T=n.useCallback(t=>{_(y(t)),"system"===w&&r&&!e&&S("system")},[w,e]);n.useEffect(()=>{let e=window.matchMedia(s);return e.addListener(T),T(e),()=>e.removeListener(T)},[T]),n.useEffect(()=>{let e=e=>{e.key===a&&(e.newValue?E(e.newValue):O(u))};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[O]),n.useEffect(()=>{S(null!=e?e:w)},[e,w]);let P=n.useMemo(()=>({theme:w,setTheme:O,forcedTheme:e,resolvedTheme:"system"===w?k:w,themes:r?[...c,"system"]:c,systemTheme:r?k:void 0}),[w,O,e,k,r,c]);return n.createElement(l.Provider,{value:P},n.createElement(h,{forcedTheme:e,storageKey:a,attribute:d,enableSystem:r,enableColorScheme:i,defaultTheme:u,value:f,themes:c,nonce:b,scriptProps:x}),v)},h=n.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:o,enableColorScheme:s,defaultTheme:a,value:l,themes:c,nonce:u,scriptProps:d})=>{let p=JSON.stringify([r,t,a,e,c,l,o,s]).slice(1,-1);return n.createElement("script",{...d,suppressHydrationWarning:!0,nonce:"u"<typeof window?u:"",dangerouslySetInnerHTML:{__html:`(${i.toString()})(${p})`}}
281)}),m=(e,t)=>{let r;if(!a){try{r=localStorage.getItem(e)||void 0}catch(e){}return r||t}},g=e=>{let t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},y=e=>(e||(e=window.matchMedia(s)),e.matches?"dark":"light")},9667:(e,t,r)=>{"use strict";r.d(t,{D:()=>o});var n=r(6029),i=r(5729);function o({size:e=32,variant:t="default",showGradient:r=!0,className:s,style:a}){let l="reversed"===t,c=`ide-grad-${(0,i.useId)().replace(/:/g,"")}`,u=l?"rgba(255,255,255,0.85)":"#A78BFA",d=l?"rgba(255,255,255,0.6)":"#C4B5FD",p=l?"rgba(255,255,255,0.4)":"#6578A0",f=l?"rgba(255,255,255,0.75)":"#50FA7B",h=l?"rgba(255,255,255,0.5)":"#96A8C8";return(0,n.jsxs)("svg",{width:e,height:e,viewBox:"0 0 160 160",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-label":"WPGraphQL IDE",className:s,style:a,children:[(0,n.jsx)("rect",{width:"160",height:"160",rx:"36",fill:l?"#8B5CF6":"#0C1220"}),r&&!l&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("rect",{x:"14",y:"14",width:"132",height:"18",rx:"4",fill:`url(#${c})`}),(0,n.jsx)("defs",{children:(0,n.jsxs)("linearGradient",{id:c,x1:"14",y1:"14",x2:"146",y2:"32",gradientUnits:"userSpaceOnUse",children:[(0,n.jsx)("stop",{offset:"0%",stopColor:"#9B72FF",stopOpacity:"0.35"}),(0,n.jsx)("stop",{offset:"100%",stopColor:"#6B3FD0",stopOpacity:"0"})]})})]}),(0,n.jsx)("rect",{x:"14",y:"14",width:"132",height:"18",rx:"4",fill:l?"rgba(0,0,0,0.25)":"#8B5CF6"}),(0,n.jsx)("circle",{cx:"25",cy:"23",r:"3.5",fill:l?"rgba(255,255,255,0.7)":"rgba(255,255,255,0.55)"}),(0,n.jsx)("circle",{cx:"35",cy:"23",r:"3.5",fill:l?"rgba(255,255,255,0.5)":"rgba(255,255,255,0.35)"}),(0,n.jsx)("circle",{cx:"45",cy:"23",r:"3.5",fill:l?"rgba(255,255,255,0.3)":"rgba(255,255,255,0.2)"}),(0,n.jsx)("circle",{cx:"136",cy:"23",r:"7",fill:l?"rgba(0,0,0,0.15)":"rgba(255,255,255,0.12)"}),(0,n.jsx)("path",{d:"M 133.5 20.5 L 139 23 L 133.5 25.5 Z",fill:l?"rgba(0,0,0,0.7)":"rgba(255,255,255,0.7)"}),(0,n.jsx)("rect",{x:"79.5",y:"38",width:"1",height:"108",fill:l?"rgba(255,255,255,0.2)":"#1A2540"}),(0,n.jsx)("rect",{x:"19",y:"44",width:"36",height:"2.5",rx:"1.25",fill:u,opacity:"0.7"}),(0,n.jsx)("rect",{x:"24",y:"51",width:"44",height:"2.5",rx:"1.25",fill:u,opacity:"0.55"}),(0,n.jsx)("rect",{x:"29",y:"58",width:"32",height:"2.5",rx:"1.25",fill:d,opacity:"0.45"}),(0,n.jsx)("rect",{x:"34",y:"65",width:"22",height:"2.5",rx:"1.25",fill:p,opacity:"0.5"}),(0,n.jsx)("rect",{x:"29",y:"72",width:"30",height:"2.5",rx:"1.25",fill:u,opacity:"0.4"}),(0,n.jsx)("rect",{x:"24",y:"79",width:"36",height:"2.5",rx:"1.25",fill:d,opacity:"0.35"}),(0,n.jsx)("rect",{x:"19",y:"86",width:"20",height:"2.5",rx:"1.25",fill:p,opacity:"0.4"}),(0,n.jsx)("rect",{x:"86",y:"44",width:"20",height:"2.5",rx:"1.25",fill:f,opacity:"0.8"}),(0,n.jsx)("rect",{x:"91",y:"51",width:"44",height:"2.5",rx:"1.25",fill:h,opacity:"0.55"}),(0,n.jsx)("rect",{x:"91",y:"58",width:"34",height:"2.5",rx:"1.25",fill:h,opacity:"0.45"}),(0,n.jsx)("rect",{x:"96",y:"65",width:"38",height:"2.5",rx:"1.25",fill:f,opacity:"0.4"}),(0,n.jsx)("rect",{x:"96",y:"72",width:"28",height:"2.5",rx:"1.25",fill:h,opacity:"0.4"}),(0,n.jsx)("rect",{x:"91",y:"79",width:"40",height:"2.5",rx:"1.25",fill:h,opacity:"0.35"}),(0,n.jsx)("rect",{x:"14",y:"134",width:"132",height:"12",rx:"3",fill:l?"rgba(0,0,0,0.3)":"#5E2EC4",opacity:"0.75"}),(0,n.jsx)("rect",{x:"19",y:"137",width:"40",height:"2",rx:"1",fill:"rgba(255,255,255,0.4)"}),(0,n.jsx)("rect",{x:"106",y:"137",width:"34",height:"2",rx:"1",fill:"rgba(255,255,255,0.25)"})]})}}},e=>{var t=t=>e(e.s=t);e.O(0,[593,792],()=>(t(3155),t(445))),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.