PageSourceSearch

https://datafa.st/_next/static/chunks/app/docs/%5B...slug%5D/page-6e61c729d7b880e9.js

js datafa.st collected 2026-10-02 10:00:43 UTC 131,953 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6687],{30454:function(e,t,a){Promise.resolve().then(a.bind(a,1627))},44414:function(e,t,a){"use strict";var s=a(57437),i=a(33145),n=a(87011);t.Z=e=>{let{store:t,className:a=""}=e,r={apple:{href:n.ZP.mobileApp.appStore,src:"/appstore-icon.png",alt:"Download on the App Store"},google:{href:n.ZP.mobileApp.googlePlay,src:"/googleplay-icon.png",alt:"Get it on Google Play"}},o=e=>{let{href:t,src:a,alt:n}=r[e];return(0,s.jsx)("a",{href:t,target:"_blank",rel:"noopener noreferrer",className:"inline-block transition-opacity hover:opacity-80",children:(0,s.jsx)(i.default,{src:a,alt:n,width:145,height:48,quality:100,className:"h-12 w-auto"})},e)};return"apple"===t||"google"===t?o(t):(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-0 ".concat(a),children:[o("apple"),o("google")]})}},28552:function(e,t,a){"use strict";var s=a(57437);a(2265),t.Z=e=>{let{extraStyle:t,children:a}=e;return(0,s.jsx)("div",{className:"rounded-[1.3rem] bg-neutral/5 p-1.5 shadow-[0_0_0_1px_rgba(0,0,0,0.06),0_1px_2px_-1px_rgba(0,0,0,0.06),0_2px_4px_0_rgba(0,0,0,0.04)] dark:bg-neutral/50 dark:shadow-[0_0_0_1px_rgba(255,255,255,0.08)] ".concat(t||""),children:a})}},1627:function(e,t,a){"use strict";a.d(t,{default:function(){return eZ}});var s=a(57437),i=a(2265),n=a(33145),r=a(27648),o=a(94206),l=a(26727),c=a(12158),d=a(75041),p=a(27140),m=a(23260),u=a(28552),h=a(39011),A=a(32761),g=a(32969),f=a(60594),b=a(10306),x=a(74246),v=a(72661),y=a(13171),w=a(61587),k=a(63962),E=a(43738),j=a(42895),I=a(38532),N=a(29998),C=a(40390),_=a(59721),S=a(10038),P=a(27216),B=a(44596),T=a(64784),D=a(36108),R=a(32105),W=a(19222),L=a(58486),U=a(95294),G=a(56712),M=a(31842),V=a(47382),F=a(66542),O=a(61004),Y=a(26247);let Z={proxy:[{src:A.default,alt:"Next.js",href:"/docs/nextjs-proxy"},{src:M.Z,alt:"Astro",href:"/docs/astro-proxy"},{src:g.default,alt:"Express.js",href:"/docs/express-proxy"},{src:f.default,alt:"PHP",href:"/docs/php-proxy"},{src:b.default,alt:"Flask",href:"/docs/flask-proxy"},{src:x.default,alt:"FastAPI",href:"/docs/fastapi-proxy"},{src:v.default,alt:"Vue.js",href:"/docs/vuejs-proxy"},{src:y.default,alt:"Nginx",href:"/docs/nginx-proxy"},{src:k.default,alt:"Caddy",href:"/docs/caddy-proxy"},{src:w.default,alt:"Laravel",href:"/docs/laravel-proxy"},{src:V.Z,alt:"Firebase",href:"/docs/firebase-proxy"}],integration:[{src:A.default,alt:"Next.js",href:"/docs/nextjs-app-router"},{src:Y.default,alt:"NPM SDK",href:"/docs/npm"},{src:{src:"/_next/static/media/icon-expo.acb3b5ce.png",height:230,width:440,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAMAAACEE47CAAAAD1BMVEX////AwMDPz8/Ly8vc3NxE+WBTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAF0lEQVR4nGNgQAAmRmYWMIOFmZEJSRwAAYwAFdAlBZMAAAAASUVORK5CYII=",blurWidth:8,blurHeight:4},alt:"React Native / Expo",href:"/docs/react-native"},{src:M.Z,alt:"Astro",href:"/docs/astro"},{src:w.default,alt:"Laravel",href:"/docs/laravel"},{src:C.default,alt:"Django",href:"/docs/django"},{src:N.default,alt:"React Router",href:"/docs/react-router"},{src:_.default,alt:"Ghost CMS",href:"/docs/ghost-cms"},{src:v.default,alt:"Vue.js",href:"/docs/vuejs"},{src:j.default,alt:"Webflow",href:"/docs/webflow"},{src:I.default,alt:"WordPress",href:"/docs/wordpress"},{src:S.default,alt:"Framer",href:"/docs/framer"},{src:E.default,alt:"Google Tag Manager",href:"/docs/google-tag-manager"},{src:P.default,alt:"Bubble",href:"/docs/bubble"},{src:B.default,alt:"Podia",href:"/docs/podia"},{src:T.default,alt:"Kajabi",href:"/docs/kajabi"},{src:D.default,alt:"Wix",href:"/docs/wix"},{src:R.default,alt:"SquareSpace",href:"/docs/squarespace"},{src:W.default,alt:"Lovable",href:"/docs/lovable"},{src:L.Z,alt:"Vercel v0",href:"/docs/vercel-v0"},{src:U.Z,alt:"Replit",href:"/docs/replit"},{src:G.default,alt:"Bolt",href:"/docs/bolt"},{src:F.default,alt:"Shopify",href:"/docs/shopify"},{src:O.Z,alt:"WooCommerce",href:"/docs/woocommerce"}]};var X=e=>{let{type:t="integration"}=e,a=Z[t]||[];return(0,s.jsx)("div",{className:"my-6 grid grid-cols-2 items-center gap-2 md:grid-cols-3 xl:grid-cols-4",children:a.map(e=>(0,s.jsx)(r.default,{className:"relative aspect-video w-full overflow-hidden rounded-box border border-base-content/10 bg-base-100 transition duration-200",href:e.href,children:(0,s.jsx)(n.default,{src:e.src,alt:e.alt||"".concat("proxy"===t?"Proxy guide":"Documentation"," image"),fill:!0,className:"aspect-auto rounded-box object-fill transition duration-200 hover:scale-105 dark:brightness-90"})},e.href))})},H=a(99376),q=a(75186),z=a(49600),K=a.n(z),J=a(49197),Q=a(50501),$=a.n(Q);let ee=["country","region","city","browser","os","device","referrer","ref","source","via","utm_source","utm_medium","utm_campaign","utm_term","utm_content","page"];[...ee.map(e=>"filter_".concat(e))];let{API_DOC_PATH_BY_SLUG:et}=$(),ea=[{id:"timeseries",name:"Time Series",path:"/api/v1/analytics/timeseries",description:"Get time series data",category:"Analytics",requiresFields:!0,requiresInterval:!0,supportsFilters:!0,supportsLimitOffset:!1},{id:"overview",name:"Overview",path:"/api/v1/analytics/overview",description:"Get overview metrics",category:"Analytics",supp
1ortsFilters:!0,supportsLimitOffset:!1,validFields:["visitors","sessions","bounce_rate","avg_session_duration","currency","revenue","payments","revenue_per_visitor","conversion_rate"]},{id:"metadata",name:"Metadata",path:"/api/v1/analytics/metadata",description:"Get website configuration metadata",category:"Analytics",supportsFilters:!1,supportsLimitOffset:!1,validFields:["domain","timezone","name","kpiColorScheme","kpi","currency"]},{id:"realtime",name:"Realtime",path:"/api/v1/analytics/realtime",description:"Get real-time visitor count",category:"Analytics",supportsFilters:!1,supportsLimitOffset:!1},{id:"realtime-map",name:"Realtime Map",path:"/api/v1/analytics/realtime/map",description:"Get real-time visitor map data",category:"Analytics",supportsFilters:!1,supportsLimitOffset:!1},{id:"bot-traffic-summary",name:"Bot Traffic Summary",path:"/api/v1/analytics/bot-traffic",description:"Get Bot traffic totals, crawlers, and timeseries",category:"Bot traffic",method:"GET",supportsTimeRange:!0,timeRangeOptional:!0,supportsTimezone:!0,requiresInterval:!0,tokenPrefixes:["df_","dft_"],docSlug:"api-bot-traffic-summary"},{id:"bot-traffic-pages",name:"Bot Traffic Pages",path:"/api/v1/analytics/bot-traffic/pages",description:"Get pages requested by bots",category:"Bot traffic",method:"GET",supportsTimeRange:!0,timeRangeOptional:!0,supportsTimezone:!0,supportsPagination:!0,tokenPrefixes:["df_","dft_"],docSlug:"api-bot-traffic-pages"},{id:"pages",name:"Pages",path:"/api/v1/analytics/pages",description:"Get page analytics",category:"Analytics",supportsFilters:!0,validFields:["hostname","path","visitors","revenue","payments"]},{id:"exit-clicks",name:"Exit Clicks",path:"/api/v1/analytics/exit-clicks",description:"Get external link click analytics",category:"Analytics",supportsFilters:!0,validFields:["url","visitors","clicks"]},{id:"referrers",name:"Referrers",path:"/api/v1/analytics/referrers",description:"Get referrer analytics",category:"Analytics",supportsFilters:!0,validFields:["referrer","visitors","revenue","payments"]},{id:"countries",name:"Countries",path:"/api/v1/analytics/countries",description:"Get country analytics",category:"Analytics",supportsFilters:!0,validFields:["country","image","visitors","revenue","payments"]},{id:"regions",name:"Regions",path:"/api/v1/analytics/regions",description:"Get region analytics",category:"Analytics",supportsFilters:!0,validFields:["region","visitors","revenue","payments"]},{id:"cities",name:"Cities",path:"/api/v1/analytics/cities",description:"Get city analytics",category:"Analytics",supportsFilters:!0,validFields:["city","visitors","revenue","payments"]},{id:"devices",name:"Devices",path:"/api/v1/analytics/devices",description:"Get device analytics",category:"Analytics",supportsFilters:!0,validFields:["device","visitors","revenue","payments"]},{id:"browsers",name:"Browsers",path:"/api/v1/analytics/browsers",description:"Get browser analytics",category:"Analytics",supportsFilters:!0,validFields:["browser","visitors","revenue","payments"]},{id:"operating-systems",name:"Operating Systems",path:"/api/v1/analytics/operating-systems",description:"Get OS analytics",category:"Analytics",supportsFilters:!0,validFields:["operating_system","visitors","revenue","payments"]},{id:"campaigns",name:"Campaigns",path:"/api/v1/analytics/campaigns",description:"Get campaign analytics",category:"Analytics",supportsFilters:!0,validFields:["utm_source","utm_medium","utm_campaign","utm_term","utm_content","ref","source","via","visitors","revenue","payments"]},{id:"hostnames",name:"Hostnames",path:"/api/v1/analytics/hostnames",description:"Get hostname analytics",category:"Analytics",supportsFilters:!0,validFields:["hostname","visitors","revenue","payments"]},{id:"goals",name:"Goals",path:"/api/v1/analytics/goals",description:"Get goal analytics",category:"Analytics",supportsFilters:!0,validFields:["name","completions","visitors"]},{id:"goal-properties",name:"Goal properties",path:"/api/v1/analytics/goals/properties",description:"Discover custom goal parameters or compare their values",category:"Analytics",supportsFilters:!0,docSlug:"api-goal-properties"},{id:"visitors-list",name:"List Visitors",path:"/api/v1/visitors",description:"Search visitors by behavior and filters",category:"Data",method:"GET",supportsFilters:!0},{id:"visitor",name:"Get Visitor",path:"/api/v1/visitors/{visitor_id}",description:"Get visitor data by ID",category:"Data",method:"GET",requiresVisitorId:!0},{id:"create-goal",name:"Create Goal",path:"/api/v1/goals",description:"Create a custom goal event",category:"Data",method:"POST",requiresBo
1dy:!0},{id:"create-payment",name:"Create Payment",path:"/api/v1/payments",description:"Track a payment/revenue event",category:"Data",method:"POST",requiresBody:!0},{id:"delete-payment",name:"Delete Payment",path:"/api/v1/payments",description:"Delete payment(s) by transaction ID, visitor ID, or time range",category:"Data",method:"DELETE",requiresBody:!1,supportsTimeRange:!0,supportsDeleteParams:!0},{id:"delete-goal",name:"Delete Goal",path:"/api/v1/goals",description:"Delete goal events by visitor, name, or time range",category:"Data",method:"DELETE",requiresBody:!1,supportsTimeRange:!0,supportsDeleteParams:!0},{id:"identify",name:"Identify User",path:"/api/v1/identify",description:"Link a visitor to your user ID",category:"Website API",method:"POST",requiresBody:!0,tokenPrefixes:["df_","dft_"],docSlug:"api-identify"},{id:"funnel-analytics",name:"Funnel Analytics",path:"/api/v1/analytics/funnels/{funnelId}",description:"Get analytics for a funnel",category:"Website API",method:"GET",supportsFilters:!0,supportsLimitOffset:!1,tokenPrefixes:["df_","dft_"],docSlug:"api-funnel-analytics",pathParams:[{key:"funnelId",label:"Funnel ID",placeholder:"665f0b3c4d2e1a0012345678"}]},{id:"mentions-list",name:"List social mentions",path:"/api/v1/mentions",description:"Search X and Reddit mentions with the chart’s plan limits",category:"Social mentions",method:"GET",tokenPrefixes:["df_","dft_"],docSlug:"api-list-mentions",supportsTimeRange:!0,timeRangeOptional:!0,supportsTimezone:!0,supportsPagination:!0,supportsTimelineSearch:!0},{id:"notes-list",name:"List manual notes",path:"/api/v1/admin/websites/{websiteId}/notes",description:"List timestamped manual chart notes",category:"Manual notes",method:"GET",tokenPrefixes:["df_","dft_"],docSlug:"api-admin-list-notes",pathParams:[{key:"websiteId",label:"Website ID",placeholder:"WEBSITE_ID"}],supportsTimeRange:!0,timeRangeOptional:!0,supportsTimezone:!0,supportsPagination:!0,supportsTimelineSearch:!0},{id:"notes-create",name:"Create manual note",path:"/api/v1/admin/websites/{websiteId}/notes",description:"Create timestamped manual chart notes",category:"Manual notes",method:"POST",tokenPrefixes:["df_","dft_"],docSlug:"api-admin-create-note",pathParams:[{key:"websiteId",label:"Website ID",placeholder:"WEBSITE_ID"}],requiresBody:!0},{id:"notes-update",name:"Update manual note",path:"/api/v1/admin/websites/{websiteId}/notes/{noteId}",description:"Update timestamped manual chart notes",category:"Manual notes",method:"PUT",tokenPrefixes:["df_","dft_"],docSlug:"api-admin-update-note",pathParams:[{key:"websiteId",label:"Website ID",placeholder:"WEBSITE_ID"},{key:"noteId",label:"Note ID",placeholder:"NOTE_ID"}],requiresBody:!0},{id:"notes-delete",name:"Delete manual note",path:"/api/v1/admin/websites/{websiteId}/notes/{noteId}",description:"Delete timestamped manual chart notes",category:"Manual notes",method:"DELETE",tokenPrefixes:["df_","dft_"],docSlug:"api-admin-delete-note",pathParams:[{key:"websiteId",label:"Website ID",placeholder:"WEBSITE_ID"},{key:"noteId",label:"Note ID",placeholder:"NOTE_ID"}]},{id:"admin-account-get",name:"Get Account",path:"/api/v1/admin/account",description:"Get your account and plan info",category:"Account API",method:"GET",tokenPrefixes:["dft_"],docSlug:"api-admin-account"},{id:"admin-account-update",name:"Update Account",path:"/api/v1/admin/account",description:"Update your account name",category:"Account API",method:"PUT",requiresBody:!0,tokenPrefixes:["dft_"],docSlug:"api-admin-account"},{id:"admin-tokens-list",name:"List Access Tokens",path:"/api/v1/admin/access-tokens",description:"List account tokens",category:"Account API",method:"GET",tokenPrefixes:["dft_"],docSlug:"api-admin-access-tokens"},{id:"admin-tokens-create",name:"Create Access Token",path:"/api/v1/admin/access-tokens",description:"Create a dft_ account token",category:"Account API",method:"POST",requiresBody:!0,tokenPrefixes:["dft_"],docSlug:"api-admin-access-tokens"},{id:"admin-tokens-delete",name:"Delete Access Token",path:"/api/v1/admin/access-tokens/{tokenId}",description:"Revoke a dft_ account token",category:"Account API",method:"DELETE",tokenPrefixes:["dft_"],docSlug:"api-admin-access-tokens",pathParams:[{key:"tokenId",label:"Token ID",placeholder:"TOKEN_ID"}]},{id:"admin-websites-list",name:"List Websites",path:"/api/v1/admin/websites",description:"List websites available to the token",category:"Account API",method:"GET",tokenPrefixes:["df_","dft_"],docSlug:"api-admin-websites"},{id:"admin-websites-create",name:"Create Website",path:"/api/v1/admin/websites",description:"Create a new website",category:"Account API",method:"POST",requiresBo
1dy:!0,tokenPrefixes:["dft_"],docSlug:"api-admin-websites"},{id:"admin-website-get",name:"Get Website",path:"/api/v1/admin/websites/{websiteId}",description:"Get website settings",category:"Account API",method:"GET",tokenPrefixes:["df_","dft_"],docSlug:"api-admin-websites",pathParams:[{key:"websiteId",label:"Website ID",placeholder:"WEBSITE_ID"}]},{id:"admin-website-update",name:"Update Website",path:"/api/v1/admin/websites/{websiteId}",description:"Update website settings",category:"Account API",method:"PUT",requiresBody:!0,tokenPrefixes:["df_","dft_"],docSlug:"api-admin-websites",pathParams:[{key:"websiteId",label:"Website ID",placeholder:"WEBSITE_ID"}]},{id:"admin-website-delete",name:"Delete Website",path:"/api/v1/admin/websites/{websiteId}",description:"Returns 403; website deletion is dashboard-only",category:"Account API",method:"DELETE",tokenPrefixes:["dft_"],docSlug:"api-admin-websites",pathParams:[{key:"websiteId",label:"Website ID",placeholder:"WEBSITE_ID"}]},{id:"admin-website-goals",name:"List Tracked Goals",path:"/api/v1/admin/websites/{websiteId}/goals",description:"List tracked goals for a website",category:"Account API",method:"GET",tokenPrefixes:["df_","dft_"],docSlug:"api-admin-goals",pathParams:[{key:"websiteId",label:"Website ID",placeholder:"WEBSITE_ID"}]},{id:"admin-apikeys-list",name:"List Website Keys",path:"/api/v1/admin/websites/{websiteId}/apikeys",description:"List df_ website API keys",category:"Account API",method:"GET",tokenPrefixes:["df_","dft_"],docSlug:"api-admin-website-keys",pathParams:[{key:"websiteId",label:"Website ID",placeholder:"WEBSITE_ID"}]},{id:"admin-apikeys-create",name:"Create Website Key",path:"/api/v1/admin/websites/{websiteId}/apikeys",description:"Create a df_ website API key",category:"Account API",method:"POST",requiresBody:!0,tokenPrefixes:["df_","dft_"],docSlug:"api-admin-website-keys",pathParams:[{key:"websiteId",label:"Website ID",placeholder:"WEBSITE_ID"}]},{id:"admin-apikeys-roll",name:"Roll Website Key",path:"/api/v1/admin/websites/{websiteId}/apikeys/{apiKeyId}",description:"Roll a df_ website API key",category:"Account API",method:"PUT",tokenPrefixes:["df_","dft_"],docSlug:"api-admin-website-keys",pathParams:[{key:"websiteId",label:"Website ID",placeholder:"WEBSITE_ID"},{key:"apiKeyId",label:"API Key ID",placeholder:"API_KEY_ID"}]},{id:"admin-apikeys-delete",name:"Delete Website Key",path:"/api/v1/admin/websites/{websiteId}/apikeys/{apiKeyId}",description:"Revoke a df_ website API key",category:"Account API",method:"DELETE",tokenPrefixes:["df_","dft_"],docSlug:"api-admin-website-keys",pathParams:[{key:"websiteId",label:"Website ID",placeholder:"WEBSITE_ID"},{key:"apiKeyId",label:"API Key ID",placeholder:"API_KEY_ID"}]},{id:"admin-funnels-list",name:"List Funnels",path:"/api/v1/admin/websites/{websiteId}/funnels",description:"List active funnels",category:"Account API",method:"GET",tokenPrefixes:["df_","dft_"],docSlug:"api-admin-funnels",pathParams:[{key:"websiteId",label:"Website ID",placeholder:"WEBSITE_ID"}]},{id:"admin-funnels-create",name:"Create Funnel",path:"/api/v1/admin/websites/{websiteId}/funnels",description:"Create a funnel",category:"Account API",method:"POST",requiresBody:!0,tokenPrefixes:["df_","dft_"],docSlug:"api-admin-funnels",pathParams:[{key:"websiteId",label:"Website ID",placeholder:"WEBSITE_ID"}]},{id:"admin-funnels-update",name:"Update Funnel",path:"/api/v1/admin/websites/{websiteId}/funnels/{funnelId}",description:"Update a funnel",category:"Account API",method:"PUT",requiresBody:!0,tokenPrefixes:["df_","dft_"],docSlug:"api-admin-funnels",pathParams:[{key:"websiteId",label:"Website ID",placeholder:"WEBSITE_ID"},{key:"funnelId",label:"Funnel ID",placeholder:"FUNNEL_ID"}]},{id:"admin-funnels-delete",name:"Delete Funnel",path:"/api/v1/admin/websites/{websiteId}/funnels/{funnelId}",description:"Soft-delete a funnel",category:"Account API",method:"DELETE",tokenPrefixes:["df_","dft_"],docSlug:"api-admin-funnels",pathParams:[{key:"websiteId",label:"Website ID",placeholder:"WEBSITE_ID"},{key:"funnelId",label:"Funnel ID",placeholder:"FUNNEL_ID"}]},{id:"admin-alerts-list",name:"List Alerts",path:"/api/v1/admin/websites/{websiteId}/alerts",description:"List alerts",category:"Account API",method:"GET",tokenPrefixes:["df_","dft_"],docSlug:"api-admin-alerts",pathParams:[{key:"websiteId",label:"Website ID",placeholder:"WEBSITE_ID"}]},{id:"admin-alerts-create",name:"Create Alert",path:"/api/v1/admin/websites/{websiteId}/alerts",description:"Create an alert",category:"Account API",method:"POST",requiresBo
1dy:!0,tokenPrefixes:["df_","dft_"],docSlug:"api-admin-alerts",pathParams:[{key:"websiteId",label:"Website ID",placeholder:"WEBSITE_ID"}]},{id:"admin-alerts-update",name:"Update Alert",path:"/api/v1/admin/websites/{websiteId}/alerts/{alertId}",description:"Update an alert",category:"Account API",method:"PUT",requiresBody:!0,tokenPrefixes:["df_","dft_"],docSlug:"api-admin-alerts",pathParams:[{key:"websiteId",label:"Website ID",placeholder:"WEBSITE_ID"},{key:"alertId",label:"Alert ID",placeholder:"ALERT_ID"}]},{id:"admin-alerts-delete",name:"Delete Alert",path:"/api/v1/admin/websites/{websiteId}/alerts/{alertId}",description:"Delete an alert",category:"Account API",method:"DELETE",tokenPrefixes:["df_","dft_"],docSlug:"api-admin-alerts",pathParams:[{key:"websiteId",label:"Website ID",placeholder:"WEBSITE_ID"},{key:"alertId",label:"Alert ID",placeholder:"ALERT_ID"}]},{id:"admin-alerts-history",name:"Alert History",path:"/api/v1/admin/websites/{websiteId}/alerts/history",description:"Get recent alert trigger history",category:"Account API",method:"GET",tokenPrefixes:["df_","dft_"],docSlug:"api-admin-alerts",pathParams:[{key:"websiteId",label:"Website ID",placeholder:"WEBSITE_ID"}]},{id:"admin-team-list",name:"List Team Members",path:"/api/v1/admin/websites/{websiteId}/team",description:"List team members",category:"Account API",method:"GET",tokenPrefixes:["df_","dft_"],docSlug:"api-admin-team",pathParams:[{key:"websiteId",label:"Website ID",placeholder:"WEBSITE_ID"}]},{id:"admin-team-invite",name:"Invite Team Member",path:"/api/v1/admin/websites/{websiteId}/team",description:"Invite a team member",category:"Account API",method:"POST",requiresBody:!0,tokenPrefixes:["dft_"],docSlug:"api-admin-team",pathParams:[{key:"websiteId",label:"Website ID",placeholder:"WEBSITE_ID"}]},{id:"admin-team-remove",name:"Remove Team Member",path:"/api/v1/admin/websites/{websiteId}/team",description:"Remove a team member",category:"Account API",method:"DELETE",requiresBody:!0,tokenPrefixes:["dft_"],docSlug:"api-admin-team",pathParams:[{key:"websiteId",label:"Website ID",placeholder:"WEBSITE_ID"}]},{id:"admin-integrations-list",name:"Get Integrations",path:"/api/v1/admin/websites/{websiteId}/integrations",description:"Get payment integration status",category:"Account API",method:"GET",tokenPrefixes:["df_","dft_"],docSlug:"api-admin-integrations",pathParams:[{key:"websiteId",label:"Website ID",placeholder:"WEBSITE_ID"}]},{id:"admin-integrations-stripe-connect",name:"Connect Stripe",path:"/api/v1/admin/websites/{websiteId}/integrations/stripe",description:"Connect Stripe",category:"Account API",method:"POST",requiresBody:!0,tokenPrefixes:["df_","dft_"],docSlug:"api-admin-integrations",pathParams:[{key:"websiteId",label:"Website ID",placeholder:"WEBSITE_ID"}]},{id:"admin-integrations-stripe-disconnect",name:"Disconnect Stripe",path:"/api/v1/admin/websites/{websiteId}/integrations/stripe",description:"Disconnect Stripe",category:"Account API",method:"DELETE",tokenPrefixes:["df_","dft_"],docSlug:"api-admin-integrations",pathParams:[{key:"websiteId",label:"Website ID",placeholder:"WEBSITE_ID"}]},{id:"admin-integrations-lemonsqueezy-connect",name:"Connect Lemon Squeezy",path:"/api/v1/admin/websites/{websiteId}/integrations/lemonsqueezy",description:"Connect Lemon Squeezy",category:"Account API",method:"POST",requiresBody:!0,tokenPrefixes:["df_","dft_"],docSlug:"api-admin-integrations",pathParams:[{key:"websiteId",label:"Website ID",placeholder:"WEBSITE_ID"}]},{id:"admin-integrations-lemonsqueezy-disconnect",name:"Disconnect Lemon Squeezy",path:"/api/v1/admin/websites/{websiteId}/integrations/lemonsqueezy",description:"Disconnect Lemon Squeezy",category:"Account API",method:"DELETE",tokenPrefixes:["df_","dft_"],docSlug:"api-admin-integrations",pathParams:[{key:"websiteId",label:"Website ID",placeholder:"WEBSITE_ID"}]},{id:"admin-integrations-polar-connect",name:"Connect Polar",path:"/api/v1/admin/websites/{websiteId}/integrations/polar",description:"Connect Polar",category:"Account API",method:"POST",requiresBody:!0,tokenPrefixes:["df_","dft_"],docSlug:"api-admin-integrations",pathParams:[{key:"websiteId",label:"Website ID",placeholder:"WEBSITE_ID"}]},{id:"admin-integrations-polar-disconnect",name:"Disconnect Polar",path:"/api/v1/admin/websites/{websiteId}/integrations/polar",description:"Disconnect Polar",category:"Account API",method:"DELETE",tokenPrefixes:["df_","dft_"],docSlug:"api-admin-integrations",pathParams:[{key:"websiteId",label:"Website ID",placeholder:"WEBSITE_ID"}]},{id:"admin-integrations-paddle-connect",name:"Connect Paddle",path:"/api/v1/admin/websites/{websiteId}/integrations/paddle",description:"Connect Paddle",category:"Account API",method:"POST",requiresBo
1dy:!0,tokenPrefixes:["df_","dft_"],docSlug:"api-admin-integrations",pathParams:[{key:"websiteId",label:"Website ID",placeholder:"WEBSITE_ID"}]},{id:"admin-integrations-paddle-disconnect",name:"Disconnect Paddle",path:"/api/v1/admin/websites/{websiteId}/integrations/paddle",description:"Disconnect Paddle",category:"Account API",method:"DELETE",tokenPrefixes:["df_","dft_"],docSlug:"api-admin-integrations",pathParams:[{key:"websiteId",label:"Website ID",placeholder:"WEBSITE_ID"}]},{id:"admin-integrations-shopify-disconnect",name:"Disconnect Shopify",path:"/api/v1/admin/websites/{websiteId}/integrations/shopify",description:"Disconnect Shopify",category:"Account API",method:"DELETE",tokenPrefixes:["df_","dft_"],docSlug:"api-admin-integrations",pathParams:[{key:"websiteId",label:"Website ID",placeholder:"WEBSITE_ID"}]},{id:"admin-integrations-woocommerce-disconnect",name:"Disconnect WooCommerce",path:"/api/v1/admin/websites/{websiteId}/integrations/woocommerce",description:"Disconnect WooCommerce",category:"Account API",method:"DELETE",tokenPrefixes:["df_","dft_"],docSlug:"api-admin-integrations",pathParams:[{key:"websiteId",label:"Website ID",placeholder:"WEBSITE_ID"}]},{id:"bot-traffic-usage",name:"Bot Traffic Allowance",path:"/api/v1/admin/bot-traffic/usage",description:"Get account-wide Bot traffic usage and allowance",category:"Bot traffic",method:"GET",tokenPrefixes:["dft_"],docSlug:"api-bot-traffic-usage"},{id:"bot-traffic-settings-get",name:"Get Bot Traffic Settings",path:"/api/v1/admin/websites/{websiteId}/bot-traffic/settings",description:"Get settings and the crawler company/agent catalog",category:"Bot traffic",method:"GET",tokenPrefixes:["dft_"],docSlug:"api-bot-traffic-settings-get",pathParams:[{key:"websiteId",label:"Website ID",placeholder:"WEBSITE_ID"}]},{id:"bot-traffic-settings-update",name:"Update Bot Traffic Settings",path:"/api/v1/admin/websites/{websiteId}/bot-traffic/settings",description:"Update verification, authentication, and crawler ingestion",category:"Bot traffic",method:"PATCH",requiresBody:!0,tokenPrefixes:["dft_"],docSlug:"api-bot-traffic-settings-update",pathParams:[{key:"websiteId",label:"Website ID",placeholder:"WEBSITE_ID"}]},{id:"bot-traffic-token-get",name:"Get Bot Traffic Token Status",path:"/api/v1/admin/websites/{websiteId}/bot-traffic/token",description:"Check request-authentication token status",category:"Bot traffic",method:"GET",tokenPrefixes:["dft_"],docSlug:"api-bot-traffic-token-get",pathParams:[{key:"websiteId",label:"Website ID",placeholder:"WEBSITE_ID"}]},{id:"bot-traffic-token-create",name:"Create Bot Traffic Token",path:"/api/v1/admin/websites/{websiteId}/bot-traffic/token",description:"Create a dfbot_ request-authentication token",category:"Bot traffic",method:"POST",tokenPrefixes:["dft_"],docSlug:"api-bot-traffic-token-create",pathParams:[{key:"websiteId",label:"Website ID",placeholder:"WEBSITE_ID"}]},{id:"bot-traffic-token-rotate",name:"Rotate Bot Traffic Token",path:"/api/v1/admin/websites/{websiteId}/bot-traffic/token",description:"Rotate the dfbot_ token and invalidate the previous value",category:"Bot traffic",method:"PUT",tokenPrefixes:["dft_"],docSlug:"api-bot-traffic-token-rotate",pathParams:[{key:"websiteId",label:"Website ID",placeholder:"WEBSITE_ID"}]},{id:"bot-traffic-token-delete",name:"Delete Bot Traffic Token",path:"/api/v1/admin/websites/{websiteId}/bot-traffic/token",description:"Revoke the dfbot_ token and turn auth enforcement off",category:"Bot traffic",method:"DELETE",tokenPrefixes:["dft_"],docSlug:"api-bot-traffic-token-delete",pathParams:[{key:"websiteId",label:"Website ID",placeholder:"WEBSITE_ID"}]}],es=["hour","day","week","month"],ei=["name","visitors","sessions","revenue","payments","conversion_rate"],en=[{value:"is",label:"is"},{value:"is_not",label:"is not"},{value:"contains",label:"contains"},{value:"does_not_contain",label:"does not contain"}],er={"notes-create":{text:"Launched the new landing page",timestamp:"2026-09-05T10:00:00Z",idempotencyKey:"landing-page-deploy-abc123"},"notes-update":{text:"Updated landing page headline"},"create-goal":{datafast_visitor_id:"visitor-id-from-cookie",name:"newsletter_signup",metadata:{email:"[email protected]"}},"create-payment":{amount:29.99,currency:"USD",transaction_id:"payment_456",datafast_visitor_id:"VISITOR ID"},identify:{user_id:"user_123",datafast_visitor_id:"visitor-id-from-cookie",email:"[email protected]",plan:"pro"},"admin-account-update":{name:"Jane Doe"},"admin-tokens-create":{name:"Read only agent",permissions:["analytics:read","websites:read","funnels:read"],websiteIds:[]},"admin-websites-create":{domain:"example.com",timezone:"America/Ne
1w_York",name:"Example"},"admin-website-update":{name:"New name",kpi:"signup",kpiColorScheme:"green",includeRenewalRevenue:!0},"admin-apikeys-create":{name:"Production key"},"admin-funnels-create":{name:"Signup funnel",steps:[{name:"Landing page",type:"pageview",url:"/"},{name:"Signup page",type:"pageview",url:"/signup"},{name:"Signed up",type:"goal",goalName:"signup"}]},"admin-funnels-update":{name:"Updated funnel",isActive:!0},"admin-alerts-create":{name:"New signup",trigger:{goalName:"signup"},template:{subject:"New signup",message:"A visitor completed signup."},isEnabled:!0},"admin-alerts-update":{name:"Updated alert",isEnabled:!1},"admin-team-invite":{email:"[email protected]",role:"viewer"},"admin-team-remove":{userId:"USER_ID"},"admin-integrations-stripe-connect":{stripeRak:"rk_live_..."},"admin-integrations-lemonsqueezy-connect":{lemonsqueezyApiKey:"YOUR_API_KEY",lemonsqueezyStoreId:"YOUR_STORE_ID"},"admin-integrations-polar-connect":{polarAccessToken:"YOUR_ACCESS_TOKEN",polarOrgId:"YOUR_ORG_ID"},"admin-integrations-paddle-connect":{paddleApiKey:"pdl_live_..."},"bot-traffic-settings-update":{verifiedOnly:!0,disableCompanies:["Meta"]}};function eo(e){let t=er[e.id];return t?JSON.stringify(t,null,2):""}function el(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=(e.pathParams||[]).reduce((e,a)=>(e[a.key]=t[a.key]||a.defaultValue||a.placeholder||"",e),{});return t.websiteId&&!a.websiteId&&(a.websiteId=t.websiteId),a}function ec(e){return e.tokenPrefixes||["df_","dft_"]}function ed(e){let t=ec(e);return 1===t.length&&"dft_"===t[0]?"Account token":1===t.length&&"df_"===t[0]?"Website API key":"API key or account token"}function ep(e,t){return ec(t).some(t=>e.startsWith(t))}function em(e){let{method:t}=e,a=(t||"GET").toUpperCase();return(0,s.jsx)("span",{className:"inline-flex h-min shrink-0 rounded-md px-1.5 py-0.5 text-[0.6rem] font-semibold leading-tight ".concat({GET:"bg-green-400/20 text-green-700 dark:text-green-600",POST:"bg-blue-400/20 text-blue-700 dark:text-blue-500",PUT:"bg-yellow-400/20 text-yellow-700 dark:text-yellow-600",PATCH:"bg-orange-400/20 text-orange-700 dark:text-orange-500",DELETE:"bg-red-400/20 text-red-700 dark:text-red-600"}[a]||"bg-base-200 text-base-content"),children:a})}let eu=e=>{let t=ea.find(t=>t.id===e);if(null==t?void 0:t.docSlug)return t.docSlug;let a={timeseries:"api-timeseries",overview:"api-overview",metadata:"api-metadata",realtime:"api-realtime","realtime-map":"api-realtime-map",pages:"api-pages","exit-clicks":"api-exit-clicks",referrers:"api-referrers",countries:"api-countries",regi
1ons:"api-regions",cities:"api-cities",devices:"api-devices",browsers:"api-browsers","operating-systems":"api-operating-systems",campaigns:"api-campaigns",hostnames:"api-hostnames",goals:"api-goals","visitors-list":"api-list-visitors",visitor:"api-get-visitor","create-goal":"api-create-goal","create-payment":"api-create-payment","delete-goal":"api-delete-goal","delete-payment":"api-delete-payment"}[e]||"api-introduction";return et[a]||a},eh=[{name:"Location",filters:[{key:"country",label:"Country",placeholder:"e.g. United States, India"},{key:"region",label:"Region",placeholder:"e.g. California, Maharashtra"},{key:"city",label:"City",placeholder:"e.g. San Francisco, Mumbai"}]},{name:"Device & Browser",filters:[{key:"device",label:"Device",placeholder:"e.g. Desktop, Mobile"},{key:"browser",label:"Browser",placeholder:"e.g. Chrome, Safari"},{key:"os",label:"OS",placeholder:"e.g. Windows, macOS"}]},{name:"Traffic Source",filters:[{key:"referrer",label:"Referrer",placeholder:"e.g. Google, Twitter"},{key:"ref",label:"Ref",placeholder:"e.g. newsletter"},{key:"source",label:"Source",placeholder:"e.g. email"},{key:"via",label:"Via",placeholder:"e.g. twitter"}]},{name:"UTM Parameters",filters:[{key:"utm_source",label:"UTM Source",placeholder:"e.g. google"},{key:"utm_medium",label:"UTM Medium",placeholder:"e.g. cpc"},{key:"utm_campaign",label:"UTM Campaign",placeholder:"e.g. summer_sale"},{key:"utm_term",label:"UTM Term",placeholder:"e.g. analytics"},{key:"utm_content",label:"UTM Content",placeholder:"e.g. banner"}]},{name:"Page & Hostname",filters:[{key:"page",label:"Page",placeholder:"e.g. /pricing",supportsContains:!0},{key:"entry_page",label:"Entry Page",placeholder:"e.g. /",supportsContains:!0},{key:"hostname",label:"Hostname",placeholder:"e.g. example.com"}]},{name:"Goals",filters:[{key:"goal",label:"Goal",placeholder:"e.g. signup, purchase"}]}];function eA(e){let{value:t,onChange:a}=e,[n,r]=(0,i.useState)(""),[o,l]=(0,i.useState)(!1),[c,d]=(0,i.useState)({}),p=(0,i.useRef)(null),m=(0,i.useRef)(null),u=(0,i.useMemo)(()=>(0,J.MW)().map(e=>({...e,currentTime:K()().tz(e.name).format("h:mm A")})),[]);(0,i.useEffect)(()=>{let e=e=>{p.current&&!p.current.contains(e.target)&&(l(!1),r(""))};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]),(0,i.useEffect)(()=>{let e=e=>{"Escape"===e.key&&(l(!1),r(""))};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[]),(0,i.useEffect)(()=>{if(!o)return;let e=()=>{var e;let t=null===(e=m.current)||void 0===e?void 0:e.getBoundingClientRect();if(!t)return;let a=Math.min(t.width,window.innerWidth-24);d({left:Math.min(t.left,window.innerWidth-a-12),top:t.bottom+4,width:a})};return e(),window.addEventListener("resize",e),window.addEventListener("scroll",e,!0),()=>{window.removeEventListener("resize",e),window.removeEventListener("scroll",e,!0)}},[o]);let h=e=>e.toLowerCase().replace(/[_\-/\s]+/g," ").trim(),A=u.filter(e=>{let t=h(n);if(!t)return!0;let a=h("".concat(e.region," ").concat(e.city)),s=h("".concat(e.region," - ").concat(e.city)),i=h(e.name),r=e.utcOffsetStr.toLowerCase(),o=h("".concat(e.region).concat(e.city)).replace(/\s+/g,""),l=t.replace(/\s+/g,"");return a.includes(t)||s.includes(t)||i.includes(t)||r.includes(t)||o.includes(l)}),g=u.find(e=>e.name===t),f=e=>{a(e),l(!1),r("")};return(0,s.jsxs)("div",{className:"relative w-full",ref:p,children:[(0,s.jsxs)("button",{ref:m,type:"button",className:"input input-sm flex w-full cursor-pointer items-center justify-between border-base-content/10 text-left duration-100 ".concat(o?"bg-base-200":""),onClick:()=>{l(e=>!e)},children:[(0,s.jsx)("span",{className:"flex-1 select-none truncate",children:g?(0,s.jsxs)("span",{className:"flex items-center justify-between gap-2",children:[(0,s.jsx)("span",{className:"truncate",children:g.city?"".concat(g.region," - ").concat(g.city):g.region}),(0,s.jsx)("span",{className:"shrink-0 text-base-content/60",children:g.currentTime})]}):(0,s.jsxs)("span",{className:"flex items-center justify-between gap-2",children:[(0,s.jsx)("span",{className:"truncate",children:"Website's timezone"}),(0,s.jsx)("span",{className:"shrink-0 text-base-content/60",children:"Default"})]})}),(0,s.jsx)("svg",{className:"ml-2 h-3 w-3 shrink-0 text-base-content/60 opacity-80 transition-transform duration-200 ".concat(o?"rotate-180":""),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]}),o&&(0,s.jsxs)("div",{className:"fixed z-[99999] overflow-hidden rounded-lg border-base-content/10 bg-base-100 shadow-lg ring-1 ring-base-content/10",style:c,children:[(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)("input",{type:"text",className:"input input-sm w-full rounded-b-none border-0 pl-9 placeholder:opacity-60 focus:ring-0 focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2",placeholder:"Search timezone...",value:n,onChange:e=>r(e.target.value),onClick:e=>e.stopPropagation(),autoFocus:!0}),(0,s.jsx)("div",{className:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3",children:(0,s.jsx)("svg",{className:"text-base-secondary h-4 w-4 opacity-80",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})})})]}),(0,s.jsxs)("div",{className:"max-h-60 overflow-auto overscroll-y-contain border-t border-t-base-content/5",children:[(0,s.jsx)("button",{type:"button",className:"block w-full px-4 py-2 text-left text-sm hover:bg-base-300 ".concat(""===t?"bg-primary/10 text-primary":""),onClick:()=>f(""),children:(0,s.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,s.jsx)("span",{className:"truncate font-medium",children:"Website's timezone"}),(0,s.jsx)("span",{className:"shrink-0 text-xs text-base-content/60",children:"Default"})]})}),A.map(e=>(0,s.jsx)("button",{type:"button",className:"block w-full px-4 py-1.5 text-left text-sm hover:bg-base-300 ".concat(t===e.name?"bg-primary/10 text-primary":""),onClick:()=>f(e.name),children:(0,s.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,s.jsx)("span",{className:"truncate",children:e.city?"".concat(e.region," - ").concat(e.city):e.region}),(0,s.jsx)("span",{className:"shrink-0 text-base-content/60",children:e.currentTime})]})},e.name)),0===A.length&&(0,s.jsx)("div",{className:"px-4 py-2 text-sm text-base-content/60",children:"No timezones found"})]})]})]})}function eg(){var e;let t=(0,H.useSearchParams)(),a=(0,H.useRouter)(),n=(0,H.usePathname)(),r="https://datafa.st",o=null==t?void 0:t.get("endpoint"),l=o&&ea.find(e=>e.id===o)||ea[0],[c,d]=(0,i.useState)(l),[p,m]=(0,i.useState)(""),[u,h]=(0,i.useState)("timeseries"===l.id?["visitors"]:[]),[A,g]=(0,i.useState)([]),[f,b]=(0,i.useState)("day"),[x,v]=(0,i.useState)(""),[y,w]=(0,i.useState)(()=>el(l)),[k,E]=(0,i.useState)(()=>eo(l)),[j,I]=(0,i.useState)(""),[N,C]=(0,i.useState)(""),[_,S]=(0,i.useState)(""),[P,B]=(0,i.useState)(""),[T,D]=(0,i.useState)(""),[R,W]=(0,i.useState)(""),[L,U]=(0,i.useState)(""),[G,M]=(0,i.useState)(""),[V,F]=(0,i.useState)(100),[O,Y]=(0,i.useState)(0),[Z,X]=(0,i.useState)({}),[z,K]=(0,i.useState)(null),[J,Q]=(0,i.useState)(!1),[$,et]=(0,i.useState)("response");(0,i.useEffect)(()=>{let e=localStorage.getItem("apiPlaygroundKey");e&&m(e)},[]),(0,i.useEffect)(()=>
1{if(p&&(p.startsWith("df_")||p.startsWith("dft_")))localStorage.setItem("apiPlaygroundKey",p);else if(""===p)localStorage.removeItem("apiPlaygroundKey");else if(p&&!p.startsWith("df_")&&!p.startsWith("dft_")&&p.length>=3){let e=setTimeout(()=>{q.ZP.error("Invalid token: Must start with 'df_' or 'dft_'",{id:"api-key-warning"})},1e3);return()=>clearTimeout(e)}},[p]),(0,i.useEffect)(()=>{let e=null==t?void 0:t.get("endpoint");if(e){let t=ea.find(t=>t.id===e);t&&t.id!==c.id&&(d(t),X({}),g([]),w(e=>el(t,e)),E(eo(t)),"timeseries"===t.id&&0===u.length&&h(["visitors"]))}},[t,c.id,u.length]);let er=e=>{let s=new URLSearchParams((null==t?void 0:t.toString())||"");s.set("endpoint",e),a.replace("".concat(n,"?").concat(s.toString()),{scroll:!1})},[eg,ef]=(0,i.useState)(!1),[eb,ex]=(0,i.useState)(!1),[ev,ey]=(0,i.useState)(""),[ew,ek]=(0,i.useState)(!1),[eE,ej]=(0,i.useState)(!1),[eI,eN]=(0,i.useState)(!1),[eC,e_]=(0,i.useState)(!1),[eS,eP]=(0,i.useState)(null),eB=(0,i.useRef)(null),eT=(0,i.useRef)(null),eD=(0,i.useRef)(null);(0,i.useEffect)(()=>{let e=e=>{eT.current&&!eT.current.contains(e.target)&&(ef(!1),ey("")),eD.current&&!eD.current.contains(e.target)&&ex(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]),(0,i.useEffect)(()=>{let e=e=>{"Escape"===e.key&&(ef(!1),ex(!1),eP(null),ey(""))};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[]),(0,i.useEffect)(()=>{let e=e=>{eB.current&&!eB.current.contains(e.target)&&eP(null)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]);let eR=(e,t,a)=>{X(s=>{let i={...s},n=i[e]||{operator:"is",value:""};return"operator"===t?i[e]={...n,operator:a}:a&&a.trim()?i[e]={...n,value:a}:delete i[e],i})},eW=()=>{let e=c.path;c.requiresVisitorId&&(e=e.replace("{visitor_id}",x||"VISITOR_ID")),(c.pathParams||[]).forEach(t=>{e=e.replace("{".concat(t.key,"}"),encodeURIComponent(y[t.key]||t.placeholder||t.key))});let t=[];"goal-properties"===c.id&&(t.push("eventName=".concat(encodeURIComponent(R))),L&&t.push("propertyName=".concat(encodeURIComponent(L)))),c.requiresFields&&t.push("fields=".concat(encodeURIComponent(u.join(",")))),c.validFields&&A.length>0&&t.push("fields=".concat(encodeURIComponent(A.join(",")))),c.requiresInterval&&t.push("interval=".concat(encodeURIComponent(f))),c.supportsFilters&&(_&&t.push("startAt=".concat(_)),P&&t.push("endAt=".concat(P)),G&&t.push("timezone=".concat(encodeURIComponent(G))),!1!==c.supportsLimitOffset&&(100!==V&&t.push("limit=".concat(V)),0!==O&&t.push("offset=".concat(O))),Object.entries(Z).forEach(e=>{let[a,s]=e;if(("goal-properties"!==c.id||ee.includes(a))&&s&&s.value){let{operator:e,value:i}=s,n="is"===e&&"goal-properties"!==c.id?i:"".concat(e,":").concat(i);t.push("filter_".concat(a,"=").concat(encodeURIComponent(n)))}})),c.supportsTimeRange&&!c.supportsFilters&&(_&&t.push("startAt=".concat(_)),P&&t.push("endAt=".concat(P)),c.supportsTimezone&&G&&t.push("timezone=".concat(encodeURIComponent(G))),c.supportsPagination&&(100!==V&&t.push("limit=".concat(V)),0!==O&&t.push("offset=".concat(O)))),"delete-payment"===c.id&&(T&&t.push("transaction_id=".concat(encodeURIComponent(T))),x&&t.push("datafast_visitor_id=".concat(encodeURIComponent(x)))),"delete-goal"===c.id&&(x&&t.push("datafast_visitor_id=".concat(encodeURIComponent(x))),R&&t.push("name=".concat(encodeURIComponent(R)))),p.startsWith("dft_")&&!c.path.startsWith("/api/v1/admin")&&y.websiteId&&t.push("websiteId=".concat(encodeURIComponent(y.websiteId))),c.supportsTimelineSearch&&j.trim()&&t.push("q="+encodeURIComponent(j.trim())),"mentions-list"===c.id&&N&&t.push("platform="+encodeURIComponent(N));let a=t.join("&");return a?"".concat(e,"?").concat(a):e},eL=async()=>{if(!p){q.ZP.error("Please enter an API key or account token");return}if(!ep(p,c)){q.ZP.error("".concat(ed(c)," must start with ").concat(ec(c).join(" or ")));return}if(p.startsWith("dft_")&&!c.path.startsWith("/api/v1/admin")&&!y.websiteId){q.ZP.error("Website ID is required when using a dft_ token here");return}Q(!0),K(null);try{let e={method:c.method||"GET",headers:{Authorization:"Bearer ".concat(p),"Content-Type":"application/json"}};
1c.requiresBody&&(e.body=k);let t=await fetch("".concat(r).concat(eW()),e),a=await t.json();K(a)}catch(e){K({error:e.message}),q.ZP.error("Request failed")}finally{Q(!1)}},eU=()=>{let e="".concat(r).concat(eW()),t=c.method||"GET";return c.requiresBody?"curl -X ".concat(t,' "').concat(e,'" \\\n  -H "Authorization: Bearer ').concat(p||"YOUR_API_KEY",'" \\\n  -H "Content-Type: application/json" \\\n  -d \'').concat(k,"'"):"curl -X ".concat(t,' "').concat(e,'" \\\n  -H "Authorization: Bearer ').concat(p||"YOUR_API_KEY",'"')},eG=()=>{let e="".concat(r).concat(eW()),t=c.method||"GET";return c.requiresBody?'const response = await fetch("'.concat(e,'", {\n  method: "').concat(t,'",\n  headers: {\n    "Authorization": "Bearer ').concat(p||"YOUR_API_KEY",'",\n    "Content-Type": "application/json"\n  },\n  body: JSON.stringify(').concat(k,")\n});\n\nconst data = await response.json();\nconsole.log(data);"):'const response = await fetch("'.concat(e,'", {\n  method: "').concat(t,'",\n  headers: {\n    "Authorization": "Bearer ').concat(p||"YOUR_API_KEY",'"\n  }\n});\n\nconst data = await response.json();\nconsole.log(data);')},eM=()=>{let e;if("curl"===$)e=eU();else if("fetch"===$)e=eG();else{if("response"!==$||!z)return;e=JSON.stringify(z,null,2)}navigator.clipboard.writeText(e),q.ZP.success("Copied to clipboard")},eV=(0,i.useMemo)(()=>{let e=ev.trim().toLowerCase();return e?ea.filter(t=>{let a=t.method||"GET";return[t.name,t.path,t.description,t.category,a].filter(Boolean).join(" ").toLowerCase().includes(e)}):ea},[ev]).reduce((e,t)=>(e[t.category]||(e[t.category]=[]),e[t.category].push(t),e),{});return(0,s.jsxs)("div",{className:"not-prose my-8 space-y-6 rounded-[1.3rem] border border-base-content/5 bg-neutral/5 p-6 shadow-sm dark:bg-neutral/50",children:[(0,s.jsx)("div",{className:"flex items-center justify-between border-b border-base-content/5 pb-4",children:(0,s.jsxs)("div",{children:[(0,s.jsx)("h3",{className:"text-xl font-bold",children:"API Playground"}),(0,s.jsx)("p",{className:"text-sm opacity-60",children:"Test website and account API endpoints interactively"})]})}),(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)("label",{className:"label",children:(0,s.jsx)("span",{className:"label-text text-sm font-semibold",children:"Endpoint"})}),(0,s.jsxs)("div",{className:"relative w-full",ref:eT,children:[(0,s.jsxs)("div",{className:"input input-sm flex w-full cursor-pointer items-center justify-between border-base-content/10 font-mono text-sm duration-100 ".concat(eg?"bg-base-200":""),onClick:()=>ef(!eg),children:[(0,s.jsxs)("div",{className:"flex min-w-0 flex-1 select-none items-center gap-2",children:[(0,s.jsx)(em,{method:c.method}),(0,s.jsx)("span",{className:"truncate",children:c.path})]}),(0,s.jsx)("div",{className:"pointer-events-none",children:(0,s.jsx)("svg",{className:"h-3 w-3 text-base-content/60 opacity-80",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})})]}),eg&&(0,s.jsxs)("div",{className:"absolute z-[9999] mt-1 w-full overflow-hidden rounded-lg border border-base-content/10 bg-base-100 shadow-lg ring-1 ring-base-content/10",children:[(0,s.jsxs)("div",{className:"relative border-b border-base-content/5",children:[(0,s.jsx)("input",{type:"text",className:"input input-sm w-full rounded-none border-0 pl-9 font-mono text-sm placeholder:font-sans placeholder:opacity-60 focus:ring-0 focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2",placeholder:"Search endpoints...",value:ev,onChange:e=>ey(e.target.value),onClick:e=>e.stopPropagation(),autoFocus:!0}),(0,s.jsx)("div",{className:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3",children:(0,s.jsx)("svg",{className:"text-base-secondary h-4 w-4 opacity-80",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})})})]}),(0,s.jsx)("div",{className:"max-h-60 overflow-auto overscroll-y-contain",children:Object.entries(eV).length>0?Object.entries(eV).map(e=>
1{let[t,a]=e;return(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"bg-base-200/50 px-4 py-2 text-xs font-semibold uppercase tracking-wider text-base-content/60",children:t}),a.map(e=>(0,s.jsxs)("button",{className:"flex w-full items-center gap-2 px-4 py-2 text-left font-mono text-sm hover:bg-base-300 ".concat(c.id===e.id?"bg-primary/10 text-primary":""),onClick:()=>{d(e),X({}),g([]),ey(""),w(t=>el(e,t)),E(eo(e)),"timeseries"===e.id&&0===u.length&&h(["visitors"]),ef(!1),er(e.id),"delete-payment"===e.id?(D("tx_123"),v(""),S(""),B("")):"delete-goal"===e.id&&(v(""),W(""),S(""),B(""))},children:[(0,s.jsx)(em,{method:e.method}),(0,s.jsx)("span",{className:"truncate",children:e.path})]},e.id))]},t)}):(0,s.jsx)("div",{className:"px-4 py-3 text-sm text-base-content/60",children:"No endpoints found"})})]})]}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("p",{className:"text-xs opacity-60",children:c.description}),(0,s.jsx)("span",{children:"•"}),(0,s.jsx)("a",{href:"/docs/".concat(eu(c.id)),className:"text-xs text-primary opacity-80 transition-opacity hover:underline hover:opacity-100",target:"_blank",rel:"noopener noreferrer",children:"Jump to Docs →"})]})]}),(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)("label",{className:"label",children:(0,s.jsx)("span",{className:"label-text text-sm font-semibold",children:ed(c)})}),(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)("input",{type:"password",placeholder:ec(c).join(" or "),className:"input input-sm input-bordered w-full pr-10 font-mono text-sm ".concat(p&&!ep(p,c)?"input-error":""),value:p,onChange:e=>m(e.target.value),autoComplete:"off"}),p&&(0,s.jsx)("button",{type:"button",onClick:()=>{m(""),localStorage.removeItem("apiPlaygroundKey"),q.ZP.success("API key cleared")},className:"btn btn-ghost btn-xs absolute right-1 top-1/2 h-7 min-h-0 w-7 -translate-y-1/2 p-0","data-tooltip-id":"tooltip","data-tooltip-content":"Clear API key",children:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-4 w-4 opacity-60 hover:opacity-100",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),(0,s.jsxs)("p",{className:"mt-1 text-[10px] ".concat(p&&!ep(p,c)?"text-error":"text-base-content/60"),children:["This endpoint accepts"," ",(0,s.jsx)("span",{className:"font-mono font-bold",children:ec(c).join(" or ")}),"."," ",(0,s.jsx)("a",{href:"/docs/api-authentication",className:"text-primary hover:underline",target:"_blank",rel:"noopener noreferrer",children:"Auth and scopes"})]})]}),(c.requiresVisitorId||(null===(e=c.pathParams)||void 0===e?void 0:e.length)>0||p.startsWith("dft_")&&!c.path.startsWith("/api/v1/admin"))&&(0,s.jsxs)("div",{className:"rounded-lg border border-base-content/5 bg-base-200/30 p-4",children:[(0,s.jsx)("div",{className:"mb-3 text-xs font-semibold uppercase tracking-wide opacity-60",children:"Path and required parameters"}),(0,s.jsxs)("div",{className:"grid gap-3 sm:grid-cols-2",children:[c.requiresVisitorId&&(0,s.jsxs)("div",{className:"form-control",children:[(0,s.jsx)("label",{className:"label py-1",children:(0,s.jsx)("span",{className:"label-text text-xs opacity-70",children:"Visitor ID"})}),(0,s.jsx)("input",{type:"text",className:"input input-xs input-bordered font-mono text-xs",placeholder:"visitor-id-from-cookie",value:x,onChange:e=>v(e.target.value)})]}),(c.pathParams||[]).map(e=>(0,s.jsxs)("div",{className:"form-control",children:[(0,s.jsx)("label",{className:"label py-1",children:(0,s.jsx)("span",{className:"label-text text-xs opacity-70",children:e.label})}),(0,s.jsx)("input",{type:"text",className:"input input-xs input-bordered font-mono text-xs",placeholder:e.placeholder,value:y[e.key]||"",onChange:t=>w(a=>({...a,[e.key]:t.target.value}))})]},e.key)),p.startsWith("dft_")&&!c.path.startsWith("/api/v1/admin")&&(0,s.jsxs)("div",{className:"form-control",children:[(0,s.jsx)("label",{className:"label py-1",children:(0,s.jsx)("span",{className:"label-text text-xs opacity-70",children:"Website ID"})}),(0,s.jsx)("input",{type:"text",className:"input input-xs input-bordered font-mono text-xs",placeholder:"Required with dft_ token",value:y.websiteId||"",onChange:e=>w(t=>({...t,websiteId:e.target.value}))})]})]})]}
1),c.requiresBody&&(0,s.jsxs)("div",{className:"space-y-2 rounded-xl border border-base-content/5 bg-base-200/30 p-5",children:[(0,s.jsx)("div",{className:"text-sm font-semibold",children:"Request Body (JSON)"}),(0,s.jsx)("textarea",{className:"textarea textarea-bordered w-full font-mono text-sm",rows:"10",value:k,onChange:e=>E(e.target.value)})]}),(c.requiresFields||c.requiresInterval)&&(0,s.jsxs)("div",{className:"space-y-4 rounded-xl border border-base-content/5 bg-base-200/30 p-5",children:[(0,s.jsx)("div",{className:"text-sm font-semibold",children:"Parameters"}),c.requiresFields&&(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsx)("label",{className:"label py-0",children:(0,s.jsxs)("span",{className:"label-text text-sm font-medium",children:["Fields ",(0,s.jsx)("span",{className:"text-xs opacity-60",children:"(required)"})]})}),(0,s.jsx)("div",{className:"flex flex-wrap gap-3",children:ei.map(e=>(0,s.jsxs)("label",{className:"label cursor-pointer justify-start gap-2 py-0",children:[(0,s.jsx)("input",{type:"checkbox",className:"checkbox-primary checkbox checkbox-sm",checked:u.includes(e),onChange:t=>{if(t.target.checked)h([...u,e]);else{if(c.requiresFields&&u.length<=1){q.ZP.error("At least one field must be selected");return}h(u.filter(t=>t!==e))}}}),(0,s.jsx)("span",{className:"label-text font-mono text-sm",children:e})]},e))})]}),c.requiresInterval&&(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)("label",{className:"label py-0",children:(0,s.jsx)("span",{className:"label-text text-sm font-medium",children:"Interval"})}),(0,s.jsxs)("div",{className:"relative w-full",ref:eD,children:[(0,s.jsxs)("div",{className:"input input-sm flex w-full cursor-pointer items-center justify-between border-base-content/10 font-mono duration-100 ".concat(eb?"bg-base-200":""),onClick:()=>ex(!eb),children:[(0,s.jsx)("div",{className:"flex-1 select-none truncate",children:f}),(0,s.jsx)("div",{className:"pointer-events-none",children:(0,s.jsx)("svg",{className:"h-3 w-3 text-base-content/60 opacity-80",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})})]}),eb&&(0,s.jsx)("div",{className:"absolute z-[9999] mt-1 w-full overflow-hidden rounded-lg border border-base-content/10 bg-base-100 shadow-lg ring-1 ring-base-content/10",children:(0,s.jsx)("div",{className:"max-h-60 overflow-auto overscroll-y-contain",children:es.map(e=>(0,s.jsx)("button",{className:"block w-full px-4 py-2 text-left font-mono text-sm hover:bg-base-300 ".concat(f===e?"bg-primary/10 text-primary":""),onClick:()=>{b(e),ex(!1)},children:e},e))})})]})]})]}),"goal-properties"===c.id&&(0,s.jsxs)("div",{className:"space-y-3 rounded-xl border border-base-content/5 bg-base-200/30 p-4",children:[(0,s.jsxs)("label",{className:"block space-y-1",htmlFor:"goal-property-event",children:[(0,s.jsx)("span",{className:"text-sm font-medium",children:"Goal name"}),(0,s.jsx)("input",{id:"goal-property-event",className:"input input-sm input-bordered w-full",value:R,onChange:e=>W(e.target.value),placeholder:"signup",required:!0,maxLength:64})]}),(0,s.jsxs)("label",{className:"block space-y-1",htmlFor:"goal-property-name",children:[(0,s.jsx)("span",{className:"text-sm font-medium",children:"Property name (optional)"}),(0,s.jsx)("input",{id:"goal-property-name",className:"input input-sm input-bordered w-full",value:L,onChange:e=>U(e.target.value),placeholder:"plan",maxLength:200,"aria-describedby":"goal-property-help"})]}),(0,s.jsx)("p",{id:"goal-property-help",className:"text-base-secondary text-xs",children:"Leave the property empty to discover its names. Then enter a returned name to compare completions and visitors by value."})]}),c.validFields&&!c.requiresFields&&(0,s.jsxs)("div",{className:"overflow-hidden rounded-xl border border-base-content/5 bg-base-200/30",children:[(0,s.jsxs)("button",{className:"flex w-full items-center justify-between px-4 py-3 text-left text-sm font-semibold",onClick:()=>eN(!eI),children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"opacity-70",children:[(0,s.jsx)("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),(0,s.jsx)("polyline",{points:"14 2 14 8 20 8"}),(0,s.jsx)("line",{x1:"16",y1:"13",x2:"8",y2:"13"}),(0,s.jsx)("line",{x1:"16",y1:"17",x2:"8",y2:"17"}),(0,s.jsx)("polyline",{points:"10 9 9 9 8 9"})]}),(0,s.jsxs)("span",{children:["Response Fields"," ",(0,s.jsx)("span",{className:"text-xs font-normal opacity-60",children:"(optional)"})]})]}),(0,s.jsx)("svg",{className:"h-4 w-4 transition-transform duration-200 ".concat(eI?"rotate-180":""),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]}),(0,s.jsx)("div",{className:"overflow-hidden transition-all duration-300 ease-in-out ".concat(eI?"max-h-[500px] opacity-100":"max-h-0 opacity-0"),children:(0,s.jsxs)("div",{className:"space-y-3 px-4 pb-4 pt-2",children:[(0,s.jsx)("p",{className:"text-xs opacity-60",children:"Select specific fields to include in the response, or leave empty for all fields"}),(0,s.jsx)("div",{className:"flex flex-wrap gap-3",children:c.validFields.map(e=>(0,s.jsxs)("label",{className:"label cursor-pointer justify-start gap-2 py-0",children:[(0,s.jsx)("input",{type:"checkbox",className:"checkbox-primary checkbox checkbox-sm",checked:A.includes(e),onChange:t=>{t.target.checked?g([...A,e]):g(A.filter(t=>t!==e))}}),(0,s.jsx)("span",{className:"label-text font-mono text-sm",children:e})]},e))})]})})]}),c.supportsTimelineSearch&&(0,s.jsxs)("div",{className:"grid gap-3 sm:grid-cols-2",children:[(0,s.jsxs)("label",{className:"block text-sm font-medium",children:["Search",(0,s.jsx)("input",{value:j,onChange:e=>I(e.target.value),maxLength:200,placeholder:"mentions-list"===c.id?"Text, author, URL, or subreddit":"Note text",className:"input input-sm input-bordered mt-1 w-full"})]}),"mentions-list"===c.id&&(0,s.jsxs)("label",{className:"block text-sm font-medium",children:["Platform",(0,s.jsxs)("select",{value:N,onChange:e=>C(e.target.value),className:"select select-bordered select-sm mt-1 w-full cursor-pointer",children:[(0,s.jsx)("option",{value:"",children:"X and Reddit"}),(0,s.jsx)("option",{value:"x",children:"X"}),(0,s.jsx)("option",{value:"reddit",children:"Reddit"})]})]})]}),(c.supportsFilters||c.supportsTimeRange)&&(0,s.jsxs)("div",{className:"overflow-hidden rounded-xl border border-base-content/5 bg-base-200/30",children:[(0,s.jsxs)("button",{className:"flex w-full items-center justify-between px-4 py-3 text-left text-sm font-semibold",onClick:()=>ek(!ew),children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"opacity-70",children:[(0,s.jsx)("rect",{x:"3",y:"4",width:"18",height:"18",rx:"2",ry:"2"}),(0,s.jsx)("line",{x1:"16",y1:"2",x2:"16",y2:"6"}),(0,s.jsx)("line",{x1:"8",y1:"2",x2:"8",y2:"6"}),(0,s.jsx)("line",{x1:"3",y1:"10",x2:"21",y2:"10"})]}),(0,s.jsxs)("span",{children:["Date Range & Options"," ",c.supportsTimeRange&&!c.timeRangeOptional&&!c.supportsDeleteParams&&(0,s.jsx)("span",{className:"text-xs font-normal opacity-60",children:"(Required)"}),c.supportsDeleteParams&&(0,s.jsx)("span",{className:"text-xs font-normal opacity-60",children:"(Optional)"})]})]}),(0,s.jsx)("svg",{className:"h-4 w-4 transition-transform duration-200 ".concat(ew?"rotate-180":""),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]}),(0,s.jsx)("div",{className:"overflow-hidden transition-all duration-300 ease-in-out ".concat(ew?"max-h-[500px] opacity-100":"max-h-0 opacity-0"),children:(0,s.jsxs)("div",{className:"space-y-4 px-4 pb-4 pt-2",children:[(0,s.jsxs)("div",{className:"grid gap-4 sm:grid-cols-2",children:[(0,s.jsxs)("div",{className:"hover-group form-control",children:[(0,s.jsx)("label",{className:"label pt-0",children:(0,s.jsx)("span",{className:"label-text text-xs font-medium opacity-70 group-hover:opacity-100",children:"Start At"})}),(0,s.jsx)("input",{type:"date",className:"input input-sm input-bordered font-mono text-xs",value:_,onCh
1ange:e=>S(e.target.value)})]}),(0,s.jsxs)("div",{className:"hover-group form-control",children:[(0,s.jsx)("label",{className:"label pt-0",children:(0,s.jsx)("span",{className:"label-text text-xs font-medium opacity-70 group-hover:opacity-100",children:"End At"})}),(0,s.jsx)("input",{type:"date",className:"input input-sm input-bordered font-mono text-xs",value:P,onChange:e=>B(e.target.value)})]})]}),(c.supportsFilters||c.supportsTimezone||c.supportsPagination)&&(0,s.jsxs)("div",{className:"grid gap-4 ".concat(c.supportsFilters&&!1!==c.supportsLimitOffset||c.supportsPagination?"sm:grid-cols-[minmax(0,1.15fr)_minmax(0,0.925fr)_minmax(0,0.925fr)]":"sm:grid-cols-1"),children:[(c.supportsFilters||c.supportsTimezone)&&(0,s.jsxs)("div",{className:"hover-group form-control",children:[(0,s.jsx)("label",{className:"label pt-0",children:(0,s.jsx)("span",{className:"label-text text-xs font-medium opacity-70 group-hover:opacity-100",children:"Timezone"})}),(0,s.jsx)(eA,{value:G,onChange:M})]}),(c.supportsFilters&&!1!==c.supportsLimitOffset||c.supportsPagination)&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"hover-group form-control",children:[(0,s.jsx)("label",{className:"label pt-0",children:(0,s.jsx)("span",{className:"label-text text-xs font-medium opacity-70 group-hover:opacity-100",children:"Limit"})}),(0,s.jsx)("input",{type:"number",className:"input input-sm input-bordered font-mono text-xs",value:V,onChange:e=>F(parseInt(e.target.value)||100),min:"1",max:"1000"})]}),(0,s.jsxs)("div",{className:"hover-group form-control",children:[(0,s.jsx)("label",{className:"label pt-0",children:(0,s.jsx)("span",{className:"label-text text-xs font-medium opacity-70 group-hover:opacity-100",children:"Offset"})}),(0,s.jsx)("input",{type:"number",className:"input input-sm input-bordered font-mono text-xs",value:O,onChange:e=>Y(parseInt(e.target.value)||0),min:"0"})]})]})]})]})})]}),c.supportsDeleteParams&&(0,s.jsxs)("div",{className:"overflow-hidden rounded-xl border border-base-content/5 bg-base-200/30",children:[(0,s.jsxs)("button",{className:"flex w-full items-center justify-between px-4 py-3 text-left text-sm font-semibold",onClick:()=>e_(!eC),children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"opacity-70",children:(0,s.jsx)("polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"})}),(0,s.jsxs)("span",{children:["Filters"," ",(0,s.jsx)("span",{className:"text-xs font-normal opacity-60",children:"(optional)"})]})]}),(0,s.jsx)("svg",{className:"h-4 w-4 transition-transform duration-200 ".concat(eC?"rotate-180":""),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]}),(0,s.jsx)("div",{className:"overflow-hidden transition-all duration-300 ease-in-out ".concat(eC?"max-h-[500px] opacity-100":"max-h-0 opacity-0"),children:(0,s.jsxs)("div",{className:"space-y-4 px-4 pb-4 pt-2",children:[(0,s.jsx)("p",{className:"text-xs opacity-50",children:"Specify filters to delete specific records. Leave empty to delete all records in the time range."}),"delete-payment"===c.id&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"hover-group form-control",children:[(0,s.jsx)("label",{className:"label pt-0",children:(0,s.jsx)("span",{className:"label-text text-xs font-medium opacity-70 group-hover:opacity-100",children:"Transaction ID"})}),(0,s.jsx)("input",{type:"text",className:"input input-sm input-bordered font-mono text-xs",placeholder:"e.g. tx_123",value:T,onChange:e=>D(e.target.value)}),(0,s.jsx)("label",{className:"label pt-0",children:(0,s.jsx)("span",{className:"label-text-alt text-xs opacity-50",children:"Delete a specific payment by transaction ID (highest priority)"})})]}),(0,s.jsxs)("div",{className:"hover-group form-control",children:[(0,s.jsx)("label",{className:"label pt-0",children:(0,s.jsx)("span",{className:"label-text text-xs font-medium opacity-70 group-hover:opacity-100",children:"Visitor ID"})}),(0,s.jsx)("input",{type:"text",className:"input input-sm input-bordered font-mono text-xs",placeholder:"e.g. abc123",value:x,onChange:e=>v(e.target.value)}),(0,s.jsx)("label",{className:"label pt-0",children:(0,s.jsx)("span",{className:"label-text-alt text-xs opacity-50",children:"Delete all payments for this visitor"})})]})]}),"delete-goal"===c.id&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"hover-group form-control",children:[(0,s.jsx)("label",{className:"label pt-0",children:(0,s.jsx)("span",{className:"label-text text-xs font-medium opacity-70 group-hover:opacity-100",children:"Visitor ID"})}),(0,s.jsx)("input",{type:"text",className:"input input-sm input-bordered font-mono text-xs",placeholder:"e.g. abc123",value:x,onChange:e=>v(e.target.value)}),(0,s.jsx)("label",{className:"label pt-0",children:(0,s.jsx)("span",{className:"label-text-alt text-xs opacity-50",children:"Delete all goals for this visitor"})})]}),(0,s.jsxs)("div",{className:"hover-group form-control",children:[(0,s.jsx)("label",{className:"label pt-0",children:(0,s.jsx)("span",{className:"label-text text-xs font-medium opacity-70 group-hover:opacity-100",children:"Goal Name"})}),(0,s.jsx)("input",{type:"text",className:"input input-sm input-bordered font-mono text-xs",placeholder:"e.g. signup, purchase",value:R,onChange:e=>W(e.target.value)}),(0,s.jsx)("label",{className:"label pt-0",children:(0,s.jsx)("span",{className:"label-text-alt text-xs opacity-50",children:"Delete all goals with this event name (
1auto-formatted)"})})]})]}),(0,s.jsxs)("div",{className:"alert alert-warning py-2",children:[(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-4 w-4 shrink-0 stroke-current",fill:"none",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})}),(0,s.jsx)("span",{className:"text-xs",children:"Without time range, ALL matching records across all time will be deleted!"})]})]})})]}),c.supportsFilters&&(0,s.jsxs)("div",{className:"rounded-xl border border-base-content/5 bg-base-200/30 ".concat(eE&&eS?"overflow-visible":"overflow-hidden"),children:[(0,s.jsxs)("button",{className:"flex w-full items-center justify-between px-4 py-3 text-left text-sm font-semibold",onClick:()=>ej(!eE),children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"opacity-70",children:(0,s.jsx)("polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"})}),(0,s.jsx)("span",{children:"Filters"})]}),(0,s.jsx)("svg",{className:"h-4 w-4 transition-transform duration-200 ".concat(eE?"rotate-180":""),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]}),(0,s.jsx)("div",{className:"overflow-hidden transition-all duration-300 ease-in-out ".concat(eE?"max-h-[2000px] opacity-100":"max-h-0 opacity-0"),children:(0,s.jsxs)("div",{className:"space-y-5 px-4 pb-4 pt-2",children:[(0,s.jsx)("p",{className:"text-xs opacity-50",children:'Use comma-separated values for multiple matches (e.g., "Chrome, Safari")'}),eh.filter(e=>"goal-properties"!==c.id||e.filters.some(e=>ee.includes(e.key))).map(e=>(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"mb-2 text-xs font-semibold uppercase tracking-wider opacity-50",children:e.name}),(0,s.jsx)("div",{className:"grid grid-cols-1 gap-3",children:e.filters.map(e=>{if("goal-properties"===c.id&&!ee.includes(e.key))return null;let t=Z[e.key]||{operator:"is",value:""},a="goal-properties"===c.id&&"page"!==e.key?en.filter(e=>["is","is_not"].includes(e.value)):en,i=a.find(e=>e.value===t.operator)||a[0],n=eS===e.key;return(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)("label",{className:"label py-0",children:(0,s.jsx)("span",{className:"label-text text-xs opacity-70",children:e.label})}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsxs)("div",{className:"relative w-40",ref:n?eB:null,children:[(0,s.jsxs)("div",{className:"input input-sm flex w-full cursor-pointer items-center justify-between border-base-content/10 text-xs duration-100 ".concat(n?"bg-base-200":""),onClick:()=>eP(n?null:e.key),children:[(0,s.jsx)("span",{className:"flex-1 select-none truncate",children:i.label}),(0,s.jsx)("svg",{className:"h-4 w-4 shrink-0 transition-transform duration-200 ".concat(n?"rotate-180":""),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]}),n&&(0,s.jsx)("div",{className:"absolute z-[9999] mt-1 w-full overflow-hidden rounded-lg border-base-content/10 bg-base-100 shadow-lg ring-1 ring-base-content/10",children:(0,s.jsx)("div",{className:"max-h-40 overflow-auto overscroll-y-contain",children:a.map(a=>(0,s.jsx)("button",{className:"flex w-full items-center px-3 py-2 text-left text-xs hover:bg-base-300 ".concat(t.operator===a.value?"bg-primary/10 text-primary":""),onClick:()=>{eR(e.key,"operator",a.value),eP(null)},children:a.label},a.value))})})]}),(0,s.jsx)("input",{type:"text",placeholder:e.placeholder,className:"input input-sm input-bordered flex-1 font-mono text-xs",value:t.value,onChange:t=>eR(e.key,"value",t.target.value)})]})]},e.key)})})]},e.name))]})})]}),(0,s.jsx)("button",{className:"btn btn-primary btn-sm w-full",onClick:eL,disabled:J,children:J?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"loading loading-spinner loading-xs"}),"Loading..."]}):"Run Request"}),(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsxs)("div",{className:"-m-1 grid grid-cols-3 rounded-xl bg-neutral/5 p-1 shadow-inner dark:bg-neutral/50",children:[(0,s.jsx)("button",{className:"flex cursor-pointer select-none items-center justify-center gap-1.5 rounded-lg px-2 py-1.5 text-sm font-medium transition-all ".concat("response"===$?"animate-popup bg-base-100 shadow":""),onClick:()=>et("response"),children:"Response"}),(0,s.jsx)("button",{className:"flex cursor-pointer select-none items-center justify-center gap-1.5 rounded-lg px-2 py-1.5 text-sm font-medium transition-all ".concat("curl"===$?"animate-popup bg-base-100 shadow":""),onClick:()=>et("curl"),children:"cURL"}),(0,s.jsx)("button",{className:"flex cursor-pointer select-none items-center justify-center gap-1.5 rounded-lg px-2 py-1.5 text-sm font-medium transition-all ".concat("fetch"===$?"animate-popup bg-base-100 shadow":""),onClick:()=>et("fetch"),children:"Fetch"})]}),(0,s.jsx)("div",{className:"relative overflow-hidden rounded-xl bg-neutral text-neutral-content",children:"response"===$?(0,s.jsxs)("div",{children:[z&&(0,s.jsx)("button",{className:"btn btn-square btn-ghost btn-xs absolute right-3 top-3 opacity-75 hover:opacity-100",onClick:eM,title:"Copy response",children:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"size-4",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 17.25v3.375c0 .621-.504 1.125-1.125 1.125h-9.75a1.125 1.125 0 0 1-1.125-1.125V7.875c0-.621.504-1.125 1.125-1.125H6.75a9.06 9.06 0 0 1 1.5.124m7.5 10.376h3.375c.621 0 1.125-.504 1.125-1.125V11.25c0-4.46-3.243-8.161-7.5-8.876a9.06 9.06 0 0 0-1.5-.124H9.375c-.621 0-1.125.504-1.125 1.125v3.5m7.5 10.375H9.375a1.125 1.125 0 0 1-1.125-1.125v-9.25m12 6.625v-1.875a3.375 3.375 0 0 0-3.375-3.375h-1.5a1.125 1.125 0 0 1-1.125-1.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H9.7
15"})})}),(0,s.jsx)("div",{className:"max-h-96 overflow-auto p-5 font-mono text-sm",children:J?(0,s.jsx)("div",{className:"flex h-32 items-center justify-center",children:(0,s.jsx)("span",{className:"loading loading-spinner loading-md"})}):z?(0,s.jsx)("pre",{className:"whitespace-pre-wrap text-xs text-neutral-content",children:JSON.stringify(z,null,2)}):(0,s.jsx)("div",{className:"flex h-32 items-center justify-center text-neutral-content/60",children:"Run a request to see results"})})]}):(0,s.jsxs)("div",{children:[(0,s.jsx)("button",{className:"btn btn-square btn-ghost btn-xs absolute right-3 top-3 opacity-75 hover:opacity-100",onClick:eM,title:"Copy code",children:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"size-4",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 17.25v3.375c0 .621-.504 1.125-1.125 1.125h-9.75a1.125 1.125 0 0 1-1.125-1.125V7.875c0-.621.504-1.125 1.125-1.125H6.75a9.06 9.06 0 0 1 1.5.124m7.5 10.376h3.375c.621 0 1.125-.504 1.125-1.125V11.25c0-4.46-3.243-8.161-7.5-8.876a9.06 9.06 0 0 0-1.5-.124H9.375c-.621 0-1.125.504-1.125 1.125v3.5m7.5 10.375H9.375a1.125 1.125 0 0 1-1.125-1.125v-9.25m12 6.625v-1.875a3.375 3.375 0 0 0-3.375-3.375h-1.5a1.125 1.125 0 0 1-1.125-1.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H9.75"})})}),(0,s.jsx)("pre",{className:"max-h-96 overflow-auto p-5 font-mono text-xs",children:"curl"===$?eU():eG()})]})})]})]})}function ef(e){return e?"string"==typeof e?e:"text"===e.type?e.value:"element"===e.type&&e.children||Array.isArray(e.children)?e.children.map(ef).join(""):"":""}function eb(e){let{language:t,rawCode:a,title:n}=e,[r,o]=(0,i.useState)(!1);return t||n||a?(0,s.jsxs)("div",{className:"flex items-center justify-between rounded-t-box border-b border-neutral-content/10 bg-neutral px-4 py-2 text-xs text-neutral-content",children:[(0,s.jsx)("span",{className:"opacity-60",children:n||t}),(0,s.jsx)("button",{onClick:()=>{a&&"string"==typeof a?navigator.clipboard.writeText(a).then(()=>{q.ZP.success("Copied to clipboard"),o(!0),setTimeout(()=>o(!1),2e3)}):console.warn("CodeBlockHeader: No raw code content to copy.")},className:"btn btn-square btn-ghost btn-xs","aria-label":"Copy code",disabled:!a,children:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"size-5 ".concat(r?"opacity-100":"opacity-80"," ").concat(a?"":"opacity-30"),children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 17.25v3.375c0 .621-.504 1.125-1.125 1.125h-9.75a1.125 1.125 0 0 1-1.125-1.125V7.875c0-.621.504-1.125 1.125-1.125H6.75a9.06 9.06 0 0 1 1.5.124m7.5 10.376h3.375c.621 0 1.125-.504 1.125-1.125V11.25c0-4.46-3.243-8.161-7.5-8.876a9.06 9.06 0 0 0-1.5-.124H9.375c-.621 0-1.125.504-1.125 1.125v3.5m7.5 10.375H9.375a1.125 1.125 0 0 1-1.125-1.125v-9.25m12 6.625v-1.875a3.375 3.375 0 0 0-3.375-3.375h-1.5a1.125 1.125 0 0 1-1.125-1.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H9.75"})})})]}):null}function ex(e){let{endpointSlug:t}=e,a="api-overview"!==t&&"api-timeseries"!==t,i={"api-timeseries":"timeseries","api-overview":"overview","api-metadata":"metadata","api-realtime":"realtime","api-devices":"devices","api-pages":"pages","api-exit-clicks":"exit-clicks","api-campaigns":"campaigns","api-goals":"goals","api-referrers":"referrers","api-countries":"countries","api-regions":"regions","api-cities":"cities","api-browsers":"browsers","api-operating-systems":"operating-systems","api-hostnames":"hostnames","api-get-visitor":"visitor","api-create-goal":"create-goal","api-create-payment":"create-payment"}[t]||null,n=["api-timeseries","api-overview","api-metadata","api-realtime","api-devices","api-pages","api-exit-clicks","api-campaigns","api-goals","api-referrers","api-countries","api-regions","api-cities","api-browsers","api-operating-systems","api-hostnames"].includes(t),o="api-timeseries"===t,d="api-overview"===t,m="api-metadata"===t,u="api-realtime"===t,h=n&&!m&&!u,A=()=>{if(o)return"Comma-separated list of fields to return. Valid fields: `visitors`, `sessions`, `revenue`, `payments`, `conversion_rate`, `name`.";if(d)return"Comma-separated list of fields to return. Valid fields: `visitors`, `sessions`, `bounce_rate`, `avg_session_duration`, `currency`, `revenue`, `payments`, `revenue_per_visitor`, `conversion_rate`. If not specified, all fields are returned.";if("api-metadata"===t)return"Comma-separated list of fields to return. Valid fields: `domain`, `timezone`, `name`, `kpiColorScheme`, `kpi`, `currency`. If not specified, all fields are returned.";if("api-realtime"===t)return"Comma-separated list of fields to return. Valid field: `visitors`. If not specified, all fields are returned.";if("api-pages"===t)return"Comma-separated list of fields to return. Valid fields: `hostname`, `path`, `visitors`, `revenue`, `payments`. If not specified, all fields are returned.";if("api-exit-clicks"===t)return"Comma-separated list of fields to return. Valid fields: `url`, `visitors`, `clicks`. If not specified, all fields are returned.";if("api-referrers"===t)return"Comma-separated list of fields to return. Valid fields: `referrer`, `visitors`, `revenue`, `payments`. If not specified, all fields are returned.";else if("api-countries"===t)return"Comma-separated list of fields to return. Valid fields: `country`, `image`, `visitors`, `revenue`, `payments`. If not specified, all fields are returned.";else if("api-regions"===t)return"Comma-separated list of fields to return. Valid fields: `region`, `visitors`, `revenue`, `payments`. If not specified, all fields are returned.";else if("api-cities"===t)return"Comma-separated list of fields to return. Valid fields: `city`, `visitors`, `revenue`, `payments`. If not specified, all fields are returned.";else if("api-devices"===t)return"Comma-separated list of fields to return. Valid fields: `device`, `visitors`, `revenue`, `payments`. If not specified, all fields are returned.";else if("api-browsers"===t)return"Comma-separated list of fields to return. Valid fields: `browser`, `visitors`, `revenue`, `payments`. If not specified, all fields are returned.";else if("api-operating-systems"===t)return"Comma-separated list of fields to return. Valid fields: `operating_system`, `visitors`, `revenue`, `payments`. If not specified, all fields are returned.";else if("api-campaigns"===t)return"Comma-separated list of fields to return. Valid fields: `utm_source`, `utm_medium`, `utm_campaign`, `utm_term`, `utm_content`, `ref`, `source`, `via`, `visitors`, `revenue`, `payments`. If not specified, all fields are returned.";else if("api-hostnames"===t)return"Comma-separated list of fields to return. Valid fields: `hostname`, `visitors`, `revenue`, `payments`. If not specified, all fields are returned.";else if("api-goals"===t)return"Comma-separated list of fields to return. Valid fields: `name`, `completions`, `visitors`. If not specified, all fields are returned.";return"Comma-separated list of fields to return. If not specified, all fields are returned."},g=o?"### Required Parameters\n\n- **`fields`** (string): ".concat(A(),"\n\n"):"",f=u?"### Optional Parameters\n\n- **`fields`** (string): ".concat(A()):"".concat(g,"### Optional Parameters\n\n").concat(o?"":"- **`fields`** (string): ".concat(A(),"\n\n"),"- **`startAt`** (string): Start date/time in ISO 8601 format (e.g., 2024-01-01T00:00:00Z or 2024-01-01). ").concat(o?"If omitted, defaults are applied based on interval:\n  - hour: last 24 hours\n  - day or week: last 30 days\n  - month: last 12 months":"If omitted, returns all-time data","\n\n- **`endAt`** (string): End date/time in ISO 8601 format. Must be provided together with `startAt` if using custom date range\n\n- **`timezone`** (string): Timezone for data aggregation (e.g., UTC, America/Ne
1w_York, Europe/Amsterdam). Defaults to your website's timezone if not specified").concat(a?"\n\n- **`limit`** (number): Maximum number of results to return (1-1000, default: 100)\n\n- **`offset`** (number): Number of results to skip for pagination (default: 0)":""),b="You can filter the data using simple, direct query parameters. Just pass the parameter name with comma-separated values:\n\n**Available Filters:**\n\n#### Location Filters\n- **`country`** (string): Filter by country name or code (e.g., United States, US)\n  - Example: country=United States,Canada\n- **`region`** (string): Filter by region/state\n  - Example: region=California,New York\n- **`city`** (string): Filter by city name\n  - Example: city=San Francisco,New York\n\n#### Device & Browser Filters\n- **`device`** (string): Filter by device type (desktop, mobile, tablet)\n  - Example: device=mobile,tablet\n- **`browser`** (string): Filter by browser name (e.g., Chrome, Safari, Firefox, Edge)\n  - Note: Filtering by Safari automatically includes Mobile Safari\n  - Example: browser=Chrome,Safari\n- **`os`** (string): Filter by operating system (e.g., Mac OS, Windows, iOS, Android)\n  - Example: os=Mac OS,Windows\n\n#### Traffic Source Filters\n- **`referrer`** (string): Filter by referrer domain or popular referrer name (e.g., google.com, Google, Facebook, Direct/None)\n  - Supports popular referrer names that get automatically normalized to domains\n  - Example: referrer=google.com,facebook.com\n- **`ref`** (string): Filter by ref URL parameter\n  - Example: ref=twitter,newsletter\n- **`source`** (string): Filter by source URL parameter\n  - Example: source=google,facebook\n- **`via`** (string): Filter by via URL parameter\n  - Example: via=affiliate,partner\n\n#### UTM Parameter Filters\n- **`utm_source`** (string): Filter by UTM source parameter\n  - Example: utm_source=google,facebook\n- **`utm_medium`** (string): Filter by UTM medium parameter (e.g., cpc, email, social)\n  - Example: utm_medium=cpc,email\n- **`utm_campaign`** (string): Filter by UTM campaign parameter\n  - Example: utm_campaign=summer_sale,product_launch\n- **`utm_term`** (string): Filter by UTM term parameter (typically used for keywords)\n  - Example: utm_term=keyword1,keyword2\n- **`utm_content`** (string): Filter by UTM content parameter\n  - Example: utm_content=ad_variant_a,ad_variant_b\n\n#### Page & Content Filters\n- **`page`** or **`entry_page`** (string): Filter by page path/URL\n  - Example: page=/pricing,/about\n- **`hostname`** (string): Filter by hostname/domain\n  - Example: hostname=example.com,www.example.com\n\n**Multiple Filter Example:**\n\n```http\nGET ".concat("/api/v1/analytics/".concat(i||"timeseries"),"?").concat(o?"metric=visitors&interval=day&":"","country=United States,Canada\n  &device=mobile\n  &utm_source=google\n  &page=/pricing\n```\n\nSee [DataFast filters documentation](/docs/datafast-filters) for more details on using filters in the dashboard."),x={a:e=>{let{children:t,href:a}=e;return(0,s.jsx)(r.default,{className:"underline decoration-base-content/30 underline-offset-2 duration-100 hover:text-primary hover:decoration-primary",href:a,children:t})},code:e=>{let{inline:t,className:a,children:i,...n}=e;return(null==a?void 0:a.includes("hljs"))?(0,s.jsx)(s.Fragment,{children:i}):(0,s.jsx)("code",{className:"mx-0.5 cursor-pointer whitespace-pre-wrap rounded-lg border border-base-content/10 bg-base-100 px-1.5 py-1 text-sm text-base-content hover:bg-base-200 dark:border-base-content/20",onClick:()=>{navigator.clipboard.writeText(i),q.ZP.success("Copied to clipboard")},...n,children:i})},pre:e=>{var t,a,i;let{node:n,children:r,...o}=e,l=n.children.find(e=>"code"===e.tagName),c="",d="";return(null==l?void 0:null===(t=l.properties)||void 0===t?void 0:t.className)?(c=(null===(i=l.properties.className.join(" ").match(/language-(\S+)/))||void 0===i?void 0:i[1])||"",d=ef(l)):(null===(a=n.children[0])||void 0===a?void 0:a.tagName)==="code"&&(d=ef(n.children[0])),(0,s.jsxs)("div",{className:"not-prose my-4 overflow-hidden rounded-box border border-neutral-content/10 bg-neutral",children:[(0,s.jsx)(eb,{language:c,rawCode:d}),(0,s.jsx)("pre",{className:"overflow-x-auto p-4 text-sm text-neutral-content",children:r})]})}};return(0,s.jsx)(s.Fragment,{children:n&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("h2",{className:"mb-4 mt-8 text-2xl font-semibold tracking-tight text-base-content",children:"Query Parameters"}),(0,s.jsx)("div",{className:"mb-6",children:(0,s.jsx)("article",{className:"prose dark:prose-invert prose-headings:tracking-tight prose-headings:text-base-content prose-h3:mb-3 prose-h3:text-lg prose-p:mb-4 prose-p:text-[var(--base-secondary)] prose-strong:text-base-content prose-ul:mb-4 prose-li:text-[var(--base-secondary)]",children:(0,s.jsx)(l.U,{rehypePlugins:[p.Z,c.Z],components:x,children:f})})}),h&&(0,s.jsxs)("div",{className:"mb-6",children:[(0,s.jsx)("h2",{className:"mb-3 mt-8 text-2xl font-semibold tracking-tight text-base-content",children:"Filter parameters"}),(0,s.jsx)("p",{className:"mb-5 text-base-secondary",children:"Filter parameters narrow analytics results to matching visitors, pages, sources, devices, locations, campaigns, and custom URL parameters. They are optional and can be combined with date ranges, pagination, and selected response fields."}),(0,s.jsx)("article",{className:"prose dark:prose-invert prose-headings:tracking-tight prose-headings:text-base-content prose-h3:mb-5 prose-h3:text-lg prose-h3:mt-6 prose-h4:mb-4 prose-h4:text-base prose-h4:mt-5 prose-p:mb-5 prose-p:text-[var(--base-secondary)] prose-strong:text-base-content prose-ul:mb-6 prose-ul:mt-4 prose-li:mb-3 prose-li:text-[var(--base-secondary)]",children:(0,s.jsx)(l.U,{rehypePlugins:[p.Z,c.Z],components:x,children:b})})]})]})})}var ev=a(44414),ey=a(278),ew=a(90764),ek=a(40457),eE=a(82023),ej=a(23707);a(57792);let eI="docs_api_example_language";function eN(e){let t=(0,o.u5)(e);return t?(0,o.PI)(t):"/docs/".concat(e)}function eC(e){let{slug:t}=e,a={"api-timeseries":"timeseries","api-overview":"overview","api-metadata":"metadata","api-realtime":"realtime","api-devices":"devices","api-pages":"pages","api-campaigns":"campaigns","api-referrers":"referrers","api-countries":"countries","api-regions":"regions","api-cities":"cities","api-browsers":"browsers","api-operating-systems":"operating-systems","api-hostnames":"hostnames","api-list-visitors":"visitors-list","api-get-visitor":"visitor","api-create-goal":"create-goal","api-create-payment":"create-payment","api-delete-goal":"delete-goal","api-delete-payment":"delete-payment","api-visitors":"visitors-list","api-analytics":"timeseries","api-breakdowns":"pages","api-goals":"goals","api-payments":"create-payment","api-identify":"identify","api-funnel-analytics":"funnel-analytics","api-bot-traffic":"bot-traffic-summary","api-bot-traffic-summary":"bot-traffic-summary","api-bot-traffic-pages":"bot-traffic-pages","api-bot-traffic-usage":"bot-traffic-usage","api-bot-traffic-settings-get":"bot-traffic-settings-get","api-bot-traffic-settings-update":"bot-traffic-settings-update","api-bot-traffic-token-get":"bot-traffic-token-get","api-bot-traffic-token-create":"bot-traffic-token-create","api-bot-traffic-token-rotate":"bot-traffic-token-rotate","api-bot-traffic-token-delete":"bot-traffic-token-delete","api-admin-account":"admin-account-get","a
1pi-admin-access-tokens":"admin-tokens-list","api-admin-websites":"admin-websites-list","api-admin-website-keys":"admin-apikeys-list","api-admin-goals":"admin-website-goals","api-admin-funnels":"admin-funnels-list","api-admin-alerts":"admin-alerts-list","api-admin-team":"admin-team-list","api-admin-integrations":"admin-integrations-list"}[t];return a?(0,s.jsxs)(r.default,{href:"".concat(eN("api-playground"),"?endpoint=").concat(a),className:"btn btn-primary btn-sm mb-8 mt-2 inline-flex items-center gap-2",children:[(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"lucide lucide-sparkles",children:[(0,s.jsx)("path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z"}),(0,s.jsx)("path",{d:"M20 2v4"}),(0,s.jsx)("path",{d:"M22 4h-4"}),(0,s.jsx)("circle",{cx:"4",cy:"20",r:"2"})]}),"Try on Playground"]}):null}function e_(){return(0,s.jsx)(i.Suspense,{fallback:(0,s.jsx)("div",{className:"not-prose my-8 rounded-[1.3rem] border border-base-content/5 bg-neutral/5 p-6 shadow-sm dark:bg-neutral/50",children:(0,s.jsx)("div",{className:"flex items-center justify-center py-8",children:(0,s.jsx)("span",{className:"loading loading-spinner loading-md"})})}),children:(0,s.jsx)(eg,{})})}let eS=[{label:"OpenAI",icon:ew.default,className:"dark:invert"},{label:"Anthropic",icon:ek.default},{label:"Gemini",icon:eE.default},{label:"Google",icon:{src:"/_next/static/media/icon-google.75ff387e.webp",height:217,width:640,blurDataURL:"data:image/webp;base64,UklGRoIAAABXRUJQVlA4WAoAAAAQAAAABwAAAgAAQUxQSBkAAAAARwwVHggjTBt0hmtvpnSncCwUIC0viBgsAFZQOCBCAAAA8AEAnQEqCAADAAJAOCWwAnQ4AADx1UoAAOJ8neX+dJVVX94sXSYkwJsHJ+HSuPtAuT/I8R/q139NnlWiad7/2YAA",blurWidth:8,blurHeight:3}},{label:"Microsoft",icon:ej.default}];function eP(){return(0,s.jsx)("div",{className:"not-prose my-5 flex flex-wrap gap-2",children:eS.map(e=>(0,s.jsxs)("div",{className:"flex items-center gap-2 rounded-xl border border-base-content/5 bg-base-200/60 px-3 py-2 text-sm font-medium text-base-content",children:[(0,s.jsx)("span",{className:"grid size-7 shrink-0 place-items-center rounded-lg bg-base-100 shadow-sm",children:(0,s.jsx)(n.default,{src:e.icon,alt:"".concat(e.label," icon"),className:"size-4 object-contain ".concat(e.className||"")})}),(0,s.jsx)("span",{children:e.label})]},e.label))})}function eB(e){return e?"string"==typeof e?e:"text"===e.type?e.value:"element"===e.type&&e.children||Array.isArray(e.children)?e.children.map(eB).join(""):"":""}function eT(e){let{language:t,rawCode:a,title:n}=e,[r,o]=(0,i.useState)(!1);return t||n||a?(0,s.jsxs)("div",{className:"flex items-center justify-between rounded-t-box border-b border-neutral-content/10 bg-neutral px-4 py-2 text-xs text-neutral-content",children:[(0,s.jsx)("span",{className:"opacity-60",children:n||t}),(0,s.jsx)("button",{onClick:()=>{a&&"string"==typeof a?navigator.clipboard.writeText(a).then(()=>{q.ZP.success("Copied to clipboard"),o(!0),setTimeout(()=>o(!1),2e3)}):console.warn("CodeBlockHeader: No raw code content to copy.")},className:"btn btn-square btn-ghost btn-xs","aria-label":"Copy code",disabled:!a,children:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"size-5 ".concat(r?"opacity-100":"opacity-80"," ").concat(a?"":"opacity-30"),children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 17.25v3.375c0 .621-.504 1.125-1.125 1.125h-9.75a1.125 1.125 0 0 1-1.125-1.125V7.875c0-.621.504-1.125 1.125-1.125H6.75a9.06 9.06 0 0 1 1.5.124m7.5 10.376h3.375c.621 0 1.125-.504 1.125-1.125V11.25c0-4.46-3.243-8.161-7.5-8.876a9.06 9.06 0 0 0-1.5-.124H9.375c-.621 0-1.125.504-1.125 1.125v3.5m7.5 10.375H9.375a1.125 1.125 0 0 1-1.125-1.125v-9.25m12 6.625v-1.875a3.375 3.375 0 0 0-3.375-3.375h-1.5a1.125 1.125 0 0 1-1.125-1.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H9.7
15"})})})]}):null}function eD(e){let{rawCode:t,label:a="Copy code"}=e,[n,r]=(0,i.useState)(!1);return(0,s.jsx)("button",{onClick:function(){t&&"string"==typeof t&&navigator.clipboard.writeText(t).then(()=>{q.ZP.success("Copied to clipboard"),r(!0),setTimeout(()=>r(!1),2e3)})},className:"btn btn-square btn-ghost btn-xs","aria-label":a,disabled:!t,type:"button",children:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"size-5 ".concat(n?"opacity-100":"opacity-80"," ").concat(t?"":"opacity-30"),children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 17.25v3.375c0 .621-.504 1.125-1.125 1.125h-9.75a1.125 1.125 0 0 1-1.125-1.125V7.875c0-.621.504-1.125 1.125-1.125H6.75a9.06 9.06 0 0 1 1.5.124m7.5 10.376h3.375c.621 0 1.125-.504 1.125-1.125V11.25c0-4.46-3.243-8.161-7.5-8.876a9.06 9.06 0 0 0-1.5-.124H9.375c-.621 0-1.125.504-1.125 1.125v3.5m7.5 10.375H9.375a1.125 1.125 0 0 1-1.125-1.125v-9.25m12 6.625v-1.875a3.375 3.375 0 0 0-3.375-3.375h-1.5a1.125 1.125 0 0 1-1.125-1.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H9.75"})})})}function eR(e){var t;return"string"==typeof e||"number"==typeof e?String(e):Array.isArray(e)?e.map(eR).join(""):(null==e?void 0:null===(t=e.props)||void 0===t?void 0:t.children)?eR(e.props.children):""}function eW(e){let{articleRef:t,contentKey:a}=e,[n,r]=(0,i.useState)([]),[o,l]=(0,i.useState)("");if((0,i.useEffect)(()=>{var e;let a=t.current;if(!a)return;let s=Array.from(a.querySelectorAll("h2[id], h3[id]")).map(e=>{var t;return{id:e.id,level:Number(e.tagName.slice(1)),title:(null===(t=e.textContent)||void 0===t?void 0:t.trim())||""}}).filter(e=>e.title);r(s),l((null===(e=s[0])||void 0===e?void 0:e.id)||"")},[t,a]),(0,i.useEffect)(()=>{if(0===n.length)return;let e=null,t=()=>{let t=n[0].id;for(let e of n){let a=document.getElementById(e.id);if(a){if(a.getBoundingClientRect().top<=112)t=e.id;else break}}window.innerHeight+window.scrollY>=document.documentElement.scrollHeight-4&&(t=n[n.length-1].id),l(e=>e===t?e:t),e=null},a=()=>{null===e&&(e=requestAnimationFrame(t))};return t(),window.addEventListener("scroll",a,{passive:!0}),window.addEventListener("resize",a),()=>{window.removeEventListener("scroll",a),window.removeEventListener("resize",a),null!==e&&cancelAnimationFrame(e)}},[n]),0===n.length)return null;let c=(e,t)=>{e.preventDefault();let a=document.getElementById(t);a&&(window.history.replaceState(null,"","#".concat(t)),a.scrollIntoView({behavior:"smooth",block:"start"}),l(t))};return(0,s.jsx)("aside",{className:"hidden w-52 shrink-0 xl:sticky xl:top-24 xl:block xl:max-h-[calc(100vh-7rem)] xl:self-start xl:overflow-y-auto",children:(0,s.jsxs)("nav",{"aria-label":"On this page",className:"border-l border-base-content/10 py-1 pl-5",children:[(0,s.jsx)("p",{className:"mb-3 text-xs font-semibold uppercase tracking-wider text-base-content/45",children:"On this page"}),(0,s.jsx)("ol",{className:"space-y-0.5",children:n.map(e=>{let t=o===e.id;return(0,s.jsx)("li",{children:(0,s.jsxs)("a",{href:"#".concat(e.id),"aria-current":t?"location":void 0,onClick:t=>c(t,e.id),className:"relative block py-1.5 text-sm leading-snug transition-colors duration-150 ".concat(3===e.level?"pl-3":""," ").concat(t?"font-medium text-primary":"text-base-content/55 hover:text-base-content"),children:[t&&(0,s.jsx)("span",{"aria-hidden":"true",className:"absolute -left-[21px] top-1/2 h-5 w-0.5 -translate-y-1/2 rounded-full bg-primary"}),e.title]})},e.id)})})]})})}function eL(e){var t;return i.Children.toArray((null==e?void 0:null===(t=e.props)||void 0===t?void 0:t.children)||[])}function eU(e){return e.replace(/`/g,"").replace(/\[\]/g,"")}function eG(e){let{row:t,childrenRows:a=[],typeIndex:n,requiredIndex:r,descriptionIndex:o,defaultOpen:l=!1}=e,[c,d]=(0,i.useState)(l),p=t[0],m=n>=0?t[n]:null,u=eR(r>=0?t[r]:null).trim().toLowerCase(),h=o>=0?t[o]:t[t.length-1],A=a.length>0;return(0,s.jsxs)("div",{className:"py-1.5",children:[(0,s.jsxs)("div",{className:"inline-flex max-w-full flex-wrap items-center gap-x-0 gap-y-0.5",children:[(0,s.jsx)("div",{className:"font-mono text-[13px] font-semibold text-base-content [&_code]:rounded-md [&_code]:border [&_c
1ode]:border-base-content/10 [&_code]:bg-base-100 [&_code]:px-1.5 [&_code]:py-0.5 [&_code]:text-[13px] [&_code]:font-semibold",children:p}),m?(0,s.jsx)("div",{className:"ml-0 text-[13px] leading-none text-base-content/55 [&_code]:!rounded [&_code]:!px-1 [&_code]:!py-0.5 [&_code]:!text-[12px] [&_code]:!leading-none",children:m}):null,"yes"===u?(0,s.jsx)("div",{className:"ml-0 rounded-full bg-amber-100 px-1.5 py-0.5 text-[10px] font-semibold lowercase leading-none text-amber-700 dark:bg-amber-400/15 dark:text-amber-300",children:"required"}):null]}),h?(0,s.jsx)("div",{className:"text-base-secondary -mt-0.5 text-[13px] leading-5 [&_code]:whitespace-normal [&_code]:!rounded [&_code]:!border [&_code]:!border-base-content/10 [&_code]:!bg-base-100 [&_code]:!px-1 [&_code]:!py-0.5 [&_code]:!text-[12px] [&_code]:!leading-none [&_code]:[overflow-wrap:anywhere]",children:h}):null,A?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("button",{type:"button",className:"mt-2 inline-flex items-center gap-1.5 rounded-full border border-base-content/10 px-3 py-1 text-xs font-semibold text-base-content/70 hover:bg-base-200 hover:text-base-content",onClick:()=>d(e=>!e),children:[(0,s.jsx)("span",{className:"text-base leading-none",children:c?"−":"+"}),c?"Hide child attributes":"Show child attributes"]}),c?(0,s.jsx)("div",{className:"mt-2 border-l border-base-content/10 pl-4",children:a.map((e,t)=>(0,s.jsx)(eG,{row:e,typeIndex:n,requiredIndex:r,descriptionIndex:o},"".concat(eR(e[0]),"-").concat(t)))}):null]}):null]})}function eM(e){let{headers:t,rows:a}=e,i=t.map(e=>eR(e).trim().toLowerCase()),n=i.indexOf("type"),r=i.indexOf("required"),o=i.indexOf("description"),l=a.map(e=>eU(eR(e[0]))),c=a.filter((e,t)=>{let a=l[t];return!l.some((e,s)=>s!==t&&a.startsWith("".concat(e,".")))}),d=e=>{let t=eU(eR(e[0]));return a.filter(e=>{let a=eU(eR(e[0])),s=a.slice(t.length+1);return a.startsWith("".concat(t,"."))&&s&&!s.includes(".")})};return(0,s.jsx)("div",{className:"not-prose my-6 space-y-1",children:c.map((e,t)=>(0,s.jsx)(eG,{row:e,childrenRows:d(e),typeIndex:n,requiredIndex:r,descriptionIndex:o},"".concat(eR(e[0]),"-").concat(t)))})}function eV(e){let{title:t,language:a,code:i}=e,n=(a||"").toLowerCase();return(0,s.jsxs)("div",{className:"not-prose overflow-hidden rounded-box border border-neutral-content/10 bg-neutral",children:[(0,s.jsx)(eT,{title:t,language:a,rawCode:i}),"json"===n?(0,s.jsx)("pre",{className:"overflow-x-auto whitespace-pre bg-[#0d1117] p-4 font-mono text-xs leading-5 text-neutral-content",children:(0,s.jsx)(eF,{code:i})}):(0,s.jsx)("div",{className:"overflow-x-auto !p-0 text-xs",children:(0,s.jsx)(l.U,{rehypePlugins:[p.Z,c.Z],children:"```".concat(a||"","\n").concat(i,"\n```")})})]})}function eF(e){let{code:t}=e,a=[],i=0;for(let e of t.matchAll(/("(?:\\.|[^"\\])*"(?=\s*:)|"(?:\\.|[^"\\])*"|true|false|null|-?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?|[{}[\],:])/g)){e.index>i&&a.push({value:t.slice(i,e.index),type:"plain"});let s=e[0],n=s.startsWith('"')?t.slice(e.index+s.length).trimStart().startsWith(":")?"key":"string":/^(true|false|null)$/.test(s)?"literal":/^-?\d/.test(s)?"number":"punctuation";a.push({value:s,type:n}),i=e.index+s.length}i<t.length&&a.push({value:t.slice(i),type:"plain"});let n={key:"text-sky-300",string:"text-emerald-300",number:"text-orange-300",literal:"text-purple-300",punctuation:"text-neutral-content/55",plain:""};return a.map((e,t)=>(0,s.jsx)("span",{className:n[e.type],children:e.value},"".concat(e.type,"-").concat(t)))}function eO(e){let{codeExamples:t}=e,a=function(e){let t=(null==e?void 0:e.request)||"",a=(null==e?void 0:e.requestLanguage)||"bash",s=[];if(t&&s.push({id:"javascript"===a?"javascript":"curl",label:"javascript"===a?"JavaScript":"cURL",language:a,code:t}),"javascript"!==a){let{method:e,url:a,body:i}=function(){var e,t,a;let s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",i=(null===(e=s.match(/curl\s+-X\s+([A-Z]+)/))||void 0===e?void 0:e[1])||"GET",n=(null===(a=s.match(/"https?:\/\/[^"]+"/))||void 0===a?void 0:null===(t=a[0])||void 0===t?void 0:t.slice(1,-1))||"",r=s.match(/-d\s+'([\s\S]*?)'`?$/m)||s.match(/-d\s+'([\s\S]*?)'/m);return{method:i,url:n,body:(null==r?void 0:r[1])||""}}(t);if(a){let t=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(!e)return"";try{return JSON.stringify(JSON.parse(e),null,2).split("\n").map((e,t)=>0===t?e:"  ".concat(e)).join("\n")}catch(t){return e}}(i);s.push({id:"javascript",label:"JavaScript",language:"javascript",code:'const response = await fetch("'.concat(a,'", {\n  method: "').concat(e,'",\n  headers: {\n    Authorization: `Bearer ${DATAFAST_API_KEY}`,').concat(i?'\n    "Content-Type": "application/json",':"","\n  },").concat(i?"\n  body: JSON.stringify(".concat(t,"),"):"","\n});\n\nconst data = await response.json();")})}}return s}(t),[n,r]=(0,i.useState)(()=>{var e;return localStorage.getItem(eI)||(null===(e=a[0])||void 0===e?void 0:e.id)}),o=a.find(e=>e.id===n)||a[0];return(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[o?(0,s.jsxs)("div",{className:"not-prose overflow-hidden rounded-box border border-neutral-content/10 bg-neutral",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between gap-3 border-b border-neutral-content/10 bg-neutral px-4 py-2 text-xs text-neutral-content",children:[(0,s.jsx)("div",{className:"flex items-center gap-2",children:(0,s.jsx)("span",{className:"font-semibold opacity-70",children:t.requestTitle||"Example request"})}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[a.length>1?(0,s.jsx)("div",{className:"flex rounded-lg border border-neutral-content/10 bg-neutral-content/5 p-0.5",children:a.map(e=>(0,s.jsx)("button",{type:"button",onClick:()=>{var t;r(t=e.id),localStorage.setItem(eI,t)},className:"rounded-md px-2 py-1 text-[11px] font-semibold transition ".concat(o.id===e.id?"bg-neutral-content text-neutral":"text-neutral-content/60 hover:text-neutral-content"),children:e.label},e.id))}):null,(0,s.jsx)(eD,{rawCode:o.code,label:"Copy example request"})]})]}),(0,s.jsx)("div",{className:"overflow-x-auto !p-0 text-xs",children:(0,s.jsx)(l.U,{rehypePlugins:[p.Z,c.Z],children:"```".concat(o.language||"","\n").concat(o.code,"\n```")})})]}):null,t.response?(0,s.jsx)(eV,{title:t.responseTitle||"Success response",language:t.responseLanguage||"json",code:t.response}):null]})}function eY(e){let{method:t}=e,a=t.toUpperCase();return(0,s.jsx)("span",{className:"inline-flex rounded-md px-1.5 py-0.5 text-[0.65rem] font-semibold leading-tight ".concat({GET:"bg-green-400/20 text-green-700 dark:text-green-600",POST:"bg-blue-400/20 text-blue-700 dark:text-blue-500",PUT:"bg-yellow-400/20 text-yellow-700 dark:text-yellow-600",PATCH:"bg-orange-400/20 text-orange-700 dark:text-orange-500",DELETE:"bg-red-400/20 text-red-700 dark:text-red-600"}[a]||"bg-base-200 text-base-content"),children:a})}function eZ(e){var t,a;let{doc:A,previousDoc:g,nextDoc:f}=e,{selectedWebsite:b}=(0,ey.z)(),x=(0,i.useRef)(null),v=A.mainContent||A.content,y=!!v&&!!A.codeExamples&&!Array.isArray(A.codeExamples)&&!A.sidebarCollapsible,w=v;if(w=(0,i.useMemo)(()=>(function(e,t){if(!e||!t)return e;let a=e;return t.trackingId&&(a=a.replaceAll("dfid_******",t.trackingId)),t.domain&&(a=(a=a.replaceAll("your_domain.com",t.domain)).replaceAll("yourdomain.com",t.domain)),t.id&&(a=(a=(a=(a=a.replaceAll("/dashboard#website-api-key","/dashboard/".concat(t.id,"/settings?tab=developer"))).replaceAll("/dashboard#managed-proxy","/dashboard/".concat(t.id,"/settings?tab=general#managed-proxy"))).replace(/\[([^\]]*?[Ss]ettings[^\]]*?)\]\(\/dashboard\)/g,"[$1](/dashboard/".concat(t.id,"/settings)"))).replace(/\[([^\]]*?)\]\(\/dashboard\)/g,"[$1](/dashboard/".concat(t.id,")"))),a})(w,b),[w,b]),y&&A.slug){let e=w.match(/^##\s+Request\s*$/im);if(e){let t=e.index;w=w.slice(0,t)+"\n\n<try-playground></try-playground>\n\n"+w.slice(t)}else{let e=w.indexOf("\n");
1-1!==e&&(w=w.slice(0,e)+"\n\n<try-playground></try-playground>\n\n"+w.slice(e))}}let k=y&&A.codeExamples?(0,s.jsx)(eO,{codeExamples:A.codeExamples}):null,E=!!w&&!y&&"api-playground"!==A.slug;return(0,s.jsxs)("div",{className:"flex ".concat(y?"flex-col lg:flex-row":"items-start gap-12"),children:[(0,s.jsxs)("div",{className:"".concat(y?"w-full flex-shrink-0 lg:w-[55%]":"w-full min-w-0 max-w-3xl flex-1"),children:[(null==A?void 0:null===(t=A.video)||void 0===t?void 0:t.playbackId)&&(0,s.jsx)(u.Z,{extraStyle:"mb-8",children:(0,s.jsx)("div",{className:"overflow-hidden rounded-box",children:(0,s.jsx)("div",{className:"aspect-video scale-[1.03] bg-base-300",children:(0,s.jsx)(h.Z,{playbackId:A.video.playbackId,poster:null===(a=A.video)||void 0===a?void 0:a.poster,autoPlay:!1,muted:!1,loop:!1,defaultHiddenCaptions:!1,style:{width:"100%",height:"100%"}})})})}),(0,s.jsx)("article",{ref:x,className:"prose dark:prose-invert prose-headings:tracking-tight prose-headings:text-base-content prose-h1:text-3xl prose-h2:mb-4 prose-h2:text-2xl prose-p:mb-4 prose-p:text-[var(--base-secondary)] prose-strong:text-base-content prose-li:text-[var(--base-secondary)]",children:(0,s.jsx)(l.U,{remarkPlugins:[m.Z],rehypePlugins:[p.Z,c.Z,d.Z],components:{..."openai"===A.titleIcon&&{h1:e=>{let{children:t,id:a}=e;return(0,s.jsxs)("h1",{id:a,className:"flex items-center gap-3",children:[(0,s.jsx)(n.default,{src:ew.default,alt:"","aria-hidden":"true",width:32,height:32,className:"!m-0 size-8 shrink-0 dark:invert"}),t]})}},h2:e=>{let{children:t,...a}=e;return(0,s.jsx)("h2",{className:"scroll-mt-24 ".concat(y?"mt-10 border-t border-base-content/10 pt-8":""),...a,children:t})},h3:e=>{let{children:t,...a}=e,i=eR(t).trim().toLowerCase();return(0,s.jsx)("h3",{className:"scroll-mt-24 ".concat(y&&("authentication"===i||"errors"===i)?"text-lg ".concat("authentication"===i?"mt-10 border-t border-base-content/10 pt-8":"mt-8"):""),...a,children:t})},"api-params":()=>["api-timeseries","api-overview","api-devices","api-pages","api-campaigns","api-goals","api-referrers","api-countries","api-regions","api-cities","api-browsers","api-operating-systems","api-hostnames","api-list-visitors","api-get-visitor","api-create-goal","api-create-payment","api-delete-goal","api-delete-payment"].includes(A.slug)?(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(ex,{endpointSlug:A.slug})}):null,"try-playground":()=>(0,s.jsx)("div",{className:"not-prose mb-6",children:(0,s.jsx)(eC,{slug:A.slug})}),pre:e=>{var t,a,i;let{node:n,children:r,...o}=e,l=n.children.find(e=>"code"===e.tagName),c="",d="";return(null==l?void 0:null===(t=l.properties)||void 0===t?void 0:t.className)?(c=(null===(i=l.properties.className.join(" ").match(/language-(\\S+)/))||void 0===i?void 0:i[1])||"",d=eB(l)):(null===(a=n.children[0])||void 0===a?void 0:a.tagName)==="code"&&(d=eB(n.children[0])),(0,s.jsxs)("div",{className:"not-prose my-4 overflow-hidden rounded-box border border-neutral-content/10 bg-neutral",children:[(0,s.jsx)(eT,{language:c,rawCode:d}),(0,s.jsx)("pre",{className:"overflow-x-auto p-4 text-xs text-neutral-content",children:r})]})},code:e=>{let{inline:t,className:a,children:i,...n}=e;if(!(null==a?void 0:a.includes("hljs"))){let e=eR(i),t=y&&(e.includes("https://")||e.includes("/api/v1/")||e.length>32);return(0,s.jsx)("code",{className:"mx-0.5 cursor-pointer rounded-lg border border-base-content/10 bg-base-100 px-1.5 py-1 text-sm text-base-content hover:bg-base-200 dark:border-base-content/20 ".concat(t?"whitespace-normal [overflow-wrap:anywhere]":"whitespace-nowrap"),onClick:()=>{navigator.clipboard.writeText(i),q.ZP.success("Copied to clipboard")},...n,children:i})}return(0,s.jsx)(s.Fragment,{children:i})},table:e=>{let{children:t}=e,a=eR(t).toLowerCase(),n=i.Children.toArray(t).flatMap(e=>eL(e).map(e=>eL(e).map(e=>{var t,a;return null!==(a=null==e?void 0:null===(t=e.props)||void 0===t?void 0:t.children)&&void 0!==a?a:e}))),r=n[0]||[],o=n.slice(1),l=a.includes("endpoint")&&a.includes("method")&&a.includes("purpose");return y&&!l&&(a.includes("field")||a.includes("parameter"))&&a.includes("description")?(0,s.jsx)(eM,{headers:r,rows:o}):(0,s.jsx)("div",{className:"not-prose my-6 overflow-x-auto",children:(0,s.jsx)("table",{className:"w-full border-collapse text-sm ".concat(l?"min-w-[52rem] [&_code]:!whitespace-nowrap":"min-w-max"),children:t})})},thead:e=>{let{children:t}=e;return(0,s.jsx)("thead",{className:"border-b border-base-content/10 text-left text-xs font-semibold uppercase tracking-wide text-base-content/50",children:t})},tbody:e=>{let{children:t}=e;return(0,s.jsx)("tbody",{className:"divide-y divide-base-content/5",children:t})},tr:e=>{let{children:t}=e;return(0,s.jsx)("tr",{children:t})},th:e=>{let{children:t}=e;return(0,s.jsx)("th",{className:"px-3 py-2 align-top font-semibold text-base-content/70 ".concat(y?"break-words [&_code]:whitespace-normal [&_code]:[overflow-wrap:anywhere]":"[&_code]:whitespace-nowrap"),children:t})},td:e=>{let{children:t}
1=e,a=eR(t).trim().toUpperCase().split(/\s*\/\s*/).filter(Boolean),i=a.length>0&&a.every(e=>["GET","POST","PUT","PATCH","DELETE"].includes(e));return(0,s.jsx)("td",{className:"px-3 py-2 align-top text-[var(--base-secondary)] [&_a]:text-base-content ".concat(y?"break-words leading-relaxed [&:nth-child(2)]:whitespace-nowrap [&:nth-child(2)]:break-normal [&:nth-child(3)]:whitespace-nowrap [&:nth-child(3)]:break-normal [&_code]:whitespace-normal [&_code]:[overflow-wrap:anywhere]":"[&_code]:whitespace-nowrap"),children:i?(0,s.jsx)("span",{className:"flex flex-wrap gap-1",children:a.map(e=>(0,s.jsx)(eY,{method:e},e))}):t})},hr:()=>(0,s.jsx)("hr",{className:"border-base-content/10"}),blockquote:e=>{let{children:t}=e;return(0,s.jsxs)("div",{className:"not-prose my-6 flex gap-2.5 rounded-box border border-primary/10 bg-primary/5 p-4 text-sm text-primary",children:[(0,s.jsxs)("svg",{viewBox:"0 0 16 16","aria-hidden":"true",className:"mt-0.5 h-4 w-4 flex-none fill-primary/90 stroke-base-100 dark:fill-primary/20 dark:stroke-primary",children:[(0,s.jsx)("circle",{cx:"8",cy:"8",r:"8",strokeWidth:"0"}),(0,s.jsx)("path",{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M6.75 7.75h1.5v3.5"}),(0,s.jsx)("circle",{cx:"8",cy:"4",r:".5",fill:"none"})]}),(0,s.jsx)("div",{className:"[&_a]:font-medium [&_a]:text-base-content [&_a]:decoration-base-content/40 [&_a]:underline-offset-2 [&_a]:duration-100 [&_a]:hover:text-base-content [&_a]:hover:decoration-base-content",children:t})]})},a:e=>{let{children:t,href:a}=e;return(0,s.jsx)(r.default,{className:"text-base-content underline decoration-base-content/30 underline-offset-2 duration-100 hover:text-primary hover:decoration-primary",href:function(e){if(!(null==e?void 0:e.startsWith("/docs/")))return e;let t=e.match(/^\/docs\/([^#?]+?)(\.md)?([#?].*)?$/);if(!t)return e;let[,a,s="",i=""]=t,n=(0,o.u5)(a);return n?"".concat((0,o.PI)(n)).concat(s).concat(i):e}(a),children:t})},img:e=>{let{src:t,alt:a,width:i=512,height:n=252}=e;return(0,s.jsx)("img",{src:t,alt:a,width:i,height:n,className:"w-full max-w-full rounded-box border border-base-content/5 bg-base-300 object-cover object-center"})},"docs-integration-grid":e=>{let{size:t}=e;return(0,s.jsx)("div",{className:"not-prose",children:(0,s.jsx)(X,{type:"integration",size:t})})},"app-store-buttons":()=>(0,s.jsx)("div",{className:"not-prose my-6",children:(0,s.jsx)(ev.Z,{})}),"api-playground":e_,"bot-traffic-icons":eP,"docs-tabs":e=>{let{children:t}=e;return(0,s.jsx)(function(e){let{children:t}=e,[a,n]=(0,i.useState)(0),r=Array.isArray(t)?t:[t];if(0===(r=r.filter(e=>e&&"object"==typeof e&&e.props&&e.props.title)).length)return console.warn("docs-tabs: No valid tab elements found"),(0,s.jsx)("div",{className:"not-prose my-6 text-red-500",children:"No valid tabs found"});let o=r.map(e=>e.props.title);return(0,s.jsxs)("div",{className:"not-prose my-6",children:[(0,s.jsx)("div",{role:"tablist",className:"grid rounded-xl bg-neutral/5 p-1 shadow-inner dark:bg-neutral/50",style:{gridTemplateColumns:"repeat(".concat(o.length,", 1fr)")},children:o.map((e,t)=>(0,s.jsx)("button",{role:"tab",className:"cursor-pointer select-none rounded-lg px-2 py-2 text-xs font-medium transition-all ".concat(a===t?"animate-popup bg-base-100 text-base-content shadow":"text-base-content/60 hover:text-base-content/80"),onClick:()=>n(t),children:(0,s.jsx)("span",{className:"truncate",children:e})},"".concat(e,"-").concat(t)))}),(0,s.jsx)("div",{className:"mt-4",children:r[a]})]})},{children:t})},"docs-tab":e=>{let{children:t}=e;return(0,s.jsx)("div",{children:t})},p:e=>{let{children:t,...a}=e;return i.Children.toArray(t).some(e=>!!e&&!!e.props&&("string"==typeof e.type?["api-params","api-playground","try-playground","docs-integration-grid","docs-tabs","bot-traffic-icons","app-store-buttons"].includes(e.type):"function"==typeof e.type))?(0,s.jsx)("div",{...a,children:t}):(0,s.jsx)("p",{...a,children:t})}},children:w})}),(0,s.jsxs)("div",{className:"prose mt-12 border-t border-base-content/10 pt-12 text-sm max-lg:hidden",children:[(0,s.jsxs)("p",{children:["✍️ Something missing?"," ",(0,s.jsx)("a",{href:"https://feedback.datafa.st/",target:"_blank",className:"underline decoration-base-content/30 underline-offset-2 duration-100 hover:text-primary hover:decoration-primary",children:"Suggest features"}),"."]}),(0,s.jsxs)("p",{children:["\uD83E\uDD16 AI agent or LLM?"," ",(0,s.jsx)("a",{href:"".concat((0,o.PI)(A),".md"),className:"underline decoration-base-content/30 underline-offset-2 duration-100 hover:text-primary hover:decoration-primary",children:"Read this page as markdown"})]})]}
1),k&&(0,s.jsx)("div",{className:"mt-8 lg:hidden",children:k}),(g||f)&&(0,s.jsxs)("div",{className:"mt-16 grid gap-3 sm:grid-cols-2",children:[g?(0,s.jsxs)(r.default,{href:g.href||eN(g.slug),className:"group rounded-box border border-base-content/10 bg-base-100 p-4 text-left shadow-sm transition duration-150 hover:border-primary/40 hover:bg-base-200",children:[(0,s.jsxs)("span",{className:"text-base-secondary flex items-center gap-1.5 text-xs font-medium uppercase tracking-wide",children:[(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"size-4 shrink-0","aria-hidden":"true",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.75 15.75 3 12m0 0 3.75-3.75M3 12h18"})}),"Previous"]}),(0,s.jsxs)("span",{className:"mt-1 block font-semibold text-base-content group-hover:text-primary",children:[g.sectionTitle," / ",g.title]})]}):(0,s.jsx)("div",{className:"hidden sm:block"}),f?(0,s.jsxs)(r.default,{href:f.href||eN(f.slug),className:"group rounded-box border border-base-content/10 bg-base-100 p-4 text-left shadow-sm transition duration-150 hover:border-primary/40 hover:bg-base-200 sm:text-right",children:[(0,s.jsxs)("span",{className:"text-base-secondary flex items-center gap-1.5 text-xs font-medium uppercase tracking-wide sm:justify-end",children:["Next",(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"size-4 shrink-0","aria-hidden":"true",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17.25 8.25 21 12m0 0-3.75 3.75M21 12H3"})})]}),(0,s.jsxs)("span",{className:"mt-1 block font-semibold text-base-content group-hover:text-primary",children:[f.sectionTitle," / ",f.title]})]}):null]})]}),E&&(0,s.jsx)(eW,{articleRef:x,contentKey:w}),k&&(0,s.jsx)("aside",{className:"hidden w-full flex-shrink-0 lg:sticky lg:top-24 lg:block lg:max-h-[calc(100vh-7rem)] lg:w-[45%] lg:self-start lg:overflow-y-auto lg:pl-10",children:k})]})}},278:function(e,t,a){"use strict";a.d(t,{Z:function(){return c},z:function(){return d}});var s=a(57437),i=a(2265),n=a(80605),r=a(65732);let o=(0,i.createContext)({websites:[],selectedWebsite:null,setSelectedWebsite:()=>{},isLoading:!1}),l="docs_selected_website_id";function c(e){var t;let{children:a}=e,{data:c}=(0,n.useSession)(),d=null==c?void 0:null===(t=c.user)||void 0===t?void 0:t.id,[p,m]=(0,i.useState)([]),[u,h]=(0,i.useState)(null),[A,g]=(0,i.useState)(!1);(0,i.useEffect)(()=>{if(!d){m([]),h(null);return}!async function(){g(!0);try{let e=await r.Z.get("/user/websites"),t=[...e.websitesWithOwnership||[],...e.websiteGuests||[]];m(t);let a=localStorage.getItem(l),s=a&&t.find(e=>e.id===a);h(s||t[0]||null)}catch(e){m([]),h(null)}finally{g(!1)}}()},[d]);let f=(0,i.useCallback)(e=>{h(e),(null==e?void 0:e.id)&&localStorage.setItem(l,e.id)},[]),b=(0,i.useMemo)(()=>({websites:p,selectedWebsite:u,setSelectedWebsite:f,isLoading:A}),[p,u,f,A]);return(0,s.jsx)(o.Provider,{value:b,children:a})}function d(){return(0,i.useContext)(o)}},39011:function(e,t,a){"use strict";var s=a(57437),i=a(3883),n=a(87011);t.Z=e=>{let{playbackId:t,poster:a,autoPlay:r=!0,muted:o=!0,loop:l=!1,defaultHiddenCaptions:c=!0,color:d=n.ZP.colors.main,style:p,playbackRate:m=1.5,onPlay:u,onEnded:h}=e;return(0,s.jsx)(i.default,{streamType:"on-demand",playbackId:t,autoPlay:r,muted:o,loop:l,poster:a,accentColor:d,defaultHiddenCaptions:c,style:p,playbackRate:m,...u&&{onPlay:u},...h&&{onEnded:h}})}},49197:function(e,t,a){"use strict";a.d(t,{J7:function(){return r},Jw:function(){return u},LT:function(){return p},MW:function(){return c},Ot:function(){return o},e$:function(){return m},uW:function(){return d},xP:function(){return l}});var s=a(87011),i=a(49600),n=a.n(i);let r=e=>{let{trackingId:t,domain:a,allowLocalhost:i=!1,allowedHostnames:n=[],cookieless:r=!1,proxyDomain:o=null}=e,l=o?"https://".concat(o):"https://".concat(s.ZP.domainName),c=n.length>0?'\n  data-allowed-hostnames="'.concat(n.join(","),'"'):"",d=o?'\n  data-api-url="'.concat(l,'/api/events"'):"";return'<script\n  defer\n  data-website-id="'.concat(t,'"\n  data-domain="').concat(a,'"').concat(c).concat(i?'\n  data-allow-localhost="true"':"").concat(d,'\n  src="').concat(l).concat(r?"/js/script.cookieless.js":"/js/script.
1js",'">\n</script>')},o=()=>'window?.datafast("payment", { email: "[email protected]" });',l=()=>'window?.datafast("goal_name", {\n  description: "A short description of the event"\n});',c=()=>{let e=["Brazil","Canada","Chile","Cuba","Egypt","Eire","GB","GMT","Greenwich","Hongkong","Iceland","Iran","Israel","Jamaica","Japan","Kwajalein","Libya","Mexico","Navajo","NZ","Poland","Portugal","PRC","ROC","ROK","Singapore","Turkey","UCT","Universal","US","W-SU","Zulu"];return n().tz.names().filter(t=>{let a=t.split("/")[0];return!e.includes(a)&&!t.includes("SystemV")&&!t.includes("Etc/GMT")&&!t.includes("Factory")}).map(e=>{let t,a;let s=n().tz(e).utcOffset(),i="GMT".concat(s<=0?"+":"-").concat(Math.floor(Math.abs(s)/60).toString().padStart(2,"0"),":").concat((Math.abs(s)%60).toString().padStart(2,"0")),r=e.split("/");return 1===r.length?(t=r[0],a=""):(t=r[0],a=r.slice(1).join("/").replace(/_/g," ")),{name:e,offset:s,utcOffsetStr:i,region:t,city:a}}).sort((e,t)=>e.offset-t.offset)},d=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i="https://".concat(s.ZP.domainName,"/share/").concat(e);return t?"".concat(i,"?realtime=1"):a?"".concat(i,"?insights=1"):i},p=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"2025";return"https://".concat(s.ZP.domainName,"/wrapped/").concat(t,"/").concat(e)},m=e=>e&&(e.name||e.domain)||"",u=e=>e?e.logo?e.logo:"https://icons.duckduckgo.com/ip3/".concat(e.domain,".ico"):""},65732:function(e,t,a){"use strict";var s=a(83464),i=a(75186),n=a(80605),r=a(87011);let o=s.Z.create({baseURL:"/api"});o.interceptors.response.use(function(e){return e.data},function(e){var t,a,s,o,l,c,d,p;let m="";return(null===(t=e.response)||void 0===t?void 0:t.status)===401?(i.Am.error("Please login"),(0,n.signIn)(void 0,{callbackUrl:r.ZP.auth.callbackUrl})):(m=(null===(a=e.response)||void 0===a?void 0:a.status)===403?e.config.url.includes("/invitations")||e.config.url.includes("/accept-invite")?(null==e?void 0:null===(c=e.response)||void 0===c?void 0:null===(l=c.data)||void 0===l?void 0:l.error)||"Failed to process invitation":"Pick a plan to use this feature":(null==e?void 0:null===(p=e.response)||void 0===p?void 0:null===(d=p.data)||void 0===d?void 0:d.error)||e.message||e.toString(),e.message="string"==typeof m?m:JSON.stringify(m),console.error(e.message),!((null===(s=e.response)||void 0===s?void 0:s.status)<500)||(null===(o=e.config)||void 0===o?void 0:o.skipErrorToast)||(e.message?i.Am.error(e.message):i.Am.error("something went wrong...")),Promise.reject(e))}),t.Z=o},40457:function(e,t,a){"use strict";a.r(t),t.default={src:"/_next/static/media/claude-color.e604c32e.svg",height:16,width:16,blurWidth:0,blurHeight:0}},23707:function(e,t,a){"use strict";a.r(t),t.default={src:"/_next/static/media/copilot-color.2a87c020.svg",height:16,width:16,blurWidth:0,blurHeight:0}},82023:function(e,t,a){"use strict";a.r(t),t.default={src:"/_next/static/media/gemini-color.7203067d.svg",height:16,width:16,blurWidth:0,blurHeight:0}},31842:function(e,t){"use strict";t.Z={src:"/_next/static/media/icon-astro.00b5230f.png",height:230,width:440,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAMAAACEE47CAAAAElBMVEXR0dLX19j////z8/PHx8jv7/Bc5GKpAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAHUlEQVR4nGNgggIGJlYWBhYGZhCDgYGBEcSASgEABOIAQgSzkt8AAAAASUVORK5CYII=",blurWidth:8,blurHeight:4}},56712:function(e,t,a){"use strict";a.r(t),t.default={src:"/_next/static/media/icon-bolt.f6fb3a74.png",height:251,width:447,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAMAAACEE47CAAAAJ1BMVEUQIiwfMDkcJy+1ubwVHiSXnaEGFB0oOURsd32pr7OKkZSlqawzOkDDLh2vAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAJ0lEQVR4nAXBiQEAIAgDsSsFwWf/eU1IsegW69TMtshruwryRUSIDwpMAIhIvZX6AAAAAElFTkSuQmCC",blurWidth:8,blurHeight:4}},27216:function(e,t,a){"use strict";a.r(t),t.default={src:"/_next/static/media/icon-bubble.c8b7a238.png",height:251,width:447,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAMAAACEE47CAAAAHlBMVEX////39/ihoaLGxsa5ubnS0tnn5+eSkpKurq7e3t7AK+GfAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIklEQVR4nGNggAFWZk4WFmYWNgZWJg4mJiZ2ZgZGMGBgAAAFRQBMl/TkxAAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:4}},63962:function(e,t,a){"use strict";a.r(t),t.default={src:"/_next/static/media/icon-caddy.8d202f7e.png",height:230,width:440,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAMAAACEE47CAAAAHlBMVEX///+l3L/BwcHc19rr6+ve3t62trbLzMyz3N+x3+P+s32MAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAHElEQVR4nGNggANODmZ2JhYGBgZGRmYmNlaEBAAEAAA0J76v/gAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:4}},40390:function(e,t,a){"use strict";a.r(t),t.default={src:"/_next/static/media/icon-django.1260bac6.png",height:230,width:440,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAMAAACEE47CAAAAFVBMVEW3xMD////y9POpubPt8e+VqaKnt7FUqbYVAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIElEQVR4nGNghAIGRhZWBgYGFkYGRiY2BmZmJkYGmBQAA5MAMufeUKEAAAAASUVORK5CYII=",blurWidth:8,blurHeight:4}},32969:function(e,t,a){"use strict";a.r(t),t.default={src:"/_next/static/media/icon-expressjs.6e4a13ee.png",height:230,width:440,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAMAAACEE47CAAAAElBMVEX4+Pjq6ur////h4uLe3t7x8fFks+m8AAAA
1CXBIWXMAAAsTAAALEwEAmpwYAAAAH0lEQVR4nGNgggIGJlYWZhZmBiYGJgZGRlZGEAMqBQAFFwBEEuDsaAAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:4}},74246:function(e,t,a){"use strict";a.r(t),t.default={src:"/_next/static/media/icon-fastapi.adfa24d0.png",height:230,width:440,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAMAAACEE47CAAAAD1BMVEXT7evE5+P////n9vTh8/GLGK/3AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAHUlEQVR4nGNgggIGJkZGZgYGFjCDhYGBmYkBJgUABDIAO34VGvsAAAAASUVORK5CYII=",blurWidth:8,blurHeight:4}},47382:function(e,t){"use strict";t.Z={src:"/_next/static/media/icon-firebase.eb6f8ae4.png",height:230,width:440,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAMAAACEE47CAAAAFVBMVEXs7e/////f39/+8N739/f0xrL3xaL639UfAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAHUlEQVR4nGNghAIGRmZWBgYGFhCDjYGJCcSASgEAA4cAMqJm7rIAAAAASUVORK5CYII=",blurWidth:8,blurHeight:4}},10306:function(e,t,a){"use strict";a.r(t),t.default={src:"/_next/static/media/icon-flask.6e846093.png",height:230,width:440,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAMAAACEE47CAAAAElBMVEX////o6Ojd3d3T09PKysr19fXh8AqaAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAGUlEQVR4nGNggANWZkYmJjCLhYmRESHOAAABxwAWyblkLQAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:4}},10038:function(e,t,a){"use strict";a.r(t),t.default={src:"/_next/static/media/icon-framer.06f8bb07.png",height:230,width:440,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAMAAACEE47CAAAAFVBMVEXS0tL////09PTp6ena2trZ2dm5ubmvU4OAAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAHUlEQVR4nGNghAIGRgY2ZlYWJhCDgZmBAcSASgEAA4sALtMBOj8AAAAASUVORK5CYII=",blurWidth:8,blurHeight:4}},59721:function(e,t,a){"use strict";a.r(t),t.default={src:"/_next/static/media/icon-ghostcms.36b39cb0.png",height:230,width:440,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAMAAACEE47CAAAAElBMVEX////4+Pja29vR0dLz8/Pi4uKx7ve6AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAG0lEQVR4nGNgYGBkgABGViZmJhYwgxnCgEoBAAK2ACYF8JvsAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:4}},43738:function(e,t,a){"use strict";a.r(t),t.default={src:"/_next/static/media/icon-gtm.d7fc830d.png",height:230,width:440,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAMAAACEE47CAAAAElBMVEX////i4uLx8fDP4Py71Prk5OWBxZGjAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAF0lEQVR4nGNggANmFiZGRiiDlZEJIQEAAhMAHZmZo60AAAAASUVORK5CYII=",blurWidth:8,blurHeight:4}},64784:function(e,t,a){"use strict";a.r(t),t.default={src:"/_next/static/media/icon-kajabi.0cbc47ac.png",height:251,width:447,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAMAAACEE47CAAAAG1BMVEWgoKD////q6uqsrKz+sa397u3RxMPJw8T66OnOdYZ9AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAHklEQVR4nGNghAIGVhZ2ZmYGBiYGDhY2BgYQAyYFAAS1AD0RlnvdAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:4}},61587:function(e,t,a){"use strict";a.r(t),t.default={src:"/_next/static/media/icon-laravel.dd822c6e.png",height:230,width:440,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAMAAACEE47CAAAADFBMVEX/6Of////+4d/+2dcFBgq2AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAHklEQVR4nGNghAIGRgZmBgYGBhCDiYmZmYmRASYFAAJvACQZw5YMAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:4}},19222:function(e,t,a){"use strict";a.r(t),t.default={src:"/_next/static/media/icon-lovable.618fffcb.png",height:251,width:447,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAMAAACEE47CAAAAHlBMVEX////HyMmurq+ioqO6vLviu+Cenp/W1tb9wbTu083umTGYAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAHklEQVR4nGNggAEOTkZGRiYmdgZWVhYmZmY2FrgMAASjAEBnMkmKAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:4}},32761:function(e,t,a){"use strict";a.r(t),t.default={src:"/_next/static/media/icon-nextjs.3a58dc60.png",height:230,width:440,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAMAAACEE47CAAAADFBMVEX////Nzc3l5eXU1NRUG7JRAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAFklEQVR4nGNgQABGZmYmCIORCcKAAAABPAAQX5/FEAAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:4}},13171:function(e,t,a){"use strict";a.r(t),t.default={src:"/_next/static/media/icon-nginx.ede5ab41.png",height:230,width:440,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAMAAACEE47CAAAAD1BMVEXB58H1+/X///+247ay4bKaLgivAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAGklEQVR4nGNgggIGJkYGZgYGRjCDBcKASgEAA7kANNJzLuMAAAAASUVORK5CYII=",blurWidth:8,blurHeight:4}},26247:function(e,t,a){"use strict";a.r(t),t.default={src:"/_next/static/media/icon-npm.c6795874.png",height:230,width:440,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAMAAACEE47CAAAAElBMVEX////qs7Xil5ryzs7np6nz1NV1nRPHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAF0lEQVR4nGNgQABGJiZGMIOZhZEVSRwAAVkAFDleu7kAAAAASUVORK5CYII=",blurWidth:8,blurHeight:4}},60594:function(e,t,a){"use strict";a.r(t),t.default={src:"/_next/static/media/icon-php.858345a0.png",height:230,width:440,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAMAAACEE47CAAAADFBMVEX///+ytMpvcZJrbYYenLgvAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAFklEQVR4nGNgQABGZmZGCIOJCcKAAAABKQAP8vCyPAAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:4}},44596:function(e,t,a){"use strict";a.r(t),t.default={src:"/_next/static/media/icon-podia.b5977fc1.png",height:251,width:447,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAMAAACEE47CAAAAGFBMVEX+/v++sOjv6/m2peXGuuukkN/k3vX29fw2So05AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAHklEQVR4nGNggAEmRhYWVmZGJgY2VkZGZkZmJrgMAANPAC1C9o7+AAAAAElFTkSuQmCC",blurWidth:8,blurHeight:4}},29998:function(e,t,a){"use strict";a.r(t),t.default={src:"/_next/static/media/icon-reactrouter.b724a1f1.png",height:230,width:440,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAMAAACEE47CAAAAHlBMVEX////3+vnu7u7Js7X+9fbc3t3W19fLzc3Kvb/wrrSHSNm2AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAJElEQVR4nGNgYGBgYWEAA0ZmTkYQzcTOwcwGYjGxMbGyMjIAAAQsAEeQi7vPAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:4}},95294:function(e,t){"use strict";t.Z={src:"/_next/static/media/icon-replit.bec9943b.png",height:251,width:447,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAMAAACEE47CAAAAG1BMVEX///+5ubnMzMzd3t/+9/L5xKT/2MHGxsbe4OEsnBWwAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIElEQVR4nGNgYYACVjZmRkZGRiYGVjYOJkZ2dmYGmBQABMEARFCn/B0AAAAASUVORK5CYII=",blurWidth:8,blurHeight:4}},66542:function(e,t,a){"use strict";a.r(t),t.default={src:"/_next/static/media/icon-shopify.a664161d.png",height:251,width:447,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAMAAACEE47CAAAAJFBMVEX9/v2ZmZjDw8Ojo6OxtLDa6bzLy8vd3d2cwHGty4Xb3Ny6vbpMf9uvAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAHklEQVR4nGNggAFWTi4WNiZmdgZWDhZmRkZGJrgMAAW1AEjrAl2cAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:4}},32105:function(e,t,a){"use strict";a.r(t),t.default={src:"/_next/static/media/icon-squarespace.0cda12b3.png",height:251,width:447,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAMAAACEE47CAAAAG1BMVEX+/v7v7u709PS9u7zl5ORcWVrKycnW1tanpabNKShTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAH0lEQVR4nGNgYGDiYGYAAzZWVnYoCyLCyMLIyMLEAAAEegA70D2Q4AAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:4}},58486:function(e,t){"use strict";t.Z={src:"/_next/static/media/icon-v0.3c4d4122.png",height:251,width:447,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAMAAACEE47CAAAAG1BMVEX////s7Ozn5+diYmL5+fmIiIiamprV1dW2tra829BjAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAJElEQVR4nB3GwREAIAgDwQsJav8VM7ivBUIVQN5p/127tSESDATBAD4EYNPcAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:4}},72661:function(e,t,a){"use strict";a.r(t),t.default={src:"/_next/static/media/icon-vuejs.010f3bde.png",height:230,width:440,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAMAAACEE47CAAAAGFBMVEX////z8/Pr9fHg3t+6287Q0NB0qJvb2NnJViOSAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAGklEQVR4nGNggAMmNhZmZkYQi4WJnRXMgAAAAtEAJ4jxRpMAAAAASUVORK5CYII=",blurWidth:8,blurHeight:4}},42895:function(e,t,a){"use strict";a.r(t),t.default={src:"/_next/static/media/icon-webflow.baf6b80a.png",height:230,width:440,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAMAAACEE47CAAAAFVBMVEXQz87////b2damzf3r6+qtzvbC2/naUqxpAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAHklEQVR4nGNghAIGRmZWJgYGFhCDjYGBgYmRASYFAANtAC6M8GGlAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:4}},36108:function(e,t,a){"use strict";a.r(t),t.default={src:"/_next/static/media/icon-wix.34f61b06.png",height:251,width:447,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAMAAACEE47CAAAAG1BMVEX29vb///+E
1hITPz8+np6fR0dF5eXnw8PDCwsJeJrn4AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAJUlEQVR4nB3JwQ0AIAzEsORaaPefGAl/jcAM4iadEuumc8R/+AAFiABKQ6qvkQAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:4}},61004:function(e,t){"use strict";t.Z={src:"/_next/static/media/icon-woocommerce.ba131161.png",height:230,width:440,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAMAAACEE47CAAAAFVBMVEX////Ix8rY2Nm7u7vR0dHOv9zaz+XLzol6AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAHElEQVR4nGNggANWVkZmZkYGBgY2NiYWFiaEBAADFQArUE9TfwAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:4}},38532:function(e,t,a){"use strict";a.r(t),t.default={src:"/_next/static/media/icon-wp.e47770d1.png",height:230,width:440,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAMAAACEE47CAAAAGFBMVEXw8PDl7/P////Qz87Y3d7r9/zp6OjT2Nos/UY/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAHUlEQVR4nGNgggIGJmZ2VkYGBhCDhZGRDcSASgEABT8ASIZDKfQAAAAASUVORK5CYII=",blurWidth:8,blurHeight:4}},90764:function(e,t,a){"use strict";a.r(t),t.default={src:"/_next/static/media/openai.151ff3ed.svg",height:16,width:16,blurWidth:0,blurHeight:0}}},function(e){e.O(0,[7851,6990,7326,2404,2972,5878,605,9728,3464,3883,851,4609,1266,7011,4206,2971,2117,1744],function(){return e(e.s=30454)}),_N_E=e.O()}]);

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.