@sinytra/wiki-previewer 0.1.133 → 0.1.136
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.next/BUILD_ID +1 -1
- package/.next/app-build-manifest.json +148 -85
- package/.next/app-path-routes-manifest.json +9 -4
- package/.next/build-manifest.json +4 -4
- package/.next/prerender-manifest.json +19 -19
- package/.next/routes-manifest.json +48 -0
- package/.next/server/app/(developers)/api/docs/[slug]/asset/[id]/route.js +1 -1
- package/.next/server/app/(developers)/api/docs/[slug]/asset/[id]/route.js.nft.json +1 -1
- package/.next/server/app/(developers)/api/docs/[slug]/asset/[id]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/(developers)/api/raw/[locale]/[slug]/[version]/content/[id]/route.js +3 -0
- package/.next/server/app/(developers)/api/raw/[locale]/[slug]/[version]/content/[id]/route.js.nft.json +1 -0
- package/.next/server/app/(developers)/api/raw/[locale]/[slug]/[version]/content/[id]/route_client-reference-manifest.js +1 -0
- package/.next/server/app/(developers)/api/raw/[locale]/[slug]/[version]/docs/[...path]/route.js +3 -0
- package/.next/server/app/(developers)/api/raw/[locale]/[slug]/[version]/docs/[...path]/route.js.nft.json +1 -0
- package/.next/server/app/(developers)/api/raw/[locale]/[slug]/[version]/docs/[...path]/route_client-reference-manifest.js +1 -0
- package/.next/server/app/(developers)/api/raw/[locale]/[slug]/[version]/docs/route.js +3 -0
- package/.next/server/app/(developers)/api/raw/[locale]/[slug]/[version]/docs/route.js.nft.json +1 -0
- package/.next/server/app/(developers)/api/raw/[locale]/[slug]/[version]/docs/route_client-reference-manifest.js +1 -0
- package/.next/server/app/[locale]/(main)/project/[slug]/[version]/content/[id]/page.js +2 -2
- package/.next/server/app/[locale]/(main)/project/[slug]/[version]/content/[id]/page.js.nft.json +1 -1
- package/.next/server/app/[locale]/(main)/project/[slug]/[version]/content/[id]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/[locale]/(main)/project/[slug]/[version]/content/page.js +2 -2
- package/.next/server/app/[locale]/(main)/project/[slug]/[version]/content/page.js.nft.json +1 -1
- package/.next/server/app/[locale]/(main)/project/[slug]/[version]/content/page_client-reference-manifest.js +1 -1
- package/.next/server/app/[locale]/(main)/project/[slug]/[version]/docs/[...path]/page.js +2 -2
- package/.next/server/app/[locale]/(main)/project/[slug]/[version]/docs/[...path]/page.js.nft.json +1 -1
- package/.next/server/app/[locale]/(main)/project/[slug]/[version]/docs/[...path]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/[locale]/(main)/project/[slug]/[version]/docs/page.js +2 -2
- package/.next/server/app/[locale]/(main)/project/[slug]/[version]/docs/page.js.nft.json +1 -1
- package/.next/server/app/[locale]/(main)/project/[slug]/[version]/docs/page_client-reference-manifest.js +1 -1
- package/.next/server/app/[locale]/(main)/project/[slug]/[version]/llms.txt/route.js +15 -0
- package/.next/server/app/[locale]/(main)/project/[slug]/[version]/llms.txt/route.js.nft.json +1 -0
- package/.next/server/app/[locale]/(main)/project/[slug]/[version]/llms.txt/route_client-reference-manifest.js +1 -0
- package/.next/server/app/[locale]/(main)/project/[slug]/[version]/page.js +2 -2
- package/.next/server/app/[locale]/(main)/project/[slug]/[version]/page.js.nft.json +1 -1
- package/.next/server/app/[locale]/(main)/project/[slug]/[version]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/[locale]/page.js +2 -2
- package/.next/server/app/[locale]/page.js.nft.json +1 -1
- package/.next/server/app/[locale]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_not-found/page.js +2 -2
- package/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_not-found.html +2 -2
- package/.next/server/app/_not-found.rsc +4 -4
- package/.next/server/app/favicon.ico/route.js +1 -1
- package/.next/server/app/favicon.ico/route.js.nft.json +1 -1
- package/.next/server/app/llms.txt/route.js +32 -0
- package/.next/server/app/llms.txt/route.js.nft.json +1 -0
- package/.next/server/app/llms.txt/route_client-reference-manifest.js +1 -0
- package/.next/server/app/opengraph-image/route_client-reference-manifest.js +1 -1
- package/.next/server/app/robots.txt/route.js +1 -1
- package/.next/server/app/robots.txt/route.js.nft.json +1 -1
- package/.next/server/app/robots.txt/route_client-reference-manifest.js +1 -1
- package/.next/server/app/sitemap.xml/route.js +1 -1
- package/.next/server/app/sitemap.xml/route.js.nft.json +1 -1
- package/.next/server/app/sitemap.xml/route_client-reference-manifest.js +1 -1
- package/.next/server/app-paths-manifest.json +9 -4
- package/.next/server/chunks/1375.js +1 -0
- package/.next/server/chunks/1514.js +54 -0
- package/.next/server/chunks/2284.js +4 -0
- package/.next/server/chunks/2313.js +2 -2
- package/.next/server/chunks/2337.js +1 -1
- package/.next/server/chunks/2408.js +1 -1
- package/.next/server/chunks/3387.js +1 -0
- package/.next/server/chunks/3409.js +5 -0
- package/.next/server/chunks/4856.js +1 -0
- package/.next/server/chunks/5286.js +1 -0
- package/.next/server/chunks/{1722.js → 5544.js} +1 -1
- package/.next/server/chunks/5713.js +156 -0
- package/.next/server/chunks/6008.js +1 -0
- package/.next/server/chunks/6655.js +1 -0
- package/.next/server/chunks/6827.js +6 -0
- package/.next/server/chunks/{9228.js → 7184.js} +9 -9
- package/.next/server/chunks/733.js +1 -0
- package/.next/server/chunks/{6618.js → 8029.js} +2 -2
- package/.next/server/chunks/8714.js +1 -0
- package/.next/server/chunks/8939.js +1 -0
- package/.next/server/middleware-build-manifest.js +1 -1
- package/.next/server/middleware-manifest.json +12 -12
- package/.next/server/pages/404.html +2 -2
- package/.next/server/pages/500.html +1 -1
- package/.next/server/server-reference-manifest.json +1 -1
- package/.next/server/src/middleware.js +2 -2
- package/.next/static/Uh_7iky5Kcx69gUoxK7Er/_buildManifest.js +1 -0
- package/.next/static/chunks/{103-46cfa8ff07310382.js → 103-0561095c3788a308.js} +1 -1
- package/.next/static/chunks/1441-f7a7bcb828cad81e.js +2 -0
- package/.next/static/chunks/1789-049743797a75226d.js +1 -0
- package/.next/static/chunks/3859-776bce5eb3934558.js +1 -0
- package/.next/static/chunks/4905-17da119bb6ca7366.js +1 -0
- package/.next/static/chunks/5906-091657bd6dc60021.js +1 -0
- package/.next/static/chunks/{595-540f36fc4bd1eca9.js → 595-2c38864b670b4e24.js} +1 -1
- package/.next/static/chunks/{9956-b1e9ab15956e370e.js → 8581-701814526d03a782.js} +1 -1
- package/.next/static/chunks/{8616-cd5800f66cc48e07.js → 8616-3c9c00eb966ec5a3.js} +1 -1
- package/.next/static/chunks/9230-b616869976d6130e.js +1 -0
- package/.next/static/chunks/app/(developers)/api/docs/[slug]/asset/[id]/route-adcaaf134324196c.js +1 -0
- package/.next/static/chunks/app/(developers)/api/raw/[locale]/[slug]/[version]/content/[id]/route-eba70bf796216d88.js +1 -0
- package/.next/static/chunks/app/(developers)/api/raw/[locale]/[slug]/[version]/docs/[...path]/route-eba70bf796216d88.js +1 -0
- package/.next/static/chunks/app/(developers)/api/raw/[locale]/[slug]/[version]/docs/route-eba70bf796216d88.js +1 -0
- package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/content/[id]/error-cc5fa2b9c723e531.js +1 -0
- package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/content/[id]/not-found-e2c159a89dd766a0.js +1 -0
- package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/content/[id]/page-a4e67a1a9927e482.js +1 -0
- package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/content/error-3d602b631b90ddba.js +1 -0
- package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/content/not-found-e2c159a89dd766a0.js +1 -0
- package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/content/{page-9be9cb3294aa2ea2.js → page-4a5e64d731a5f7fc.js} +1 -1
- package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/docs/[...path]/error-fb074cefeb4df365.js +1 -0
- package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/docs/[...path]/not-found-e2c159a89dd766a0.js +1 -0
- package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/docs/[...path]/{page-66bd37d4cbebbeba.js → page-ba3f0b7b6ef67c78.js} +1 -1
- package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/docs/error-ef18547df8fa1cd6.js +1 -0
- package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/docs/not-found-e2c159a89dd766a0.js +1 -0
- package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/docs/page-0f9867704414b457.js +1 -0
- package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/layout-4721eb369302b3db.js +1 -0
- package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/llms.txt/route-eba70bf796216d88.js +1 -0
- package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/page-d1de27298a90e3c1.js +1 -0
- package/.next/static/chunks/app/[locale]/layout-496b76cbf43bb94d.js +1 -0
- package/.next/static/chunks/app/[locale]/not-found-7a358268112a56b4.js +1 -0
- package/.next/static/chunks/app/[locale]/page-c84bd2f6052f6b73.js +1 -0
- package/.next/static/chunks/app/_not-found/page-40b909e614212341.js +1 -0
- package/.next/static/chunks/app/{error-071f9f60fcee43d3.js → error-d01f9991f666feeb.js} +1 -1
- package/.next/static/chunks/app/llms.txt/route-40b909e614212341.js +1 -0
- package/.next/static/chunks/app/not-found-f434e3d8796c5d25.js +1 -0
- package/.next/static/chunks/app/opengraph-image/route-40b909e614212341.js +1 -0
- package/.next/static/chunks/app/robots.txt/route-40b909e614212341.js +1 -0
- package/.next/static/chunks/app/sitemap.xml/route-40b909e614212341.js +1 -0
- package/.next/static/chunks/main-e6ab5aa1cddf93db.js +1 -0
- package/package.json +1 -1
- package/public/blog-assets/compact_page.png +0 -0
- package/public/blog-assets/custom_md_props.png +0 -0
- package/public/blog-assets/figure_example.png +0 -0
- package/.next/server/chunks/3938.js +0 -1
- package/.next/server/chunks/4068.js +0 -1
- package/.next/server/chunks/4903.js +0 -1
- package/.next/server/chunks/5413.js +0 -10
- package/.next/server/chunks/5943.js +0 -159
- package/.next/server/chunks/6064.js +0 -54
- package/.next/server/chunks/7212.js +0 -1
- package/.next/server/chunks/7748.js +0 -1
- package/.next/server/chunks/7772.js +0 -1
- package/.next/server/chunks/981.js +0 -1
- package/.next/static/chunks/357-e28f1a542e1d123a.js +0 -1
- package/.next/static/chunks/4021-4ed620e833362864.js +0 -1
- package/.next/static/chunks/4467-e5439059ac57bbc1.js +0 -2
- package/.next/static/chunks/8047-a76bedee28fa3855.js +0 -1
- package/.next/static/chunks/8503-18e014294c240db0.js +0 -1
- package/.next/static/chunks/9538-0952ccc1cdc43aab.js +0 -1
- package/.next/static/chunks/app/(developers)/api/docs/[slug]/asset/[id]/route-2eb1e2f7ef7dbda5.js +0 -1
- package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/content/[id]/error-824b5f552a464508.js +0 -1
- package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/content/[id]/not-found-9a5a8c873fe218c8.js +0 -1
- package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/content/[id]/page-7caa12c64304cf05.js +0 -1
- package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/content/error-379b997ddc90bcb1.js +0 -1
- package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/content/not-found-9a5a8c873fe218c8.js +0 -1
- package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/docs/[...path]/error-c27832382d942bf9.js +0 -1
- package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/docs/[...path]/not-found-9a5a8c873fe218c8.js +0 -1
- package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/docs/error-2adf1c543db3b129.js +0 -1
- package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/docs/not-found-9a5a8c873fe218c8.js +0 -1
- package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/docs/page-d0de8ac366a22bb4.js +0 -1
- package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/layout-c35f1c7c35789f59.js +0 -1
- package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/page-5edab0f76527d8be.js +0 -1
- package/.next/static/chunks/app/[locale]/layout-bc721f680058d307.js +0 -1
- package/.next/static/chunks/app/[locale]/not-found-a5c82dda280be116.js +0 -1
- package/.next/static/chunks/app/[locale]/page-4e0567f9f6f7f014.js +0 -1
- package/.next/static/chunks/app/_not-found/page-a7d6d8b2540658b2.js +0 -1
- package/.next/static/chunks/app/not-found-ea05d09b42b69998.js +0 -1
- package/.next/static/chunks/app/opengraph-image/route-a7d6d8b2540658b2.js +0 -1
- package/.next/static/chunks/app/robots.txt/route-a7d6d8b2540658b2.js +0 -1
- package/.next/static/chunks/app/sitemap.xml/route-a7d6d8b2540658b2.js +0 -1
- package/.next/static/chunks/main-c8dfadc3bb2249ef.js +0 -1
- package/.next/static/nCMPmJHmoeQrp7fyfYS_W/_buildManifest.js +0 -1
- /package/.next/static/{nCMPmJHmoeQrp7fyfYS_W → Uh_7iky5Kcx69gUoxK7Er}/_ssgManifest.js +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8047],{1273:(e,t,r)=>{r.d(t,{AddRefIfNedded:()=>l});var n=r(7893),i=r(28081);let o=({merge:e,...t})=>{let{_stack:r,...i}=function(...e){return 1===e.length?e[0]:e.reduce((e,t)=>{for(let r in t)!function(e,t,r){if("children"===t)e.children=r||e.children;else if("_ref"===t)e._ref=r||e._ref;else if("data"===t)e.data=e.data?{...e.data,...r}:r;else if("className"===t)e.className=[e.className,r].join(" ").trim();else if("style"===t)e.style={...e.style,...r};else if("function"==typeof r){let n=e[t];e[t]=n?(...e)=>{n(...e),r(...e)}:r}else if(void 0===r||"object"!=typeof r&&r===e[t]);else if(t in e)throw Error(`Didn’t know how to merge prop '${t}'. Only 'className', 'style', and event handlers are supported`);else e[t]=r}(e,r,t[r]);return e},{})}(e,t),[o,...l]=r;if(o)return(0,n.jsx)(o,{_stack:l,...i});{let{_ref:e,data:t,children:r,...o}=i;return(0,n.jsx)("pre",{...o,ref:e,"data-ch":!0,children:(0,n.jsx)("div",{style:{minWidth:"fit-content"},children:r})})}},l=e=>{let t=(0,i.useRef)(null),r=e._ref||t;return(0,n.jsx)(o,{merge:e,_ref:r})}},9389:(e,t,r)=>{r.d(t,{Qg:()=>a,bL:()=>s});var n=r(28081),i=r(21851),o=r(7893),l=Object.defineProperty,a=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),s=n.forwardRef(l(function(e,t){return(0,o.jsx)(i.sG.span,{...e,ref:t,style:{...a,...e.style}})},"name",{value:"VisuallyHidden",configurable:!0}))},19371:(e,t)=>{function r(e){let{ampFirst:t=!1,hybrid:r=!1,hasQuery:n=!1}=void 0===e?{}:e;return t||r&&n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isInAmpMode",{enumerable:!0,get:function(){return r}})},29091:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return m},defaultHead:function(){return d}});let n=r(4420),i=r(71777),o=r(7893),l=i._(r(28081)),a=n._(r(46780)),s=r(44995),u=r(435),c=r(19371);function d(e){void 0===e&&(e=!1);let t=[(0,o.jsx)("meta",{charSet:"utf-8"},"charset")];return e||t.push((0,o.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")),t}function f(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===l.default.Fragment?e.concat(l.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}r(47971);let p=["name","httpEquiv","charSet","itemProp"];function h(e,t){let{inAmpMode:r}=t;return e.reduce(f,[]).reverse().concat(d(r).reverse()).filter(function(){let e=new Set,t=new Set,r=new Set,n={};return i=>{let o=!0,l=!1;if(i.key&&"number"!=typeof i.key&&i.key.indexOf("$")>0){l=!0;let t=i.key.slice(i.key.indexOf("$")+1);e.has(t)?o=!1:e.add(t)}switch(i.type){case"title":case"base":t.has(i.type)?o=!1:t.add(i.type);break;case"meta":for(let e=0,t=p.length;e<t;e++){let t=p[e];if(i.props.hasOwnProperty(t))if("charSet"===t)r.has(t)?o=!1:r.add(t);else{let e=i.props[t],r=n[t]||new Set;("name"!==t||!l)&&r.has(e)?o=!1:(r.add(e),n[t]=r)}}}return o}}()).reverse().map((e,t)=>{let r=e.key||t;return l.default.cloneElement(e,{key:r})})}let m=function(e){let{children:t}=e,r=(0,l.useContext)(s.AmpStateContext),n=(0,l.useContext)(u.HeadManagerContext);return(0,o.jsx)(a.default,{reduceComponentsToState:h,headManager:n,inAmpMode:(0,c.isInAmpMode)(r),children:t})};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},30981:(e,t,r)=>{r.d(t,{Kq:()=>q,UC:()=>X,bL:()=>V,l9:()=>W});var n=r(28081),i=r(51016),o=r(46988),l=r(25020),a=r(5721),s=r(68285),u=r(14182),c=r(17312),d=r(21851),f=r(85126),p=r(45415),h=r(58307),m=r(9389),g=r(7893),v=Object.defineProperty,y=(e,t)=>v(e,"name",{value:t,configurable:!0}),[b,x]=(0,l.A)("Tooltip",[u.Bk]),w=(0,u.Bk)(),C="tooltip.open",[j,R]=b("TooltipProvider"),_=y(e=>{let{__scopeTooltip:t,delayDuration:r=700,skipDelayDuration:i=300,disableHoverableContent:o=!1,children:l}=e,a=n.useRef(!0),s=n.useRef(!1),u=n.useRef(0);return n.useEffect(()=>{let e=u.current;return()=>window.clearTimeout(e)},[]),(0,g.jsx)(j,{scope:t,isOpenDelayedRef:a,delayDuration:r,onOpen:n.useCallback(()=>{i<=0||(window.clearTimeout(u.current),a.current=!1)},[i]),onClose:n.useCallback(()=>{i<=0||(window.clearTimeout(u.current),u.current=window.setTimeout(()=>a.current=!0,i))},[i]),isPointerInTransitRef:s,onPointerInTransitChange:n.useCallback(e=>{s.current=e},[]),disableHoverableContent:o,children:l})},"TooltipProvider"),E="Tooltip",[P,O]=b(E),S=y(e=>{let{__scopeTooltip:t,children:r,open:i,defaultOpen:o,onOpenChange:l,disableHoverableContent:a,delayDuration:c}=e,d=R(E,e.__scopeTooltip),f=w(t),[h,m]=n.useState(null),[v,b]=n.useState(void 0),x=(0,s.B)(),j=n.useRef(0),_=null!=a?a:d.disableHoverableContent,O=null!=c?c:d.delayDuration,S=n.useRef(!1),[T,k]=(0,p.i)({prop:i,defaultProp:null!=o&&o,onChange:y(e=>{e?(d.onOpen(),document.dispatchEvent(new CustomEvent(C))):d.onClose(),null==l||l(e)},"onChange"),caller:E}),I=n.useMemo(()=>T?S.current?"delayed-open":"instant-open":"closed",[T]),A=n.useCallback(()=>{window.clearTimeout(j.current),j.current=0,S.current=!1,k(!0)},[k]),M=n.useCallback(()=>{window.clearTimeout(j.current),j.current=0,k(!1)},[k]),D=n.useCallback(()=>{window.clearTimeout(j.current),j.current=window.setTimeout(()=>{S.current=!0,k(!0),j.current=0},O)},[O,k]);return n.useEffect(()=>()=>{j.current&&(window.clearTimeout(j.current),j.current=0)},[]),(0,g.jsx)(u.bL,{...f,children:(0,g.jsx)(P,{scope:t,contentId:null!=v?v:x,setContentId:b,open:T,stateAttribute:I,trigger:h,onTriggerChange:m,onTriggerEnter:n.useCallback(()=>{d.isOpenDelayedRef.current?D():A()},[d.isOpenDelayedRef,D,A]),onTriggerLeave:n.useCallback(()=>{_?M():(window.clearTimeout(j.current),j.current=0)},[M,_]),onOpen:A,onClose:M,disableHoverableContent:_,children:r})})},"Tooltip"),T="TooltipTrigger",k=n.forwardRef(y(function(e,t){let{__scopeTooltip:r,...l}=e,a=O(T,r),s=R(T,r),c=w(r),f=n.useRef(null),p=(0,o.s)(t,f,a.onTriggerChange),h=n.useRef(!1),m=n.useRef(!1),v=n.useCallback(()=>h.current=!1,[]);return n.useEffect(()=>()=>document.removeEventListener("pointerup",v),[v]),(0,g.jsx)(u.Mz,{asChild:!0,...c,children:(0,g.jsx)(d.sG.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...l,ref:p,onPointerMove:(0,i.mK)(e.onPointerMove,e=>{"touch"!==e.pointerType&&(m.current||s.isPointerInTransitRef.current||(a.onTriggerEnter(),m.current=!0))}),onPointerLeave:(0,i.mK)(e.onPointerLeave,()=>{a.onTriggerLeave(),m.current=!1}),onPointerDown:(0,i.mK)(e.onPointerDown,()=>{a.open&&a.onClose(),h.current=!0,document.addEventListener("pointerup",v,{once:!0})}),onFocus:(0,i.mK)(e.onFocus,()=>{h.current||a.onOpen()}),onBlur:(0,i.mK)(e.onBlur,a.onClose),onClick:(0,i.mK)(e.onClick,a.onClose)})})},"TooltipTrigger")),[I,A]=b("TooltipPortal",{forceMount:void 0}),M="TooltipContent",D=n.forwardRef(y(function(e,t){let r=A(M,e.__scopeTooltip),{forceMount:n=r.forceMount,side:i="top",...o}=e,l=O(M,e.__scopeTooltip);return(0,g.jsx)(c.C,{present:n||l.open,children:l.disableHoverableContent?(0,g.jsx)(F,{side:i,...o,ref:t}):(0,g.jsx)(z,{side:i,...o,ref:t})})},"TooltipContent")),z=n.forwardRef(y(function(e,t){let r=O(M,e.__scopeTooltip),i=R(M,e.__scopeTooltip),l=n.useRef(null),a=(0,o.s)(t,l),[s,u]=n.useState(null),{trigger:c,onClose:d}=r,f=l.current,{onPointerInTransitChange:p}=i,h=n.useCallback(()=>{u(null),p(!1)},[p]),m=n.useCallback((e,t)=>{let r=e.currentTarget,n={x:e.clientX,y:e.clientY},i=N(n,r.getBoundingClientRect());u(U([...K(n,i),...G(t.getBoundingClientRect())])),p(!0)},[p]);return n.useEffect(()=>()=>h(),[h]),n.useEffect(()=>{if(c&&f){let e=y(e=>m(e,f),"handleTriggerLeave"),t=y(e=>m(e,c),"handleContentLeave");return c.addEventListener("pointerleave",e),f.addEventListener("pointerleave",t),()=>{c.removeEventListener("pointerleave",e),f.removeEventListener("pointerleave",t)}}},[c,f,m,h]),n.useEffect(()=>{if(s){let e=y(e=>{let t=e.target,r={x:e.clientX,y:e.clientY},n=(null==c?void 0:c.contains(t))||(null==f?void 0:f.contains(t)),i=!B(r,s);n?h():i&&(h(),d())},"handleTrackPointerGrace");return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[c,f,s,d,h]),(0,g.jsx)(F,{...e,ref:a})},"TooltipContentHoverable")),L=(0,f.Dc)("TooltipContent"),F=n.forwardRef(y(function(e,t){let{__scopeTooltip:r,children:i,"aria-label":o,id:l,onEscapeKeyDown:s,onPointerDownOutside:c,...d}=e,f=O(M,r),p=w(r),{onClose:v}=f;n.useEffect(()=>(document.addEventListener(C,v),()=>document.removeEventListener(C,v)),[v]),n.useEffect(()=>{if(f.trigger){let e=y(e=>{e.target instanceof Node&&e.target.contains(f.trigger)&&v()},"handleScroll");return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[f.trigger,v]);let{setContentId:b}=f;return(0,h.N)(()=>(b(l),()=>{b(void 0)}),[l,b]),(0,g.jsx)(a.qW,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:e=>e.preventDefault(),onDismiss:v,children:(0,g.jsxs)(u.UC,{"data-state":f.stateAttribute,role:o?void 0:"tooltip",id:o?void 0:f.contentId,...p,...d,ref:t,style:{...d.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[(0,g.jsx)(L,{children:i}),o?(0,g.jsx)(m.bL,{id:f.contentId,role:"tooltip",children:o}):null]})})},"TooltipContentImpl"));function N(e,t){let r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(r,n,i,o)){case o:return"left";case i:return"right";case r:return"top";case n:return"bottom";default:throw Error("unreachable")}}function K(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r})}return n}function G(e){let{top:t,right:r,bottom:n,left:i}=e;return[{x:i,y:t},{x:r,y:t},{x:r,y:n},{x:i,y:n}]}function B(e,t){let{x:r,y:n}=e,i=!1;for(let e=0,o=t.length-1;e<t.length;o=e++){let l=t[e],a=t[o],s=l.x,u=l.y,c=a.x,d=a.y;u>n!=d>n&&r<(c-s)*(n-u)/(d-u)+s&&(i=!i)}return i}function U(e){let t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:1*!!(e.y>t.y)),H(t)}function H(e){if(e.length<=1)return e.slice();let t=[];for(let r=0;r<e.length;r++){let n=e[r];for(;t.length>=2;){let e=t[t.length-1],r=t[t.length-2];if((e.x-r.x)*(n.y-r.y)>=(e.y-r.y)*(n.x-r.x))t.pop();else break}t.push(n)}t.pop();let r=[];for(let t=e.length-1;t>=0;t--){let n=e[t];for(;r.length>=2;){let e=r[r.length-1],t=r[r.length-2];if((e.x-t.x)*(n.y-t.y)>=(e.y-t.y)*(n.x-t.x))r.pop();else break}r.push(n)}return(r.pop(),1===t.length&&1===r.length&&t[0].x===r[0].x&&t[0].y===r[0].y)?t:t.concat(r)}y(N,"getExitSideFromRect"),y(K,"getPaddedExitPoints"),y(G,"getPointsFromRect"),y(B,"isPointInPolygon"),y(U,"getHull"),y(H,"getHullPresorted");var q=_,V=S,W=k,X=D},32053:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(80818).A)("tv-minimal-play",[["path",{d:"M15.033 9.44a.647.647 0 0 1 0 1.12l-4.065 2.352a.645.645 0 0 1-.968-.56V7.648a.645.645 0 0 1 .967-.56z",key:"vbtd3f"}],["path",{d:"M7 21h10",key:"1b0cd5"}],["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}]])},41853:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ImageConfigContext",{enumerable:!0,get:function(){return o}});let n=r(4420)._(r(28081)),i=r(46095),o=n.default.createContext(i.imageConfigDefault)},42019:(e,t,r)=>{r.d(t,{jH:()=>l});var n=r(28081);r(7893);var i=Object.defineProperty,o=n.createContext(void 0);function l(e){let t=n.useContext(o);return e||t||"ltr"}i(l,"name",{value:"useDirection",configurable:!0})},43970:(e,t)=>{function r(e){var t;let{config:r,src:n,width:i,quality:o}=e,l=o||(null==(t=r.qualities)?void 0:t.reduce((e,t)=>Math.abs(t-75)<Math.abs(e-75)?t:e))||75;return r.path+"?url="+encodeURIComponent(n)+"&w="+i+"&q="+l+(n.startsWith("/_next/static/media/"),"")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}}),r.__next_img_default=!0;let n=r},44995:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AmpStateContext",{enumerable:!0,get:function(){return n}});let n=r(4420)._(r(28081)).default.createContext({})},46095:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{VALID_LOADERS:function(){return r},imageConfigDefault:function(){return n}});let r=["default","imgix","cloudinary","akamai","custom"],n={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:60,formats:["image/webp"],maximumDiskCacheSize:void 0,maximumResponseBody:5e7,dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],qualities:void 0,unoptimized:!1}},46780:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});let n=r(28081),i=n.useLayoutEffect,o=n.useEffect;function l(e){let{headManager:t,reduceComponentsToState:r}=e;function l(){if(t&&t.mountedInstances){let i=n.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(r(i,e))}}return i(()=>{var r;return null==t||null==(r=t.mountedInstances)||r.add(e.children),()=>{var r;null==t||null==(r=t.mountedInstances)||r.delete(e.children)}}),i(()=>(t&&(t._pendingUpdate=l),()=>{t&&(t._pendingUpdate=l)})),o(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},48731:(e,t,r)=>{r.d(t,{UC:()=>es,B8:()=>el,bL:()=>eo,l9:()=>ea});var n=r(28081),i=r.t(n,2),o=r(51016),l=r(25020),a=r(93992),s=r(46988),u=r(68285),c=r(21851),d=r(66325),f=r(45415),p=r(42019),h=r(58307),m=Object.defineProperty,g=(e,t)=>m(e,"name",{value:t,configurable:!0}),v=!1;function y(){let[e,t]=n.useState(v);return n.useEffect(()=>{v||(v=!0,t(!0))},[]),e}g(y,"useIsHydrated");var b=i[" useSyncExternalStore ".trim().toString()];function x(){return()=>{}}function w(){return b(x,()=>!0,()=>!1)}g(x,"subscribe"),g(w,"useIsHydratedModern");var C="function"==typeof b?w:y,j=r(7893),R=Object.defineProperty,_=(e,t)=>R(e,"name",{value:t,configurable:!0}),E="rovingFocusGroup.onEntryFocus",P={bubbles:!1,cancelable:!0},O="RovingFocusGroup",[S,T,k]=(0,a.N)(O),[I,A]=(0,l.A)(O,[k]),[M,D]=I(O),z=n.forwardRef(_(function(e,t){return(0,j.jsx)(S.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,j.jsx)(S.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,j.jsx)(L,{...e,ref:t})})})},"RovingFocusGroup")),L=n.forwardRef(_(function(e,t){let{__scopeRovingFocusGroup:r,orientation:i,loop:l=!1,dir:a,currentTabStopId:u,defaultCurrentTabStopId:h,onCurrentTabStopIdChange:m,onEntryFocus:g,preventScrollOnEntryFocus:v=!1,...y}=e,b=n.useRef(null),x=(0,s.s)(t,b),w=(0,p.jH)(a),[C,R]=(0,f.i)({prop:u,defaultProp:null!=h?h:null,onChange:m,caller:O}),[_,S]=n.useState(!1),k=(0,d.c)(g),I=T(r),A=n.useRef(!1),[D,z]=n.useState(0);return n.useEffect(()=>{let e=b.current;if(e)return e.addEventListener(E,k),()=>e.removeEventListener(E,k)},[k]),(0,j.jsx)(M,{scope:r,orientation:i,dir:w,loop:l,currentTabStopId:C,onItemFocus:n.useCallback(e=>R(e),[R]),onItemShiftTab:n.useCallback(()=>S(!0),[]),onFocusableItemAdd:n.useCallback(()=>z(e=>e+1),[]),onFocusableItemRemove:n.useCallback(()=>z(e=>e-1),[]),children:(0,j.jsx)(c.sG.div,{tabIndex:_||0===D?-1:0,"data-orientation":i,...y,ref:x,style:{outline:"none",...e.style},onMouseDown:(0,o.mK)(e.onMouseDown,()=>{A.current=!0}),onFocus:(0,o.mK)(e.onFocus,e=>{let t=!A.current;if(e.target===e.currentTarget&&t&&!_){let t=new CustomEvent(E,P);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=I().filter(e=>e.focusable);B([e.find(e=>e.active),e.find(e=>e.id===C),...e].filter(Boolean).map(e=>e.ref.current),v)}}A.current=!1}),onBlur:(0,o.mK)(e.onBlur,()=>S(!1))})})},"RovingFocusGroupImpl")),F=n.forwardRef(_(function(e,t){let{__scopeRovingFocusGroup:r,focusable:i=!0,active:l=!1,tabStopId:a,children:s,...d}=e,f=(0,u.B)(),p=a||f,m=D("RovingFocusGroupItem",r),g=m.currentTabStopId===p,v=T(r),{onFocusableItemAdd:y,onFocusableItemRemove:b,currentTabStopId:x}=m,w=C();return(0,h.N)(()=>{if(w&&i)return y(),()=>b()},[w,i,y,b]),n.useEffect(()=>{if(!w&&i)return y(),()=>b()},[w,i,y,b]),(0,j.jsx)(S.ItemSlot,{scope:r,id:p,focusable:i,active:l,children:(0,j.jsx)(c.sG.span,{tabIndex:g?0:-1,"data-orientation":m.orientation,...d,ref:t,onMouseDown:(0,o.mK)(e.onMouseDown,e=>{i?m.onItemFocus(p):e.preventDefault()}),onFocus:(0,o.mK)(e.onFocus,()=>m.onItemFocus(p)),onKeyDown:(0,o.mK)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void m.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=G(e,m.orientation,m.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let r=v().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)r.reverse();else if("prev"===t||"next"===t){"prev"===t&&r.reverse();let n=r.indexOf(e.currentTarget);r=m.loop?U(r,n+1):r.slice(n+1)}setTimeout(()=>B(r))}}),children:"function"==typeof s?s({isCurrentTabStop:g,hasTabStop:null!=x}):s})})},"RovingFocusGroupItem")),N={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function K(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}function G(e,t,r){let n=K(e.key,r);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(n))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(n)))return N[n]}function B(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=document.activeElement;for(let n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function U(e,t){return e.map((r,n)=>e[(t+n)%e.length])}_(K,"getDirectionAwareKey"),_(G,"getFocusIntent"),_(B,"focusFirst"),_(U,"wrapArray");var H=r(17312),q=Object.defineProperty,V=(e,t)=>q(e,"name",{value:t,configurable:!0}),W="Tabs",[X,Y]=(0,l.A)(W,[A]),$=A(),[J,Q]=X(W),Z=n.forwardRef(V(function(e,t){let{__scopeTabs:r,value:n,onValueChange:i,defaultValue:o,orientation:l="horizontal",dir:a,activationMode:s="automatic",...d}=e,h=(0,p.jH)(a),[m,g]=(0,f.i)({prop:n,onChange:i,defaultProp:null!=o?o:"",caller:W});return(0,j.jsx)(J,{scope:r,baseId:(0,u.B)(),value:m,onValueChange:g,orientation:l,dir:h,activationMode:s,children:(0,j.jsx)(c.sG.div,{dir:h,"data-orientation":l,...d,ref:t})})},"Tabs")),ee=n.forwardRef(V(function(e,t){let{__scopeTabs:r,loop:n=!0,...i}=e,o=Q("TabsList",r),l=$(r);return(0,j.jsx)(z,{asChild:!0,...l,orientation:o.orientation,dir:o.dir,loop:n,children:(0,j.jsx)(c.sG.div,{role:"tablist","aria-orientation":o.orientation,...i,ref:t})})},"TabsList")),et=n.forwardRef(V(function(e,t){let{__scopeTabs:r,value:n,disabled:i=!1,...l}=e,a=Q("TabsTrigger",r),s=$(r),u=en(a.baseId,n),d=ei(a.baseId,n),f=n===a.value;return(0,j.jsx)(F,{asChild:!0,...s,focusable:!i,active:f,children:(0,j.jsx)(c.sG.button,{type:"button",role:"tab","aria-selected":f,"aria-controls":d,"data-state":f?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:u,...l,ref:t,onMouseDown:(0,o.mK)(e.onMouseDown,e=>{i||0!==e.button||!1!==e.ctrlKey?e.preventDefault():a.onValueChange(n)}),onKeyDown:(0,o.mK)(e.onKeyDown,e=>{!i&&e.target===e.currentTarget&&[" ","Enter"].includes(e.key)&&a.onValueChange(n)}),onFocus:(0,o.mK)(e.onFocus,()=>{let e="manual"!==a.activationMode;f||i||!e||a.onValueChange(n)})})})},"TabsTrigger")),er=n.forwardRef(V(function(e,t){let{__scopeTabs:r,value:i,forceMount:o,children:l,...a}=e,s=Q("TabsContent",r),u=en(s.baseId,i),d=ei(s.baseId,i),f=i===s.value,p=n.useRef(f);return n.useEffect(()=>{let e=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,j.jsx)(H.C,{present:o||f,children:r=>{let{present:n}=r;return(0,j.jsx)(c.sG.div,{"data-state":f?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":u,hidden:!n,id:d,tabIndex:0,...a,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:n&&l})}})},"TabsContent"));function en(e,t){return"".concat(e,"-trigger-").concat(t)}function ei(e,t){return"".concat(e,"-content-").concat(t)}V(en,"makeTriggerId"),V(ei,"makeContentId");var eo=Z,el=ee,ea=et,es=er},59179:(e,t)=>{function r(e){let{widthInt:t,heightInt:r,blurWidth:n,blurHeight:i,blurDataURL:o,objectFit:l}=e,a=n?40*n:t,s=i?40*i:r,u=a&&s?"viewBox='0 0 "+a+" "+s+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+u+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+(u?"none":"contain"===l?"xMidYMid":"cover"===l?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+o+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return r}})},61115:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(80818).A)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},63914:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return x}});let n=r(4420),i=r(71777),o=r(7893),l=i._(r(28081)),a=n._(r(63220)),s=n._(r(29091)),u=r(69538),c=r(46095),d=r(41853);r(47971);let f=r(0),p=n._(r(43970)),h=r(26865),m={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1};function g(e,t,r,n,i,o,l){let a=null==e?void 0:e.src;e&&e["data-loaded-src"]!==a&&(e["data-loaded-src"]=a,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&i(!0),null==r?void 0:r.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let n=!1,i=!1;r.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>n,isPropagationStopped:()=>i,persist:()=>{},preventDefault:()=>{n=!0,t.preventDefault()},stopPropagation:()=>{i=!0,t.stopPropagation()}})}(null==n?void 0:n.current)&&n.current(e)}}))}function v(e){return l.use?{fetchPriority:e}:{fetchpriority:e}}let y=(0,l.forwardRef)((e,t)=>{let{src:r,srcSet:n,sizes:i,height:a,width:s,decoding:u,className:c,style:d,fetchPriority:f,placeholder:p,loading:m,unoptimized:y,fill:b,onLoadRef:x,onLoadingCompleteRef:w,setBlurComplete:C,setShowAltText:j,sizesInput:R,onLoad:_,onError:E,...P}=e,O=(0,l.useCallback)(e=>{e&&(E&&(e.src=e.src),e.complete&&g(e,p,x,w,C,y,R))},[r,p,x,w,C,E,y,R]),S=(0,h.useMergedRef)(t,O);return(0,o.jsx)("img",{...P,...v(f),loading:m,width:s,height:a,decoding:u,"data-nimg":b?"fill":"1",className:c,style:d,sizes:i,srcSet:n,src:r,ref:S,onLoad:e=>{g(e.currentTarget,p,x,w,C,y,R)},onError:e=>{j(!0),"empty"!==p&&C(!0),E&&E(e)}})});function b(e){let{isAppRouter:t,imgAttributes:r}=e,n={as:"image",imageSrcSet:r.srcSet,imageSizes:r.sizes,crossOrigin:r.crossOrigin,referrerPolicy:r.referrerPolicy,...v(r.fetchPriority)};return t&&a.default.preload?(a.default.preload(r.src,n),null):(0,o.jsx)(s.default,{children:(0,o.jsx)("link",{rel:"preload",href:r.srcSet?void 0:r.src,...n},"__nimg-"+r.src+r.srcSet+r.sizes)})}let x=(0,l.forwardRef)((e,t)=>{let r=(0,l.useContext)(f.RouterContext),n=(0,l.useContext)(d.ImageConfigContext),i=(0,l.useMemo)(()=>{var e;let t=m||n||c.imageConfigDefault,r=[...t.deviceSizes,...t.imageSizes].sort((e,t)=>e-t),i=t.deviceSizes.sort((e,t)=>e-t),o=null==(e=t.qualities)?void 0:e.sort((e,t)=>e-t);return{...t,allSizes:r,deviceSizes:i,qualities:o}},[n]),{onLoad:a,onLoadingComplete:s}=e,h=(0,l.useRef)(a);(0,l.useEffect)(()=>{h.current=a},[a]);let g=(0,l.useRef)(s);(0,l.useEffect)(()=>{g.current=s},[s]);let[v,x]=(0,l.useState)(!1),[w,C]=(0,l.useState)(!1),{props:j,meta:R}=(0,u.getImgProps)(e,{defaultLoader:p.default,imgConf:i,blurComplete:v,showAltText:w});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(y,{...j,unoptimized:R.unoptimized,placeholder:R.placeholder,fill:R.fill,onLoadRef:h,onLoadingCompleteRef:g,setBlurComplete:x,setShowAltText:C,sizesInput:e.sizes,ref:t}),R.priority?(0,o.jsx)(b,{isAppRouter:!r,imgAttributes:j}):null]})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},69538:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return s}}),r(47971);let n=r(59179),i=r(46095),o=["-moz-initial","fill","none","scale-down",void 0];function l(e){return void 0!==e.default}function a(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function s(e,t){var r,s;let u,c,d,{src:f,sizes:p,unoptimized:h=!1,priority:m=!1,loading:g,className:v,quality:y,width:b,height:x,fill:w=!1,style:C,overrideSrc:j,onLoad:R,onLoadingComplete:_,placeholder:E="empty",blurDataURL:P,fetchPriority:O,decoding:S="async",layout:T,objectFit:k,objectPosition:I,lazyBoundary:A,lazyRoot:M,...D}=e,{imgConf:z,showAltText:L,blurComplete:F,defaultLoader:N}=t,K=z||i.imageConfigDefault;if("allSizes"in K)u=K;else{let e=[...K.deviceSizes,...K.imageSizes].sort((e,t)=>e-t),t=K.deviceSizes.sort((e,t)=>e-t),n=null==(r=K.qualities)?void 0:r.sort((e,t)=>e-t);u={...K,allSizes:e,deviceSizes:t,qualities:n}}if(void 0===N)throw Object.defineProperty(Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config"),"__NEXT_ERROR_CODE",{value:"E163",enumerable:!1,configurable:!0});let G=D.loader||N;delete D.loader,delete D.srcSet;let B="__next_img_default"in G;if(B){if("custom"===u.loader)throw Object.defineProperty(Error('Image with src "'+f+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader'),"__NEXT_ERROR_CODE",{value:"E252",enumerable:!1,configurable:!0})}else{let e=G;G=t=>{let{config:r,...n}=t;return e(n)}}if(T){"fill"===T&&(w=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[T];e&&(C={...C,...e});let t={responsive:"100vw",fill:"100vw"}[T];t&&!p&&(p=t)}let U="",H=a(b),q=a(x);if((s=f)&&"object"==typeof s&&(l(s)||void 0!==s.src)){let e=l(f)?f.default:f;if(!e.src)throw Object.defineProperty(Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e)),"__NEXT_ERROR_CODE",{value:"E460",enumerable:!1,configurable:!0});if(!e.height||!e.width)throw Object.defineProperty(Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e)),"__NEXT_ERROR_CODE",{value:"E48",enumerable:!1,configurable:!0});if(c=e.blurWidth,d=e.blurHeight,P=P||e.blurDataURL,U=e.src,!w)if(H||q){if(H&&!q){let t=H/e.width;q=Math.round(e.height*t)}else if(!H&&q){let t=q/e.height;H=Math.round(e.width*t)}}else H=e.width,q=e.height}let V=!m&&("lazy"===g||void 0===g);(!(f="string"==typeof f?f:U)||f.startsWith("data:")||f.startsWith("blob:"))&&(h=!0,V=!1),u.unoptimized&&(h=!0),B&&!u.dangerouslyAllowSVG&&f.split("?",1)[0].endsWith(".svg")&&(h=!0);let W=a(y),X=Object.assign(w?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:k,objectPosition:I}:{},L?{}:{color:"transparent"},C),Y=F||"empty"===E?null:"blur"===E?'url("data:image/svg+xml;charset=utf-8,'+(0,n.getImageBlurSvg)({widthInt:H,heightInt:q,blurWidth:c,blurHeight:d,blurDataURL:P||"",objectFit:X.objectFit})+'")':'url("'+E+'")',$=o.includes(X.objectFit)?"fill"===X.objectFit?"100% 100%":"cover":X.objectFit,J=Y?{backgroundSize:$,backgroundPosition:X.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:Y}:{},Q=function(e){let{config:t,src:r,unoptimized:n,width:i,quality:o,sizes:l,loader:a}=e;if(n)return{src:r,srcSet:void 0,sizes:void 0};let{widths:s,kind:u}=function(e,t,r){let{deviceSizes:n,allSizes:i}=e;if(r){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let n;n=e.exec(r);)t.push(parseInt(n[2]));if(t.length){let e=.01*Math.min(...t);return{widths:i.filter(t=>t>=n[0]*e),kind:"w"}}return{widths:i,kind:"w"}}return"number"!=typeof t?{widths:n,kind:"w"}:{widths:[...new Set([t,2*t].map(e=>i.find(t=>t>=e)||i[i.length-1]))],kind:"x"}}(t,i,l),c=s.length-1;return{sizes:l||"w"!==u?l:"100vw",srcSet:s.map((e,n)=>a({config:t,src:r,quality:o,width:e})+" "+("w"===u?e:n+1)+u).join(", "),src:a({config:t,src:r,quality:o,width:s[c]})}}({config:u,src:f,unoptimized:h,width:H,quality:W,sizes:p,loader:G});return{props:{...D,loading:V?"lazy":g,fetchPriority:O,width:H,height:q,decoding:S,className:v,style:{...X,...J},sizes:Q.sizes,srcSet:Q.srcSet,src:j||Q.src},meta:{unoptimized:h,priority:m,placeholder:E,fill:w}}}},78100:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(80818).A)("link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]])},93992:(e,t,r)=>{function n(e,t,r){if(!t.has(e))throw TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}function i(e,t){var r=n(e,t,"get");return r.get?r.get.call(e):r.value}function o(e,t,r){var i=n(e,t,"set");if(i.set)i.set.call(e,r);else{if(!i.writable)throw TypeError("attempted to set read only private field");i.value=r}return r}r.d(t,{N:()=>m});var l,a,s=r(28081),u=r(25020),c=r(46988),d=r(85126),f=r(7893),p=Object.defineProperty,h=(e,t)=>p(e,"name",{value:t,configurable:!0});function m(e){let t=e+"CollectionProvider",[r,n]=(0,u.A)(t),[i,o]=r(t,{collectionRef:{current:null},itemMap:new Map}),l=h(e=>{let{scope:t,children:r}=e,n=s.useRef(null),o=s.useRef(new Map).current;return(0,f.jsx)(i,{scope:t,itemMap:o,collectionRef:n,children:r})},"CollectionProvider");l.displayName=t;let a=e+"CollectionSlot",p=(0,d.TL)(a),m=s.forwardRef((e,t)=>{let{scope:r,children:n}=e,i=o(a,r),l=(0,c.s)(t,i.collectionRef);return(0,f.jsx)(p,{ref:l,children:n})});m.displayName=a;let g=e+"CollectionItemSlot",v="data-radix-collection-item",y=(0,d.TL)(g),b=s.forwardRef((e,t)=>{let{scope:r,children:n,...i}=e,l=s.useRef(null),a=(0,c.s)(t,l),u=o(g,r);return s.useEffect(()=>(u.itemMap.set(l,{ref:l,...i}),()=>void u.itemMap.delete(l))),(0,f.jsx)(y,{...{[v]:""},ref:a,children:n})});function x(t){let r=o(e+"CollectionConsumer",t);return s.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(v,"]")));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])}return b.displayName=g,h(x,"useCollection"),[{Provider:l,Slot:m,ItemSlot:b},x,n]}h(m,"createCollection");var g=new WeakMap,v=(l=new WeakMap,h(a=class e extends Map{set(e,t){return g.get(this)&&(this.has(e)?i(this,l)[i(this,l).indexOf(e)]=e:i(this,l).push(e)),super.set(e,t),this}insert(e,t,r){let n,o=this.has(t),a=i(this,l).length,s=x(e),u=s>=0?s:a+s,c=u<0||u>=a?-1:u;if(c===this.size||o&&c===this.size-1||-1===c)return this.set(t,r),this;let d=this.size+ +!o;s<0&&u++;let f=[...i(this,l)],p=!1;for(let e=u;e<d;e++)if(u===e){let i=f[e];f[e]===t&&(i=f[e+1]),o&&this.delete(t),n=this.get(i),this.set(t,r)}else{p||f[e-1]!==t||(p=!0);let r=f[p?e:e-1],i=n;n=this.get(r),this.delete(r),this.set(r,i)}return this}with(t,r,n){let i=new e(this);return i.insert(t,r,n),i}before(e){let t=i(this,l).indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,r){let n=i(this,l).indexOf(e);return -1===n?this:this.insert(n,t,r)}after(e){let t=i(this,l).indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,r){let n=i(this,l).indexOf(e);return -1===n?this:this.insert(n+1,t,r)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return o(this,l,[]),super.clear()}delete(e){let t=super.delete(e);return t&&i(this,l).splice(i(this,l).indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=y(i(this,l),e);if(void 0!==t)return this.get(t)}entryAt(e){let t=y(i(this,l),e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return i(this,l).indexOf(e)}keyAt(e){return y(i(this,l),e)}from(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.at(n)}keyFrom(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.keyAt(n)}find(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return n;r++}}findIndex(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return r;r++}return -1}filter(t,r){let n=[],i=0;for(let e of this)Reflect.apply(t,r,[e,i,this])&&n.push(e),i++;return new e(n)}map(t,r){let n=[],i=0;for(let e of this)n.push([e[0],Reflect.apply(t,r,[e,i,this])]),i++;return new e(n)}reduce(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let[n,i]=t,o=0,l=null!=i?i:this.at(0);for(let e of this)l=0===o&&1===t.length?e:Reflect.apply(n,this,[l,e,o,this]),o++;return l}reduceRight(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let[n,i]=t,o=null!=i?i:this.at(-1);for(let e=this.size-1;e>=0;e--){let r=this.at(e);o=e===this.size-1&&1===t.length?r:Reflect.apply(n,this,[o,r,e,this])}return o}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let r=this.keyAt(e),n=this.get(r);t.set(r,n)}return t}toSpliced(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];let i=[...this.entries()];return i.splice(...r),new e(i)}slice(t,r){let n=new e,i=this.size-1;if(void 0===t)return n;t<0&&(t+=this.size),void 0!==r&&r>0&&(i=r-1);for(let e=t;e<=i;e++){let t=this.keyAt(e),r=this.get(t);n.set(t,r)}return n}every(e,t){let r=0;for(let n of this){if(!Reflect.apply(e,t,[n,r,this]))return!1;r++}return!0}some(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return!0;r++}return!1}constructor(e){super(e),function(e,t,r){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object");t.set(e,r)}(this,l,{writable:!0,value:void 0}),o(this,l,[...super.keys()]),g.set(this,!0)}},"OrderedDict"),a);function y(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let r=b(e,t);return -1===r?void 0:e[r]}function b(e,t){let r=e.length,n=x(t),i=n>=0?n:r+n;return i<0||i>=r?-1:i}function x(e){return e!=e||0===e?0:Math.trunc(e)}function w(e,t){if(e===t)return!0;if("object"!=typeof e||"object"!=typeof t||null==e||null==t)return!1;let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let n of r)if(!Object.prototype.hasOwnProperty.call(t,n)||e[n]!==t[n])return!1;return!0}function C(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function j(e,t){return e[1].element&&t[1].element?C(e[1].element,t[1].element)?-1:1:0}function R(e){return new MutationObserver(t=>{for(let r of t)if("childList"===r.type)return void e()})}h(y,"at"),h(b,"toSafeIndex"),h(x,"toSafeInteger"),h(function(e){let t=e+"CollectionProvider",[r,n]=(0,u.A)(t),[i,o]=r(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new v,setItemMap:h(()=>void 0,"setItemMap")}),l=h(e=>{let{state:t,...r}=e;return t?(0,f.jsx)(p,{...r,state:t}):(0,f.jsx)(a,{...r})},"CollectionProvider");l.displayName=t;let a=h(e=>{let t=_();return(0,f.jsx)(p,{...e,state:t})},"CollectionInit");a.displayName=t+"Init";let p=h(e=>{let{scope:t,children:r,state:n}=e,o=s.useRef(null),[l,a]=s.useState(null),u=(0,c.s)(o,a),[d,p]=n;return s.useEffect(()=>{if(!l)return;let e=R(()=>{});return e.observe(l,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[l]),(0,f.jsx)(i,{scope:t,itemMap:d,setItemMap:p,collectionRef:u,collectionRefObject:o,collectionElement:l,children:r})},"CollectionProviderImpl");p.displayName=t+"Impl";let m=e+"CollectionSlot",g=(0,d.TL)(m),y=s.forwardRef((e,t)=>{let{scope:r,children:n}=e,i=o(m,r),l=(0,c.s)(t,i.collectionRef);return(0,f.jsx)(g,{ref:l,children:n})});y.displayName=m;let b=e+"CollectionItemSlot",x=(0,d.TL)(b),C=s.forwardRef((e,t)=>{let{scope:r,children:n,...i}=e,l=s.useRef(null),[a,u]=s.useState(null),d=(0,c.s)(t,l,u),{setItemMap:p}=o(b,r),h=s.useRef(i);w(h.current,i)||(h.current=i);let m=h.current;return s.useEffect(()=>(p(e=>a?e.has(a)?e.set(a,{...m,element:a}).toSorted(j):(e.set(a,{...m,element:a}),e.toSorted(j)):e),()=>{p(e=>a&&e.has(a)?(e.delete(a),new v(e)):e)}),[a,m,p]),(0,f.jsx)(x,{"data-radix-collection-item":"",ref:d,children:n})});function _(){return s.useState(new v)}function E(t){let{itemMap:r}=o(e+"CollectionConsumer",t);return r}return C.displayName=b,h(_,"useInitCollection"),h(E,"useCollection"),[{Provider:l,Slot:y,ItemSlot:C},{createCollectionScope:n,useCollection:E,useInitCollection:_}]},"createCollection"),h(w,"shallowEqual"),h(C,"isElementPreceding"),h(j,"sortByDocumentPosition"),h(R,"getChildListObserver")},97279:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(80818).A)("chevrons-down",[["path",{d:"m7 6 5 5 5-5",key:"1lc07p"}],["path",{d:"m7 13 5 5 5-5",key:"1d48rs"}]])}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8503],{1536:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083);e.default=function(){function t(t){this.apiCall=t}return t.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.get(t.RESOURCEPATH)]})})},t.RESOURCEPATH="/synonym_sets",t}()},2504:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083),i=n.__importDefault(r(94066));e.default=function(){function t(t,e){this.name=t,this.apiCall=e}return t.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.get(this.endpointPath())]})})},t.prototype.delete=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.delete(this.endpointPath())]})})},t.prototype.endpointPath=function(){return"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.name))},t}()},3740:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083);e.default=function(){function t(t){this.apiCall=t}return t.prototype.create=function(t){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.post(this.endpointPath(),t)]})})},t.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.get(this.endpointPath())]})})},t.prototype.endpointPath=function(){return t.RESOURCEPATH},Object.defineProperty(t,"RESOURCEPATH",{get:function(){return"/nl_search_models"},enumerable:!1,configurable:!0}),t}()},4358:(t,e,r)=>{"use strict";var n=r(16298);Object.defineProperty(e,"__esModule",{value:!0});var i=r(13083),o=r(52800),a=r(12072),s=void 0!==n&&null!=n.versions&&null!=n.versions.node;e.default=function(t){function e(e,r,n){return t.call(this,e,r,n)||this}return i.__extends(e,t),e.prototype.create=function(t){return i.__awaiter(this,arguments,void 0,function(t,e){return void 0===e&&(e={}),i.__generator(this,function(r){if(!t)throw Error("No document provided");return[2,this.apiCall.post(this.endpointPath(),t,e)]})})},e.prototype.upsert=function(t){return i.__awaiter(this,arguments,void 0,function(t,e){return void 0===e&&(e={}),i.__generator(this,function(r){if(!t)throw Error("No document provided");return[2,this.apiCall.post(this.endpointPath(),t,Object.assign({},e,{action:"upsert"}))]})})},e.prototype.update=function(t){return i.__awaiter(this,arguments,void 0,function(t,e){return void 0===e&&(e={}),i.__generator(this,function(r){if(!t)throw Error("No document provided");return null!=e.filter_by?[2,this.apiCall.patch(this.endpointPath(),t,Object.assign({},e))]:[2,this.apiCall.post(this.endpointPath(),t,Object.assign({},e,{action:"update"}))]})})},e.prototype.delete=function(){return i.__awaiter(this,arguments,void 0,function(t){return void 0===t&&(t={}),i.__generator(this,function(e){return[2,this.apiCall.delete(this.endpointPath(),t)]})})},e.prototype.createMany=function(t){return i.__awaiter(this,arguments,void 0,function(t,e){return void 0===e&&(e={}),i.__generator(this,function(r){return this.configuration.logger.warn("createMany is deprecated and will be removed in a future version. Use import instead, which now takes both an array of documents or a JSONL string of documents"),[2,this.import(t,e)]})})},e.prototype.import=function(t){return i.__awaiter(this,arguments,void 0,function(t,e){var r,n,a,u,c;return void 0===e&&(e={}),i.__generator(this,function(l){switch(l.label){case 0:if(r=i.__assign({throwOnFail:!0},e),Array.isArray(t)){if(0===t.length)throw new o.RequestMalformed("No documents provided");try{n=t.map(function(t){return JSON.stringify(t)}).join("\n")}catch(t){if(t instanceof RangeError&&t.message.includes("Too many properties to enumerate"))throw Error("".concat(t,"\n It looks like you have reached a Node.js limit that restricts the number of keys in an Object: https://stackoverflow.com/questions/9282869/are-there-limits-to-the-number-of-properties-in-a-javascript-object\n\n Please try reducing the number of keys in your document, or using CURL to import your data.\n "));throw Error(t)}}else{var h;if(null==(h=n=t)||""===h||0===h.length)throw new o.RequestMalformed("No documents provided")}return[4,this.apiCall.performRequest("post",this.endpointPath("import"),{queryParameters:r,bodyParameters:n,additionalHeaders:{"Content-Type":"text/plain"},skipConnectionTimeout:!0,enableKeepAlive:!!s})];case 1:if(a=l.sent(),!Array.isArray(t))return[2,a];if(!((c=(u=a.split("\n").map(function(t){return JSON.parse(t)})).filter(function(t){return!1===t.success})).length>0)||!r.throwOnFail)return[2,u];throw new o.ImportError("".concat(u.length-c.length," documents imported successfully, ").concat(c.length," documents failed during import. Use `error.importResults` from the raised exception to get a detailed error reason for each document."),u,{documentsInJSONLFormat:n,options:r,failedItems:c,successCount:u.length-c.length})}})})},e.prototype.importStream=function(t){return i.__awaiter(this,arguments,void 0,function(t,e){var r,n,a;return void 0===e&&(e={}),i.__generator(this,function(u){switch(u.label){case 0:return r=i.__assign({throwOnFail:!0},e),[4,this.apiCall.performRequest("post",this.endpointPath("import"),{queryParameters:r,bodyParameters:t,additionalHeaders:{"Content-Type":"text/plain"},skipConnectionTimeout:!0,enableKeepAlive:!!s})];case 1:if(!((a=(n=u.sent().split("\n").map(function(t){return JSON.parse(t)})).filter(function(t){return!1===t.success})).length>0)||!r.throwOnFail)return[2,n];throw new o.ImportError("".concat(n.length-a.length," documents imported successfully, ").concat(a.length," documents failed during import. Use `error.importResults` from the raised exception to get a detailed error reason for each document."),n,{documentsInJSONLFormat:t,options:r,failedItems:a,successCount:n.length-a.length})}})})},e.prototype.export=function(){return i.__awaiter(this,arguments,void 0,function(t){return void 0===t&&(t={}),i.__generator(this,function(e){return[2,this.apiCall.get(this.endpointPath("export"),t)]})})},e.prototype.exportStream=function(){return i.__awaiter(this,arguments,void 0,function(t){return void 0===t&&(t={}),i.__generator(this,function(e){return[2,this.apiCall.get(this.endpointPath("export"),t,{responseType:"stream"})]})})},e}(a.SearchOnlyDocuments)},5523:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083),i=n.__importDefault(r(57474));e.default=function(){function t(t,e){this.name=t,this.apiCall=e}return t.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.get(this.endpointPath())]})})},t.prototype.endpointPath=function(t){return"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.name),"/items").concat(void 0===t?"":"/"+encodeURIComponent(t))},t}()},9855:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083),i=n.__importDefault(r(36524));e.default=function(){function t(t,e){this.id=t,this.apiCall=e}return t.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.get(this.endpointPath())]})})},t.prototype.delete=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.delete(this.endpointPath())]})})},t.prototype.endpointPath=function(){return"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.id))},t}()},10058:t=>{!function(){var e={675:function(t,e){"use strict";e.byteLength=function(t){var e=u(t),r=e[0],n=e[1];return(r+n)*3/4-n},e.toByteArray=function(t){var e,r,o=u(t),a=o[0],s=o[1],c=new i((a+s)*3/4-s),l=0,h=s>0?a-4:a;for(r=0;r<h;r+=4)e=n[t.charCodeAt(r)]<<18|n[t.charCodeAt(r+1)]<<12|n[t.charCodeAt(r+2)]<<6|n[t.charCodeAt(r+3)],c[l++]=e>>16&255,c[l++]=e>>8&255,c[l++]=255&e;return 2===s&&(e=n[t.charCodeAt(r)]<<2|n[t.charCodeAt(r+1)]>>4,c[l++]=255&e),1===s&&(e=n[t.charCodeAt(r)]<<10|n[t.charCodeAt(r+1)]<<4|n[t.charCodeAt(r+2)]>>2,c[l++]=e>>8&255,c[l++]=255&e),c},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,o=[],a=0,s=n-i;a<s;a+=16383)o.push(function(t,e,n){for(var i,o=[],a=e;a<n;a+=3)i=(t[a]<<16&0xff0000)+(t[a+1]<<8&65280)+(255&t[a+2]),o.push(r[i>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return o.join("")}(t,a,a+16383>s?s:a+16383));return 1===i?o.push(r[(e=t[n-1])>>2]+r[e<<4&63]+"=="):2===i&&o.push(r[(e=(t[n-2]<<8)+t[n-1])>>10]+r[e>>4&63]+r[e<<2&63]+"="),o.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a<s;++a)r[a]=o[a],n[o.charCodeAt(a)]=a;function u(t){var e=t.length;if(e%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");-1===r&&(r=e);var n=r===e?0:4-r%4;return[r,n]}n[45]=62,n[95]=63},72:function(t,e,r){"use strict";var n=r(675),i=r(783),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function a(t){if(t>0x7fffffff)throw RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,s.prototype),e}function s(t,e,r){if("number"==typeof t){if("string"==typeof e)throw TypeError('The "string" argument must be of type string. Received type number');return l(t)}return u(t,e,r)}function u(t,e,r){if("string"==typeof t){var n=t,i=e;if(("string"!=typeof i||""===i)&&(i="utf8"),!s.isEncoding(i))throw TypeError("Unknown encoding: "+i);var o=0|p(n,i),u=a(o),c=u.write(n,i);return c!==o&&(u=u.slice(0,c)),u}if(ArrayBuffer.isView(t))return h(t);if(null==t)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(T(t,ArrayBuffer)||t&&T(t.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(T(t,SharedArrayBuffer)||t&&T(t.buffer,SharedArrayBuffer)))return function(t,e,r){var n;if(e<0||t.byteLength<e)throw RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===e&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,e):new Uint8Array(t,e,r),s.prototype),n}(t,e,r);if("number"==typeof t)throw TypeError('The "value" argument must not be of type number. Received type number');var l=t.valueOf&&t.valueOf();if(null!=l&&l!==t)return s.from(l,e,r);var d=function(t){if(s.isBuffer(t)){var e=0|f(t.length),r=a(e);return 0===r.length||t.copy(r,0,0,e),r}return void 0!==t.length?"number"!=typeof t.length||function(t){return t!=t}(t.length)?a(0):h(t):"Buffer"===t.type&&Array.isArray(t.data)?h(t.data):void 0}(t);if(d)return d;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return s.from(t[Symbol.toPrimitive]("string"),e,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function c(t){if("number"!=typeof t)throw TypeError('"size" argument must be of type number');if(t<0)throw RangeError('The value "'+t+'" is invalid for option "size"')}function l(t){return c(t),a(t<0?0:0|f(t))}function h(t){for(var e=t.length<0?0:0|f(t.length),r=a(e),n=0;n<e;n+=1)r[n]=255&t[n];return r}e.Buffer=s,e.SlowBuffer=function(t){return+t!=t&&(t=0),s.alloc(+t)},e.INSPECT_MAX_BYTES=50,e.kMaxLength=0x7fffffff,s.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(t,e,r){return u(t,e,r)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(t,e,r){return(c(t),t<=0)?a(t):void 0!==e?"string"==typeof r?a(t).fill(e,r):a(t).fill(e):a(t)},s.allocUnsafe=function(t){return l(t)},s.allocUnsafeSlow=function(t){return l(t)};function f(t){if(t>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|t}function p(t,e){if(s.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||T(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return S(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return A(t).length;default:if(i)return n?-1:S(t).length;e=(""+e).toLowerCase(),i=!0}}function d(t,e,r){var i,o,a,s=!1;if((void 0===e||e<0)&&(e=0),e>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(e>>>=0)))return"";for(t||(t="utf8");;)switch(t){case"hex":return function(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=e;o<r;++o)i+=U[t[o]];return i}(this,e,r);case"utf8":case"utf-8":return _(this,e,r);case"ascii":return function(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}(this,e,r);case"latin1":case"binary":return function(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}(this,e,r);case"base64":return i=this,o=e,a=r,0===o&&a===i.length?n.fromByteArray(i):n.fromByteArray(i.slice(o,a));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(t,e,r){for(var n=t.slice(e,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}(this,e,r);default:if(s)throw TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),s=!0}}function v(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function y(t,e,r,n,i){var o;if(0===t.length)return -1;if("string"==typeof r?(n=r,r=0):r>0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),(o=r*=1)!=o&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length)if(i)return -1;else r=t.length-1;else if(r<0)if(!i)return -1;else r=0;if("string"==typeof e&&(e=s.from(e,n)),s.isBuffer(e))return 0===e.length?-1:g(t,e,r,n,i);if("number"==typeof e){if(e&=255,"function"==typeof Uint8Array.prototype.indexOf)if(i)return Uint8Array.prototype.indexOf.call(t,e,r);else return Uint8Array.prototype.lastIndexOf.call(t,e,r);return g(t,[e],r,n,i)}throw TypeError("val must be string, number or Buffer")}function g(t,e,r,n,i){var o,a=1,s=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return -1;a=2,s/=2,u/=2,r/=2}function c(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){var l=-1;for(o=r;o<s;o++)if(c(t,o)===c(e,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===u)return l*a}else -1!==l&&(o-=o-l),l=-1}else for(r+u>s&&(r=s-u),o=r;o>=0;o--){for(var h=!0,f=0;f<u;f++)if(c(t,o+f)!==c(e,f)){h=!1;break}if(h)return o}return -1}s.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==s.prototype},s.compare=function(t,e){if(T(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),T(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(t)||!s.isBuffer(e))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var r=t.length,n=e.length,i=0,o=Math.min(r,n);i<o;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:+(n<r)},s.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(t,e){if(!Array.isArray(t))throw TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return s.alloc(0);if(void 0===e)for(r=0,e=0;r<t.length;++r)e+=t[r].length;var r,n=s.allocUnsafe(e),i=0;for(r=0;r<t.length;++r){var o=t[r];if(T(o,Uint8Array)&&(o=s.from(o)),!s.isBuffer(o))throw TypeError('"list" argument must be an Array of Buffers');o.copy(n,i),i+=o.length}return n},s.byteLength=p,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)v(this,e,e+1);return this},s.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)v(this,e,e+3),v(this,e+1,e+2);return this},s.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)v(this,e,e+7),v(this,e+1,e+6),v(this,e+2,e+5),v(this,e+3,e+4);return this},s.prototype.toString=function(){var t=this.length;return 0===t?"":0==arguments.length?_(this,0,t):d.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(t){if(!s.isBuffer(t))throw TypeError("Argument must be a Buffer");return this===t||0===s.compare(this,t)},s.prototype.inspect=function(){var t="",r=e.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"},o&&(s.prototype[o]=s.prototype.inspect),s.prototype.compare=function(t,e,r,n,i){if(T(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(t))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return -1;if(e>=r)return 1;if(e>>>=0,r>>>=0,n>>>=0,i>>>=0,this===t)return 0;for(var o=i-n,a=r-e,u=Math.min(o,a),c=this.slice(n,i),l=t.slice(e,r),h=0;h<u;++h)if(c[h]!==l[h]){o=c[h],a=l[h];break}return o<a?-1:+(a<o)},s.prototype.includes=function(t,e,r){return -1!==this.indexOf(t,e,r)},s.prototype.indexOf=function(t,e,r){return y(this,t,e,r,!0)},s.prototype.lastIndexOf=function(t,e,r){return y(this,t,e,r,!1)};function _(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var o,a,s,u,c=t[i],l=null,h=c>239?4:c>223?3:c>191?2:1;if(i+h<=r)switch(h){case 1:c<128&&(l=c);break;case 2:(192&(o=t[i+1]))==128&&(u=(31&c)<<6|63&o)>127&&(l=u);break;case 3:o=t[i+1],a=t[i+2],(192&o)==128&&(192&a)==128&&(u=(15&c)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:o=t[i+1],a=t[i+2],s=t[i+3],(192&o)==128&&(192&a)==128&&(192&s)==128&&(u=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,h=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),i+=h}var f=n,p=f.length;if(p<=4096)return String.fromCharCode.apply(String,f);for(var d="",v=0;v<p;)d+=String.fromCharCode.apply(String,f.slice(v,v+=4096));return d}function m(t,e,r){if(t%1!=0||t<0)throw RangeError("offset is not uint");if(t+e>r)throw RangeError("Trying to access beyond buffer length")}function C(t,e,r,n,i,o){if(!s.isBuffer(t))throw TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw RangeError('"value" argument is out of bounds');if(r+n>t.length)throw RangeError("Index out of range")}function w(t,e,r,n,i,o){if(r+n>t.length||r<0)throw RangeError("Index out of range")}function b(t,e,r,n,o){return e*=1,r>>>=0,o||w(t,e,r,4,34028234663852886e22,-34028234663852886e22),i.write(t,e,r,n,23,4),r+4}function P(t,e,r,n,o){return e*=1,r>>>=0,o||w(t,e,r,8,17976931348623157e292,-17976931348623157e292),i.write(t,e,r,n,52,8),r+8}s.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else if(isFinite(e))e>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,o,a,s,u,c,l,h,f=this.length-e;if((void 0===r||r>f)&&(r=f),t.length>0&&(r<0||e<0)||e>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var p=!1;;)switch(n){case"hex":return function(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=e.length;n>o/2&&(n=o/2);for(var a=0;a<n;++a){var s,u=parseInt(e.substr(2*a,2),16);if((s=u)!=s)break;t[r+a]=u}return a}(this,t,e,r);case"utf8":case"utf-8":return i=e,o=r,O(S(t,this.length-i),this,i,o);case"ascii":return a=e,s=r,O(E(t),this,a,s);case"latin1":case"binary":return function(t,e,r,n){return O(E(e),t,r,n)}(this,t,e,r);case"base64":return u=e,c=r,O(A(t),this,u,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return l=e,h=r,O(function(t,e){for(var r,n,i=[],o=0;o<t.length&&!((e-=2)<0);++o)n=(r=t.charCodeAt(o))>>8,i.push(r%256),i.push(n);return i}(t,this.length-l),this,l,h);default:if(p)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),p=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(t,e){var r=this.length;t=~~t,e=void 0===e?r:~~e,t<0?(t+=r)<0&&(t=0):t>r&&(t=r),e<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t);var n=this.subarray(t,e);return Object.setPrototypeOf(n,s.prototype),n},s.prototype.readUIntLE=function(t,e,r){t>>>=0,e>>>=0,r||m(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return n},s.prototype.readUIntBE=function(t,e,r){t>>>=0,e>>>=0,r||m(t,e,this.length);for(var n=this[t+--e],i=1;e>0&&(i*=256);)n+=this[t+--e]*i;return n},s.prototype.readUInt8=function(t,e){return t>>>=0,e||m(t,1,this.length),this[t]},s.prototype.readUInt16LE=function(t,e){return t>>>=0,e||m(t,2,this.length),this[t]|this[t+1]<<8},s.prototype.readUInt16BE=function(t,e){return t>>>=0,e||m(t,2,this.length),this[t]<<8|this[t+1]},s.prototype.readUInt32LE=function(t,e){return t>>>=0,e||m(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+0x1000000*this[t+3]},s.prototype.readUInt32BE=function(t,e){return t>>>=0,e||m(t,4,this.length),0x1000000*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},s.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||m(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*e)),n},s.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||m(t,e,this.length);for(var n=e,i=1,o=this[t+--n];n>0&&(i*=256);)o+=this[t+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},s.prototype.readInt8=function(t,e){return(t>>>=0,e||m(t,1,this.length),128&this[t])?-((255-this[t]+1)*1):this[t]},s.prototype.readInt16LE=function(t,e){t>>>=0,e||m(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?0xffff0000|r:r},s.prototype.readInt16BE=function(t,e){t>>>=0,e||m(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?0xffff0000|r:r},s.prototype.readInt32LE=function(t,e){return t>>>=0,e||m(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},s.prototype.readInt32BE=function(t,e){return t>>>=0,e||m(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},s.prototype.readFloatLE=function(t,e){return t>>>=0,e||m(t,4,this.length),i.read(this,t,!0,23,4)},s.prototype.readFloatBE=function(t,e){return t>>>=0,e||m(t,4,this.length),i.read(this,t,!1,23,4)},s.prototype.readDoubleLE=function(t,e){return t>>>=0,e||m(t,8,this.length),i.read(this,t,!0,52,8)},s.prototype.readDoubleBE=function(t,e){return t>>>=0,e||m(t,8,this.length),i.read(this,t,!1,52,8)},s.prototype.writeUIntLE=function(t,e,r,n){if(t*=1,e>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;C(this,t,e,r,i,0)}var o=1,a=0;for(this[e]=255&t;++a<r&&(o*=256);)this[e+a]=t/o&255;return e+r},s.prototype.writeUIntBE=function(t,e,r,n){if(t*=1,e>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;C(this,t,e,r,i,0)}var o=r-1,a=1;for(this[e+o]=255&t;--o>=0&&(a*=256);)this[e+o]=t/a&255;return e+r},s.prototype.writeUInt8=function(t,e,r){return t*=1,e>>>=0,r||C(this,t,e,1,255,0),this[e]=255&t,e+1},s.prototype.writeUInt16LE=function(t,e,r){return t*=1,e>>>=0,r||C(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},s.prototype.writeUInt16BE=function(t,e,r){return t*=1,e>>>=0,r||C(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},s.prototype.writeUInt32LE=function(t,e,r){return t*=1,e>>>=0,r||C(this,t,e,4,0xffffffff,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},s.prototype.writeUInt32BE=function(t,e,r){return t*=1,e>>>=0,r||C(this,t,e,4,0xffffffff,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},s.prototype.writeIntLE=function(t,e,r,n){if(t*=1,e>>>=0,!n){var i=Math.pow(2,8*r-1);C(this,t,e,r,i-1,-i)}var o=0,a=1,s=0;for(this[e]=255&t;++o<r&&(a*=256);)t<0&&0===s&&0!==this[e+o-1]&&(s=1),this[e+o]=(t/a|0)-s&255;return e+r},s.prototype.writeIntBE=function(t,e,r,n){if(t*=1,e>>>=0,!n){var i=Math.pow(2,8*r-1);C(this,t,e,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a|0)-s&255;return e+r},s.prototype.writeInt8=function(t,e,r){return t*=1,e>>>=0,r||C(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},s.prototype.writeInt16LE=function(t,e,r){return t*=1,e>>>=0,r||C(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},s.prototype.writeInt16BE=function(t,e,r){return t*=1,e>>>=0,r||C(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},s.prototype.writeInt32LE=function(t,e,r){return t*=1,e>>>=0,r||C(this,t,e,4,0x7fffffff,-0x80000000),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},s.prototype.writeInt32BE=function(t,e,r){return t*=1,e>>>=0,r||C(this,t,e,4,0x7fffffff,-0x80000000),t<0&&(t=0xffffffff+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},s.prototype.writeFloatLE=function(t,e,r){return b(this,t,e,!0,r)},s.prototype.writeFloatBE=function(t,e,r){return b(this,t,e,!1,r)},s.prototype.writeDoubleLE=function(t,e,r){return P(this,t,e,!0,r)},s.prototype.writeDoubleBE=function(t,e,r){return P(this,t,e,!1,r)},s.prototype.copy=function(t,e,r,n){if(!s.isBuffer(t))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r||0===t.length||0===this.length)return 0;if(e<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var i=n-r;if(this===t&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(e,r,n);else if(this===t&&r<e&&e<n)for(var o=i-1;o>=0;--o)t[o+e]=this[o+r];else Uint8Array.prototype.set.call(t,this.subarray(r,n),e);return i},s.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!s.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===t.length){var i,o=t.charCodeAt(0);("utf8"===n&&o<128||"latin1"===n)&&(t=o)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<r)throw RangeError("Out of range index");if(r<=e)return this;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(i=e;i<r;++i)this[i]=t;else{var a=s.isBuffer(t)?t:s.from(t,n),u=a.length;if(0===u)throw TypeError('The value "'+t+'" is invalid for argument "value"');for(i=0;i<r-e;++i)this[i+e]=a[i%u]}return this};var R=/[^+/0-9A-Za-z-_]/g;function S(t,e){e=e||1/0;for(var r,n=t.length,i=null,o=[],a=0;a<n;++a){if((r=t.charCodeAt(a))>55295&&r<57344){if(!i){if(r>56319||a+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return o}function E(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}function A(t){return n.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(R,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function O(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length)&&!(i>=t.length);++i)e[i+r]=t[i];return i}function T(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}var U=function(){for(var t="0123456789abcdef",e=Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)e[n+i]=t[r]+t[i];return e}()},783:function(t,e){e.read=function(t,e,r,n,i){var o,a,s=8*i-n-1,u=(1<<s)-1,c=u>>1,l=-7,h=r?i-1:0,f=r?-1:1,p=t[e+h];for(h+=f,o=p&(1<<-l)-1,p>>=-l,l+=s;l>0;o=256*o+t[e+h],h+=f,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=n;l>0;a=256*a+t[e+h],h+=f,l-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,n),o-=c}return(p?-1:1)*a*Math.pow(2,o-n)},e.write=function(t,e,r,n,i,o){var a,s,u,c=8*o-i-1,l=(1<<c)-1,h=l>>1,f=5960464477539062e-23*(23===i),p=n?0:o-1,d=n?1:-1,v=+(e<0||0===e&&1/e<0);for(isNaN(e=Math.abs(e))||e===1/0?(s=+!!isNaN(e),a=l):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),a+h>=1?e+=f/u:e+=f*Math.pow(2,1-h),e*u>=2&&(a++,u/=2),a+h>=l?(s=0,a=l):a+h>=1?(s=(e*u-1)*Math.pow(2,i),a+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;t[r+p]=255&s,p+=d,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;t[r+p]=255&a,p+=d,a/=256,c-=8);t[r+p-d]|=128*v}}},r={};function n(t){var i=r[t];if(void 0!==i)return i.exports;var o=r[t]={exports:{}},a=!0;try{e[t](o,o.exports,n),a=!1}finally{a&&delete r[t]}return o.exports}n.ab="//",t.exports=n(72)}()},12072:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SearchOnlyDocuments=void 0;var n=r(13083),i=n.__importDefault(r(56869)),o=n.__importDefault(r(64661)),a=r(80521),s="/documents";e.SearchOnlyDocuments=function(){function t(t,e,r){this.collectionName=t,this.apiCall=e,this.configuration=r,this.requestWithCache=new i.default}return t.prototype.clearCache=function(){this.requestWithCache.clearCache()},t.prototype.search=function(t){return n.__awaiter(this,arguments,void 0,function(t,e){var r,i,o,s,u,c,l=void 0===e?{}:e,h=l.cacheSearchResultsForSeconds,f=void 0===h?this.configuration.cacheSearchResultsForSeconds:h,p=l.abortSignal,d=void 0===p?null:p;return n.__generator(this,function(e){return r={},!0===this.configuration.useServerSideSearchCache&&(r.use_cache=!0),o=(i=(0,a.normalizeArrayableParams)(t)).streamConfig,s=n.__rest(i,["streamConfig"]),c=!0===(u=n.__assign(n.__assign({},r),s)).conversation_stream,[2,this.requestWithCache.perform(this.apiCall,"get",{path:this.endpointPath("search"),queryParams:u,streamConfig:o,abortSignal:d,isStreamingRequest:c},{cacheResponseForSeconds:f})]})})},t.prototype.endpointPath=function(t){return"".concat(o.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.collectionName)).concat(s).concat(void 0===t?"":"/"+t)},Object.defineProperty(t,"RESOURCEPATH",{get:function(){return s},enumerable:!1,configurable:!0}),t}()},12661:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083),i=n.__importDefault(r(57474)),o=n.__importDefault(r(5523)),a=n.__importDefault(r(93118));e.default=function(){function t(t,e){this.name=t,this.apiCall=e,this.individualItems={},this._items=new o.default(this.name,e)}return t.prototype.upsert=function(t){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.put(this.endpointPath(),t)]})})},t.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.get(this.endpointPath())]})})},t.prototype.delete=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.delete(this.endpointPath())]})})},t.prototype.items=function(t){return void 0===t?this._items:(void 0===this.individualItems[t]&&(this.individualItems[t]=new a.default(this.name,t,this.apiCall)),this.individualItems[t])},t.prototype.endpointPath=function(){return"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.name))},t}()},15746:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SearchOnlyCollection=void 0;var n=r(12072);e.SearchOnlyCollection=function(){function t(t,e,r){this.name=t,this.apiCall=e,this.configuration=r,this._documents=new n.SearchOnlyDocuments(this.name,this.apiCall,this.configuration)}return t.prototype.documents=function(){return this._documents},t}()},15887:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083),i=n.__importDefault(r(3740));e.default=function(){function t(t,e){this.id=t,this.apiCall=e}return t.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.get(this.endpointPath())]})})},t.prototype.update=function(t){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.put(this.endpointPath(),t)]})})},t.prototype.delete=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.delete(this.endpointPath())]})})},t.prototype.endpointPath=function(){return"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.id))},t}()},16940:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083),i=n.__importDefault(r(65308));e.default=function(){function t(t,e){this.id=t,this.apiCall=e}return t.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.get(this.endpointPath())]})})},t.prototype.delete=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.delete(this.endpointPath())]})})},t.prototype.endpointPath=function(){return"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.id))},t}()},18587:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083);e.default=function(){function t(t){this.apiCall=t}return t.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.get("/debug")]})})},t}()},19505:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083);e.default=function(){function t(t){this.apiCall=t}return t.prototype.upsert=function(t,e){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(r){return[2,this.apiCall.put(this.endpointPath(t),e)]})})},t.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.get(this.endpointPath())]})})},t.prototype.endpointPath=function(e){return"".concat(t.RESOURCEPATH).concat(void 0===e?"":"/"+encodeURIComponent(e))},Object.defineProperty(t,"RESOURCEPATH",{get:function(){return"/stopwords"},enumerable:!1,configurable:!0}),t}()},19643:function(t,e,r){var n,i;!function(o,a){"use strict";void 0===(i="function"==typeof(n=a)?n.call(e,r,e,t):n)||(t.exports=i)}(0,function(){"use strict";var t=function(){},e="undefined",r=typeof window!==e&&typeof window.navigator!==e&&/Trident\/|MSIE /.test(window.navigator.userAgent),n=["trace","debug","info","warn","error"],i={},o=null;function a(t,e){var r=t[e];if("function"==typeof r.bind)return r.bind(t);try{return Function.prototype.bind.call(r,t)}catch(e){return function(){return Function.prototype.apply.apply(r,[t,arguments])}}}function s(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function u(){for(var r=this.getLevel(),i=0;i<n.length;i++){var o=n[i];this[o]=i<r?t:this.methodFactory(o,r,this.name)}if(this.log=this.debug,typeof console===e&&r<this.levels.SILENT)return"No console available for logging"}function c(t){return function(){typeof console!==e&&(u.call(this),this[t].apply(this,arguments))}}function l(n,i,o){var u;return"debug"===(u=n)&&(u="log"),typeof console!==e&&("trace"===u&&r?s:void 0!==console[u]?a(console,u):void 0!==console.log?a(console,"log"):t)||c.apply(this,arguments)}function h(t,r){var a,s,c,h=this,f="loglevel";function p(){var t;if(typeof window!==e&&f){try{t=window.localStorage[f]}catch(t){}if(typeof t===e)try{var r=window.document.cookie,n=encodeURIComponent(f),i=r.indexOf(n+"=");-1!==i&&(t=/^([^;]+)/.exec(r.slice(i+n.length+1))[1])}catch(t){}return void 0===h.levels[t]&&(t=void 0),t}}function d(t){var e=t;if("string"==typeof e&&void 0!==h.levels[e.toUpperCase()]&&(e=h.levels[e.toUpperCase()]),"number"==typeof e&&e>=0&&e<=h.levels.SILENT)return e;throw TypeError("log.setLevel() called with invalid level: "+t)}"string"==typeof t?f+=":"+t:"symbol"==typeof t&&(f=void 0),h.name=t,h.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},h.methodFactory=r||l,h.getLevel=function(){return null!=c?c:null!=s?s:a},h.setLevel=function(t,r){return c=d(t),!1!==r&&function(t){var r=(n[t]||"silent").toUpperCase();if(typeof window!==e&&f){try{window.localStorage[f]=r;return}catch(t){}try{window.document.cookie=encodeURIComponent(f)+"="+r+";"}catch(t){}}}(c),u.call(h)},h.setDefaultLevel=function(t){s=d(t),p()||h.setLevel(t,!1)},h.resetLevel=function(){if(c=null,typeof window!==e&&f){try{window.localStorage.removeItem(f)}catch(t){}try{window.document.cookie=encodeURIComponent(f)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(t){}}u.call(h)},h.enableAll=function(t){h.setLevel(h.levels.TRACE,t)},h.disableAll=function(t){h.setLevel(h.levels.SILENT,t)},h.rebuild=function(){if(o!==h&&(a=d(o.getLevel())),u.call(h),o===h)for(var t in i)i[t].rebuild()},a=d(o?o.getLevel():"WARN");var v=p();null!=v&&(c=d(v)),u.call(h)}(o=new h).getLogger=function(t){if("symbol"!=typeof t&&"string"!=typeof t||""===t)throw TypeError("You must supply a name when creating a logger.");var e=i[t];return e||(e=i[t]=new h(t,o.methodFactory)),e};var f=typeof window!==e?window.log:void 0;return o.noConflict=function(){return typeof window!==e&&window.log===o&&(window.log=f),o},o.getLoggers=function(){return i},o.default=o,o})},24892:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083),i=n.__importDefault(r(1536));e.default=function(){function t(t,e,r){this.synonymSetName=t,this.itemId=e,this.apiCall=r}return t.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.get(this.endpointPath())]})})},t.prototype.delete=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.delete(this.endpointPath())]})})},t.prototype.endpointPath=function(){return"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.synonymSetName),"/items/").concat(encodeURIComponent(this.itemId))},t}()},26528:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083);e.default=function(t){function e(e,r,n){var i=this.constructor,o=t.call(this,e)||this;return o.name=i.name,o.httpBody=r,o.httpStatus=n,Object.setPrototypeOf(o,i.prototype),o}return n.__extends(e,t),e}(Error)},27385:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083);e.default=function(){function t(t){this.apiCall=t,this.apiCall=t}return t.prototype.create=function(t){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.post(this.endpointPath(),t)]})})},t.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.get(this.endpointPath())]})})},t.prototype.endpointPath=function(e){return"".concat(t.RESOURCEPATH).concat(void 0===e?"":"/"+encodeURIComponent(e))},Object.defineProperty(t,"RESOURCEPATH",{get:function(){return"/conversations/models"},enumerable:!1,configurable:!0}),t}()},27772:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(80818).A)("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]])},31065:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083);e.default=function(){function t(t){this.apiCall=t}return t.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.get("/metrics.json")]})})},t}()},33901:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083);e.default=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e}(n.__importDefault(r(26528)).default)},35395:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(80818).A)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},36524:(t,e,r)=>{"use strict";var n=r(10058).Buffer;Object.defineProperty(e,"__esModule",{value:!0});var i=r(13083),o=r(88523),a=r(80521),s="/keys";e.default=function(){function t(t){this.apiCall=t,this.apiCall=t}return t.prototype.create=function(e){return i.__awaiter(this,void 0,void 0,function(){return i.__generator(this,function(r){return[2,this.apiCall.post(t.RESOURCEPATH,e)]})})},t.prototype.retrieve=function(){return i.__awaiter(this,void 0,void 0,function(){return i.__generator(this,function(t){return[2,this.apiCall.get(s)]})})},t.prototype.generateScopedSearchKey=function(t,e){var r=JSON.stringify((0,a.normalizeArrayableParams)(e)),i=n.from((0,o.createHmac)("sha256",t).update(r).digest("base64")),s=t.substr(0,4),u="".concat(i).concat(s).concat(r);return n.from(u).toString("base64")},Object.defineProperty(t,"RESOURCEPATH",{get:function(){return s},enumerable:!1,configurable:!0}),t}()},40108:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083),i=n.__importDefault(r(19505));e.default=function(){function t(t,e){this.stopwordId=t,this.apiCall=e}return t.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.get(this.endpointPath())]})})},t.prototype.delete=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.delete(this.endpointPath())]})})},t.prototype.endpointPath=function(){return"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.stopwordId))},t}()},40717:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083);e.default=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.importResults=r,i.payload=n,i}return n.__extends(e,t),e}(n.__importDefault(r(26528)).default)},42142:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083);e.default=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e}(n.__importDefault(r(26528)).default)},46198:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083),i="/operations";e.default=function(){function t(t){this.apiCall=t}return t.prototype.perform=function(t){return n.__awaiter(this,arguments,void 0,function(t,e){return void 0===e&&(e={}),n.__generator(this,function(r){return[2,this.apiCall.post("".concat(i,"/").concat(t),{},e)]})})},t.prototype.getSchemaChanges=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.get("".concat(i,"/schema_changes"))]})})},t}()},46308:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083),i="/aliases";e.default=function(){function t(t){this.apiCall=t}return t.prototype.upsert=function(t,e){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(r){return[2,this.apiCall.put(this.endpointPath(t),e)]})})},t.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.get(i)]})})},t.prototype.endpointPath=function(e){return"".concat(t.RESOURCEPATH,"/").concat(encodeURIComponent(e))},Object.defineProperty(t,"RESOURCEPATH",{get:function(){return i},enumerable:!1,configurable:!0}),t}()},47548:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(80818).A)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},47570:(t,e,r)=>{"use strict";r.d(e,{YQ:()=>i});var n=r(28081);function i(t,e,r,i){var o=this,a=(0,n.useRef)(null),s=(0,n.useRef)(0),u=(0,n.useRef)(0),c=(0,n.useRef)(null),l=(0,n.useRef)([]),h=(0,n.useRef)(),f=(0,n.useRef)(),p=(0,n.useRef)(t),d=(0,n.useRef)(!0),v=(0,n.useRef)(),y=(0,n.useRef)();p.current=t;var g="undefined"!=typeof window,_=!e&&0!==e&&g;if("function"!=typeof t)throw TypeError("Expected a function");e=+e||0;var m=!!(r=r||{}).leading,C=!("trailing"in r)||!!r.trailing,w=!!r.flushOnExit&&C,b="maxWait"in r,P="debounceOnServer"in r&&!!r.debounceOnServer,R=b?Math.max(+r.maxWait||0,e):null,S=(0,n.useMemo)(function(){var t=function(t){var e=l.current,r=h.current;return l.current=h.current=null,s.current=t,u.current=u.current||t,f.current=p.current.apply(r,e)},r=function(t,e){_&&cancelAnimationFrame(c.current),c.current=_?requestAnimationFrame(t):setTimeout(t,e)},n=function(t){if(!d.current)return!1;var r=t-a.current;return!a.current||r>=e||r<0||b&&t-s.current>=R},S=function(e){return c.current=null,C&&l.current?t(e):(l.current=h.current=null,f.current)},E=function t(){var i=Date.now();if(m&&u.current===s.current&&A(),n(i))return S(i);if(d.current){var o=e-(i-a.current);r(t,b?Math.min(o,R-(i-s.current)):o)}},A=function(){i&&i({})},O=function(){if(g||P){var i,u=Date.now(),p=n(u);if(l.current=[].slice.call(arguments),h.current=o,a.current=u,w&&!v.current&&(v.current=function(){var t;"hidden"===(null==(t=globalThis.document)?void 0:t.visibilityState)&&y.current.flush()},null==(i=globalThis.document)||null==i.addEventListener||i.addEventListener("visibilitychange",v.current)),p){if(!c.current&&d.current)return s.current=a.current,r(E,e),m?t(a.current):f.current;if(b)return r(E,e),t(a.current)}return c.current||r(E,e),f.current}};return O.cancel=function(){var t=c.current;t&&(_?cancelAnimationFrame(c.current):clearTimeout(c.current)),s.current=0,l.current=a.current=h.current=c.current=null,t&&i&&i({})},O.isPending=function(){return!!c.current},O.flush=function(){return c.current?S(Date.now()):f.current},O},[m,b,e,R,C,w,_,g,P,i]);return y.current=S,(0,n.useEffect)(function(){return d.current=!0,function(){var t;w&&y.current.flush(),v.current&&(null==(t=globalThis.document)||null==t.removeEventListener||t.removeEventListener("visibilitychange",v.current),v.current=null),d.current=!1}},[w]),S}},47684:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083),i=n.__importDefault(r(46308));e.default=function(){function t(t,e){this.name=t,this.apiCall=e}return t.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.get(this.endpointPath())]})})},t.prototype.delete=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.delete(this.endpointPath())]})})},t.prototype.endpointPath=function(){return"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.name))},t}()},50360:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083),i=n.__importDefault(r(57675)),o=n.__importDefault(r(53798)),a=n.__importDefault(r(50529));e.default=function(){function t(t){this.apiCall=t,this.individualAnalyticsRules={},this.apiCall=t,this._analyticsRules=new i.default(this.apiCall),this._analyticsEvents=new a.default(this.apiCall)}return t.prototype.rules=function(t){return void 0===t?this._analyticsRules:(void 0===this.individualAnalyticsRules[t]&&(this.individualAnalyticsRules[t]=new o.default(t,this.apiCall)),this.individualAnalyticsRules[t])},t.prototype.events=function(){return this._analyticsEvents},Object.defineProperty(t,"RESOURCEPATH",{get:function(){return"/analytics"},enumerable:!1,configurable:!0}),t}()},50529:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083);e.default=function(){function t(t){this.apiCall=t,this.apiCall=t}return t.prototype.create=function(t){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.post(this.endpointPath(),t)]})})},t.prototype.retrieve=function(t){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.get(this.endpointPath(),t)]})})},t.prototype.endpointPath=function(e){return"".concat(t.RESOURCEPATH).concat(void 0===e?"":"/"+encodeURIComponent(e))},Object.defineProperty(t,"RESOURCEPATH",{get:function(){return"/analytics/events"},enumerable:!1,configurable:!0}),t}()},52641:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083);e.default=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e}(n.__importDefault(r(26528)).default)},52800:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ImportError=e.TypesenseError=e.ServerError=e.RequestUnauthorized=e.RequestMalformed=e.ObjectUnprocessable=e.ObjectNotFound=e.ObjectAlreadyExists=e.MissingConfigurationError=e.HTTPError=void 0;var n=r(13083);e.HTTPError=n.__importDefault(r(56066)).default,e.MissingConfigurationError=n.__importDefault(r(78444)).default,e.ObjectAlreadyExists=n.__importDefault(r(52641)).default,e.ObjectNotFound=n.__importDefault(r(75980)).default,e.ObjectUnprocessable=n.__importDefault(r(33901)).default,e.RequestMalformed=n.__importDefault(r(42142)).default,e.RequestUnauthorized=n.__importDefault(r(58479)).default,e.ServerError=n.__importDefault(r(68379)).default,e.ImportError=n.__importDefault(r(40717)).default,e.TypesenseError=n.__importDefault(r(26528)).default},53798:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083),i=n.__importDefault(r(57675));e.default=function(){function t(t,e){this.name=t,this.apiCall=e}return t.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.get(this.endpointPath())]})})},t.prototype.delete=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.delete(this.endpointPath())]})})},t.prototype.endpointPath=function(){return"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.name))},t}()},54619:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083),i=n.__importDefault(r(1536)),o=n.__importDefault(r(83713)),a=n.__importDefault(r(24892));e.default=function(){function t(t,e){this.synonymSetName=t,this.apiCall=e,this.individualItems={},this._items=new o.default(this.synonymSetName,e)}return t.prototype.upsert=function(t){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.put(this.endpointPath(),t)]})})},t.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.get(this.endpointPath())]})})},t.prototype.delete=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.delete(this.endpointPath())]})})},t.prototype.items=function(t){return void 0===t?this._items:(void 0===this.individualItems[t]&&(this.individualItems[t]=new a.default(this.synonymSetName,t,this.apiCall)),this.individualItems[t])},t.prototype.endpointPath=function(){return"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.synonymSetName))},t}()},54703:(t,e,r)=>{"use strict";e._t=void 0;var n=r(13083),i=n.__importDefault(r(72343));i.default;var o=n.__importDefault(r(74487));e._t=o.default,n.__importStar(r(52800)),i.default,o.default},56066:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083);e.default=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e}(n.__importDefault(r(26528)).default)},56869:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083);e.default=function(){function t(){this.responseCache=new Map,this.responsePromiseCache=new Map}return t.prototype.clearCache=function(){this.responseCache=new Map,this.responsePromiseCache=new Map},t.prototype.perform=function(t,e,r,i){return n.__awaiter(this,void 0,void 0,function(){var o,a,s,u,c,l,h,f,p,d,v,y,g,_,m,C,w,b,P,R,S;return n.__generator(this,function(n){switch(n.label){case 0:if(s=void 0===(a=(o=i||{}).cacheResponseForSeconds)?120:a,c=void 0===(u=o.maxSize)?100:u,l=void 0===i||s<=0||c<=0,h=r.path,f=r.queryParams,p=r.body,d=r.headers,v=r.streamConfig,y=r.abortSignal,g=r.responseType,_=r.isStreamingRequest,l)return[2,this.executeRequest(t,e,h,f,p,d,{abortSignal:y,responseType:g,streamConfig:v,isStreamingRequest:_})];if(m=JSON.stringify(r),C=this.responseCache.get(m),w=Date.now(),C){if(w-C.requestTimestamp<1e3*s)return this.responseCache.delete(m),this.responseCache.set(m,C),[2,C.response];this.responseCache.delete(m)}if(b=this.responsePromiseCache.get(m)){if(w-b.requestTimestamp<1e3*s)return this.responsePromiseCache.delete(m),this.responsePromiseCache.set(m,b),[2,b.responsePromise];this.responsePromiseCache.delete(m)}return P=this.executeRequest(t,e,h,f,p,d,{abortSignal:y,responseType:g,streamConfig:v,isStreamingRequest:_}),this.responsePromiseCache.set(m,{requestTimestamp:w,responsePromise:P}),[4,P];case 1:return R=n.sent(),this.responseCache.set(m,{requestTimestamp:w,response:R}),this.responseCache.size>c&&(S=this.responseCache.keys().next().value)&&this.responseCache.delete(S),this.responsePromiseCache.size>c&&(S=this.responsePromiseCache.keys().next().value)&&this.responsePromiseCache.delete(S),[2,R]}})})},t.prototype.executeRequest=function(t,e,r,n,i,o,a){void 0===n&&(n={});var s=t[e];switch(e){case"get":return s.call(t,r,n,{abortSignal:null==a?void 0:a.abortSignal,responseType:null==a?void 0:a.responseType,streamConfig:null==a?void 0:a.streamConfig,isStreamingRequest:null==a?void 0:a.isStreamingRequest});case"delete":return s.call(t,r,n);case"post":return s.call(t,r,i,n,o||{},{abortSignal:null==a?void 0:a.abortSignal,responseType:null==a?void 0:a.responseType,streamConfig:null==a?void 0:a.streamConfig,isStreamingRequest:null==a?void 0:a.isStreamingRequest});case"put":case"patch":return s.call(t,r,i,n);default:throw Error("Unsupported method: ".concat(String(e)))}},t}()},57309:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.arrayableParams=void 0,e.arrayableParams={query_by:"query_by",query_by_weights:"query_by_weights",facet_by:"facet_by",group_by:"group_by",include_fields:"include_fields",exclude_fields:"exclude_fields",highlight_fields:"highlight_fields",highlight_full_fields:"highlight_full_fields",pinned_hits:"pinned_hits",hidden_hits:"hidden_hits",infix:"infix",override_tags:"override_tags",num_typos:"num_typos",prefix:"prefix",synonym_sets:"synonym_sets",sort_by:"sort_by"}},57474:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083);e.default=function(){function t(t){this.apiCall=t}return t.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.get(t.RESOURCEPATH)]})})},t.RESOURCEPATH="/curation_sets",t}()},57675:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083);e.default=function(){function t(t){this.apiCall=t,this.apiCall=t}return t.prototype.create=function(t){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.post(this.endpointPath(),t,{},{})]})})},t.prototype.upsert=function(t,e){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(r){return[2,this.apiCall.put(this.endpointPath(t),e)]})})},t.prototype.retrieve=function(t){return n.__awaiter(this,void 0,void 0,function(){var e;return n.__generator(this,function(r){return e={},t&&(e.rule_tag=t),[2,this.apiCall.get(this.endpointPath(),e)]})})},t.prototype.endpointPath=function(e){return"".concat(t.RESOURCEPATH).concat(void 0===e?"":"/"+encodeURIComponent(e))},Object.defineProperty(t,"RESOURCEPATH",{get:function(){return"/analytics/rules"},enumerable:!1,configurable:!0}),t}()},58479:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083);e.default=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e}(n.__importDefault(r(26528)).default)},59871:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});let n=(t,e)=>e.some(e=>e instanceof RegExp?e.test(t):e===t),i=new Set(["https:","http:","file:"]);function o(t,e){if("string"!=typeof(e={defaultProtocol:"http",normalizeProtocol:!0,forceHttp:!1,forceHttps:!1,stripAuthentication:!0,stripHash:!1,stripTextFragment:!0,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeSingleSlash:!0,removeDirectoryIndex:!1,removeExplicitPort:!1,sortQueryParameters:!0,removePath:!1,transformPath:!1,...e}).defaultProtocol||e.defaultProtocol.endsWith(":")||(e.defaultProtocol=`${e.defaultProtocol}:`),t=t.trim(),/^data:/i.test(t))return((t,{stripHash:e})=>{let r=/^data:(?<type>[^,]*?),(?<data>[^#]*?)(?:#(?<hash>.*))?$/.exec(t);if(!r)throw Error(`Invalid URL: ${t}`);let{type:n,data:i,hash:o}=r.groups,a=n.split(";"),s="base64"===a.at(-1);s&&a.pop();let u=a.shift()?.toLowerCase()??"",c=[...a.map(t=>{let[e,r=""]=t.split("=").map(t=>t.trim());return"charset"===e&&"us-ascii"===(r=r.toLowerCase())?"":`${e}${r?`=${r}`:""}`}).filter(Boolean)];s&&c.push("base64"),(c.length>0||u&&"text/plain"!==u)&&c.unshift(u);let l=e||!o?"":`#${o}`;return`data:${c.join(";")},${s?i.trim():i}${l}`})(t,e);if((t=>{try{let{protocol:e}=new URL(t);return e.endsWith(":")&&!e.includes(".")&&!i.has(e)}catch{return!1}})(t))return t;let r=t.startsWith("//");!r&&/^\.*\//.test(t)||(t=t.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,e.defaultProtocol));let o=new URL(t);if(e.forceHttp&&e.forceHttps)throw Error("The `forceHttp` and `forceHttps` options cannot be used together");if(e.forceHttp&&"https:"===o.protocol&&(o.protocol="http:"),e.forceHttps&&"http:"===o.protocol&&(o.protocol="https:"),e.stripAuthentication&&(o.username="",o.password=""),e.stripHash?o.hash="":e.stripTextFragment&&(o.hash=o.hash.replace(/#?:~:text.*?$/i,"")),o.pathname){let t=/\b[a-z][a-z\d+\-.]{1,50}:\/\//g,e=0,r="";for(;;){let n=t.exec(o.pathname);if(!n)break;let i=n[0],a=n.index;r+=o.pathname.slice(e,a).replace(/\/{2,}/g,"/"),r+=i,e=a+i.length}r+=o.pathname.slice(e,o.pathname.length).replace(/\/{2,}/g,"/"),o.pathname=r}if(o.pathname)try{o.pathname=decodeURI(o.pathname).replace(/\\/g,"%5C")}catch{}if(!0===e.removeDirectoryIndex&&(e.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(e.removeDirectoryIndex)&&e.removeDirectoryIndex.length>0){let t=o.pathname.split("/").filter(Boolean),r=t.at(-1);r&&n(r,e.removeDirectoryIndex)&&(t.pop(),o.pathname=t.length>0?`/${t.join("/")}/`:"/")}if(e.removePath&&(o.pathname="/"),e.transformPath&&"function"==typeof e.transformPath){let t=o.pathname.split("/").filter(Boolean),r=e.transformPath(t);o.pathname=r?.length>0?`/${r.join("/")}`:"/"}if(o.hostname&&(o.hostname=o.hostname.replace(/\.$/,""),e.stripWWW&&/^www\.(?!www\.)[a-z\-\d]{1,63}\.[a-z.\-\d]{2,63}$/.test(o.hostname)&&(o.hostname=o.hostname.replace(/^www\./,""))),Array.isArray(e.removeQueryParameters))for(let t of[...o.searchParams.keys()])n(t,e.removeQueryParameters)&&o.searchParams.delete(t);if(Array.isArray(e.keepQueryParameters)||!0!==e.removeQueryParameters||(o.search=""),Array.isArray(e.keepQueryParameters)&&e.keepQueryParameters.length>0)for(let t of[...o.searchParams.keys()])n(t,e.keepQueryParameters)||o.searchParams.delete(t);if(e.sortQueryParameters){let t=o.search;o.searchParams.sort();try{o.search=decodeURIComponent(o.search)}catch{}for(let e of t.slice(1).split("&").filter(t=>t&&!t.includes("="))){let t=decodeURIComponent(e);o.search=o.search.replace(`?${t}=`,`?${t}`).replace(`&${t}=`,`&${t}`)}}e.removeTrailingSlash&&(o.pathname=o.pathname.replace(/\/$/,"")),e.removeExplicitPort&&o.port&&(o.port="");let a=t;return t=o.toString(),e.removeSingleSlash||"/"!==o.pathname||a.endsWith("/")||""!==o.hash||(t=t.replace(/\/$/,"")),(e.removeTrailingSlash||"/"===o.pathname)&&""===o.hash&&e.removeSingleSlash&&(t=t.replace(/\/$/,"")),r&&!e.normalizeProtocol&&(t=t.replace(/^http:\/\//,"//")),e.stripProtocol&&(t=t.replace(/^(?:https?:)?\/\//,"")),t}},64661:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083),i="/collections";e.default=function(){function t(t){this.apiCall=t}return t.prototype.create=function(t,e){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(r){return[2,this.apiCall.post(i,t,e)]})})},t.prototype.retrieve=function(){return n.__awaiter(this,arguments,void 0,function(t){return void 0===t&&(t={}),n.__generator(this,function(e){return[2,this.apiCall.get(i,t)]})})},Object.defineProperty(t,"RESOURCEPATH",{get:function(){return i},enumerable:!1,configurable:!0}),t}()},65308:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083);e.default=function(){function t(t){this.apiCall=t,this.apiCall=t}return t.prototype.upsert=function(t,e){return n.__awaiter(this,void 0,void 0,function(){var r,i;return n.__generator(this,function(n){switch(n.label){case 0:return r=Array.isArray(e)?e.map(function(t){return JSON.stringify(t)}).join("\n"):e,[4,this.apiCall.performRequest("post",this.endpointPath("import"),{queryParameters:{id:t},bodyParameters:r,additionalHeaders:{"Content-Type":"text/plain"},skipConnectionTimeout:!0})];case 1:return i=n.sent(),[2,Array.isArray(e)?i.split("\n").map(function(t){return JSON.parse(t)}):i]}})})},t.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.get(this.endpointPath())]})})},t.prototype.endpointPath=function(e){return void 0===e?"".concat(t.RESOURCEPATH):"".concat(t.RESOURCEPATH,"/").concat(encodeURIComponent(e))},Object.defineProperty(t,"RESOURCEPATH",{get:function(){return"/stemming/dictionaries"},enumerable:!1,configurable:!0}),t}()},65674:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083);e.default=function(){function t(t){this.apiCall=t}return t.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.get("/health")]})})},t}()},65873:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Document=void 0;var n=r(13083),i=n.__importDefault(r(64661)),o=n.__importDefault(r(4358));e.Document=function(){function t(t,e,r){this.collectionName=t,this.documentId=e,this.apiCall=r}return t.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.get(this.endpointPath())]})})},t.prototype.delete=function(t){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.delete(this.endpointPath(),t)]})})},t.prototype.update=function(t){return n.__awaiter(this,arguments,void 0,function(t,e){return void 0===e&&(e={}),n.__generator(this,function(r){return[2,this.apiCall.patch(this.endpointPath(),t,e)]})})},t.prototype.endpointPath=function(){return"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.collectionName)).concat(o.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.documentId))},t}()},66178:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083),i=n.__importStar(r(19643)),o=r(52800);e.default=function(){function t(t){var e=this;this.nodes=t.nodes||[],this.nodes=this.nodes.map(function(t){return e.setDefaultPathInNode(t)}).map(function(t){return e.setDefaultPortInNode(t)}).map(function(t){return n.__assign({},t)}),null==t.randomizeNodes&&(t.randomizeNodes=!0),!0===t.randomizeNodes&&this.shuffleArray(this.nodes),this.nearestNode=t.nearestNode,this.nearestNode=this.setDefaultPathInNode(this.nearestNode),this.nearestNode=this.setDefaultPortInNode(this.nearestNode),this.connectionTimeoutSeconds=t.connectionTimeoutSeconds||t.timeoutSeconds||5,this.healthcheckIntervalSeconds=t.healthcheckIntervalSeconds||60,this.numRetries=(void 0!==t.numRetries&&t.numRetries>=0?t.numRetries:this.nodes.length+ +(null!=this.nearestNode))||3,this.retryIntervalSeconds=t.retryIntervalSeconds||.1,this.apiKey=t.apiKey,this.sendApiKeyAsQueryParam=t.sendApiKeyAsQueryParam,this.cacheSearchResultsForSeconds=t.cacheSearchResultsForSeconds||0,this.useServerSideSearchCache=t.useServerSideSearchCache||!1,this.axiosAdapter=t.axiosAdapter,this.logger=t.logger||i,this.logLevel=t.logLevel||"warn",this.logger.setLevel(this.logLevel),this.additionalHeaders=t.additionalHeaders,this.httpAgent=t.httpAgent,this.httpsAgent=t.httpsAgent,this.paramsSerializer=t.paramsSerializer,this.showDeprecationWarnings(t),this.validate()}return t.prototype.validate=function(){if(null==this.nodes||0===this.nodes.length||this.validateNodes())throw new o.MissingConfigurationError("Ensure that nodes[].protocol, nodes[].host and nodes[].port are set");if(null!=this.nearestNode&&this.isNodeMissingAnyParameters(this.nearestNode))throw new o.MissingConfigurationError("Ensure that nearestNodes.protocol, nearestNodes.host and nearestNodes.port are set");if(null==this.apiKey)throw new o.MissingConfigurationError("Ensure that apiKey is set");return!0},t.prototype.validateNodes=function(){var t=this;return this.nodes.some(function(e){return t.isNodeMissingAnyParameters(e)})},t.prototype.isNodeMissingAnyParameters=function(t){return!["protocol","host","port","path"].every(function(e){return t.hasOwnProperty(e)})&&null==t.url},t.prototype.setDefaultPathInNode=function(t){return null==t||t.hasOwnProperty("path")||(t.path=""),t},t.prototype.setDefaultPortInNode=function(t){if(null!=t&&!t.hasOwnProperty("port")&&t.hasOwnProperty("protocol"))switch(t.protocol){case"https":t.port=443;break;case"http":t.port=80}return t},t.prototype.showDeprecationWarnings=function(t){t.timeoutSeconds&&this.logger.warn("Deprecation warning: timeoutSeconds is now renamed to connectionTimeoutSeconds"),t.masterNode&&this.logger.warn("Deprecation warning: masterNode is now consolidated to nodes, starting with Typesense Server v0.12"),t.readReplicaNodes&&this.logger.warn("Deprecation warning: readReplicaNodes is now consolidated to nodes, starting with Typesense Server v0.12")},t.prototype.shuffleArray=function(t){for(var e,r=t.length-1;r>0;r--){var n=Math.floor(Math.random()*(r+1));e=[t[n],t[r]],t[r]=e[0],t[n]=e[1]}},t}()},67417:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083),i=n.__importDefault(r(64661)),o=n.__importDefault(r(72158));e.default=function(){function t(t,e,r){this.collectionName=t,this.synonymId=e,this.apiCall=r}return t.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.get(this.endpointPath())]})})},t.prototype.delete=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.delete(this.endpointPath())]})})},t.prototype.endpointPath=function(){return t.hasWarnedDeprecation||(console.warn("[typesense] 'synonym' APIs are deprecated starting with Typesense Server v30. Please migrate to synonym sets 'synonym_sets'."),t.hasWarnedDeprecation=!0),"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.collectionName)).concat(o.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.synonymId))},t.hasWarnedDeprecation=!1,t}()},68379:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083);e.default=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e}(n.__importDefault(r(26528)).default)},69015:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083),i=n.__importDefault(r(94420));e.default=function(){function t(t,e){this.presetId=t,this.apiCall=e}return t.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.get(this.endpointPath())]})})},t.prototype.delete=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.delete(this.endpointPath())]})})},t.prototype.endpointPath=function(){return"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.presetId))},t}()},69039:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083),i=n.__importDefault(r(83292));e.default=function(){function t(t,e){this.id=t,this.apiCall=e}return t.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.get(this.endpointPath())]})})},t.prototype.update=function(t){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.put(this.endpointPath(),t)]})})},t.prototype.delete=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.delete(this.endpointPath())]})})},t.prototype.endpointPath=function(){return"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.id))},t}()},69256:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083),i=n.__importDefault(r(64661)),o=n.__importDefault(r(4358)),a=r(52800),s=n.__importDefault(r(98669)),u=n.__importDefault(r(70064)),c=n.__importDefault(r(72158)),l=n.__importDefault(r(67417)),h=r(65873);e.default=function(){function t(t,e,r){this.name=t,this.apiCall=e,this.configuration=r,this.individualDocuments={},this.individualOverrides={},this.individualSynonyms={},this.name=t,this.apiCall=e,this.configuration=r,this._documents=new o.default(this.name,this.apiCall,this.configuration),this._overrides=new s.default(this.name,this.apiCall),this._synonyms=new c.default(this.name,this.apiCall)}return t.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.get(this.endpointPath())]})})},t.prototype.update=function(t){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.patch(this.endpointPath(),t)]})})},t.prototype.delete=function(){return n.__awaiter(this,arguments,void 0,function(t){return void 0===t&&(t={}),n.__generator(this,function(e){return[2,this.apiCall.delete(this.endpointPath(),t)]})})},t.prototype.exists=function(){return n.__awaiter(this,void 0,void 0,function(){var t;return n.__generator(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,this.retrieve()];case 1:return e.sent(),[2,!0];case 2:if((t=e.sent())instanceof a.ObjectNotFound)return[2,!1];throw t;case 3:return[2]}})})},t.prototype.documents=function(t){return t?(void 0===this.individualDocuments[t]&&(this.individualDocuments[t]=new h.Document(this.name,t,this.apiCall)),this.individualDocuments[t]):this._documents},t.prototype.overrides=function(t){return void 0===t?this._overrides:(void 0===this.individualOverrides[t]&&(this.individualOverrides[t]=new u.default(this.name,t,this.apiCall)),this.individualOverrides[t])},t.prototype.synonyms=function(t){return void 0===t?this._synonyms:(void 0===this.individualSynonyms[t]&&(this.individualSynonyms[t]=new l.default(this.name,t,this.apiCall)),this.individualSynonyms[t])},t.prototype.endpointPath=function(){return"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.name))},t}()},69330:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(80818).A)("share-2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]])},70064:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083),i=n.__importDefault(r(64661)),o=n.__importDefault(r(98669));e.default=function(){function t(t,e,r){this.collectionName=t,this.overrideId=e,this.apiCall=r}return t.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.get(this.endpointPath())]})})},t.prototype.delete=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.delete(this.endpointPath())]})})},t.prototype.endpointPath=function(){return"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.collectionName)).concat(o.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.overrideId))},t}()},71869:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083),i=n.__importDefault(r(56869)),o=r(80521);e.default=function(){function t(t,e,r){void 0===r&&(r=!1),this.apiCall=t,this.configuration=e,this.useTextContentType=r,this.requestWithCache=new i.default,this.logger=this.apiCall.logger}return t.prototype.clearCache=function(){this.requestWithCache.clearCache()},t.prototype.perform=function(t,e,r){return n.__awaiter(this,void 0,void 0,function(){var i,a,s,u,c,l,h;return n.__generator(this,function(f){return i=e?n.__assign({},e):{},a=null!=(h=null==r?void 0:r.cacheSearchResultsForSeconds)?h:this.configuration.cacheSearchResultsForSeconds,!0===this.configuration.useServerSideSearchCache&&(i.use_cache=!0),!0===t.union&&this.hasAnySearchObjectPagination(t)&&this.logger.warn("Individual `searches` pagination parameters are ignored when `union: true` is set. Use a top-level pagination parameter instead. See https://typesense.org/docs/29.0/api/federated-multi-search.html#union-search"),s={union:t.union,searches:t.searches.map(o.normalizeArrayableParams)},u=i.streamConfig,c=n.__rest(i,["streamConfig"]),l=(0,o.normalizeArrayableParams)(c),[2,this.requestWithCache.perform(this.apiCall,"post",{path:"/multi_search",body:s,queryParams:l,headers:this.useTextContentType?{"content-type":"text/plain"}:{},streamConfig:u,abortSignal:null==r?void 0:r.abortSignal,isStreamingRequest:this.isStreamingRequest(i)},void 0!==a?{cacheResponseForSeconds:a}:void 0)]})})},t.prototype.isStreamingRequest=function(t){return void 0!==t.streamConfig},t.prototype.hasAnySearchObjectPagination=function(t){return t.searches.some(function(t){return void 0!==t.page||void 0!==t.per_page||void 0!==t.offset||void 0!==t.limit||void 0!==t.limit_hits})},t}()},72158:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083),i=n.__importDefault(r(64661));e.default=function(){function t(t,e){this.collectionName=t,this.apiCall=e}return t.prototype.upsert=function(t,e){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(r){return[2,this.apiCall.put(this.endpointPath(t),e)]})})},t.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.get(this.endpointPath())]})})},t.prototype.endpointPath=function(e){return t.hasWarnedDeprecation||(console.warn("[typesense] 'synonyms' APIs are deprecated starting with Typesense Server v30. Please migrate to synonym sets ('synonym_sets')."),t.hasWarnedDeprecation=!0),"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.collectionName)).concat(t.RESOURCEPATH).concat(void 0===e?"":"/"+encodeURIComponent(e))},Object.defineProperty(t,"RESOURCEPATH",{get:function(){return"/synonyms"},enumerable:!1,configurable:!0}),t.hasWarnedDeprecation=!1,t}()},72343:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083),i=n.__importDefault(r(66178)),o=n.__importDefault(r(99680)),a=n.__importDefault(r(64661)),s=n.__importDefault(r(69256)),u=n.__importDefault(r(46308)),c=n.__importDefault(r(47684)),l=n.__importDefault(r(36524)),h=n.__importDefault(r(9855)),f=n.__importDefault(r(18587)),p=n.__importDefault(r(31065)),d=n.__importDefault(r(72639)),v=n.__importDefault(r(65674)),y=n.__importDefault(r(46198)),g=n.__importDefault(r(71869)),_=n.__importDefault(r(94420)),m=n.__importDefault(r(69015)),C=n.__importDefault(r(78513)),w=n.__importDefault(r(50360)),b=n.__importDefault(r(19505)),P=n.__importDefault(r(40108)),R=n.__importDefault(r(83292)),S=n.__importDefault(r(69039)),E=n.__importDefault(r(97872)),A=n.__importDefault(r(3740)),O=n.__importDefault(r(15887)),T=n.__importDefault(r(1536)),U=n.__importDefault(r(54619)),D=n.__importDefault(r(57474)),N=n.__importDefault(r(12661));e.default=function(){function t(t){var e;t.sendApiKeyAsQueryParam=null!=(e=t.sendApiKeyAsQueryParam)&&e,this.configuration=new i.default(t),this.apiCall=new o.default(this.configuration),this.debug=new f.default(this.apiCall),this.metrics=new p.default(this.apiCall),this.stats=new d.default(this.apiCall),this.health=new v.default(this.apiCall),this.operations=new y.default(this.apiCall),this.multiSearch=new g.default(this.apiCall,this.configuration),this._collections=new a.default(this.apiCall),this.individualCollections={},this._aliases=new u.default(this.apiCall),this.individualAliases={},this._keys=new l.default(this.apiCall),this.individualKeys={},this._presets=new _.default(this.apiCall),this.individualPresets={},this._stopwords=new b.default(this.apiCall),this.individualStopwords={},this.analytics=new w.default(this.apiCall),this.analyticsV1=new C.default(this.apiCall),this.stemming=new E.default(this.apiCall),this._conversations=new R.default(this.apiCall),this.individualConversations={},this._nlSearchModels=new A.default(this.apiCall),this.individualNLSearchModels={},this._synonymSets=new T.default(this.apiCall),this.individualSynonymSets={},this._curationSets=new D.default(this.apiCall),this.individualCurationSets={}}return t.prototype.collections=function(t){return void 0===t?this._collections:(void 0===this.individualCollections[t]&&(this.individualCollections[t]=new s.default(t,this.apiCall,this.configuration)),this.individualCollections[t])},t.prototype.aliases=function(t){return void 0===t?this._aliases:(void 0===this.individualAliases[t]&&(this.individualAliases[t]=new c.default(t,this.apiCall)),this.individualAliases[t])},t.prototype.keys=function(t){return void 0===t?this._keys:(void 0===this.individualKeys[t]&&(this.individualKeys[t]=new h.default(t,this.apiCall)),this.individualKeys[t])},t.prototype.presets=function(t){return void 0===t?this._presets:(void 0===this.individualPresets[t]&&(this.individualPresets[t]=new m.default(t,this.apiCall)),this.individualPresets[t])},t.prototype.stopwords=function(t){return void 0===t?this._stopwords:(void 0===this.individualStopwords[t]&&(this.individualStopwords[t]=new P.default(t,this.apiCall)),this.individualStopwords[t])},t.prototype.conversations=function(t){return void 0===t?this._conversations:(void 0===this.individualConversations[t]&&(this.individualConversations[t]=new S.default(t,this.apiCall)),this.individualConversations[t])},t.prototype.nlSearchModels=function(t){return void 0===t?this._nlSearchModels:(void 0===this.individualNLSearchModels[t]&&(this.individualNLSearchModels[t]=new O.default(t,this.apiCall)),this.individualNLSearchModels[t])},t.prototype.synonymSets=function(t){return void 0===t?this._synonymSets:(void 0===this.individualSynonymSets[t]&&(this.individualSynonymSets[t]=new U.default(t,this.apiCall)),this.individualSynonymSets[t])},t.prototype.curationSets=function(t){return void 0===t?this._curationSets:(void 0===this.individualCurationSets[t]&&(this.individualCurationSets[t]=new N.default(t,this.apiCall)),this.individualCurationSets[t])},t}()},72639:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083);e.default=function(){function t(t){this.apiCall=t}return t.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.get("/stats.json")]})})},t}()},73284:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083),i=n.__importDefault(r(27385));e.default=function(){function t(t,e){this.id=t,this.apiCall=e}return t.prototype.update=function(t){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.put(this.endpointPath(),t)]})})},t.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.get(this.endpointPath())]})})},t.prototype.delete=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.delete(this.endpointPath())]})})},t.prototype.endpointPath=function(){return"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.id))},t}()},74487:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083),i=n.__importDefault(r(66178)),o=n.__importDefault(r(99680)),a=n.__importDefault(r(71869)),s=r(15746);e.default=function(){function t(t){var e;t.sendApiKeyAsQueryParam=null==(e=t.sendApiKeyAsQueryParam)||e,!0===t.sendApiKeyAsQueryParam&&(t.apiKey||"").length>2e3&&(console.warn("[typesense] API Key is longer than 2000 characters which is over the allowed limit, so disabling sending it as a query parameter."),t.sendApiKeyAsQueryParam=!1),this.configuration=new i.default(t),this.apiCall=new o.default(this.configuration),this.multiSearch=new a.default(this.apiCall,this.configuration,!0),this.individualCollections={}}return t.prototype.clearCache=function(){this.multiSearch.clearCache(),Object.entries(this.individualCollections).forEach(function(t){t[0],t[1].documents().clearCache()})},t.prototype.collections=function(t){if(t)return void 0===this.individualCollections[t]&&(this.individualCollections[t]=new s.SearchOnlyCollection(t,this.apiCall,this.configuration)),this.individualCollections[t];throw Error("Typesense.SearchClient only supports search operations, so the collectionName that needs to be searched must be specified. Use Typesense.Client if you need to access the collection object.")},t}()},75980:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083);e.default=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e}(n.__importDefault(r(26528)).default)},78444:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083);e.default=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e}(n.__importDefault(r(26528)).default)},78513:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083),i=n.__importDefault(r(94066)),o=n.__importDefault(r(2504)),a=n.__importDefault(r(50529));e.default=function(){function t(t){this.apiCall=t,this.individualAnalyticsRules={},this.apiCall=t,this._analyticsRules=new i.default(this.apiCall),this._analyticsEvents=new a.default(this.apiCall)}return t.prototype.rules=function(e){return(t.hasWarnedDeprecation||(console.warn("[typesense] 'analyticsV1' is deprecated starting with Typesense Server v30 and will be removed in a future release. Please use 'analytics' instead."),t.hasWarnedDeprecation=!0),void 0===e)?this._analyticsRules:(void 0===this.individualAnalyticsRules[e]&&(this.individualAnalyticsRules[e]=new o.default(e,this.apiCall)),this.individualAnalyticsRules[e])},t.prototype.events=function(){return this._analyticsEvents},Object.defineProperty(t,"RESOURCEPATH",{get:function(){return"/analytics"},enumerable:!1,configurable:!0}),t.hasWarnedDeprecation=!1,t}()},80521:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.normalizeArrayableParams=function(t){var e=n.__assign({},t);if(!Object.keys(i.arrayableParams).filter(function(t){return Array.isArray(e[t])}).map(function(t){return e[t]=e[t].join(","),t}).length&&o(e))return e;if(!o(e))throw Error("Failed to normalize arrayable params: ".concat(JSON.stringify(e)));return e},e.toErrorWithMessage=function(t){if("object"==typeof t&&null!==t&&"message"in t&&"string"==typeof t.message)return t;try{if("string"==typeof t)return Error(t);return Error(JSON.stringify(t))}catch(e){return Error(String(t))}};var n=r(13083),i=r(57309);function o(t){return Object.keys(i.arrayableParams).filter(function(e){return void 0!==t[e]}).every(function(e){return!Array.isArray(t[e])})}},83292:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083),i=n.__importDefault(r(27385)),o=n.__importDefault(r(73284)),a="/conversations";e.default=function(){function t(t){this.apiCall=t,this.individualConversationModels={},this.apiCall=t,this._conversationsModels=new i.default(this.apiCall)}return t.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.get(a)]})})},t.prototype.models=function(t){return void 0===t?this._conversationsModels:(void 0===this.individualConversationModels[t]&&(this.individualConversationModels[t]=new o.default(t,this.apiCall)),this.individualConversationModels[t])},Object.defineProperty(t,"RESOURCEPATH",{get:function(){return a},enumerable:!1,configurable:!0}),t}()},83713:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083),i=n.__importDefault(r(1536));e.default=function(){function t(t,e){this.synonymSetName=t,this.apiCall=e}return t.prototype.upsert=function(t,e){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(r){return[2,this.apiCall.put(this.endpointPath(t),e)]})})},t.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.get(this.endpointPath())]})})},t.prototype.endpointPath=function(t){return"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.synonymSetName),"/items").concat(void 0===t?"":"/"+encodeURIComponent(t))},t}()},93118:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083),i=n.__importDefault(r(57474));e.default=function(){function t(t,e,r){this.name=t,this.itemId=e,this.apiCall=r}return t.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.get(this.endpointPath())]})})},t.prototype.upsert=function(t){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.put(this.endpointPath(),t)]})})},t.prototype.delete=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.delete(this.endpointPath())]})})},t.prototype.endpointPath=function(){return"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.name),"/items/").concat(encodeURIComponent(this.itemId))},t}()},94066:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083);e.default=function(){function t(t){this.apiCall=t,this.apiCall=t}return t.prototype.upsert=function(t,e){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(r){return[2,this.apiCall.put(this.endpointPath(t),e)]})})},t.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.get(this.endpointPath())]})})},t.prototype.endpointPath=function(e){return"".concat(t.RESOURCEPATH).concat(void 0===e?"":"/"+encodeURIComponent(e))},Object.defineProperty(t,"RESOURCEPATH",{get:function(){return"/analytics/rules"},enumerable:!1,configurable:!0}),t}()},94420:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083),i=r(80521);e.default=function(){function t(t){this.apiCall=t}return t.prototype.upsert=function(t,e){return n.__awaiter(this,void 0,void 0,function(){var r,o;return n.__generator(this,function(n){return"object"==typeof e.value&&"searches"in e.value?(r=e.value.searches.map(function(t){return(0,i.normalizeArrayableParams)(t)}),[2,this.apiCall.put(this.endpointPath(t),{value:{searches:r}})]):(o=(0,i.normalizeArrayableParams)(e.value),[2,this.apiCall.put(this.endpointPath(t),{value:o})])})})},t.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.get(this.endpointPath())]})})},t.prototype.endpointPath=function(e){return"".concat(t.RESOURCEPATH).concat(void 0===e?"":"/"+encodeURIComponent(e))},Object.defineProperty(t,"RESOURCEPATH",{get:function(){return"/presets"},enumerable:!1,configurable:!0}),t}()},97872:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083),i=n.__importDefault(r(65308)),o=n.__importDefault(r(16940));e.default=function(){function t(t){this.apiCall=t,this.individualStemmingDictionaries={},this.apiCall=t,this._stemmingDictionaries=new i.default(this.apiCall)}return t.prototype.dictionaries=function(t){return void 0===t?this._stemmingDictionaries:(void 0===this.individualStemmingDictionaries[t]&&(this.individualStemmingDictionaries[t]=new o.default(t,this.apiCall)),this.individualStemmingDictionaries[t])},Object.defineProperty(t,"RESOURCEPATH",{get:function(){return"/stemming"},enumerable:!1,configurable:!0}),t}()},98669:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13083),i=n.__importDefault(r(64661));e.default=function(){function t(t,e){this.collectionName=t,this.apiCall=e}return t.prototype.upsert=function(t,e){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(r){return[2,this.apiCall.put(this.endpointPath(t),e)]})})},t.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.get(this.endpointPath())]})})},t.prototype.endpointPath=function(e){return"".concat(i.default.RESOURCEPATH,"/").concat(this.collectionName).concat(t.RESOURCEPATH).concat(void 0===e?"":"/"+encodeURIComponent(e))},Object.defineProperty(t,"RESOURCEPATH",{get:function(){return"/overrides"},enumerable:!1,configurable:!0}),t}()},99680:(t,e,r)=>{"use strict";var n=r(16298);Object.defineProperty(e,"__esModule",{value:!0});var i=r(13083),o=i.__importDefault(r(8583)),a=r(17784),s=r(17715),u=r(52800),c=i.__importDefault(r(26528)),l=r(80521),h=void 0!==n&&null!=n.versions&&null!=n.versions.node&&"undefined"==typeof window;e.default=function(){function t(t){this.configuration=t,this.apiKey=this.configuration.apiKey,this.nodes=null==this.configuration.nodes?this.configuration.nodes:JSON.parse(JSON.stringify(this.configuration.nodes)),this.nearestNode=null==this.configuration.nearestNode?this.configuration.nearestNode:JSON.parse(JSON.stringify(this.configuration.nearestNode)),this.connectionTimeoutSeconds=this.configuration.connectionTimeoutSeconds,this.healthcheckIntervalSeconds=this.configuration.healthcheckIntervalSeconds,this.numRetriesPerRequest=this.configuration.numRetries,this.retryIntervalSeconds=this.configuration.retryIntervalSeconds,this.sendApiKeyAsQueryParam=this.configuration.sendApiKeyAsQueryParam,this.additionalUserHeaders=this.configuration.additionalHeaders,this.logger=this.configuration.logger,this.initializeMetadataForNodes(),this.currentNodeIndex=-1}return t.prototype.get=function(t){return i.__awaiter(this,arguments,void 0,function(t,e,r){void 0===e&&(e={});var n=void 0===r?{}:r,o=n.abortSignal,a=void 0===o?null:o,s=n.responseType,u=void 0===s?void 0:s,c=n.streamConfig,l=void 0===c?void 0:c,h=n.isStreamingRequest;return i.__generator(this,function(r){return[2,this.performRequest("get",t,{queryParameters:e,abortSignal:a,responseType:u,streamConfig:l,isStreamingRequest:h})]})})},t.prototype.delete=function(t){return i.__awaiter(this,arguments,void 0,function(t,e){return void 0===e&&(e={}),i.__generator(this,function(r){return[2,this.performRequest("delete",t,{queryParameters:e,isStreamingRequest:!1})]})})},t.prototype.post=function(t){return i.__awaiter(this,arguments,void 0,function(t,e,r,n,o){void 0===e&&(e={}),void 0===r&&(r={}),void 0===n&&(n={});var a=void 0===o?{}:o,s=a.abortSignal,u=void 0===s?null:s,c=a.responseType,l=void 0===c?void 0:c,h=a.streamConfig,f=void 0===h?void 0:h,p=a.isStreamingRequest;return i.__generator(this,function(i){return[2,this.performRequest("post",t,{queryParameters:r,bodyParameters:e,additionalHeaders:n,abortSignal:u,responseType:l,streamConfig:f,isStreamingRequest:p})]})})},t.prototype.put=function(t){return i.__awaiter(this,arguments,void 0,function(t,e,r){return void 0===e&&(e={}),void 0===r&&(r={}),i.__generator(this,function(n){return[2,this.performRequest("put",t,{queryParameters:r,bodyParameters:e,isStreamingRequest:!1})]})})},t.prototype.patch=function(t){return i.__awaiter(this,arguments,void 0,function(t,e,r){return void 0===e&&(e={}),void 0===r&&(r={}),i.__generator(this,function(n){return[2,this.performRequest("patch",t,{queryParameters:r,bodyParameters:e,isStreamingRequest:!1})]})})},t.prototype.getAdapter=function(){if(this.configuration.axiosAdapter)return"function"==typeof this.configuration.axiosAdapter?this.configuration.axiosAdapter:"undefined"!=typeof navigator&&"Cloudflare-Workers"===navigator.userAgent?o.default.getAdapter(this.configuration.axiosAdapter).bind(globalThis):o.default.getAdapter(this.configuration.axiosAdapter)},t.prototype.performRequest=function(t,e,r){return i.__awaiter(this,arguments,void 0,function(t,e,r){var n,u,c,l,f,p,d,v,y,g,_,m=r.queryParameters,C=void 0===m?null:m,w=r.bodyParameters,b=void 0===w?null:w,P=r.additionalHeaders,R=void 0===P?{}:P,S=r.abortSignal,E=void 0===S?null:S,A=r.responseType,O=void 0===A?void 0:A,T=r.skipConnectionTimeout,U=void 0!==T&&T,D=r.enableKeepAlive,N=void 0===D?void 0:D,I=r.streamConfig,j=void 0===I?void 0:I,k=r.isStreamingRequest;return i.__generator(this,function(r){switch(r.label){case 0:this.configuration.validate(),k&&(this.logger.debug("Request: Performing streaming request to ".concat(e)),h||"undefined"==typeof fetch||(this.logger.debug("Using fetch adapter for browser streaming"),O="stream")),n=Date.now(),c=!1,this.logger.debug("Request #".concat(n,": Performing ").concat(t.toUpperCase()," request: ").concat(e)),l=function(r){var l,p,d,m,w,P;return i.__generator(this,function(S){switch(S.label){case 0:if(l=f.getNextNode(n),f.logger.debug("Request #".concat(n,": Attempting ").concat(t.toUpperCase()," request Try #").concat(r," to Node ").concat(l.index)),E&&E.aborted)return[2,{value:Promise.reject(Error("Request aborted by caller."))}];p=void 0,S.label=1;case 1:return S.trys.push([1,3,5,6]),(d={method:t,url:f.uriFor(e,l),headers:Object.assign({},f.defaultHeaders(),R,f.additionalUserHeaders),maxContentLength:1/0,maxBodyLength:1/0,validateStatus:function(t){return t>0},transformResponse:[function(t,e){var r=t;return void 0!==e&&"string"==typeof t&&e["content-type"]&&e["content-type"].startsWith("application/json")&&(r=JSON.parse(t)),r}]}).adapter=k&&!h?"fetch":f.getAdapter(),!0!==U&&(d.timeout=1e3*f.connectionTimeoutSeconds),C&&0!==Object.keys(C).length&&(d.params=C),f.sendApiKeyAsQueryParam&&(d.params=d.params||{},d.params["x-typesense-api-key"]=f.apiKey),f.configuration.httpAgent?(f.logger.debug("Request #".concat(n,": Using custom httpAgent")),d.httpAgent=f.configuration.httpAgent):!0===N&&(h?(f.logger.debug("Request #".concat(n,": Enabling KeepAlive")),d.httpAgent=new a.Agent({keepAlive:!0})):f.logger.warn("Request #".concat(n,": Cannot use custom httpAgent in a browser environment to enable keepAlive"))),f.configuration.httpsAgent?(f.logger.debug("Request #".concat(n,": Using custom httpsAgent")),d.httpsAgent=f.configuration.httpsAgent):!0===N&&(h?(f.logger.debug("Request #".concat(n,": Enabling keepAlive")),d.httpsAgent=new s.Agent({keepAlive:!0})):f.logger.warn("Request #".concat(n,": Cannot use custom httpAgent in a browser environment to enable keepAlive"))),f.configuration.paramsSerializer&&(f.logger.debug("Request #".concat(n,": Using custom paramsSerializer")),d.paramsSerializer=f.configuration.paramsSerializer),b&&("string"==typeof b&&0!==b.length||"object"==typeof b&&0!==Object.keys(b).length)&&(d.data=b),E&&(m=o.default.CancelToken.source(),p=function(){c=!0,m.cancel()},E.addEventListener("abort",p),d.cancelToken=m.token),k?(d.responseType="stream",h||(d.headers=i.__assign(i.__assign({},d.headers),{Accept:"text/event-stream"}))):O&&(d.responseType=O),[4,(0,o.default)(d)];case 2:if((w=S.sent()).status>=1&&w.status<=499&&f.setNodeHealthcheck(l,!0),f.logger.debug("Request #".concat(n,": Request to Node ").concat(l.index," was made. Response Code was ").concat(w.status,".")),w.status>=200&&w.status<300){if(k)return[2,{value:f.handleStreamingResponse(w,j)}];return[2,{value:Promise.resolve(w.data)}]}if(w.status<500)return[2,{value:Promise.reject(f.customErrorForResponse(w,null==(v=w.data)?void 0:v.message,d.data))}];throw f.customErrorForResponse(w,null==(y=w.data)?void 0:y.message,d.data);case 3:if(P=S.sent(),c||f.setNodeHealthcheck(l,!1),u=P,f.logger.warn("Request #".concat(n,": Request to Node ").concat(l.index,' failed due to "').concat(null!=(g=null==P?void 0:P.code)?g:""," ").concat(P.message).concat(null==P.response?"":" - "+JSON.stringify(null==(_=P.response)?void 0:_.data),'"')),c)return[2,{value:Promise.reject(Error("Request aborted by caller."))}];if(k&&f.invokeOnErrorCallback(P,j),!(r<f.numRetriesPerRequest+1))return f.logger.debug("Request #".concat(n,": No retries left. Raising last error")),[2,{value:Promise.reject(u)}];return f.logger.warn("Request #".concat(n,": Sleeping for ").concat(f.retryIntervalSeconds,"s and then retrying request...")),[4,f.timer(f.retryIntervalSeconds)];case 4:return S.sent(),[3,6];case 5:return E&&p&&E.removeEventListener("abort",p),[7];case 6:return[2]}})},f=this,p=1,r.label=1;case 1:if(!(p<=this.numRetriesPerRequest+1))return[3,4];return[5,l(p)];case 2:if("object"==typeof(d=r.sent()))return[2,d.value];r.label=3;case 3:return p++,[3,1];case 4:return this.logger.debug("Request #".concat(n,": No retries left. Raising last error")),[2,Promise.reject(u)]}})})},t.prototype.processStreamingLine=function(t){if(!t.trim()||"data: [DONE]"===t)return null;if(t.startsWith("data: "))return this.processDataLine(t.slice(6).trim());if(t.trim().startsWith("{"))try{var e=JSON.parse(t.trim());if(e&&"object"==typeof e)return e.conversation_id||(e.conversation_id="unknown"),e.message||""===e.message||(e.message=""),e;return{conversation_id:"unknown",message:JSON.stringify(e)}}catch(t){}return{conversation_id:"unknown",message:t.trim()}},t.prototype.processDataLine=function(t){if(!t)return null;if(t.startsWith("{"))try{var e=JSON.parse(t);if(e&&"object"==typeof e)return e.conversation_id||(e.conversation_id="unknown"),e.message||""===e.message||(e.message=""),e;return{conversation_id:"unknown",message:JSON.stringify(e)}}catch(t){}return{conversation_id:"unknown",message:t}},t.prototype.handleStreamingResponse=function(t,e){return i.__awaiter(this,void 0,void 0,function(){return i.__generator(this,function(r){return(this.logger.debug("Handling streaming response. Environment: ".concat(h?"Node.js":"Browser")),h&&t.data)?[2,this.handleNodeStreaming(t,e)]:h?(this.logger.debug("Processing non-streaming response"),this.invokeOnCompleteCallback(t.data,e),[2,Promise.resolve(t.data)]):[2,this.handleBrowserStreaming(t,e)]})})},t.prototype.handleNodeStreaming=function(t,e){var r=this;return this.logger.debug("Processing Node.js stream"),new Promise(function(n,i){var o=t.data,a=[],s="";o.on("data",function(t){var n;try{var o=t.toString(),u=(s+=o).split("\n");s=null!=(n=u.pop())?n:"",r.processStreamLines(u,a,e)}catch(t){i(t)}}),o.on("end",function(){if(s.trim().length>0){var i=s.split("\n");r.processStreamLines(i,a,e)}r.finalizeStreamResult(a,n,t,e)}),o.on("error",function(t){r.logger.error("Stream error: ".concat(t)),r.invokeOnErrorCallback(t,e),i(t)})})},t.prototype.handleBrowserStreaming=function(t,e){var r=this;return this.logger.debug("Processing browser stream"),new Promise(function(n,o){return i.__awaiter(r,void 0,void 0,function(){return i.__generator(this,function(r){try{if(t.data&&"function"==typeof t.data.getReader)return[2,this.handleBrowserReadableStream(t.data,n,o,t,e)];if("string"==typeof t.data)return[2,this.handleBrowserStringResponse(t.data,n,t,e)];if("object"==typeof t.data&&null!==t.data)return this.logger.debug("No stream found, but data object is available"),this.invokeOnCompleteCallback(t.data,e),[2,n(t.data)];return this.logger.error("No usable data found in response"),[2,o(Error("No usable data found in response"))]}catch(t){this.logger.error("Error processing streaming response: ".concat(t)),this.invokeOnErrorCallback(t,e),o(t)}return[2]})})})},t.prototype.handleBrowserReadableStream=function(t,e,r,n,o){return i.__awaiter(this,void 0,void 0,function(){var a,s,u,c,l,h,f,p,d,v;return i.__generator(this,function(i){switch(i.label){case 0:this.logger.debug("Found ReadableStream in response.data"),a=t.getReader(),s=[],u="",i.label=1;case 1:i.trys.push([1,5,,6]),i.label=2;case 2:return[4,a.read()];case 3:if(l=(c=i.sent()).done,h=c.value,l)return this.logger.debug("Stream reading complete"),u.trim()&&(f=u.split("\n"),this.processStreamLines(f,s,o)),[3,4];return p=new TextDecoder().decode(h),this.logger.debug("Received chunk: ".concat(p.length," bytes")),u+=p,u=(d=u.split("\n")).pop()||"",this.processStreamLines(d,s,o),[3,2];case 4:return this.finalizeStreamResult(s,e,n,o),[3,6];case 5:return v=i.sent(),this.logger.error("Stream error: ".concat(v)),this.invokeOnErrorCallback(v,o),r(v),[3,6];case 6:return[2]}})})},t.prototype.handleBrowserStringResponse=function(t,e,r,n){this.logger.debug("Processing text response as stream data");var i=[],o=t.split("\n");if(this.processStreamLines(o,i,n),i.length>0){var a=this.combineStreamingChunks(i);this.invokeOnCompleteCallback(a,n),e(a)}else this.logger.debug("No chunks processed, returning original API response"),this.invokeOnCompleteCallback(r.data,n),e(r.data)},t.prototype.processStreamLines=function(t,e,r){for(var n=0;n<t.length;n++){var i=t[n];if(i.trim()&&"data: [DONE]"!==i){var o=this.processStreamingLine(i);null!==o&&(this.invokeOnChunkCallback(o,r),e.push(o))}}},t.prototype.finalizeStreamResult=function(t,e,r,n){if(t.length>0){var i=this.combineStreamingChunks(t);this.logger.debug("Stream processing complete"),this.invokeOnCompleteCallback(i,n),e(i)}else this.logger.debug("No chunks processed, returning original API response"),this.invokeOnCompleteCallback(r.data,n),e(r.data)},t.prototype.combineStreamingChunks=function(t){if(0===t.length)return{};if(1===t.length)return t[0];var e=this.getMessageChunks(t);if(e.length>0)return this.combineMessageChunks(t,e);var r=t[t.length-1];if(!this.isCompleteSearchResponse(r))throw Error("Last chunk is not a complete search response");return r},t.prototype.getMessageChunks=function(t){return t.filter(this.isChunkMessage)},t.prototype.isChunkMessage=function(t){return"object"==typeof t&&null!==t&&"message"in t&&"conversation_id"in t},t.prototype.combineMessageChunks=function(t,e){this.logger.debug("Found ".concat(e.length," message chunks to combine"));var r=t[t.length-1];if(this.isCompleteSearchResponse(r))return r;var n=t.find(this.isCompleteSearchResponse);if(!n)throw Error("No metadata chunk found");return n},t.prototype.isCompleteSearchResponse=function(t){return"object"==typeof t&&null!==t&&Object.keys(t).length>0&&("results"in t||"found"in t||"hits"in t||"page"in t||"search_time_ms"in t)},t.prototype.getNextNode=function(t){if(void 0===t&&(t=0),null!=this.nearestNode){if(this.logger.debug("Request #".concat(t,": Nodes Health: Node ").concat(this.nearestNode.index," is ").concat(!0===this.nearestNode.isHealthy?"Healthy":"Unhealthy")),!0===this.nearestNode.isHealthy||this.nodeDueForHealthcheck(this.nearestNode,t))return this.logger.debug("Request #".concat(t,": Updated current node to Node ").concat(this.nearestNode.index)),this.nearestNode;this.logger.debug("Request #".concat(t,": Falling back to individual nodes"))}this.logger.debug("Request #".concat(t,": Nodes Health: ").concat(this.nodes.map(function(t){return"Node ".concat(t.index," is ").concat(!0===t.isHealthy?"Healthy":"Unhealthy")}).join(" || ")));for(var e=this.nodes[0],r=0;r<=this.nodes.length;r++)if(this.currentNodeIndex=(this.currentNodeIndex+1)%this.nodes.length,!0===(e=this.nodes[this.currentNodeIndex]).isHealthy||this.nodeDueForHealthcheck(e,t))return this.logger.debug("Request #".concat(t,": Updated current node to Node ").concat(e.index)),e;return this.logger.debug("Request #".concat(t,": No healthy nodes were found. Returning the next node, Node ").concat(e.index)),e},t.prototype.nodeDueForHealthcheck=function(t,e){void 0===e&&(e=0);var r=Date.now()-t.lastAccessTimestamp>1e3*this.healthcheckIntervalSeconds;return r&&this.logger.debug("Request #".concat(e,": Node ").concat(t.index," has exceeded healtcheckIntervalSeconds of ").concat(this.healthcheckIntervalSeconds,". Adding it back into rotation.")),r},t.prototype.initializeMetadataForNodes=function(){var t=this;null!=this.nearestNode&&(this.nearestNode.index="nearestNode",this.setNodeHealthcheck(this.nearestNode,!0)),this.nodes.forEach(function(e,r){e.index=r,t.setNodeHealthcheck(e,!0)})},t.prototype.setNodeHealthcheck=function(t,e){t.isHealthy=e,t.lastAccessTimestamp=Date.now()},t.prototype.uriFor=function(t,e){return null!=e.url?"".concat(e.url).concat(t):"".concat(e.protocol,"://").concat(e.host,":").concat(e.port).concat(e.path).concat(t)},t.prototype.defaultHeaders=function(){var t={};return this.sendApiKeyAsQueryParam||(t["X-TYPESENSE-API-KEY"]=this.apiKey),t["Content-Type"]="application/json",t},t.prototype.timer=function(t){return i.__awaiter(this,void 0,void 0,function(){return i.__generator(this,function(e){return[2,new Promise(function(e){return setTimeout(e,1e3*t)})]})})},t.prototype.customErrorForResponse=function(t,e,r){var n="Request failed with HTTP code ".concat(t.status);"string"==typeof e&&""!==e.trim()&&(n+=" | Server said: ".concat(e));new c.default(n,r,t.status);return 400===t.status?new u.RequestMalformed(n,r,t.status):401===t.status?new u.RequestUnauthorized(n,r,t.status):404===t.status?new u.ObjectNotFound(n,r,t.status):409===t.status?new u.ObjectAlreadyExists(n,r,t.status):422===t.status?new u.ObjectUnprocessable(n,r,t.status):t.status>=500&&t.status<=599?new u.ServerError(n,r,t.status):new u.HTTPError(n,r,t.status)},t.prototype.invokeOnChunkCallback=function(t,e){if(null==e?void 0:e.onChunk)try{e.onChunk(t)}catch(t){this.logger.warn("Error in onChunk callback: ".concat(t))}},t.prototype.invokeOnCompleteCallback=function(t,e){if(null==e?void 0:e.onComplete)try{e.onComplete(t)}catch(t){this.logger.warn("Error in onComplete callback: ".concat(t))}},t.prototype.invokeOnErrorCallback=function(t,e){if(null==e?void 0:e.onError){var r=(0,l.toErrorWithMessage)(t);try{e.onError(r)}catch(t){this.logger.warn("Error in onError callback: ".concat(t))}}},t}()}}]);
|