(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[181],{874:(e,t,n)=>{"use strict";n.r(t),n.d(t,{DocSearch:()=>t9,DocSearchButton:()=>_,DocSearchModal:()=>t6,useDocSearchKeyboardEvents:()=>t8,version:()=>t3});var r=n(2265),o=n(4887);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),I(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;I(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:_(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),h}},t}function w(e,t){return(w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function E(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(e,t)||O(e,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.")}()}function S(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||O(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 O(e,t){if(e){if("string"==typeof e)return i(e,t);var n=({}).toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}function P(e){var t="function"==typeof Map?new Map:void 0;return(P=function(e){if(null===e||!function(e){try{return -1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(h())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&w(o,n.prototype),o}(e,arguments,p(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),w(n,e)})(e)}function x(){return r.createElement("svg",{width:"15",height:"15",className:"DocSearch-Control-Key-Icon"},r.createElement("path",{d:"M4.505 4.496h2M5.505 5.496v5M8.216 4.496l.055 5.993M10 7.5c.333.333.5.667.5 1v2M12.326 4.5v5.996M8.384 4.496c1.674 0 2.116 0 2.116 1.5s-.442 1.5-2.116 1.5M3.205 9.303c-.09.448-.277 1.21-1.241 1.203C1 10.5.5 9.513.5 8V7c0-1.57.5-2.5 1.464-2.494.964.006 1.134.598 1.24 1.342M12.553 10.5h1.953",strokeWidth:"1.2",stroke:"currentColor",fill:"none",strokeLinecap:"square"}))}function j(){return r.createElement("svg",{width:"20",height:"20",className:"DocSearch-Search-Icon",viewBox:"0 0 20 20","aria-hidden":"true"},r.createElement("path",{d:"M14.386 14.386l4.0877 4.0877-4.0877-4.0877c-2.9418 2.9419-7.7115 2.9419-10.6533 0-2.9419-2.9418-2.9419-7.7115 0-10.6533 2.9418-2.9419 7.7115-2.9419 10.6533 0 2.9419 2.9418 2.9419 7.7115 0 10.6533z",stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"}))}var I=["translations"],k="Ctrl",_=r.forwardRef(function(e,t){var n=e.translations,o=void 0===n?{}:n,i=y(e,I),a=o.buttonText,u=o.buttonAriaLabel,l=E((0,r.useState)(null),2),c=l[0],s=l[1];(0,r.useEffect)(function(){"undefined"!=typeof navigator&&(/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)?s("⌘"):s(k))},[]);var f=E(c===k?[k,"Ctrl",r.createElement(x,null)]:["Meta","Command",c],3),p=f[0],m=f[1],h=f[2];return r.createElement("button",d({type:"button",className:"DocSearch DocSearch-Button","aria-label":"".concat(void 0===u?"Search":u," (").concat(m,"+K)")},i,{ref:t}),r.createElement("span",{className:"DocSearch-Button-Container"},r.createElement(j,null),r.createElement("span",{className:"DocSearch-Button-Placeholder"},void 0===a?"Search":a)),r.createElement("span",{className:"DocSearch-Button-Keys"},null!==c&&r.createElement(r.Fragment,null,r.createElement(C,{reactsToKey:p},h),r.createElement(C,{reactsToKey:"k"},"K"))))});function C(e){var t=e.reactsToKey,n=e.children,o=E((0,r.useState)(!1),2),i=o[0],a=o[1];return(0,r.useEffect)(function(){if(t)return window.addEventListener("keydown",e),window.addEventListener("keyup",n),function(){window.removeEventListener("keydown",e),window.removeEventListener("keyup",n)};function e(e){e.key===t&&a(!0)}function n(e){e.key!==t&&"Meta"!==e.key||a(!1)}},[t]),r.createElement("kbd",{className:i?"DocSearch-Button-Key DocSearch-Button-Key--pressed":"DocSearch-Button-Key"},n)}function R(e,t){var n=void 0;return function(){for(var r=arguments.length,o=Array(r),i=0;ie.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function W(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function G(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n=3||2===r&&o>=4||1===r&&o>=10);function a(t,n,r){if(i&&void 0!==r){var o=r[0].__autocomplete_algoliaCredentials,a={"X-Algolia-Application-Id":o.appId,"X-Algolia-API-Key":o.apiKey};e.apply(void 0,[t].concat(K(n),[{headers:a}]))}else e.apply(void 0,[t].concat(K(n)))}return{init:function(t,n){e("init",{appId:t,apiKey:n})},setAuthenticatedUserToken:function(t){e("setAuthenticatedUserToken",t)},setUserToken:function(t){e("setUserToken",t)},clickedObjectIDsAfterSearch:function(){for(var e=arguments.length,t=Array(e),n=0;n0&&a("clickedObjectIDsAfterSearch",J(t),t[0].items)},clickedObjectIDs:function(){for(var e=arguments.length,t=Array(e),n=0;n0&&a("clickedObjectIDs",J(t),t[0].items)},clickedFilters:function(){for(var t=arguments.length,n=Array(t),r=0;r0&&e.apply(void 0,["clickedFilters"].concat(n))},convertedObjectIDsAfterSearch:function(){for(var e=arguments.length,t=Array(e),n=0;n0&&a("convertedObjectIDsAfterSearch",J(t),t[0].items)},convertedObjectIDs:function(){for(var e=arguments.length,t=Array(e),n=0;n0&&a("convertedObjectIDs",J(t),t[0].items)},convertedFilters:function(){for(var t=arguments.length,n=Array(t),r=0;r0&&e.apply(void 0,["convertedFilters"].concat(n))},viewedObjectIDs:function(){for(var e=arguments.length,t=Array(e),n=0;n0&&t.reduce(function(e,t){var n=t.items,r=U(t,V);return[].concat(K(e),K((function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:20,n=[],r=0;r0&&e.apply(void 0,["viewedFilters"].concat(n))}}}(c),f={current:[]},d=R(function(e){var t=e.state;if(t.isOpen){var n=t.collections.reduce(function(e,t){return[].concat(Y(e),Y(t.items))},[]).filter($);(function e(t,n){if(t===n)return!0;if(L(t)||L(n)||"function"==typeof t||"function"==typeof n)return t===n;if(Object.keys(t).length!==Object.keys(n).length)return!1;for(var r=0,o=Object.keys(t);r0&&er({onItemsChange:i,items:n,insights:s,state:t}))}},0);return{name:"aa.algoliaInsightsPlugin",subscribe:function(e){var t=e.setContext,n=e.onSelect,r=e.onActive,o=!1;function i(e){t({algoliaInsightsPlugin:{__algoliaSearchParameters:ee(ee({},l?{clickAnalytics:!0}:{}),e?{userToken:"number"==typeof e?e.toString():e}:{}),insights:s}})}c("addAlgoliaAgent","insights-plugin"),i(),c("onUserTokenChange",function(e){o||i(e)}),c("getUserToken",null,function(e,t){o||i(t)}),c("onAuthenticatedUserTokenChange",function(e){e?(o=!0,i(e)):(o=!1,c("getUserToken",null,function(e,t){return i(t)}))}),c("getAuthenticatedUserToken",null,function(e,t){t&&(o=!0,i(t))}),n(function(e){var t=e.item,n=e.state,r=e.event,o=e.source;$(t)&&a({state:n,event:r,insights:s,item:t,insightsEvents:[ee({eventName:"Item Selected"},F({item:t,items:o.getItems().filter($)}))]})}),r(function(e){var t=e.item,n=e.source,r=e.state,o=e.event;$(t)&&u({state:r,event:o,insights:s,item:t,insightsEvents:[ee({eventName:"Item Active"},F({item:t,items:n.getItems().filter($)}))]})})},onStateChange:function(e){d({state:e.state})},__autocomplete_pluginOptions:e}}function ei(){var e,t=arguments.length>1?arguments[1]:void 0;return[].concat(Y(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]),["autocomplete-internal"],Y(null!==(e=t.algoliaInsightsPlugin)&&void 0!==e&&e.__automaticInsights?["autocomplete-automatic"]:[]))}function ea(e){return function e(t,n){return{then:function(r,o){return e(t.then(eu(r,n,t),eu(o,n,t)),n)},catch:function(r){return e(t.catch(eu(r,n,t)),n)},finally:function(r){return r&&n.onCancelList.push(r),e(t.finally(eu(r&&function(){return n.onCancelList=[],r()},n,t)),n)},cancel:function(){n.isCanceled=!0;var e=n.onCancelList;n.onCancelList=[],e.forEach(function(e){e()})},isCanceled:function(){return!0===n.isCanceled}}}(e,{isCanceled:!1,onCancelList:[]})}function eu(e,t,n){return e?function(n){return t.isCanceled?n:e(n)}:n}function el(e,t,n,r){if(!n)return null;if(e<0&&(null===t||null!==r&&0===t))return n+e;var o=(null===t?-1:t)+e;return o<=-1||o>=n?null===r?null:0:o}function ec(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function es(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,eN);eK&&o.environment.clearTimeout(eK);var c=l.setCollections,s=l.setIsOpen,f=l.setQuery,d=l.setActiveItemId,p=l.setStatus,m=l.setContext;if(f(i),d(o.defaultActiveItemId),!i&&!1===o.openOnFocus){var h,v=u.getState().collections.map(function(e){return eH(eH({},e),{},{items:[]})});p("idle"),c(v),s(null!==(h=r.isOpen)&&void 0!==h?h:o.shouldPanelOpen({state:u.getState()}));var g=ea(ez(v).then(function(){return Promise.resolve()}));return u.pendingRequests.add(g)}p("loading"),eK=o.environment.setTimeout(function(){p("stalled")},o.stallThreshold);var y=ea(ez(o.getSources(eH({query:i,refresh:a,state:u.getState()},l)).then(function(e){return Promise.all(e.map(function(e){return Promise.resolve(e.getItems(eH({query:i,refresh:a,state:u.getState()},l))).then(function(t){return function(e,t,n){if(null==e?void 0:e.execute){var r="algolia"===e.requesterId?Object.assign.apply(Object,[{}].concat(eT(Object.keys(n.context).map(function(e){var t;return null===(t=n.context[e])||void 0===t?void 0:t.__algoliaSearchParameters})))):{};return eR(eR({},e),{},{requests:e.queries.map(function(n){return{query:"algolia"===e.requesterId?eR(eR({},n),{},{params:eR(eR({},r),n.params)}):n,sourceId:t,transformResponse:e.transformResponse}})})}return{items:e,sourceId:t}}(t,e.sourceId,u.getState())})})).then(eL).then(function(t){var n,r=t.some(function(e){var t;return!Array.isArray(t=e.items)&&!!(null==t?void 0:t._automaticInsights)});return r&&m({algoliaInsightsPlugin:eH(eH({},(null===(n=u.getState().context)||void 0===n?void 0:n.algoliaInsightsPlugin)||{}),{},{__automaticInsights:r})}),e.map(function(e){var n=t.filter(function(t){return t.sourceId===e.sourceId}),r=n.map(function(e){return e.items}),o=n[0].transformResponse,i=o?o({results:r,hits:r.map(function(e){return e.hits}).filter(Boolean),facetHits:r.map(function(e){var t;return null===(t=e.facetHits)||void 0===t?void 0:t.map(function(e){return{label:e.value,count:e.count,_highlightResult:{label:{value:e.highlighted}}}})}).filter(Boolean)}):r;return e.onResolve({source:e,results:r,items:i,state:u.getState()}),i.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:i}})}).then(function(e){var t,n,r,i,a,l;return n=(t={collections:e,props:o,state:u.getState()}).collections,r=t.props,i=t.state,a=n.reduce(function(e,t){return eI(eI({},e),{},ek({},t.source.sourceId,eI(eI({},t.source),{},{getItems:function(){return T(t.items)}})))},{}),l=r.plugins.reduce(function(e,t){return t.reshape?t.reshape(e):e},{sourcesBySourceId:a,state:i}).sourcesBySourceId,T(r.reshape({sourcesBySourceId:l,sources:Object.values(l),state:i})).filter(Boolean).map(function(e){return{source:e,items:e.getItems()}})})}))).then(function(e){p("idle"),c(e);var n,f=o.shouldPanelOpen({state:u.getState()});s(null!==(n=r.isOpen)&&void 0!==n?n:o.openOnFocus&&!i&&f||f);var d=ed(u.getState());if(null!==u.getState().activeItemId&&d){var m=d.item,h=d.itemInputValue,v=d.itemUrl,g=d.source;g.onActive(eH({event:t,item:m,itemInputValue:h,itemUrl:v,refresh:a,source:g,state:u.getState()},l))}}).finally(function(){p("idle"),eK&&o.environment.clearTimeout(eK)});return u.pendingRequests.add(y)}function eW(e){return(eW="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 eG=["event","props","refresh","store"];function eJ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function e$(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function e6(e){return(e6="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 e8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function e9(e,t,n){var r;return(r=function(e,t){if("object"!==e6(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==e6(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"===e6(r)?r:String(r))in e)?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function e7(e){var t,n=e.state;return!1===n.isOpen||null===n.activeItemId?null:(null===(t=ed(n))||void 0===t?void 0:t.itemInputValue)||null}function te(e){return(te="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 tt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function tn(e){for(var t=1;t0&&r.createElement("div",{className:"DocSearch-NoResults-Prefill-List"},r.createElement("p",{className:"DocSearch-Help"},void 0===a?"Try searching for":a,":"),r.createElement("ul",null,c.slice(0,3).reduce(function(e,t){return[].concat(S(e),[r.createElement("li",{key:t},r.createElement("button",{className:"DocSearch-Prefill",key:t,type:"button",onClick:function(){o.setQuery(t.toLowerCase()+" "),o.refresh(),o.inputRef.current.focus()}},t))])},[]))),o.getMissingResultsUrl&&r.createElement("p",{className:"DocSearch-Help"},"".concat(void 0===u?"Believe this query should return results?":u," "),r.createElement("a",{href:o.getMissingResultsUrl({query:o.state.query}),target:"_blank",rel:"noopener noreferrer"},void 0===l?"Let us know.":l)))}var tx=["hit","attribute","tagName"];function tj(e,t){return t.split(".").reduce(function(e,t){return null!=e&&e[t]?e[t]:null},e)}function tI(e){var t=e.hit,n=e.attribute,o=e.tagName,i=y(e,tx);return(0,r.createElement)(void 0===o?"span":o,g(g({},i),{},{dangerouslySetInnerHTML:{__html:tj(t,"_snippetResult.".concat(n,".value"))||tj(t,n)}}))}function tk(e){return e.collection&&0!==e.collection.items.length?r.createElement("section",{className:"DocSearch-Hits"},r.createElement("div",{className:"DocSearch-Hit-source"},e.title),r.createElement("ul",e.getListProps(),e.collection.items.map(function(t,n){return r.createElement(t_,d({key:[e.title,t.objectID].join(":"),item:t,index:n},e))}))):null}function t_(e){var t=e.item,n=e.index,o=e.renderIcon,i=e.renderAction,a=e.getItemProps,u=e.onItemClick,l=e.collection,c=e.hitComponent,s=E(r.useState(!1),2),f=s[0],p=s[1],m=E(r.useState(!1),2),h=m[0],v=m[1],g=r.useRef(null);return r.createElement("li",d({className:["DocSearch-Hit",t.__docsearch_parent&&"DocSearch-Hit--Child",f&&"DocSearch-Hit--deleting",h&&"DocSearch-Hit--favoriting"].filter(Boolean).join(" "),onTransitionEnd:function(){g.current&&g.current()}},a({item:t,source:l.source,onClick:function(e){u(t,e)}})),r.createElement(c,{hit:t},r.createElement("div",{className:"DocSearch-Hit-Container"},o({item:t,index:n}),t.hierarchy[t.type]&&"lvl1"===t.type&&r.createElement("div",{className:"DocSearch-Hit-content-wrapper"},r.createElement(tI,{className:"DocSearch-Hit-title",hit:t,attribute:"hierarchy.lvl1"}),t.content&&r.createElement(tI,{className:"DocSearch-Hit-path",hit:t,attribute:"content"})),t.hierarchy[t.type]&&("lvl2"===t.type||"lvl3"===t.type||"lvl4"===t.type||"lvl5"===t.type||"lvl6"===t.type)&&r.createElement("div",{className:"DocSearch-Hit-content-wrapper"},r.createElement(tI,{className:"DocSearch-Hit-title",hit:t,attribute:"hierarchy.".concat(t.type)}),r.createElement(tI,{className:"DocSearch-Hit-path",hit:t,attribute:"hierarchy.lvl1"})),"content"===t.type&&r.createElement("div",{className:"DocSearch-Hit-content-wrapper"},r.createElement(tI,{className:"DocSearch-Hit-title",hit:t,attribute:"content"}),r.createElement(tI,{className:"DocSearch-Hit-path",hit:t,attribute:"hierarchy.lvl1"})),i({item:t,runDeleteTransition:function(e){p(!0),g.current=e},runFavoriteTransition:function(e){v(!0),g.current=e}}))))}function tC(e,t,n){return e.reduce(function(e,r){var o=t(r);return e.hasOwnProperty(o)||(e[o]=[]),e[o].length<(n||5)&&e[o].push(r),e},{})}function tR(e){return e}function tT(e){return 1===e.button||e.altKey||e.ctrlKey||e.metaKey||e.shiftKey}function tA(){}var tM=/(|<\/mark>)/g,tL=RegExp(tM.source);function tD(e){if(!e.__docsearch_parent&&!e._highlightResult)return e.hierarchy.lvl0;var t,n,r=e.__docsearch_parent?null===(t=e.__docsearch_parent)||void 0===t||null===(t=t._highlightResult)||void 0===t||null===(t=t.hierarchy)||void 0===t?void 0:t.lvl0:null===(n=e._highlightResult)||void 0===n||null===(n=n.hierarchy)||void 0===n?void 0:n.lvl0;return r?r.value&&tL.test(r.value)?r.value.replace(tM,""):r.value:e.hierarchy.lvl0}function tN(e){return r.createElement("div",{className:"DocSearch-Dropdown-Container"},e.state.collections.map(function(t){if(0===t.items.length)return null;var n=tD(t.items[0]);return r.createElement(tk,d({},e,{key:t.source.sourceId,title:n,collection:t,renderIcon:function(e){var n,o=e.item,i=e.index;return r.createElement(r.Fragment,null,o.__docsearch_parent&&r.createElement("svg",{className:"DocSearch-Hit-Tree",viewBox:"0 0 24 54"},r.createElement("g",{stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"},o.__docsearch_parent!==(null===(n=t.items[i+1])||void 0===n?void 0:n.__docsearch_parent)?r.createElement("path",{d:"M8 6v21M20 27H8.3"}):r.createElement("path",{d:"M8 6v42M20 27H8.3"}))),r.createElement("div",{className:"DocSearch-Hit-icon"},r.createElement(tv,{type:o.type})))},renderAction:function(){return r.createElement("div",{className:"DocSearch-Hit-action"},r.createElement(tm,null))}}))}),e.resultsFooterComponent&&r.createElement("section",{className:"DocSearch-HitsFooter"},r.createElement(e.resultsFooterComponent,{state:e.state})))}var tF=["translations"];function tH(e){var t=e.translations,n=void 0===t?{}:t,o=y(e,tF),i=n.recentSearchesTitle,a=n.noRecentSearchesText,u=n.saveRecentSearchButtonTitle,l=void 0===u?"Save this search":u,c=n.removeRecentSearchButtonTitle,s=void 0===c?"Remove this search from history":c,f=n.favoriteSearchesTitle,p=n.removeFavoriteSearchButtonTitle,m=void 0===p?"Remove this search from favorites":p;return"idle"===o.state.status&&!1===o.hasCollections?o.disableUserPersonalization?null:r.createElement("div",{className:"DocSearch-StartScreen"},r.createElement("p",{className:"DocSearch-Help"},void 0===a?"No recent searches":a)):!1===o.hasCollections?null:r.createElement("div",{className:"DocSearch-Dropdown-Container"},r.createElement(tk,d({},o,{title:void 0===i?"Recent":i,collection:o.state.collections[0],renderIcon:function(){return r.createElement("div",{className:"DocSearch-Hit-icon"},r.createElement(td,null))},renderAction:function(e){var t=e.item,n=e.runFavoriteTransition,i=e.runDeleteTransition;return r.createElement(r.Fragment,null,r.createElement("div",{className:"DocSearch-Hit-action"},r.createElement("button",{className:"DocSearch-Hit-action-button",title:l,type:"submit",onClick:function(e){e.preventDefault(),e.stopPropagation(),n(function(){o.favoriteSearches.add(t),o.recentSearches.remove(t),o.refresh()})}},r.createElement(tb,null))),r.createElement("div",{className:"DocSearch-Hit-action"},r.createElement("button",{className:"DocSearch-Hit-action-button",title:s,type:"submit",onClick:function(e){e.preventDefault(),e.stopPropagation(),i(function(){o.recentSearches.remove(t),o.refresh()})}},r.createElement(tp,null))))}})),r.createElement(tk,d({},o,{title:void 0===f?"Favorite":f,collection:o.state.collections[1],renderIcon:function(){return r.createElement("div",{className:"DocSearch-Hit-icon"},r.createElement(tb,null))},renderAction:function(e){var t=e.item,n=e.runDeleteTransition;return r.createElement("div",{className:"DocSearch-Hit-action"},r.createElement("button",{className:"DocSearch-Hit-action-button",title:m,type:"submit",onClick:function(e){e.preventDefault(),e.stopPropagation(),n(function(){o.favoriteSearches.remove(t),o.refresh()})}},r.createElement(tp,null)))}})))}var tB=["translations"],tV=r.memo(function(e){var t=e.translations,n=void 0===t?{}:t,o=y(e,tB);if("error"===o.state.status)return r.createElement(tS,{translations:null==n?void 0:n.errorScreen});var i=o.state.collections.some(function(e){return e.items.length>0});return o.state.query?!1===i?r.createElement(tP,d({},o,{translations:null==n?void 0:n.noResultsScreen})):r.createElement(tN,o):r.createElement(tH,d({},o,{hasCollections:i,translations:null==n?void 0:n.startScreen}))},function(e,t){return"loading"===t.state.status||"stalled"===t.state.status}),tq=["translations"];function tK(e){var t=e.translations,n=void 0===t?{}:t,o=y(e,tq),i=n.resetButtonTitle,a=n.resetButtonAriaLabel,u=n.cancelButtonText,l=n.cancelButtonAriaLabel,c=n.searchInputLabel,s=o.getFormProps({inputElement:o.inputRef.current}).onReset;return r.useEffect(function(){o.autoFocus&&o.inputRef.current&&o.inputRef.current.focus()},[o.autoFocus,o.inputRef]),r.useEffect(function(){o.isFromSelection&&o.inputRef.current&&o.inputRef.current.select()},[o.isFromSelection,o.inputRef]),r.createElement(r.Fragment,null,r.createElement("form",{className:"DocSearch-Form",onSubmit:function(e){e.preventDefault()},onReset:s},r.createElement("label",d({className:"DocSearch-MagnifierLabel"},o.getLabelProps()),r.createElement(j,null),r.createElement("span",{className:"DocSearch-VisuallyHiddenForAccessibility"},void 0===c?"Search":c)),r.createElement("div",{className:"DocSearch-LoadingIndicator"},r.createElement(tf,null)),r.createElement("input",d({className:"DocSearch-Input",ref:o.inputRef},o.getInputProps({inputElement:o.inputRef.current,autoFocus:o.autoFocus,maxLength:64}))),r.createElement("button",{type:"reset",title:void 0===i?"Clear the query":i,className:"DocSearch-Reset","aria-label":void 0===a?"Clear the query":a,hidden:!o.state.query},r.createElement(tp,null))),r.createElement("button",{className:"DocSearch-Cancel",type:"reset","aria-label":void 0===l?"Cancel":l,onClick:o.onClose},void 0===u?"Cancel":u))}var tz=["_highlightResult","_snippetResult"];function tU(e){var t=e.key,n=e.limit,r=void 0===n?5:n,o=!1===function(){var e="__TEST_KEY__";try{return localStorage.setItem(e,""),localStorage.removeItem(e),!0}catch(e){return!1}}()?{setItem:function(){},getItem:function(){return[]}}:{setItem:function(e){return window.localStorage.setItem(t,JSON.stringify(e))},getItem:function(){var e=window.localStorage.getItem(t);return e?JSON.parse(e):[]}},i=o.getItem().slice(0,r);return{add:function(e){e._highlightResult,e._snippetResult;var t=y(e,tz),n=i.findIndex(function(e){return e.objectID===t.objectID});n>-1&&i.splice(n,1),i.unshift(t),i=i.slice(0,r),o.setItem(i)},remove:function(e){i=i.filter(function(t){return t.objectID!==e.objectID}),o.setItem(i)},getAll:function(){return i}}}function tW(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{serializable:!0},t={};return{get:function(n,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}},i=JSON.stringify(n);if(i in t)return Promise.resolve(e.serializable?JSON.parse(t[i]):t[i]);var a=r();return a.then(function(e){return o.miss(e)}).then(function(){return a})},set:function(n,r){return t[JSON.stringify(n)]=e.serializable?JSON.stringify(r):r,Promise.resolve(r)},delete:function(e){return delete t[JSON.stringify(e)],Promise.resolve()},clear:function(){return t={},Promise.resolve()}}}function tG(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"up",n=Date.now();return g(g({},e),{},{status:t,lastUpdate:n,isUp:function(){return"up"===t||Date.now()-n>12e4},isTimedOut:function(){return"timed out"===t&&Date.now()-n<=12e4}})}var tJ=function(){function e(t,n){var r;return c(this,e),f(r=l(this,e,[t]),"name","AlgoliaError"),n&&(r.name=n),r}return m(e,P(Error)),s(e)}(),t$=function(){function e(t,n,r){var o;return c(this,e),f(o=l(this,e,[t,r]),"stackTrace",void 0),o.stackTrace=n,o}return m(e,tJ),s(e)}(),tQ=function(){function e(t){return c(this,e),l(this,e,["Unreachable hosts - your application id may be incorrect. If the error persists, please reach out to the Algolia Support team: https://alg.li/support.",t,"RetryError"])}return m(e,t$),s(e)}(),tY=function(){function e(t,n,r){var o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"ApiError";return c(this,e),f(o=l(this,e,[t,r,i]),"status",void 0),o.status=n,o}return m(e,t$),s(e)}(),tZ=function(){function e(t,n){var r;return c(this,e),f(r=l(this,e,[t,"DeserializationError"]),"response",void 0),r.response=n,r}return m(e,tJ),s(e)}(),tX=function(){function e(t,n,r,o){var i;return c(this,e),f(i=l(this,e,[t,n,o,"DetailedApiError"]),"error",void 0),i.error=r,i}return m(e,tY),s(e)}();function t0(e){var t=e.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return g(g({},e),{},{request:g(g({},e.request),{},{headers:g(g({},e.request.headers),t)})})}var t1=["appId","apiKey","authMode","algoliaAgents"],t2=["params"],t4="5.12.0",t3="3.8.0",t5=["footer","searchBox"];function t6(e){var t,n,o,i,a,l,c,s=e.appId,f=e.apiKey,p=e.indexName,m=e.placeholder,h=void 0===m?"Search docs":m,v=e.searchParameters,w=e.maxResultsPerGroup,O=e.onClose,P=void 0===O?tA:O,x=e.transformItems,j=void 0===x?tR:x,I=e.hitComponent,k=e.resultsFooterComponent,_=e.navigator,C=e.initialScrollY,R=void 0===C?0:C,L=e.transformSearchClient,F=e.disableUserPersonalization,H=void 0!==F&&F,B=e.initialQuery,V=e.translations,q=void 0===V?{}:V,K=e.getMissingResultsUrl,z=e.insights,U=void 0!==z&&z,W=q.footer,G=q.searchBox,J=y(q,t5),$=E(r.useState({query:"",collections:[],completion:null,context:{},isOpen:!1,activeItemId:null,status:"idle"}),2),Q=$[0],Y=$[1],Z=r.useRef(null),X=r.useRef(null),ee=r.useRef(null),et=r.useRef(null),en=r.useRef(null),er=r.useRef(10),ei=r.useRef("undefined"!=typeof window?window.getSelection().toString().slice(0,64):"").current,ea=r.useRef((void 0===B?"":B)||ei).current,eu=(t=void 0===L?tR:L,r.useMemo(function(){var e=function(e,t,n){var r,o,i,a,l,c,s,f,d,p,m,h,v,w,O;if(!e||"string"!=typeof e)throw Error("`appId` is missing.");if(!t||"string"!=typeof t)throw Error("`apiKey` is missing.");return d=(r=g({appId:e,apiKey:t,timeouts:{connect:1e3,read:2e3,write:3e4},logger:{debug:function(e,t){return Promise.resolve()},info:function(e,t){return Promise.resolve()},error:function(e,t){return Promise.resolve()}},requester:{send:function(e){return new Promise(function(t){var n=new XMLHttpRequest;n.open(e.method,e.url,!0),Object.keys(e.headers).forEach(function(t){return n.setRequestHeader(t,e.headers[t])});var r,o=function(e,r){return setTimeout(function(){n.abort(),t({status:0,content:r,isTimedOut:!0})},e)},i=o(e.connectTimeout,"Connection timeout");n.onreadystatechange=function(){n.readyState>n.OPENED&&void 0===r&&(clearTimeout(i),r=o(e.responseTimeout,"Socket timeout"))},n.onerror=function(){0===n.status&&(clearTimeout(i),clearTimeout(r),t({content:n.responseText||"Network request failed",status:n.status,isTimedOut:!1}))},n.onload=function(){clearTimeout(i),clearTimeout(r),t({content:n.responseText,status:n.status,isTimedOut:!1})},n.send(e.data)})}},algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:tW(),requestsCache:tW({serializable:!1}),hostsCache:function e(t){var n=S(t.caches),r=n.shift();return void 0===r?{get:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return t().then(function(e){return Promise.all([e,n.miss(e)])}).then(function(e){return E(e,1)[0]})},set:function(e,t){return Promise.resolve(t)},delete:function(e){return Promise.resolve()},clear:function(){return Promise.resolve()}}:{get:function(t,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return r.get(t,o,i).catch(function(){return e({caches:n}).get(t,o,i)})},set:function(t,o){return r.set(t,o).catch(function(){return e({caches:n}).set(t,o)})},delete:function(t){return r.delete(t).catch(function(){return e({caches:n}).delete(t)})},clear:function(){return r.clear().catch(function(){return e({caches:n}).clear()})}}}({caches:[function(e){var t,n="algolia-client-js-".concat(e.key);function r(){return void 0===t&&(t=e.localStorage||window.localStorage),t}function o(){return JSON.parse(r().getItem(n)||"{}")}function i(e){r().setItem(n,JSON.stringify(e))}return{get:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return Promise.resolve().then(function(){var n,r;return n=e.timeToLive?1e3*e.timeToLive:null,i(r=Object.fromEntries(Object.entries(o()).filter(function(e){return void 0!==E(e,2)[1].timestamp}))),n&&i(Object.fromEntries(Object.entries(r).filter(function(e){var t=E(e,2)[1],r=(new Date).getTime();return!(t.timestamp+n2&&void 0!==arguments[2]?arguments[2]:"WithinHeaders",r={"x-algolia-api-key":t,"x-algolia-application-id":e};return{headers:function(){return"WithinHeaders"===n?r:{}},queryParameters:function(){return"WithinQueryParameters"===n?r:{}}}}(d,p,m),{transporter:O=function(e){var t=e.hosts,n=e.hostsCache,r=e.baseHeaders,o=e.logger,i=e.baseQueryParameters,a=e.algoliaAgent,l=e.timeouts,c=e.requester,s=e.requestsCache,f=e.responsesCache;function d(){return(d=u(b().mark(function e(t){var r,o,i,a,u;return b().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all(t.map(function(e){return n.get(e,function(){return Promise.resolve(tG(e))})}));case 2:return o=(r=e.sent).filter(function(e){return e.isUp()}),i=r.filter(function(e){return e.isTimedOut()}),u=(a=[].concat(S(o),S(i))).length>0?a:t,e.abrupt("return",{hosts:u,getTimeout:function(e,t){return(0===i.length&&0===e?1:i.length+3+e)*t}});case 8:case"end":return e.stop()}},e)}))).apply(this,arguments)}function p(e,t){return m.apply(this,arguments)}function m(){return(m=u(b().mark(function e(s,f){var p,m,h,v,y,w,E,O,P,x,j,I,k,_=arguments;return b().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(p=!(_.length>2&&void 0!==_[2])||_[2],m=[],h=function(e,t){if("GET"!==e.method&&(void 0!==e.data||void 0!==t.data))return JSON.stringify(Array.isArray(e.data)?e.data:g(g({},e.data),t.data))}(s,f),v=function(e,t,n){var r=g(g(g({Accept:"application/json"},e),t),n),o={};return Object.keys(r).forEach(function(e){var t=r[e];o[e.toLowerCase()]=t}),o}(r,s.headers,f.headers),y="GET"===s.method?g(g({},s.data),f.data):{},w=g(g(g({},i),s.queryParameters),y),a.value&&(w["x-algolia-agent"]=a.value),f&&f.queryParameters)for(E=0,O=Object.keys(f.queryParameters);E1&&void 0!==arguments[1]?arguments[1]:{},n=e.useReadTransporter||"GET"===e.method;if(!n)return p(e,t,n);var o=function(){return p(e,t)};if(!0!==(t.cacheable||e.cacheable))return o();var a={request:e,requestOptions:t,transporter:{queryParameters:i,headers:r}};return f.get(a,function(){return s.get(a,function(){return s.set(a,o()).then(function(e){return Promise.all([s.delete(a),e])},function(e){return Promise.all([s.delete(a),Promise.reject(e)])}).then(function(e){var t=E(e,2);return t[0],t[1]})})},{miss:function(e){return f.set(a,e)}})},requestsCache:s,responsesCache:f}}(g(g({hosts:[{url:"".concat(d,"-dsn.algolia.net"),accept:"read",protocol:"https"},{url:"".concat(d,".algolia.net"),accept:"write",protocol:"https"}].concat(function(e){for(var t=e.length-1;t>0;t--){var n=Math.floor(Math.random()*(t+1)),r=e[t];e[t]=e[n],e[n]=r}return e}([{url:"".concat(d,"-1.algolianet.com"),accept:"readWrite",protocol:"https"},{url:"".concat(d,"-2.algolianet.com"),accept:"readWrite",protocol:"https"},{url:"".concat(d,"-3.algolianet.com"),accept:"readWrite",protocol:"https"}]))},v),{},{algoliaAgent:(l=(o={algoliaAgents:h,client:"Lite",version:t4}).algoliaAgents,c=o.client,f=(i=s=o.version,a={value:"Algolia for JavaScript (".concat(i,")"),add:function(e){var t="; ".concat(e.segment).concat(void 0!==e.version?" (".concat(e.version,")"):"");return -1===a.value.indexOf(t)&&(a.value="".concat(a.value).concat(t)),a}}).add({segment:c,version:s}),l.forEach(function(e){return f.add(e)}),f),baseHeaders:g(g({"content-type":"text/plain"},w.headers()),v.baseHeaders),baseQueryParameters:g(g({},w.queryParameters()),v.baseQueryParameters)})),appId:d,clearCache:function(){return Promise.all([O.requestsCache.clear(),O.responsesCache.clear()]).then(function(){})},get _ua(){return O.algoliaAgent.value},addAlgoliaAgent:function(e,t){O.algoliaAgent.add({segment:e,version:t})},setClientApiKey:function(e){var t=e.apiKey;m&&"WithinHeaders"!==m?O.baseQueryParameters["x-algolia-api-key"]=t:O.baseHeaders["x-algolia-api-key"]=t},searchForHits:function(e,t){return this.search(e,t)},searchForFacets:function(e,t){return this.search(e,t)},customPost:function(e,t){var n=e.path,r=e.parameters,o=e.body;if(!n)throw Error("Parameter `path` is required when calling `customPost`.");var i={method:"POST",path:"/{path}".replace("{path}",n),queryParameters:r||{},headers:{},data:o||{}};return O.request(i,t)},getRecommendations:function(e,t){if(e&&Array.isArray(e)&&(e={requests:e}),!e)throw Error("Parameter `getRecommendationsParams` is required when calling `getRecommendations`.");if(!e.requests)throw Error("Parameter `getRecommendationsParams.requests` is required when calling `getRecommendations`.");var n={method:"POST",path:"/1/indexes/*/recommendations",queryParameters:{},headers:{},data:e,useReadTransporter:!0,cacheable:!0};return O.request(n,t)},search:function(e,t){if(e&&Array.isArray(e)&&(e={requests:e.map(function(e){var t=e.params,n=y(e,t2);return"facet"===n.type?g(g(g({},n),t),{},{type:"facet"}):g(g(g({},n),t),{},{facet:void 0,maxFacetHits:void 0,facetQuery:void 0})})}),!e)throw Error("Parameter `searchMethodParams` is required when calling `search`.");if(!e.requests)throw Error("Parameter `searchMethodParams.requests` is required when calling `search`.");var n={method:"POST",path:"/1/indexes/*/queries",queryParameters:{},headers:{},data:e,useReadTransporter:!0,cacheable:!0};return O.request(n,t)}}}(s,f);return e.addAlgoliaAgent("docsearch",t3),!1===/docsearch.js \(.*\)/.test(e.transporter.algoliaAgent.value)&&e.addAlgoliaAgent("docsearch-react",t3),t(e)},[s,f,t])),el=r.useRef(tU({key:"__DOCSEARCH_FAVORITE_SEARCHES__".concat(p),limit:10})).current,ec=r.useRef(tU({key:"__DOCSEARCH_RECENT_SEARCHES__".concat(p),limit:0===el.getAll().length?7:4})).current,ef=r.useCallback(function(e){if(!H){var t="content"===e.type?e.__docsearch_parent:e;t&&-1===el.getAll().findIndex(function(e){return e.objectID===t.objectID})&&ec.add(t)}},[el,ec,H]),ey=r.useCallback(function(e){if(Q.context.algoliaInsightsPlugin&&e.__autocomplete_id){var t={eventName:"Item Selected",index:e.__autocomplete_indexName,items:[e],positions:[e.__autocomplete_id],queryID:e.__autocomplete_queryID};Q.context.algoliaInsightsPlugin.insights.clickedObjectIDsAfterSearch(t)}},[Q.context.algoliaInsightsPlugin]),eb=r.useMemo(function(){return function(e){var t,n,r,o,i,a,u,l,c,s,f,d,p,m,h,v,g,y,b,w,E=[],S=(n="undefined"!=typeof window?window:{},r=e.plugins||[],eP(eP({debug:!1,openOnFocus:!1,enterKeyHint:void 0,ignoreCompositionEvents:!1,placeholder:"",autoFocus:!1,defaultActiveItemId:null,stallThreshold:300,insights:void 0,environment:n,shouldPanelOpen:function(e){return M(e.state)>0},reshape:function(e){return e.sources}},e),{},{id:null!==(t=e.id)&&void 0!==t?t:"autocomplete-".concat(A++),plugins:r,initialState:eP({activeItemId:null,query:"",completion:null,collections:[],isOpen:!1,status:"idle",context:{}},e.initialState),onStateChange:function(t){var n;null===(n=e.onStateChange)||void 0===n||n.call(e,t),r.forEach(function(e){var n;return null===(n=e.onStateChange)||void 0===n?void 0:n.call(e,t)})},onSubmit:function(t){var n;null===(n=e.onSubmit)||void 0===n||n.call(e,t),r.forEach(function(e){var n;return null===(n=e.onSubmit)||void 0===n?void 0:n.call(e,t)})},onReset:function(t){var n;null===(n=e.onReset)||void 0===n||n.call(e,t),r.forEach(function(e){var n;return null===(n=e.onReset)||void 0===n?void 0:n.call(e,t)})},getSources:function(t){var n;return Promise.all([].concat(function(e){if(Array.isArray(e))return eS(e)}(n=r.map(function(e){return e.getSources}))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return eS(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return eS(e,void 0)}}(n)||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 n;return n=[],Promise.resolve(e(t)).then(function(e){return Promise.all(e.filter(function(e){return!!e}).map(function(e){if(e.sourceId,n.includes(e.sourceId))throw Error("[Autocomplete] The `sourceId` ".concat(JSON.stringify(e.sourceId)," is not unique."));n.push(e.sourceId);var t={getItemInputValue:function(e){return e.state.query},getItemUrl:function(){},onSelect:function(e){(0,e.setIsOpen)(!1)},onActive:D,onResolve:D};return Object.keys(t).forEach(function(e){t[e].__default=!0}),Promise.resolve(es(es({},t),e))}))})})).then(function(e){return T(e)}).then(function(e){return e.map(function(e){return eP(eP({},e),{},{onSelect:function(t){e.onSelect(t),E.forEach(function(e){var n;return null===(n=e.onSelect)||void 0===n?void 0:n.call(e,t)})},onActive:function(t){e.onActive(t),E.forEach(function(e){var n;return null===(n=e.onActive)||void 0===n?void 0:n.call(e,t)})},onResolve:function(t){e.onResolve(t),E.forEach(function(e){var n;return null===(n=e.onResolve)||void 0===n?void 0:n.call(e,t)})}})})})},navigator:eP({navigate:function(e){var t=e.itemUrl;n.location.assign(t)},navigateNewTab:function(e){var t=e.itemUrl,r=n.open(t,"_blank","noopener");null==r||r.focus()},navigateNewWindow:function(e){var t=e.itemUrl;n.open(t,"_blank","noopener")}},e.navigator)})),O=(o=function(e){var t,n,r=e.prevState,o=e.state;if(S.onStateChange(ta({prevState:r,state:o,refresh:j,navigator:S.navigator},P)),!k()&&null!==(t=o.context)&&void 0!==t&&null!==(n=t.algoliaInsightsPlugin)&&void 0!==n&&n.__automaticInsights&&!1!==S.insights){var i=eo({__autocomplete_clickAnalytics:!1});S.plugins.push(i),I([i])}},a=S.initialState,{getState:function(){return a},dispatch:function(e,t){var n=function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,eG);if("ArrowUp"===t.key||"ArrowDown"===t.key){var a=function(){var e=ed(o.getState()),t=n.environment.document.getElementById(ep(n.id,"item-".concat(o.getState().activeItemId),null==e?void 0:e.source));t&&(t.scrollIntoViewIfNeeded?t.scrollIntoViewIfNeeded(!1):t.scrollIntoView(!1))},u=function(){var e=ed(o.getState());if(null!==o.getState().activeItemId&&e){var n=e.item,a=e.itemInputValue,u=e.itemUrl,l=e.source;l.onActive(e$({event:t,item:n,itemInputValue:a,itemUrl:u,refresh:r,source:l,state:o.getState()},i))}};t.preventDefault(),!1===o.getState().isOpen&&(n.openOnFocus||o.getState().query)?eU(e$({event:t,props:n,query:o.getState().query,refresh:r,store:o},i)).then(function(){o.dispatch(t.key,{nextActiveItemId:n.defaultActiveItemId}),u(),setTimeout(a,0)}):(o.dispatch(t.key,{}),u(),a())}else if("Escape"===t.key)t.preventDefault(),o.dispatch(t.key,null),o.pendingRequests.cancelAll();else if("Tab"===t.key)o.dispatch("blur",null),o.pendingRequests.cancelAll();else if("Enter"===t.key){if(null===o.getState().activeItemId||o.getState().collections.every(function(e){return 0===e.items.length}))return void(n.debug||o.pendingRequests.cancelAll());t.preventDefault();var l=ed(o.getState()),c=l.item,s=l.itemInputValue,f=l.itemUrl,d=l.source;if(t.metaKey||t.ctrlKey)void 0!==f&&(d.onSelect(e$({event:t,item:c,itemInputValue:s,itemUrl:f,refresh:r,source:d,state:o.getState()},i)),n.navigator.navigateNewTab({itemUrl:f,item:c,state:o.getState()}));else if(t.shiftKey)void 0!==f&&(d.onSelect(e$({event:t,item:c,itemInputValue:s,itemUrl:f,refresh:r,source:d,state:o.getState()},i)),n.navigator.navigateNewWindow({itemUrl:f,item:c,state:o.getState()}));else if(t.altKey);else{if(void 0!==f)return d.onSelect(e$({event:t,item:c,itemInputValue:s,itemUrl:f,refresh:r,source:d,state:o.getState()},i)),void n.navigator.navigate({itemUrl:f,item:c,state:o.getState()});eU(e$({event:t,nextState:{isOpen:!1},props:n,query:s,refresh:r,store:o},i)).then(function(){d.onSelect(e$({event:t,item:c,itemInputValue:s,itemUrl:f,refresh:r,source:d,state:o.getState()},i))})}}}(e3({event:e,props:l,refresh:c,store:s},f))},onFocus:t,onBlur:D,onClick:function(n){e.inputElement!==l.environment.document.activeElement||s.getState().isOpen||t(n)}},u)},getPanelProps:function(e){return e3({onMouseDown:function(e){e.preventDefault()},onMouseLeave:function(){s.dispatch("mouseleave",null)}},e)},getListProps:function(e){var t=e||{},n=t.source,r=e5(t,e1);return e3({role:"listbox","aria-labelledby":ep(l.id,"label"),id:ep(l.id,"list",n)},r)},getItemProps:function(e){var t=e.item,n=e.source,r=e5(e,e2);return e3({id:ep(l.id,"item-".concat(t.__autocomplete_id),n),role:"option","aria-selected":s.getState().activeItemId===t.__autocomplete_id,onMouseMove:function(e){if(t.__autocomplete_id!==s.getState().activeItemId){s.dispatch("mousemove",t.__autocomplete_id);var n=ed(s.getState());if(null!==s.getState().activeItemId&&n){var r=n.item,o=n.itemInputValue,i=n.itemUrl,a=n.source;a.onActive(e3({event:e,item:r,itemInputValue:o,itemUrl:i,refresh:c,source:a,state:s.getState()},f))}}},onMouseDown:function(e){e.preventDefault()},onClick:function(e){var r=n.getItemInputValue({item:t,state:s.getState()}),o=n.getItemUrl({item:t,state:s.getState()});(o?Promise.resolve():eU(e3({event:e,nextState:{isOpen:!1},props:l,query:r,refresh:c,store:s},f))).then(function(){n.onSelect(e3({event:e,item:t,itemInputValue:r,itemUrl:o,refresh:c,source:n,state:s.getState()},f))})}},r)}});function j(){return eU(ta({event:new Event("input"),nextState:{isOpen:O.getState().isOpen},props:S,navigator:S.navigator,query:O.getState().query,refresh:j,store:O},P))}function I(e){e.forEach(function(e){var t;return null===(t=e.subscribe)||void 0===t?void 0:t.call(e,ta(ta({},P),{},{navigator:S.navigator,refresh:j,onSelect:function(e){E.push({onSelect:e})},onActive:function(e){E.push({onActive:e})},onResolve:function(e){E.push({onResolve:e})}}))})}function k(){return S.plugins.some(function(e){return"aa.algoliaInsightsPlugin"===e.name})}if(S.insights&&!k()){var _="boolean"==typeof S.insights?{}:S.insights;S.plugins.push(eo(_))}return I(S.plugins),function(e){var t,n,r=e.metadata,o=e.environment;if(null===(t=o.navigator)||void 0===t||null===(n=t.userAgent)||void 0===n?void 0:n.includes("Algolia Crawler")){var i=o.document.createElement("meta"),a=o.document.querySelector("head");i.name="algolia:metadata",setTimeout(function(){i.content=JSON.stringify(r),a.appendChild(i)},0)}}({metadata:(g=(d={plugins:S.plugins,options:e}).plugins,w=(b=null===(p=((null===(m=(y=d.options).__autocomplete_metadata)||void 0===m?void 0:m.userAgents)||[])[0])||void 0===p?void 0:p.segment)?e9({},b,Object.keys((null===(h=y.__autocomplete_metadata)||void 0===h?void 0:h.options)||{})):{},{plugins:g.map(function(e){return{name:e.name,options:Object.keys(e.__autocomplete_pluginOptions||[])}}),options:function(e){for(var t=1;t",highlightPostTag:"",hitsPerPage:20,clickAnalytics:i},v)]}).catch(function(e){throw"RetryError"===e.name&&o("error"),e}).then(function(e){var t=e.results[0],o=t.hits,a=t.nbHits,u=tC(o,function(e){return tD(e)},w);n.context.searchSuggestions.length0&&(ex(),en.current&&en.current.focus())},[ea,ex]),r.useEffect(function(){function e(){if(X.current){var e=.01*window.innerHeight;X.current.style.setProperty("--docsearch-vh","".concat(e,"px"))}}return e(),window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}},[]),r.createElement("div",d({ref:Z},eO({"aria-expanded":!0}),{className:["DocSearch","DocSearch-Container","stalled"===Q.status&&"DocSearch-Container--Stalled","error"===Q.status&&"DocSearch-Container--Errored"].filter(Boolean).join(" "),role:"button",tabIndex:0,onMouseDown:function(e){e.target===e.currentTarget&&P()}}),r.createElement("div",{className:"DocSearch-Modal",ref:X},r.createElement("header",{className:"DocSearch-SearchBar",ref:ee},r.createElement(tK,d({},eb,{state:Q,autoFocus:0===ea.length,inputRef:en,isFromSelection:!!ea&&ea===ei,translations:G,onClose:P}))),r.createElement("div",{className:"DocSearch-Dropdown",ref:et},r.createElement(tV,d({},eb,{indexName:p,state:Q,hitComponent:void 0===I?ts:I,resultsFooterComponent:void 0===k?function(){return null}:k,disableUserPersonalization:H,recentSearches:ec,favoriteSearches:el,inputRef:en,translations:J,getMissingResultsUrl:K,onItemClick:function(e,t){ey(e),ef(e),tT(t)||P()}}))),r.createElement("footer",{className:"DocSearch-Footer"},r.createElement(tc,{translations:W}))))}function t8(e){var t=e.isOpen,n=e.onOpen,o=e.onClose,i=e.onInput,a=e.searchButtonRef;r.useEffect(function(){function e(e){var r,u,l;if("Escape"===e.code&&t||"k"===(null===(r=e.key)||void 0===r?void 0:r.toLowerCase())&&(e.metaKey||e.ctrlKey)||(l=(u=e.target).tagName,!u.isContentEditable&&"INPUT"!==l&&"SELECT"!==l&&"TEXTAREA"!==l&&"/"===e.key&&!t))return e.preventDefault(),void(t?o():document.body.classList.contains("DocSearch--active")||n());a&&a.current===document.activeElement&&i&&/[a-zA-Z0-9]/.test(String.fromCharCode(e.keyCode))&&i(e)}return window.addEventListener("keydown",e),function(){window.removeEventListener("keydown",e)}},[t,n,o,i,a])}function t9(e){var t,n,i=r.useRef(null),a=E(r.useState(!1),2),u=a[0],l=a[1],c=E(r.useState((null==e?void 0:e.initialQuery)||void 0),2),s=c[0],f=c[1],p=r.useCallback(function(){l(!0)},[l]),m=r.useCallback(function(){l(!1),f(null==e?void 0:e.initialQuery)},[l,e.initialQuery]);return t8({isOpen:u,onOpen:p,onClose:m,onInput:r.useCallback(function(e){l(!0),f(e.key)},[l,f]),searchButtonRef:i}),r.createElement(r.Fragment,null,r.createElement(_,{ref:i,translations:null==e||null===(t=e.translations)||void 0===t?void 0:t.button,onClick:p}),u&&(0,o.createPortal)(r.createElement(t6,d({},e,{initialScrollY:window.scrollY,initialQuery:s,translations:null==e||null===(n=e.translations)||void 0===n?void 0:n.modal,onClose:m})),document.body))}},5516:(e,t,n)=>{"use strict";n.d(t,{Me:()=>O,oo:()=>_,US:()=>P,RR:()=>I,cv:()=>x,uY:()=>j,dp:()=>k});var r=n(6236);function o(e,t,n){let o,{reference:i,floating:a}=e,u=(0,r.Qq)(t),l=(0,r.Wh)(t),c=(0,r.I4)(l),s=(0,r.k3)(t),f="y"===u,d=i.x+i.width/2-a.width/2,p=i.y+i.height/2-a.height/2,m=i[c]/2-a[c]/2;switch(s){case"top":o={x:d,y:i.y-a.height};break;case"bottom":o={x:d,y:i.y+i.height};break;case"right":o={x:i.x+i.width,y:p};break;case"left":o={x:i.x-a.width,y:p};break;default:o={x:i.x,y:i.y}}switch((0,r.hp)(t)){case"start":o[l]-=m*(n&&f?-1:1);break;case"end":o[l]+=m*(n&&f?-1:1)}return o}let i=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:u}=n,l=a.filter(Boolean),c=await (null==u.isRTL?void 0:u.isRTL(t)),s=await u.getElementRects({reference:e,floating:t,strategy:i}),{x:f,y:d}=o(s,r,c),p=r,m={},h=0;for(let n=0;n(0,l.kK)(e)&&"body"!==(0,l.wk)(e)),o=null,i="fixed"===(0,l.Dx)(e).position,a=i?(0,l.Ow)(e):e;for(;(0,l.kK)(a)&&!(0,l.Py)(a);){let t=(0,l.Dx)(a),n=(0,l.hT)(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&!!o&&["absolute","fixed"].includes(o.position)||(0,l.ao)(a)&&!n&&function e(t,n){let r=(0,l.Ow)(t);return!(r===n||!(0,l.kK)(r)||(0,l.Py)(r))&&("fixed"===(0,l.Dx)(r).position||e(r,n))}(e,a))?r=r.filter(e=>e!==a):o=t,a=(0,l.Ow)(a)}return t.set(e,r),r}(t,this._c):[].concat(n),o],u=a[0],c=a.reduce((e,n)=>{let o=g(t,n,i);return e.top=(0,r.Fp)(o.top,e.top),e.right=(0,r.VV)(o.right,e.right),e.bottom=(0,r.VV)(o.bottom,e.bottom),e.left=(0,r.Fp)(o.left,e.left),e},g(t,u,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},getOffsetParent:w,getElementRects:E,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=c(e);return{width:t,height:n}},getScale:f,isElement:l.kK,isRTL:function(e){return"rtl"===(0,l.Dx)(e).direction}};function O(e,t,n,o){let i;void 0===o&&(o={});let{ancestorScroll:a=!0,ancestorResize:u=!0,elementResize:c="function"==typeof ResizeObserver,layoutShift:f="function"==typeof IntersectionObserver,animationFrame:d=!1}=o,p=s(e),h=a||u?[...p?(0,l.Kx)(p):[],...(0,l.Kx)(t)]:[];h.forEach(e=>{a&&e.addEventListener("scroll",n,{passive:!0}),u&&e.addEventListener("resize",n)});let v=p&&f?function(e,t){let n,o=null,i=(0,l.tF)(e);function a(){var e;clearTimeout(n),null==(e=o)||e.disconnect(),o=null}return!function u(l,c){void 0===l&&(l=!1),void 0===c&&(c=1),a();let{left:s,top:f,width:d,height:p}=e.getBoundingClientRect();if(l||t(),!d||!p)return;let m=(0,r.GW)(f),h=(0,r.GW)(i.clientWidth-(s+d)),v={rootMargin:-m+"px "+-h+"px "+-(0,r.GW)(i.clientHeight-(f+p))+"px "+-(0,r.GW)(s)+"px",threshold:(0,r.Fp)(0,(0,r.VV)(1,c))||1},g=!0;function y(e){let t=e[0].intersectionRatio;if(t!==c){if(!g)return u();t?u(!1,t):n=setTimeout(()=>{u(!1,1e-7)},1e3)}g=!1}try{o=new IntersectionObserver(y,{...v,root:i.ownerDocument})}catch(e){o=new IntersectionObserver(y,v)}o.observe(e)}(!0),a}(p,n):null,g=-1,y=null;c&&(y=new ResizeObserver(e=>{let[r]=e;r&&r.target===p&&y&&(y.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var e;null==(e=y)||e.observe(t)})),n()}),p&&!d&&y.observe(p),y.observe(t));let b=d?m(e):null;return d&&function t(){let r=m(e);b&&(r.x!==b.x||r.y!==b.y||r.width!==b.width||r.height!==b.height)&&n(),b=r,i=requestAnimationFrame(t)}(),n(),()=>{var e;h.forEach(e=>{a&&e.removeEventListener("scroll",n),u&&e.removeEventListener("resize",n)}),null==v||v(),null==(e=y)||e.disconnect(),y=null,d&&cancelAnimationFrame(i)}}let P=a,x=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:o,y:i,placement:a,middlewareData:l}=t,c=await u(t,e);return a===(null==(n=l.offset)?void 0:n.placement)&&null!=(r=l.arrow)&&r.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:a}}}}},j=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:o,placement:i}=t,{mainAxis:u=!0,crossAxis:l=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=(0,r.ku)(e,t),f={x:n,y:o},d=await a(t,s),p=(0,r.Qq)((0,r.k3)(i)),m=(0,r.Rn)(p),h=f[m],v=f[p];if(u){let e="y"===m?"top":"left",t="y"===m?"bottom":"right",n=h+d[e],o=h-d[t];h=(0,r.uZ)(n,h,o)}if(l){let e="y"===p?"top":"left",t="y"===p?"bottom":"right",n=v+d[e],o=v-d[t];v=(0,r.uZ)(n,v,o)}let g=c.fn({...t,[m]:h,[p]:v});return{...g,data:{x:g.x-n,y:g.y-o,enabled:{[m]:u,[p]:l}}}}}},I=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,o,i,u,l;let{placement:c,middlewareData:s,rects:f,initialPlacement:d,platform:p,elements:m}=t,{mainAxis:h=!0,crossAxis:v=!0,fallbackPlacements:g,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:w=!0,...E}=(0,r.ku)(e,t);if(null!=(n=s.arrow)&&n.alignmentOffset)return{};let S=(0,r.k3)(c),O=(0,r.Qq)(d),P=(0,r.k3)(d)===d,x=await (null==p.isRTL?void 0:p.isRTL(m.floating)),j=g||(P||!w?[(0,r.pw)(d)]:(0,r.gy)(d)),I="none"!==b;!g&&I&&j.push(...(0,r.KX)(d,w,b,x));let k=[d,...j],_=await a(t,E),C=[],R=(null==(o=s.flip)?void 0:o.overflows)||[];if(h&&C.push(_[S]),v){let e=(0,r.i8)(c,f,x);C.push(_[e[0]],_[e[1]])}if(R=[...R,{placement:c,overflows:C}],!C.every(e=>e<=0)){let e=((null==(i=s.flip)?void 0:i.index)||0)+1,t=k[e];if(t)return{data:{index:e,overflows:R},reset:{placement:t}};let n=null==(u=R.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:u.placement;if(!n)switch(y){case"bestFit":{let e=null==(l=R.filter(e=>{if(I){let t=(0,r.Qq)(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:l[0];e&&(n=e);break}case"initialPlacement":n=d}if(c!==n)return{reset:{placement:n}}}return{}}}},k=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,o;let i,u;let{placement:l,rects:c,platform:s,elements:f}=t,{apply:d=()=>{},...p}=(0,r.ku)(e,t),m=await a(t,p),h=(0,r.k3)(l),v=(0,r.hp)(l),g="y"===(0,r.Qq)(l),{width:y,height:b}=c.floating;"top"===h||"bottom"===h?(i=h,u=v===(await (null==s.isRTL?void 0:s.isRTL(f.floating))?"start":"end")?"left":"right"):(u=h,i="end"===v?"top":"bottom");let w=b-m.top-m.bottom,E=y-m.left-m.right,S=(0,r.VV)(b-m[i],w),O=(0,r.VV)(y-m[u],E),P=!t.middlewareData.shift,x=S,j=O;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(j=E),null!=(o=t.middlewareData.shift)&&o.enabled.y&&(x=w),P&&!v){let e=(0,r.Fp)(m.left,0),t=(0,r.Fp)(m.right,0),n=(0,r.Fp)(m.top,0),o=(0,r.Fp)(m.bottom,0);g?j=y-2*(0!==e||0!==t?e+t:(0,r.Fp)(m.left,m.right)):x=b-2*(0!==n||0!==o?n+o:(0,r.Fp)(m.top,m.bottom))}await d({...t,availableWidth:j,availableHeight:x});let I=await s.getDimensions(f.floating);return y!==I.width||b!==I.height?{reset:{rects:!0}}:{}}}},_=(e,t,n)=>{let r=new Map,o={platform:S,...n},a={...o.platform,_c:r};return i(e,t,{...o,platform:a})}},8139:(e,t,n)=>{"use strict";n.d(t,{RR:()=>m,YF:()=>f,cv:()=>d,dp:()=>h,uY:()=>p});var r=n(5516),o=n(2265),i=n(4887),a="undefined"!=typeof document?o.useLayoutEffect:o.useEffect;function u(e,t){let n,r,o;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((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!u(e[r],t[r]))return!1;return!0}if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){let n=o[r];if(("_owner"!==n||!e.$$typeof)&&!u(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function l(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function c(e,t){let n=l(e);return Math.round(t*n)/n}function s(e){let t=o.useRef(e);return a(()=>{t.current=e}),t}function f(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:f=[],platform:d,elements:{reference:p,floating:m}={},transform:h=!0,whileElementsMounted:v,open:g}=e,[y,b]=o.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[w,E]=o.useState(f);u(w,f)||E(f);let[S,O]=o.useState(null),[P,x]=o.useState(null),j=o.useCallback(e=>{e!==C.current&&(C.current=e,O(e))},[]),I=o.useCallback(e=>{e!==R.current&&(R.current=e,x(e))},[]),k=p||S,_=m||P,C=o.useRef(null),R=o.useRef(null),T=o.useRef(y),A=null!=v,M=s(v),L=s(d),D=s(g),N=o.useCallback(()=>{if(!C.current||!R.current)return;let e={placement:t,strategy:n,middleware:w};L.current&&(e.platform=L.current),(0,r.oo)(C.current,R.current,e).then(e=>{let t={...e,isPositioned:!1!==D.current};F.current&&!u(T.current,t)&&(T.current=t,i.flushSync(()=>{b(t)}))})},[w,t,n,L,D]);a(()=>{!1===g&&T.current.isPositioned&&(T.current.isPositioned=!1,b(e=>({...e,isPositioned:!1})))},[g]);let F=o.useRef(!1);a(()=>(F.current=!0,()=>{F.current=!1}),[]),a(()=>{if(k&&(C.current=k),_&&(R.current=_),k&&_){if(M.current)return M.current(k,_,N);N()}},[k,_,N,M,A]);let H=o.useMemo(()=>({reference:C,floating:R,setReference:j,setFloating:I}),[j,I]),B=o.useMemo(()=>({reference:k,floating:_}),[k,_]),V=o.useMemo(()=>{let e={position:n,left:0,top:0};if(!B.floating)return e;let t=c(B.floating,y.x),r=c(B.floating,y.y);return h?{...e,transform:"translate("+t+"px, "+r+"px)",...l(B.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,h,B.floating,y.x,y.y]);return o.useMemo(()=>({...y,update:N,refs:H,elements:B,floatingStyles:V}),[y,N,H,B,V])}let d=(e,t)=>({...(0,r.cv)(e),options:[e,t]}),p=(e,t)=>({...(0,r.uY)(e),options:[e,t]}),m=(e,t)=>({...(0,r.RR)(e),options:[e,t]}),h=(e,t)=>({...(0,r.dp)(e),options:[e,t]})},2032:(e,t,n)=>{"use strict";function r(){let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:n}=e;return t+"/"+n}).join(" "):navigator.userAgent}n.d(t,{ij:()=>r})},899:(e,t,n)=>{"use strict";function r(){return"undefined"!=typeof window}function o(e){return u(e)?(e.nodeName||"").toLowerCase():"#document"}function i(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function a(e){var t;return null==(t=(u(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function u(e){return!!r()&&(e instanceof Node||e instanceof i(e).Node)}function l(e){return!!r()&&(e instanceof Element||e instanceof i(e).Element)}function c(e){return!!r()&&(e instanceof HTMLElement||e instanceof i(e).HTMLElement)}function s(e){return!!r()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof i(e).ShadowRoot)}function f(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=y(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function d(e){return["table","td","th"].includes(o(e))}function p(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch(e){return!1}})}function m(e){let t=v(),n=l(e)?y(e):e;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function h(e){let t=w(e);for(;c(t)&&!g(t);){if(m(t))return t;if(p(t))break;t=w(t)}return null}function v(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function g(e){return["html","body","#document"].includes(o(e))}function y(e){return i(e).getComputedStyle(e)}function b(e){return l(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function w(e){if("html"===o(e))return e;let t=e.assignedSlot||e.parentNode||s(e)&&e.host||a(e);return s(t)?t.host:t}function E(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}n.d(t,{Dx:()=>y,Jj:()=>i,Kx:()=>function e(t,n,r){var o;void 0===n&&(n=[]),void 0===r&&(r=!0);let a=function e(t){let n=w(t);return g(n)?t.ownerDocument?t.ownerDocument.body:t.body:c(n)&&f(n)?n:e(n)}(t),u=a===(null==(o=t.ownerDocument)?void 0:o.body),l=i(a);if(u){let t=E(l);return n.concat(l,l.visualViewport||[],f(a)?a:[],t&&r?e(t):[])}return n.concat(a,e(a,[],r))},Lw:()=>b,Ow:()=>w,Pf:()=>v,Py:()=>g,Re:()=>c,Ze:()=>d,ao:()=>f,gQ:()=>h,hT:()=>m,kK:()=>l,tF:()=>a,tR:()=>p,wK:()=>E,wk:()=>o})},6236:(e,t,n)=>{"use strict";n.d(t,{Fp:()=>o,GW:()=>a,I4:()=>h,JB:()=>P,KX:()=>E,NM:()=>i,Qq:()=>v,Rn:()=>m,VV:()=>r,Wh:()=>g,gy:()=>b,hp:()=>p,i8:()=>y,k3:()=>d,ku:()=>f,pw:()=>S,uZ:()=>s,yd:()=>O,ze:()=>u});let r=Math.min,o=Math.max,i=Math.round,a=Math.floor,u=e=>({x:e,y:e}),l={left:"right",right:"left",bottom:"top",top:"bottom"},c={start:"end",end:"start"};function s(e,t,n){return o(e,r(t,n))}function f(e,t){return"function"==typeof e?e(t):e}function d(e){return e.split("-")[0]}function p(e){return e.split("-")[1]}function m(e){return"x"===e?"y":"x"}function h(e){return"y"===e?"height":"width"}function v(e){return["top","bottom"].includes(d(e))?"y":"x"}function g(e){return m(v(e))}function y(e,t,n){void 0===n&&(n=!1);let r=p(e),o=g(e),i=h(o),a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=S(a)),[a,S(a)]}function b(e){let t=S(e);return[w(e),t,w(t)]}function w(e){return e.replace(/start|end/g,e=>c[e])}function E(e,t,n,r){let o=p(e),i=function(e,t,n){let r=["left","right"],o=["right","left"];switch(e){case"top":case"bottom":if(n)return t?o:r;return t?r:o;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}(d(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(w)))),i}function S(e){return e.replace(/left|right|bottom|top/g,e=>l[e])}function O(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function P(e){let{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}},7253:(e,t,n)=>{"use strict";n.d(t,{dk:()=>d,fw:()=>f,zH:()=>s});var r=n(2265),o=n(371),i=n(4941),a=n(8615),u=n(3360),l=n(9026);let c=(0,r.createContext)(null);function s(){var e,t;return null!=(t=null==(e=(0,r.useContext)(c))?void 0:e.value)?t:void 0}function f(){let[e,t]=(0,r.useState)([]);return[e.length>0?e.join(" "):void 0,(0,r.useMemo)(()=>function(e){let n=(0,o.z)(e=>(t(t=>[...t,e]),()=>t(t=>{let n=t.slice(),r=n.indexOf(e);return -1!==r&&n.splice(r,1),n}))),i=(0,r.useMemo)(()=>({register:n,slot:e.slot,name:e.name,props:e.props,value:e.value}),[n,e.slot,e.name,e.props,e.value]);return r.createElement(c.Provider,{value:i},e.children)},[t])]}c.displayName="DescriptionContext";let d=Object.assign((0,l.yV)(function(e,t){let n=(0,r.useId)(),o=(0,u.B)(),{id:s="headlessui-description-".concat(n),...f}=e,d=function e(){let t=(0,r.useContext)(c);if(null===t){let t=Error("You used a component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,e),t}return t}(),p=(0,a.T)(t);(0,i.e)(()=>d.register(s),[s,d.register]);let m=o||!1,h=(0,r.useMemo)(()=>({...d.slot,disabled:m}),[d.slot,m]),v={ref:p,...d.props,id:s};return(0,l.L6)()({ourProps:v,theirProps:f,slot:h,defaultTag:"p",name:d.name||"Description"})}),{})},7840:(e,t,n)=>{"use strict";n.d(t,{Vq:()=>X});var r=n(2265),o=n(3403),i=n(71);function a(e,t,n,o){let a=(0,i.E)(n);(0,r.useEffect)(()=>{function n(e){a.current(e)}return(e=null!=e?e:window).addEventListener(t,n,o),()=>e.removeEventListener(t,n,o)},[e,t,o])}var u=n(7035),l=n(371),c=n(5125),s=n(4941),f=n(7398),d=n(5270),p=n(2109),m=n(1553),h=n(2009);let v=(0,r.createContext)(null);function g(e){let{children:t,node:n}=e,[o,i]=(0,r.useState)(null),a=y(null!=n?n:o);return r.createElement(v.Provider,{value:a},t,null===a&&r.createElement(m._,{features:m.x.Hidden,ref:e=>{var t,n;if(e){for(let r of null!=(n=null==(t=(0,h.r)(e))?void 0:t.querySelectorAll("html > *, body > *"))?n:[])if(r!==document.body&&r!==document.head&&r instanceof HTMLElement&&null!=r&&r.contains(e)){i(r);break}}}}))}function y(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return null!=(e=(0,r.useContext)(v))?e:t}var b=n(2171),w=n(3333),E=n(8615);let S=(0,r.createContext)(()=>{});function O(e){let{value:t,children:n}=e;return r.createElement(S.Provider,{value:t},n)}var P=n(615),x=n(4329),j=n(2419),I=n(9026),k=n(7253),_=n(8245),C=n(159),R=n(7889),T=n(7664),A=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(A||{});function M(e,t){let n=(0,r.useRef)([]),o=(0,l.z)(e);(0,r.useEffect)(()=>{let e=[...n.current];for(let[r,i]of t.entries())if(n.current[r]!==i){let r=o(t,e);return n.current=t,r}},[o,...t])}var L=n(4360);let D=[];!function(e){function t(){"loading"!==document.readyState&&(e(),document.removeEventListener("DOMContentLoaded",t))}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("DOMContentLoaded",t),t())}(()=>{function e(e){if(!(e.target instanceof HTMLElement)||e.target===document.body||D[0]===e.target)return;let t=e.target;t=t.closest(L.y),D.unshift(null!=t?t:e.target),(D=D.filter(e=>null!=e&&e.isConnected)).splice(10)}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});var N=n(795);function F(e){if(!e)return new Set;if("function"==typeof e)return new Set(e());let t=new Set;for(let n of e.current)n.current instanceof HTMLElement&&t.add(n.current);return t}var H=(e=>(e[e.None=0]="None",e[e.InitialFocus=1]="InitialFocus",e[e.TabLock=2]="TabLock",e[e.FocusLock=4]="FocusLock",e[e.RestoreFocus=8]="RestoreFocus",e[e.AutoFocus=16]="AutoFocus",e))(H||{});let B=Object.assign((0,I.yV)(function(e,t){let n,o=(0,r.useRef)(null),i=(0,E.T)(o,t),{initialFocus:c,initialFocusFallback:s,containers:f,features:d=15,...h}=e;(0,w.H)()||(d=0);let v=(0,p.i)(o);!function(e,t){let{ownerDocument:n}=t,o=!!(8&e),i=function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],t=(0,r.useRef)(D.slice());return M((e,n)=>{let[r]=e,[o]=n;!0===o&&!1===r&&(0,N.Y)(()=>{t.current.splice(0)}),!1===o&&!0===r&&(t.current=D.slice())},[e,D,t]),(0,l.z)(()=>{var e;return null!=(e=t.current.find(e=>null!=e&&e.isConnected))?e:null})}(o);M(()=>{o||(null==n?void 0:n.activeElement)===(null==n?void 0:n.body)&&(0,L.C5)(i())},[o]),(0,R.L)(()=>{o&&(0,L.C5)(i())})}(d,{ownerDocument:v});let g=function(e,t){let{ownerDocument:n,container:o,initialFocus:i,initialFocusFallback:a}=t,l=(0,r.useRef)(null),c=(0,u.g)(!!(1&e),"focus-trap#initial-focus"),s=(0,C.t)();return M(()=>{if(0===e)return;if(!c){null!=a&&a.current&&(0,L.C5)(a.current);return}let t=o.current;t&&(0,N.Y)(()=>{if(!s.current)return;let r=null==n?void 0:n.activeElement;if(null!=i&&i.current){if((null==i?void 0:i.current)===r){l.current=r;return}}else if(t.contains(r)){l.current=r;return}if(null!=i&&i.current)(0,L.C5)(i.current);else{if(16&e){if((0,L.jA)(t,L.TO.First|L.TO.AutoFocus)!==L.fE.Error)return}else if((0,L.jA)(t,L.TO.First)!==L.fE.Error)return;if(null!=a&&a.current&&((0,L.C5)(a.current),(null==n?void 0:n.activeElement)===a.current))return;console.warn("There are no focusable elements inside the ")}l.current=null==n?void 0:n.activeElement})},[a,c,e]),l}(d,{ownerDocument:v,container:o,initialFocus:c,initialFocusFallback:s});!function(e,t){let{ownerDocument:n,container:r,containers:o,previousActiveElement:i}=t,u=(0,C.t)(),l=!!(4&e);a(null==n?void 0:n.defaultView,"focus",e=>{if(!l||!u.current)return;let t=F(o);r.current instanceof HTMLElement&&t.add(r.current);let n=i.current;if(!n)return;let a=e.target;a&&a instanceof HTMLElement?V(t,a)?(i.current=a,(0,L.C5)(a)):(e.preventDefault(),e.stopPropagation(),(0,L.C5)(n)):(0,L.C5)(i.current)},!0)}(d,{ownerDocument:v,container:o,containers:f,previousActiveElement:g});let y=(n=(0,r.useRef)(0),(0,T.s)(!0,"keydown",e=>{"Tab"===e.key&&(n.current=e.shiftKey?1:0)},!0),n),b=(0,l.z)(e=>{let t=o.current;t&&(0,j.E)(y.current,{[A.Forwards]:()=>{(0,L.jA)(t,L.TO.First,{skipElements:[e.relatedTarget,s]})},[A.Backwards]:()=>{(0,L.jA)(t,L.TO.Last,{skipElements:[e.relatedTarget,s]})}})}),S=(0,u.g)(!!(2&d),"focus-trap#tab-lock"),O=(0,_.G)(),P=(0,r.useRef)(!1),x=(0,I.L6)();return r.createElement(r.Fragment,null,S&&r.createElement(m._,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:b,features:m.x.Focusable}),x({ourProps:{ref:i,onKeyDown(e){"Tab"==e.key&&(P.current=!0,O.requestAnimationFrame(()=>{P.current=!1}))},onBlur(e){if(!(4&d))return;let t=F(f);o.current instanceof HTMLElement&&t.add(o.current);let n=e.relatedTarget;n instanceof HTMLElement&&"true"!==n.dataset.headlessuiFocusGuard&&(V(t,n)||(P.current?(0,L.jA)(o.current,(0,j.E)(y.current,{[A.Forwards]:()=>L.TO.Next,[A.Backwards]:()=>L.TO.Previous})|L.TO.WrapAround,{relativeTo:e.target}):e.target instanceof HTMLElement&&(0,L.C5)(e.target)))}},theirProps:h,defaultTag:"div",name:"FocusTrap"}),S&&r.createElement(m._,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:b,features:m.x.Focusable}))}),{features:H});function V(e,t){for(let n of e)if(n.contains(t))return!0;return!1}var q=n(8875),K=n(8040),z=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(z||{}),U=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(U||{});let W={0:(e,t)=>e.titleId===t.id?e:{...e,titleId:t.id}},G=(0,r.createContext)(null);function J(e){let t=(0,r.useContext)(G);if(null===t){let t=Error("<".concat(e," /> is missing a parent component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,J),t}return t}function $(e,t){return(0,j.E)(t.type,W,e,t)}G.displayName="DialogContext";let Q=(0,I.yV)(function(e,t){let n=(0,r.useId)(),{id:i="headlessui-dialog-".concat(n),open:m,onClose:h,initialFocus:v,role:g="dialog",autoFocus:S=!0,__demoMode:j=!1,unmount:_=!1,...C}=e,R=(0,r.useRef)(!1);g="dialog"===g||"alertdialog"===g?g:(R.current||(R.current=!0,console.warn("Invalid role [".concat(g,"] passed to . Only `dialog` and and `alertdialog` are supported. Using `dialog` instead."))),"dialog");let T=(0,P.oJ)();void 0===m&&null!==T&&(m=(T&P.ZM.Open)===P.ZM.Open);let A=(0,r.useRef)(null),M=(0,E.T)(A,t),L=(0,p.i)(A),D=m?0:1,[N,F]=(0,r.useReducer)($,{titleId:null,descriptionId:null,panelRef:(0,r.createRef)()}),V=(0,l.z)(()=>h(!1)),K=(0,l.z)(e=>F({type:0,id:e})),z=!!(0,w.H)()&&0===D,[U,W]=(0,q.kF)(),J=y(),{resolveContainers:Q}=function(){let{defaultContainers:e=[],portals:t,mainTreeNode:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=(0,p.i)(n),o=(0,l.z)(()=>{var o,i;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!=(o=null==r?void 0:r.querySelectorAll("html > *, body > *"))?o:[])e!==document.body&&e!==document.head&&e instanceof HTMLElement&&"headlessui-portal-root"!==e.id&&(n&&(e.contains(n)||e.contains(null==(i=null==n?void 0:n.getRootNode())?void 0:i.host))||a.some(t=>e.contains(t))||a.push(e));return a});return{resolveContainers:o,contains:(0,l.z)(e=>o().some(t=>t.contains(e)))}}({mainTreeNode:J,portals:U,defaultContainers:[{get current(){var X;return null!=(X=N.panelRef.current)?X:A.current}}]}),ee=null!==T&&(T&P.ZM.Closing)===P.ZM.Closing;(0,c.s)(!j&&!ee&&z,{allowed:(0,l.z)(()=>{var e,t;return[null!=(t=null==(e=A.current)?void 0:e.closest("[data-headlessui-portal]"))?t:null]}),disallowed:(0,l.z)(()=>{var e;return[null!=(e=null==J?void 0:J.closest("body > *:not(#headlessui-portal-root)"))?e:null]})}),(0,d.O)(z,Q,e=>{e.preventDefault(),V()}),function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"undefined"!=typeof document?document.defaultView:null,n=arguments.length>2?arguments[2]:void 0,r=(0,u.g)(e,"escape");a(t,"keydown",e=>{r&&(e.defaultPrevented||e.key===o.R.Escape&&n(e))})}(z,null==L?void 0:L.defaultView,e=>{e.preventDefault(),e.stopPropagation(),document.activeElement&&"blur"in document.activeElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur(),V()}),(0,b.P)(!j&&!ee&&z,L,Q),(0,f.m)(z,A,V);let[et,en]=(0,k.fw)(),er=(0,r.useMemo)(()=>[{dialogState:D,close:V,setTitleId:K,unmount:_},N],[D,N,V,K,_]),eo=(0,r.useMemo)(()=>({open:0===D}),[D]),ei={ref:M,id:i,role:g,tabIndex:-1,"aria-modal":j?void 0:0===D||void 0,"aria-labelledby":N.titleId,"aria-describedby":et,unmount:_},ea=!function(){var e;let[t]=(0,r.useState)(()=>"undefined"!=typeof window&&"function"==typeof window.matchMedia?window.matchMedia("(pointer: coarse)"):null),[n,o]=(0,r.useState)(null!=(e=null==t?void 0:t.matches)&&e);return(0,s.e)(()=>{if(t)return t.addEventListener("change",e),()=>t.removeEventListener("change",e);function e(e){o(e.matches)}},[t]),n}(),eu=H.None;z&&!j&&(eu|=H.RestoreFocus,eu|=H.TabLock,S&&(eu|=H.AutoFocus),ea&&(eu|=H.InitialFocus));let el=(0,I.L6)();return r.createElement(P.uu,null,r.createElement(x.O,{force:!0},r.createElement(q.h_,null,r.createElement(G.Provider,{value:er},r.createElement(q.wA,{target:A},r.createElement(x.O,{force:!1},r.createElement(en,{slot:eo},r.createElement(W,null,r.createElement(B,{initialFocus:v,initialFocusFallback:A,containers:Q,features:eu},r.createElement(O,{value:V},el({ourProps:ei,theirProps:C,slot:eo,defaultTag:Y,features:Z,visible:0===D,name:"Dialog"})))))))))))}),Y="div",Z=I.VN.RenderStrategy|I.VN.Static,X=Object.assign((0,I.yV)(function(e,t){let{transition:n=!1,open:o,...i}=e,a=(0,P.oJ)(),u=e.hasOwnProperty("open")||null!==a,l=e.hasOwnProperty("onClose");if(!u&&!l)throw Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!u)throw Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!l)throw Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(!a&&"boolean"!=typeof e.open)throw Error("You provided an `open` prop to the `Dialog`, but the value is not a boolean. Received: ".concat(e.open));if("function"!=typeof e.onClose)throw Error("You provided an `onClose` prop to the `Dialog`, but the value is not a function. Received: ".concat(e.onClose));return(void 0!==o||n)&&!i.static?r.createElement(g,null,r.createElement(K.u,{show:o,transition:n,unmount:i.unmount},r.createElement(Q,{ref:t,...i}))):r.createElement(g,null,r.createElement(Q,{ref:t,open:o,...i}))}),{Panel:(0,I.yV)(function(e,t){let n=(0,r.useId)(),{id:o="headlessui-dialog-panel-".concat(n),transition:i=!1,...a}=e,[{dialogState:u,unmount:c},s]=J("Dialog.Panel"),f=(0,E.T)(t,s.panelRef),d=(0,r.useMemo)(()=>({open:0===u}),[u]),p=(0,l.z)(e=>{e.stopPropagation()}),m=i?K.x:r.Fragment,h=(0,I.L6)();return r.createElement(m,{...i?{unmount:c}:{}},h({ourProps:{ref:f,id:o,onClick:p},theirProps:a,slot:d,defaultTag:"div",name:"Dialog.Panel"}))}),Title:((0,I.yV)(function(e,t){let{transition:n=!1,...o}=e,[{dialogState:i,unmount:a}]=J("Dialog.Backdrop"),u=(0,r.useMemo)(()=>({open:0===i}),[i]),l=n?K.x:r.Fragment,c=(0,I.L6)();return r.createElement(l,{...n?{unmount:a}:{}},c({ourProps:{ref:t,"aria-hidden":!0},theirProps:o,slot:u,defaultTag:"div",name:"Dialog.Backdrop"}))}),(0,I.yV)(function(e,t){let n=(0,r.useId)(),{id:o="headlessui-dialog-title-".concat(n),...i}=e,[{dialogState:a,setTitleId:u}]=J("Dialog.Title"),l=(0,E.T)(t);(0,r.useEffect)(()=>(u(o),()=>u(null)),[o,u]);let c=(0,r.useMemo)(()=>({open:0===a}),[a]);return(0,I.L6)()({ourProps:{ref:l,id:o},theirProps:i,slot:c,defaultTag:"h2",name:"Dialog.Title"})})),Description:k.dk})},3403:(e,t,n)=>{"use strict";n.d(t,{R:()=>r});var r=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(r||{})},5456:(e,t,n)=>{"use strict";n.d(t,{__:()=>m,bE:()=>p,t0:()=>f,wp:()=>d});var r=n(2265),o=n(371),i=n(4941),a=n(8615),u=n(3360),l=n(2343),c=n(9026);let s=(0,r.createContext)(null);function f(){let e=(0,r.useContext)(s);if(null===e){let e=Error("You used a