(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,291343,(e,t,r)=>{"use strict";var n=e.i(247167);Object.defineProperty(r,"__esModule",{value:!0}),r.removeTrailingSlash=r.getDefaultServerConfig=r.getDefaultClientConfig=r.getServerBaseUrl=r.randomSessionId=r.safeCompare=void 0,r.safeCompare=(e,t)=>{let r=String(e),n=String(t),o=r.length,i=0;o!==n.length&&(n=r,i=1);for(let e=0;e`${Math.floor(1e9*Math.random())}`;let o=()=>{n.default.env.NEXT_PUBLIC_UNLEASH_SERVER_API_TOKEN&&console.warn("You are trying to set `NEXT_PUBLIC_UNLEASH_SERVER_API_TOKEN`. Server keys shouldn't be public. Use frontend keys or skip `NEXT_PUBLIC_ prefix.")};r.getServerBaseUrl=()=>n.default.env.UNLEASH_SERVER_API_URL||n.default.env.NEXT_PUBLIC_UNLEASH_SERVER_API_URL,r.getDefaultClientConfig=()=>(o(),{url:n.default.env.UNLEASH_FRONTEND_API_URL||"https://us.app.unleash-hosted.com/usnn0082/api/frontend/",appName:n.default.env.UNLEASH_APP_NAME||n.default.env.NEXT_PUBLIC_UNLEASH_APP_NAME||"nextjs",clientKey:n.default.env.UNLEASH_FRONTEND_API_TOKEN||"*:production.b333a8d3153c52896cd1859fe3229657e94c406ecc595569ec8f7818"}),r.getDefaultServerConfig=()=>(o(),{url:(0,r.getServerBaseUrl)()||"http://localhost:4242/api",appName:n.default.env.UNLEASH_APP_NAME||n.default.env.NEXT_PUBLIC_UNLEASH_APP_NAME||"nextjs",clientKey:n.default.env.UNLEASH_SERVER_API_TOKEN||"default:development.unleash-insecure-server-api-token"}),r.removeTrailingSlash=e=>e?.replace(/\/$/,"")},215220,(e,t,r)=>{"use strict";let n;var o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},i=function(){return(i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(6===l[0]||2===l[0])){i=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);ot.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["properties"]),n=function(e){return Object.entries(e).sort(function(e,t){var r=e[0],n=t[0];return r.localeCompare(n,void 0)})};return JSON.stringify([n(r),n(void 0===t?{}:t)])},d=function(e){return s(void 0,void 0,void 0,function(){var t;return a(this,function(r){var n;switch(r.label){case 0:t=p(e),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,(n=t,s(void 0,void 0,void 0,function(){var e,t,r,o;return a(this,function(i){switch(i.label){case 0:if(e="undefined"!=typeof globalThis&&(null==(r=globalThis.crypto)?void 0:r.subtle)?null==(o=globalThis.crypto)?void 0:o.subtle:void 0,"undefined"==typeof TextEncoder||!(null==e?void 0:e.digest)||"undefined"==typeof Uint8Array)throw Error("Hashing function not available");return t=(new TextEncoder).encode(n),[4,e.digest("SHA-256",t)];case 1:return[2,Array.from(new Uint8Array(i.sent())).map(function(e){return e.toString(16).padStart(2,"0")}).join("")]}})}))];case 2:return[2,r.sent()];case 3:return r.sent(),[2,t];case 4:return[2]}})})},h=function(e){var t,r=e.clientKey,n=e.appName,o=e.connectionId,i=e.customHeaders,s=e.headerName,a=e.etag,u=e.isPost,l=((t={accept:"application/json"})[(void 0===s?"authorization":s).toLocaleLowerCase()]=r,t["unleash-sdk"]="unleash-client-js:3.7.8",t["unleash-appname"]=n,t);return u&&(l["content-type"]="application/json"),a&&(l["if-none-match"]=a),Object.entries(i||{}).filter(f).forEach(function(e){var t=e[0],r=e[1];return l[t.toLocaleLowerCase()]=r}),l["unleash-connection-id"]=o,l},g=function(){},v=function(){function e(e){var t=e.onError,r=e.onSent,n=e.appName,o=e.metricsInterval,i=e.disableMetrics,s=e.url,a=e.clientKey,u=e.fetch,l=e.headerName,c=e.customHeaders,f=e.metricsIntervalInitial,p=e.connectionId;this.onError=t,this.onSent=r||g,this.disabled=void 0!==i&&i,this.metricsInterval=1e3*o,this.metricsIntervalInitial=1e3*f,this.appName=n,this.url=s instanceof URL?s:new URL(s),this.clientKey=a,this.bucket=this.createEmptyBucket(),this.fetch=u,this.headerName=l,this.customHeaders=void 0===c?{}:c,this.connectionId=p}return e.prototype.start=function(){var e=this;if(this.disabled)return!1;"number"==typeof this.metricsInterval&&this.metricsInterval>0&&(this.metricsIntervalInitial>0?setTimeout(function(){e.startTimer(),e.sendMetrics()},this.metricsIntervalInitial):this.startTimer())},e.prototype.stop=function(){this.timer&&(clearInterval(this.timer),delete this.timer)},e.prototype.createEmptyBucket=function(){return{start:new Date,stop:null,toggles:{}}},e.prototype.getHeaders=function(){return h({clientKey:this.clientKey,appName:this.appName,connectionId:this.connectionId,customHeaders:this.customHeaders,headerName:this.headerName,isPost:!0})},e.prototype.sendMetrics=function(){return s(this,void 0,void 0,function(){var e,t,r;return a(this,function(n){switch(n.label){case 0:if(e="".concat(this.url,"/client/metrics"),t=this.getPayload(),this.bucketIsEmpty(t))return[2];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.fetch(e,{cache:"no-cache",method:"POST",headers:this.getHeaders(),body:JSON.stringify(t)})];case 2:return n.sent(),this.onSent(t),[3,4];case 3:return console.error("Unleash: unable to send feature metrics",r=n.sent()),this.onError(r),[3,4];case 4:return[2]}})})},e.prototype.count=function(e,t){return!(this.disabled||!this.bucket)&&(this.assertBucket(e),this.bucket.toggles[e][t?"yes":"no"]++,!0)},e.prototype.countVariant=function(e,t){return!(this.disabled||!this.bucket)&&(this.assertBucket(e),this.bucket.toggles[e].variants[t]?this.bucket.toggles[e].variants[t]+=1:this.bucket.toggles[e].variants[t]=1,!0)},e.prototype.assertBucket=function(e){if(this.disabled||!this.bucket)return!1;this.bucket.toggles[e]||(this.bucket.toggles[e]={yes:0,no:0,variants:{}})},e.prototype.startTimer=function(){var e=this;this.timer=setInterval(function(){e.sendMetrics()},this.metricsInterval)},e.prototype.bucketIsEmpty=function(e){return 0===Object.keys(e.bucket.toggles).length},e.prototype.getPayload=function(){var e=i(i({},this.bucket),{stop:new Date});return this.bucket=this.createEmptyBucket(),{bucket:e,appName:this.appName,instanceId:"browser"}},e}(),y=function(){function e(){this.store=new Map}return e.prototype.save=function(e,t){return s(this,void 0,void 0,function(){return a(this,function(r){return this.store.set(e,t),[2]})})},e.prototype.get=function(e){return s(this,void 0,void 0,function(){return a(this,function(t){return[2,this.store.get(e)]})})},e}(),m=function(){function e(e){void 0===e&&(e="unleash:repository"),this.prefix=e}return e.prototype.save=function(e,t){return s(this,void 0,void 0,function(){var r,n;return a(this,function(o){r=JSON.stringify(t),n="".concat(this.prefix,":").concat(e);try{window.localStorage.setItem(n,r)}catch(e){console.error(e)}return[2]})})},e.prototype.get=function(e){try{var t="".concat(this.prefix,":").concat(e),r=window.localStorage.getItem(t);return r?JSON.parse(r):void 0}catch(e){console.error(e)}},e}();let b=new Uint8Array(16),w=[];for(let e=0;e<256;++e)w.push((e+256).toString(16).slice(1));var E={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)},S=function(){function e(){}return e.prototype.generateEventId=function(){return function(e,t,r){if(E.randomUUID&&!e)return E.randomUUID();let o=(e=e||{}).random||(e.rng||function(){if(!n&&!(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(b)})();o[6]=15&o[6]|64,void(o[8]=63&o[8]|128);return function(e,t=0){return w[e[t+0]]+w[e[t+1]]+w[e[t+2]]+w[e[t+3]]+"-"+w[e[t+4]]+w[e[t+5]]+"-"+w[e[t+6]]+w[e[t+7]]+"-"+w[e[t+8]]+w[e[t+9]]+"-"+w[e[t+10]]+w[e[t+11]]+w[e[t+12]]+w[e[t+13]]+w[e[t+14]]+w[e[t+15]]}(o)}()},e.prototype.createImpressionEvent=function(e,t,r,n,o,s){var a=this.createBaseEvent(e,t,r,n,o);return s?i(i({},a),{variant:s}):a},e.prototype.createBaseEvent=function(e,t,r,n,o){return{eventType:n,eventId:this.generateEventId(),context:e,enabled:t,featureName:r,impressionData:o}},e}(),x=["userId","sessionId","remoteAddress","currentTime"],C=function(e){return x.includes(e)},T={INIT:"initialized",ERROR:"error",READY:"ready",UPDATE:"update",IMPRESSION:"impression",SENT:"sent",RECOVERED:"recovered"},P={name:"disabled",enabled:!1,feature_enabled:!1},R="repo",O="repoLastUpdateTimestamp",_=function(){try{if("undefined"!=typeof window&&"fetch"in window)return fetch.bind(window);if("fetch"in globalThis)return fetch.bind(globalThis)}catch(e){console.error('Unleash failed to resolve "fetch"',e)}},I=function(e){function t(t){var r,n=t.storageProvider,o=t.url,s=t.clientKey,a=t.disableRefresh,u=t.refreshInterval,l=t.metricsInterval,c=t.metricsIntervalInitial,f=t.disableMetrics,p=t.appName,d=t.environment,h=t.context,g=t.fetch,b=void 0===g?_():g,w=t.createAbortController,E=void 0===w?function(){try{if("undefined"!=typeof window&&"AbortController"in window)return function(){return new window.AbortController};if("fetch"in globalThis)return function(){return new globalThis.AbortController}}catch(e){console.error('Unleash failed to resolve "AbortController" factory',e)}}():w,x=t.bootstrap,C=t.bootstrapOverride,P=t.headerName,R=void 0===P?"Authorization":P,O=t.customHeaders,I=void 0===O?{}:O,A=t.impressionDataAll,k=t.usePOSTrequests,D=t.experimental,U=e.call(this)||this;if(U.toggles=[],U.etag="",U.readyEventEmitted=!1,U.fetchedFromServer=!1,U.usePOSTrequests=!1,U.started=!1,!o)throw Error("url is required");if(!s)throw Error("clientKey is required");if(!p)throw Error("appName is required.");U.eventsHandler=new S,U.impressionDataAll=void 0!==A&&A,U.toggles=x&&x.length>0?x:[],U.url=o instanceof URL?o:new URL(o),U.clientKey=s,U.headerName=R,U.customHeaders=I,U.storage=n||("undefined"!=typeof window?new m:new y),U.refreshInterval=void 0!==a&&a?0:1e3*(void 0===u?30:u),U.context=i({appName:p,environment:void 0===d?"default":d},h),U.usePOSTrequests=void 0!==k&&k,U.sdkState="initializing";var L=null==D?void 0:D.metricsUrl;return!L||L instanceof URL||(L=new URL(L)),U.experimental=i(i({},D),{metricsUrl:L}),(null==D?void 0:D.togglesStorageTTL)&&(null==D?void 0:D.togglesStorageTTL)>0&&(U.experimental.togglesStorageTTL=1e3*D.togglesStorageTTL),U.lastRefreshTimestamp=0,U.ready=new Promise(function(e){U.init().then(e).catch(function(t){console.error(t),U.sdkState="error",U.emit(T.ERROR,t),U.lastError=t,e()})}),b||console.error('Unleash: You must either provide your own "fetch" implementation or run in an environment where "fetch" is available.'),E||console.error('Unleash: You must either provide your own "AbortController" implementation or run in an environment where "AbortController" is available.'),U.fetch=b,U.createAbortController=E,U.bootstrap=x&&x.length>0?x:void 0,U.bootstrapOverride=void 0===C||C,U.connectionId="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}),U.metrics=new v({onError:U.emit.bind(U,T.ERROR),onSent:U.emit.bind(U,T.SENT),appName:p,metricsInterval:void 0===l?30:l,disableMetrics:void 0!==f&&f,url:(null==(r=U.experimental)?void 0:r.metricsUrl)||U.url,clientKey:s,fetch:b,headerName:R,customHeaders:I,metricsIntervalInitial:void 0===c?2:c,connectionId:U.connectionId}),U}return function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}(t,e),t.prototype.getAllToggles=function(){return function(e,t,r){for(var n,o=0,i=t.length;o0&&(this.timerRef=setInterval(function(){return t.fetchToggles()},e)),[2]}})})},t.prototype.stop=function(){this.timerRef&&(clearInterval(this.timerRef),this.timerRef=void 0),this.metrics.stop()},t.prototype.isReady=function(){return this.readyEventEmitted},t.prototype.getError=function(){return"error"===this.sdkState?this.lastError:void 0},t.prototype.sendMetrics=function(){return this.metrics.sendMetrics()},t.prototype.resolveSessionId=function(){return s(this,void 0,void 0,function(){var e;return a(this,function(t){switch(t.label){case 0:return this.context.sessionId?[2,this.context.sessionId]:[4,this.storage.get("sessionId")];case 1:return(e=t.sent())?[3,3]:(e=Math.floor(1e9*Math.random()),[4,this.storage.save("sessionId",e.toString(10))]);case 2:t.sent(),t.label=3;case 3:return[2,e.toString(10)]}})})},t.prototype.getHeaders=function(){return h({clientKey:this.clientKey,connectionId:this.connectionId,appName:this.context.appName,customHeaders:this.customHeaders,headerName:this.headerName,etag:this.etag,isPost:this.usePOSTrequests})},t.prototype.storeToggles=function(e){return s(this,void 0,void 0,function(){return a(this,function(t){switch(t.label){case 0:return this.toggles=e,this.emit(T.UPDATE),[4,this.storage.save(R,e)];case 1:return t.sent(),[2]}})})},t.prototype.isTogglesStorageTTLEnabled=function(){var e;return!!((null==(e=this.experimental)?void 0:e.togglesStorageTTL)&&this.experimental.togglesStorageTTL>0)},t.prototype.isUpToDate=function(){if(!this.isTogglesStorageTTLEnabled())return!1;var e,t=Date.now(),r=(null==(e=this.experimental)?void 0:e.togglesStorageTTL)||0;return this.lastRefreshTimestamp>0&&this.lastRefreshTimestamp<=t&&t-this.lastRefreshTimestamp<=r},t.prototype.getLastRefreshTimestamp=function(){return s(this,void 0,void 0,function(){var e,t;return a(this,function(r){switch(r.label){case 0:return this.isTogglesStorageTTLEnabled()?[4,this.storage.get(O)]:[3,3];case 1:return e=r.sent(),[4,d(this.context)];case 2:return t=r.sent(),[2,(null==e?void 0:e.key)===t?e.timestamp:0];case 3:return[2,0]}})})},t.prototype.storeLastRefreshTimestamp=function(){return s(this,void 0,void 0,function(){var e,t;return a(this,function(r){switch(r.label){case 0:return this.isTogglesStorageTTLEnabled()?(this.lastRefreshTimestamp=Date.now(),t={},[4,d(this.context)]):[3,3];case 1:return t.key=r.sent(),t.timestamp=this.lastRefreshTimestamp,e=t,[4,this.storage.save(O,e)];case 2:r.sent(),r.label=3;case 3:return[2]}})})},t.prototype.initialFetchToggles=function(){if(!this.isUpToDate())return this.fetchToggles();this.fetchedFromServer||(this.fetchedFromServer=!0,this.setReady())},t.prototype.fetchToggles=function(){return s(this,void 0,void 0,function(){var e,t,r,n,o,i,s,u,l;return a(this,function(a){switch(a.label){case 0:if(!this.fetch)return[3,9];this.abortController&&!this.abortController.signal.aborted&&this.abortController.abort(),this.abortController=null==(l=this.createAbortController)?void 0:l.call(this),e=this.abortController?this.abortController.signal:void 0,a.label=1;case 1:var c,p,d;return a.trys.push([1,7,8,9]),r=(t=this.usePOSTrequests)?this.url:(c=this.url,p=this.context,d=new URL(c.toString()),Object.entries(p).filter(f).forEach(function(e){var t=e[0],r=e[1];"properties"===t&&r?Object.entries(r).filter(f).forEach(function(e){var t=e[0],r=e[1];return d.searchParams.append("properties[".concat(t,"]"),r)}):d.searchParams.append(t,r)}),d),n=t?"POST":"GET",o=t?JSON.stringify({context:this.context}):void 0,[4,this.fetch(r.toString(),{method:n,cache:"no-cache",headers:this.getHeaders(),body:o,signal:e})];case 2:return i=a.sent(),"error"===this.sdkState&&i.status<400&&(this.sdkState="healthy",this.emit(T.RECOVERED)),i.ok?(this.etag=i.headers.get("ETag")||"",[4,i.json()]):[3,5];case 3:return s=a.sent(),[4,this.storeToggles(s.toggles)];case 4:return a.sent(),"healthy"!==this.sdkState&&(this.sdkState="healthy"),this.fetchedFromServer||(this.fetchedFromServer=!0,this.setReady()),this.storeLastRefreshTimestamp(),[3,6];case 5:304===i.status?this.storeLastRefreshTimestamp():(console.error("Unleash: Fetching feature toggles did not have an ok response"),this.sdkState="error",this.emit(T.ERROR,{type:"HttpError",code:i.status}),this.lastError={type:"HttpError",code:i.status}),a.label=6;case 6:return[3,9];case 7:return"object"==typeof(u=a.sent())&&null!==u&&"name"in u&&"AbortError"===u.name||(console.error("Unleash: unable to fetch feature toggles",u),this.sdkState="error",this.emit(T.ERROR,u),this.lastError=u),[3,9];case 8:return this.abortController=null,[7];case 9:return[2]}})})},t}(c);r.EVENTS=T,r.InMemoryStorageProvider=y,r.LocalStorageProvider=m,r.UnleashClient=I,r.lastUpdateKey=O,r.resolveFetch=_},57383,(e,t,r)=>{e.e,function(e,t,r){"use strict";let n=r.createContext(null),o={bootstrap:[],disableRefresh:!0,disableMetrics:!0,url:"http://localhost",appName:"offline",clientKey:"not-used"},i=r.startTransition||(e=>e()),s=({config:e,children:s,unleashClient:a,startClient:u=!0,stopClient:l=!0,startTransition:c=i})=>{var f,p,d;let h=e||o,g=r.useRef(a||new t.UnleashClient(h)),[v,y]=r.useState(!!(a?null!=e&&e.bootstrap&&(null==e?void 0:e.bootstrapOverride)!==!1||null!=(f=a.isReady)&&f.call(a):h.bootstrap&&!1!==h.bootstrapOverride)),[m,b]=r.useState((null==(d=(p=g.current).getError)?void 0:d.call(p))||null);r.useEffect(()=>{h||a||console.error(`You must provide either a config or an unleash client to the flag provider. If you are initializing the client in useEffect, you can avoid this warning by checking if the client exists before rendering.`);let e=e=>{c(()=>{b(t=>t||e)})},t=e=>{c(()=>{b(null)})},r=null,n=()=>{r=setTimeout(()=>{c(()=>{y(!0)})},0)};return g.current.on("ready",n),g.current.on("error",e),g.current.on("recovered",t),u&&(g.current.stop(),g.current.start()),function(){g.current&&(g.current.off("error",e),g.current.off("ready",n),g.current.off("recovered",t),l&&g.current.stop()),r&&clearTimeout(r)}},[]);let w=r.useMemo(()=>({on:(e,t,r)=>g.current.on(e,t,r),off:(e,t)=>g.current.off(e,t),updateContext:async e=>await g.current.updateContext(e),isEnabled:e=>g.current.isEnabled(e),getVariant:e=>g.current.getVariant(e),client:g.current,flagsReady:v,flagsError:m,setFlagsReady:y,setFlagsError:b}),[v,m]);return r.createElement(n.Provider,{value:w},s)},a={on:(e,t,r)=>(console.error("on() must be used within a FlagProvider"),u),off:(e,t)=>(console.error("off() must be used within a FlagProvider"),u),updateContext:async()=>{console.error("updateContext() must be used within a FlagProvider")},isEnabled:()=>(console.error("isEnabled() must be used within a FlagProvider"),!1),getVariant:()=>(console.error("getVariant() must be used within a FlagProvider"),{name:"disabled",enabled:!1})},u={...a,toggles:[],impressionDataAll:{},context:{},storage:{},start:()=>{},stop:()=>{},isReady:()=>!1,getError:()=>null,getAllToggles:()=>[]},l={...a,client:u,flagsReady:!1,setFlagsReady:()=>{console.error("setFlagsReady() must be used within a FlagProvider")},flagsError:null,setFlagsError:()=>{console.error("setFlagsError() must be used within a FlagProvider")}};function c(){return r.useContext(n)||(console.error("useFlagContext() must be used within a FlagProvider"),l)}Object.defineProperty(e,"InMemoryStorageProvider",{enumerable:!0,get:()=>t.InMemoryStorageProvider}),Object.defineProperty(e,"LocalStorageProvider",{enumerable:!0,get:()=>t.LocalStorageProvider}),Object.defineProperty(e,"UnleashClient",{enumerable:!0,get:()=>t.UnleashClient}),e.FlagContext=n,e.FlagProvider=s,e.default=s,e.useFlag=e=>{let{isEnabled:t,client:n}=c(),[o,i]=r.useState(!!t(e)),s=r.useRef();return s.current=o,r.useEffect(()=>{if(!n)return;let r=()=>{let r=t(e);r!==s.current&&(s.current=r,i(!!r))},o=()=>{let r=t(e);s.current=r,i(r)};return n.on("update",r),n.on("ready",o),()=>{n.off("update",r),n.off("ready",o)}},[n]),o},e.useFlags=()=>{let{client:e}=c(),[t,n]=r.useState(e.getAllToggles());return r.useEffect(()=>{let t=()=>{n(e.getAllToggles())};return e.on("update",t),()=>{e.off("update",t)}},[]),t},e.useFlagsStatus=()=>{let{flagsReady:e,flagsError:t}=c();return{flagsReady:e,flagsError:t}},e.useUnleashClient=()=>{let{client:e}=c();return e},e.useUnleashContext=()=>{let{updateContext:e}=c();return e},e.useVariant=e=>{let{getVariant:t,client:n}=c(),[o,i]=r.useState(t(e)),s=r.useRef({name:o.name,enabled:o.enabled});return s.current=o,r.useEffect(()=>{if(!n)return;let r=()=>{var r,n,o,a,u;let l=t(e);r=s.current,(r.name!==(null==l?void 0:l.name)||r.enabled!==(null==l?void 0:l.enabled)||r.feature_enabled!==(null==l?void 0:l.feature_enabled)||(null==(n=r.payload)?void 0:n.type)!==(null==(o=null==l?void 0:l.payload)?void 0:o.type)||(null==(a=r.payload)?void 0:a.value)!==(null==(u=null==l?void 0:l.payload)?void 0:u.value))&&(i(l),s.current=l)},o=()=>{let r=t(e);s.current.name=null==r?void 0:r.name,s.current.enabled=null==r?void 0:r.enabled,i(r)};return n.on("update",r),n.on("ready",o),()=>{n.off("update",r),n.off("ready",o)}},[n]),o||{}},Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}(r,e.r(215220),e.r(271645))},169433,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.FlagProvider=void 0;let n=e.r(843476),o=e.r(57383),i=e.r(291343);r.FlagProvider=({children:e,...t})=>(0,n.jsx)(o.FlagProvider,{...t,startClient:void 0!==t.startClient?t.startClient:"undefined"!=typeof window,config:{...(0,i.getDefaultClientConfig)(),...t.config},children:e})},238795,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.useUnleashClient=r.useUnleashContext=r.useFlagsStatus=r.useFlags=r.useVariant=r.useFlag=void 0;let n=e.r(57383);r.useFlag=e=>(0,n.useFlag)(e),r.useVariant=e=>(0,n.useVariant)(e),r.useFlags=()=>(0,n.useFlags)(),r.useFlagsStatus=n.useFlagsStatus,r.useUnleashContext=n.useUnleashContext,r.useUnleashClient=n.useUnleashClient},137829,e=>{"use strict";e.s(["XmarkIcon",()=>t]);let t=(0,e.i(930733).default)("XmarkIcon",[["path",{d:"M14 4L4 14",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}],["path",{d:"M4 4L14 14",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}]],"outlined")},78333,(e,t,r)=>{var n=0/0,o=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,a=/^0o[0-7]+$/i,u=parseInt,l=e.g&&e.g.Object===Object&&e.g,c="object"==typeof self&&self&&self.Object===Object&&self,f=l||c||Function("return this")(),p=Object.prototype.toString,d=Math.max,h=Math.min,g=function(){return f.Date.now()};function v(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function y(e){if("number"==typeof e)return e;if("symbol"==typeof(t=e)||t&&"object"==typeof t&&"[object Symbol]"==p.call(t))return n;if(v(e)){var t,r="function"==typeof e.valueOf?e.valueOf():e;e=v(r)?r+"":r}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var l=s.test(e);return l||a.test(e)?u(e.slice(2),l?2:8):i.test(e)?n:+e}t.exports=function(e,t,r){var n,o,i,s,a,u,l=0,c=!1,f=!1,p=!0;if("function"!=typeof e)throw TypeError("Expected a function");function m(t){var r=n,i=o;return n=o=void 0,l=t,s=e.apply(i,r)}function b(e){var r=e-u,n=e-l;return void 0===u||r>=t||r<0||f&&n>=i}function w(){var e,r,n,o=g();if(b(o))return E(o);a=setTimeout(w,(e=o-u,r=o-l,n=t-e,f?h(n,i-r):n))}function E(e){return(a=void 0,p&&n)?m(e):(n=o=void 0,s)}function S(){var e,r=g(),i=b(r);if(n=arguments,o=this,u=r,i){if(void 0===a)return l=e=u,a=setTimeout(w,t),c?m(e):s;if(f)return a=setTimeout(w,t),m(u)}return void 0===a&&(a=setTimeout(w,t)),s}return t=y(t)||0,v(r)&&(c=!!r.leading,i=(f="maxWait"in r)?d(y(r.maxWait)||0,t):i,p="trailing"in r?!!r.trailing:p),S.cancel=function(){void 0!==a&&clearTimeout(a),l=0,n=u=o=a=void 0},S.flush=function(){return void 0===a?s:E(g())},S}},39839,e=>{"use strict";e.s(["useLocalStorage",()=>s,"useMediaQuery",()=>u]);var t=e.i(271645);e.i(78333);var r="undefined"!=typeof window?t.useLayoutEffect:t.useEffect;function n(e,n,o,i){let s=(0,t.useRef)(n);r(()=>{s.current=n},[n]),(0,t.useEffect)(()=>{let t=(null==o?void 0:o.current)??window;if(!(t&&t.addEventListener))return;let r=e=>{s.current(e)};return t.addEventListener(e,r,i),()=>{t.removeEventListener(e,r,i)}},[e,o,i])}function o(e){let n=(0,t.useRef)(()=>{throw Error("Cannot call an event handler while rendering.")});return r(()=>{n.current=e},[e]),(0,t.useCallback)((...e)=>{var t;return null==(t=n.current)?void 0:t.call(n,...e)},[n])}var i="undefined"==typeof window;function s(e,r,a={}){let{initializeWithValue:u=!0}=a,l=(0,t.useCallback)(e=>a.serializer?a.serializer(e):JSON.stringify(e),[a]),c=(0,t.useCallback)(e=>{let t;if(a.deserializer)return a.deserializer(e);if("undefined"===e)return;let n=r instanceof Function?r():r;try{t=JSON.parse(e)}catch(e){return console.error("Error parsing JSON:",e),n}return t},[a,r]),f=(0,t.useCallback)(()=>{let t=r instanceof Function?r():r;if(i)return t;try{let r=window.localStorage.getItem(e);return r?c(r):t}catch(r){return console.warn(`Error reading localStorage key \u201C${e}\u201D:`,r),t}},[r,e,c]),[p,d]=(0,t.useState)(()=>u?f():r instanceof Function?r():r),h=o(t=>{i&&console.warn(`Tried setting localStorage key \u201C${e}\u201D even though environment is not a client`);try{let r=t instanceof Function?t(f()):t;window.localStorage.setItem(e,l(r)),d(r),window.dispatchEvent(new StorageEvent("local-storage",{key:e}))}catch(t){console.warn(`Error setting localStorage key \u201C${e}\u201D:`,t)}}),g=o(()=>{i&&console.warn(`Tried removing localStorage key \u201C${e}\u201D even though environment is not a client`);let t=r instanceof Function?r():r;window.localStorage.removeItem(e),d(t),window.dispatchEvent(new StorageEvent("local-storage",{key:e}))});(0,t.useEffect)(()=>{d(f())},[e]);let v=(0,t.useCallback)(t=>{t.key&&t.key!==e||d(f())},[e,f]);return n("storage",v),n("local-storage",v),[p,h,g]}var a="undefined"==typeof window;function u(e,{defaultValue:n=!1,initializeWithValue:o=!0}={}){let i=e=>a?n:window.matchMedia(e).matches,[s,l]=(0,t.useState)(()=>o?i(e):n);function c(){l(i(e))}return r(()=>{let t=window.matchMedia(e);return c(),t.addListener?t.addListener(c):t.addEventListener("change",c),()=>{t.removeListener?t.removeListener(c):t.removeEventListener("change",c)}},[e]),s}},628083,e=>{"use strict";e.s(["Check2Icon",()=>t]);let t=(0,e.i(930733).default)("Check2Icon",[["path",{d:"M2.75 9.5L6.5 13.25L15.25 4.5",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}]],"outlined")},721999,108821,156736,209793,625834,264951,366250,974217,77173,313488,325326,174716,e=>{"use strict";e.s(["zIndex",()=>t],721999);let t={Overlay:"z-50",Popup:"z-40",PrimaryNav:"z-30",SecondaryNav:"z-20",Control:"z-10",Banner:"z-45"};e.s(["Dialog",()=>eo,"DialogBackdrop",()=>ea,"DialogClose",()=>es,"DialogPopup",()=>el,"DialogPortal",()=>ei,"DialogViewport",()=>eu],174716);var r=e.i(843476);e.s(["Backdrop",()=>l,"Close",()=>d,"Description",()=>g,"Handle",()=>Z,"Popup",()=>C,"Portal",()=>O,"Root",()=>z,"Title",()=>Y,"Trigger",()=>W,"Viewport",()=>K,"createHandle",()=>Q],828376),e.s([],914651),e.i(914651),e.i(247167);var n=e.i(271645);e.s(["DialogRootContext",()=>i,"useDialogRootContext",()=>s],108821);var o=e.i(733332);let i=n.createContext(void 0);function s(e){let t=n.useContext(i);if(!e&&void 0===t)throw Error((0,o.default)(27));return t}var a=e.i(552245),u=e.i(405005);let l=n.forwardRef(function(e,t){let{render:r,className:n,style:o,forceRender:i=!1,...l}=e,c=s(),f=c.useState("open"),p=c.useState("nested"),d=c.useState("mounted"),h=c.useState("transitionStatus");return(0,a.useRenderElement)("div",e,{state:{open:f,transitionStatus:h},ref:[c.context.backdropRef,t],stateAttributesMapping:u.popupTransitionStateMapping,props:[{role:"presentation",hidden:!d,style:{userSelect:"none",WebkitUserSelect:"none"}},l],enabled:i||!p})});e.s(["DialogClose",()=>d],156736);var c=e.i(540886),f=e.i(675606),p=e.i(56434);let d=n.forwardRef(function(e,t){let{render:r,className:n,style:o,disabled:i=!1,nativeButton:u=!0,...l}=e,d=s(),h=d.useState("open"),{getButtonProps:g,buttonRef:v}=(0,c.useButton)({disabled:i,native:u});return(0,a.useRenderElement)("button",e,{state:{disabled:i},ref:[t,v],props:[{onClick:function(e){h&&d.setOpen(!1,(0,f.createChangeEventDetails)(p.REASONS.closePress,e.nativeEvent))}},l,g]})});e.s(["DialogDescription",()=>g],209793);var h=e.i(788015);let g=n.forwardRef(function(e,t){let{render:r,className:n,style:o,id:i,...u}=e,l=s(),c=(0,h.useBaseUiId)(i);return l.useSyncedValueWithCleanup("descriptionElementId",c),(0,a.useRenderElement)("p",e,{ref:t,props:[{id:c},u]})});var v=e.i(61487);e.s(["DialogPortalContext",()=>y,"useDialogPortalContext",()=>m],625834);let y=n.createContext(void 0);function m(){let e=n.useContext(y);if(void 0===e)throw Error((0,o.default)(26));return e}var b=e.i(137584),w=e.i(673327),E=e.i(264111),S=e.i(209407);let x={...u.popupStateMapping,...S.transitionStatusMapping,nestedDialogOpen:e=>e?{"data-nested-dialog-open":""}:null},C=n.forwardRef(function(e,t){let{render:n,className:o,style:i,finalFocus:u,initialFocus:l,...c}=e,f=s(),p=f.useState("descriptionElementId"),d=f.useState("disablePointerDismissal"),h=f.useState("floatingRootContext"),g=f.useState("popupProps"),y=f.useState("modal"),S=f.useState("mounted"),C=f.useState("nested"),T=f.useState("nestedOpenDialogCount"),P=f.useState("open"),R=f.useState("openMethod"),O=f.useState("titleElementId"),_=f.useState("transitionStatus"),I=f.useState("role"),A=h.useState("floatingId");m(),(0,b.useOpenChangeComplete)({open:P,ref:f.context.popupRef,onComplete(){P&&f.context.onOpenChangeComplete?.(!0)}});let k=void 0===l?(0,E.createDefaultInitialFocus)(f.context.popupRef):l,D=f.useStateSetter("popupElement"),U=(0,a.useRenderElement)("div",e,{state:{open:P,nested:C,transitionStatus:_,nestedDialogOpen:T>0},props:[g,{id:A,"aria-labelledby":O,"aria-describedby":p,role:I,...E.FOCUSABLE_POPUP_PROPS,hidden:!S,onKeyDown(e){w.COMPOSITE_KEYS.has(e.key)&&e.stopPropagation()},style:{"--nested-dialogs":T}},c],ref:[t,f.context.popupRef,D],stateAttributesMapping:x});return(0,r.jsx)(v.FloatingFocusManager,{context:h,openInteractionType:R,disabled:!S,closeOnFocusOut:!d,initialFocus:k,returnFocus:u,modal:!1!==y,restoreFocus:"popup",children:U})});e.s(["DialogPortal",()=>O],264951);var T=e.i(144394),P=e.i(726674),R=e.i(426);let O=n.forwardRef(function(e,t){let{keepMounted:n=!1,...o}=e,i=s(),a=i.useState("mounted"),u=i.useState("modal"),l=i.useState("open");return a||n?(0,r.jsx)(y.Provider,{value:n,children:(0,r.jsxs)(P.FloatingPortal,{ref:t,...o,children:[a&&!0===u&&(0,r.jsx)(R.InternalBackdrop,{ref:i.context.internalBackdropRef,inert:(0,T.inertValue)(!l)}),e.children]})}):null});e.s(["useRenderDialogRoot",()=>V],366250);var _=e.i(146376),I=e.i(145484),A=e.i(17989),k=e.i(647554);function D({store:e,parentContext:t,isDrawer:r}){let o=e.useState("open"),i=e.useState("disablePointerDismissal"),s=e.useState("modal"),a=e.useState("popupElement"),u=e.useState("floatingRootContext"),[l,c]=n.useState(0),[f,p]=n.useState(0),d=0===l,h=(0,A.useDismiss)(u,{outsidePressEvent:()=>e.context.internalBackdropRef.current||e.context.backdropRef.current?"intentional":{mouse:"trap-focus"===s?"sloppy":"intentional",touch:"sloppy"},outsidePress(t){if(!e.context.outsidePressEnabledRef.current||"button"in t&&0!==t.button)return!1;if("touches"in t){if("touchend"===t.type){if(1!==t.changedTouches.length||0!==t.touches.length)return!1}else if(1!==t.touches.length)return!1}let r=(0,k.getTarget)(t);if(d&&!i){if(s){let t=e.context.internalBackdropRef.current,n=e.context.backdropRef.current;return!t&&!n||t===r||n===r||(0,k.contains)(r,a)&&!r?.hasAttribute("data-base-ui-portal")}return!0}return!1},escapeKey:d});return(0,I.useScrollLock)(o&&!0===s,a),e.useContextCallback("onNestedDialogOpen",(e,t)=>{c(e),p(t)}),(0,_.useIsoLayoutEffect)(()=>(t?.onNestedDialogOpen&&(o?t.onNestedDialogOpen(l+1,f+ +!!r):t.onNestedDialogOpen(0,0)),()=>{t?.onNestedDialogOpen&&o&&t.onNestedDialogOpen(0,0)}),[r,o,l,f,t]),(0,E.usePopupInteractionProps)(e,{activeTriggerProps:h.reference,inactiveTriggerProps:h.trigger,popupProps:h.floating,nestedOpenDialogCount:l,nestedOpenDrawerCount:f}),null}var U=e.i(301252),L=e.i(18478),N=e.i(116786),M=e.i(990627);let B={...N.popupStoreSelectors,modal:e=>e.modal,nested:e=>e.nested,nestedOpenDialogCount:e=>e.nestedOpenDialogCount,nestedOpenDrawerCount:e=>e.nestedOpenDrawerCount,disablePointerDismissal:e=>e.disablePointerDismissal,openMethod:e=>e.openMethod,descriptionElementId:e=>e.descriptionElementId,titleElementId:e=>e.titleElementId,viewportElement:e=>e.viewportElement,role:e=>e.role};class j extends U.ReactStore{constructor(e,t,r){let n=new M.PopupTriggerMap;super(F(e,n,t,r),H(n),B)}setOpen=(e,t)=>{if(t.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},e||null!=t.trigger||null==this.state.activeTriggerId||(t.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(e,t),t.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,t);let r={open:e};(0,E.setPopupOpenState)(r,e,t.trigger),this.update(r)}}function F(e,t,r,n=!1){let o={...(0,N.createInitialPopupStoreState)(),modal:!0,disablePointerDismissal:!1,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,nestedOpenDrawerCount:0,role:"dialog",...e};return o.floatingRootContext=(0,N.createPopupFloatingRootContext)(t,r,n),o}function H(e){return{popupRef:n.createRef(),backdropRef:n.createRef(),internalBackdropRef:n.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:e,onOpenChange:void 0,onOpenChangeComplete:void 0}}function V(e,t){let{children:o,open:a,defaultOpen:u=!1,onOpenChange:l,onOpenChangeComplete:c,disablePointerDismissal:d=!1,modal:h=!0,actionsRef:g,handle:v,triggerId:y,defaultTriggerId:m=null}=t,b="alert-dialog"===e,w=s(!0),S={modal:!!b||h,disablePointerDismissal:b||d,nested:null!=w,role:b?"alertdialog":"dialog"},x=(0,E.usePopupRootStore)((e,t)=>new j({open:u,openProp:a,activeTriggerId:m,triggerIdProp:y,...S},e,t),!0);x.useControlledProp("openProp",a),x.useControlledProp("triggerIdProp",y),x.useSyncedValues(S),x.useContextCallback("onOpenChange",l),x.useContextCallback("onOpenChangeComplete",c);let C=x.useState("open"),T=x.useState("mounted"),P=x.useState("payload");(0,E.usePopupRootSync)(x,C),(0,E.useImplicitActiveTrigger)(x);let{forceUnmount:R}=(0,E.useOpenStateTransitions)(C,x);n.useImperativeHandle(g,()=>({unmount:R,close:()=>x.setOpen(!1,(0,f.createChangeEventDetails)(p.REASONS.imperativeAction))}),[R,x]);let O=C||T;return(0,r.jsxs)(i.Provider,{value:x,children:[v&&(0,r.jsx)(E.PopupHandleAttachment,{handle:v,store:x}),O&&(0,r.jsx)(D,{store:x,parentContext:w?.context,isDrawer:"drawer"===e}),"function"==typeof o?o({payload:P}):o]})}function z(e){return V("dialog",e)}e.s(["DialogViewport",()=>K],974217);let K=n.forwardRef(function(e,t){let{render:r,className:n,style:o,children:i,...u}=e,l=m(),c=s(),f=c.useState("open"),p=c.useState("nested"),d=c.useState("transitionStatus"),h=c.useState("nestedOpenDialogCount"),g=c.useState("mounted"),v=c.useStateSetter("viewportElement");return(0,a.useRenderElement)("div",e,{enabled:l||g,state:{open:f,nested:p,transitionStatus:d,nestedDialogOpen:h>0},ref:[t,v],stateAttributesMapping:x,props:[{role:"presentation",hidden:!g,style:{pointerEvents:f?void 0:"none"},children:i},u]})});e.s(["DialogTitle",()=>Y],77173);let Y=n.forwardRef(function(e,t){let{render:r,className:n,style:o,id:i,...u}=e,l=s(),c=(0,h.useBaseUiId)(i);return l.useSyncedValueWithCleanup("titleElementId",c),(0,a.useRenderElement)("h2",e,{ref:t,props:[{id:c},u]})});e.s(["DialogTrigger",()=>W],313488);var q=e.i(638396),$=e.i(459636),X=e.i(385689),J=e.i(32199);let W=n.forwardRef(function(e,t){let{render:r,className:i,style:l,disabled:f=!1,nativeButton:p=!0,id:d,payload:g,handle:v,...y}=e,m=s(!0),b=(0,$.usePopupHandleStore)(v)??m;if(!b)throw Error((0,o.default)(79));let w=(0,h.useBaseUiId)(d),S=b.useState("floatingRootContext"),x=b.useState("isOpenedByTrigger",w),C=b.useState("triggerPopupId",w),T=n.useRef(null),{registerTrigger:P,isMountedByThisTrigger:R}=(0,E.useTriggerDataForwarding)(w,T,b,{payload:g}),{getButtonProps:O,buttonRef:_}=(0,c.useButton)({disabled:f,native:p}),I=(0,X.useClick)(S),A=(0,J.useOpenMethodTriggerProps)(()=>b.select("open"),e=>{b.set("openMethod",e)}),k=b.useState("triggerProps",R);return(0,a.useRenderElement)("button",e,{state:{disabled:f,open:x},ref:[_,t,P,T],props:[I.reference,k,A,{[q.CLICK_TRIGGER_IDENTIFIER]:"",id:w,"aria-haspopup":"dialog","aria-expanded":x,"aria-controls":C},y,O],stateAttributesMapping:u.triggerOpenStateMapping})});e.s(["DialogHandle",()=>Z,"createDialogHandle",()=>Q],325326);var G=e.i(564170);class Z extends G.BasePopupHandle{constructor(){super(function(){let e=new M.PopupTriggerMap;return new L.NullStore(Object.freeze(F(void 0,e)),Object.freeze(H(e)),B)}(),"Dialog",!1)}open(e){this.openByTrigger(e)}openWithPayload(e){let t=this.attachedStore;null!==t&&(t.set("payload",e),t.setOpen(!0,(0,f.createChangeEventDetails)(p.REASONS.imperativeAction)))}close(){this.closePopup()}get isOpen(){return this.attachedStore?.select("open")??!1}}function Q(){return new Z}var ee=e.i(828376),ee=ee,et=e.i(296548);let er=(0,et.cn)("origin-center will-change-[transform,scale,opacity]","transition-[transform,scale,opacity] duration-[250ms] ease-[cubic-bezier(0.22,1,0.36,1)]","data-starting-style:scale-[0.96] data-starting-style:opacity-0","data-ending-style:scale-[0.96] data-ending-style:opacity-0 data-ending-style:duration-[150ms]","motion-reduce:transition-none"),en=(0,et.cn)("transition-opacity duration-[250ms] ease-[cubic-bezier(0.22,1,0.36,1)]","data-starting-style:opacity-0","data-ending-style:opacity-0 data-ending-style:duration-[150ms]","motion-reduce:transition-none"),eo=e=>(0,r.jsx)(ee.Root,{...e}),ei=e=>(0,r.jsx)(ee.Portal,{...e}),es=({ref:e,...t})=>(0,r.jsx)(ee.Close,{ref:e,...t}),ea=({className:e,ref:n,...o})=>(0,r.jsx)(ee.Backdrop,{ref:n,className:(0,et.cn)("fixed inset-0 bg-black/40",t.Popup,en,e),...o}),eu=({className:e,ref:t,...n})=>(0,r.jsx)(ee.Viewport,{ref:t,className:(0,et.cn)("fixed inset-0",e),...n}),el=({className:e,ref:t,...n})=>(0,r.jsx)(ee.Popup,{ref:t,className:(0,et.cn)(er,e),...n})},448205,e=>{"use strict";e.s(["ChevronDownIcon",()=>t]);let t=(0,e.i(930733).default)("ChevronDownIcon",[["path",{d:"M15.25 6.5L9 12.75L2.75 6.5",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}]],"outlined")},988571,e=>{e.v(JSON.parse('{"name":"@unleash/nextjs","version":"1.6.2","description":"Unleash SDK for Next.js","main":"dist/index.js","types":"dist/index.d.ts","license":"Apache-2.0","bin":{"unleash":"./dist/cli/index.js"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./client":{"types":"./client.d.ts","default":"./client.js"}},"files":["dist","client.*","src"],"scripts":{"lint":"eslint src/**/*.ts* client.ts","test":"vitest run --coverage","test:dev":"vitest","build":"tsc && tsc --p tsconfig.client.json && cp ../README.md ./README.md","dev":"tsc -w"},"devDependencies":{"@types/murmurhash3js":"3.0.7","@types/node":"22.5.5","@types/react":"18.3.8","@types/react-dom":"18.3.0","@types/semver":"7.5.8","@unleash/client-specification":"5.1.9","@vitest/coverage-v8":"^2.1.1","eslint-config-custom":"*","next":"14.2.13","react":"18.3.1","react-dom":"18.3.1","typescript":"5.6.2","vite":"5.4.6","vitest":"2.1.1"},"dependencies":{"@commander-js/extra-typings":"12.1.0","@next/env":"14.2.13","@unleash/proxy-client-react":"5.0.0","commander":"12.1.0","murmurhash3js":"3.0.1","semver":"7.6.3","unleash-client":"^6.4.4","unleash-proxy-client":"^3.7.4"},"peerDependencies":{"next":">=12","react":">=17","react-dom":">=17"},"repository":{"type":"git","url":"https://github.com/Unleash/unleash-client-nextjs"},"bugs":{"url":"https://github.com/Unleash/unleash-client-nextjs/issues"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"}}'))},447939,e=>{"use strict";e.s(["AnalyticsProvider",()=>n,"default",()=>o]);var t=e.i(843476);let r=(0,e.i(271645).createContext)({});function n({value:e,children:n}){return(0,t.jsx)(r.Provider,{value:e??{},children:n})}r.displayName="AnalyticsContext";let o=r},772803,292346,e=>{"use strict";e.s(["Tooltip",()=>eb,"TooltipArrow",()=>eE,"TooltipContent",()=>ex,"TooltipProvider",()=>em,"TooltipTrigger",()=>ew],772803);var t=e.i(843476);e.s(["Tooltip",()=>eg],292346),e.s(["Arrow",()=>eu,"Handle",()=>ed,"Popup",()=>ea,"Portal",()=>G,"Positioner",()=>en,"Provider",()=>el,"Root",()=>O,"Trigger",()=>q,"Viewport",()=>ef,"createHandle",()=>eh],599643),e.s([],951047),e.i(951047),e.i(247167);var r=e.i(271645),n=e.i(896499),o=e.i(956789),i=e.i(146376),s=e.i(733332);let a=r.createContext(void 0);function u(e){let t=r.useContext(a);if(void 0===t&&!e)throw Error((0,s.default)(72));return t}var l=e.i(574735),c=e.i(667865),f=e.i(229315),p=e.i(647554),d=e.i(157940);function h(e){return null!=e&&null!=e.clientX}var g=e.i(17989),v=e.i(675606),y=e.i(264111),m=e.i(176782),b=e.i(301252),w=e.i(56434),E=e.i(18478),S=e.i(116786),x=e.i(990627);let C={...S.popupStoreSelectors,disabled:e=>e.disabled,instantType:e=>e.instantType,isInstantPhase:e=>e.isInstantPhase,trackCursorAxis:e=>e.trackCursorAxis,disableHoverablePopup:e=>e.disableHoverablePopup,lastOpenChangeReason:e=>e.openChangeReason,closeOnClick:e=>e.closeOnClick,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin};class T extends b.ReactStore{constructor(e,t,r){let n=new x.PopupTriggerMap;super(P(e,n,t,r),R(n),C)}setOpen=(e,t)=>{(0,y.applyPopupOpenChange)(this,e,t,{extraState:{openChangeReason:t.reason}})};cancelPendingOpen(e){this.state.floatingRootContext.dispatchOpenChange(!1,(0,v.createChangeEventDetails)(w.REASONS.triggerPress,e))}}function P(e,t,r,n=!1){let o={...(0,S.createInitialPopupStoreState)(),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:"none",disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,adaptiveOrigin:void 0,...e};return o.floatingRootContext=(0,S.createPopupFloatingRootContext)(t,r,n),o}function R(e){return{popupRef:r.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:e}}let O=(0,n.fastComponent)(function(e){let{disabled:n=!1,defaultOpen:o=!1,open:s,disableHoverablePopup:u=!1,trackCursorAxis:l="none",actionsRef:c,onOpenChange:f,onOpenChangeComplete:p,handle:d,triggerId:h,defaultTriggerId:g=null,children:m}=e,b=(0,y.usePopupRootStore)((e,t)=>new T({open:o,openProp:s,activeTriggerId:g,triggerIdProp:h},e,t));b.useControlledProp("openProp",s),b.useControlledProp("triggerIdProp",h),b.useContextCallback("onOpenChange",f),b.useContextCallback("onOpenChangeComplete",p);let E=b.useState("open"),S=!n&&E,x=b.useState("activeTriggerId"),C=b.useState("mounted"),P=b.useState("payload");b.useSyncedValues({trackCursorAxis:l,disableHoverablePopup:u,disabled:n}),(0,y.useImplicitActiveTrigger)(b,{closeOnActiveTriggerUnmount:!0});let{forceUnmount:R,transitionStatus:O}=(0,y.useOpenStateTransitions)(S,b),I=b.useState("isInstantPhase"),A=b.useState("instantType"),k=b.useState("lastOpenChangeReason"),D=r.useRef(null);(0,i.useIsoLayoutEffect)(()=>{E&&n&&b.setOpen(!1,(0,v.createChangeEventDetails)(w.REASONS.disabled))},[E,n,b]),(0,i.useIsoLayoutEffect)(()=>{"ending"===O&&k===w.REASONS.none||"ending"!==O&&I?("delay"!==A&&(D.current=A),b.set("instantType","delay")):null!==D.current&&(b.set("instantType",D.current),D.current=null)},[O,I,k,A,b]),(0,i.useIsoLayoutEffect)(()=>{S&&null==x&&b.set("payload",void 0)},[b,x,S]),r.useImperativeHandle(c,()=>({unmount:R,close:()=>b.setOpen(!1,(0,v.createChangeEventDetails)(w.REASONS.imperativeAction))}),[R,b]);let U=S||C||!n&&"none"!==l;return(0,t.jsxs)(a.Provider,{value:b,children:[d&&(0,t.jsx)(y.PopupHandleAttachment,{handle:d,store:b}),U&&(0,t.jsx)(_,{store:b,disabled:n,trackCursorAxis:l}),"function"==typeof m?m({payload:P}):m]})});function _({store:e,disabled:t,trackCursorAxis:n}){let i=e.useState("floatingRootContext"),s=(0,g.useDismiss)(i,{enabled:!t,referencePress:()=>e.select("closeOnClick")}),a=function(e,t={}){let{enabled:n=!0,axis:o="both"}=t,i="rootStore"in e?e.rootStore:e,s=i.useState("open"),a=i.useState("floatingElement"),u=i.useState("domReferenceElement"),g=i.context.dataRef,v=r.useRef(!1),y=r.useRef(null),[m,b]=r.useState(),[w,E]=r.useState([]),S=(0,c.useStableCallback)(e=>{i.set("positionReference",e)}),x=(0,c.useStableCallback)((e,t,r)=>{if(!v.current&&(!g.current.openEvent||h(g.current.openEvent))){var n,s;let a,l,c;i.set("positionReference",(n=r??u,s={x:e,y:t,axis:o,dataRef:g,pointerType:m},a=null,l=null,c=!1,{contextElement:n||void 0,getBoundingClientRect(){let e=n?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},t="x"===s.axis||"both"===s.axis,r="y"===s.axis||"both"===s.axis,o=["mouseenter","mousemove"].includes(s.dataRef.current.openEvent?.type||"")&&"touch"!==s.pointerType,i=e.width,u=e.height,f=e.x,p=e.y;return null==a&&s.x&&t&&(a=e.x-s.x),null==l&&s.y&&r&&(l=e.y-s.y),f-=a||0,p-=l||0,i=0,u=0,!c||o?(i="y"===s.axis?e.width:0,u="x"===s.axis?e.height:0,f=t&&null!=s.x?s.x:f,p=r&&null!=s.y?s.y:p):c&&!o&&(u="x"===s.axis?e.height:u,i="y"===s.axis?e.width:i),c=!0,{width:i,height:u,x:f,y:p,top:p,right:f+i,bottom:p+u,left:f}}}))}}),C=(0,c.useStableCallback)(e=>{s?y.current||(x(e.clientX,e.clientY,e.currentTarget),E([])):x(e.clientX,e.clientY,e.currentTarget)}),T=(0,d.isMouseLikePointerType)(m)?a:s;r.useEffect(()=>{if(!n)return void S(u);if(!T)return;function e(){y.current?.(),y.current=null}let t=(0,f.getWindow)(a);return!g.current.openEvent||h(g.current.openEvent)?y.current=(0,l.addEventListener)(t,"mousemove",function(t){let r=(0,p.getTarget)(t);(0,p.contains)(a,r)?e():x(t.clientX,t.clientY)}):S(u),e},[T,n,a,g,u,i,x,S,w]),r.useEffect(()=>()=>{i.set("positionReference",null)},[i]),r.useEffect(()=>{n&&!a&&(v.current=!1)},[n,a]),r.useEffect(()=>{!n&&s&&(v.current=!0)},[n,s]);let P=r.useMemo(()=>{function e(e){b(e.pointerType)}return{onPointerDown:e,onPointerEnter:e,onMouseMove:C,onMouseEnter:C}},[C]);return r.useMemo(()=>n?{reference:P,trigger:P}:{},[n,P])}(i,{enabled:!t&&"none"!==n,axis:"none"===n?void 0:n}),u=r.useMemo(()=>(0,m.mergeProps)(a.reference,s.reference),[a.reference,s.reference]);return(0,y.usePopupInteractionProps)(e,{activeTriggerProps:u,inactiveTriggerProps:u,popupProps:s.floating??o.EMPTY_OBJECT}),null}var I=e.i(439957),A=e.i(446265),k=e.i(405005),D=e.i(552245),U=e.i(459636),L=e.i(788015);let N=r.createContext(void 0);var M=e.i(650316),B=e.i(944681);let j=r.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new I.Timeout,currentIdRef:{current:null},currentContextRef:{current:null}});function F(e){let{children:n,delay:o,timeoutMs:s=0}=e,a=r.useRef(o),u=r.useRef(o),l=r.useRef(null),c=r.useRef(null),f=(0,I.useTimeout)();return(0,i.useIsoLayoutEffect)(()=>{if(u.current=o,!l.current){a.current=o;return}a.current={open:(0,B.getDelay)(a.current,"open"),close:(0,B.getDelay)(o,"close")}},[o,l,a,u]),(0,t.jsx)(j.Provider,{value:r.useMemo(()=>({hasProvider:!0,delayRef:a,initialDelayRef:u,currentIdRef:l,timeoutMs:s,currentContextRef:c,timeout:f}),[s,f]),children:n})}var H=e.i(413082),V=e.i(872135),z=e.i(673752);let K="data-base-ui-tooltip-trigger";function Y(e){if("composedPath"in e){let t=e.composedPath();for(let e=0;e{y.current=n},[n]),(0,i.useIsoLayoutEffect)(()=>{function e(){f.current?.setIsInstantPhase(!1),a.current=null,f.current=null,u.current=c.current,d.clear()}if(a.current&&!n&&a.current===s){if(g(!1),l)return d.start(l,()=>{o.select("open")||a.current&&a.current!==s||e()}),()=>{(y.current||a.current!==s)&&d.clear()};e()}},[n,s,a,u,l,c,f,d,o]),(0,i.useIsoLayoutEffect)(()=>{if(!n)return;let e=f.current,t=a.current;d.clear(),f.current={onOpenChange:o.setOpen,setIsInstantPhase:g},a.current=s,u.current={open:0,close:(0,B.getDelay)(c.current,"close")},null!==t&&t!==s?(g(!0),e?.setIsInstantPhase(!0),e?.onOpenChange(!1,(0,v.createChangeEventDetails)(w.REASONS.none))):(g(!1),e?.setIsInstantPhase(!1))},[n,s,o,a,u,c,f,d]),(0,i.useIsoLayoutEffect)(()=>()=>{a.current===s&&(f.current=null,y.current)&&(a.current=null,u.current=c.current,d.clear())},[f,a,u,s,c,d]),r.useMemo(()=>({hasProvider:p,delayRef:u,isInstantPhase:h}),[p,u,h])}(O,{open:R}),Q=(0,z.useHoverInteractionSharedState)(O);C.useSyncedValue("isInstantPhase",G);let ee=C.useState("disabled"),et=h??ee,er=(0,A.useValueAsRef)(et),en=C.useState("trackCursorAxis"),eo=C.useState("disableHoverablePopup"),ei=r.useRef(!1),es=(0,I.useTimeout)(),ea=r.useRef(void 0);function eu(){return Z?0===(0,B.getDelay)(W.current,"open")?0:g??J??600:F}function el(e){let t=_.current;if(!t||!e)return!1;let r=function(e){let t=e;for(;t;){let e=t.closest(`[${K}]`);if(e)return e;let r=t.getRootNode();t="host"in r&&(0,f.isElement)(r.host)?r.host:null}return null}(e);return null!==r&&r!==t&&(0,p.contains)(t,r)}let ec=(0,V.useHoverReferenceInteraction)(O,{enabled:!et,mouseOnly:!0,move:!1,handleClose:eo||"both"===en?null:(0,M.safePolygon)(),restMs:eu,delay:()=>null==b&&Z?{close:(0,B.getDelay)(W.current,"close")}:{close:q},triggerElementRef:_,isActiveTrigger:P,isClosing:()=>"ending"===C.select("transitionStatus"),shouldOpen:()=>!ei.current}),ef=(0,H.useFocus)(O,{enabled:!et}).reference,ep=C.useState("triggerProps",X),ed=X||"none"!==en;return(0,D.useRenderElement)("button",e,{state:{open:R},ref:[t,$,_],props:[ec,ef,ed?ep:void 0,{onMouseOver(e){(e=>{let t=ei.current,r=Y(e),n=function(e){let t=el(e);return ei.current=t,t&&(Q.openChangeTimeout.clear(),Q.restTimeout.clear(),Q.restTimeoutPending=!1,es.clear()),t}(r),o=_.current,i=o&&r&&(0,p.contains)(o,r);if(n&&C.select("open")&&C.select("lastOpenChangeReason")===w.REASONS.triggerHover)return C.setOpen(!1,(0,v.createChangeEventDetails)(w.REASONS.triggerHover,e));if(t&&!n&&i&&!er.current&&!C.select("open")&&o&&(0,d.isMouseLikePointerType)(ea.current)){let t=()=>{ei.current||er.current||C.select("open")||C.setOpen(!0,(0,v.createChangeEventDetails)(w.REASONS.triggerHover,e,o))},r=eu();0===r?(es.clear(),t()):es.start(r,t)}})(e.nativeEvent)},onFocus(e){el(Y(e.nativeEvent))&&e.preventBaseUIHandler()},onMouseLeave(){ei.current=!1,es.clear(),ea.current=void 0},onPointerEnter(e){ea.current=e.pointerType},onPointerDown(e){ea.current=e.pointerType,C.set("closeOnClick",m),m&&!C.select("open")&&C.cancelPendingOpen(e.nativeEvent)},onClick(e){m&&!C.select("open")&&C.cancelPendingOpen(e.nativeEvent)},id:T,"data-trigger-disabled":et?"":void 0,[K]:et?void 0:""},S],stateAttributesMapping:k.triggerOpenStateMapping})}),$=r.createContext(void 0);var X=e.i(174080),J=e.i(726674);let W=r.forwardRef(function(e,n){let{children:o,container:i,className:s,render:a,style:u,...l}=e,{node:c,subtree:f}=(0,J.useFloatingPortalNode)({container:i,ref:n,componentProps:e,elementProps:l});return f||c?(0,t.jsxs)(r.Fragment,{children:[f,c&&X.createPortal(o,c)]}):null}),G=r.forwardRef(function(e,r){let{keepMounted:n=!1,...o}=e;return u().useState("mounted")||n?(0,t.jsx)($.Provider,{value:n,children:(0,t.jsx)(W,{ref:r,...o})}):null}),Z=r.createContext(void 0);function Q(){let e=r.useContext(Z);if(void 0===e)throw Error((0,s.default)(71));return e}var ee=e.i(923706),et=e.i(638396),er=e.i(789579);let en=r.forwardRef(function(e,n){let{render:o,className:i,anchor:a,positionMethod:l="absolute",side:c="top",align:f="center",sideOffset:p=0,alignOffset:d=0,collisionBoundary:h="clipping-ancestors",collisionPadding:g=5,arrowPadding:v=5,sticky:y=!1,disableAnchorTracking:m=!1,collisionAvoidance:b=et.POPUP_COLLISION_AVOIDANCE,style:w,...E}=e,S=u(),x=function(){let e=r.useContext($);if(void 0===e)throw Error((0,s.default)(70));return e}(),C=S.useState("open"),T=S.useState("mounted"),P=S.useState("trackCursorAxis"),R=S.useState("disableHoverablePopup"),O=S.useState("floatingRootContext"),_=S.useState("instantType"),I=S.useState("transitionStatus"),A=S.useState("adaptiveOrigin"),k=(0,ee.useAnchorPositioning)({anchor:a,positionMethod:l,floatingRootContext:O,mounted:T,side:c,sideOffset:p,align:f,alignOffset:d,collisionBoundary:h,collisionPadding:g,sticky:y,arrowPadding:v,disableAnchorTracking:m,keepMounted:x,collisionAvoidance:b,adaptiveOrigin:A}),D=r.useMemo(()=>({open:C,side:k.side,align:k.align,anchorHidden:k.anchorHidden,instant:"none"!==P?"tracking-cursor":_}),[C,k.side,k.align,k.anchorHidden,P,_]),U=(0,er.usePositioner)(e,D,{styles:k.positionerStyles,transitionStatus:I,props:E,refs:[n,S.useStateSetter("positionerElement")],hidden:!T,inert:!C||"both"===P||R});return(0,t.jsx)(Z.Provider,{value:k,children:U})});var eo=e.i(137584),ei=e.i(253984),es=e.i(431157);let ea=r.forwardRef(function(e,t){let{render:r,className:n,style:o,...i}=e,s=u(),{side:a,align:l}=Q(),c=s.useState("open"),f=s.useState("instantType"),p=s.useState("transitionStatus"),d=s.useState("popupProps"),h=s.useState("floatingRootContext"),g=s.useState("disabled"),v=s.useState("closeDelay");(0,eo.useOpenChangeComplete)({open:c,ref:s.context.popupRef,onComplete(){c&&s.context.onOpenChangeComplete?.(!0)}}),(0,es.useHoverFloatingInteraction)(h,{enabled:!g,closeDelay:v});let m=s.useStateSetter("popupElement");return(0,D.useRenderElement)("div",e,{state:{open:c,side:a,align:l,instant:f,transitionStatus:p},ref:[t,s.context.popupRef,m],props:[y.FOCUSABLE_POPUP_PROPS,d,(0,ei.getDisabledMountTransitionStyles)(p),i],stateAttributesMapping:k.popupTransitionStateMapping})}),eu=r.forwardRef(function(e,t){let{render:r,className:n,style:o,...i}=e,s=u(),{arrowRef:a,side:l,align:c,arrowUncentered:f,arrowStyles:p}=Q(),d=s.useState("open"),h=s.useState("instantType");return(0,D.useRenderElement)("div",e,{state:{open:d,side:l,align:c,uncentered:f,instant:h},ref:[t,a],props:[{style:p,"aria-hidden":!0},i],stateAttributesMapping:k.popupStateMapping})}),el=function(e){let{delay:n,closeDelay:o,timeout:i=400}=e,s=r.useMemo(()=>({open:n,close:o}),[n,o]);return(0,t.jsx)(N.Provider,{value:n,children:(0,t.jsx)(F,{delay:s,timeoutMs:i,children:e.children})})};var ec=e.i(818390);let ef=r.forwardRef(function(e,t){let{render:r,className:n,style:o,children:i,...s}=e,a=u(),l=Q(),c=a.useState("instantType"),{children:f,state:p}=(0,ec.usePopupViewport)({store:a,side:l.side,children:i}),d={activationDirection:p.activationDirection,transitioning:p.transitioning,instant:c};return(0,D.useRenderElement)("div",e,{state:d,ref:t,props:[s,{children:f}],stateAttributesMapping:ec.popupViewportStateMapping})});var ep=e.i(564170);class ed extends ep.BasePopupHandle{constructor(){super(function(){let e=new x.PopupTriggerMap;return Object.assign(new E.NullStore(Object.freeze(P(void 0,e)),Object.freeze(R(e)),C),{setOpen:o.NOOP,cancelPendingOpen:o.NOOP})}(),"Tooltip")}open(e){this.openByTrigger(e)}close(){this.closePopup()}get isOpen(){return this.attachedStore?.select("open")??!1}}function eh(){return new ed}var eg=e.i(599643),eg=eg,ev=e.i(225913),ey=e.i(296548);let em=eg.Provider,eb=eg.Root,ew=eg.Trigger,eE=({className:e,arrowBgClassName:r,ref:n,...o})=>(0,t.jsxs)(eg.Arrow,{ref:n,className:(0,ey.cn)("data-[side=top]:-bottom-1 data-[side=bottom]:-top-1 data-[side=bottom]:rotate-180 data-[side=left]:-right-[9px] data-[side=left]:-rotate-90 data-[side=right]:-left-[9px] data-[side=right]:rotate-90",e),...o,children:[(0,t.jsx)("div",{className:(0,ey.cn)("top-0 left-0 right-0 w-full h-px bg-white dark:bg-background-dark absolute z-10",r)}),(0,t.jsx)("svg",{width:"16",height:"6",viewBox:"0 0 16 6",fill:"none","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",className:"stroke-[1px] text-white dark:text-background-dark filter stroke-gray-400/20 dark:stroke-gray-600/30",children:(0,t.jsx)("path",{d:"M15.0078 -0.5C15.4952 -0.0122439 15.0229 0.490129 15.0049 0.5C14.9992 0.500053 14.9231 0.499973 14.7764 0.5C13.1909 0.500305 11.5933 1.41218 10.3467 2.39355C9.73304 2.87665 9.22446 3.36099 8.86914 3.72461C8.69187 3.90602 8.55326 4.05671 8.45996 4.16113C8.41333 4.21333 8.37773 4.25423 8.35449 4.28125C8.34291 4.29472 8.33456 4.30506 8.3291 4.31152C8.3264 4.31472 8.3244 4.31697 8.32324 4.31836L8.32227 4.31934L7.94922 4.76855L7.5625 4.33105L7.56152 4.3291C7.56022 4.32764 7.55765 4.32557 7.55469 4.32227C7.54879 4.31568 7.53965 4.3055 7.52734 4.29199C7.50247 4.26468 7.46452 4.2234 7.41504 4.1709C7.31605 4.06586 7.1694 3.91458 6.9834 3.73242C6.61066 3.3674 6.08072 2.88124 5.45215 2.39648C4.17101 1.40851 2.57521 0.500515 1.09766 0.5H0.995117C0.978923 0.487615 0.506451 -0.00437714 0.984375 -0.499023C0.989411 -0.499154 0.995327 -0.499982 0.99707 -0.5H15.0078Z",fill:"currentColor"})})]}),eS=(0,ev.cva)("overflow-hidden bg-white dark:bg-background-dark border border-gray-400/20 dark:border-gray-600/30 animate-fade-in",{variants:{size:{sm:"px-2 py-1 rounded",md:"px-3 py-2 rounded-[10px]",lg:"px-4 py-3 rounded-xl"}}}),ex=({className:e,headline:r,size:n,children:o,showArrow:i=!0,arrowBgClassName:s,side:a,sideOffset:u=4,align:l,ref:c,...f})=>(n=r&&!n?"lg":n??"sm",(0,t.jsx)(eg.Portal,{children:(0,t.jsx)(eg.Positioner,{className:"z-50",side:a,sideOffset:u,align:l,collisionPadding:5,children:(0,t.jsxs)(eg.Popup,{ref:c,role:"tooltip",className:(0,ey.cn)(eS({size:n}),r&&"flex flex-col gap-1",e),...f,children:[i&&(0,t.jsx)(eE,{arrowBgClassName:s}),r&&(0,t.jsx)("div",{children:r}),o]})})}))},565410,e=>{"use strict";e.s(["ANALYTICS_EVENTS",()=>r,"DEPRECATED_ANALYTICS_EVENTS",()=>o,"PAGE_VIEW_EVENT",()=>t,"analyticsEventMapping",()=>s,"isAnalyticsEvent",()=>n,"isDeprecatedAnalyticsEvent",()=>i]);let t="docs.content.view",r=[t,"docs.expandable.open","docs.expandable.close","docs.accordion.open","docs.accordion.close","docs.navitem.click","docs.navitem.cta_click","docs.version.change","docs.search.open","docs.search.query","docs.search.close","docs.api_playground.request","docs.search.result_click","docs.code_block.copy","docs.code_block.ask_ai","docs.feedback.thumbs_up","docs.feedback.thumbs_down","docs.footer.powered_by_mintlify_click","docs.assistant.enter","docs.assistant.completed","docs.assistant.shared","docs.assistant.source_click","docs.assistant.web_search_click","docs.assistant.thumbs_up","docs.assistant.thumbs_down","docs.assistant.suggestion_click","docs.assistant.question_option_click","docs.assistant.starter_question_clicked","docs.assistant.errored","docs.assistant.maximize_click","docs.assistant.minimize_click","docs.assistant.copy_response","docs.assistant.ask_ai_on_text_selection","docs.assistant.spam_detected","docs.assistant.attachment_upload","docs.assistant.attachment_rejected","docs.assistant.attachment_limit_exceeded","docs.assistant.contact_form_shown","docs.assistant.contact_support_click","docs.context_menu.copy_page","docs.context_menu.copy_mcp_link","docs.context_menu.ai_provider_click","docs.context_menu.install_mcp_server","docs.context_menu.copy_add_mcp_command","docs.context_menu.download_api_spec","docs.autopilot.suggestion.created","docs.autopilot.suggestion.no_suggestion","mcp.tool_call.search","docs.content.md.view","docs.banner.atlas_signup_click","docs.banner.atlas_claim_click","docs.banner.atlas_share_click","docs.atlas_content.view","docs.search.comparison","preview_widget.file_list.viewed","preview_widget.file.opened","preview_widget.file.editor_opened"];function n(e){return r.includes(e)}let o=["expandable_open","expandable_close","accordion_open","accordion_close","header_nav_item_click","cta_click","scroll_to_bottom","search_close","api_playground_call","search_result_click","chat_enter","chat_followup","chat_completed","code_block_copy","chat_shared","thumb_vote","powered_by_mintlify_click","ai_chat_citation_click","ai_chat_feedback_positive_click","ai_chat_feedback_negative_click","ask_ai_code_block","assistant.spam_detected"];function i(e){return o.includes(e)}let s={"docs.expandable.open":"expandable_open","docs.expandable.close":"expandable_close","docs.accordion.open":"accordion_open","docs.accordion.close":"accordion_close","docs.navitem.click":"header_nav_item_click","docs.navitem.cta_click":"cta_click","docs.search.close":"search_close","docs.api_playground.request":"api_playground_call","docs.search.result_click":"search_result_click","docs.code_block.copy":"code_block_copy","docs.code_block.ask_ai":"ask_ai_code_block","docs.footer.powered_by_mintlify_click":"powered_by_mintlify_click","docs.assistant.enter":"chat_enter","docs.assistant.completed":"chat_completed","docs.assistant.shared":"chat_shared","docs.assistant.source_click":"ai_chat_citation_click","docs.assistant.thumbs_up":"ai_chat_feedback_positive_click","docs.assistant.thumbs_down":"ai_chat_feedback_negative_click","docs.assistant.spam_detected":"assistant.spam_detected"}},521518,e=>{"use strict";e.s(["getHighlightedSnippet",()=>g,"getHighlightedText",()=>f,"stripDuplicatedTitleLine",()=>h]);let t=new Set(["i","me","my","myself","we","our","ours","ourselves","you","your","yours","yourself","yourselves","he","him","his","himself","she","her","hers","herself","it","its","itself","they","them","their","theirs","themselves","what","which","who","whom","this","that","these","those","am","is","are","was","were","be","been","being","have","has","had","having","do","does","did","doing","a","an","the","and","but","if","or","because","as","until","while","of","at","by","for","with","about","against","between","into","through","during","before","after","above","below","to","from","up","down","in","out","on","off","over","under","again","further","then","once","here","there","when","where","why","how","all","any","both","each","few","more","most","other","some","such","no","nor","not","only","own","same","so","than","too","very","s","t","can","will","just","don","should","now","aren't","it's","don't","get"]);function r(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}let n=/<\/?(?:mark|b)\b[^>]*>/gi;function o(e){return e.replace(n,"")}function i(e){return t.has(e.toLowerCase())}function s(e,t){let r=e.toLowerCase(),n=t.toLowerCase(),o=[],i=0;for(;i<=r.length-n.length;){let e=r.indexOf(n,i);if(-1===e)break;o.push(e),i=e+1}return o}function a(e,t){var r;let n=[],o=/\w/;for(let i of t){let t=i.trim();if(!t)continue;let a=!/\s/.test(t);for(let i of s(e,t)){let s=i+t.length;a&&0!==i&&o.test(null!=(r=e[i-1])?r:"")||n.push({start:i,end:s})}}n.sort((e,t)=>e.start-t.start||t.end-e.end);let i=[];for(let e of n){let t=i[i.length-1];t&&e.start<=t.end?t.end=Math.max(t.end,e.end):i.push({start:e.start,end:e.end})}return i}function u(e,t){let n="",o=0;for(let i of t){n+=r(e.slice(o,i.start));let t=e.slice(i.start,i.end);t&&(n+=`${r(t)}`),o=i.end}return n+r(e.slice(o))}let l=new Map;function c(e,t){let r=Date.now()+100,n=function(e){let t=l.get(e);if(t)return t;let r=function(e){let t=e.replace(/[?,.!\n"]/g,""),r=t.split(/\s+/).filter(Boolean).slice(0,20),n=function(e){let t=[],r=[];for(let n of e)if(n){if(i(n)){r.length>0&&(t.push(r),r=[]);continue}r.push(n)}return r.length>0&&t.push(r),t}(r),o=[];for(let e of n)e.length>1&&o.push(e.join(" "));let s=n.map(e=>t.indexOf(e.join(" "))).filter(e=>e>=0).sort((e,t)=>e-t);for(let e=0;e!i(e)).length>1&&r.split(/\s+/).length>1&&o.push(r)}if(s.length>0){let e=t.slice(s[s.length-1]).trim();e&&o.push(e)}for(let e=r.length-1;e>0;e--)for(let t=0;t<=r.length-e;t++){let n=r.slice(t,t+e).map(e=>e.trim()).join(" "),s=n.split(/\s+/).filter(e=>!i(e)).length;(e>2||s>=1)&&o.push(n)}let a=[e,t,...o].filter(e=>e.trim().length>0),u=new Set,l=[];for(let e of a)u.has(e)||(u.add(e),l.push(e));let c=r.length;return l.sort((e,t)=>{if(c>=20)return t.trim().length-e.trim().length;let r=e.split(/\s+/).filter(Boolean).length,n=t.split(/\s+/).filter(Boolean).length;return n!==r?n-r:t.trim().length-e.trim().length}),l}(e);if(l.set(e,r),l.size>64){let e=l.keys().next().value;void 0!==e&&l.delete(e)}return r}(t),o=[];for(let t of n){if(Date.now()>r)return[];let n=t.trim();!o.some(e=>e.trim()===n)&&s(e,t).length>0&&o.push(t)}return o}function f(e,t){let n=o(e);if(!n||!t)return r(n);let i=c(n,t);return 0===i.length?r(n):u(n,a(n,i))}function p(e,t,r){if(t>=e.length)return e.length;let n=Math.min(e.length,t+r),o=e.indexOf(" ",t);return -1!==o&&oo(e).replace(/\s+/g," ").trim();return n(e.slice(0,r))===n(t)?e.slice(r+1):e}function g(e,t,r){var n,i;let s=o(e),l=null!=(n=null==r?void 0:r.leadingContext)?n:24,f=null!=(i=null==r?void 0:r.maxLength)?i:240;if(!s||!t)return d(s,f);let h=c(s,t);if(0===h.length)return d(s,f);let g=a(s,h),v=g[0];if(!v)return d(s,f);let y=v.start<=l?0:v.start-l,m=Math.min(s.length,Math.max(v.end,y+f));y=function(e,t,r){if(t<=0)return 0;let n=Math.max(0,t-12),o=e.lastIndexOf(" ",t-1);return o>=n?o+1:t}(s,y,0),m=p(s,m,12);let b=s.slice(y,m),w=[];for(let e of g)e.end<=y||e.start>=m||w.push({start:Math.max(0,e.start-y),end:Math.min(b.length,e.end-y)});let E=u(b,w),S=y>0?`… `:"",x=m{var n=e.r(377684),o=e.r(877289);t.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==n(e)}},832102,(e,t,r)=>{t.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r{var n=e.r(630353),o=e.r(832102),i=e.r(45350),s=e.r(361884),a=1/0,u=n?n.prototype:void 0,l=u?u.toString:void 0;t.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(s(t))return l?l.call(t):"";var r=t+"";return"0"==r&&1/t==-a?"-0":r}},702922,(e,t,r)=>{var n=e.r(372537);t.exports=function(e){return null==e?"":n(e)}},467034,(e,t,r)=>{!function(){var e={675:function(e,t){"use strict";t.byteLength=function(e){var t=u(e),r=t[0],n=t[1];return(r+n)*3/4-n},t.toByteArray=function(e){var t,r,i=u(e),s=i[0],a=i[1],l=new o((s+a)*3/4-a),c=0,f=a>0?s-4:s;for(r=0;r>16&255,l[c++]=t>>8&255,l[c++]=255&t;return 2===a&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,l[c++]=255&t),1===a&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,l[c++]=t>>8&255,l[c++]=255&t),l},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,i=[],s=0,a=n-o;s>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return i.join("")}(e,s,s+16383>a?a:s+16383));return 1===o?i.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===o&&i.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),i.join("")};for(var r=[],n=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,a=i.length;s0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}n[45]=62,n[95]=63},72:function(e,t,r){"use strict";var n=r(675),o=r(783),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function s(e){if(e>0x7fffffff)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,a.prototype),t}function a(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return c(e)}return u(e,t,r)}function u(e,t,r){if("string"==typeof e){var n=e,o=t;if(("string"!=typeof o||""===o)&&(o="utf8"),!a.isEncoding(o))throw TypeError("Unknown encoding: "+o);var i=0|d(n,o),u=s(i),l=u.write(n,o);return l!==i&&(u=u.slice(0,l)),u}if(ArrayBuffer.isView(e))return f(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(_(e,ArrayBuffer)||e&&_(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(_(e,SharedArrayBuffer)||e&&_(e.buffer,SharedArrayBuffer)))return function(e,t,r){var n;if(t<0||e.byteLength=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function d(e,t){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||_(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var o=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return T(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return R(e).length;default:if(o)return n?-1:T(e).length;t=(""+t).toLowerCase(),o=!0}}function h(e,t,r){var o,i,s,a=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var o="",i=t;i0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),(i=r*=1)!=i&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length)if(o)return -1;else r=e.length-1;else if(r<0)if(!o)return -1;else r=0;if("string"==typeof t&&(t=a.from(t,n)),a.isBuffer(t))return 0===t.length?-1:y(e,t,r,n,o);if("number"==typeof t){if(t&=255,"function"==typeof Uint8Array.prototype.indexOf)if(o)return Uint8Array.prototype.indexOf.call(e,t,r);else return Uint8Array.prototype.lastIndexOf.call(e,t,r);return y(e,[t],r,n,o)}throw TypeError("val must be string, number or Buffer")}function y(e,t,r,n,o){var i,s=1,a=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;s=2,a/=2,u/=2,r/=2}function l(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(o){var c=-1;for(i=r;ia&&(r=a-u),i=r;i>=0;i--){for(var f=!0,p=0;pr&&(e+=" ... "),""},i&&(a.prototype[i]=a.prototype.inspect),a.prototype.compare=function(e,t,r,n,o){if(_(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),t<0||r>e.length||n<0||o>this.length)throw RangeError("out of range index");if(n>=o&&t>=r)return 0;if(n>=o)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,o>>>=0,this===e)return 0;for(var i=o-n,s=r-t,u=Math.min(i,s),l=this.slice(n,o),c=e.slice(t,r),f=0;f239?4:l>223?3:l>191?2:1;if(o+f<=r)switch(f){case 1:l<128&&(c=l);break;case 2:(192&(i=e[o+1]))==128&&(u=(31&l)<<6|63&i)>127&&(c=u);break;case 3:i=e[o+1],s=e[o+2],(192&i)==128&&(192&s)==128&&(u=(15&l)<<12|(63&i)<<6|63&s)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:i=e[o+1],s=e[o+2],a=e[o+3],(192&i)==128&&(192&s)==128&&(192&a)==128&&(u=(15&l)<<18|(63&i)<<12|(63&s)<<6|63&a)>65535&&u<1114112&&(c=u)}null===c?(c=65533,f=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),o+=f}var p=n,d=p.length;if(d<=4096)return String.fromCharCode.apply(String,p);for(var h="",g=0;gr)throw RangeError("Trying to access beyond buffer length")}function w(e,t,r,n,o,i){if(!a.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>o||te.length)throw RangeError("Index out of range")}function E(e,t,r,n,o,i){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function S(e,t,r,n,i){return t*=1,r>>>=0,i||E(e,t,r,4,34028234663852886e22,-34028234663852886e22),o.write(e,t,r,n,23,4),r+4}function x(e,t,r,n,i){return t*=1,r>>>=0,i||E(e,t,r,8,17976931348623157e292,-17976931348623157e292),o.write(e,t,r,n,52,8),r+8}a.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else if(isFinite(t))t>>>=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 o,i,s,a,u,l,c,f,p=this.length-t;if((void 0===r||r>p)&&(r=p),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var d=!1;;)switch(n){case"hex":return function(e,t,r,n){r=Number(r)||0;var o=e.length-r;n?(n=Number(n))>o&&(n=o):n=o;var i=t.length;n>i/2&&(n=i/2);for(var s=0;s>8,o.push(r%256),o.push(n);return o}(e,this.length-c),this,c,f);default:if(d)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),d=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},a.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t>>=0,t>>>=0,r||b(e,t,this.length);for(var n=this[e],o=1,i=0;++i>>=0,t>>>=0,r||b(e,t,this.length);for(var n=this[e+--t],o=1;t>0&&(o*=256);)n+=this[e+--t]*o;return n},a.prototype.readUInt8=function(e,t){return e>>>=0,t||b(e,1,this.length),this[e]},a.prototype.readUInt16LE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUInt16BE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},a.prototype.readUInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var n=this[e],o=1,i=0;++i=(o*=128)&&(n-=Math.pow(2,8*t)),n},a.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var n=t,o=1,i=this[e+--n];n>0&&(o*=256);)i+=this[e+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},a.prototype.readInt8=function(e,t){return(e>>>=0,t||b(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},a.prototype.readInt16LE=function(e,t){e>>>=0,t||b(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?0xffff0000|r:r},a.prototype.readInt16BE=function(e,t){e>>>=0,t||b(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?0xffff0000|r:r},a.prototype.readInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readFloatLE=function(e,t){return e>>>=0,t||b(e,4,this.length),o.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return e>>>=0,t||b(e,4,this.length),o.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return e>>>=0,t||b(e,8,this.length),o.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return e>>>=0,t||b(e,8,this.length),o.read(this,e,!1,52,8)},a.prototype.writeUIntLE=function(e,t,r,n){if(e*=1,t>>>=0,r>>>=0,!n){var o=Math.pow(2,8*r)-1;w(this,e,t,r,o,0)}var i=1,s=0;for(this[t]=255&e;++s>>=0,r>>>=0,!n){var o=Math.pow(2,8*r)-1;w(this,e,t,r,o,0)}var i=r-1,s=1;for(this[t+i]=255&e;--i>=0&&(s*=256);)this[t+i]=e/s&255;return t+r},a.prototype.writeUInt8=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,1,255,0),this[t]=255&e,t+1},a.prototype.writeUInt16LE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeUInt16BE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeUInt32LE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,4,0xffffffff,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},a.prototype.writeUInt32BE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,4,0xffffffff,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeIntLE=function(e,t,r,n){if(e*=1,t>>>=0,!n){var o=Math.pow(2,8*r-1);w(this,e,t,r,o-1,-o)}var i=0,s=1,a=0;for(this[t]=255&e;++i>>=0,!n){var o=Math.pow(2,8*r-1);w(this,e,t,r,o-1,-o)}var i=r-1,s=1,a=0;for(this[t+i]=255&e;--i>=0&&(s*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/s|0)-a&255;return t+r},a.prototype.writeInt8=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},a.prototype.writeInt16LE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeInt16BE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeInt32LE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,4,0x7fffffff,-0x80000000),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},a.prototype.writeInt32BE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeFloatLE=function(e,t,r){return S(this,e,t,!0,r)},a.prototype.writeFloatBE=function(e,t,r){return S(this,e,t,!1,r)},a.prototype.writeDoubleLE=function(e,t,r){return x(this,e,t,!0,r)},a.prototype.writeDoubleBE=function(e,t,r){return x(this,e,t,!1,r)},a.prototype.copy=function(e,t,r,n){if(!a.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t=0;--i)e[i+t]=this[i+r];else Uint8Array.prototype.set.call(e,this.subarray(r,n),t);return o},a.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=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&&!a.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===e.length){var o,i=e.charCodeAt(0);("utf8"===n&&i<128||"latin1"===n)&&(e=i)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o55295&&r<57344){if(!o){if(r>56319||s+1===n){(t-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),o=r;continue}r=(o-55296<<10|r-56320)+65536}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return i}function P(e){for(var t=[],r=0;r=t.length)&&!(o>=e.length);++o)t[o+r]=e[o];return o}function _(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var I=function(){for(var e="0123456789abcdef",t=Array(256),r=0;r<16;++r)for(var n=16*r,o=0;o<16;++o)t[n+o]=e[r]+e[o];return t}()},783:function(e,t){t.read=function(e,t,r,n,o){var i,s,a=8*o-n-1,u=(1<>1,c=-7,f=r?o-1:0,p=r?-1:1,d=e[t+f];for(f+=p,i=d&(1<<-c)-1,d>>=-c,c+=a;c>0;i=256*i+e[t+f],f+=p,c-=8);for(s=i&(1<<-c)-1,i>>=-c,c+=n;c>0;s=256*s+e[t+f],f+=p,c-=8);if(0===i)i=1-l;else{if(i===u)return s?NaN:1/0*(d?-1:1);s+=Math.pow(2,n),i-=l}return(d?-1:1)*s*Math.pow(2,i-n)},t.write=function(e,t,r,n,o,i){var s,a,u,l=8*i-o-1,c=(1<>1,p=5960464477539062e-23*(23===o),d=n?0:i-1,h=n?1:-1,g=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(a=+!!isNaN(t),s=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),s+f>=1?t+=p/u:t+=p*Math.pow(2,1-f),t*u>=2&&(s++,u/=2),s+f>=c?(a=0,s=c):s+f>=1?(a=(t*u-1)*Math.pow(2,o),s+=f):(a=t*Math.pow(2,f-1)*Math.pow(2,o),s=0));o>=8;e[r+d]=255&a,d+=h,a/=256,o-=8);for(s=s<0;e[r+d]=255&s,d+=h,s/=256,l-=8);e[r+d-h]|=128*g}}},r={};function n(t){var o=r[t];if(void 0!==o)return o.exports;var i=r[t]={exports:{}},s=!0;try{e[t](i,i.exports,n),s=!1}finally{s&&delete r[t]}return i.exports}n.ab="/ROOT/node_modules/next/dist/compiled/buffer/",t.exports=n(72)}()},412117,e=>{"use strict";e.s(["default",()=>t]);let t={}},329801,(e,t,r)=>{"use strict";r.__esModule=!0,r.OpenAPIV2=r.OpenAPIV3=void 0,function(e){var t;(t=e.HttpMethods||(e.HttpMethods={})).GET="get",t.PUT="put",t.POST="post",t.DELETE="delete",t.OPTIONS="options",t.HEAD="head",t.PATCH="patch",t.TRACE="trace"}(r.OpenAPIV3||(r.OpenAPIV3={})),function(e){var t;(t=e.HttpMethods||(e.HttpMethods={})).GET="get",t.PUT="put",t.POST="post",t.DELETE="delete",t.OPTIONS="options",t.HEAD="head",t.PATCH="patch"}(r.OpenAPIV2||(r.OpenAPIV2={}))},289264,e=>{"use strict";e.s(["parseOpenApiSchemaString",()=>o,"parseOpenApiString",()=>n,"potentiallyParseOpenApiString",()=>r]);let t=Object.values(e.i(329801).OpenAPIV3.HttpMethods).concat("webhook"),r=e=>{let r,n,o,i=e.trim().split(/\s+/);if(!(i.length>3)){if(i[0]&&i[1]&&i[2])[r,n,o]=i;else{if(!i[0]||!i[1])return;[n,o]=i}if(!n||(n=n.toLowerCase(),t.includes(n)))return{method:n,endpoint:o,filename:r}}},n=e=>{let r,n,o,i=e.trim().split(/\s+/);if(i.length>3)throw Error("improperly formatted openapi string");if(i[0]&&i[1]&&i[2])[r,n,o]=i;else if(i[0]&&i[1])[n,o]=i;else throw Error("improperly formatted openapi string");if(n=n.toLowerCase(),!t.includes(n))throw Error("invalid http method");return{method:n,endpoint:o,filename:r}},o=e=>{let t,r,n=e.trim().split(/\s+/);if(n.length>2)throw Error("improperly formatted openapi schema string");if(n[0]&&n[1])[t,r]=n;else if(n[0])[r]=n;else throw Error("improperly formatted openapi schema string");return{name:r,filename:t}}}]);