From b6c4c881b38c4415a237b8eae2e7fa2b22a738bf Mon Sep 17 00:00:00 2001 From: guzhongren Date: Thu, 27 Jun 2024 03:05:09 +0000 Subject: [PATCH] deploy: a6a316ff4e38d93a53d8799b8a072d541cc524ab --- 404.html | 6 +- ...arch.E1RdsI6d.js => DocSearch.CDM12wWa.js} | 20 +- ...Dtk2uU1l.js => LanguageSelect.Ba_-wtzk.js} | 2 +- ....BVOloHYB.js => SidebarToggle.Ct2-Etuj.js} | 2 +- ...O.js => SidebarToggleTabGroup.NjAxzBoD.js} | 2 +- ...JAVBOO9.js => TableOfContents.a6sp75a1.js} | 2 +- _astro/Tabs.BDXNrmPh.js | 1 - _astro/Tabs.DhHLcrHQ.js | 1 + ...uxILn.js => ThemeToggleButton.CwYw6F4F.js} | 2 +- _astro/client.CYkdvik1.js | 2 + _astro/client.D0wpCfuT.js | 7 - ...e.Bw6G1nmB.js => hooks.module.BJvh2z1e.js} | 2 +- _astro/jsxRuntime.module.Cif6hlES.js | 1 - _astro/jsxRuntime.module.Dl9dozpx.js | 1 + _astro/preact.module.Cj4zUIh6.js | 1 - _astro/preact.module.DgCY89ob.js | 1 + _astro/signals.module.Uw5cylxH.js | 1 + _astro/signals.module.tc2-WFaC.js | 1 - en/arch/architecture/index.html | 52 +- en/biz/business-context/index.html | 56 +- .../useful-scripts-and-tools/index.html | 52 +- en/contribute/index.html | 52 +- en/designs/cycle-time-calculation/index.html | 52 +- en/designs/e2e-testing/index.html | 52 +- en/designs/emoji-flow/index.html | 52 +- en/designs/error-handle/index.html | 52 +- en/designs/export-csv/index.html | 52 +- en/designs/flow-diagrams/index.html | 52 +- en/designs/frontend-structure/index.html | 52 +- .../optimize-generate-report/index.html | 52 +- .../origin-cycle-time-calculation/index.html | 52 +- .../refinement-on-generate-report/index.html | 52 +- en/designs/sequence-diagrams/index.html | 52 +- .../support-multiple-columns/index.html | 52 +- .../index.html | 52 +- en/getting-started/index.html | 1818 ++--------------- .../guideline-and-best-practices/index.html | 52 +- en/guides/start-e2e-test-in-local/index.html | 52 +- .../solution-of-buildkite-issue/index.html | 52 +- en/onboarding/conventions/index.html | 52 +- en/onboarding/glossary/index.html | 52 +- en/onboarding/onboarding-flow/index.html | 52 +- en/onboarding/way-of-working/index.html | 52 +- .../index.html | 52 +- .../index.html | 52 +- .../index.html | 52 +- .../index.html | 56 +- .../index.html | 52 +- .../index.html | 52 +- .../index.html | 52 +- .../index.html | 52 +- .../index.html | 52 +- .../index.html | 52 +- .../tech-spikes-react-hook-form/index.html | 52 +- .../tech-spikes-sharing-report/index.html | 1015 +++++++++ .../index.html | 52 +- .../index.html | 52 +- .../index.html | 52 +- .../index.html | 52 +- en/spikes/tech-timezone-problem/index.html | 52 +- en/teams/responsibilities-tl/index.html | 52 +- en/teams/team-activity-calendar/index.html | 52 +- en/teams/team-infos/index.html | 52 +- en/tests/test-strategies/index.html | 52 +- .../en/spikes/tech-spikes-sharing-report.png | Bin 0 -> 45084 bytes spikes/tech-spikes-sharing-report/index.html | 2 + 66 files changed, 2457 insertions(+), 2729 deletions(-) rename _astro/{DocSearch.E1RdsI6d.js => DocSearch.CDM12wWa.js} (72%) rename _astro/{LanguageSelect.Dtk2uU1l.js => LanguageSelect.Ba_-wtzk.js} (95%) rename _astro/{SidebarToggle.BVOloHYB.js => SidebarToggle.Ct2-Etuj.js} (88%) rename _astro/{SidebarToggleTabGroup.Rxjs2sdO.js => SidebarToggleTabGroup.NjAxzBoD.js} (67%) rename _astro/{TableOfContents.DJAVBOO9.js => TableOfContents.a6sp75a1.js} (83%) delete mode 100644 _astro/Tabs.BDXNrmPh.js create mode 100644 _astro/Tabs.DhHLcrHQ.js rename _astro/{ThemeToggleButton.CfOuxILn.js => ThemeToggleButton.CwYw6F4F.js} (93%) create mode 100644 _astro/client.CYkdvik1.js delete mode 100644 _astro/client.D0wpCfuT.js rename _astro/{hooks.module.Bw6G1nmB.js => hooks.module.BJvh2z1e.js} (98%) delete mode 100644 _astro/jsxRuntime.module.Cif6hlES.js create mode 100644 _astro/jsxRuntime.module.Dl9dozpx.js delete mode 100644 _astro/preact.module.Cj4zUIh6.js create mode 100644 _astro/preact.module.DgCY89ob.js create mode 100644 _astro/signals.module.Uw5cylxH.js delete mode 100644 _astro/signals.module.tc2-WFaC.js create mode 100644 en/spikes/tech-spikes-sharing-report/index.html create mode 100644 open-graph/en/spikes/tech-spikes-sharing-report.png create mode 100644 spikes/tech-spikes-sharing-report/index.html diff --git a/404.html b/404.html index f07ee74b40..6b5c1a09bf 100644 --- a/404.html +++ b/404.html @@ -125,7 +125,7 @@ -
+
- - + +
diff --git a/_astro/DocSearch.E1RdsI6d.js b/_astro/DocSearch.CDM12wWa.js similarity index 72% rename from _astro/DocSearch.E1RdsI6d.js rename to _astro/DocSearch.CDM12wWa.js index df03c97bf6..975e651878 100644 --- a/_astro/DocSearch.E1RdsI6d.js +++ b/_astro/DocSearch.CDM12wWa.js @@ -1,13 +1,13 @@ -import{b as ne,l as $,y as H,g as ye,$ as K,q as ze,F as bn,_ as Sn,B as On,E as _n}from"./preact.module.Cj4zUIh6.js";import{p as Qe,g as In,y as Pn,_ as wt,A as Et,F as Rr,T as wn,q as En,x as Ke,P as jn,V as $n}from"./hooks.module.Bw6G1nmB.js";import{u as L}from"./jsxRuntime.module.Cif6hlES.js";function Nr(e,t){for(var r in t)e[r]=t[r];return e}function mt(e,t){for(var r in e)if(r!=="__source"&&!(r in t))return!0;for(var n in t)if(n!=="__source"&&e[n]!==t[n])return!0;return!1}function pt(e,t){this.props=e,this.context=t}function An(e,t){function r(o){var a=this.props.ref,i=a==o.ref;return!i&&a&&(a.call?a(null):a.current=null),t?!t(this.props,o)||!i:mt(this.props,o)}function n(o){return this.shouldComponentUpdate=r,H(e,o)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}(pt.prototype=new ne).isPureReactComponent=!0,pt.prototype.shouldComponentUpdate=function(e,t){return mt(this.props,e)||mt(this.state,t)};var qt=$.__b;$.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),qt&&qt(e)};var Cn=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Dn(e){function t(r){var n=Nr({},r);return delete n.ref,e(n,r.ref||null)}return t.$$typeof=Cn,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Bt=function(e,t){return e==null?null:K(K(e).map(t))},Tn={map:Bt,forEach:Bt,count:function(e){return e?K(e).length:0},only:function(e){var t=K(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:K},xn=$.__e;$.__e=function(e,t,r,n){if(e.then){for(var o,a=t;a=a.__;)if((o=a.__c)&&o.__c)return t.__e==null&&(t.__e=r.__e,t.__k=r.__k),o.__c(e,t)}xn(e,t,r,n)};var Ut=$.unmount;function Lr(e,t,r){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),e.__c.__H=null),(e=Nr({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return Lr(n,t,r)})),e}function kr(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return kr(n,t,r)}),e.__c&&e.__c.__P===t&&(e.__e&&r.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=r)),e}function Ve(){this.__u=0,this.t=null,this.__b=null}function Mr(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Rn(e){var t,r,n;function o(a){if(t||(t=e()).then(function(i){r=i.default||i},function(i){n=i}),n)throw n;if(!r)throw t;return H(r,a)}return o.displayName="Lazy",o.__f=!0,o}function de(){this.u=null,this.o=null}$.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Ut&&Ut(e)},(Ve.prototype=new ne).__c=function(e,t){var r=t.__c,n=this;n.t==null&&(n.t=[]),n.t.push(r);var o=Mr(n.__v),a=!1,i=function(){a||(a=!0,r.__R=null,o?o(l):l())};r.__R=i;var l=function(){if(!--n.__u){if(n.state.__a){var u=n.state.__a;n.__v.__k[0]=kr(u,u.__c.__P,u.__c.__O)}var s;for(n.setState({__a:n.__b=null});s=n.t.pop();)s.forceUpdate()}};n.__u++||32&t.__u||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(i,i)},Ve.prototype.componentWillUnmount=function(){this.t=[]},Ve.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=Lr(this.__b,r,n.__O=n.__P)}this.__b=null}var o=t.__a&&H(ye,null,e.fallback);return o&&(o.__u&=-33),[H(ye,null,t.__a?null:e.children),o]};var Kt=function(e,t,r){if(++r[1]===r[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(r=e.u;r;){for(;r.length>3;)r.pop()();if(r[1]>>1,1),t.i.removeChild(n)}}),ze(H(Nn,{context:t.context},e.__v),t.l)}function Hr(e,t){var r=H(Ln,{__v:e,i:t});return r.containerInfo=t,r}(de.prototype=new ne).__a=function(e){var t=this,r=Mr(t.__v),n=t.o.get(e);return n[0]++,function(o){var a=function(){t.props.revealOrder?(n.push(o),Kt(t,e,n)):o()};r?r(a):a()}},de.prototype.render=function(e){this.u=null,this.o=new Map;var t=K(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var r=t.length;r--;)this.o.set(t[r],this.u=[1,0,this.u]);return e.children},de.prototype.componentDidUpdate=de.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,r){Kt(e,r,t)})};var Fr=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,kn=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Mn=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Hn=/[A-Z0-9]/g,Fn=typeof document<"u",qn=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Bn(e,t,r){return t.__k==null&&(t.textContent=""),ze(e,t),typeof r=="function"&&r(),e?e.__c:null}function Un(e,t,r){return On(e,t),typeof r=="function"&&r(),e?e.__c:null}ne.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(ne.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Vt=$.event;function Kn(){}function Vn(){return this.cancelBubble}function Wn(){return this.defaultPrevented}$.event=function(e){return Vt&&(e=Vt(e)),e.persist=Kn,e.isPropagationStopped=Vn,e.isDefaultPrevented=Wn,e.nativeEvent=e};var jt,zn={enumerable:!1,configurable:!0,get:function(){return this.class}},Wt=$.vnode;$.vnode=function(e){typeof e.type=="string"&&function(t){var r=t.props,n=t.type,o={};for(var a in r){var i=r[a];if(!(a==="value"&&"defaultValue"in r&&i==null||Fn&&a==="children"&&n==="noscript"||a==="class"||a==="className")){var l=a.toLowerCase();a==="defaultValue"&&"value"in r&&r.value==null?a="value":a==="download"&&i===!0?i="":l==="translate"&&i==="no"?i=!1:l==="ondoubleclick"?a="ondblclick":l!=="onchange"||n!=="input"&&n!=="textarea"||qn(r.type)?l==="onfocus"?a="onfocusin":l==="onblur"?a="onfocusout":Mn.test(a)?a=l:n.indexOf("-")===-1&&kn.test(a)?a=a.replace(Hn,"-$&").toLowerCase():i===null&&(i=void 0):l=a="oninput",l==="oninput"&&o[a=l]&&(a="oninputCapture"),o[a]=i}}n=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=K(r.children).forEach(function(u){u.props.selected=o.value.indexOf(u.props.value)!=-1})),n=="select"&&o.defaultValue!=null&&(o.value=K(r.children).forEach(function(u){u.props.selected=o.multiple?o.defaultValue.indexOf(u.props.value)!=-1:o.defaultValue==u.props.value})),r.class&&!r.className?(o.class=r.class,Object.defineProperty(o,"className",zn)):(r.className&&!r.class||r.class&&r.className)&&(o.class=o.className=r.className),t.props=o}(e),e.$$typeof=Fr,Wt&&Wt(e)};var zt=$.__r;$.__r=function(e){zt&&zt(e),jt=e.__c};var Qt=$.diffed;$.diffed=function(e){Qt&&Qt(e);var t=e.props,r=e.__e;r!=null&&e.type==="textarea"&&"value"in t&&t.value!==r.value&&(r.value=t.value==null?"":t.value),jt=null};var Qn={ReactCurrentDispatcher:{current:{readContext:function(e){return jt.__n[e.__c].props.value}}}};function Jn(e){return H.bind(null,e)}function tt(e){return!!e&&e.$$typeof===Fr}function Zn(e){return tt(e)&&e.type===ye}function Gn(e){return tt(e)?_n.apply(null,arguments):e}function Yn(e){return!!e.__k&&(ze(null,e),!0)}function Xn(e){return e&&(e.base||e.nodeType===1&&e)||null}var eo=function(e,t){return e(t)},to=function(e,t){return e(t)},ro=ye;function qr(e){e()}function no(e){return e}function oo(){return[!1,qr]}var ao=Et,io=tt;function co(e,t){var r=t(),n=Qe({h:{__:r,v:t}}),o=n[0].h,a=n[1];return Et(function(){o.__=r,o.v=t,lt(o)&&a({h:o})},[e,r,t]),wt(function(){return lt(o)&&a({h:o}),e(function(){lt(o)&&a({h:o})})},[e]),r}function lt(e){var t,r,n=e.v,o=e.__;try{var a=n();return!((t=o)===(r=a)&&(t!==0||1/t==1/r)||t!=t&&r!=r)}catch{return!0}}var c={useState:Qe,useId:In,useReducer:Pn,useEffect:wt,useLayoutEffect:Et,useInsertionEffect:ao,useTransition:oo,useDeferredValue:no,useSyncExternalStore:co,startTransition:qr,useRef:Rr,useImperativeHandle:wn,useMemo:En,useCallback:Ke,useContext:jn,useDebugValue:$n,version:"17.0.2",Children:Tn,render:Bn,hydrate:Un,unmountComponentAtNode:Yn,createPortal:Hr,createElement:H,createContext:bn,createFactory:Jn,cloneElement:Gn,createRef:Sn,Fragment:ye,isValidElement:tt,isElement:io,isFragment:Zn,findDOMNode:Xn,Component:ne,PureComponent:pt,memo:An,forwardRef:Dn,flushSync:to,unstable_batchedUpdates:eo,StrictMode:ro,Suspense:Ve,SuspenseList:de,lazy:Rn,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Qn};function lo(){return c.createElement("svg",{width:"20",height:"20",className:"DocSearch-Search-Icon",viewBox:"0 0 20 20","aria-hidden":"true"},c.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"}))}function uo(e){return{current:e}}function Br(e,t){var r=void 0;return function(){for(var n=arguments.length,o=new Array(n),a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r=3,i=n===2&&o>=4,l=n===1&&o>=10;return a||i||l}var _o=["items"],Io=["items"];function be(e){"@babel/helpers - typeof";return be=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},be(e)}function Le(e){return jo(e)||Eo(e)||wo(e)||Po()}function Po(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wo(e,t){if(e){if(typeof e=="string")return vt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return vt(e,t)}}function Eo(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function jo(e){if(Array.isArray(e))return vt(e)}function vt(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function $o(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a=0)&&(r[o]=e[o]);return r}function Yt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function oe(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:20,r=[],n=0;n0&&r("clickedObjectIDsAfterSearch",ke(a),a[0].items)},clickedObjectIDs:function(){for(var o=arguments.length,a=new Array(o),i=0;i0&&r("clickedObjectIDs",ke(a),a[0].items)},clickedFilters:function(){for(var o=arguments.length,a=new Array(o),i=0;i0&&e.apply(void 0,["clickedFilters"].concat(a))},convertedObjectIDsAfterSearch:function(){for(var o=arguments.length,a=new Array(o),i=0;i0&&r("convertedObjectIDsAfterSearch",ke(a),a[0].items)},convertedObjectIDs:function(){for(var o=arguments.length,a=new Array(o),i=0;i0&&r("convertedObjectIDs",ke(a),a[0].items)},convertedFilters:function(){for(var o=arguments.length,a=new Array(o),i=0;i0&&e.apply(void 0,["convertedFilters"].concat(a))},viewedObjectIDs:function(){for(var o=arguments.length,a=new Array(o),i=0;i0&&a.reduce(function(l,u){var s=u.items,p=Kr(u,Io);return[].concat(Le(l),Le(To(oe(oe({},p),{},{objectIDs:s?.map(function(f){var m=f.objectID;return m})||p.objectIDs})).map(function(f){return{items:s,payload:f}})))},[]).forEach(function(l){var u=l.items,s=l.payload;return r("viewedObjectIDs",[s],u)})},viewedFilters:function(){for(var o=arguments.length,a=new Array(o),i=0;i0&&e.apply(void 0,["viewedFilters"].concat(a))}}}function Ro(e){var t=e.items,r=t.reduce(function(n,o){var a;return n[o.__autocomplete_indexName]=((a=n[o.__autocomplete_indexName])!==null&&a!==void 0?a:[]).concat(o),n},{});return Object.keys(r).map(function(n){var o=r[n];return{index:n,items:o,algoliaSource:["autocomplete"]}})}function ut(e){return e.objectID&&e.__autocomplete_indexName&&e.__autocomplete_queryID}function Se(e){"@babel/helpers - typeof";return Se=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Se(e)}function te(e){return Mo(e)||ko(e)||Lo(e)||No()}function No(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Lo(e,t){if(e){if(typeof e=="string")return ht(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ht(e,t)}}function ko(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Mo(e){if(Array.isArray(e))return ht(e)}function ht(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&Ko({onItemsChange:n,items:m,insights:l,state:f}))}},0);return{name:"aa.algoliaInsightsPlugin",subscribe:function(f){var m=f.setContext,b=f.onSelect,h=f.onActive;i("addAlgoliaAgent","insights-plugin"),m({algoliaInsightsPlugin:{__algoliaSearchParameters:{clickAnalytics:!0},insights:l}}),b(function(v){var y=v.item,g=v.state,d=v.event;ut(y)&&o({state:g,event:d,insights:l,item:y,insightsEvents:[U({eventName:"Item Selected"},Zt({item:y,items:u.current}))]})}),h(function(v){var y=v.item,g=v.state,d=v.event;ut(y)&&a({state:g,event:d,insights:l,item:y,insightsEvents:[U({eventName:"Item Active"},Zt({item:y,items:u.current}))]})})},onStateChange:function(f){var m=f.state;s({state:m})},__autocomplete_pluginOptions:e}}function Wo(e){return U({onItemsChange:function(r){var n=r.insights,o=r.insightsEvents;n.viewedObjectIDs.apply(n,te(o.map(function(a){return U(U({},a),{},{algoliaSource:[].concat(te(a.algoliaSource||[]),["autocomplete-internal"])})})))},onSelect:function(r){var n=r.insights,o=r.insightsEvents;n.clickedObjectIDsAfterSearch.apply(n,te(o.map(function(a){return U(U({},a),{},{algoliaSource:[].concat(te(a.algoliaSource||[]),["autocomplete-internal"])})})))},onActive:Je},e)}function zo(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=Uo,r.onerror=function(){console.error(t)},document.body.appendChild(r)}catch{console.error(t)}}function We(e,t){var r=t;return{then:function(o,a){return We(e.then(Me(o,r,e),Me(a,r,e)),r)},catch:function(o){return We(e.catch(Me(o,r,e)),r)},finally:function(o){return o&&r.onCancelList.push(o),We(e.finally(Me(o&&function(){return r.onCancelList=[],o()},r,e)),r)},cancel:function(){r.isCanceled=!0;var o=r.onCancelList;r.onCancelList=[],o.forEach(function(a){a()})},isCanceled:function(){return r.isCanceled===!0}}}function er(e){return We(e,{isCanceled:!1,onCancelList:[]})}function Me(e,t,r){return e?function(o){return t.isCanceled?o:e(o)}:r}function Qo(){var e=[];return{add:function(r){return e.push(r),r.finally(function(){e=e.filter(function(n){return n!==r})})},cancelAll:function(){e.forEach(function(r){return r.cancel()})},isEmpty:function(){return e.length===0}}}function Jo(){var e=-1,t=-1,r=void 0;return function(o){e++;var a=e;return Promise.resolve(o).then(function(i){return r&&a=r?n===null?null:0:o}function rr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function nr(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r0},reshape:function(i){var l=i.sources;return l}},e),{},{id:(r=e.id)!==null&&r!==void 0?r:fo(),plugins:o,initialState:Y({activeItemId:null,query:"",completion:null,collections:[],isOpen:!1,status:"idle",context:{}},e.initialState),onStateChange:function(i){var l;(l=e.onStateChange)===null||l===void 0||l.call(e,i),o.forEach(function(u){var s;return(s=u.onStateChange)===null||s===void 0?void 0:s.call(u,i)})},onSubmit:function(i){var l;(l=e.onSubmit)===null||l===void 0||l.call(e,i),o.forEach(function(u){var s;return(s=u.onSubmit)===null||s===void 0?void 0:s.call(u,i)})},onReset:function(i){var l;(l=e.onReset)===null||l===void 0||l.call(e,i),o.forEach(function(u){var s;return(s=u.onReset)===null||s===void 0?void 0:s.call(u,i)})},getSources:function(i){return Promise.all([].concat(va(o.map(function(l){return l.getSources})),[e.getSources]).filter(Boolean).map(function(l){return Xo(l,i)})).then(function(l){return ge(l)}).then(function(l){return l.map(function(u){return Y(Y({},u),{},{onSelect:function(p){u.onSelect(p),t.forEach(function(f){var m;return(m=f.onSelect)===null||m===void 0?void 0:m.call(f,p)})},onActive:function(p){u.onActive(p),t.forEach(function(f){var m;return(m=f.onActive)===null||m===void 0?void 0:m.call(f,p)})},onResolve:function(p){u.onResolve(p),t.forEach(function(f){var m;return(m=f.onResolve)===null||m===void 0?void 0:m.call(f,p)})}})})})},navigator:Y({navigate:function(i){var l=i.itemUrl;n.location.assign(l)},navigateNewTab:function(i){var l=i.itemUrl,u=n.open(l,"_blank","noopener");u?.focus()},navigateNewWindow:function(i){var l=i.itemUrl;n.open(l,"_blank","noopener")}},e.navigator)})}function we(e){"@babel/helpers - typeof";return we=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},we(e)}function cr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Fe(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r3;)r.pop()();if(r[1]>>1,1),t.i.removeChild(n)}}),Qe(H(Mn,{context:t.context},e.__v),t.l)}function Kr(e,t){var r=H(Hn,{__v:e,i:t});return r.containerInfo=t,r}(de.prototype=new ne).__a=function(e){var t=this,r=Ur(t.__v),n=t.o.get(e);return n[0]++,function(o){var a=function(){t.props.revealOrder?(n.push(o),Kt(t,e,n)):o()};r?r(a):a()}},de.prototype.render=function(e){this.u=null,this.o=new Map;var t=K(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var r=t.length;r--;)this.o.set(t[r],this.u=[1,0,this.u]);return e.children},de.prototype.componentDidUpdate=de.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,r){Kt(e,r,t)})};var Vr=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Fn=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,qn=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Bn=/[A-Z0-9]/g,Un=typeof document<"u",Kn=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Vn(e,t,r){return t.__k==null&&(t.textContent=""),Qe(e,t),typeof r=="function"&&r(),e?e.__c:null}function Wn(e,t,r){return Cn(e,t),typeof r=="function"&&r(),e?e.__c:null}ne.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(ne.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Vt=$.event;function zn(){}function Qn(){return this.cancelBubble}function Jn(){return this.defaultPrevented}$.event=function(e){return Vt&&(e=Vt(e)),e.persist=zn,e.isPropagationStopped=Qn,e.isDefaultPrevented=Jn,e.nativeEvent=e};var jt,Zn={enumerable:!1,configurable:!0,get:function(){return this.class}},Wt=$.vnode;$.vnode=function(e){typeof e.type=="string"&&function(t){var r=t.props,n=t.type,o={};for(var a in r){var i=r[a];if(!(a==="value"&&"defaultValue"in r&&i==null||Un&&a==="children"&&n==="noscript"||a==="class"||a==="className")){var l=a.toLowerCase();a==="defaultValue"&&"value"in r&&r.value==null?a="value":a==="download"&&i===!0?i="":l==="translate"&&i==="no"?i=!1:l==="ondoubleclick"?a="ondblclick":l!=="onchange"||n!=="input"&&n!=="textarea"||Kn(r.type)?l==="onfocus"?a="onfocusin":l==="onblur"?a="onfocusout":qn.test(a)?a=l:n.indexOf("-")===-1&&Fn.test(a)?a=a.replace(Bn,"-$&").toLowerCase():i===null&&(i=void 0):l=a="oninput",l==="oninput"&&o[a=l]&&(a="oninputCapture"),o[a]=i}}n=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=K(r.children).forEach(function(u){u.props.selected=o.value.indexOf(u.props.value)!=-1})),n=="select"&&o.defaultValue!=null&&(o.value=K(r.children).forEach(function(u){u.props.selected=o.multiple?o.defaultValue.indexOf(u.props.value)!=-1:o.defaultValue==u.props.value})),r.class&&!r.className?(o.class=r.class,Object.defineProperty(o,"className",Zn)):(r.className&&!r.class||r.class&&r.className)&&(o.class=o.className=r.className),t.props=o}(e),e.$$typeof=Vr,Wt&&Wt(e)};var zt=$.__r;$.__r=function(e){zt&&zt(e),jt=e.__c};var Qt=$.diffed;$.diffed=function(e){Qt&&Qt(e);var t=e.props,r=e.__e;r!=null&&e.type==="textarea"&&"value"in t&&t.value!==r.value&&(r.value=t.value==null?"":t.value),jt=null};var Gn={ReactCurrentDispatcher:{current:{readContext:function(e){return jt.__n[e.__c].props.value},useCallback:he,useContext:Mr,useDebugValue:Hr,useDeferredValue:zr,useEffect:tt,useId:Rr,useImperativeHandle:Lr,useInsertionEffect:Jr,useLayoutEffect:rt,useMemo:kr,useReducer:Nr,useRef:Et,useState:be,useSyncExternalStore:Zr,useTransition:Qr}}};function Yn(e){return H.bind(null,e)}function nt(e){return!!e&&e.$$typeof===Vr}function Xn(e){return nt(e)&&e.type===ge}function eo(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function to(e){return nt(e)?Dn.apply(null,arguments):e}function ro(e){return!!e.__k&&(Qe(null,e),!0)}function no(e){return e&&(e.base||e.nodeType===1&&e)||null}var oo=function(e,t){return e(t)},ao=function(e,t){return e(t)},io=ge;function Wr(e){e()}function zr(e){return e}function Qr(){return[!1,Wr]}var Jr=rt,co=nt;function Zr(e,t){var r=t(),n=be({h:{__:r,v:t}}),o=n[0].h,a=n[1];return rt(function(){o.__=r,o.v=t,st(o)&&a({h:o})},[e,r,t]),tt(function(){return st(o)&&a({h:o}),e(function(){st(o)&&a({h:o})})},[e]),r}function st(e){var t,r,n=e.v,o=e.__;try{var a=n();return!((t=o)===(r=a)&&(t!==0||1/t==1/r)||t!=t&&r!=r)}catch{return!0}}var c={useState:be,useId:Rr,useReducer:Nr,useEffect:tt,useLayoutEffect:rt,useInsertionEffect:Jr,useTransition:Qr,useDeferredValue:zr,useSyncExternalStore:Zr,startTransition:Wr,useRef:Et,useImperativeHandle:Lr,useMemo:kr,useCallback:he,useContext:Mr,useDebugValue:Hr,version:"17.0.2",Children:Nn,render:Vn,hydrate:Wn,unmountComponentAtNode:ro,createPortal:Kr,createElement:H,createContext:$n,createFactory:Yn,cloneElement:to,createRef:An,Fragment:ge,isValidElement:nt,isElement:co,isFragment:Xn,isMemo:eo,findDOMNode:no,Component:ne,PureComponent:vt,memo:Tn,forwardRef:Rn,flushSync:ao,unstable_batchedUpdates:oo,StrictMode:io,Suspense:We,SuspenseList:de,lazy:kn,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Gn};function lo(){return c.createElement("svg",{width:"20",height:"20",className:"DocSearch-Search-Icon",viewBox:"0 0 20 20","aria-hidden":"true"},c.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"}))}function uo(e){return{current:e}}function Gr(e,t){var r=void 0;return function(){for(var n=arguments.length,o=new Array(n),a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r=3,i=n===2&&o>=4,l=n===1&&o>=10;return a||i||l}var _o=["items"],Io=["items"];function Oe(e){"@babel/helpers - typeof";return Oe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Oe(e)}function Me(e){return jo(e)||Eo(e)||wo(e)||Po()}function Po(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wo(e,t){if(e){if(typeof e=="string")return yt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return yt(e,t)}}function Eo(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function jo(e){if(Array.isArray(e))return yt(e)}function yt(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function $o(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a=0)&&(r[o]=e[o]);return r}function Yt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function oe(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:20,r=[],n=0;n0&&r("clickedObjectIDsAfterSearch",He(a),a[0].items)},clickedObjectIDs:function(){for(var o=arguments.length,a=new Array(o),i=0;i0&&r("clickedObjectIDs",He(a),a[0].items)},clickedFilters:function(){for(var o=arguments.length,a=new Array(o),i=0;i0&&e.apply(void 0,["clickedFilters"].concat(a))},convertedObjectIDsAfterSearch:function(){for(var o=arguments.length,a=new Array(o),i=0;i0&&r("convertedObjectIDsAfterSearch",He(a),a[0].items)},convertedObjectIDs:function(){for(var o=arguments.length,a=new Array(o),i=0;i0&&r("convertedObjectIDs",He(a),a[0].items)},convertedFilters:function(){for(var o=arguments.length,a=new Array(o),i=0;i0&&e.apply(void 0,["convertedFilters"].concat(a))},viewedObjectIDs:function(){for(var o=arguments.length,a=new Array(o),i=0;i0&&a.reduce(function(l,u){var s=u.items,p=Xr(u,Io);return[].concat(Me(l),Me(To(oe(oe({},p),{},{objectIDs:s?.map(function(f){var m=f.objectID;return m})||p.objectIDs})).map(function(f){return{items:s,payload:f}})))},[]).forEach(function(l){var u=l.items,s=l.payload;return r("viewedObjectIDs",[s],u)})},viewedFilters:function(){for(var o=arguments.length,a=new Array(o),i=0;i0&&e.apply(void 0,["viewedFilters"].concat(a))}}}function Ro(e){var t=e.items,r=t.reduce(function(n,o){var a;return n[o.__autocomplete_indexName]=((a=n[o.__autocomplete_indexName])!==null&&a!==void 0?a:[]).concat(o),n},{});return Object.keys(r).map(function(n){var o=r[n];return{index:n,items:o,algoliaSource:["autocomplete"]}})}function ft(e){return e.objectID&&e.__autocomplete_indexName&&e.__autocomplete_queryID}function _e(e){"@babel/helpers - typeof";return _e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_e(e)}function te(e){return Mo(e)||ko(e)||Lo(e)||No()}function No(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Lo(e,t){if(e){if(typeof e=="string")return gt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return gt(e,t)}}function ko(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Mo(e){if(Array.isArray(e))return gt(e)}function gt(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&Ko({onItemsChange:n,items:m,insights:l,state:f}))}},0);return{name:"aa.algoliaInsightsPlugin",subscribe:function(f){var m=f.setContext,b=f.onSelect,h=f.onActive;i("addAlgoliaAgent","insights-plugin"),m({algoliaInsightsPlugin:{__algoliaSearchParameters:{clickAnalytics:!0},insights:l}}),b(function(v){var y=v.item,g=v.state,d=v.event;ft(y)&&o({state:g,event:d,insights:l,item:y,insightsEvents:[U({eventName:"Item Selected"},Zt({item:y,items:u.current}))]})}),h(function(v){var y=v.item,g=v.state,d=v.event;ft(y)&&a({state:g,event:d,insights:l,item:y,insightsEvents:[U({eventName:"Item Active"},Zt({item:y,items:u.current}))]})})},onStateChange:function(f){var m=f.state;s({state:m})},__autocomplete_pluginOptions:e}}function Wo(e){return U({onItemsChange:function(r){var n=r.insights,o=r.insightsEvents;n.viewedObjectIDs.apply(n,te(o.map(function(a){return U(U({},a),{},{algoliaSource:[].concat(te(a.algoliaSource||[]),["autocomplete-internal"])})})))},onSelect:function(r){var n=r.insights,o=r.insightsEvents;n.clickedObjectIDsAfterSearch.apply(n,te(o.map(function(a){return U(U({},a),{},{algoliaSource:[].concat(te(a.algoliaSource||[]),["autocomplete-internal"])})})))},onActive:Je},e)}function zo(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=Uo,r.onerror=function(){console.error(t)},document.body.appendChild(r)}catch{console.error(t)}}function ze(e,t){var r=t;return{then:function(o,a){return ze(e.then(Fe(o,r,e),Fe(a,r,e)),r)},catch:function(o){return ze(e.catch(Fe(o,r,e)),r)},finally:function(o){return o&&r.onCancelList.push(o),ze(e.finally(Fe(o&&function(){return r.onCancelList=[],o()},r,e)),r)},cancel:function(){r.isCanceled=!0;var o=r.onCancelList;r.onCancelList=[],o.forEach(function(a){a()})},isCanceled:function(){return r.isCanceled===!0}}}function er(e){return ze(e,{isCanceled:!1,onCancelList:[]})}function Fe(e,t,r){return e?function(o){return t.isCanceled?o:e(o)}:r}function Qo(){var e=[];return{add:function(r){return e.push(r),r.finally(function(){e=e.filter(function(n){return n!==r})})},cancelAll:function(){e.forEach(function(r){return r.cancel()})},isEmpty:function(){return e.length===0}}}function Jo(){var e=-1,t=-1,r=void 0;return function(o){e++;var a=e;return Promise.resolve(o).then(function(i){return r&&a=r?n===null?null:0:o}function rr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function nr(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r0},reshape:function(i){var l=i.sources;return l}},e),{},{id:(r=e.id)!==null&&r!==void 0?r:fo(),plugins:o,initialState:Y({activeItemId:null,query:"",completion:null,collections:[],isOpen:!1,status:"idle",context:{}},e.initialState),onStateChange:function(i){var l;(l=e.onStateChange)===null||l===void 0||l.call(e,i),o.forEach(function(u){var s;return(s=u.onStateChange)===null||s===void 0?void 0:s.call(u,i)})},onSubmit:function(i){var l;(l=e.onSubmit)===null||l===void 0||l.call(e,i),o.forEach(function(u){var s;return(s=u.onSubmit)===null||s===void 0?void 0:s.call(u,i)})},onReset:function(i){var l;(l=e.onReset)===null||l===void 0||l.call(e,i),o.forEach(function(u){var s;return(s=u.onReset)===null||s===void 0?void 0:s.call(u,i)})},getSources:function(i){return Promise.all([].concat(va(o.map(function(l){return l.getSources})),[e.getSources]).filter(Boolean).map(function(l){return Xo(l,i)})).then(function(l){return Se(l)}).then(function(l){return l.map(function(u){return Y(Y({},u),{},{onSelect:function(p){u.onSelect(p),t.forEach(function(f){var m;return(m=f.onSelect)===null||m===void 0?void 0:m.call(f,p)})},onActive:function(p){u.onActive(p),t.forEach(function(f){var m;return(m=f.onActive)===null||m===void 0?void 0:m.call(f,p)})},onResolve:function(p){u.onResolve(p),t.forEach(function(f){var m;return(m=f.onResolve)===null||m===void 0?void 0:m.call(f,p)})}})})})},navigator:Y({navigate:function(i){var l=i.itemUrl;n.location.assign(l)},navigateNewTab:function(i){var l=i.itemUrl,u=n.open(l,"_blank","noopener");u?.focus()},navigateNewWindow:function(i){var l=i.itemUrl;n.open(l,"_blank","noopener")}},e.navigator)})}function je(e){"@babel/helpers - typeof";return je=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},je(e)}function cr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Be(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Ua(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a=0)&&(r[o]=e[o]);return r}var pe=null,sr=Jo();function re(e){var t=e.event,r=e.nextState,n=r===void 0?{}:r,o=e.props,a=e.query,i=e.refresh,l=e.store,u=Ba(e,Ma);pe&&o.environment.clearTimeout(pe);var s=u.setCollections,p=u.setIsOpen,f=u.setQuery,m=u.setActiveItemId,b=u.setStatus;if(f(a),m(o.defaultActiveItemId),!a&&o.openOnFocus===!1){var h,v=l.getState().collections.map(function(d){return me(me({},d),{},{items:[]})});b("idle"),s(v),p((h=n.isOpen)!==null&&h!==void 0?h:o.shouldPanelOpen({state:l.getState()}));var y=er(sr(v).then(function(){return Promise.resolve()}));return l.pendingRequests.add(y)}b("loading"),pe=o.environment.setTimeout(function(){b("stalled")},o.stallThreshold);var g=er(sr(o.getSources(me({query:a,refresh:i,state:l.getState()},u)).then(function(d){return Promise.all(d.map(function(S){return Promise.resolve(S.getItems(me({query:a,refresh:i,state:l.getState()},u))).then(function(w){return Na(w,S.sourceId,l.getState())})})).then(La).then(function(S){return ka(S,d,l)}).then(function(S){return Ea({collections:S,props:o,state:l.getState()})})}))).then(function(d){var S;b("idle"),s(d);var w=o.shouldPanelOpen({state:l.getState()});p((S=n.isOpen)!==null&&S!==void 0?S:o.openOnFocus&&!a&&w||w);var _=ae(l.getState());if(l.getState().activeItemId!==null&&_){var I=_.item,A=_.itemInputValue,C=_.itemUrl,k=_.source;k.onActive(me({event:t,item:I,itemInputValue:A,itemUrl:C,refresh:i,source:k,state:l.getState()},u))}}).finally(function(){b("idle"),pe&&o.environment.clearTimeout(pe)});return l.pendingRequests.add(g)}function $e(e){"@babel/helpers - typeof";return $e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$e(e)}var Ka=["event","props","refresh","store"];function fr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function z(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Ja(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a=0)&&(r[o]=e[o]);return r}function Za(e){var t=e.event,r=e.props,n=e.refresh,o=e.store,a=Qa(e,Ka);if(t.key==="ArrowUp"||t.key==="ArrowDown"){var i=function(){var h=r.environment.document.getElementById("".concat(r.id,"-item-").concat(o.getState().activeItemId));h&&(h.scrollIntoViewIfNeeded?h.scrollIntoViewIfNeeded(!1):h.scrollIntoView(!1))},l=function(){var h=ae(o.getState());if(o.getState().activeItemId!==null&&h){var v=h.item,y=h.itemInputValue,g=h.itemUrl,d=h.source;d.onActive(z({event:t,item:v,itemInputValue:y,itemUrl:g,refresh:n,source:d,state:o.getState()},a))}};t.preventDefault(),o.getState().isOpen===!1&&(r.openOnFocus||o.getState().query)?re(z({event:t,props:r,query:o.getState().query,refresh:n,store:o},a)).then(function(){o.dispatch(t.key,{nextActiveItemId:r.defaultActiveItemId}),l(),setTimeout(i,0)}):(o.dispatch(t.key,{}),l(),i())}else if(t.key==="Escape")t.preventDefault(),o.dispatch(t.key,null),o.pendingRequests.cancelAll();else if(t.key==="Tab")o.dispatch("blur",null),o.pendingRequests.cancelAll();else if(t.key==="Enter"){if(o.getState().activeItemId===null||o.getState().collections.every(function(b){return b.items.length===0})){r.debug||o.pendingRequests.cancelAll();return}t.preventDefault();var u=ae(o.getState()),s=u.item,p=u.itemInputValue,f=u.itemUrl,m=u.source;if(t.metaKey||t.ctrlKey)f!==void 0&&(m.onSelect(z({event:t,item:s,itemInputValue:p,itemUrl:f,refresh:n,source:m,state:o.getState()},a)),r.navigator.navigateNewTab({itemUrl:f,item:s,state:o.getState()}));else if(t.shiftKey)f!==void 0&&(m.onSelect(z({event:t,item:s,itemInputValue:p,itemUrl:f,refresh:n,source:m,state:o.getState()},a)),r.navigator.navigateNewWindow({itemUrl:f,item:s,state:o.getState()}));else if(!t.altKey){if(f!==void 0){m.onSelect(z({event:t,item:s,itemInputValue:p,itemUrl:f,refresh:n,source:m,state:o.getState()},a)),r.navigator.navigate({itemUrl:f,item:s,state:o.getState()});return}re(z({event:t,nextState:{isOpen:!1},props:r,query:p,refresh:n,store:o},a)).then(function(){m.onSelect(z({event:t,item:s,itemInputValue:p,itemUrl:f,refresh:n,source:m,state:o.getState()},a))})}}}function Ae(e){"@babel/helpers - typeof";return Ae=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ae(e)}var Ga=["props","refresh","store"],Ya=["inputElement","formElement","panelElement"],Xa=["inputElement"],ei=["inputElement","maxLength"],ti=["sourceIndex"],ri=["sourceIndex"],ni=["item","source","sourceIndex"];function mr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function j(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function ci(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a=0)&&(r[o]=e[o]);return r}function li(e){var t=e.props,r=e.refresh,n=e.store,o=Q(e,Ga),a=function(v){var y=v.inputElement,g=v.formElement,d=v.panelElement,S=Q(v,Ya);function w(_){var I=n.getState().isOpen||!n.pendingRequests.isEmpty();if(!(!I||_.target===y)){var A=[g,d].some(function(C){return ra(C,_.target)});A===!1&&(n.dispatch("blur",null),t.debug||n.pendingRequests.cancelAll())}}return j({onTouchStart:w,onMouseDown:w,onTouchMove:function(I){n.getState().isOpen===!1||y!==t.environment.document.activeElement||I.target===y||y.blur()}},S)},i=function(v){return j({role:"combobox","aria-expanded":n.getState().isOpen,"aria-haspopup":"listbox","aria-owns":n.getState().isOpen?"".concat(t.id,"-list"):void 0,"aria-labelledby":"".concat(t.id,"-label")},v)},l=function(v){v.inputElement;var y=Q(v,Xa);return j({action:"",noValidate:!0,role:"search",onSubmit:function(d){var S;d.preventDefault(),t.onSubmit(j({event:d,refresh:r,state:n.getState()},o)),n.dispatch("submit",null),(S=v.inputElement)===null||S===void 0||S.blur()},onReset:function(d){var S;d.preventDefault(),t.onReset(j({event:d,refresh:r,state:n.getState()},o)),n.dispatch("reset",null),(S=v.inputElement)===null||S===void 0||S.focus()}},y)},u=function(v){var y;function g(D){(t.openOnFocus||n.getState().query)&&re(j({event:D,props:t,query:n.getState().completion||n.getState().query,refresh:r,store:n},o)),n.dispatch("focus",null)}var d=v||{};d.inputElement;var S=d.maxLength,w=S===void 0?512:S,_=Q(d,ei),I=ae(n.getState()),A=((y=t.environment.navigator)===null||y===void 0?void 0:y.userAgent)||"",C=oa(A),k=I!=null&&I.itemUrl&&!C?"go":"search";return j({"aria-autocomplete":"both","aria-activedescendant":n.getState().isOpen&&n.getState().activeItemId!==null?"".concat(t.id,"-item-").concat(n.getState().activeItemId):void 0,"aria-controls":n.getState().isOpen?"".concat(t.id,"-list"):void 0,"aria-labelledby":"".concat(t.id,"-label"),value:n.getState().completion||n.getState().query,id:"".concat(t.id,"-input"),autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",enterKeyHint:k,spellCheck:"false",autoFocus:t.autoFocus,placeholder:t.placeholder,maxLength:w,type:"search",onChange:function(F){re(j({event:F,props:t,query:F.currentTarget.value.slice(0,w),refresh:r,store:n},o))},onKeyDown:function(F){Za(j({event:F,props:t,refresh:r,store:n},o))},onFocus:g,onBlur:Je,onClick:function(F){v.inputElement===t.environment.document.activeElement&&!n.getState().isOpen&&g(F)}},_)},s=function(v,y){return typeof y<"u"?"".concat(v,"-").concat(y):v},p=function(v){var y=v||{},g=y.sourceIndex,d=Q(y,ti);return j({htmlFor:"".concat(s(t.id,g),"-input"),id:"".concat(s(t.id,g),"-label")},d)},f=function(v){var y=v||{},g=y.sourceIndex,d=Q(y,ri);return j({role:"listbox","aria-labelledby":"".concat(s(t.id,g),"-label"),id:"".concat(s(t.id,g),"-list")},d)},m=function(v){return j({onMouseDown:function(g){g.preventDefault()},onMouseLeave:function(){n.dispatch("mouseleave",null)}},v)},b=function(v){var y=v.item,g=v.source,d=v.sourceIndex,S=Q(v,ni);return j({id:"".concat(s(t.id,d),"-item-").concat(y.__autocomplete_id),role:"option","aria-selected":n.getState().activeItemId===y.__autocomplete_id,onMouseMove:function(_){if(y.__autocomplete_id!==n.getState().activeItemId){n.dispatch("mousemove",y.__autocomplete_id);var I=ae(n.getState());if(n.getState().activeItemId!==null&&I){var A=I.item,C=I.itemInputValue,k=I.itemUrl,D=I.source;D.onActive(j({event:_,item:A,itemInputValue:C,itemUrl:k,refresh:r,source:D,state:n.getState()},o))}}},onMouseDown:function(_){_.preventDefault()},onClick:function(_){var I=g.getItemInputValue({item:y,state:n.getState()}),A=g.getItemUrl({item:y,state:n.getState()}),C=A?Promise.resolve():re(j({event:_,nextState:{isOpen:!1},props:t,query:I,refresh:r,store:n},o));C.then(function(){g.onSelect(j({event:_,item:y,itemInputValue:I,itemUrl:A,refresh:r,source:g,state:n.getState()},o))})}},S)};return{getEnvironmentProps:a,getRootProps:i,getFormProps:l,getLabelProps:p,getInputProps:u,getPanelProps:m,getListProps:f,getItemProps:b}}function Ce(e){"@babel/helpers - typeof";return Ce=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ce(e)}function pr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function ui(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Bi(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a=0)&&(r[o]=e[o]);return r}function Ui(e){var t=e.translations,r=t===void 0?{}:t,n=qi(e,Ni),o=r.noResultsText,a=o===void 0?"No results for":o,i=r.suggestedQueryText,l=i===void 0?"Try searching for":i,u=r.reportMissingResultsText,s=u===void 0?"Believe this query should return results?":u,p=r.reportMissingResultsLinkText,f=p===void 0?"Let us know.":p,m=n.state.context.searchSuggestions;return c.createElement("div",{className:"DocSearch-NoResults"},c.createElement("div",{className:"DocSearch-Screen-Icon"},c.createElement(xi,null)),c.createElement("p",{className:"DocSearch-Title"},a,' "',c.createElement("strong",null,n.state.query),'"'),m&&m.length>0&&c.createElement("div",{className:"DocSearch-NoResults-Prefill-List"},c.createElement("p",{className:"DocSearch-Help"},l,":"),c.createElement("ul",null,m.slice(0,3).reduce(function(b,h){return[].concat(Li(b),[c.createElement("li",{key:h},c.createElement("button",{className:"DocSearch-Prefill",key:h,type:"button",onClick:function(){n.setQuery(h.toLowerCase()+" "),n.refresh(),n.inputRef.current.focus()}},h))])},[]))),n.getMissingResultsUrl&&c.createElement("p",{className:"DocSearch-Help"},"".concat(s," "),c.createElement("a",{href:n.getMissingResultsUrl({query:n.state.query}),target:"_blank",rel:"noopener noreferrer"},f)))}var Ki=["hit","attribute","tagName"];function gr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function br(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function zi(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a=0)&&(r[o]=e[o]);return r}function Sr(e,t){var r=t.split(".");return r.reduce(function(n,o){return n!=null&&n[o]?n[o]:null},e)}function ee(e){var t=e.hit,r=e.attribute,n=e.tagName,o=n===void 0?"span":n,a=Wi(e,Ki);return H(o,br(br({},a),{},{dangerouslySetInnerHTML:{__html:Sr(t,"_snippetResult.".concat(r,".value"))||Sr(t,r)}}))}function Or(e,t){return Gi(e)||Zi(e,t)||Ji(e,t)||Qi()}function Qi(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ji(e,t){if(e){if(typeof e=="string")return _r(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _r(e,t)}}function _r(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r|<\/mark>)/g,ec=RegExp(Zr.source);function Gr(e){var t,r,n=e;if(!n.__docsearch_parent&&!e._highlightResult)return e.hierarchy.lvl0;var o=(n.__docsearch_parent?(t=n.__docsearch_parent)===null||t===void 0||(t=t._highlightResult)===null||t===void 0||(t=t.hierarchy)===null||t===void 0?void 0:t.lvl0:(r=e._highlightResult)===null||r===void 0||(r=r.hierarchy)===null||r===void 0?void 0:r.lvl0)||{},a=o.value;return a&&ec.test(a)?a.replace(Zr,""):a}function _t(){return _t=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function oc(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a=0)&&(r[o]=e[o]);return r}function ac(e){var t=e.translations,r=t===void 0?{}:t,n=nc(e,rc),o=r.recentSearchesTitle,a=o===void 0?"Recent":o,i=r.noRecentSearchesText,l=i===void 0?"No recent searches":i,u=r.saveRecentSearchButtonTitle,s=u===void 0?"Save this search":u,p=r.removeRecentSearchButtonTitle,f=p===void 0?"Remove this search from history":p,m=r.favoriteSearchesTitle,b=m===void 0?"Favorite":m,h=r.removeFavoriteSearchButtonTitle,v=h===void 0?"Remove this search from favorites":h;return n.state.status==="idle"&&n.hasCollections===!1?n.disableUserPersonalization?null:c.createElement("div",{className:"DocSearch-StartScreen"},c.createElement("p",{className:"DocSearch-Help"},l)):n.hasCollections===!1?null:c.createElement("div",{className:"DocSearch-Dropdown-Container"},c.createElement(Ot,Ge({},n,{title:a,collection:n.state.collections[0],renderIcon:function(){return c.createElement("div",{className:"DocSearch-Hit-icon"},c.createElement(Ei,null))},renderAction:function(g){var d=g.item,S=g.runFavoriteTransition,w=g.runDeleteTransition;return c.createElement(c.Fragment,null,c.createElement("div",{className:"DocSearch-Hit-action"},c.createElement("button",{className:"DocSearch-Hit-action-button",title:s,type:"submit",onClick:function(I){I.preventDefault(),I.stopPropagation(),S(function(){n.favoriteSearches.add(d),n.recentSearches.remove(d),n.refresh()})}},c.createElement(yr,null))),c.createElement("div",{className:"DocSearch-Hit-action"},c.createElement("button",{className:"DocSearch-Hit-action-button",title:f,type:"submit",onClick:function(I){I.preventDefault(),I.stopPropagation(),w(function(){n.recentSearches.remove(d),n.refresh()})}},c.createElement(bt,null))))}})),c.createElement(Ot,Ge({},n,{title:b,collection:n.state.collections[1],renderIcon:function(){return c.createElement("div",{className:"DocSearch-Hit-icon"},c.createElement(yr,null))},renderAction:function(g){var d=g.item,S=g.runDeleteTransition;return c.createElement("div",{className:"DocSearch-Hit-action"},c.createElement("button",{className:"DocSearch-Hit-action-button",title:v,type:"submit",onClick:function(_){_.preventDefault(),_.stopPropagation(),S(function(){n.favoriteSearches.remove(d),n.refresh()})}},c.createElement(bt,null)))}})))}var ic=["translations"];function Ye(){return Ye=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function lc(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a=0)&&(r[o]=e[o]);return r}var uc=c.memo(function(e){var t=e.translations,r=t===void 0?{}:t,n=cc(e,ic);if(n.state.status==="error")return c.createElement(Ri,{translations:r?.errorScreen});var o=n.state.collections.some(function(a){return a.items.length>0});return n.state.query?o===!1?c.createElement(Ui,Ye({},n,{translations:r?.noResultsScreen})):c.createElement(tc,n):c.createElement(ac,Ye({},n,{hasCollections:o,translations:r?.startScreen}))},function(t,r){return r.state.status==="loading"||r.state.status==="stalled"}),sc=["translations"];function Xe(){return Xe=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function mc(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a=0)&&(r[o]=e[o]);return r}function pc(e){var t=e.translations,r=t===void 0?{}:t,n=fc(e,sc),o=r.resetButtonTitle,a=o===void 0?"Clear the query":o,i=r.resetButtonAriaLabel,l=i===void 0?"Clear the query":i,u=r.cancelButtonText,s=u===void 0?"Cancel":u,p=r.cancelButtonAriaLabel,f=p===void 0?"Cancel":p,m=r.searchInputLabel,b=m===void 0?"Search":m,h=n.getFormProps({inputElement:n.inputRef.current}),v=h.onReset;return c.useEffect(function(){n.autoFocus&&n.inputRef.current&&n.inputRef.current.focus()},[n.autoFocus,n.inputRef]),c.useEffect(function(){n.isFromSelection&&n.inputRef.current&&n.inputRef.current.select()},[n.isFromSelection,n.inputRef]),c.createElement(c.Fragment,null,c.createElement("form",{className:"DocSearch-Form",onSubmit:function(g){g.preventDefault()},onReset:v},c.createElement("label",Xe({className:"DocSearch-MagnifierLabel"},n.getLabelProps()),c.createElement(lo,null),c.createElement("span",{className:"DocSearch-VisuallyHiddenForAccessibility"},b)),c.createElement("div",{className:"DocSearch-LoadingIndicator"},c.createElement(wi,null)),c.createElement("input",Xe({className:"DocSearch-Input",ref:n.inputRef},n.getInputProps({inputElement:n.inputRef.current,autoFocus:n.autoFocus,maxLength:Jr}))),c.createElement("button",{type:"reset",title:a,className:"DocSearch-Reset","aria-label":l,hidden:!n.state.query},c.createElement(bt,null))),c.createElement("button",{className:"DocSearch-Cancel",type:"reset","aria-label":f,onClick:n.onClose},s))}var dc=["_highlightResult","_snippetResult"];function vc(e,t){if(e==null)return{};var r=hc(e,t),n,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function hc(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a=0)&&(r[o]=e[o]);return r}function yc(){var e="__TEST_KEY__";try{return localStorage.setItem(e,""),localStorage.removeItem(e),!0}catch{return!1}}function gc(e){return yc()===!1?{setItem:function(){},getItem:function(){return[]}}:{setItem:function(r){return window.localStorage.setItem(e,JSON.stringify(r))},getItem:function(){var r=window.localStorage.getItem(e);return r?JSON.parse(r):[]}}}function wr(e){var t=e.key,r=e.limit,n=r===void 0?5:r,o=gc(t),a=o.getItem().slice(0,n);return{add:function(l){var u=l;u._highlightResult,u._snippetResult;var s=vc(u,dc),p=a.findIndex(function(f){return f.objectID===s.objectID});p>-1&&a.splice(p,1),a.unshift(s),a=a.slice(0,n),o.setItem(a)},remove:function(l){a=a.filter(function(u){return u.objectID!==l.objectID}),o.setItem(a)},getAll:function(){return a}}}function bc(e){const t=`algoliasearch-client-js-${e.key}`;let r;const n=()=>(r===void 0&&(r=e.localStorage||window.localStorage),r),o=()=>JSON.parse(n().getItem(t)||"{}"),a=l=>{n().setItem(t,JSON.stringify(l))},i=()=>{const l=e.timeToLive?e.timeToLive*1e3:null,u=o(),s=Object.fromEntries(Object.entries(u).filter(([,f])=>f.timestamp!==void 0));if(a(s),!l)return;const p=Object.fromEntries(Object.entries(s).filter(([,f])=>{const m=new Date().getTime();return!(f.timestamp+lPromise.resolve()}){return Promise.resolve().then(()=>{i();const p=JSON.stringify(l);return o()[p]}).then(p=>Promise.all([p?p.value:u(),p!==void 0])).then(([p,f])=>Promise.all([p,f||s.miss(p)])).then(([p])=>p)},set(l,u){return Promise.resolve().then(()=>{const s=o();return s[JSON.stringify(l)]={timestamp:new Date().getTime(),value:u},n().setItem(t,JSON.stringify(s)),u})},delete(l){return Promise.resolve().then(()=>{const u=o();delete u[JSON.stringify(l)],n().setItem(t,JSON.stringify(u))})},clear(){return Promise.resolve().then(()=>{n().removeItem(t)})}}}function ve(e){const t=[...e.caches],r=t.shift();return r===void 0?Sc():{get(n,o,a={miss:()=>Promise.resolve()}){return r.get(n,o,a).catch(()=>ve({caches:t}).get(n,o,a))},set(n,o){return r.set(n,o).catch(()=>ve({caches:t}).set(n,o))},delete(n){return r.delete(n).catch(()=>ve({caches:t}).delete(n))},clear(){return r.clear().catch(()=>ve({caches:t}).clear())}}}function Sc(){return{get(e,t,r={miss:()=>Promise.resolve()}){return t().then(o=>Promise.all([o,r.miss(o)])).then(([o])=>o)},set(e,t){return Promise.resolve(t)},delete(e){return Promise.resolve()},clear(){return Promise.resolve()}}}function st(e={serializable:!0}){let t={};return{get(r,n,o={miss:()=>Promise.resolve()}){const a=JSON.stringify(r);if(a in t)return Promise.resolve(e.serializable?JSON.parse(t[a]):t[a]);const i=n(),l=o&&o.miss||(()=>Promise.resolve());return i.then(u=>l(u)).then(()=>i)},set(r,n){return t[JSON.stringify(r)]=e.serializable?JSON.stringify(n):n,Promise.resolve(n)},delete(r){return delete t[JSON.stringify(r)],Promise.resolve()},clear(){return t={},Promise.resolve()}}}function Oc(e,t,r){const n={"x-algolia-api-key":r,"x-algolia-application-id":t};return{headers(){return e===et.WithinHeaders?n:{}},queryParameters(){return e===et.WithinQueryParameters?n:{}}}}function _c(e){let t=e.length-1;for(t;t>0;t--){const r=Math.floor(Math.random()*(t+1)),n=e[t];e[t]=e[r],e[r]=n}return e}function Yr(e,t){return t&&Object.keys(t).forEach(r=>{e[r]=t[r](e)}),e}function rt(e,...t){let r=0;return e.replace(/%s/g,()=>encodeURIComponent(t[r++]))}const It="4.22.1",et={WithinQueryParameters:0,WithinHeaders:1};function Er(e,t){const r=e||{},n=r.data||{};return Object.keys(r).forEach(o=>{["timeout","headers","queryParameters","data","cacheable"].indexOf(o)===-1&&(n[o]=r[o])}),{data:Object.entries(n).length>0?n:void 0,timeout:r.timeout||t,headers:r.headers||{},queryParameters:r.queryParameters||{},cacheable:r.cacheable}}const ie={Read:1,Write:2,Any:3},xe={Up:1,Down:2,Timeouted:3},Xr=2*60*1e3;function en(e,t=xe.Up){return{...e,status:t,lastUpdate:Date.now()}}function Ic(e){return e.status===xe.Up||Date.now()-e.lastUpdate>Xr}function Pc(e){return e.status===xe.Timeouted&&Date.now()-e.lastUpdate<=Xr}function tn(e){return typeof e=="string"?{protocol:"https",url:e,accept:ie.Any}:{protocol:e.protocol||"https",url:e.url,accept:e.accept||ie.Any}}const Z={Delete:"DELETE",Get:"GET",Post:"POST",Put:"PUT"};function wc(e,t){return Promise.all(t.map(r=>e.get(r,()=>Promise.resolve(en(r))))).then(r=>{const n=r.filter(l=>Ic(l)),o=r.filter(l=>Pc(l)),a=[...n,...o],i=a.length>0?a.map(l=>tn(l)):t;return{getTimeout(l,u){return(o.length===0&&l===0?1:o.length+3+l)*u},statelessHosts:i}})}const Ec=({isTimedOut:e,status:t})=>!e&&~~t===0,jc=e=>{const t=e.status;return e.isTimedOut||Ec(e)||~~(t/100)!==2&&~~(t/100)!==4},$c=({status:e})=>~~(e/100)===2,Ac=(e,t)=>jc(e)?t.onRetry(e):$c(e)?t.onSuccess(e):t.onFail(e);function jr(e,t,r,n){const o=[],a=Nc(r,n),i=Lc(e,n),l=r.method,u=r.method!==Z.Get?{}:{...r.data,...n.data},s={"x-algolia-agent":e.userAgent.value,...e.queryParameters,...u,...n.queryParameters};let p=0;const f=(m,b)=>{const h=m.pop();if(h===void 0)throw Hc($r(o));const v={data:a,headers:i,method:l,url:Rc(h,r.path,s),connectTimeout:b(p,e.timeouts.connect),responseTimeout:b(p,n.timeout)},y=d=>{const S={request:v,response:d,host:h,triesLeft:m.length};return o.push(S),S},g={onSuccess:d=>Tc(d),onRetry(d){const S=y(d);return d.isTimedOut&&p++,Promise.all([e.logger.info("Retryable failure",nn(S)),e.hostsCache.set(h,en(h,d.isTimedOut?xe.Timeouted:xe.Down))]).then(()=>f(m,b))},onFail(d){throw y(d),xc(d,$r(o))}};return e.requester.send(v).then(d=>Ac(d,g))};return wc(e.hostsCache,t).then(m=>f([...m.statelessHosts].reverse(),m.getTimeout))}function Cc(e){const{hostsCache:t,logger:r,requester:n,requestsCache:o,responsesCache:a,timeouts:i,userAgent:l,hosts:u,queryParameters:s,headers:p}=e,f={hostsCache:t,logger:r,requester:n,requestsCache:o,responsesCache:a,timeouts:i,userAgent:l,headers:p,queryParameters:s,hosts:u.map(m=>tn(m)),read(m,b){const h=Er(b,f.timeouts.read),v=()=>jr(f,f.hosts.filter(d=>(d.accept&ie.Read)!==0),m,h);if((h.cacheable!==void 0?h.cacheable:m.cacheable)!==!0)return v();const g={request:m,mappedRequestOptions:h,transporter:{queryParameters:f.queryParameters,headers:f.headers}};return f.responsesCache.get(g,()=>f.requestsCache.get(g,()=>f.requestsCache.set(g,v()).then(d=>Promise.all([f.requestsCache.delete(g),d]),d=>Promise.all([f.requestsCache.delete(g),Promise.reject(d)])).then(([d,S])=>S)),{miss:d=>f.responsesCache.set(g,d)})},write(m,b){return jr(f,f.hosts.filter(h=>(h.accept&ie.Write)!==0),m,Er(b,f.timeouts.write))}};return f}function Dc(e){const t={value:`Algolia for JavaScript (${e})`,add(r){const n=`; ${r.segment}${r.version!==void 0?` (${r.version})`:""}`;return t.value.indexOf(n)===-1&&(t.value=`${t.value}${n}`),t}};return t}function Tc(e){try{return JSON.parse(e.content)}catch(t){throw Mc(t.message,e)}}function xc({content:e,status:t},r){let n=e;try{n=JSON.parse(e).message}catch{}return kc(n,t,r)}function Rc(e,t,r){const n=rn(r);let o=`${e.protocol}://${e.url}/${t.charAt(0)==="/"?t.substr(1):t}`;return n.length&&(o+=`?${n}`),o}function rn(e){const t=r=>Object.prototype.toString.call(r)==="[object Object]"||Object.prototype.toString.call(r)==="[object Array]";return Object.keys(e).map(r=>rt("%s=%s",r,t(e[r])?JSON.stringify(e[r]):e[r])).join("&")}function Nc(e,t){if(e.method===Z.Get||e.data===void 0&&t.data===void 0)return;const r=Array.isArray(e.data)?e.data:{...e.data,...t.data};return JSON.stringify(r)}function Lc(e,t){const r={...e.headers,...t.headers},n={};return Object.keys(r).forEach(o=>{const a=r[o];n[o.toLowerCase()]=a}),n}function $r(e){return e.map(t=>nn(t))}function nn(e){const t=e.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return{...e,request:{...e.request,headers:{...e.request.headers,...t}}}}function kc(e,t,r){return{name:"ApiError",message:e,status:t,transporterStackTrace:r}}function Mc(e,t){return{name:"DeserializationError",message:e,response:t}}function Hc(e){return{name:"RetryError",message:"Unreachable hosts - your application id may be incorrect. If the error persists, contact support@algolia.com.",transporterStackTrace:e}}const Fc=e=>{const t=e.appId,r=Oc(e.authMode!==void 0?e.authMode:et.WithinHeaders,t,e.apiKey),n=Cc({hosts:[{url:`${t}-dsn.algolia.net`,accept:ie.Read},{url:`${t}.algolia.net`,accept:ie.Write}].concat(_c([{url:`${t}-1.algolianet.com`},{url:`${t}-2.algolianet.com`},{url:`${t}-3.algolianet.com`}])),...e,headers:{...r.headers(),"content-type":"application/x-www-form-urlencoded",...e.headers},queryParameters:{...r.queryParameters(),...e.queryParameters}});return Yr({transporter:n,appId:t,addAlgoliaAgent(a,i){n.userAgent.add({segment:a,version:i})},clearCache(){return Promise.all([n.requestsCache.clear(),n.responsesCache.clear()]).then(()=>{})}},e.methods)},qc=e=>(t,r)=>t.method===Z.Get?e.transporter.read(t,r):e.transporter.write(t,r),on=e=>(t,r={})=>{const n={transporter:e.transporter,appId:e.appId,indexName:t};return Yr(n,r.methods)},Ar=e=>(t,r)=>{const n=t.map(o=>({...o,params:rn(o.params||{})}));return e.transporter.read({method:Z.Post,path:"1/indexes/*/queries",data:{requests:n},cacheable:!0},r)},Cr=e=>(t,r)=>Promise.all(t.map(n=>{const{facetName:o,facetQuery:a,...i}=n.params;return on(e)(n.indexName,{methods:{searchForFacetValues:an}}).searchForFacetValues(o,a,{...r,...i})})),Bc=e=>(t,r,n)=>e.transporter.read({method:Z.Post,path:rt("1/answers/%s/prediction",e.indexName),data:{query:t,queryLanguages:r},cacheable:!0},n),Uc=e=>(t,r)=>e.transporter.read({method:Z.Post,path:rt("1/indexes/%s/query",e.indexName),data:{query:t},cacheable:!0},r),an=e=>(t,r,n)=>e.transporter.read({method:Z.Post,path:rt("1/indexes/%s/facets/%s/query",e.indexName,t),data:{facetQuery:r},cacheable:!0},n),Pt={Debug:1,Info:2,Error:3};function Kc(e){return{debug(t,r){return Pt.Debug>=e&&console.debug(t,r),Promise.resolve()},info(t,r){return Pt.Info>=e&&console.info(t,r),Promise.resolve()},error(t,r){return console.error(t,r),Promise.resolve()}}}function Vc(){return{send(e){return new Promise(t=>{const r=new XMLHttpRequest;r.open(e.method,e.url,!0),Object.keys(e.headers).forEach(i=>r.setRequestHeader(i,e.headers[i]));const n=(i,l)=>setTimeout(()=>{r.abort(),t({status:0,content:l,isTimedOut:!0})},i*1e3),o=n(e.connectTimeout,"Connection timeout");let a;r.onreadystatechange=()=>{r.readyState>r.OPENED&&a===void 0&&(clearTimeout(o),a=n(e.responseTimeout,"Socket timeout"))},r.onerror=()=>{r.status===0&&(clearTimeout(o),clearTimeout(a),t({content:r.responseText||"Network request failed",status:r.status,isTimedOut:!1}))},r.onload=()=>{clearTimeout(o),clearTimeout(a),t({content:r.responseText,status:r.status,isTimedOut:!1})},r.send(e.data)})}}}function cn(e,t,r){const n={appId:e,apiKey:t,timeouts:{connect:1,read:2,write:30},requester:Vc(),logger:Kc(Pt.Error),responsesCache:st(),requestsCache:st({serializable:!1}),hostsCache:ve({caches:[bc({key:`${It}-${e}`}),st()]}),userAgent:Dc(It).add({segment:"Browser",version:"lite"}),authMode:et.WithinQueryParameters};return Fc({...n,...r,methods:{search:Ar,searchForFacetValues:Cr,multipleQueries:Ar,multipleSearchForFacetValues:Cr,customRequest:qc,initIndex:o=>a=>on(o)(a,{methods:{search:Uc,searchForFacetValues:an,findAnswers:Bc}})}})}cn.version=It;var Dr="3.6.0";function Wc(e,t,r){var n=c.useMemo(function(){var o=cn(e,t);return o.addAlgoliaAgent("docsearch",Dr),/docsearch.js \(.*\)/.test(o.transporter.userAgent.value)===!1&&o.addAlgoliaAgent("docsearch-react",Dr),r(o)},[e,t,r]);return n}function zc(e){var t=e.getEnvironmentProps,r=e.panelElement,n=e.formElement,o=e.inputElement;c.useEffect(function(){if(r&&n&&o){var a=t({panelElement:r,formElement:n,inputElement:o}),i=a.onTouchStart,l=a.onTouchMove;return window.addEventListener("touchstart",i),window.addEventListener("touchmove",l),function(){window.removeEventListener("touchstart",i),window.removeEventListener("touchmove",l)}}},[t,r,n,o])}function Qc(e){var t=e.container;c.useEffect(function(){if(!t)return;var r=t.querySelectorAll("a[href]:not([disabled]), button:not([disabled]), input:not([disabled])"),n=r[0],o=r[r.length-1];function a(i){i.key==="Tab"&&(i.shiftKey?document.activeElement===n&&(i.preventDefault(),o.focus()):document.activeElement===o&&(i.preventDefault(),n.focus()))}return t.addEventListener("keydown",a),function(){t.removeEventListener("keydown",a)}},[t])}var Jc=["footer","searchBox"];function he(){return he=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function nl(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a=0)&&(r[o]=e[o]);return r}function ol(e){var t=e.appId,r=e.apiKey,n=e.indexName,o=e.placeholder,a=o===void 0?"Search docs":o,i=e.searchParameters,l=e.maxResultsPerGroup,u=e.onClose,s=u===void 0?Xi:u,p=e.transformItems,f=p===void 0?Pr:p,m=e.hitComponent,b=m===void 0?Pi:m,h=e.resultsFooterComponent,v=h===void 0?function(){return null}:h,y=e.navigator,g=e.initialScrollY,d=g===void 0?0:g,S=e.transformSearchClient,w=S===void 0?Pr:S,_=e.disableUserPersonalization,I=_===void 0?!1:_,A=e.initialQuery,C=A===void 0?"":A,k=e.translations,D=k===void 0?{}:k,F=e.getMissingResultsUrl,$t=e.insights,nt=$t===void 0?!1:$t,ln=D.footer,un=D.searchBox,sn=rl(D,Jc),fn=c.useState({query:"",collections:[],completion:null,context:{},isOpen:!1,activeItemId:null,status:"idle"}),At=Gc(fn,2),q=At[0],mn=At[1],Ct=c.useRef(null),ot=c.useRef(null),Dt=c.useRef(null),Re=c.useRef(null),ce=c.useRef(null),B=c.useRef(10),Tt=c.useRef(typeof window<"u"?window.getSelection().toString().slice(0,Jr):"").current,V=c.useRef(C||Tt).current,xt=Wc(t,r,w),G=c.useRef(wr({key:"__DOCSEARCH_FAVORITE_SEARCHES__".concat(n),limit:10})).current,le=c.useRef(wr({key:"__DOCSEARCH_RECENT_SEARCHES__".concat(n),limit:G.getAll().length===0?7:4})).current,ue=c.useCallback(function(P){if(!I){var R=P.type==="content"?P.__docsearch_parent:P;R&&G.getAll().findIndex(function(at){return at.objectID===R.objectID})===-1&&le.add(R)}},[G,le,I]),pn=c.useCallback(function(E){if(!(!q.context.algoliaInsightsPlugin||!E.__autocomplete_id)){var P=E,R={eventName:"Item Selected",index:P.__autocomplete_indexName,items:[P],positions:[E.__autocomplete_id],queryID:P.__autocomplete_queryID};q.context.algoliaInsightsPlugin.insights.clickedObjectIDsAfterSearch(R)}},[q.context.algoliaInsightsPlugin]),se=c.useMemo(function(){return Oi({id:"docsearch",defaultActiveItemId:0,placeholder:a,openOnFocus:!0,initialState:{query:V,context:{searchSuggestions:[]}},insights:nt,navigator:y,onStateChange:function(P){mn(P.state)},getSources:function(P){var R=P.query,at=P.state,Nt=P.setContext,hn=P.setStatus;if(!R)return I?[]:[{sourceId:"recentSearches",onSelect:function(T){var x=T.item,fe=T.event;ue(x),Ue(fe)||s()},getItemUrl:function(T){var x=T.item;return x.url},getItems:function(){return le.getAll()}},{sourceId:"favoriteSearches",onSelect:function(T){var x=T.item,fe=T.event;ue(x),Ue(fe)||s()},getItemUrl:function(T){var x=T.item;return x.url},getItems:function(){return G.getAll()}}];var Lt=!!nt;return xt.search([{query:R,indexName:n,params:ft({attributesToRetrieve:["hierarchy.lvl0","hierarchy.lvl1","hierarchy.lvl2","hierarchy.lvl3","hierarchy.lvl4","hierarchy.lvl5","hierarchy.lvl6","content","type","url"],attributesToSnippet:["hierarchy.lvl1:".concat(B.current),"hierarchy.lvl2:".concat(B.current),"hierarchy.lvl3:".concat(B.current),"hierarchy.lvl4:".concat(B.current),"hierarchy.lvl5:".concat(B.current),"hierarchy.lvl6:".concat(B.current),"content:".concat(B.current)],snippetEllipsisText:"…",highlightPreTag:"",highlightPostTag:"",hitsPerPage:20,clickAnalytics:Lt},i)}]).catch(function(N){throw N.name==="RetryError"&&hn("error"),N}).then(function(N){var T=N.results,x=T[0],fe=x.hits,yn=x.nbHits,it=Ir(fe,function(ct){return Gr(ct)},l);at.context.searchSuggestions.length0&&(Rt(),ce.current&&ce.current.focus())},[V,Rt]),c.useEffect(function(){function E(){if(ot.current){var P=window.innerHeight*.01;ot.current.style.setProperty("--docsearch-vh","".concat(P,"px"))}}return E(),window.addEventListener("resize",E),function(){window.removeEventListener("resize",E)}},[]),c.createElement("div",he({ref:Ct},vn({"aria-expanded":!0}),{className:["DocSearch","DocSearch-Container",q.status==="stalled"&&"DocSearch-Container--Stalled",q.status==="error"&&"DocSearch-Container--Errored"].filter(Boolean).join(" "),role:"button",tabIndex:0,onMouseDown:function(P){P.target===P.currentTarget&&s()}}),c.createElement("div",{className:"DocSearch-Modal",ref:ot},c.createElement("header",{className:"DocSearch-SearchBar",ref:Dt},c.createElement(pc,he({},se,{state:q,autoFocus:V.length===0,inputRef:ce,isFromSelection:!!V&&V===Tt,translations:un,onClose:s}))),c.createElement("div",{className:"DocSearch-Dropdown",ref:Re},c.createElement(uc,he({},se,{indexName:n,state:q,hitComponent:b,resultsFooterComponent:v,disableUserPersonalization:I,recentSearches:le,favoriteSearches:G,inputRef:ce,translations:sn,getMissingResultsUrl:F,onItemClick:function(P,R){pn(P),ue(P),Ue(R)||s()}}))),c.createElement("footer",{className:"DocSearch-Footer"},c.createElement(Ii,{translations:ln}))))}function al(e){var t=e.target,r=t.tagName;return t.isContentEditable||r==="INPUT"||r==="SELECT"||r==="TEXTAREA"}function il(e){var t=e.isOpen,r=e.onOpen,n=e.onClose,o=e.onInput,a=e.searchButtonRef;c.useEffect(function(){function i(l){var u;function s(){document.body.classList.contains("DocSearch--active")||r()}(l.keyCode===27&&t||((u=l.key)===null||u===void 0?void 0:u.toLowerCase())==="k"&&(l.metaKey||l.ctrlKey)||!al(l)&&l.key==="/"&&!t)&&(l.preventDefault(),t?n():document.body.classList.contains("DocSearch--active")||s()),a&&a.current===document.activeElement&&o&&/[a-zA-Z0-9]/.test(String.fromCharCode(l.keyCode))&&o(l)}return window.addEventListener("keydown",i),function(){window.removeEventListener("keydown",i)}},[t,r,n,o,a])}function sl({lang:e="en",labels:t}){const[r,n]=Qe(!1),o=Rr(document.getElementById("docsearch-search-button")),[a,i]=Qe(),l=Ke(()=>{n(!0)},[n]),u=Ke(()=>{n(!1)},[n]),s=Ke(p=>{n(!0),i(p.key)},[n,i]);return wt(()=>(o.current?.addEventListener("click",l),()=>o.current?.removeEventListener("click",l)),[o.current,l]),il({isOpen:r,onOpen:l,onClose:u,onInput:s,searchButtonRef:o}),r?Hr(L(ol,{initialQuery:a,initialScrollY:window.scrollY,onClose:u,indexName:"Heartbeat",appId:"VU887LTWYS",apiKey:"9c2d2fe7427b702ed94e71739cca84a6",searchParameters:{facetFilters:[[`lang:${e}`]]},insights:!0,getMissingResultsUrl:({query:p})=>`https://github.com/withastro/docs/issues/new?title=Missing+results+for+query+%22${encodeURIComponent(p)}%22`,transformItems:p=>p.map(f=>{const m=new URL(f.url);return m.hash==="#overview"&&(m.hash=""),{...f,url:m.href.replace(m.origin,"")}}),placeholder:t.placeholder,resultsFooterComponent:()=>L("div",{style:{marginBlock:"2em"},children:[L("p",{children:t.resultsFooterLede}),L("ul",{style:{display:"flex",gap:"1em",marginBlock:"0.5em",flexWrap:"wrap"},children:[L("li",{children:L("a",{href:"https://astro.build/integrations/",children:t.resultsFooterIntegrations})}),L("li",{children:L("a",{href:"https://astro.build/themes/",children:t.resultsFooterThemes})}),L("li",{children:L("a",{href:"https://astro.build/chat",children:t.resultsFooterDiscord})})]})]})}),document.body):null}export{sl as default}; +See: https://www.algolia.com/doc/ui-libraries/autocomplete/core-concepts/sources/#param-getitems`),{source:n,items:l}})}function Ae(e){"@babel/helpers - typeof";return Ae=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ae(e)}var Ma=["event","nextState","props","query","refresh","store"];function ur(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function me(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Ua(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a=0)&&(r[o]=e[o]);return r}var pe=null,sr=Jo();function re(e){var t=e.event,r=e.nextState,n=r===void 0?{}:r,o=e.props,a=e.query,i=e.refresh,l=e.store,u=Ba(e,Ma);pe&&o.environment.clearTimeout(pe);var s=u.setCollections,p=u.setIsOpen,f=u.setQuery,m=u.setActiveItemId,b=u.setStatus;if(f(a),m(o.defaultActiveItemId),!a&&o.openOnFocus===!1){var h,v=l.getState().collections.map(function(d){return me(me({},d),{},{items:[]})});b("idle"),s(v),p((h=n.isOpen)!==null&&h!==void 0?h:o.shouldPanelOpen({state:l.getState()}));var y=er(sr(v).then(function(){return Promise.resolve()}));return l.pendingRequests.add(y)}b("loading"),pe=o.environment.setTimeout(function(){b("stalled")},o.stallThreshold);var g=er(sr(o.getSources(me({query:a,refresh:i,state:l.getState()},u)).then(function(d){return Promise.all(d.map(function(S){return Promise.resolve(S.getItems(me({query:a,refresh:i,state:l.getState()},u))).then(function(w){return Na(w,S.sourceId,l.getState())})})).then(La).then(function(S){return ka(S,d,l)}).then(function(S){return Ea({collections:S,props:o,state:l.getState()})})}))).then(function(d){var S;b("idle"),s(d);var w=o.shouldPanelOpen({state:l.getState()});p((S=n.isOpen)!==null&&S!==void 0?S:o.openOnFocus&&!a&&w||w);var _=ae(l.getState());if(l.getState().activeItemId!==null&&_){var I=_.item,A=_.itemInputValue,C=_.itemUrl,k=_.source;k.onActive(me({event:t,item:I,itemInputValue:A,itemUrl:C,refresh:i,source:k,state:l.getState()},u))}}).finally(function(){b("idle"),pe&&o.environment.clearTimeout(pe)});return l.pendingRequests.add(g)}function Ce(e){"@babel/helpers - typeof";return Ce=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ce(e)}var Ka=["event","props","refresh","store"];function fr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Q(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Ja(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a=0)&&(r[o]=e[o]);return r}function Za(e){var t=e.event,r=e.props,n=e.refresh,o=e.store,a=Qa(e,Ka);if(t.key==="ArrowUp"||t.key==="ArrowDown"){var i=function(){var h=r.environment.document.getElementById("".concat(r.id,"-item-").concat(o.getState().activeItemId));h&&(h.scrollIntoViewIfNeeded?h.scrollIntoViewIfNeeded(!1):h.scrollIntoView(!1))},l=function(){var h=ae(o.getState());if(o.getState().activeItemId!==null&&h){var v=h.item,y=h.itemInputValue,g=h.itemUrl,d=h.source;d.onActive(Q({event:t,item:v,itemInputValue:y,itemUrl:g,refresh:n,source:d,state:o.getState()},a))}};t.preventDefault(),o.getState().isOpen===!1&&(r.openOnFocus||o.getState().query)?re(Q({event:t,props:r,query:o.getState().query,refresh:n,store:o},a)).then(function(){o.dispatch(t.key,{nextActiveItemId:r.defaultActiveItemId}),l(),setTimeout(i,0)}):(o.dispatch(t.key,{}),l(),i())}else if(t.key==="Escape")t.preventDefault(),o.dispatch(t.key,null),o.pendingRequests.cancelAll();else if(t.key==="Tab")o.dispatch("blur",null),o.pendingRequests.cancelAll();else if(t.key==="Enter"){if(o.getState().activeItemId===null||o.getState().collections.every(function(b){return b.items.length===0})){r.debug||o.pendingRequests.cancelAll();return}t.preventDefault();var u=ae(o.getState()),s=u.item,p=u.itemInputValue,f=u.itemUrl,m=u.source;if(t.metaKey||t.ctrlKey)f!==void 0&&(m.onSelect(Q({event:t,item:s,itemInputValue:p,itemUrl:f,refresh:n,source:m,state:o.getState()},a)),r.navigator.navigateNewTab({itemUrl:f,item:s,state:o.getState()}));else if(t.shiftKey)f!==void 0&&(m.onSelect(Q({event:t,item:s,itemInputValue:p,itemUrl:f,refresh:n,source:m,state:o.getState()},a)),r.navigator.navigateNewWindow({itemUrl:f,item:s,state:o.getState()}));else if(!t.altKey){if(f!==void 0){m.onSelect(Q({event:t,item:s,itemInputValue:p,itemUrl:f,refresh:n,source:m,state:o.getState()},a)),r.navigator.navigate({itemUrl:f,item:s,state:o.getState()});return}re(Q({event:t,nextState:{isOpen:!1},props:r,query:p,refresh:n,store:o},a)).then(function(){m.onSelect(Q({event:t,item:s,itemInputValue:p,itemUrl:f,refresh:n,source:m,state:o.getState()},a))})}}}function De(e){"@babel/helpers - typeof";return De=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},De(e)}var Ga=["props","refresh","store"],Ya=["inputElement","formElement","panelElement"],Xa=["inputElement"],ei=["inputElement","maxLength"],ti=["sourceIndex"],ri=["sourceIndex"],ni=["item","source","sourceIndex"];function mr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function j(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function ci(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a=0)&&(r[o]=e[o]);return r}function li(e){var t=e.props,r=e.refresh,n=e.store,o=J(e,Ga),a=function(v){var y=v.inputElement,g=v.formElement,d=v.panelElement,S=J(v,Ya);function w(_){var I=n.getState().isOpen||!n.pendingRequests.isEmpty();if(!(!I||_.target===y)){var A=[g,d].some(function(C){return ra(C,_.target)});A===!1&&(n.dispatch("blur",null),t.debug||n.pendingRequests.cancelAll())}}return j({onTouchStart:w,onMouseDown:w,onTouchMove:function(I){n.getState().isOpen===!1||y!==t.environment.document.activeElement||I.target===y||y.blur()}},S)},i=function(v){return j({role:"combobox","aria-expanded":n.getState().isOpen,"aria-haspopup":"listbox","aria-owns":n.getState().isOpen?"".concat(t.id,"-list"):void 0,"aria-labelledby":"".concat(t.id,"-label")},v)},l=function(v){v.inputElement;var y=J(v,Xa);return j({action:"",noValidate:!0,role:"search",onSubmit:function(d){var S;d.preventDefault(),t.onSubmit(j({event:d,refresh:r,state:n.getState()},o)),n.dispatch("submit",null),(S=v.inputElement)===null||S===void 0||S.blur()},onReset:function(d){var S;d.preventDefault(),t.onReset(j({event:d,refresh:r,state:n.getState()},o)),n.dispatch("reset",null),(S=v.inputElement)===null||S===void 0||S.focus()}},y)},u=function(v){var y;function g(D){(t.openOnFocus||n.getState().query)&&re(j({event:D,props:t,query:n.getState().completion||n.getState().query,refresh:r,store:n},o)),n.dispatch("focus",null)}var d=v||{};d.inputElement;var S=d.maxLength,w=S===void 0?512:S,_=J(d,ei),I=ae(n.getState()),A=((y=t.environment.navigator)===null||y===void 0?void 0:y.userAgent)||"",C=oa(A),k=I!=null&&I.itemUrl&&!C?"go":"search";return j({"aria-autocomplete":"both","aria-activedescendant":n.getState().isOpen&&n.getState().activeItemId!==null?"".concat(t.id,"-item-").concat(n.getState().activeItemId):void 0,"aria-controls":n.getState().isOpen?"".concat(t.id,"-list"):void 0,"aria-labelledby":"".concat(t.id,"-label"),value:n.getState().completion||n.getState().query,id:"".concat(t.id,"-input"),autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",enterKeyHint:k,spellCheck:"false",autoFocus:t.autoFocus,placeholder:t.placeholder,maxLength:w,type:"search",onChange:function(F){re(j({event:F,props:t,query:F.currentTarget.value.slice(0,w),refresh:r,store:n},o))},onKeyDown:function(F){Za(j({event:F,props:t,refresh:r,store:n},o))},onFocus:g,onBlur:Je,onClick:function(F){v.inputElement===t.environment.document.activeElement&&!n.getState().isOpen&&g(F)}},_)},s=function(v,y){return typeof y<"u"?"".concat(v,"-").concat(y):v},p=function(v){var y=v||{},g=y.sourceIndex,d=J(y,ti);return j({htmlFor:"".concat(s(t.id,g),"-input"),id:"".concat(s(t.id,g),"-label")},d)},f=function(v){var y=v||{},g=y.sourceIndex,d=J(y,ri);return j({role:"listbox","aria-labelledby":"".concat(s(t.id,g),"-label"),id:"".concat(s(t.id,g),"-list")},d)},m=function(v){return j({onMouseDown:function(g){g.preventDefault()},onMouseLeave:function(){n.dispatch("mouseleave",null)}},v)},b=function(v){var y=v.item,g=v.source,d=v.sourceIndex,S=J(v,ni);return j({id:"".concat(s(t.id,d),"-item-").concat(y.__autocomplete_id),role:"option","aria-selected":n.getState().activeItemId===y.__autocomplete_id,onMouseMove:function(_){if(y.__autocomplete_id!==n.getState().activeItemId){n.dispatch("mousemove",y.__autocomplete_id);var I=ae(n.getState());if(n.getState().activeItemId!==null&&I){var A=I.item,C=I.itemInputValue,k=I.itemUrl,D=I.source;D.onActive(j({event:_,item:A,itemInputValue:C,itemUrl:k,refresh:r,source:D,state:n.getState()},o))}}},onMouseDown:function(_){_.preventDefault()},onClick:function(_){var I=g.getItemInputValue({item:y,state:n.getState()}),A=g.getItemUrl({item:y,state:n.getState()}),C=A?Promise.resolve():re(j({event:_,nextState:{isOpen:!1},props:t,query:I,refresh:r,store:n},o));C.then(function(){g.onSelect(j({event:_,item:y,itemInputValue:I,itemUrl:A,refresh:r,source:g,state:n.getState()},o))})}},S)};return{getEnvironmentProps:a,getRootProps:i,getFormProps:l,getLabelProps:p,getInputProps:u,getPanelProps:m,getListProps:f,getItemProps:b}}function Te(e){"@babel/helpers - typeof";return Te=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Te(e)}function pr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function ui(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Bi(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a=0)&&(r[o]=e[o]);return r}function Ui(e){var t=e.translations,r=t===void 0?{}:t,n=qi(e,Ni),o=r.noResultsText,a=o===void 0?"No results for":o,i=r.suggestedQueryText,l=i===void 0?"Try searching for":i,u=r.reportMissingResultsText,s=u===void 0?"Believe this query should return results?":u,p=r.reportMissingResultsLinkText,f=p===void 0?"Let us know.":p,m=n.state.context.searchSuggestions;return c.createElement("div",{className:"DocSearch-NoResults"},c.createElement("div",{className:"DocSearch-Screen-Icon"},c.createElement(xi,null)),c.createElement("p",{className:"DocSearch-Title"},a,' "',c.createElement("strong",null,n.state.query),'"'),m&&m.length>0&&c.createElement("div",{className:"DocSearch-NoResults-Prefill-List"},c.createElement("p",{className:"DocSearch-Help"},l,":"),c.createElement("ul",null,m.slice(0,3).reduce(function(b,h){return[].concat(Li(b),[c.createElement("li",{key:h},c.createElement("button",{className:"DocSearch-Prefill",key:h,type:"button",onClick:function(){n.setQuery(h.toLowerCase()+" "),n.refresh(),n.inputRef.current.focus()}},h))])},[]))),n.getMissingResultsUrl&&c.createElement("p",{className:"DocSearch-Help"},"".concat(s," "),c.createElement("a",{href:n.getMissingResultsUrl({query:n.state.query}),target:"_blank",rel:"noopener noreferrer"},f)))}var Ki=["hit","attribute","tagName"];function gr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function br(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function zi(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a=0)&&(r[o]=e[o]);return r}function Sr(e,t){var r=t.split(".");return r.reduce(function(n,o){return n!=null&&n[o]?n[o]:null},e)}function ee(e){var t=e.hit,r=e.attribute,n=e.tagName,o=n===void 0?"span":n,a=Wi(e,Ki);return H(o,br(br({},a),{},{dangerouslySetInnerHTML:{__html:Sr(t,"_snippetResult.".concat(r,".value"))||Sr(t,r)}}))}function Or(e,t){return Gi(e)||Zi(e,t)||Ji(e,t)||Qi()}function Qi(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ji(e,t){if(e){if(typeof e=="string")return _r(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _r(e,t)}}function _r(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r|<\/mark>)/g,ec=RegExp(an.source);function cn(e){var t,r,n=e;if(!n.__docsearch_parent&&!e._highlightResult)return e.hierarchy.lvl0;var o=(n.__docsearch_parent?(t=n.__docsearch_parent)===null||t===void 0||(t=t._highlightResult)===null||t===void 0||(t=t.hierarchy)===null||t===void 0?void 0:t.lvl0:(r=e._highlightResult)===null||r===void 0||(r=r.hierarchy)===null||r===void 0?void 0:r.lvl0)||{},a=o.value;return a&&ec.test(a)?a.replace(an,""):a}function Pt(){return Pt=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function oc(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a=0)&&(r[o]=e[o]);return r}function ac(e){var t=e.translations,r=t===void 0?{}:t,n=nc(e,rc),o=r.recentSearchesTitle,a=o===void 0?"Recent":o,i=r.noRecentSearchesText,l=i===void 0?"No recent searches":i,u=r.saveRecentSearchButtonTitle,s=u===void 0?"Save this search":u,p=r.removeRecentSearchButtonTitle,f=p===void 0?"Remove this search from history":p,m=r.favoriteSearchesTitle,b=m===void 0?"Favorite":m,h=r.removeFavoriteSearchButtonTitle,v=h===void 0?"Remove this search from favorites":h;return n.state.status==="idle"&&n.hasCollections===!1?n.disableUserPersonalization?null:c.createElement("div",{className:"DocSearch-StartScreen"},c.createElement("p",{className:"DocSearch-Help"},l)):n.hasCollections===!1?null:c.createElement("div",{className:"DocSearch-Dropdown-Container"},c.createElement(It,Ge({},n,{title:a,collection:n.state.collections[0],renderIcon:function(){return c.createElement("div",{className:"DocSearch-Hit-icon"},c.createElement(Ei,null))},renderAction:function(g){var d=g.item,S=g.runFavoriteTransition,w=g.runDeleteTransition;return c.createElement(c.Fragment,null,c.createElement("div",{className:"DocSearch-Hit-action"},c.createElement("button",{className:"DocSearch-Hit-action-button",title:s,type:"submit",onClick:function(I){I.preventDefault(),I.stopPropagation(),S(function(){n.favoriteSearches.add(d),n.recentSearches.remove(d),n.refresh()})}},c.createElement(yr,null))),c.createElement("div",{className:"DocSearch-Hit-action"},c.createElement("button",{className:"DocSearch-Hit-action-button",title:f,type:"submit",onClick:function(I){I.preventDefault(),I.stopPropagation(),w(function(){n.recentSearches.remove(d),n.refresh()})}},c.createElement(Ot,null))))}})),c.createElement(It,Ge({},n,{title:b,collection:n.state.collections[1],renderIcon:function(){return c.createElement("div",{className:"DocSearch-Hit-icon"},c.createElement(yr,null))},renderAction:function(g){var d=g.item,S=g.runDeleteTransition;return c.createElement("div",{className:"DocSearch-Hit-action"},c.createElement("button",{className:"DocSearch-Hit-action-button",title:v,type:"submit",onClick:function(_){_.preventDefault(),_.stopPropagation(),S(function(){n.favoriteSearches.remove(d),n.refresh()})}},c.createElement(Ot,null)))}})))}var ic=["translations"];function Ye(){return Ye=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function lc(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a=0)&&(r[o]=e[o]);return r}var uc=c.memo(function(e){var t=e.translations,r=t===void 0?{}:t,n=cc(e,ic);if(n.state.status==="error")return c.createElement(Ri,{translations:r?.errorScreen});var o=n.state.collections.some(function(a){return a.items.length>0});return n.state.query?o===!1?c.createElement(Ui,Ye({},n,{translations:r?.noResultsScreen})):c.createElement(tc,n):c.createElement(ac,Ye({},n,{hasCollections:o,translations:r?.startScreen}))},function(t,r){return r.state.status==="loading"||r.state.status==="stalled"}),sc=["translations"];function Xe(){return Xe=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function mc(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a=0)&&(r[o]=e[o]);return r}function pc(e){var t=e.translations,r=t===void 0?{}:t,n=fc(e,sc),o=r.resetButtonTitle,a=o===void 0?"Clear the query":o,i=r.resetButtonAriaLabel,l=i===void 0?"Clear the query":i,u=r.cancelButtonText,s=u===void 0?"Cancel":u,p=r.cancelButtonAriaLabel,f=p===void 0?"Cancel":p,m=r.searchInputLabel,b=m===void 0?"Search":m,h=n.getFormProps({inputElement:n.inputRef.current}),v=h.onReset;return c.useEffect(function(){n.autoFocus&&n.inputRef.current&&n.inputRef.current.focus()},[n.autoFocus,n.inputRef]),c.useEffect(function(){n.isFromSelection&&n.inputRef.current&&n.inputRef.current.select()},[n.isFromSelection,n.inputRef]),c.createElement(c.Fragment,null,c.createElement("form",{className:"DocSearch-Form",onSubmit:function(g){g.preventDefault()},onReset:v},c.createElement("label",Xe({className:"DocSearch-MagnifierLabel"},n.getLabelProps()),c.createElement(lo,null),c.createElement("span",{className:"DocSearch-VisuallyHiddenForAccessibility"},b)),c.createElement("div",{className:"DocSearch-LoadingIndicator"},c.createElement(wi,null)),c.createElement("input",Xe({className:"DocSearch-Input",ref:n.inputRef},n.getInputProps({inputElement:n.inputRef.current,autoFocus:n.autoFocus,maxLength:on}))),c.createElement("button",{type:"reset",title:a,className:"DocSearch-Reset","aria-label":l,hidden:!n.state.query},c.createElement(Ot,null))),c.createElement("button",{className:"DocSearch-Cancel",type:"reset","aria-label":f,onClick:n.onClose},s))}var dc=["_highlightResult","_snippetResult"];function vc(e,t){if(e==null)return{};var r=hc(e,t),n,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function hc(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a=0)&&(r[o]=e[o]);return r}function yc(){var e="__TEST_KEY__";try{return localStorage.setItem(e,""),localStorage.removeItem(e),!0}catch{return!1}}function gc(e){return yc()===!1?{setItem:function(){},getItem:function(){return[]}}:{setItem:function(r){return window.localStorage.setItem(e,JSON.stringify(r))},getItem:function(){var r=window.localStorage.getItem(e);return r?JSON.parse(r):[]}}}function wr(e){var t=e.key,r=e.limit,n=r===void 0?5:r,o=gc(t),a=o.getItem().slice(0,n);return{add:function(l){var u=l;u._highlightResult,u._snippetResult;var s=vc(u,dc),p=a.findIndex(function(f){return f.objectID===s.objectID});p>-1&&a.splice(p,1),a.unshift(s),a=a.slice(0,n),o.setItem(a)},remove:function(l){a=a.filter(function(u){return u.objectID!==l.objectID}),o.setItem(a)},getAll:function(){return a}}}function bc(e){const t=`algoliasearch-client-js-${e.key}`;let r;const n=()=>(r===void 0&&(r=e.localStorage||window.localStorage),r),o=()=>JSON.parse(n().getItem(t)||"{}"),a=l=>{n().setItem(t,JSON.stringify(l))},i=()=>{const l=e.timeToLive?e.timeToLive*1e3:null,u=o(),s=Object.fromEntries(Object.entries(u).filter(([,f])=>f.timestamp!==void 0));if(a(s),!l)return;const p=Object.fromEntries(Object.entries(s).filter(([,f])=>{const m=new Date().getTime();return!(f.timestamp+lPromise.resolve()}){return Promise.resolve().then(()=>{i();const p=JSON.stringify(l);return o()[p]}).then(p=>Promise.all([p?p.value:u(),p!==void 0])).then(([p,f])=>Promise.all([p,f||s.miss(p)])).then(([p])=>p)},set(l,u){return Promise.resolve().then(()=>{const s=o();return s[JSON.stringify(l)]={timestamp:new Date().getTime(),value:u},n().setItem(t,JSON.stringify(s)),u})},delete(l){return Promise.resolve().then(()=>{const u=o();delete u[JSON.stringify(l)],n().setItem(t,JSON.stringify(u))})},clear(){return Promise.resolve().then(()=>{n().removeItem(t)})}}}function ve(e){const t=[...e.caches],r=t.shift();return r===void 0?Sc():{get(n,o,a={miss:()=>Promise.resolve()}){return r.get(n,o,a).catch(()=>ve({caches:t}).get(n,o,a))},set(n,o){return r.set(n,o).catch(()=>ve({caches:t}).set(n,o))},delete(n){return r.delete(n).catch(()=>ve({caches:t}).delete(n))},clear(){return r.clear().catch(()=>ve({caches:t}).clear())}}}function Sc(){return{get(e,t,r={miss:()=>Promise.resolve()}){return t().then(o=>Promise.all([o,r.miss(o)])).then(([o])=>o)},set(e,t){return Promise.resolve(t)},delete(e){return Promise.resolve()},clear(){return Promise.resolve()}}}function mt(e={serializable:!0}){let t={};return{get(r,n,o={miss:()=>Promise.resolve()}){const a=JSON.stringify(r);if(a in t)return Promise.resolve(e.serializable?JSON.parse(t[a]):t[a]);const i=n(),l=o&&o.miss||(()=>Promise.resolve());return i.then(u=>l(u)).then(()=>i)},set(r,n){return t[JSON.stringify(r)]=e.serializable?JSON.stringify(n):n,Promise.resolve(n)},delete(r){return delete t[JSON.stringify(r)],Promise.resolve()},clear(){return t={},Promise.resolve()}}}function Oc(e,t,r){const n={"x-algolia-api-key":r,"x-algolia-application-id":t};return{headers(){return e===et.WithinHeaders?n:{}},queryParameters(){return e===et.WithinQueryParameters?n:{}}}}function _c(e){let t=e.length-1;for(t;t>0;t--){const r=Math.floor(Math.random()*(t+1)),n=e[t];e[t]=e[r],e[r]=n}return e}function ln(e,t){return t&&Object.keys(t).forEach(r=>{e[r]=t[r](e)}),e}function ot(e,...t){let r=0;return e.replace(/%s/g,()=>encodeURIComponent(t[r++]))}const wt="4.24.0",et={WithinQueryParameters:0,WithinHeaders:1};function Er(e,t){const r=e||{},n=r.data||{};return Object.keys(r).forEach(o=>{["timeout","headers","queryParameters","data","cacheable"].indexOf(o)===-1&&(n[o]=r[o])}),{data:Object.entries(n).length>0?n:void 0,timeout:r.timeout||t,headers:r.headers||{},queryParameters:r.queryParameters||{},cacheable:r.cacheable}}const ie={Read:1,Write:2,Any:3},Ne={Up:1,Down:2,Timeouted:3},un=2*60*1e3;function sn(e,t=Ne.Up){return{...e,status:t,lastUpdate:Date.now()}}function Ic(e){return e.status===Ne.Up||Date.now()-e.lastUpdate>un}function Pc(e){return e.status===Ne.Timeouted&&Date.now()-e.lastUpdate<=un}function fn(e){return typeof e=="string"?{protocol:"https",url:e,accept:ie.Any}:{protocol:e.protocol||"https",url:e.url,accept:e.accept||ie.Any}}const V={Delete:"DELETE",Get:"GET",Post:"POST",Put:"PUT"};function wc(e,t){return Promise.all(t.map(r=>e.get(r,()=>Promise.resolve(sn(r))))).then(r=>{const n=r.filter(l=>Ic(l)),o=r.filter(l=>Pc(l)),a=[...n,...o],i=a.length>0?a.map(l=>fn(l)):t;return{getTimeout(l,u){return(o.length===0&&l===0?1:o.length+3+l)*u},statelessHosts:i}})}const Ec=({isTimedOut:e,status:t})=>!e&&~~t===0,jc=e=>{const t=e.status;return e.isTimedOut||Ec(e)||~~(t/100)!==2&&~~(t/100)!==4},$c=({status:e})=>~~(e/100)===2,Ac=(e,t)=>jc(e)?t.onRetry(e):$c(e)?t.onSuccess(e):t.onFail(e);function jr(e,t,r,n){const o=[],a=Nc(r,n),i=Lc(e,n),l=r.method,u=r.method!==V.Get?{}:{...r.data,...n.data},s={"x-algolia-agent":e.userAgent.value,...e.queryParameters,...u,...n.queryParameters};let p=0;const f=(m,b)=>{const h=m.pop();if(h===void 0)throw Hc($r(o));const v={data:a,headers:i,method:l,url:Rc(h,r.path,s),connectTimeout:b(p,e.timeouts.connect),responseTimeout:b(p,n.timeout)},y=d=>{const S={request:v,response:d,host:h,triesLeft:m.length};return o.push(S),S},g={onSuccess:d=>Tc(d),onRetry(d){const S=y(d);return d.isTimedOut&&p++,Promise.all([e.logger.info("Retryable failure",pn(S)),e.hostsCache.set(h,sn(h,d.isTimedOut?Ne.Timeouted:Ne.Down))]).then(()=>f(m,b))},onFail(d){throw y(d),xc(d,$r(o))}};return e.requester.send(v).then(d=>Ac(d,g))};return wc(e.hostsCache,t).then(m=>f([...m.statelessHosts].reverse(),m.getTimeout))}function Cc(e){const{hostsCache:t,logger:r,requester:n,requestsCache:o,responsesCache:a,timeouts:i,userAgent:l,hosts:u,queryParameters:s,headers:p}=e,f={hostsCache:t,logger:r,requester:n,requestsCache:o,responsesCache:a,timeouts:i,userAgent:l,headers:p,queryParameters:s,hosts:u.map(m=>fn(m)),read(m,b){const h=Er(b,f.timeouts.read),v=()=>jr(f,f.hosts.filter(d=>(d.accept&ie.Read)!==0),m,h);if((h.cacheable!==void 0?h.cacheable:m.cacheable)!==!0)return v();const g={request:m,mappedRequestOptions:h,transporter:{queryParameters:f.queryParameters,headers:f.headers}};return f.responsesCache.get(g,()=>f.requestsCache.get(g,()=>f.requestsCache.set(g,v()).then(d=>Promise.all([f.requestsCache.delete(g),d]),d=>Promise.all([f.requestsCache.delete(g),Promise.reject(d)])).then(([d,S])=>S)),{miss:d=>f.responsesCache.set(g,d)})},write(m,b){return jr(f,f.hosts.filter(h=>(h.accept&ie.Write)!==0),m,Er(b,f.timeouts.write))}};return f}function Dc(e){const t={value:`Algolia for JavaScript (${e})`,add(r){const n=`; ${r.segment}${r.version!==void 0?` (${r.version})`:""}`;return t.value.indexOf(n)===-1&&(t.value=`${t.value}${n}`),t}};return t}function Tc(e){try{return JSON.parse(e.content)}catch(t){throw Mc(t.message,e)}}function xc({content:e,status:t},r){let n=e;try{n=JSON.parse(e).message}catch{}return kc(n,t,r)}function Rc(e,t,r){const n=mn(r);let o=`${e.protocol}://${e.url}/${t.charAt(0)==="/"?t.substr(1):t}`;return n.length&&(o+=`?${n}`),o}function mn(e){const t=r=>Object.prototype.toString.call(r)==="[object Object]"||Object.prototype.toString.call(r)==="[object Array]";return Object.keys(e).map(r=>ot("%s=%s",r,t(e[r])?JSON.stringify(e[r]):e[r])).join("&")}function Nc(e,t){if(e.method===V.Get||e.data===void 0&&t.data===void 0)return;const r=Array.isArray(e.data)?e.data:{...e.data,...t.data};return JSON.stringify(r)}function Lc(e,t){const r={...e.headers,...t.headers},n={};return Object.keys(r).forEach(o=>{const a=r[o];n[o.toLowerCase()]=a}),n}function $r(e){return e.map(t=>pn(t))}function pn(e){const t=e.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return{...e,request:{...e.request,headers:{...e.request.headers,...t}}}}function kc(e,t,r){return{name:"ApiError",message:e,status:t,transporterStackTrace:r}}function Mc(e,t){return{name:"DeserializationError",message:e,response:t}}function Hc(e){return{name:"RetryError",message:"Unreachable hosts - your application id may be incorrect. If the error persists, please reach out to the Algolia Support team: https://alg.li/support .",transporterStackTrace:e}}const Fc=e=>{const t=e.appId,r=Oc(e.authMode!==void 0?e.authMode:et.WithinHeaders,t,e.apiKey),n=Cc({hosts:[{url:`${t}-dsn.algolia.net`,accept:ie.Read},{url:`${t}.algolia.net`,accept:ie.Write}].concat(_c([{url:`${t}-1.algolianet.com`},{url:`${t}-2.algolianet.com`},{url:`${t}-3.algolianet.com`}])),...e,headers:{...r.headers(),"content-type":"application/x-www-form-urlencoded",...e.headers},queryParameters:{...r.queryParameters(),...e.queryParameters}});return ln({transporter:n,appId:t,addAlgoliaAgent(a,i){n.userAgent.add({segment:a,version:i})},clearCache(){return Promise.all([n.requestsCache.clear(),n.responsesCache.clear()]).then(()=>{})}},e.methods)},qc=e=>(t,r)=>t.method===V.Get?e.transporter.read(t,r):e.transporter.write(t,r),dn=e=>(t,r={})=>{const n={transporter:e.transporter,appId:e.appId,indexName:t};return ln(n,r.methods)},Ar=e=>(t,r)=>{const n=t.map(o=>({...o,params:mn(o.params||{})}));return e.transporter.read({method:V.Post,path:"1/indexes/*/queries",data:{requests:n},cacheable:!0},r)},Cr=e=>(t,r)=>Promise.all(t.map(n=>{const{facetName:o,facetQuery:a,...i}=n.params;return dn(e)(n.indexName,{methods:{searchForFacetValues:vn}}).searchForFacetValues(o,a,{...r,...i})})),Bc=e=>(t,r,n)=>e.transporter.read({method:V.Post,path:ot("1/answers/%s/prediction",e.indexName),data:{query:t,queryLanguages:r},cacheable:!0},n),Uc=e=>(t,r)=>e.transporter.read({method:V.Post,path:ot("1/indexes/%s/query",e.indexName),data:{query:t},cacheable:!0},r),vn=e=>(t,r,n)=>e.transporter.read({method:V.Post,path:ot("1/indexes/%s/facets/%s/query",e.indexName,t),data:{facetQuery:r},cacheable:!0},n);function Kc(e){return{debug(t,r){return Promise.resolve()},info(t,r){return Promise.resolve()},error(t,r){return console.error(t,r),Promise.resolve()}}}const Vc=e=>(t,r)=>{const n=t.map(o=>({...o,threshold:o.threshold||0}));return e.transporter.read({method:V.Post,path:"1/indexes/*/recommendations",data:{requests:n},cacheable:!0},r)};function Wc(){return{send(e){return new Promise(t=>{const r=new XMLHttpRequest;r.open(e.method,e.url,!0),Object.keys(e.headers).forEach(i=>r.setRequestHeader(i,e.headers[i]));const n=(i,l)=>setTimeout(()=>{r.abort(),t({status:0,content:l,isTimedOut:!0})},i*1e3),o=n(e.connectTimeout,"Connection timeout");let a;r.onreadystatechange=()=>{r.readyState>r.OPENED&&a===void 0&&(clearTimeout(o),a=n(e.responseTimeout,"Socket timeout"))},r.onerror=()=>{r.status===0&&(clearTimeout(o),clearTimeout(a),t({content:r.responseText||"Network request failed",status:r.status,isTimedOut:!1}))},r.onload=()=>{clearTimeout(o),clearTimeout(a),t({content:r.responseText,status:r.status,isTimedOut:!1})},r.send(e.data)})}}}function hn(e,t,r){const n={appId:e,apiKey:t,timeouts:{connect:1,read:2,write:30},requester:Wc(),logger:Kc(),responsesCache:mt(),requestsCache:mt({serializable:!1}),hostsCache:ve({caches:[bc({key:`${wt}-${e}`}),mt()]}),userAgent:Dc(wt).add({segment:"Browser",version:"lite"}),authMode:et.WithinQueryParameters};return Fc({...n,...r,methods:{search:Ar,searchForFacetValues:Cr,multipleQueries:Ar,multipleSearchForFacetValues:Cr,customRequest:qc,initIndex:o=>a=>dn(o)(a,{methods:{search:Uc,searchForFacetValues:vn,findAnswers:Bc}}),getRecommendations:Vc}})}hn.version=wt;var Dr="3.6.0";function zc(e,t,r){var n=c.useMemo(function(){var o=hn(e,t);return o.addAlgoliaAgent("docsearch",Dr),/docsearch.js \(.*\)/.test(o.transporter.userAgent.value)===!1&&o.addAlgoliaAgent("docsearch-react",Dr),r(o)},[e,t,r]);return n}function Qc(e){var t=e.getEnvironmentProps,r=e.panelElement,n=e.formElement,o=e.inputElement;c.useEffect(function(){if(r&&n&&o){var a=t({panelElement:r,formElement:n,inputElement:o}),i=a.onTouchStart,l=a.onTouchMove;return window.addEventListener("touchstart",i),window.addEventListener("touchmove",l),function(){window.removeEventListener("touchstart",i),window.removeEventListener("touchmove",l)}}},[t,r,n,o])}function Jc(e){var t=e.container;c.useEffect(function(){if(!t)return;var r=t.querySelectorAll("a[href]:not([disabled]), button:not([disabled]), input:not([disabled])"),n=r[0],o=r[r.length-1];function a(i){i.key==="Tab"&&(i.shiftKey?document.activeElement===n&&(i.preventDefault(),o.focus()):document.activeElement===o&&(i.preventDefault(),n.focus()))}return t.addEventListener("keydown",a),function(){t.removeEventListener("keydown",a)}},[t])}var Zc=["footer","searchBox"];function ye(){return ye=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function ol(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a=0)&&(r[o]=e[o]);return r}function al(e){var t=e.appId,r=e.apiKey,n=e.indexName,o=e.placeholder,a=o===void 0?"Search docs":o,i=e.searchParameters,l=e.maxResultsPerGroup,u=e.onClose,s=u===void 0?Xi:u,p=e.transformItems,f=p===void 0?Pr:p,m=e.hitComponent,b=m===void 0?Pi:m,h=e.resultsFooterComponent,v=h===void 0?function(){return null}:h,y=e.navigator,g=e.initialScrollY,d=g===void 0?0:g,S=e.transformSearchClient,w=S===void 0?Pr:S,_=e.disableUserPersonalization,I=_===void 0?!1:_,A=e.initialQuery,C=A===void 0?"":A,k=e.translations,D=k===void 0?{}:k,F=e.getMissingResultsUrl,$t=e.insights,at=$t===void 0?!1:$t,yn=D.footer,gn=D.searchBox,bn=nl(D,Zc),Sn=c.useState({query:"",collections:[],completion:null,context:{},isOpen:!1,activeItemId:null,status:"idle"}),At=Yc(Sn,2),q=At[0],On=At[1],Ct=c.useRef(null),it=c.useRef(null),Dt=c.useRef(null),Le=c.useRef(null),ce=c.useRef(null),B=c.useRef(10),Tt=c.useRef(typeof window<"u"?window.getSelection().toString().slice(0,on):"").current,W=c.useRef(C||Tt).current,xt=zc(t,r,w),G=c.useRef(wr({key:"__DOCSEARCH_FAVORITE_SEARCHES__".concat(n),limit:10})).current,le=c.useRef(wr({key:"__DOCSEARCH_RECENT_SEARCHES__".concat(n),limit:G.getAll().length===0?7:4})).current,ue=c.useCallback(function(P){if(!I){var R=P.type==="content"?P.__docsearch_parent:P;R&&G.getAll().findIndex(function(ct){return ct.objectID===R.objectID})===-1&&le.add(R)}},[G,le,I]),_n=c.useCallback(function(E){if(!(!q.context.algoliaInsightsPlugin||!E.__autocomplete_id)){var P=E,R={eventName:"Item Selected",index:P.__autocomplete_indexName,items:[P],positions:[E.__autocomplete_id],queryID:P.__autocomplete_queryID};q.context.algoliaInsightsPlugin.insights.clickedObjectIDsAfterSearch(R)}},[q.context.algoliaInsightsPlugin]),se=c.useMemo(function(){return Oi({id:"docsearch",defaultActiveItemId:0,placeholder:a,openOnFocus:!0,initialState:{query:W,context:{searchSuggestions:[]}},insights:at,navigator:y,onStateChange:function(P){On(P.state)},getSources:function(P){var R=P.query,ct=P.state,Nt=P.setContext,wn=P.setStatus;if(!R)return I?[]:[{sourceId:"recentSearches",onSelect:function(T){var x=T.item,fe=T.event;ue(x),Ve(fe)||s()},getItemUrl:function(T){var x=T.item;return x.url},getItems:function(){return le.getAll()}},{sourceId:"favoriteSearches",onSelect:function(T){var x=T.item,fe=T.event;ue(x),Ve(fe)||s()},getItemUrl:function(T){var x=T.item;return x.url},getItems:function(){return G.getAll()}}];var Lt=!!at;return xt.search([{query:R,indexName:n,params:pt({attributesToRetrieve:["hierarchy.lvl0","hierarchy.lvl1","hierarchy.lvl2","hierarchy.lvl3","hierarchy.lvl4","hierarchy.lvl5","hierarchy.lvl6","content","type","url"],attributesToSnippet:["hierarchy.lvl1:".concat(B.current),"hierarchy.lvl2:".concat(B.current),"hierarchy.lvl3:".concat(B.current),"hierarchy.lvl4:".concat(B.current),"hierarchy.lvl5:".concat(B.current),"hierarchy.lvl6:".concat(B.current),"content:".concat(B.current)],snippetEllipsisText:"…",highlightPreTag:"",highlightPostTag:"",hitsPerPage:20,clickAnalytics:Lt},i)}]).catch(function(N){throw N.name==="RetryError"&&wn("error"),N}).then(function(N){var T=N.results,x=T[0],fe=x.hits,En=x.nbHits,lt=Ir(fe,function(ut){return cn(ut)},l);ct.context.searchSuggestions.length0&&(Rt(),ce.current&&ce.current.focus())},[W,Rt]),c.useEffect(function(){function E(){if(it.current){var P=window.innerHeight*.01;it.current.style.setProperty("--docsearch-vh","".concat(P,"px"))}}return E(),window.addEventListener("resize",E),function(){window.removeEventListener("resize",E)}},[]),c.createElement("div",ye({ref:Ct},Pn({"aria-expanded":!0}),{className:["DocSearch","DocSearch-Container",q.status==="stalled"&&"DocSearch-Container--Stalled",q.status==="error"&&"DocSearch-Container--Errored"].filter(Boolean).join(" "),role:"button",tabIndex:0,onMouseDown:function(P){P.target===P.currentTarget&&s()}}),c.createElement("div",{className:"DocSearch-Modal",ref:it},c.createElement("header",{className:"DocSearch-SearchBar",ref:Dt},c.createElement(pc,ye({},se,{state:q,autoFocus:W.length===0,inputRef:ce,isFromSelection:!!W&&W===Tt,translations:gn,onClose:s}))),c.createElement("div",{className:"DocSearch-Dropdown",ref:Le},c.createElement(uc,ye({},se,{indexName:n,state:q,hitComponent:b,resultsFooterComponent:v,disableUserPersonalization:I,recentSearches:le,favoriteSearches:G,inputRef:ce,translations:bn,getMissingResultsUrl:F,onItemClick:function(P,R){_n(P),ue(P),Ve(R)||s()}}))),c.createElement("footer",{className:"DocSearch-Footer"},c.createElement(Ii,{translations:yn}))))}function il(e){var t=e.target,r=t.tagName;return t.isContentEditable||r==="INPUT"||r==="SELECT"||r==="TEXTAREA"}function cl(e){var t=e.isOpen,r=e.onOpen,n=e.onClose,o=e.onInput,a=e.searchButtonRef;c.useEffect(function(){function i(l){var u;function s(){document.body.classList.contains("DocSearch--active")||r()}(l.keyCode===27&&t||((u=l.key)===null||u===void 0?void 0:u.toLowerCase())==="k"&&(l.metaKey||l.ctrlKey)||!il(l)&&l.key==="/"&&!t)&&(l.preventDefault(),t?n():document.body.classList.contains("DocSearch--active")||s()),a&&a.current===document.activeElement&&o&&/[a-zA-Z0-9]/.test(String.fromCharCode(l.keyCode))&&o(l)}return window.addEventListener("keydown",i),function(){window.removeEventListener("keydown",i)}},[t,r,n,o,a])}function fl({lang:e="en",labels:t}){const[r,n]=be(!1),o=Et(document.getElementById("docsearch-search-button")),[a,i]=be(),l=he(()=>{n(!0)},[n]),u=he(()=>{n(!1)},[n]),s=he(p=>{n(!0),i(p.key)},[n,i]);return tt(()=>(o.current?.addEventListener("click",l),()=>o.current?.removeEventListener("click",l)),[o.current,l]),cl({isOpen:r,onOpen:l,onClose:u,onInput:s,searchButtonRef:o}),r?Kr(L(al,{initialQuery:a,initialScrollY:window.scrollY,onClose:u,indexName:"Heartbeat",appId:"VU887LTWYS",apiKey:"9c2d2fe7427b702ed94e71739cca84a6",searchParameters:{facetFilters:[[`lang:${e}`]]},insights:!0,getMissingResultsUrl:({query:p})=>`https://github.com/withastro/docs/issues/new?title=Missing+results+for+query+%22${encodeURIComponent(p)}%22`,transformItems:p=>p.map(f=>{const m=new URL(f.url);return m.hash==="#overview"&&(m.hash=""),{...f,url:m.href.replace(m.origin,"")}}),placeholder:t.placeholder,resultsFooterComponent:()=>L("div",{style:{marginBlock:"2em"},children:[L("p",{children:t.resultsFooterLede}),L("ul",{style:{display:"flex",gap:"1em",marginBlock:"0.5em",flexWrap:"wrap"},children:[L("li",{children:L("a",{href:"https://astro.build/integrations/",children:t.resultsFooterIntegrations})}),L("li",{children:L("a",{href:"https://astro.build/themes/",children:t.resultsFooterThemes})}),L("li",{children:L("a",{href:"https://astro.build/chat",children:t.resultsFooterDiscord})})]})]})}),document.body):null}export{fl as default}; diff --git a/_astro/LanguageSelect.Dtk2uU1l.js b/_astro/LanguageSelect.Ba_-wtzk.js similarity index 95% rename from _astro/LanguageSelect.Dtk2uU1l.js rename to _astro/LanguageSelect.Ba_-wtzk.js index 2f88c3a0d6..74d674ffbc 100644 --- a/_astro/LanguageSelect.Dtk2uU1l.js +++ b/_astro/LanguageSelect.Ba_-wtzk.js @@ -1 +1 @@ -/* empty css */import{u as e}from"./jsxRuntime.module.Cif6hlES.js";import"./preact.module.Cj4zUIh6.js";const r={en:"English"},h={en:"English"},c={BASE_URL:"/Heartbeat",MODE:"production",DEV:!1,PROD:!0,SSR:!1,SITE:"https://thoughtworks.github.io/Heartbeat/",ASSETS_PREFIX:void 0}.PUBLIC_TWO_LANG?h:r,m=({lang:n,label:t})=>e("label",{className:"language-select-wrapper",children:[e("span",{className:"sr-only",children:t}),e("svg",{width:"1.25em",height:"1.25em",viewBox:"0 0 88.6 77.3",focusable:"false","aria-hidden":"true",role:"img",children:[e("path",{fill:"currentColor",d:"M61 24.6h7.9l18.7 51.6h-7.7l-5.4-15.5H54.3l-5.6 15.5h-7.2L61 24.6zM72.6 55l-8-22.8L56.3 55h16.3z"}),e("path",{fill:"currentColor",d:"M53.6 60.6c-10-4-16-9-22-14 0 0 1.3 1.3 0 0-6 5-20 13-20 13l-4-6c8-5 10-6 19-13-2.1-1.9-12-13-13-19h8c4 9 10 14 10 14 10-8 10-19 10-19h8s-1 13-12 24c5 5 10 9 19 13l-3 7zm-52-44h56v-8h-23v-7h-9v7h-24v8z"})]}),e("select",{className:"header-button language-select",value:n,onChange:l=>{const a=l.currentTarget.value,[i,g,...o]=window.location.pathname.split("/"),s=o.join("/");window.location.pathname=`/${a}/${s}`},children:Object.entries(c).map(([l,a])=>e("option",{value:l,children:e("span",{children:[a,"   "]})},a))})]});export{m as default}; +/* empty css */import{u as e}from"./jsxRuntime.module.Dl9dozpx.js";import"./preact.module.DgCY89ob.js";const r={en:"English"},h={en:"English"},c={BASE_URL:"/Heartbeat",MODE:"production",DEV:!1,PROD:!0,SSR:!1,SITE:"https://thoughtworks.github.io/Heartbeat/",ASSETS_PREFIX:void 0}.PUBLIC_TWO_LANG?h:r,m=({lang:n,label:t})=>e("label",{className:"language-select-wrapper",children:[e("span",{className:"sr-only",children:t}),e("svg",{width:"1.25em",height:"1.25em",viewBox:"0 0 88.6 77.3",focusable:"false","aria-hidden":"true",role:"img",children:[e("path",{fill:"currentColor",d:"M61 24.6h7.9l18.7 51.6h-7.7l-5.4-15.5H54.3l-5.6 15.5h-7.2L61 24.6zM72.6 55l-8-22.8L56.3 55h16.3z"}),e("path",{fill:"currentColor",d:"M53.6 60.6c-10-4-16-9-22-14 0 0 1.3 1.3 0 0-6 5-20 13-20 13l-4-6c8-5 10-6 19-13-2.1-1.9-12-13-13-19h8c4 9 10 14 10 14 10-8 10-19 10-19h8s-1 13-12 24c5 5 10 9 19 13l-3 7zm-52-44h56v-8h-23v-7h-9v7h-24v8z"})]}),e("select",{className:"header-button language-select",value:n,onChange:l=>{const a=l.currentTarget.value,[i,g,...o]=window.location.pathname.split("/"),s=o.join("/");window.location.pathname=`/${a}/${s}`},children:Object.entries(c).map(([l,a])=>e("option",{value:l,children:e("span",{children:[a,"   "]})},a))})]});export{m as default}; diff --git a/_astro/SidebarToggle.BVOloHYB.js b/_astro/SidebarToggle.Ct2-Etuj.js similarity index 88% rename from _astro/SidebarToggle.BVOloHYB.js rename to _astro/SidebarToggle.Ct2-Etuj.js index e5cc91fda4..d8ce27b93d 100644 --- a/_astro/SidebarToggle.BVOloHYB.js +++ b/_astro/SidebarToggle.Ct2-Etuj.js @@ -1 +1 @@ -import{p as a,_ as n}from"./hooks.module.Bw6G1nmB.js";/* empty css */import{u as t}from"./jsxRuntime.module.Cif6hlES.js";import"./preact.module.Cj4zUIh6.js";const u=()=>{const[e,s]=a(!1);return n(()=>{const r=document.getElementsByTagName("body")[0];e?(r.classList.add("mobile-sidebar-toggle"),document.querySelectorAll("aside nav details").forEach(o=>{o.removeAttribute("open")}),document.querySelector('details a[data-current-parent="true"]')?.closest("details")?.setAttribute("open","")):(r.classList.remove("mobile-sidebar-toggle"),document.querySelectorAll("aside nav details").forEach(o=>{o.setAttribute("open","")}))},[e]),t("button",{id:"menu-toggle",className:"header-button",type:"button","aria-pressed":e?"true":"false",onClick:()=>s(!e),children:[t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:t("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 6h16M4 12h16M4 18h16"})}),t("span",{className:"sr-only",children:"Toggle sidebar"})]})};export{u as default}; +import{p as a,_ as n}from"./hooks.module.BJvh2z1e.js";/* empty css */import{u as t}from"./jsxRuntime.module.Dl9dozpx.js";import"./preact.module.DgCY89ob.js";const u=()=>{const[e,s]=a(!1);return n(()=>{const r=document.getElementsByTagName("body")[0];e?(r.classList.add("mobile-sidebar-toggle"),document.querySelectorAll("aside nav details").forEach(o=>{o.removeAttribute("open")}),document.querySelector('details a[data-current-parent="true"]')?.closest("details")?.setAttribute("open","")):(r.classList.remove("mobile-sidebar-toggle"),document.querySelectorAll("aside nav details").forEach(o=>{o.setAttribute("open","")}))},[e]),t("button",{id:"menu-toggle",className:"header-button",type:"button","aria-pressed":e?"true":"false",onClick:()=>s(!e),children:[t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:t("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 6h16M4 12h16M4 18h16"})}),t("span",{className:"sr-only",children:"Toggle sidebar"})]})};export{u as default}; diff --git a/_astro/SidebarToggleTabGroup.Rxjs2sdO.js b/_astro/SidebarToggleTabGroup.NjAxzBoD.js similarity index 67% rename from _astro/SidebarToggleTabGroup.Rxjs2sdO.js rename to _astro/SidebarToggleTabGroup.NjAxzBoD.js index ee9d940324..b631f33e8c 100644 --- a/_astro/SidebarToggleTabGroup.Rxjs2sdO.js +++ b/_astro/SidebarToggleTabGroup.NjAxzBoD.js @@ -1 +1 @@ -import{p as s}from"./hooks.module.Bw6G1nmB.js";/* empty css */import{u as a}from"./jsxRuntime.module.Cif6hlES.js";import"./preact.module.Cj4zUIh6.js";const v=({defaultActiveTab:r,labels:c})=>{const[t,i]=s(r);function l(o){document.querySelectorAll("li.nav-group").forEach(e=>e.classList.remove("active")),document.querySelectorAll(`li.nav-group.${o}`).forEach(e=>e.classList.add("active")),i(o)}return a("div",{className:"TabGroup",children:["tech","biz"].map(o=>a("button",{className:t===o?"active":"",onClick:()=>l(o),children:c[o]},o))})};export{v as default}; +import{p as s}from"./hooks.module.BJvh2z1e.js";/* empty css */import{u as a}from"./jsxRuntime.module.Dl9dozpx.js";import"./preact.module.DgCY89ob.js";const v=({defaultActiveTab:r,labels:c})=>{const[t,i]=s(r);function l(o){document.querySelectorAll("li.nav-group").forEach(e=>e.classList.remove("active")),document.querySelectorAll(`li.nav-group.${o}`).forEach(e=>e.classList.add("active")),i(o)}return a("div",{className:"TabGroup",children:["tech","biz"].map(o=>a("button",{className:t===o?"active":"",onClick:()=>l(o),children:c[o]},o))})};export{v as default}; diff --git a/_astro/TableOfContents.DJAVBOO9.js b/_astro/TableOfContents.a6sp75a1.js similarity index 83% rename from _astro/TableOfContents.DJAVBOO9.js rename to _astro/TableOfContents.a6sp75a1.js index f0d22a341b..f68e16a18f 100644 --- a/_astro/TableOfContents.DJAVBOO9.js +++ b/_astro/TableOfContents.a6sp75a1.js @@ -1 +1 @@ -import{p as m,_ as w}from"./hooks.module.Bw6G1nmB.js";/* empty css */import{u as e}from"./jsxRuntime.module.Cif6hlES.js";import{g as N}from"./preact.module.Cj4zUIh6.js";const{replace:T}="",k=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34);/g,O={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'},A=n=>O[n],I=n=>T.call(n,k,A);function f(n){return I(n).replaceAll("<","<").replaceAll("&","&")}const L=({toc:n=[],labels:x,isMobile:c})=>{const[i,u]=m({slug:n[0].slug,text:n[0].text}),[g,d]=m(!c),h="on-this-page-heading",v=({children:t})=>c?e("details",{open:g,onToggle:s=>d(s.currentTarget.open),className:"toc-mobile-container",children:t}):e(N,{children:t}),C=({children:t})=>c?e("summary",{className:"toc-mobile-header",children:e("div",{className:"toc-mobile-header-content",children:[e("div",{className:"toc-toggle",children:[t,e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 1 16 16",width:"16",height:"16","aria-hidden":"true",children:e("path",{fillRule:"evenodd",d:"M6.22 3.22a.75.75 0 011.06 0l4.25 4.25a.75.75 0 010 1.06l-4.25 4.25a.75.75 0 01-1.06-1.06L9.94 8 6.22 4.28a.75.75 0 010-1.06z"})})]}),!g&&i?.slug!=="overview"&&e("span",{className:"toc-current-heading",children:f(i?.text||"")})]})}):t;w(()=>{const t=a=>{for(const r of a)if(r.isIntersecting){const{id:l}=r.target;if(l===h)continue;u({slug:r.target.id,text:r.target.textContent||""});break}},s={rootMargin:"-100px 0% -66%",threshold:1},o=new IntersectionObserver(t,s);return document.querySelectorAll("article :is(h1,h2,h3)").forEach(a=>o.observe(a)),()=>o.disconnect()},[]);const b=t=>{c&&(d(!1),u({slug:t.currentTarget.getAttribute("href").replace("#",""),text:t.currentTarget.textContent||""}))},p=({heading:t})=>{const{depth:s,slug:o,text:a,children:r}=t;return e("li",{children:[e("a",{className:`header-link depth-${s} ${i.slug===o?"current-header-link":""}`.trim(),href:`#${o}`,onClick:b,children:f(a)}),r.length>0?e("ul",{children:r.map(l=>e(p,{heading:l},l.slug))}):null]})};return e(v,{children:[e(C,{children:e("h2",{className:"heading",id:h,children:x.onThisPage})}),e("ul",{className:"toc-root",children:n.map(t=>e(p,{heading:t},t.slug))})]})};export{L as default}; +import{p as m,_ as w}from"./hooks.module.BJvh2z1e.js";/* empty css */import{u as e}from"./jsxRuntime.module.Dl9dozpx.js";import{k as N}from"./preact.module.DgCY89ob.js";const{replace:T}="",k=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34);/g,O={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'},A=n=>O[n],I=n=>T.call(n,k,A);function f(n){return I(n).replaceAll("<","<").replaceAll("&","&")}const L=({toc:n=[],labels:x,isMobile:c})=>{const[i,u]=m({slug:n[0].slug,text:n[0].text}),[d,g]=m(!c),h="on-this-page-heading",v=({children:t})=>c?e("details",{open:d,onToggle:s=>g(s.currentTarget.open),className:"toc-mobile-container",children:t}):e(N,{children:t}),C=({children:t})=>c?e("summary",{className:"toc-mobile-header",children:e("div",{className:"toc-mobile-header-content",children:[e("div",{className:"toc-toggle",children:[t,e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 1 16 16",width:"16",height:"16","aria-hidden":"true",children:e("path",{fillRule:"evenodd",d:"M6.22 3.22a.75.75 0 011.06 0l4.25 4.25a.75.75 0 010 1.06l-4.25 4.25a.75.75 0 01-1.06-1.06L9.94 8 6.22 4.28a.75.75 0 010-1.06z"})})]}),!d&&i?.slug!=="overview"&&e("span",{className:"toc-current-heading",children:f(i?.text||"")})]})}):t;w(()=>{const t=a=>{for(const r of a)if(r.isIntersecting){const{id:l}=r.target;if(l===h)continue;u({slug:r.target.id,text:r.target.textContent||""});break}},s={rootMargin:"-100px 0% -66%",threshold:1},o=new IntersectionObserver(t,s);return document.querySelectorAll("article :is(h1,h2,h3)").forEach(a=>o.observe(a)),()=>o.disconnect()},[]);const b=t=>{c&&(g(!1),u({slug:t.currentTarget.getAttribute("href").replace("#",""),text:t.currentTarget.textContent||""}))},p=({heading:t})=>{const{depth:s,slug:o,text:a,children:r}=t;return e("li",{children:[e("a",{className:`header-link depth-${s} ${i.slug===o?"current-header-link":""}`.trim(),href:`#${o}`,onClick:b,children:f(a)}),r.length>0?e("ul",{children:r.map(l=>e(p,{heading:l},l.slug))}):null]})};return e(v,{children:[e(C,{children:e("h2",{className:"heading",id:h,children:x.onThisPage})}),e("ul",{className:"toc-root",children:n.map(t=>e(p,{heading:t},t.slug))})]})};export{L as default}; diff --git a/_astro/Tabs.BDXNrmPh.js b/_astro/Tabs.BDXNrmPh.js deleted file mode 100644 index 336c95bcd2..0000000000 --- a/_astro/Tabs.BDXNrmPh.js +++ /dev/null @@ -1 +0,0 @@ -import{p as T,_ as x,F as v,A as N}from"./hooks.module.Bw6G1nmB.js";/* empty css */import{s as p}from"./Tabs_module.10b4e6eb.DqIA4t4U.js";import{u as m}from"./jsxRuntime.module.Cif6hlES.js";import"./preact.module.Cj4zUIh6.js";let c=[],K=(t,e)=>{let o=[],n={get(){return n.lc||n.listen(()=>{})(),n.value},l:e||0,lc:0,listen(r,u){return n.lc=o.push(r,u||n.l)/2,()=>{let a=o.indexOf(r);~a&&(o.splice(a,2),--n.lc||n.off())}},notify(r,u){let a=!c.length;for(let l=0;l{n.has(a)&&o(r,u,a)})}let F=(t={})=>{let e=K(t);return e.setKey=function(o,n){let r=e.value;typeof n>"u"&&o in e.value?(e.value={...e.value},delete e.value[o],e.notify(r,o)):e.value[o]!==n&&(e.value={...e.value,[o]:n},e.notify(r,o))},e};const S=K(0),B=F({});function P(){const t=S.get();return S.set(t+1),t}function A(t,e={}){let[,o]=T({}),[n]=T(t.get());return x(()=>{n!==t.get()&&o({})},[]),x(()=>{let r,u,a,l=()=>{r||(r=1,u=setTimeout(()=>{r=void 0,o({})}))};return e.keys?a=j(t,e.keys,l):a=t.listen(l),()=>{a(),clearTimeout(u)}},[t,""+e.keys]),t.get()}function L(t,e){const o=A(B),n=T(t);if(!e)return n;const r=o[e]?.curr??t;function u(a){if(e)B.setKey(e,{curr:a});else throw new Error("[Tabs] Looks like a sharedStore key is no longer present on your tab view! If your store key is dynamic, consider using a static string value instead.")}return[r,u]}const w="tab.",I="panel.";function O(t){const[e]=t;return e.startsWith(w)}function Q(t){const[e]=t;return e.startsWith(I)}function g(t){return t.replace(new RegExp(`^${w}`),"")}function $(t){return t.replace(new RegExp(`^${I}`),"")}function M({sharedStore:t,...e}){const o=P(),n=Object.entries(e).filter(Q).filter(i=>!R(i)),r=Object.entries(e).filter(O).filter(([i])=>!R(n.find(([s])=>s===`${I}${g(i)}`))),u=v({}),a=v(null),l=v(null),d=v(null),h=n[0]?.[0]??"",[b,E]=L($(h),t);function y(i,s){t&&(a.current=s),E(g(i))}function R(i){return!i||(typeof i[1]!="object"?i[1]:i[1].props.value.toString())===""}x(()=>{a.current&&(a.current.scrollIntoView({behavior:"smooth"}),a.current=null)},[b]),N(()=>{const i=u?.current[`tab.${b}`];if(d.current&&l.current&&i){const s=i.getBoundingClientRect(),f=l.current.getBoundingClientRect();d.current.style.width||(d.current.style.width="1px"),d.current.style.transform=`translateX(${s.left-f.left}px) scaleX(${s.width})`}},[b]);function C(i){if(i.key==="ArrowLeft"){const s=r.findIndex(([f])=>g(f)===b);if(s>0){const[f]=r[s-1];y(f,u.current[f]),u.current[f]?.focus()}}if(i.key==="ArrowRight"){const s=r.findIndex(([f])=>g(f)===b);if(sm("button",{ref:f=>u.current[i]=f,onClick:()=>y(i,u.current[i]),"aria-selected":b===g(i),tabIndex:b===g(i)?0:-1,role:"tab",type:"button",className:p.tab,id:`${o}-${i}`,children:s},i)),m("span",{ref:d,className:p.selectedIndicator,"aria-hidden":"true"})]})}),n.map(([i,s])=>m("div",{hidden:b!==$(i),role:"tabpanel","aria-labelledby":`${o}-${w}${$(i)}`,className:p.tabpanel,children:s},i))]})}export{M as default}; diff --git a/_astro/Tabs.DhHLcrHQ.js b/_astro/Tabs.DhHLcrHQ.js new file mode 100644 index 0000000000..6bd193fd97 --- /dev/null +++ b/_astro/Tabs.DhHLcrHQ.js @@ -0,0 +1 @@ +import{p as T,_ as x,F as v,A as N}from"./hooks.module.BJvh2z1e.js";/* empty css */import{s as p}from"./Tabs_module.10b4e6eb.DqIA4t4U.js";import{u as m}from"./jsxRuntime.module.Dl9dozpx.js";import"./preact.module.DgCY89ob.js";let c=[],K=(t,e)=>{let o=[],n={get(){return n.lc||n.listen(()=>{})(),n.value},l:0,lc:0,listen(r,u){return n.lc=o.push(r,u||n.l)/2,()=>{let a=o.indexOf(r);~a&&(o.splice(a,2),--n.lc||n.off())}},notify(r,u){let a=!c.length;for(let i=0;i{n.has(a)&&o(r,u,a)})}let F=(t={})=>{let e=K(t);return e.setKey=function(o,n){let r=e.value;typeof n>"u"&&o in e.value?(e.value={...e.value},delete e.value[o],e.notify(r,o)):e.value[o]!==n&&(e.value={...e.value,[o]:n},e.notify(r,o))},e};const S=K(0),B=F({});function P(){const t=S.get();return S.set(t+1),t}function A(t,e={}){let[,o]=T({}),[n]=T(t.get());return x(()=>{n!==t.get()&&o({})},[]),x(()=>{let r,u,a,i=()=>{r||(r=1,u=setTimeout(()=>{r=void 0,o({})}))};return e.keys?a=j(t,e.keys,i):a=t.listen(i),()=>{a(),clearTimeout(u)}},[t,""+e.keys]),t.get()}function L(t,e){const o=A(B),n=T(t);if(!e)return n;const r=o[e]?.curr??t;function u(a){if(e)B.setKey(e,{curr:a});else throw new Error("[Tabs] Looks like a sharedStore key is no longer present on your tab view! If your store key is dynamic, consider using a static string value instead.")}return[r,u]}const w="tab.",I="panel.";function O(t){const[e]=t;return e.startsWith(w)}function Q(t){const[e]=t;return e.startsWith(I)}function g(t){return t.replace(new RegExp(`^${w}`),"")}function $(t){return t.replace(new RegExp(`^${I}`),"")}function M({sharedStore:t,...e}){const o=P(),n=Object.entries(e).filter(Q).filter(l=>!R(l)),r=Object.entries(e).filter(O).filter(([l])=>!R(n.find(([s])=>s===`${I}${g(l)}`))),u=v({}),a=v(null),i=v(null),d=v(null),h=n[0]?.[0]??"",[b,E]=L($(h),t);function y(l,s){t&&(a.current=s),E(g(l))}function R(l){return!l||(typeof l[1]!="object"?l[1]:l[1].props.value.toString())===""}x(()=>{a.current&&(a.current.scrollIntoView({behavior:"smooth"}),a.current=null)},[b]),N(()=>{const l=u?.current[`tab.${b}`];if(d.current&&i.current&&l){const s=l.getBoundingClientRect(),f=i.current.getBoundingClientRect();d.current.style.width||(d.current.style.width="1px"),d.current.style.transform=`translateX(${s.left-f.left}px) scaleX(${s.width})`}},[b]);function C(l){if(l.key==="ArrowLeft"){const s=r.findIndex(([f])=>g(f)===b);if(s>0){const[f]=r[s-1];y(f,u.current[f]),u.current[f]?.focus()}}if(l.key==="ArrowRight"){const s=r.findIndex(([f])=>g(f)===b);if(sm("button",{ref:f=>u.current[l]=f,onClick:()=>y(l,u.current[l]),"aria-selected":b===g(l),tabIndex:b===g(l)?0:-1,role:"tab",type:"button",className:p.tab,id:`${o}-${l}`,children:s},l)),m("span",{ref:d,className:p.selectedIndicator,"aria-hidden":"true"})]})}),n.map(([l,s])=>m("div",{hidden:b!==$(l),role:"tabpanel","aria-labelledby":`${o}-${w}${$(l)}`,className:p.tabpanel,children:s},l))]})}export{M as default}; diff --git a/_astro/ThemeToggleButton.CfOuxILn.js b/_astro/ThemeToggleButton.CwYw6F4F.js similarity index 93% rename from _astro/ThemeToggleButton.CfOuxILn.js rename to _astro/ThemeToggleButton.CwYw6F4F.js index ca1598610a..e40b4b3741 100644 --- a/_astro/ThemeToggleButton.CfOuxILn.js +++ b/_astro/ThemeToggleButton.CwYw6F4F.js @@ -1 +1 @@ -import{p as d,_ as m}from"./hooks.module.Bw6G1nmB.js";/* empty css */import{u as t}from"./jsxRuntime.module.Cif6hlES.js";import"./preact.module.Cj4zUIh6.js";const g=["light","dark"],u=[t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:t("path",{fillRule:"evenodd",d:"M10 2a1 1 0 011 1v1a1 1 0 11-2 0V3a1 1 0 011-1zm4 8a4 4 0 11-8 0 4 4 0 018 0zm-.464 4.95l.707.707a1 1 0 001.414-1.414l-.707-.707a1 1 0 00-1.414 1.414zm2.12-10.607a1 1 0 010 1.414l-.706.707a1 1 0 11-1.414-1.414l.707-.707a1 1 0 011.414 0zM17 11a1 1 0 100-2h-1a1 1 0 100 2h1zm-7 4a1 1 0 011 1v1a1 1 0 11-2 0v-1a1 1 0 011-1zM5.05 6.464A1 1 0 106.465 5.05l-.708-.707a1 1 0 00-1.414 1.414l.707.707zm1.414 8.486l-.707.707a1 1 0 01-1.414-1.414l.707-.707a1 1 0 011.414 1.414zM4 11a1 1 0 100-2H3a1 1 0 000 2h1z",clipRule:"evenodd"})},"light"),t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:t("path",{d:"M17.293 13.293A8 8 0 016.707 2.707a8.001 8.001 0 1010.586 10.586z"})},"dark")],f=({labels:o,isInsideHeader:s})=>{const[a,r]=d();return m(()=>{r(document.documentElement.classList.contains("theme-dark")?"dark":"light")},[]),m(()=>{const e=document.documentElement;a==="light"?e.classList.remove("theme-dark"):a==="dark"&&e.classList.add("theme-dark")},[a]),t("div",{className:`theme-toggle ${s?"hide-toggle-on-smaller-screens":""}`,children:g.map((e,c)=>{const n=u[c],h=e===a,l=e==="light"?o.useLight:o.useDark;return t("label",{title:l,className:h?"checked":"",children:[n,t("input",{type:"radio",name:"theme-toggle",checked:h,value:e,"aria-label":l,onChange:()=>{const i=window.matchMedia("(prefers-color-scheme: dark)").matches;i&&e==="dark"||!i&&e==="light"?localStorage.removeItem("theme"):localStorage.setItem("theme",e),r(e)}})]},l)})})};export{f as default}; +import{p as d,_ as m}from"./hooks.module.BJvh2z1e.js";/* empty css */import{u as t}from"./jsxRuntime.module.Dl9dozpx.js";import"./preact.module.DgCY89ob.js";const g=["light","dark"],u=[t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:t("path",{fillRule:"evenodd",d:"M10 2a1 1 0 011 1v1a1 1 0 11-2 0V3a1 1 0 011-1zm4 8a4 4 0 11-8 0 4 4 0 018 0zm-.464 4.95l.707.707a1 1 0 001.414-1.414l-.707-.707a1 1 0 00-1.414 1.414zm2.12-10.607a1 1 0 010 1.414l-.706.707a1 1 0 11-1.414-1.414l.707-.707a1 1 0 011.414 0zM17 11a1 1 0 100-2h-1a1 1 0 100 2h1zm-7 4a1 1 0 011 1v1a1 1 0 11-2 0v-1a1 1 0 011-1zM5.05 6.464A1 1 0 106.465 5.05l-.708-.707a1 1 0 00-1.414 1.414l.707.707zm1.414 8.486l-.707.707a1 1 0 01-1.414-1.414l.707-.707a1 1 0 011.414 1.414zM4 11a1 1 0 100-2H3a1 1 0 000 2h1z",clipRule:"evenodd"})},"light"),t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:t("path",{d:"M17.293 13.293A8 8 0 016.707 2.707a8.001 8.001 0 1010.586 10.586z"})},"dark")],f=({labels:o,isInsideHeader:s})=>{const[a,r]=d();return m(()=>{r(document.documentElement.classList.contains("theme-dark")?"dark":"light")},[]),m(()=>{const e=document.documentElement;a==="light"?e.classList.remove("theme-dark"):a==="dark"&&e.classList.add("theme-dark")},[a]),t("div",{className:`theme-toggle ${s?"hide-toggle-on-smaller-screens":""}`,children:g.map((e,c)=>{const n=u[c],h=e===a,l=e==="light"?o.useLight:o.useDark;return t("label",{title:l,className:h?"checked":"",children:[n,t("input",{type:"radio",name:"theme-toggle",checked:h,value:e,"aria-label":l,onChange:()=>{const i=window.matchMedia("(prefers-color-scheme: dark)").matches;i&&e==="dark"||!i&&e==="light"?localStorage.removeItem("theme"):localStorage.setItem("theme",e),r(e)}})]},l)})})};export{f as default}; diff --git a/_astro/client.CYkdvik1.js b/_astro/client.CYkdvik1.js new file mode 100644 index 0000000000..0e4b789959 --- /dev/null +++ b/_astro/client.CYkdvik1.js @@ -0,0 +1,2 @@ +const __vite__fileDeps=["_astro/signals.module.Uw5cylxH.js","_astro/preact.module.DgCY89ob.js","_astro/hooks.module.BJvh2z1e.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); +import{_ as f,B as p,D as y}from"./preact.module.DgCY89ob.js";const w="modulepreload",E=function(e){return"/Heartbeat/"+e},h={},S=function(l,n,i){let d=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),o=a?.nonce||a?.getAttribute("nonce");d=Promise.all(n.map(r=>{if(r=E(r),r in h)return;h[r]=!0;const s=r.endsWith(".css"),c=s?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${r}"]${c}`))return;const t=document.createElement("link");if(t.rel=s?"stylesheet":w,s||(t.as="script",t.crossOrigin=""),t.href=r,o&&t.setAttribute("nonce",o),document.head.appendChild(t),s)return new Promise((u,m)=>{t.addEventListener("load",u),t.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${r}`)))})}))}return d.then(()=>l()).catch(a=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=a,window.dispatchEvent(o),!o.defaultPrevented)throw a})},_=({value:e,name:l,hydrate:n=!0})=>e?f(n?"astro-slot":"astro-static-slot",{name:l,dangerouslySetInnerHTML:{__html:e}}):null;_.shouldComponentUpdate=()=>!1;var v=_;const g=new Map;var N=e=>async(l,n,{default:i,...d},{client:a})=>{if(!e.hasAttribute("ssr"))return;for(const[s,c]of Object.entries(d))n[s]=f(v,{value:c,name:s});if(e.dataset.preactSignals){const{signal:s}=await S(async()=>{const{signal:t}=await import("./signals.module.Uw5cylxH.js");return{signal:t}},__vite__mapDeps([0,1,2]));let c=JSON.parse(e.dataset.preactSignals);for(const[t,u]of Object.entries(c)){if(!g.has(u)){const m=s(n[t]);g.set(u,m)}n[t]=g.get(u)}}(a!=="only"?y:p)(f(l,n,i!=null?f(v,{value:i}):i),e),e.addEventListener("astro:unmount",()=>p(null,e),{once:!0})};export{N as default}; diff --git a/_astro/client.D0wpCfuT.js b/_astro/client.D0wpCfuT.js deleted file mode 100644 index 04a52be36c..0000000000 --- a/_astro/client.D0wpCfuT.js +++ /dev/null @@ -1,7 +0,0 @@ -function __vite__mapDeps(indexes) { - if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["_astro/signals.module.tc2-WFaC.js","_astro/preact.module.Cj4zUIh6.js","_astro/hooks.module.Bw6G1nmB.js"] - } - return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) -} -import{y as g,q as v,B as S}from"./preact.module.Cj4zUIh6.js";const b="modulepreload",w=function(e){return"/Heartbeat/"+e},y={},k=function(i,n,l){let u=Promise.resolve();if(n&&n.length>0){const a=document.getElementsByTagName("link"),o=document.querySelector("meta[property=csp-nonce]"),h=o?.nonce||o?.getAttribute("nonce");u=Promise.all(n.map(t=>{if(t=w(t),t in y)return;y[t]=!0;const r=t.endsWith(".css"),f=r?'[rel="stylesheet"]':"";if(!!l)for(let c=a.length-1;c>=0;c--){const m=a[c];if(m.href===t&&(!r||m.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${t}"]${f}`))return;const s=document.createElement("link");if(s.rel=r?"stylesheet":b,r||(s.as="script",s.crossOrigin=""),s.href=t,h&&s.setAttribute("nonce",h),document.head.appendChild(s),r)return new Promise((c,m)=>{s.addEventListener("load",c),s.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${t}`)))})}))}return u.then(()=>i()).catch(a=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=a,window.dispatchEvent(o),!o.defaultPrevented)throw a})},E=({value:e,name:i,hydrate:n=!0})=>e?g(n?"astro-slot":"astro-static-slot",{name:i,dangerouslySetInnerHTML:{__html:e}}):null;E.shouldComponentUpdate=()=>!1;var _=E;const p=new Map;var R=e=>async(i,n,{default:l,...u},{client:a})=>{if(!e.hasAttribute("ssr"))return;for(const[t,r]of Object.entries(u))n[t]=g(_,{value:r,name:t});if(e.dataset.preactSignals){const{signal:t}=await k(()=>import("./signals.module.tc2-WFaC.js"),__vite__mapDeps([0,1,2]));let r=JSON.parse(e.dataset.preactSignals);for(const[f,d]of Object.entries(r)){if(!p.has(d)){const s=t(n[f]);p.set(d,s)}n[f]=p.get(d)}}(a!=="only"?S:v)(g(i,n,l!=null?g(_,{value:l}):l),e),e.addEventListener("astro:unmount",()=>v(null,e),{once:!0})};export{R as default}; diff --git a/_astro/hooks.module.Bw6G1nmB.js b/_astro/hooks.module.BJvh2z1e.js similarity index 98% rename from _astro/hooks.module.Bw6G1nmB.js rename to _astro/hooks.module.BJvh2z1e.js index 0a3432227f..2f1f7dc500 100644 --- a/_astro/hooks.module.Bw6G1nmB.js +++ b/_astro/hooks.module.BJvh2z1e.js @@ -1 +1 @@ -import{l as W}from"./preact.module.Cj4zUIh6.js";var a,u,d,g,v=0,x=[],p=[],o=W,A=o.__b,F=o.__r,b=o.diffed,q=o.__c,k=o.unmount,T=o.__;function m(_,t){o.__h&&o.__h(u,_,v||t),v=0;var r=u.__H||(u.__H={__:[],__h:[]});return _>=r.__.length&&r.__.push({__V:p}),r.__[_]}function $(_){return v=1,j(D,_)}function j(_,t,r){var n=m(a++,2);if(n.t=_,!n.__c&&(n.__=[r?r(t):D(void 0,t),function(c){var e=n.__N?n.__N[0]:n.__[0],f=n.t(e,c);e!==f&&(n.__N=[f,n.__[1]],n.__c.setState({}))}],n.__c=u,!u.u)){var h=function(c,e,f){if(!n.__c.__H)return!0;var s=n.__c.__H.__.filter(function(i){return!!i.__c});if(s.every(function(i){return!i.__N}))return!l||l.call(this,c,e,f);var E=!1;return s.forEach(function(i){if(i.__N){var P=i.__[0];i.__=i.__N,i.__N=void 0,P!==i.__[0]&&(E=!0)}}),!(!E&&n.__c.props===c)&&(!l||l.call(this,c,e,f))};u.u=!0;var l=u.shouldComponentUpdate,y=u.componentWillUpdate;u.componentWillUpdate=function(c,e,f){if(this.__e){var s=l;l=void 0,h(c,e,f),l=s}y&&y.call(this,c,e,f)},u.shouldComponentUpdate=h}return n.__N||n.__}function G(_,t){var r=m(a++,3);!o.__s&&V(r.__H,t)&&(r.__=_,r.i=t,u.__H.__h.push(r))}function w(_,t){var r=m(a++,4);!o.__s&&V(r.__H,t)&&(r.__=_,r.i=t,u.__h.push(r))}function I(_){return v=5,C(function(){return{current:_}},[])}function J(_,t,r){v=6,w(function(){return typeof _=="function"?(_(t()),function(){return _(null)}):_?(_.current=t(),function(){return _.current=null}):void 0},r==null?r:r.concat(_))}function C(_,t){var r=m(a++,7);return V(r.__H,t)?(r.__V=_(),r.i=t,r.__h=_,r.__V):r.__}function K(_,t){return v=8,C(function(){return _},t)}function L(_){var t=u.context[_.__c],r=m(a++,9);return r.c=_,t?(r.__==null&&(r.__=!0,t.sub(u)),t.props.value):_.__}function M(_,t){o.useDebugValue&&o.useDebugValue(t?t(_):_)}function O(){var _=m(a++,11);if(!_.__){for(var t=u.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var r=t.__m||(t.__m=[0,0]);_.__="P"+r[0]+"-"+r[1]++}return _.__}function z(){for(var _;_=x.shift();)if(_.__P&&_.__H)try{_.__H.__h.forEach(H),_.__H.__h.forEach(N),_.__H.__h=[]}catch(t){_.__H.__h=[],o.__e(t,_.__v)}}o.__b=function(_){u=null,A&&A(_)},o.__=function(_,t){_&&t.__k&&t.__k.__m&&(_.__m=t.__k.__m),T&&T(_,t)},o.__r=function(_){F&&F(_),a=0;var t=(u=_.__c).__H;t&&(d===u?(t.__h=[],u.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.__V=p,r.__N=r.i=void 0})):(t.__h.forEach(H),t.__h.forEach(N),t.__h=[],a=0)),d=u},o.diffed=function(_){b&&b(_);var t=_.__c;t&&t.__H&&(t.__H.__h.length&&(x.push(t)!==1&&g===o.requestAnimationFrame||((g=o.requestAnimationFrame)||B)(z)),t.__H.__.forEach(function(r){r.i&&(r.__H=r.i),r.__V!==p&&(r.__=r.__V),r.i=void 0,r.__V=p})),d=u=null},o.__c=function(_,t){t.some(function(r){try{r.__h.forEach(H),r.__h=r.__h.filter(function(n){return!n.__||N(n)})}catch(n){t.some(function(h){h.__h&&(h.__h=[])}),t=[],o.__e(n,r.__v)}}),q&&q(_,t)},o.unmount=function(_){k&&k(_);var t,r=_.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{H(n)}catch(h){t=h}}),r.__H=void 0,t&&o.__e(t,r.__v))};var U=typeof requestAnimationFrame=="function";function B(_){var t,r=function(){clearTimeout(n),U&&cancelAnimationFrame(t),setTimeout(_)},n=setTimeout(r,100);U&&(t=requestAnimationFrame(r))}function H(_){var t=u,r=_.__c;typeof r=="function"&&(_.__c=void 0,r()),u=t}function N(_){var t=u;_.__c=_.__(),u=t}function V(_,t){return!_||_.length!==t.length||t.some(function(r,n){return r!==_[n]})}function D(_,t){return typeof t=="function"?t(_):t}export{w as A,I as F,L as P,J as T,M as V,G as _,O as g,$ as p,C as q,K as x,j as y}; +import{l as W}from"./preact.module.DgCY89ob.js";var a,u,d,g,v=0,x=[],p=[],o=W,A=o.__b,F=o.__r,b=o.diffed,q=o.__c,k=o.unmount,T=o.__;function m(_,t){o.__h&&o.__h(u,_,v||t),v=0;var r=u.__H||(u.__H={__:[],__h:[]});return _>=r.__.length&&r.__.push({__V:p}),r.__[_]}function $(_){return v=1,j(D,_)}function j(_,t,r){var n=m(a++,2);if(n.t=_,!n.__c&&(n.__=[r?r(t):D(void 0,t),function(c){var e=n.__N?n.__N[0]:n.__[0],f=n.t(e,c);e!==f&&(n.__N=[f,n.__[1]],n.__c.setState({}))}],n.__c=u,!u.u)){var h=function(c,e,f){if(!n.__c.__H)return!0;var s=n.__c.__H.__.filter(function(i){return!!i.__c});if(s.every(function(i){return!i.__N}))return!l||l.call(this,c,e,f);var E=!1;return s.forEach(function(i){if(i.__N){var P=i.__[0];i.__=i.__N,i.__N=void 0,P!==i.__[0]&&(E=!0)}}),!(!E&&n.__c.props===c)&&(!l||l.call(this,c,e,f))};u.u=!0;var l=u.shouldComponentUpdate,y=u.componentWillUpdate;u.componentWillUpdate=function(c,e,f){if(this.__e){var s=l;l=void 0,h(c,e,f),l=s}y&&y.call(this,c,e,f)},u.shouldComponentUpdate=h}return n.__N||n.__}function G(_,t){var r=m(a++,3);!o.__s&&V(r.__H,t)&&(r.__=_,r.i=t,u.__H.__h.push(r))}function w(_,t){var r=m(a++,4);!o.__s&&V(r.__H,t)&&(r.__=_,r.i=t,u.__h.push(r))}function I(_){return v=5,C(function(){return{current:_}},[])}function J(_,t,r){v=6,w(function(){return typeof _=="function"?(_(t()),function(){return _(null)}):_?(_.current=t(),function(){return _.current=null}):void 0},r==null?r:r.concat(_))}function C(_,t){var r=m(a++,7);return V(r.__H,t)?(r.__V=_(),r.i=t,r.__h=_,r.__V):r.__}function K(_,t){return v=8,C(function(){return _},t)}function L(_){var t=u.context[_.__c],r=m(a++,9);return r.c=_,t?(r.__==null&&(r.__=!0,t.sub(u)),t.props.value):_.__}function M(_,t){o.useDebugValue&&o.useDebugValue(t?t(_):_)}function O(){var _=m(a++,11);if(!_.__){for(var t=u.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var r=t.__m||(t.__m=[0,0]);_.__="P"+r[0]+"-"+r[1]++}return _.__}function z(){for(var _;_=x.shift();)if(_.__P&&_.__H)try{_.__H.__h.forEach(H),_.__H.__h.forEach(N),_.__H.__h=[]}catch(t){_.__H.__h=[],o.__e(t,_.__v)}}o.__b=function(_){u=null,A&&A(_)},o.__=function(_,t){_&&t.__k&&t.__k.__m&&(_.__m=t.__k.__m),T&&T(_,t)},o.__r=function(_){F&&F(_),a=0;var t=(u=_.__c).__H;t&&(d===u?(t.__h=[],u.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.__V=p,r.__N=r.i=void 0})):(t.__h.forEach(H),t.__h.forEach(N),t.__h=[],a=0)),d=u},o.diffed=function(_){b&&b(_);var t=_.__c;t&&t.__H&&(t.__H.__h.length&&(x.push(t)!==1&&g===o.requestAnimationFrame||((g=o.requestAnimationFrame)||B)(z)),t.__H.__.forEach(function(r){r.i&&(r.__H=r.i),r.__V!==p&&(r.__=r.__V),r.i=void 0,r.__V=p})),d=u=null},o.__c=function(_,t){t.some(function(r){try{r.__h.forEach(H),r.__h=r.__h.filter(function(n){return!n.__||N(n)})}catch(n){t.some(function(h){h.__h&&(h.__h=[])}),t=[],o.__e(n,r.__v)}}),q&&q(_,t)},o.unmount=function(_){k&&k(_);var t,r=_.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{H(n)}catch(h){t=h}}),r.__H=void 0,t&&o.__e(t,r.__v))};var U=typeof requestAnimationFrame=="function";function B(_){var t,r=function(){clearTimeout(n),U&&cancelAnimationFrame(t),setTimeout(_)},n=setTimeout(r,100);U&&(t=requestAnimationFrame(r))}function H(_){var t=u,r=_.__c;typeof r=="function"&&(_.__c=void 0,r()),u=t}function N(_){var t=u;_.__c=_.__(),u=t}function V(_,t){return!_||_.length!==t.length||t.some(function(r,n){return r!==_[n]})}function D(_,t){return typeof t=="function"?t(_):t}export{w as A,I as F,L as P,J as T,M as V,G as _,O as g,$ as p,C as q,K as x,j as y}; diff --git a/_astro/jsxRuntime.module.Cif6hlES.js b/_astro/jsxRuntime.module.Cif6hlES.js deleted file mode 100644 index 7c1f399faf..0000000000 --- a/_astro/jsxRuntime.module.Cif6hlES.js +++ /dev/null @@ -1 +0,0 @@ -import{l as u}from"./preact.module.Cj4zUIh6.js";var p=0;function d(n,f,e,t,i,v){var o,_,r={};for(_ in f)_=="ref"?o=f[_]:r[_]=f[_];var l={type:n,props:r,key:e,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--p,__i:-1,__u:0,__source:i,__self:v};if(typeof n=="function"&&(o=n.defaultProps))for(_ in o)r[_]===void 0&&(r[_]=o[_]);return u.vnode&&u.vnode(l),l}export{d as u}; diff --git a/_astro/jsxRuntime.module.Dl9dozpx.js b/_astro/jsxRuntime.module.Dl9dozpx.js new file mode 100644 index 0000000000..c374db5556 --- /dev/null +++ b/_astro/jsxRuntime.module.Dl9dozpx.js @@ -0,0 +1 @@ +import{l as i}from"./preact.module.DgCY89ob.js";var p=0;function a(f,o,l,c,u,v){o||(o={});var n,_,r=o;if("ref"in r)for(_ in r={},o)_=="ref"?n=o[_]:r[_]=o[_];var e={type:f,props:r,key:l,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--p,__i:-1,__u:0,__source:u,__self:v};if(typeof f=="function"&&(n=f.defaultProps))for(_ in n)r[_]===void 0&&(r[_]=n[_]);return i.vnode&&i.vnode(e),e}export{a as u}; diff --git a/_astro/preact.module.Cj4zUIh6.js b/_astro/preact.module.Cj4zUIh6.js deleted file mode 100644 index 41a3a78c90..0000000000 --- a/_astro/preact.module.Cj4zUIh6.js +++ /dev/null @@ -1 +0,0 @@ -var T,a,J,ne,C,z,K,$,Q,D={},X=[],oe=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,N=Array.isArray;function b(e,_){for(var t in _)e[t]=_[t];return e}function Y(e){var _=e.parentNode;_&&_.removeChild(e)}function re(e,_,t){var i,o,r,l={};for(r in _)r=="key"?i=_[r]:r=="ref"?o=_[r]:l[r]=_[r];if(arguments.length>2&&(l.children=arguments.length>3?T.call(arguments,2):t),typeof e=="function"&&e.defaultProps!=null)for(r in e.defaultProps)l[r]===void 0&&(l[r]=e.defaultProps[r]);return S(e,l,i,o,null)}function S(e,_,t,i,o){var r={type:e,props:_,key:t,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:o??++J,__i:-1,__u:0};return o==null&&a.vnode!=null&&a.vnode(r),r}function ae(){return{current:null}}function A(e){return e.children}function W(e,_){this.props=e,this.context=_}function w(e,_){if(_==null)return e.__?w(e.__,e.__i+1):null;for(var t;__&&C.sort($));H.__r=0}function ee(e,_,t,i,o,r,l,u,c,s,p){var n,m,f,h,k,v=i&&i.__k||X,d=_.length;for(t.__d=c,ie(t,_,v),c=t.__d,n=0;n0?S(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)!=null?(o.__=e,o.__b=e.__b+1,u=ue(o,t,l,p),o.__i=u,r=null,u!==-1&&(p--,(r=t[u])&&(r.__u|=131072)),r==null||r.__v===null?(u==-1&&n--,typeof o.type!="function"&&(o.__u|=65536)):u!==l&&(u===l+1?n++:u>l?p>c-l?n+=u-l:n--:u(c!=null&&!(131072&c.__u)?1:0))for(;l>=0||u<_.length;){if(l>=0){if((c=_[l])&&!(131072&c.__u)&&o==c.key&&r===c.type)return l;l--}if(u<_.length){if((c=_[u])&&!(131072&c.__u)&&o==c.key&&r===c.type)return u;u++}}return-1}function G(e,_,t){_[0]==="-"?e.setProperty(_,t??""):e[_]=t==null?"":typeof t!="number"||oe.test(_)?t:t+"px"}function M(e,_,t,i,o){var r;e:if(_==="style")if(typeof t=="string")e.style.cssText=t;else{if(typeof i=="string"&&(e.style.cssText=i=""),i)for(_ in i)t&&_ in t||G(e.style,_,"");if(t)for(_ in t)i&&t[_]===i[_]||G(e.style,_,t[_])}else if(_[0]==="o"&&_[1]==="n")r=_!==(_=_.replace(/(PointerCapture)$|Capture$/i,"$1")),_=_.toLowerCase()in e?_.toLowerCase().slice(2):_.slice(2),e.l||(e.l={}),e.l[_+r]=t,t?i?t.u=i.u:(t.u=Date.now(),e.addEventListener(_,r?q:V,r)):e.removeEventListener(_,r?q:V,r);else{if(o)_=_.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(_!=="width"&&_!=="height"&&_!=="href"&&_!=="list"&&_!=="form"&&_!=="tabIndex"&&_!=="download"&&_!=="rowSpan"&&_!=="colSpan"&&_!=="role"&&_ in e)try{e[_]=t??"";break e}catch{}typeof t=="function"||(t==null||t===!1&&_[4]!=="-"?e.removeAttribute(_):e.setAttribute(_,t))}}function V(e){if(this.l){var _=this.l[e.type+!1];if(e.t){if(e.t<=_.u)return}else e.t=Date.now();return _(a.event?a.event(e):e)}}function q(e){if(this.l)return this.l[e.type+!0](a.event?a.event(e):e)}function O(e,_,t,i,o,r,l,u,c,s){var p,n,m,f,h,k,v,d,y,x,U,P,j,E,F,g=_.type;if(_.constructor!==void 0)return null;128&t.__u&&(c=!!(32&t.__u),r=[u=_.__e=t.__e]),(p=a.__b)&&p(_);e:if(typeof g=="function")try{if(d=_.props,y=(p=g.contextType)&&i[p.__c],x=p?y?y.props.value:p.__:i,t.__c?v=(n=_.__c=t.__c).__=n.__E:("prototype"in g&&g.prototype.render?_.__c=n=new g(d,x):(_.__c=n=new W(d,x),n.constructor=g,n.render=fe),y&&y.sub(n),n.props=d,n.state||(n.state={}),n.context=x,n.__n=i,m=n.__d=!0,n.__h=[],n._sb=[]),n.__s==null&&(n.__s=n.state),g.getDerivedStateFromProps!=null&&(n.__s==n.state&&(n.__s=b({},n.__s)),b(n.__s,g.getDerivedStateFromProps(d,n.__s))),f=n.props,h=n.state,n.__v=_,m)g.getDerivedStateFromProps==null&&n.componentWillMount!=null&&n.componentWillMount(),n.componentDidMount!=null&&n.__h.push(n.componentDidMount);else{if(g.getDerivedStateFromProps==null&&d!==f&&n.componentWillReceiveProps!=null&&n.componentWillReceiveProps(d,x),!n.__e&&(n.shouldComponentUpdate!=null&&n.shouldComponentUpdate(d,n.__s,x)===!1||_.__v===t.__v)){for(_.__v!==t.__v&&(n.props=d,n.state=n.__s,n.__d=!1),_.__e=t.__e,_.__k=t.__k,_.__k.forEach(function(L){L&&(L.__=_)}),U=0;U2&&(u.children=arguments.length>3?T.call(arguments,2):t),S(e.type,u,i||e.key,o||e.ref,null)}function he(e,_){var t={__c:_="__cC"+Q++,__:e,Consumer:function(i,o){return i.children(o)},Provider:function(i){var o,r;return this.getChildContext||(o=[],(r={})[_]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(l){this.props.value!==l.value&&o.some(function(u){u.__e=!0,I(u)})},this.sub=function(l){o.push(l);var u=l.componentWillUnmount;l.componentWillUnmount=function(){o.splice(o.indexOf(l),1),u&&u.call(l)}}),i.children}};return t.Provider.__=t.Consumer.contextType=t}T=X.slice,a={__e:function(e,_,t,i){for(var o,r,l;_=_.__;)if((o=_.__c)&&!o.__)try{if((r=o.constructor)&&r.getDerivedStateFromError!=null&&(o.setState(r.getDerivedStateFromError(e)),l=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,i||{}),l=o.__d),l)return o.__E=o}catch(u){e=u}throw e}},J=0,ne=function(e){return e!=null&&e.constructor==null},W.prototype.setState=function(e,_){var t;t=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=b({},this.state),typeof e=="function"&&(e=e(b({},t),this.props)),e&&b(t,e),e!=null&&this.__v&&(_&&this._sb.push(_),I(this))},W.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),I(this))},W.prototype.render=A,C=[],K=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,$=function(e,_){return e.__v.__b-_.__v.__b},H.__r=0,Q=0;export{le as $,pe as B,de as E,he as F,ae as _,W as b,A as g,a as l,ce as q,ne as t,re as y}; diff --git a/_astro/preact.module.DgCY89ob.js b/_astro/preact.module.DgCY89ob.js new file mode 100644 index 0000000000..a9f22ed65a --- /dev/null +++ b/_astro/preact.module.DgCY89ob.js @@ -0,0 +1 @@ +var M,d,Q,re,x,G,X,$,j,A,R,Y,U={},Z=[],ie=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,H=Array.isArray;function b(_,e){for(var t in e)_[t]=e[t];return _}function ee(_){var e=_.parentNode;e&&e.removeChild(_)}function le(_,e,t){var i,n,r,l={};for(r in e)r=="key"?i=e[r]:r=="ref"?n=e[r]:l[r]=e[r];if(arguments.length>2&&(l.children=arguments.length>3?M.call(arguments,2):t),typeof _=="function"&&_.defaultProps!=null)for(r in _.defaultProps)l[r]===void 0&&(l[r]=_.defaultProps[r]);return S(_,l,i,n,null)}function S(_,e,t,i,n){var r={type:_,props:e,key:t,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:n??++Q,__i:-1,__u:0};return n==null&&d.vnode!=null&&d.vnode(r),r}function he(){return{current:null}}function I(_){return _.children}function W(_,e){this.props=_,this.context=e}function C(_,e){if(e==null)return _.__?C(_.__,_.__i+1):null;for(var t;e<_.__k.length;e++)if((t=_.__k[e])!=null&&t.__e!=null)return t.__e;return typeof _.type=="function"?C(_):null}function _e(_){var e,t;if((_=_.__)!=null&&_.__c!=null){for(_.__e=_.__c.base=null,e=0;e<_.__k.length;e++)if((t=_.__k[e])!=null&&t.__e!=null){_.__e=_.__c.base=t.__e;break}return _e(_)}}function O(_){(!_.__d&&(_.__d=!0)&&x.push(_)&&!F.__r++||G!==d.debounceRendering)&&((G=d.debounceRendering)||X)(F)}function F(){var _,e,t,i,n,r,l,s;for(x.sort($);_=x.shift();)_.__d&&(e=x.length,i=void 0,r=(n=(t=_).__v).__e,l=[],s=[],t.__P&&((i=b({},n)).__v=n.__v+1,d.vnode&&d.vnode(i),z(t.__P,i,n,t.__n,t.__P.namespaceURI,32&n.__u?[r]:null,l,r??C(n),!!(32&n.__u),s),i.__v=n.__v,i.__.__k[i.__i]=i,oe(l,i,s),i.__e!=r&&_e(i)),x.length>e&&x.sort($));F.__r=0}function te(_,e,t,i,n,r,l,s,c,u,p){var o,m,f,h,k,v=i&&i.__k||Z,a=e.length;for(t.__d=c,se(t,e,v),c=t.__d,o=0;o0?S(n.type,n.props,n.key,n.ref?n.ref:null,n.__v):n)!=null?(n.__=_,n.__b=_.__b+1,s=fe(n,t,l,p),n.__i=s,r=null,s!==-1&&(p--,(r=t[s])&&(r.__u|=131072)),r==null||r.__v===null?(s==-1&&o--,typeof n.type!="function"&&(n.__u|=65536)):s!==l&&(s===l+1?o++:s>l?p>c-l?o+=s-l:o--:s(c!=null&&!(131072&c.__u)?1:0))for(;l>=0||s=0){if((c=e[l])&&!(131072&c.__u)&&n==c.key&&r===c.type)return l;l--}if(s2&&(s.children=arguments.length>3?M.call(arguments,2):t),S(_.type,s,i||_.key,n||_.ref,null)}function ye(_,e){var t={__c:e="__cC"+Y++,__:_,Consumer:function(i,n){return i.children(n)},Provider:function(i){var n,r;return this.getChildContext||(n=[],(r={})[e]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(l){this.props.value!==l.value&&n.some(function(s){s.__e=!0,O(s)})},this.sub=function(l){n.push(l);var s=l.componentWillUnmount;l.componentWillUnmount=function(){n.splice(n.indexOf(l),1),s&&s.call(l)}}),i.children}};return t.Provider.__=t.Consumer.contextType=t}M=Z.slice,d={__e:function(_,e,t,i){for(var n,r,l;e=e.__;)if((n=e.__c)&&!n.__)try{if((r=n.constructor)&&r.getDerivedStateFromError!=null&&(n.setState(r.getDerivedStateFromError(_)),l=n.__d),n.componentDidCatch!=null&&(n.componentDidCatch(_,i||{}),l=n.__d),l)return n.__E=n}catch(s){_=s}throw _}},Q=0,re=function(_){return _!=null&&_.constructor==null},W.prototype.setState=function(_,e){var t;t=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=b({},this.state),typeof _=="function"&&(_=_(b({},t),this.props)),_&&b(t,_),_!=null&&this.__v&&(e&&this._sb.push(e),O(this))},W.prototype.forceUpdate=function(_){this.__v&&(this.__e=!0,_&&this.__h.push(_),O(this))},W.prototype.render=I,x=[],X=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,$=function(_,e){return _.__v.__b-e.__v.__b},F.__r=0,j=0,A=K(!1),R=K(!0),Y=0;export{ae as B,de as D,ve as E,ye as G,ue as H,le as _,W as b,I as k,d as l,he as m,re as t}; diff --git a/_astro/signals.module.Uw5cylxH.js b/_astro/signals.module.Uw5cylxH.js new file mode 100644 index 0000000000..73ce250354 --- /dev/null +++ b/_astro/signals.module.Uw5cylxH.js @@ -0,0 +1 @@ +import{b as q,l as U,t as G}from"./preact.module.DgCY89ob.js";import{q as k}from"./hooks.module.BJvh2z1e.js";var J=Symbol.for("preact-signals");function $(){if(h>1)h--;else{for(var t,i=!1;d!==void 0;){var o=d;for(d=void 0,w++;o!==void 0;){var n=o.o;if(o.o=void 0,o.f&=-3,!(8&o.f)&&O(o))try{o.c()}catch(e){i||(t=e,i=!0)}o=n}}if(w=0,h--,i)throw t}}var f=void 0,d=void 0,h=0,w=0,y=0;function E(t){if(f!==void 0){var i=t.n;if(i===void 0||i.t!==f)return i={i:0,S:t,p:f.s,n:void 0,t:f,e:void 0,x:void 0,r:i},f.s!==void 0&&(f.s.n=i),f.s=i,t.n=i,32&f.f&&t.S(i),i;if(i.i===-1)return i.i=0,i.n!==void 0&&(i.n.p=i.p,i.p!==void 0&&(i.p.n=i.n),i.p=f.s,i.n=void 0,f.s.n=i,f.s=i),i}}function v(t){this.v=t,this.i=0,this.n=void 0,this.t=void 0}v.prototype.brand=J;v.prototype.h=function(){return!0};v.prototype.S=function(t){this.t!==t&&t.e===void 0&&(t.x=this.t,this.t!==void 0&&(this.t.e=t),this.t=t)};v.prototype.U=function(t){if(this.t!==void 0){var i=t.e,o=t.x;i!==void 0&&(i.x=o,t.e=void 0),o!==void 0&&(o.e=i,t.x=void 0),t===this.t&&(this.t=o)}};v.prototype.subscribe=function(t){var i=this;return x(function(){var o=i.value,n=f;f=void 0;try{t(o)}finally{f=n}})};v.prototype.valueOf=function(){return this.value};v.prototype.toString=function(){return this.value+""};v.prototype.toJSON=function(){return this.value};v.prototype.peek=function(){var t=f;f=void 0;try{return this.value}finally{f=t}};Object.defineProperty(v.prototype,"value",{get:function(){var t=E(this);return t!==void 0&&(t.i=this.i),this.v},set:function(t){if(t!==this.v){if(w>100)throw new Error("Cycle detected");this.v=t,this.i++,y++,h++;try{for(var i=this.t;i!==void 0;i=i.x)i.t.N()}finally{$()}}}});function N(t){return new v(t)}function O(t){for(var i=t.s;i!==void 0;i=i.n)if(i.S.i!==i.i||!i.S.h()||i.S.i!==i.i)return!0;return!1}function C(t){for(var i=t.s;i!==void 0;i=i.n){var o=i.S.n;if(o!==void 0&&(i.r=o),i.S.n=i,i.i=-1,i.n===void 0){t.s=i;break}}}function j(t){for(var i=t.s,o=void 0;i!==void 0;){var n=i.p;i.i===-1?(i.S.U(i),n!==void 0&&(n.n=i.n),i.n!==void 0&&(i.n.p=n)):o=i,i.S.n=i.r,i.r!==void 0&&(i.r=void 0),i=n}t.s=o}function a(t){v.call(this,void 0),this.x=t,this.s=void 0,this.g=y-1,this.f=4}(a.prototype=new v).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===y))return!0;if(this.g=y,this.f|=1,this.i>0&&!O(this))return this.f&=-2,!0;var t=f;try{C(this),f=this;var i=this.x();(16&this.f||this.v!==i||this.i===0)&&(this.v=i,this.f&=-17,this.i++)}catch(o){this.v=o,this.f|=16,this.i++}return f=t,j(this),this.f&=-2,!0};a.prototype.S=function(t){if(this.t===void 0){this.f|=36;for(var i=this.s;i!==void 0;i=i.n)i.S.S(i)}v.prototype.S.call(this,t)};a.prototype.U=function(t){if(this.t!==void 0&&(v.prototype.U.call(this,t),this.t===void 0)){this.f&=-33;for(var i=this.s;i!==void 0;i=i.n)i.S.U(i)}};a.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var t=this.t;t!==void 0;t=t.x)t.t.N()}};Object.defineProperty(a.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var t=E(this);if(this.h(),t!==void 0&&(t.i=this.i),16&this.f)throw this.v;return this.v}});function T(t){return new a(t)}function P(t){var i=t.u;if(t.u=void 0,typeof i=="function"){h++;var o=f;f=void 0;try{i()}catch(n){throw t.f&=-2,t.f|=8,g(t),n}finally{f=o,$()}}}function g(t){for(var i=t.s;i!==void 0;i=i.n)i.S.U(i);t.x=void 0,t.s=void 0,P(t)}function V(t){if(f!==this)throw new Error("Out-of-order effect");j(this),f=t,this.f&=-2,8&this.f&&g(this),$()}function p(t){this.x=t,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}p.prototype.c=function(){var t=this.S();try{if(8&this.f||this.x===void 0)return;var i=this.x();typeof i=="function"&&(this.u=i)}finally{t()}};p.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,P(this),C(this),h++;var t=f;return f=this,V.bind(this,t)};p.prototype.N=function(){2&this.f||(this.f|=2,this.o=d,d=this)};p.prototype.d=function(){this.f|=8,1&this.f||g(this)};function x(t){var i=new p(t);try{i.c()}catch(o){throw i.d(),o}return i.d.bind(i)}var b;function c(t,i){U[t]=i.bind(null,U[t]||function(){})}function S(t){b&&b(),b=t&&t.S()}function A(t){var i=this,o=t.data,n=B(o);n.value=o;var e=k(function(){for(var r=i.__v;r=r.__;)if(r.__c){r.__c.__$f|=4;break}return i.__$u.c=function(){var s;!G(e.peek())&&((s=i.base)==null?void 0:s.nodeType)===3?i.base.data=e.peek():(i.__$f|=1,i.setState({}))},T(function(){var s=n.value.value;return s===0?0:s===!0?"":s||""})},[]);return e.value}A.displayName="_st";Object.defineProperties(v.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:A},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});c("__b",function(t,i){if(typeof i.type=="string"){var o,n=i.props;for(var e in n)if(e!=="children"){var r=n[e];r instanceof v&&(o||(i.__np=o={}),o[e]=r,n[e]=r.peek())}}t(i)});c("__r",function(t,i){S();var o,n=i.__c;n&&(n.__$f&=-2,(o=n.__$u)===void 0&&(n.__$u=o=function(e){var r;return x(function(){r=this}),r.c=function(){n.__$f|=1,n.setState({})},r}())),S(o),t(i)});c("__e",function(t,i,o,n){S(),t(i,o,n)});c("diffed",function(t,i){S();var o;if(typeof i.type=="string"&&(o=i.__e)){var n=i.__np,e=i.props;if(n){var r=o.U;if(r)for(var s in r){var u=r[s];u!==void 0&&!(s in n)&&(u.d(),r[s]=void 0)}else o.U=r={};for(var l in n){var _=r[l],m=n[l];_===void 0?(_=z(o,l,m,e),r[l]=_):_.o(m,e)}}}t(i)});function z(t,i,o,n){var e=i in t&&t.ownerSVGElement===void 0,r=N(o);return{o:function(s,u){r.value=s,n=u},d:x(function(){var s=r.value.value;n[i]!==s&&(n[i]=s,e?t[i]=s:s?t.setAttribute(i,s):t.removeAttribute(i))})}}c("unmount",function(t,i){if(typeof i.type=="string"){var o=i.__e;if(o){var n=o.U;if(n){o.U=void 0;for(var e in n){var r=n[e];r&&r.d()}}}}else{var s=i.__c;if(s){var u=s.__$u;u&&(s.__$u=void 0,u.d())}}t(i)});c("__h",function(t,i,o,n){(n<3||n===9)&&(i.__$f|=2),t(i,o,n)});q.prototype.shouldComponentUpdate=function(t,i){var o=this.__$u;if(!(o&&o.s!==void 0||4&this.__$f)||3&this.__$f)return!0;for(var n in i)return!0;for(var e in t)if(e!=="__source"&&t[e]!==this.props[e])return!0;for(var r in this.props)if(!(r in t))return!0;return!1};function B(t){return k(function(){return N(t)},[])}export{v as Signal,T as computed,x as effect,N as signal,B as useSignal}; diff --git a/_astro/signals.module.tc2-WFaC.js b/_astro/signals.module.tc2-WFaC.js deleted file mode 100644 index 40609e6fe2..0000000000 --- a/_astro/signals.module.tc2-WFaC.js +++ /dev/null @@ -1 +0,0 @@ -import{b as V,l as N,t as z}from"./preact.module.Cj4zUIh6.js";import{q as k,F as C,_ as B}from"./hooks.module.Bw6G1nmB.js";function b(){throw new Error("Cycle detected")}var D=Symbol.for("preact-signals");function $(){if(v>1)v--;else{for(var t,i=!1;d!==void 0;){var n=d;for(d=void 0,U++;n!==void 0;){var r=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&A(n))try{n.c()}catch(e){i||(t=e,i=!0)}n=r}}if(U=0,v--,i)throw t}}function Q(t){if(v>0)return t();v++;try{return t()}finally{$()}}var f=void 0,x=0;function R(t){if(x>0)return t();var i=f;f=void 0,x++;try{return t()}finally{x--,f=i}}var d=void 0,v=0,U=0,y=0;function j(t){if(f!==void 0){var i=t.n;if(i===void 0||i.t!==f)return i={i:0,S:t,p:f.s,n:void 0,t:f,e:void 0,x:void 0,r:i},f.s!==void 0&&(f.s.n=i),f.s=i,t.n=i,32&f.f&&t.S(i),i;if(i.i===-1)return i.i=0,i.n!==void 0&&(i.n.p=i.p,i.p!==void 0&&(i.p.n=i.n),i.p=f.s,i.n=void 0,f.s.n=i,f.s=i),i}}function u(t){this.v=t,this.i=0,this.n=void 0,this.t=void 0}u.prototype.brand=D;u.prototype.h=function(){return!0};u.prototype.S=function(t){this.t!==t&&t.e===void 0&&(t.x=this.t,this.t!==void 0&&(this.t.e=t),this.t=t)};u.prototype.U=function(t){if(this.t!==void 0){var i=t.e,n=t.x;i!==void 0&&(i.x=n,t.e=void 0),n!==void 0&&(n.e=i,t.x=void 0),t===this.t&&(this.t=n)}};u.prototype.subscribe=function(t){var i=this;return w(function(){var n=i.value,r=32&this.f;this.f&=-33;try{t(n)}finally{this.f|=r}})};u.prototype.valueOf=function(){return this.value};u.prototype.toString=function(){return this.value+""};u.prototype.toJSON=function(){return this.value};u.prototype.peek=function(){return this.v};Object.defineProperty(u.prototype,"value",{get:function(){var t=j(this);return t!==void 0&&(t.i=this.i),this.v},set:function(t){if(f instanceof h&&function(){throw new Error("Computed cannot have side-effects")}(),t!==this.v){U>100&&b(),this.v=t,this.i++,y++,v++;try{for(var i=this.t;i!==void 0;i=i.x)i.t.N()}finally{$()}}}});function P(t){return new u(t)}function A(t){for(var i=t.s;i!==void 0;i=i.n)if(i.S.i!==i.i||!i.S.h()||i.S.i!==i.i)return!0;return!1}function q(t){for(var i=t.s;i!==void 0;i=i.n){var n=i.S.n;if(n!==void 0&&(i.r=n),i.S.n=i,i.i=-1,i.n===void 0){t.s=i;break}}}function F(t){for(var i=t.s,n=void 0;i!==void 0;){var r=i.p;i.i===-1?(i.S.U(i),r!==void 0&&(r.n=i.n),i.n!==void 0&&(i.n.p=r)):n=i,i.S.n=i.r,i.r!==void 0&&(i.r=void 0),i=r}t.s=n}function h(t){u.call(this,void 0),this.x=t,this.s=void 0,this.g=y-1,this.f=4}(h.prototype=new u).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===y))return!0;if(this.g=y,this.f|=1,this.i>0&&!A(this))return this.f&=-2,!0;var t=f;try{q(this),f=this;var i=this.x();(16&this.f||this.v!==i||this.i===0)&&(this.v=i,this.f&=-17,this.i++)}catch(n){this.v=n,this.f|=16,this.i++}return f=t,F(this),this.f&=-2,!0};h.prototype.S=function(t){if(this.t===void 0){this.f|=36;for(var i=this.s;i!==void 0;i=i.n)i.S.S(i)}u.prototype.S.call(this,t)};h.prototype.U=function(t){if(this.t!==void 0&&(u.prototype.U.call(this,t),this.t===void 0)){this.f&=-33;for(var i=this.s;i!==void 0;i=i.n)i.S.U(i)}};h.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var t=this.t;t!==void 0;t=t.x)t.t.N()}};h.prototype.peek=function(){if(this.h()||b(),16&this.f)throw this.v;return this.v};Object.defineProperty(h.prototype,"value",{get:function(){1&this.f&&b();var t=j(this);if(this.h(),t!==void 0&&(t.i=this.i),16&this.f)throw this.v;return this.v}});function G(t){return new h(t)}function J(t){var i=t.u;if(t.u=void 0,typeof i=="function"){v++;var n=f;f=void 0;try{i()}catch(r){throw t.f&=-2,t.f|=8,O(t),r}finally{f=n,$()}}}function O(t){for(var i=t.s;i!==void 0;i=i.n)i.S.U(i);t.x=void 0,t.s=void 0,J(t)}function H(t){if(f!==this)throw new Error("Out-of-order effect");F(this),f=t,this.f&=-2,8&this.f&&O(this),$()}function p(t){this.x=t,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}p.prototype.c=function(){var t=this.S();try{if(8&this.f||this.x===void 0)return;var i=this.x();typeof i=="function"&&(this.u=i)}finally{t()}};p.prototype.S=function(){1&this.f&&b(),this.f|=1,this.f&=-9,J(this),q(this),v++;var t=f;return f=this,H.bind(this,t)};p.prototype.N=function(){2&this.f||(this.f|=2,this.o=d,d=this)};p.prototype.d=function(){this.f|=8,1&this.f||O(this)};function w(t){var i=new p(t);try{i.c()}catch(n){throw i.d(),n}return i.d.bind(i)}var g,m;function c(t,i){N[t]=i.bind(null,N[t]||function(){})}function S(t){m&&m(),m=t&&t.S()}function T(t){var i=this,n=t.data,r=K(n);r.value=n;var e=k(function(){for(var o=i.__v;o=o.__;)if(o.__c){o.__c.__$f|=4;break}return i.__$u.c=function(){var s;!z(e.peek())&&((s=i.base)==null?void 0:s.nodeType)===3?i.base.data=e.peek():(i.__$f|=1,i.setState({}))},G(function(){var s=r.value.value;return s===0?0:s===!0?"":s||""})},[]);return e.value}T.displayName="_st";Object.defineProperties(u.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:T},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});c("__b",function(t,i){if(typeof i.type=="string"){var n,r=i.props;for(var e in r)if(e!=="children"){var o=r[e];o instanceof u&&(n||(i.__np=n={}),n[e]=o,r[e]=o.peek())}}t(i)});c("__r",function(t,i){S();var n,r=i.__c;r&&(r.__$f&=-2,(n=r.__$u)===void 0&&(r.__$u=n=function(e){var o;return w(function(){o=this}),o.c=function(){r.__$f|=1,r.setState({})},o}())),g=r,S(n),t(i)});c("__e",function(t,i,n,r){S(),g=void 0,t(i,n,r)});c("diffed",function(t,i){S(),g=void 0;var n;if(typeof i.type=="string"&&(n=i.__e)){var r=i.__np,e=i.props;if(r){var o=n.U;if(o)for(var s in o){var a=o[s];a!==void 0&&!(s in r)&&(a.d(),o[s]=void 0)}else n.U=o={};for(var l in r){var _=o[l],E=r[l];_===void 0?(_=I(n,l,E,e),o[l]=_):_.o(E,e)}}}t(i)});function I(t,i,n,r){var e=i in t&&t.ownerSVGElement===void 0,o=P(n);return{o:function(s,a){o.value=s,r=a},d:w(function(){var s=o.value.value;r[i]!==s&&(r[i]=s,e?t[i]=s:s?t.setAttribute(i,s):t.removeAttribute(i))})}}c("unmount",function(t,i){if(typeof i.type=="string"){var n=i.__e;if(n){var r=n.U;if(r){n.U=void 0;for(var e in r){var o=r[e];o&&o.d()}}}}else{var s=i.__c;if(s){var a=s.__$u;a&&(s.__$u=void 0,a.d())}}t(i)});c("__h",function(t,i,n,r){(r<3||r===9)&&(i.__$f|=2),t(i,n,r)});V.prototype.shouldComponentUpdate=function(t,i){var n=this.__$u;if(!(n&&n.s!==void 0||4&this.__$f)||3&this.__$f)return!0;for(var r in i)return!0;for(var e in t)if(e!=="__source"&&t[e]!==this.props[e])return!0;for(var o in this.props)if(!(o in t))return!0;return!1};function K(t){return k(function(){return P(t)},[])}function W(t){var i=C(t);return i.current=t,g.__$f|=4,k(function(){return G(function(){return i.current()})},[])}function X(t){var i=C(t);i.current=t,B(function(){return w(function(){return i.current()})},[])}export{u as Signal,Q as batch,G as computed,w as effect,P as signal,R as untracked,W as useComputed,K as useSignal,X as useSignalEffect}; diff --git a/en/arch/architecture/index.html b/en/arch/architecture/index.html index b585160f05..607aa0bd06 100644 --- a/en/arch/architecture/index.html +++ b/en/arch/architecture/index.html @@ -159,8 +159,8 @@ -
- +
+ - - + +