PageSourceSearch

https://docs.reworkd.ai/mintlify-assets/_next/static/chunks/8fe1f6…?dpl=dpl_F5iYP9VsPnYHN59cgVxYqCgNrpxV

js reworkd.ai collected 2026-10-02 14:48:14 UTC 37,497 bytes, 55 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,382229,t=>{"use strict";t.s(["AssistantLayoutScript",()=>s]);var e=t.i(843476),n=t.i(859465),i=t.i(271645),a=t.i(915476);function s({hasChatPermissions:t}){let s=(0,i.useContext)(n.AssistantUiContext);return(0,e.jsx)("script",{dangerouslySetInnerHTML:{__html:(0,a.getAssistantScript)(t,"assistant-ui-v2"===s)}})}},836770,t=>{"use strict";t.s(["ManagedConsentContext",()=>n,"useManagedConsent",()=>i]);var e=t.i(271645);let n=(0,e.createContext)({managed:!1}),i=()=>(0,e.useContext)(n)},540345,t=>{"use strict";t.s(["ConsentProvider",()=>c],540345);var e=t.i(843476),n=t.i(91557),i=t.i(770703),a=t.i(271645),s=t.i(836770);function r({transcend:t,children:n}){let i=t.analyticsPurpose??"Analytics",[r,o]=(0,a.useState)(),c=(0,a.useRef)(void 0),u=(0,a.useCallback)(t=>{let e=!0===c.current;c.current=t,o(t),e&&!t&&window.location.reload()},[]);(0,a.useEffect)(()=>{let t,e=!0,n=()=>{t&&u(t.isConsented(new Set([i])))};return window.airgap?.ready(i=>{e&&(t=i,i.addEventListener("consent-resolution",n),i.addEventListener("consent-change",n),n())}),()=>{e=!1,t?.removeEventListener("consent-resolution",n),t?.removeEventListener("consent-change",n)}},[i,u]);let l=(0,a.useMemo)(()=>({managed:!0,measurementConsent:r}),[r]);return(0,e.jsx)(s.ManagedConsentContext.Provider,{value:l,children:n})}let o=(0,i.default)(()=>t.A(353183).then(t=>t.ConsentManager),{loadableGenerated:{modules:[180689]},ssr:!1}),c=({privacy:t,children:i})=>{let{docsConfig:c}=(0,a.useContext)(n.DocsConfigContext),u=t?.consentBanner,l=c?.integrations?.transcend,d=c?.integrations?.onetrust,h=!l&&!d&&!!u?.enabled,p=u?.categories,[g,f]=(0,a.useState)(!1),v=(0,a.useMemo)(()=>({managed:h,measurementConsent:g}),[h,g]);return l?(0,e.jsx)(r,{transcend:l,children:i}):!h||d?(0,e.jsx)(e.Fragment,{children:i}):(0,e.jsxs)(s.ManagedConsentContext.Provider,{value:v,children:[(0,e.jsx)(o,{categories:p,onMeasurementConsentChange:f}),i]})}},973254,t=>{"use strict";t.s(["LivePreviewFavicon",()=>i]);var e=t.i(590280),n=t.i(271645);function i(){let{isLivePreview:t,getDocsConfigOverrides:i,docsConfigVersion:a}=(0,n.useContext)(e.LivePreviewContext),s=t?i():void 0,r="string"==typeof s?.favicon?s.favicon:void 0;return(0,n.useEffect)(()=>{if(!r)return;let t=document.querySelectorAll('link[rel="icon"], link[rel="shortcut icon"]'),e=[];for(let n of t)n instanceof HTMLLinkElement&&(e.push({link:n,href:n.href}),n.href=r);return()=>{for(let{link:t,href:n}of e)t.href=n}},[r,a]),null}},864506,t=>{"use strict";t.s(["NavbarTransitionScript",()=>s]);var e=t.i(843476),n=t.i(590280),i=t.i(271645);let a=(function(t){let e,n=(e="navbar-transition","maple"===t&&(e+="-maple"),e);function i(){let t=!1;t=window.scrollY>50;let e=document.getElementById(n);e&&e.hasAttribute("data-is-opaque")&&e.setAttribute("data-is-opaque",`${!!t}`)}let a=function(){let t=document.createElement("style"),e=`#${n}`;return t.appendChild(document.createTextNode(`${e},${e} *,${e} *::before,${e} *::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}`)),document.head.appendChild(t),function(){window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}}();function s(){window.removeEventListener("scroll",i),document.removeEventListener("DOMContentLoaded",i),i(),a()}window.addEventListener("scroll",i,{passive:!0}),document.addEventListener("DOMContentLoaded",i),("requestAnimationFrame"in globalThis?requestAnimationFrame:setTimeout)(i),"complete"===document.readyState?s():window.addEventListener("load",s,{once:!0})}).toString();function s({theme:t}){let{isLivePreview:s,getDocsConfigOverrides:r}=(0,i.useContext)(n.LivePreviewContext),o=r(),c=o?.theme,u=s&&c?c:t,l=(0,i.useMemo)(()=>`(${a})("${u}")`,[u]);return(0,e.jsx)("script",{id:"_mintlify-navbar-transition-script",dangerouslySetInnerHTML:{__html:l},suppressHydrationWarning:!0})}},529058,t=>{"use strict";let e;t.s(["LocalStorageAndAnalyticsProviders",()=>ts],529058);var n=t.i(843476),i=t.i(447939),a=t.i(3303);function s({adobe:t}){return t?.launchUrl?(0,n.jsx)(a.default,{strategy:"afterInteractive",src:t.launchUrl,id:"adobe-launch",async:!0}):null}function r(t){return JSON.stringify(t).replace(/</g,"\\u003c").replace(/>/g,"\\u003e").replace(/\//g,"\\u002f")}function o(t){return encodeURIComponent(t)}function c({clarity:t}){if(!t?.projectId)return null;let e=r(t.projectId);return(0,n.jsx)(a.default,{strategy:"afterInteractive",id:"clarity-init",type:"text/javascript",dangerouslySetInnerHTML:{__html:`
2          (function(c,l,a,r,i){
3            c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};
4            var t=l.createElement(r);t.async=1;t.src="https://www.clarity.ms/tag/"+i;
5            var y=l.getElementsByTagName(r)[0];if(y&&y.parentNode){y.parentNode.insertBefore(t,y);}else{l.head.appendChild(t);}
6          })(window, document, "clarity", "script", ${e});
7        `}})}function u({clearbit:t}){return t?.publicApiKey?(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(a.default,{strategy:"afterInteractive",src:`https://tag.clearbitscripts.com/v1/${t.publicApiKey}/tags.js`})}):null}function l({customScripts:t}){let e=t?.filter(t=>"beforeInteractive"!==t.strategy);return e?.length?(0,n.jsx)(n.Fragment,{children:e.map((t,e)=>(0,n.jsx)(a.default,{src:t.src,strategy:t.strategy??"afterInteractive"},`${t.src}-${e}`))}):null}function d({ga4:t}){if(!t?.measurementId)return null;let e=r(t.measurementId),i=o(t.measurementId);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a.default,{strategy:"afterInteractive",src:`https://www.googletagmanager.com/gtag/js?i
7d=${i}`}),(0,n.jsx)(a.default,{strategy:"afterInteractive",id:"ga4",dangerouslySetInnerHTML:{__html:`
8            window.dataLayer = window.dataLayer || [];
9            function gtag(){dataLayer.push(arguments);}
10            gtag('js', new Date());
11            gtag('config', ${e}, {
12              page_path: window.location.pathname,
13            });
14          `}})]})}function h({gtm:t}){if(!t?.tagId)return null;let e=r(t.tagId),i=o(t.tagId);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a.default,{id:"gtm",strategy:"afterInteractive",dangerouslySetInnerHTML:{__html:`
15          (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
16new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
17j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
18'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
19})(window,document,'script','dataLayer',${e});`}}),(0,n.jsx)("noscript",{dangerouslySetInnerHTML:{__html:`<iframe src="https://www.googletagmanager.com/ns.html?id=${i}" height="0" width="0" style="display:none;visibility:hidden"></iframe>`}})]})}function p({heap:t}){if(!t?.appId)return null;let e=r(t.appId);return(0,n.jsx)(a.default,{id:"heap",type:"text/javascript",dangerouslySetInnerHTML:{__html:`
20          window.heap=window.heap||[],heap.load=function(e,t){window.heap.appid=e,window.heap.config=t=t||{};var r=document.createElement("script");r.type="text/javascript",r.async=!0,r.src="https://cdn.heapanalytics.com/js/heap-"+e+".js";var a=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(r,a);for(var n=function(e){return function(){heap.push([e].concat(Array.prototype.slice.call(arguments,0)))}},p=["addEventProperties","addUserProperties","clearEventProperties","identify","resetIdentity","removeEventProperty","setEventProperties","track","unsetEventProperty"],o=0;o<p.length;o++)heap[p[o]]=n(p[o])};
21          heap.load(${e});
22          `}})}function g({koala:t}){if(!t?.publicApiKey)return null;let e=o(t.publicApiKey);return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(a.default,{strategy:"afterInteractive",id:"koala",dangerouslySetInnerHTML:{__html:`
23          !(function (t) {
24            if (window.ko) return;
25            (window.ko = []),
26              [
27                "identify",
28                "track",
29                "removeListeners",
30                "open",
31                "on",
32                "off",
33                "qualify",
34                "ready",
35              ].forEach(function (t) {
36                ko[t] = function () {
37                  var n = [].slice.call(arguments);
38                  return n.unshift(t), ko.push(n), ko;
39                };
40              });
41            var n = document.createElement("script");
42            (n.async = !0),
43              n.setAttribute(
44                "src",
45                "https://cdn.getkoala.com/v1/${e}/sdk.js"
46              ),
47              (document.body || document.head).appendChild(n);
48          })();
49          `}})})}function f({plausible:t}){return t?.domain?(0,n.jsx)(a.default,{strategy:"afterInteractive","data-domain":t.domain,src:`https://${t.server??"plausible.io"}/js/script.js`}):null}var v=t.i(876469),m=t.i(91557),y=t.i(271645);function w({segment:t}){if(!t?.key)return null;let e=r(t.key),i=t.cdnUrl?r(t.cdnUrl.replace(/\/$/,"")):null;return(0,n.jsx)(a.default,{strategy:"afterInteractive",id:"segment",dangerouslySetInnerHTML:{__html:`
50  !function(){var i="analytics",analytics=window[i]=window[i]||[];if(!analytics.initialize)if(analytics.invoked)window.console&&console.error&&console.error("Segment snippet included twice.");else{analytics.invoked=!0;analytics.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","screen","once","off","on","addSourceMiddleware","addIntegrationMiddleware","setAnonymousId","addDestinationMiddleware","register"];analytics.factory=function(e){return function(){if(window[i].initialized)return window[i][e].apply(window[i],arguments);var n=Array.prototype.slice.call(arguments);if(["track","screen","alias","group","page","identify"].indexOf(e)>-1){n.push({__t:"bpc",c:location.href,p:location.pathname,u:location.href,s:location.search,t:document.title,r:document.referrer})}n.unshift(e);analytics.push(n);return analytics}};for(var n=0;n<analytics.methods.length;n++){var key=analytics.methods[n];analytics[key]=analytics.factory(key)}analytics.load=function(key,n){var t=document.createElement("script");t.type="text/javascript";t.async=!0;t.setAttribute("data-global-segment-analytics-key",i);t.src=${i||'"https://cdn.segment.com"'}+"/analytics.js/v1/" + key + "/analytics.min.js";var r=document.getElementsByTagName("script")[0];r.parentNode.insertBefore(t,r);analytics._loadOptions=n};
50analytics._writeKey=${e};;analytics.SNIPPET_VERSION="5.2.0";
51  analytics.load(${e}${i?`,{cdnURL:${i}}`:""});
52  analytics.page();
53  }}();`}})}let I=({analyticsEnabled:t})=>{let{docsConfig:e}=(0,y.useContext)(m.DocsConfigContext);if(!v.IS_PROD)return null;let i=e?.integrations?.customScripts;return(0,n.jsxs)(n.Fragment,{children:[t&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s,{adobe:e?.integrations?.adobe}),(0,n.jsx)(c,{clarity:e?.integrations?.clarity}),(0,n.jsx)(u,{clearbit:e?.integrations?.clearbit}),(0,n.jsx)(d,{ga4:e?.integrations?.ga4}),(0,n.jsx)(h,{gtm:e?.integrations?.gtm}),(0,n.jsx)(p,{heap:e?.integrations?.heap}),(0,n.jsx)(g,{koala:e?.integrations?.koala}),(0,n.jsx)(f,{plausible:e?.integrations?.plausible}),(0,n.jsx)(w,{segment:e?.integrations?.segment})]}),(0,n.jsx)(l,{customScripts:i})]})};function E({onetrust:t}){return v.IS_PROD&&t?.domainScript?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a.default,{id:"onetrust",src:t.scriptSource||"https://cdn.cookielaw.org/scripttemplates/otSDKStub.js","data-domain-script":t.domainScript,strategy:"afterInteractive",charSet:"UTF-8"}),(0,n.jsx)(a.default,{id:"onetrust-wrapper",strategy:"afterInteractive",dangerouslySetInnerHTML:{__html:`
54            window.OptanonWrapper = window.OptanonWrapper || function OptanonWrapper() {};
55          `}})]}):null}class S{}var x=t.i(206558),_=t.i(565410);class k extends S{initialized=!1;eventQueue=[];posthog=null;init(e,n=!1){e.apiKey&&t.A(644985).then(t=>{t.default.init(e.apiKey,{api_host:e.apiHost||"https://ph.mintlify.com",ui_host:"https://us.posthog.com",capture_pageview:!1,disable_session_recording:!n,...e.apiKey===x.NEXT_PUBLIC.POSTHOG_KEY&&{cross_subdomain_cookie:!0},loaded:t=>{v.IS_PROD||t.opt_out_capturing(),this.posthog=t,this.initialized=!0,this.eventQueue.forEach(({eventName:t,eventProperties:e})=>{this.captureEvent(t,e)}),this.eventQueue=[]}})}).catch(t=>{console.error("Failed to load PostHog",t)})}captureEvent(t,e={}){if(this.initialized)return void this.posthog?.capture(t,{...e});this.eventQueue.push({eventName:t,eventProperties:{...e}})}createEventListener(t){return async e=>{this.captureEvent(t,e)}}onRouteChange(t,e){this.captureEvent("$pageview"),this.captureEvent(`$${_.PAGE_VIEW_EVENT}`)}}class C{constructor(t=10,e=5e3){this.queue=[],this.isProcessing=!1,this.batchSize=t,this.flushInterval=e}enqueue(t){this.queue.push({event:t,timestamp:Date.now(),retryCount:0})}shouldFlush(){return this.queue.length>=this.batchSize}getBatch(){return this.queue.splice(0,this.batchSize)}requeueEvents(t){let e=t.map(t=>Object.assign(Object.assign({},t),{retryCount:t.retryCount+1}));this.queue.unshift(...e)}startPeriodicFlush(t){this.flushTimer&&clearInterval(this.flushTimer),this.flushTimer=setInterval(()=>{this.queue.length>0&&!this.isProcessing&&(this.isProcessing=!0,t().finally(()=>{this.isProcessing=!1}))},this.flushInterval)}size(){return this.queue.length}}class j{constructor(t){this.storage=t,this.identity=this.loadOrCreateIdentity()}loadOrCreateIdentity(){let t=this.storage.get(j.KEYS.ANONYMOUS_ID),e=this.storage.get(j.KEYS.USER_ID),n=this.storage.get(j.KEYS.SESSION_ID,"session"),i=t;i||(i=this.generateId("anon"),this.storage.set(j.KEYS.ANONYMOUS_ID,i));let a=n;return a||(a=this.generateId("session"),this.storage.set(j.KEYS.SESSION_ID,a,"session")),{anonymousId:i,userId:e||void 0,sessionId:a}}generateId(t){return`${t}_${Date.now()}_${Math.random().toString(36).substring(2,9)}`}identify(t){t&&"string"==typeof t&&(this.identity.userId=t,this.storage.set(j.KEYS.USER_ID,t))}reset(){let t=this.generateId("anon"),e=this.generateId("session");this.identity={anonymousId:t,userId:void 0,sessionId:e},this.storage.set(j.KEYS.ANONYMOUS_ID,t),this.storage.remove(j.KEYS.USER_ID),this.storage.set(j.KEYS.SESSION_ID,e,"session")}getIdentity(){return Object.assign({},this.identity)}getAnonymousId(){return this.identity.anonymousId}getUserId(){return this.identity.userId}getSessionId(){return this.identity.sessionId}}j.KEYS={ANONYMOUS_ID:"mintlify_anonymous_id",USER_ID:"mintlify_user_id",SESSION_ID:"mintlify_session_id"};let b={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)},A=new Uint8Array(16),T=[];for(let t=0;t<256;++t)T.push((t+256).toString(16).slice(1));let L=function(t,n,i){if(b.randomUUID&&!n&&!t)return b.randomUUID();var a=t,s=i;let r=(a=a||{}).random??a.rng?.()??function(){if(!e){if("undefined"==typeof crypto||!crypto.getRandomValues)throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");e=crypto.getRandomValues.bind(crypto)}return e(A)}();if(r.length<16)throw Error("Random bytes length must be >= 16");
55if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,n){if((s=s||0)<0||s+16>n.length)throw RangeError(`UUID byte range ${s}:${s+15} is out of buffer bounds`);for(let t=0;t<16;++t)n[s+t]=r[t];return n}return function(t,e=0){return(T[t[e+0]]+T[t[e+1]]+T[t[e+2]]+T[t[e+3]]+"-"+T[t[e+4]]+T[t[e+5]]+"-"+T[t[e+6]]+T[t[e+7]]+"-"+T[t[e+8]]+T[t[e+9]]+"-"+T[t[e+10]]+T[t[e+11]]+T[t[e+12]]+T[t[e+13]]+T[t[e+14]]+T[t[e+15]]).toLowerCase()}(r)};class P{buildEvent(t,e,n,i){let a=Object.assign({},e),s={event_id:L(),subdomain:i,anon_id:n.anonymousId,session_id:n.sessionId,event:t,created_at:new Date().toISOString()};n.userId&&(s.user_id=n.userId);{s.path=window.location.pathname,s.referrer=document.referrer;let t=window.location.search;t&&(a.$current_url_search=t);let e=window.location.hash;e&&(a.$current_url_hash=e),a.$current_url=window.location.href,a.$viewport_height=window.innerHeight.toString(),a.$viewport_width=window.innerWidth.toString()}if("undefined"!=typeof navigator&&(s.user_agent=navigator.userAgent,a.$browser_language=navigator.language,"connection"in navigator)){let t=navigator.connection;t&&(a.$network_connection_type=t.effectiveType)}"undefined"!=typeof screen&&(a.$screen_height=screen.height.toString(),a.$screen_width=screen.width.toString());try{a.$timezone=Intl.DateTimeFormat().resolvedOptions().timeZone}catch(t){}return Object.keys(a).length>0&&(s.properties=a),s}buildBatchPayload(t){return JSON.stringify({events:t,timestamp:Date.now()})}}class O{getStorage(t){try{return"session"===t?sessionStorage:localStorage}catch(t){return null}}get(t,e="local"){try{let n=this.getStorage(e);return(null==n?void 0:n.getItem(t))||null}catch(t){return null}}set(t,e,n="local"){try{let i=this.getStorage(n);null==i||i.setItem(t,e)}catch(t){console.warn(`Failed to set item in ${n}Storage`)}}remove(t,e="local"){try{let n=this.getStorage(e);null==n||n.removeItem(t)}catch(t){console.warn(`Failed to remove item from ${e}Storage`)}}}class U{constructor(){this.isUnloading=!1,this.setupPageLifecycleHandlers()}setupPageLifecycleHandlers(){let t=()=>{this.isUnloading=!0};window.addEventListener("beforeunload",t),window.addEventListener("pagehide",t),document.addEventListener("visibilitychange",()=>{"hidden"===document.visibilityState&&(this.isUnloading=!0)})}send(t,e){var n,i,a,s;return n=this,i=void 0,a=void 0,s=function*(){if(this.isUnloading&&"undefined"!=typeof navigator&&"sendBeacon"in navigator&&navigator.sendBeacon(t,e))return new Response("",{status:202});let n=yield fetch(t,{method:"POST",headers:{"Content-Type":"application/json"},body:e});if(!n.ok){let t=Error(`HTTP ${n.status}`);throw t.status=n.status,t}return n},new(a||(a=Promise))(function(t,e){function r(t){try{c(s.next(t))}catch(t){e(t)}}function o(t){try{c(s.throw(t))}catch(t){e(t)}}function c(e){var n;e.done?t(e.value):((n=e.value)instanceof a?n:new a(function(t){t(n)})).then(r,o)}c((s=s.apply(n,i||[])).next())})}}var $=function(t,e,n,i){return new(n||(n=Promise))(function(a,s){function r(t){try{c(i.next(t))}catch(t){s(t)}}function o(t){try{c(i.throw(t))}catch(t){s(t)}}function c(t){var e;t.done?a(t.value):((e=t.value)instanceof n?e:new n(function(t){t(e)})).then(r,o)}c((i=i.apply(t,e||[])).next())})};class D{constructor(t){this.config=Object.assign({batchSize:10,flushInterval:5e3,maxRetries:3},t),this.transportManager=new U,this.payloadBuilder=new P,this.storageManager=new O,this.identityManager=new j(this.storageManager),this.eventQueue=new C(this.config.batchSize,this.config.flushInterval),this.eventQueue.startPeriodicFlush(()=>this.flushEvents()),this.setupPageLifecycleHandlers()}trackEvent(t){return $(this,arguments,void 0,function*(t,e={}){let n=this.identityManager.getIdentity(),i=Object.entries(e).reduce((t,[e,n])=>
55(t[e]="string"==typeof n?n:JSON.stringify(n),t),{}),a=this.payloadBuilder.buildEvent(t,i,n,this.config.subdomain);this.eventQueue.enqueue(a),this.eventQueue.shouldFlush()&&(yield this.flushEvents())})}flushEvents(){return $(this,void 0,void 0,function*(){let t=this.eventQueue.getBatch();if(0===t.length)return;let e=t.map(t=>t.event),n=this.payloadBuilder.buildBatchPayload(e);try{yield this.transportManager.send(this.config.apiEndpoint,n)}catch(i){let e=i.status;if(400===e||401===e||403===e||404===e||413===e)return;let n=t.filter(t=>{var e;return t.retryCount<(null!=(e=this.config.maxRetries)?e:3)});n.length>0&&this.eventQueue.requeueEvents(n)}})}setupPageLifecycleHandlers(){let t=()=>{this.forceFlush()};window.addEventListener("beforeunload",t),window.addEventListener("pagehide",t),document.addEventListener("visibilitychange",()=>{"hidden"===document.visibilityState&&this.forceFlush()})}forceFlush(){return $(this,void 0,void 0,function*(){yield this.flushEvents()})}identify(t){this.identityManager.identify(t)}reset(){this.identityManager.reset()}getQueueLength(){return this.eventQueue.size()}getSessionId(){return this.identityManager.getSessionId()}getAnonymousId(){return this.identityManager.getAnonymousId()}getUserId(){return this.identityManager.getUserId()}}class N extends S{initialized=!1;subdomain;isAtlas;mintlifySdk;constructor(t,e){super(),this.subdomain=t,this.isAtlas=e,this.mintlifySdk=new D({apiEndpoint:`${x.NEXT_PUBLIC.BASE_PATH}/_mintlify/api/v1/e`,subdomain:this.subdomain})}init(){this.initialized=!0}captureEvent(t){return async e=>{this.mintlifySdk.trackEvent(t,e)}}createEventListener(t){return this.initialized?this.captureEvent(t):async function(t){}}onRouteChange(t,e){let n={subdomain:this.subdomain,title:"undefined"!=typeof document?document.title:""};this.mintlifySdk.trackEvent(_.PAGE_VIEW_EVENT,n),this.isAtlas&&this.mintlifySdk.trackEvent("docs.atlas_content.view",n)}}class M extends S{init(t){}createEventListener(t){return async function(e){window._satellite&&window._satellite.track(t,e)}}onRouteChange(t,e){window._satellite&&window._satellite.track("page_view")}}class R extends S{initialized=!1;eventQueue=[];track=(t,e)=>{"string"==typeof t&&e&&this.eventQueue.push({eventName:t,eventProperties:e})};init(e){if(!e.apiKey)return;let{apiKey:n}=e;t.A(366555).then(t=>{this.initialized||(t.init(n),this.track=t.track,this.initialized=!0,this.eventQueue.forEach(({eventName:t,eventProperties:e})=>{this.track(t,e)}),this.eventQueue=[])}).catch(t=>{this.track=()=>{},console.error(t)})}createEventListener(t){return(async function(e){this.track(t,e)}).bind(this)}onRouteChange(t,e){e.shallow||(this.track("page_view",{url:t}),this.track(_.PAGE_VIEW_EVENT,{url:t}))}}class z extends S{projectId;init(t){this.projectId=t.projectId}createEventListener(t){return this.projectId&&"clarity"in window&&"function"==typeof window.clarity?async function(e){try{window.clarity("event",t)}catch(t){console.warn("Failed to track Clarity event:",t)}}:async function(t){}}onRouteChange(t,e){}}class Q extends S{initialized=!1;trackPageview;init(e){if(!e.siteId)return;let{siteId:n}=e;t.A(291239).then(t=>{this.initialized||(t.load(n),this.trackPageview=t.trackPageview,this.initialized=!0)}).catch(t=>{console.error(t)})}createEventListener(t){return()=>Promise.resolve()}onRouteChange(t,e){this.trackPageview&&!e.shallow&&this.trackPageview()}}class F extends S{measurementId;init(t){this.measurementId=t.measurementId}createEventListener(t){return this.measurementId&&"gtag"in window?async function(e){window.gtag("event",t,{})}:async function(t){}}onRouteChange(t){this.measurementId&&"gtag"in window&&window.gtag("config",this.measurementId,{page_path:t})}}class B extends S{appId;init(t){this.appId=t.appId}trackEvent(t,e={}){if(this.appId&&window.heap&&"function"==typeof window.heap.track)try{window.heap.track(t,e)}catch(t){console.warn("Failed to track Heap event:",t)}}createEventListener(t){return async e=>{this.trackEvent(t,e)}}onRouteChange(t,e){this.trackEvent("pageview",{path:t}),this.trackEvent(_.PAGE_VIEW_EVENT,{path:t})}}class H extends S{initialized=!1;eventQueue=[];track=(t,e)=>{t&&e&&"object"==typeof e&&this.eventQueue.push({eventName:t,eventProperties:e})};init(e){if(!e.writeKey)return;let{writeKey:n,apiHost:i}=e;t.A(863050).then(t=>{if(!this.initialized){let e=t.HtEventsBrowser.load({writeKey:n},{apiHost:i||"us-east-1.hightouch-events.com"});this.track=e.track,this.initialized=!0,this.eventQueue.forEach(({eventName:t,eventProperties:e})=>{this.track(t,e)}),this.eventQueue=[]}}).catch(t=>{this.track=()=>{},console.error(t)})}createEventListener(t){return(async function(e){this.track(t,e)}).bind(this)}onRouteChange(t,e){e.shallow||this.track(_.PAGE_VIEW_EVENT,{url:t})}}class K extends S{initialized=!1;eventQueue=[];hotjar;
55init(e){if(!e.hjid||!e.hjsv)return;let n=parseInt(e.hjid,10),i=parseInt(e.hjsv,10);t.A(929176).then(t=>{this.initialized||(this.hotjar=t.hotjar,this.hotjar.initialize(n,i),this.initialized=!0,this.eventQueue.forEach(t=>{this.hotjar&&this.hotjar.event(t)}))}).catch(t=>{console.error(t)})}createEventListener(t){return(async function(e){this.hotjar?this.hotjar.event(t):this.eventQueue.push(t)}).bind(this)}onRouteChange(t,e){}}class V extends S{trackEvent;eventQueue=[];init(e){e.appId&&t.A(307612).then(t=>{t.default.init(e.appId),this.trackEvent=t.default.track,this.eventQueue.forEach(({eventName:t,eventProperties:e})=>{this.trackEvent?.(t,e)}),this.eventQueue=[]}).catch(t=>{console.error("Failed to load LogRocket",t)})}captureEvent(t,e={}){if(this.trackEvent)return void this.trackEvent(t,e);this.eventQueue.push({eventName:t,eventProperties:{...e}})}createEventListener(t){return async e=>this.captureEvent(t,e)}onRouteChange(t,e){}}let q={us:"https://api.mixpanel.com",eu:"https://api-eu.mixpanel.com",in:"https://api-in.mixpanel.com"};class W extends S{initialized=!1;waitTracking=[];mixpanel={track:(t,e)=>{this.waitTracking.push({name:t,properties:e})}};init(e){e.projectToken?t.A(777785).then(t=>{if(!this.initialized){let n=t.default;n.init(e.projectToken,{secure_cookie:!0,api_host:q[e.region??"us"]}),this.initialized=!0,this.mixpanel=n,this.waitTracking.forEach(t=>{this.mixpanel.track(t.name,t.properties)})}}).catch(t=>{console.error(t)}):this.mixpanel.track=(t,e)=>{}}createEventListener(t){return(async function(e){this.mixpanel.track(t,e)}).bind(this)}onRouteChange(t){this.mixpanel.track("pageview",{path:t}),this.mixpanel.track(_.PAGE_VIEW_EVENT,{path:t})}}class Y extends S{initialized=!1;eventQueue=[];pirsch;init(e){if(!e.id)return;let n=e.id;t.A(838687).then(t=>{this.initialized||(this.pirsch=new t.Pirsch({identificationCode:n}),this.initialized=!0,this.eventQueue.forEach(({eventName:t,eventProperties:e})=>{this.pirsch&&this.pirsch.event(t,void 0,e)}))}).catch(t=>{console.error(t)})}createEventListener(t){return(async function(e){this.pirsch?this.pirsch.event(t,void 0,e):this.eventQueue.push({eventName:t,eventProperties:e})}).bind(this)}onRouteChange(t){this.pirsch&&this.pirsch.hit()}}class G extends S{initialized=!1;eventQueue=[];track=(t,e)=>{t&&e&&"object"==typeof e&&this.eventQueue.push({eventName:t,eventProperties:e})};init(e){if(!e.key)return;let{key:n,cdnUrl:i}=e,a=i?.replace(/\/$/,"");t.A(210729).then(t=>{if(!this.initialized){let e=new t.AnalyticsBrowser;e.load({writeKey:n,...a?{cdnURL:a}:{}}),this.track=e.track,this.initialized=!0,this.eventQueue.forEach(({eventName:t,eventProperties:e})=>{this.track(t,e)}),this.eventQueue=[]}}).catch(t=>{this.track=()=>{},console.error(t)})}createEventListener(t){return(async function(e){this.track(t,e)}).bind(this)}onRouteChange(t,e){e.shallow||this.track(_.PAGE_VIEW_EVENT,{url:t})}}class J{analyticsIntegrations=[];constructor(t,e){let n=!!t?.adobe?.launchUrl,i=!!t?.clarity?.projectId,a=!!t?.amplitude?.apiKey,s=!!t?.fathom?.siteId,r=!!t?.ga4?.measurementId,o=!!t?.heap?.appId,c=!!t?.hightouch?.writeKey,u=!!(t?.hotjar?.hjid&&t.hotjar.hjsv),l=!!t?.logrocket?.appId,d=!!t?.mixpanel?.projectToken,h=!!t?.pirsch?.id,p=!!t?.posthog?.apiKey,g=!!t?.segment?.key;if(n&&t?.adobe){let e=new M;e.init(t.adobe),this.analyticsIntegrations.push(e)}if(i&&t?.clarity){let e=new z;e.init(t.clarity),this.analyticsIntegrations.push(e)}if(a&&t?.amplitude){let e=new R;e.init(t.amplitude),this.analyticsIntegrations.push(e)}if(s&&t?.fathom){let e=new Q;e.init(t.fathom),this.analyticsIntegrations.push(e)}if(r&&t?.ga4){let e=new F;e.init(t.ga4),this.analyticsIntegrations.push(e)}if(o&&t?.heap){let e=new B;e.init(t.heap),this.analyticsIntegrations.push(e)}if(c&&t?.hightouch){let e=new H;e.init(t.hightouch),this.analyticsIntegrations.push(e)}if(u&&t?.hotjar){let e=new K;e.init(t.hotjar),this.analyticsIntegrations.push(e)}if(l&&t?.logrocket){let e=new V;e.init(t.logrocket),this.analyticsIntegrations.push(e)}if(d&&t?.mixpanel){let e=new W;e.init(t.mixpanel),this.analyticsIntegrations.push(e)}if(h&&t?.pirsch){let e=new Y;e.init(t.pirsch),this.analyticsIntegrations.push(e)}if(p&&t?.posthog){let e=new k,n=t.posthog.sessionRecording??!0;e.init(t.posthog,n),this.analyticsIntegrations.push(e)}if(e){let{subdomain:t,isAtlas:n}=e,i=new N(t,n);i.init(),this.analyticsIntegrations.push(i)}if(g&&t?.segment){let e=new G;e.init(t.segment),this.analyticsIntegrations.push(e)}}createEventListener(t){let e=this.analyticsIntegrations.map(e=>e.createEventListener(t));
55return async function(t){e.forEach(e=>e(t))}}onRouteChange(t,e){this.analyticsIntegrations.forEach(n=>n.onRouteChange(t,e))}}var X=t.i(803333),Z=t.i(618566),tt=t.i(836770);let te=(t,e)=>{let n=(t=>{let e=new Set([t]),n=/^C0*(\d+)$/i.exec(t),i=/^\d+$/.exec(t);if(null!==n&&e.add(String(Number(n[1]))),null!==i){let n=String(Number(t));e.add(n),e.add(`C${n.padStart(4,"0")}`)}return e})(e);return t.some(t=>n.has(t.trim()))};function tn({frontchat:t}){return t?.snippetId?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a.default,{strategy:"beforeInteractive",src:"https://chat-assets.frontapp.com/v1/chat.bundle.js"}),(0,n.jsx)(a.default,{id:"frontchat",strategy:"afterInteractive",children:`window.FrontChat('init', {chatId: '${t.snippetId}', useDefaultLauncher: true});`})]}):null}let ti=()=>{let{docsConfig:t}=(0,y.useContext)(m.DocsConfigContext);return v.IS_PROD?(0,n.jsx)(tn,{frontchat:t?.integrations?.frontchat}):null};var ta=t.i(392146);function ts({children:t,subdomain:e,isAtlas:a}){let{docsConfig:s}=(0,y.useContext)(m.DocsConfigContext),r=s?.integrations?.telemetry?.enabled===!1,o=(t=>{let e=t?.integrations?.onetrust,n=e?.categoryId||"C0002",i=t?.integrations?.cookies?.key,a=t?.integrations?.cookies?.value,s=void 0!==t&&void 0===e&&t.integrations?.cookies===void 0,[r,o]=(0,y.useState)(s);return(0,y.useEffect)(()=>{if(void 0===t)return void o(!1);if(void 0!==e){let t=t=>{o((void 0===t?void 0:((t,e)=>{let n="detail"in t?t.detail:void 0;return Array.isArray(n)?te(n.map(String),e):"string"==typeof n?te(n.split(","),e):void 0})(t,n))??(t=>{let e=window.OnetrustActiveGroups;return"string"==typeof e&&te(e.split(","),t)})(n))},e=e=>t(e);return t(),window.addEventListener("OneTrustGroupsUpdated",e),()=>{window.removeEventListener("OneTrustGroupsUpdated",e)}}let s=t=>{o("ACCEPT"===t.ANALYTICS)},r=()=>{let t=window.Osano?.cm;return!!t&&(o(t.analytics),t.addEventListener("osano-cm-consent-saved",s),!0)};if(r())return()=>{window.Osano?.cm?.removeEventListener("osano-cm-consent-saved",s)};let c=()=>{t.integrations?.cookies!==void 0&&void 0!==i&&void 0!==a?o((window.localStorage.getItem(i)||"")===a):o(t.integrations?.cookies===void 0)},u=t.integrations?.cookies!==void 0&&(void 0===i||void 0===a);if(void 0!==window.Osano||u){o(!1);let t=!1,e=()=>{r()&&(t=!0,clearInterval(n))},n=setInterval(e,250),i=setTimeout(()=>{if(clearInterval(n),!t){if(u){n=setInterval(e,2e3);return}c()}},1e4);return()=>{clearInterval(n),clearTimeout(i),t&&window.Osano?.cm?.removeEventListener("osano-cm-consent-saved",s)}}c()},[t,n,e,i,a]),r})(s),{managed:c,measurementConsent:u}=(0,tt.useManagedConsent)(),l=c?!!u:o,d=function(t,e,n,i,a){let s=(0,Z.usePathname)(),r=(0,X.useCurrentPath)(),[o,c]=(0,y.useState)(!1),[u,l]=(0,y.useState)(),d=(0,y.useRef)(!0),h=(0,y.useRef)(r);return h.current=r,(0,y.useEffect)(()=>{let s;if(n||!i||!v.IS_PROD){o&&(l(void 0),c(!1));return}o||(e&&(s={subdomain:e,isAtlas:a??!1}),l(new J(t,s)),c(!0))},[o,t,e,n,i,a]),(0,y.useEffect)(()=>{!i&&o&&(l(void 0),c(!1))},[i,o]),(0,y.useEffect)(()=>{u&&(u.onRouteChange(h.current,{initialLoad:d.current}),d.current=!1)},[s,u]),u}(s?.integrations??{},e,r,l,a),h=!c||l,p=(0,y.useRef)(l);return(0,y.useEffect)(()=>{let t=p.current;p.current=l,c||!0!==t||l||window.location.reload()},[c,l]),(0,n.jsx)(i.AnalyticsProvider,{value:{analyticsMediator:d},children:(0,n.jsxs)(ta.LocalStorageContextController,{cookiesEnabled:l,children:[(0,n.jsx)(E,{onetrust:s?.integrations?.onetrust}),(0,n.jsx)(ti,{}),h&&(0,n.jsx)(I,{analyticsEnabled:l}),t]})})}},832740,t=>{"use strict";t.s(["AssistantTransportProviderSelector",()=>p],832740);var e=t.i(843476),n=t.i(859465),i=t.i(382805),a=t.i(604780),s=t.i(279183),r=t.i(271645);let o=[],c=()=>{};var u=t.i(634292);function l(t){let[e,n]=(0,r.useState)(),[i,u]=(0,r.useState)([]),[l,d]=(0,r.useState)(),h=(0,r.useRef)(0),p=(0,r.useCallback)(()=>{h.current+=1,u([]),s.default.setState({status:"ready"}),s.default.getState().activeStop===p&&s.default.setState({activeStop:void 0})},[]),g=function({pending:t,onSend:e,onStop:n,onClear:i,load:u}){let[l,d]=(0,r.useState)(""),h=(0,a.useCaptcha)(),p=(0,s.default)(t=>t.threadId),g=(0,s.default)(t=>t.featureUnavailable),f=(0,s.default)(t=>t.payloadInput),v=(0,s.default)(t=>t.setPayloadInput),m=t.length>0,y=async t=>
55{e({type:"append",id:t.id??crypto.randomUUID(),content:t.content})};return{acceptedSubmissionId:t.at(-1)?.id,input:l,status:m?"submitted":"ready",handleSubmit:t=>{if(t?.preventDefault(),m)return!1;let n=s.default.getState().pendingAttachments,i=f.context??[];return(!!l.trim()||!!n.length||!!i.length)&&(e({type:"submit",id:crypto.randomUUID(),text:l,attachments:n,context:i}),d(""),!0)},setInput:d,messages:o,setMessages:c,append:y,isLoading:m,onClear:i,onReload:c,stop:n,isStopped:!1,threadId:p,isInProgress:m,error:void 0,isFeatureUnavailable:g,payloadInput:f,setPayloadInput:v,ensureCaptchaScriptLoaded:()=>{h.ensureCaptchaScriptLoaded(),u().catch(()=>void 0)}}}({pending:i,onSend:(0,r.useCallback)(e=>{let i=h.current;u(t=>[...t,e]),s.default.setState({activeStop:p,status:"submitted"}),t().then(n).catch(t=>{h.current===i&&(console.error("Failed to load assistant",t),p(),s.default.getState().setFeatureUnavailable({unavailable:!0,type:"stream_error",message:"There was an error loading the assistant. Please refresh and try again."}))})},[t,p]),onStop:p,onClear:(0,r.useCallback)(()=>{h.current+=1,u([]),s.default.setState({messages:[],threadId:void 0,threadKey:void 0,activeStop:void 0,status:"ready",pendingAttachments:[],stagedAttachments:void 0,messageIdToAttachments:{},messageIdToComplete:{},toolCallIdToSelectedOption:{},conversationVersion:void 0}),s.default.getState().setFeatureUnavailable({unavailable:!1,type:null,message:""}),sessionStorage.removeItem("threadKey")},[]),load:t});return{module:e,pending:i,transport:l,setTransport:d,idle:g}}function d({children:t}){let{module:n,pending:a,transport:s,setTransport:r,idle:o}=l(i.loadAssistant);return(0,e.jsxs)(i.AssistantTransportContext.Provider,{value:s??o,children:[n&&(0,e.jsx)(n.AssistantTransportBridge,{initialInput:o.input,pending:a,onChange:r}),t]})}function h({children:t}){let{module:n,pending:i,transport:a,setTransport:s,idle:r}=l(u.loadAssistantV5);return(0,e.jsxs)(u.AssistantTransportV5Context.Provider,{value:a??r,children:[n&&(0,e.jsx)(n.AssistantTransportV5Bridge,{initialInput:r.input,pending:i,onChange:s}),t]})}function p({children:t}){return(0,n.useAssistantV5Enabled)()?(0,e.jsx)(h,{children:t}):(0,e.jsx)(d,{children:t})}},197336,t=>{"use strict";t.s(["default",()=>i]);var e=t.i(843476);let n=(0,t.i(770703).default)(()=>t.A(428544),{loadableGenerated:{modules:[820676]},ssr:!1});function i({appId:t,children:i,...a}){return(0,e.jsxs)(e.Fragment,{children:[i,void 0!==t&&(0,e.jsx)(n,{...a,appId:t})]})}},601054,t=>{"use strict";t.s(["ChatAssistantContext",()=>e.ChatAssistantContext,"DEBOUNCE_TIME_IN_MS",()=>e.DEBOUNCE_TIME_IN_MS,"DesktopSearchEntry",()=>i.DesktopSearchEntry,"SearchButton",()=>n.SearchButton,"SearchContext",()=>e.SearchContext,"SearchProvider",()=>e.SearchProvider,"hasSearchEntry",()=>i.hasSearchEntry]);var e=t.i(477222),n=t.i(584542),i=t.i(311844)},87732,t=>{"use strict";t.s(["AssistantLayoutWrapper",()=>h]);var e=t.i(843476),n=t.i(915476),i=t.i(859465),a=t.i(91557),s=t.i(237978),r=t.i(202225),o=t.i(271645),c=t.i(39839),u=t.i(736118),l=t.i(477222),d=t.i(785023);function h({children:t}){let h=(0,o.useContext)(i.AssistantUiContext),{isChatSheetOpen:p}=(0,o.useContext)(l.ChatAssistantContext),{hasChatPermissions:g}=(0,o.useContext)(l.SearchContext),{docsConfig:f}=(0,o.useContext)(a.DocsConfigContext),{originalPageMode:v,pageModeOverride:m}=(0,s.usePageModeOverride)(),y="assistant"===(void 0===m?v:m||void 0),w=(0,c.useMediaQuery)("(max-width: 1024px)"),[I,E]=(0,o.useState)(!1),[S,x]=(0,o.useState)(!1),[_]=(0,r.useLocalStorage)(n.ASSISTANT_WIDTH_KEY,d.CHAT_SHEET_MIN_WIDTH);(0,o.useEffect)(()=>{E(!0),x(w)},[w]),(0,o.useEffect)(()=>{I&&document.documentElement.removeAttribute("data-assistant-defaulted")},[I]),(0,o.useLayoutEffect)(()=>{if(!I)return;let t=document.documentElement;if(S||y||"assistant-ui-v2"===h){t.style.setProperty(n.ASSISTANT_WIDTH_CSS_VAR,"0px"),t.setAttribute("data-assistant-state","closed");return}let e=g&&p;return t.style.setProperty(n.ASSISTANT_WIDTH_CSS_VAR,e?`${_}px`:"0px"),t.setAttribute("data-assistant-state",e?"open":"closed"),()=>{t.style.removeProperty(n.ASSISTANT_WIDTH_CSS_VAR),t.setAttribute("data-assistant-state","closed")}},[I,S,y,g,p,_,h]);let k=I&&!S;return(0,e.jsxs)("div",{className:"max-lg:contents lg:flex lg:w-full","data-docs-theme":f?.theme,"data-assistant-layout":h,children:[(0,e.jsx)("div",{className:"max-lg:contents lg:flex-1 lg:min-w-0 lg:overflow-x-clip",children:t}),g&&!y&&(0,e.jsx)(u.ChatAssistantSheet,{hidden:k&&!p})]})}},28330,t=>{"use strict";t.s(["SkipToContent",()=>
55a]);var e=t.i(843476),n=t.i(343590),i=t.i(111048);function a(){let t=(0,n.useSelectedLocale)();return(0,e.jsx)("a",{href:`#${i.Ids.ContentArea}`,className:"sr-only focus:not-sr-only focus:fixed focus:top-2 focus:left-2 focus:z-50 focus:p-2 focus:text-sm focus:bg-background-light dark:focus:bg-background-dark focus:rounded-md focus:outline-primary dark:focus:outline-primary-light",children:t["aria.skipToMainContent"]})}}]);

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