1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2833],{2869:(e,t,n)=>{n.d(t,{AP:()=>b,AT:()=>eF,Ab:()=>to,BE:()=>A,BL:()=>E,BM:()=>G,CM:()=>et,Ce:()=>H,DA:()=>T,DI:()=>eE,DS:()=>eT,EO:()=>eV,EQ:()=>D,Ej:()=>tu,Fb:()=>eC,GW:()=>$,IZ:()=>O,Ir:()=>eg,Iw:()=>eG,JH:()=>t_,Je:()=>R,Jh:()=>eK,KH:()=>q,KJ:()=>eH,KR:()=>r,LA:()=>K,MZ:()=>L,NH:()=>ez,Np:()=>N,OM:()=>es,OY:()=>eU,Oh:()=>S,PW:()=>ew,Q$:()=>o,Q_:()=>F,Qf:()=>l,R2:()=>w,R5:()=>B,R6:()=>eI,RH:()=>y,RK:()=>J,T_:()=>ei,Te:()=>g,U:()=>ep,U3:()=>f,Uw:()=>v,VJ:()=>eS,VQ:()=>eu,Vk:()=>ec,XB:()=>Z,XO:()=>x,XU:()=>tc,Xd:()=>u,Y1:()=>z,Yb:()=>tt,Ys:()=>eo,ZB:()=>el,ZJ:()=>e2,ZT:()=>ej,ZZ:()=>e5,Zh:()=>ey,_2:()=>tr,_z:()=>eJ,aD:()=>I,aK:()=>eY,aY:()=>M,ad:()=>ta,ay:()=>e8,df:()=>eb,dy:()=>h,e$:()=>c,f8:()=>e7,fA:()=>e_,fQ:()=>p,fR:()=>tl,fo:()=>eB,fs:()=>V,gq:()=>tn,gw:()=>e3,hG:()=>ex,hS:()=>eQ,hd:()=>e9,hg:()=>ee,iT:()=>P,is:()=>eL,iw:()=>ti,j1:()=>eM,jN:()=>ed,jn:()=>er,k1:()=>Q,kO:()=>e1,ky:()=>e4,mG:()=>X,mV:()=>en,n8:()=>eq,nR:()=>eA,no:()=>m,o9:()=>te,oE:()=>eh,p1:()=>ek,pX:()=>Y,pj:()=>e$,pp:()=>d,qV:()=>C,qj:()=>eO,qr:()=>eW,r:()=>s,r9:()=>k,ri:()=>eP,sK:()=>eZ,sx:()=>e0,sy:()=>ev,t7:()=>W,v:()=>ea,vx:()=>e6,wC:()=>ts,wG:()=>j,wH:()=>ef,we:()=>eX,xN:()=>em,xO:()=>_,xR:()=>i,yN:()=>eN,yz:()=>a,zg:()=>U,zh:()=>eR,zr:()=>eD});let r="chat_message_sent",i="chat_response_complete",o="chat_first_token",a="chat_response_error",s="chat_stop_generation",c="chat_message_regenerate",l="chat_message_edit",u="chat_message_copy",_="chat_branch_switch",d="chat_feedback",m="conversation_create",p="conversation_switch",h="conversation_rename",f="conversation_delete",g="ws_connected",y="ws_disconnected",v="chat_transport_connection",w="chat_transport_disconnected",b="chat_transport_fallback",k="chat_transport_session_summary",S="editor_mention_select",x="editor_skill_select",T="editor_paste_media",E="editor_submit_method",C="file_upload_start",A="file_upload_complete",L="file_upload_error",q="panel_open",I="panel_close",R="panel_asset_filter",D="panel_asset_detail",N="panel_asset_download",O="panel_asset_keyboard_nav",H="card_favorite",M="card_quote",B="card_delete",j="card_locate",z="card_download",P="card_drag",U="tool_card_toggle",F="social_account_connect",J="social_publish_start",$="social_publish_complete",V="social_publish_error",Z="media_preview_open",K="media_preview_close",G="skill_popover_asset_nav",W="theme_switch",Q="language_switch",X="sidebar_toggle",Y="settings_memory_toggle",ee="login_click",et="login_completed",en="login_failed",er="identity_linked",ei="logout",eo="ui_element_clicked",ea="home_skill_click",es="home_skill_preview_close",ec="home_message_sent",el="waitlist_submit_result",eu="waitlist_modal_close",e_="shared_skill_viewed",ed="shared_skill_tried",em="shared_skill_first_message",ep="showcase_cta_click",eh="showcase_media_play",ef="showcase_external_link_click",eg="skill_cta_click",ey="marketing_nav_cta_click",ev="pricing_viewed",ew="pricing_plan_impression",eb="pricing_cycle_changed",ek="pricing_plan_selected",eS="checkout_started",ex="checkout_session_created",eT="checkout_redirected",eE="checkout_failed",eC="checkout_completed",eA="checkout_cancelled",eL="recharge_opened",eq="recharge_amount_selected",eI="pricing_modal_dismissed",eR="billing_portal_opened",eD="meta_purchase_mirrored",eN="newcomer_offer_shown",eO="newcomer_offer_cta_click",eH="newcomer_offer_dismissed",eM="pricing_offer_banner_shown",eB="paywall_shown",ej="paywall_cta_click",ez="paywall_dismissed",eP="pond_tab_switch",eU="pond_folder_open",eF="pond_folder_create",eJ="pond_folder_rename",e$="pond_folder_delete",eV="pond_folder_flatten",eZ="pond_asset_preview",eK="pond_asset_move",eG="pond_upload",eW="pond_batch_mode_toggle",eQ="pond_batch_delete",eX="pond_batch_download",eY="pond_generation_filter",e0="home_skill_impression",e1="home_skill_manage",e2="home_sourcing_impression",e3="home_sourcing_feed_result",e5="home_sourcing_card_click",e6="home_sourcing_detail_result",e4="home_sourcing_detail_action",e9="home_sourcing_detail_leave",e8="home_sourcing_customize_action",e7="home_sourcing_recreate",te="home_sourcing_filter",tt="home_sourcing_login_click",tn="c
1onversation_pin",tr="conversation_reset_default",ti="conversation_search_open",to="conversation_search_performed",ta="conversation_search_result_click",ts="editor_mention_remove",tc="editor_skill_remove",tl="client_debug_event",tu="web_vital",t_="frontend_resource_load"},8162:(e,t,n)=>{n.d(t,{ImpressionTracker:()=>a});var r=n(95155);n(12115);var i=n(54640),o=n(14397);function a({trackKey:e,event:t,context:n,className:s="h-full w-full",children:c}){let l=(0,i.useTracker)(),u=(0,o.useImpression)(e,()=>l(t,n));return(0,r.jsx)("div",{ref:u,className:s,children:c})}},14397:(e,t,n)=>{n.d(t,{useImpression:()=>s});var r=n(12115);let i=new Set,o=new Map,a=null;function s(e,t){let n=(0,r.useRef)(t);(0,r.useEffect)(()=>{n.current=t});let s=(0,r.useRef)(null);return(0,r.useEffect)(()=>()=>{let e=s.current;e&&(o.delete(e),a?.unobserve(e),s.current=null)},[]),(0,r.useCallback)(t=>{let r=s.current;r&&r!==t&&(o.delete(r),a?.unobserve(r)),s.current=t,!(!t||i.has(e))&&"u">typeof IntersectionObserver&&(o.set(t,()=>{i.has(e)||(i.add(e),n.current())}),(!a&&(a=new IntersectionObserver(e=>{for(let t of e){if(!t.isIntersecting)continue;let e=o.get(t.target);o.delete(t.target),a?.unobserve(t.target),e?.()}},{threshold:.6})),a).observe(t))},[e])}},16247:(e,t,n)=>{n.d(t,{I:()=>r});let r=(0,n(12115).createContext)(null)},18380:(e,t,n)=>{n.d(t,{useAnalytics:()=>o,useAnalyticsSafe:()=>a});var r=n(12115),i=n(16247);function o(){let e=(0,r.useContext)(i.I);if(!e)throw Error("useAnalytics must be used within AnalyticsProvider");return e}function a(){return(0,r.useContext)(i.I)}},19059:(e,t,n)=>{n.d(t,{AnalyticsProvider:()=>C});var r=n(95155),i=n(12115),o=n(73321),a=n(16247);let s="ribbi.analytics.cache";class c{constructor(e){this.queue=[],this.flushTimer=null,this.flushCallback=null,this.isFlushing=!1,this.visibilityHandler=null,this.beforeUnloadHandler=null,this.pageHideHandler=null,this.config=e,this.isClient=!0,this.isClient&&(this.loadCache(),this.setupUnloadHandler())}setFlushCallback(e){this.flushCallback=e}push(e,t=!1){(this.queue.push(e),this.config.debug&&console.log("[Analytics] Event queued:",e.event_name,e.context),t||this.queue.length>=this.config.batchSize)?this.flush():this.scheduleFlush()}pushForLifecycle(e){if(this.queue.push(e),this.isClient){try{let t=new Blob([JSON.stringify({events:[e]})],{type:"application/json"});if(t.size<=61440&&navigator.sendBeacon?.(this.config.endpoint,t)){this.queue.splice(this.queue.lastIndexOf(e),1),this.saveC
1ache();return}}catch{}this.saveCache(),this.scheduleFlush()}}scheduleFlush(){this.flushTimer||(this.flushTimer=setTimeout(()=>{this.flushTimer=null,this.flush()},this.config.flushInterval))}async flush(){if(this.isFlushing||0===this.queue.length||!this.flushCallback)return;this.isFlushing=!0;let e=this.queue.slice(0,this.config.maxBatchSize);this.queue=this.queue.slice(this.config.maxBatchSize),this.flushTimer&&(clearTimeout(this.flushTimer),this.flushTimer=null);let t=!1;try{(t=await this.flushCallback(e))?this.config.debug&&console.log("[Analytics] Flushed events:",e.length):(this.queue=[...e,...this.queue],this.config.debug&&console.warn("[Analytics] Flush failed, events re-queued:",e.length))}catch(t){this.queue=[...e,...this.queue],this.config.debug&&console.error("[Analytics] Flush error:",t)}finally{this.isFlushing=!1,this.queue.length>0&&(t?this.flush():this.scheduleFlush())}}loadCache(){if(this.isClient)try{let e=localStorage.getItem(s);if(e){let t=JSON.parse(e);Date.now()-t.timestamp<864e5&&(this.queue=[...t.events,...this.queue],this.config.debug&&console.log("[Analytics] Loaded cached events:",t.events.length)),localStorage.removeItem(s)}}catch{}}saveCache(){if(this.isClient&&0!==this.queue.length)try{let e={events:this.queue,timestamp:Date.now()};localStorage.setItem(s,JSON.stringify(e)),this.config.debug&&console.log("[Analytics] Saved events to cache:",this.queue.length)}catch{}}
1flushWithBeaconThenCache(){this.flushWithBeacon(),this.saveCache()}setupUnloadHandler(){this.isClient&&(this.visibilityHandler=()=>{"hidden"===document.visibilityState&&this.flushWithBeaconThenCache()},document.addEventListener("visibilitychange",this.visibilityHandler),this.beforeUnloadHandler=()=>{this.flushWithBeaconThenCache()},window.addEventListener("beforeunload",this.beforeUnloadHandler),this.pageHideHandler=()=>{this.flushWithBeaconThenCache()},window.addEventListener("pagehide",this.pageHideHandler))}flushWithBeacon(){if(0!==this.queue.length&&this.isClient)try{let e=this.queue.slice(0,this.config.maxBatchSize),t=new Blob([JSON.stringify({events:e})],{type:"application/json"});navigator.sendBeacon(this.config.endpoint,t)&&(this.queue=this.queue.slice(this.config.maxBatchSize),this.config.debug&&console.log("[Analytics] Sent events via beacon:",e.length))}catch(e){this.config.debug&&console.error("[Analytics] Beacon send failed:",e)}}get length(){return this.queue.length}clear(){this.queue=[],this.flushTimer&&(clearTimeout(this.flushTimer),this.flushTimer=null)}destroy(){this.isClient&&(this.visibilityHandler&&(document.removeEventListener("visibilitychange",this.visibilityHandler),this.visibilityHandler=null),this.beforeUnloadHandler&&(window.removeEventListener("beforeunload",this.beforeUnloadHandler),this.beforeUnloadHandler=null),this.pageHideHandler&&(window.removeEventListener("pagehide",this.pageHideHandler),this.pageHideHandler=null)),this.clear(),this.flushCallback=null}}async function l(e,t,n=!1){if(0===e.length)return!0;try{let n=await fetch(t,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({events:e})});if(!n.ok){let e=await n.json().catch(()=>({}));return console.warn("[Analytics] Server error:",n.status,e.error),!1}let r=await n.json().catch(()=>({}));return"number"==typeof r.failed&&r.failed>0&&console.warn("[Analytics] Some events were rejected:",r.failed,r.errors),!0}catch(e){return console.warn("[Analytics] Network error:",e),!1}}n(41463).env.NEXT_PUBLIC_ANALYTICS_URL;var u=n(2869);function _(e,t){return e===u.Ej&&t?.metric_name==="STARTUP_DIAGNOSTIC"}let d=["event_id","client_ts","anonymous_id","load_id","request_id","is_authenticated","path","page_group","hostname","locale","device_type","viewport_width","viewport_height","visibility_state","document_prerendering","client_timezone","conversation_id","metric_name","metric_id","probe_version","metric_report_reason","metric_primary_value","observed_at_ms","deadline_ms","document_ready_state","dom_scan_truncated","resource_count","resource_buffer_dropped","response_start_ms","response_end_ms"],m=["head_ms","install_duration_ms","dom_content_loaded_ms","load_ms","root_effect_ms","home_effect_ms","auth_resolved_ms"],p=["url","type","start_ms","end_ms","total_ms","has_full_timing","wait_ms","ttfb_ms","download_ms","transfer_bytes","encoded_bytes","protocol"];function h(e,t,n){let r={};if(!e||"object"!=typeof e)return r;for(let i of t){let t=e[i];"string"==typeof t?r[i]=t.slice(0,n):("boolean"==typeof t||"number"==typeof t&&Number.isFinite(t))&&(r[i]=t)}return r}function f(e,t,n=!1){let r=t.context?.metric_report_reason;_(t.event_name,t.context)&&("pagehide_after_root_effect"===r||"hidden_after_root_effect"===r)?e.pushForLifecycle(t):e.push(t,n)}let g="ribbi.analytics.session";function y(){return"u">typeof crypto&&"function"==typeof crypto.randomUUID?crypto.randomUUID():"u">typeof crypto&&"function"==typeof crypto.getRandomValues?"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=(15&crypto.getRandomValues(new Uint8Array(1))[0])>>3*("x"!==e);return("x"===e?t:3&t|8).toString(16)}):"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}class v{constructor(){this.session=null,this.isClient=!0,this.isClient&&this.loadSession()}loadSession(){try{let e=localStorage.getItem(g);if(e){let t=JSON.parse(e);Date.now()-t.lastActivityTime<18e5?this.session=t:localStorage.removeItem(g)}}catch{}}saveSession(){if(this.isClient&&this.session)try{localStorage.setItem(g,JSON.stringify(this.session))}catch{}}getSessionId(){let e=Date.now();return this.session&&e-this.session.lastActivityTime<18e5?this.session.lastActivityTime=e:this.session={id:y(),startTime:e,lastActivityTime:e},this.saveSession(),this.session.id}getCurrentSession(){return this.session}resetSession(){let e=Date.now();return this.session={id:y(),startTime:e,lastActivityTime:e},this.saveSession(),this.session.id}clearSession(){if(this.session=null,this.isClient)try{localStorage.removeItem(g)}catch{}}}let w=null;var b=n(24964),k=n(57289),S=n(96206);let x="ribbi.analytics.user",T="ribbi.analytics.conversation";function E(e){try{e?window.localStorage.setItem(x,JSON.stringify({id:e})):window.localStorage.removeItem(x)}catch{}}function C({children:e,userId:t,config:n}){let s=(0,i.useMemo)(()=>({enabled:!0,batchSize:20,maxBatchSize:100,flushInterval:3e4,endpoint:"/analytics/api/v1/batch",debug:!1,...n}),[n]),g=(0,o.usePathname)(),y=(0,i.useRef)(null),x=(0,i.useRef)([]),A=(0,i.useRef)((w||(w=new v),w)),L=(0,i.useRef)(t??null),q=(0,i.useRef)(null),I=(0,i.useRef)(null),R=(0,i.useRef)(null),D=(0,i.useRef)(null),N=(0,i.useRef)([]),O=(0,i.useRef)(0),H=(0,i.useRef)(!1),M=(0,i.useRef)(null),[B,j]=(0,i.useState)(!1);(0,i.useEffect)(()=>{L.current=t??null,E(t??null)},[t]);let z=(0,i.useCallback)((e,t,n)=>{if(!s.enabled)return;let r=q.current??(0,S.Cl)();q.current=r;let i=(0,S.ro)(L.current),o=I.current?{conversation_id:I.current}:{},a=function(e,t){if(!_(e,t))return t;let n=(Array.isArray(t.resources)?t.resources:[]).slice(0,6).map(e=>h(e,p,160)),r=(Array.isArray(t.resource_errors)?t.resource_errors:[]).slice(0,3).map(e=>h(e,["url","at_ms"],160)),i=(Array.isArray(t.completion_not_observed)?t.completion_not_observed:[]).filter(e=>"string"==typeof e).slice(0,4).map(e=>e.slice(0,160)),o={...h(t,d,256),marks:h(t.marks,m,0),resources:n,resource_errors:r,completion_not_observed:i,context_budget_truncated:!1},a=new TextEncoder,s=()=>a.encode(JSON.stringify(o)).byteLength>6e3;for(let e of[n,i,r])for(;e.length&&s();)o.context_budget_truncated=!0,e.pop();if(s()){o.context_budget_truncated=!0;let e=new Set(["event_id","client_ts","anonymous_id","load_id","request_id","metric_name","metric_id","probe_version","metric_report_reason","metric_primary_value","observed_at_ms","deadline_ms","marks","context_budget_truncated"]);for(let t of Object.keys(o))e.has(t)?"string"==typeof o[t]&&(o[t]=o[t].slice(0,64)):delete o[t]}return o}(e,{...i,...o,...t}),c={platform:"web",event_name:e,user_id:L.current??`anon:${r}`,session_id:A.current.getSessionId(),version:"1",context:a,timestamp:new Date().toISOString()};(n?.duration_ms!==void 0&&(c.duration_ms=n.duration_ms),n?.count!==void 0&&(c.count=n.count),(0,b.P)(c),(0,k.y5)(c),y.current)?f(y.current,c,n?.immediate):x.current.push({event:c,immediate:n?.immediate})},[s.enabled]),P=(0,i.useCallback)(async()=>{y.current&&await y.current.flush()},[]),U=(0,i.useCallback)(e=>{L.current=e,E(e)},[]),F=(0,i.useCallback)(e=>{I.current=e;try{e?window.sessionStorage.setItem(T,JSON.stringify({id:e})):window.sessionStorage.removeItem(T)}catch{}},[]),J=(0,i.useCallback)(()=>A.current.getSessionId(),[]),$=(0,i.useCallback)(()=>{let e=q.current??(0,S.Cl)();return q.current=e,e},[]);(0,i.useEffect)(()=>
1{if(!s.enabled)return;q.current=(0,S.Cl)(),(0,S.bd)(),O.current=Date.now();let e=new c(s);if(e.setFlushCallback(function(e,t=!1){return n=>l(n,e,t)}(s.endpoint,s.debug)),y.current=e,x.current.length>0){for(let t of x.current)f(e,t.event,t.immediate);x.current=[]}return j(!0),s.debug&&console.log("[Analytics] SDK initialized"),()=>{N.current.forEach(e=>e()),N.current=[],e.destroy(),y.current=null,j(!1)}},[s,z]),(0,i.useEffect)(()=>{if(!B)return;let e=e=>{let t,n;if(!(e.target instanceof Element))return;let r=e.target.closest("[data-analytics-id]");if(!r)return;let i=r instanceof HTMLAnchorElement?r:r.closest("a");if(i?.href)try{let e=new URL(i.href);t=e.origin===window.location.origin?(0,S.p3)(e.pathname):e.pathname,n=e.hostname||void 0}catch{t=i.getAttribute("href")??void 0}z(u.Ys,{element_id:r.dataset.analyticsId,element_name:r.dataset.analyticsName,element_type:r.dataset.analyticsType??r.tagName.toLowerCase(),area:r.dataset.analyticsArea,target_path:t,target_host:n})};return document.addEventListener("click",e,!0),()=>document.removeEventListener("click",e,!0)},[B,z]),(0,i.useEffect)(()=>{if(B&&g){if(null===R.current){R.current=g;return}if(R.current!==g){let e=R.current;R.current=g,(0,S.bd)(),H.current||z("page_leave",{url:`${window.location.origin}${(0,S.p3)(e)}`,path:(0,S.p3)(e),leave_reason:"route_change"},{duration_ms:Date.now()-O.current}),O.current=Date.now(),z("page_view",{url:`${window.location.origin}${(0,S.p3)(g)}`,path:(0,S.p3)(g),referrer:document.referrer||void 0,referrer_path:(0,S.p3)(e),title:document.title}),s.debug&&console.log("[Analytics] page_view (route change):",g)}}},[B,g,z,s.debug]),(0,i.useEffect)(()=>{if(!B)return;let e=(0,S.D4)();D.current!==e&&(D.current=e,(0,S.bd)(),O.current=Date.now(),z("page_view",{url:`${window.location.origin}${(0,S.p3)(window.location.pathname)}`,path:(0,S.p3)(window.location.pathname),referrer:document.referrer||void 0,title:document.title,is_initial:!0,landing_query:window.location.search?window.location.search.slice(0,512):void 0}),s.debug&&console.log("[Analytics] page_view (initial):",window.location.pathname))},[B,z,s.debug]),(0,i.useEffect)(()=>{if(!B)return;let e=e=>{if(H.current)return;H.current=!0,M.current=Date.now();let t=Date.now()-O.current;z("page_leave",{url:`${window.location.origin}${(0,S.p3)(window.location.pathname)}`,path:(0,S.p3)(window.location.pathname),leave_reason:e},{duration_ms:t}),y.current?.flushWithBeacon(),s.debug&&console.log("[Analytics] page_leave, duration:",t,"reason:",e)},t=()=>{if("hidden"===document.visibilityState)e("hidden");else{H.current=!1,O.current=Date.now();let e=M.current?Date.now()-M.current:void 0;M.current=null,z("page_show",{url:`${window.location.origin}${(0,S.p3)(window.location.pathname)}`,path:(0,S.p3)(window.location.pathname)},void 0!==e?{duration_ms:e}:void 0),s.debug&&console.log("[Analytics] page_show, hidden for:",e)}},n=()=>e("pagehide");return document.addEventListener("visibilitychange",t),window.addEventListener("pagehide",n),()=>{document.removeEventListener("visibilitychange",t),window.removeEventListener("pagehide",n)}},[B,z,s.debug]);let V=(0,i.useMemo)(()=>({track:z,flush:P,setUserId:U,setConversationId:F,getSessionId:J,getAnonymousId:$,isReady:B}),[z,P,U,F,J,$,B]);return(0,r.jsx)(a.I.Provider,{value:V,children:e})}},24964:(e,t,n)=>{n.d(t,{P:()=>c});var r=n(2869);let i="G-HV8XCFLBPY",o=new Set([r.Zh,r.U,r.Ir]);function a(e){let t={};for(let[n,r]of Object.entries(e)){let e="string"==typeof r?r.slice(0,100):"number"==typeof r&&Number.isFinite(r)||"boolean"==typeof r?r:void 0;void 0!==e&&(t[n]=e)}return t}function s(e){if("number"==typeof e&&Number.isFinite(e))return Math.round(100*e)/100}function c(e){if(i&&1)try{let t=function(e){let t=e.context??{};if("page_view"===e.event_name)return{name:"page_view",params:a({page_location:t.url,page_path:t.path,page_title:t.title,page_group:t.page_group,locale:t.locale})};if(e.event_name===r.CM)return{name:"login",params:a({method:"google",page_group:t.page_group,locale:t.locale})};if(e.event_name===r.ZB&&!0===t.success)return{name:"generate_lead",params:a({method:"waitlist",page_group:t.page_group,locale:t.locale})};if(o.has(e.event_name))return{name:"select_content",params:a({content_type:"cta",item_id:t.cta_type??t.cta_target??t.element_id,page_group:t.page_group,target:t.target_path,locale:t.locale})};if(e.event_name===r.sy)return{name:"view_item_list",params:a({item_list_name:"pricing",selected_cycle:t.selected_cycle,current_plan:t.current_plan,page_group:t.page_group,locale:t.locale})};if(e.event_name===r.p1){let e=s(t.price_usd);return{name:"select_item",params:{...a({item_list_name:"pricing",item_id:t.plan,item_name:t.plan_name,billing_cycle:t.selected_cycle,intent:t.intent,current_plan:t.current_plan,page_group:t.page_group,locale:t.locale}),...void 0!==e?{currency:"USD",value:e}:{}}}}if(e.event_name===r.VJ){let e=s(t.price_usd??t.amount_usd);return{name:"begin_checkout",params:{...a({checkout_type:t.checkout_type,item_id:t.plan,billing_cycle:t.selected_cycle,current_plan:t.current_plan,page_group:t.page_group,locale:t.locale}),...void 0!==e?{currency:"USD",value:e}:{}}}}return null}(e);if(!t)return;window.dataLayer=window.dataLayer??[],window.gtag=window.gtag??function(...e){window.dataLayer?.push(e)},window.__ribbiGa4Ready||(window.gtag("js",new Date),window.gtag("config",i,{send_page_view:!1}),window.__ribbiGa4Ready=!0);let n=window.gtag;if(!n)return;n("event",t.name,t.params)}catch{}}},54640:(e,t,n)=>{n.d(t,{useTracker:()=>o});var r=n(18380);let i=()=>{};function o(){let e=(0,r.useAnalyticsSafe)();return e?.track??i}},55811:(e,t,n)=>{n.d(t,{WebVitalsReporter:()=>g});var r=n(12115),i=n(71394),o=n(54640),a=n(2869),s=n(60456),c=n(96206);let l=!1,u=null;function _(e,t=500){if("string"==typeof e&&0!==e.length)return e.length>t?`${e.slice(0,t-3)}...`:e}function d(e,t=0){if("number"!=typeof e||!Number.isFinite(e))return;let n=10**t;return Math.round(e*n)/n}function m(e){let t={};for(let[n,r]of Object.entries(e))null!=r&&""!==r&&(t[n]=r);return t}function p(e,t){if(Number.isFinite(e)&&Number.isFinite(t)&&!(e<=0)&&!(t<=0)&&!(t<e))return d(t-e,1)}function h(e,t){let n=e.serverTiming?.find(e=>e.name===t);return{duration_ms:d(n?.duration,1),description:_(n?.description,120)}}function f(e){return d(performance.getEntriesByName(e)[0]?.startTime,1)}function g(){let e=(0,o.useTracker)();return(0,r.useEffect)(()=>(u=e,()=>{u===e&&(u=null)}),[e]),(0,r.useEffect)(()=>{let e,t;if(l)return;l=!0;let n=(e=navigator.userAgent,t=/iPad/i.test(e)||/Macintosh/i.test(e)&&"ontouchend"in document?"tablet":/Mobi|Android|iPhone|iPod/i.test(e)?"mobile":"desktop",{path:(0,c.p3)(window.location.pathname),locale:(0,s.E6)(),device:t,device_type:t}),r=/^pre\d*\./i.test(window.location.hostname),o=e=>{u?.(a.Ej,{metric_name:e.name,metric_id:e.id,metric_delta:e.delta,metric_entries_count:e.entries.length,metric_report_mode:r?"all_changes":"final",rating:e.rating,navigation_type:e.navigationType,...n,...function(e){switch(e.name){case"LCP":{let{attribution:t}=e;
1return m({lcp_target:_(t.target,300),lcp_url:_(t.url,1e3),lcp_time_to_first_byte_ms:d(t.timeToFirstByte),lcp_resource_load_delay_ms:d(t.resourceLoadDelay),lcp_resource_load_duration_ms:d(t.resourceLoadDuration),lcp_element_render_delay_ms:d(t.elementRenderDelay),lcp_resource_protocol:_(t.lcpResourceEntry?.nextHopProtocol,40),lcp_resource_transfer_size:d(t.lcpResourceEntry?.transferSize),lcp_resource_encoded_body_size:d(t.lcpResourceEntry?.encodedBodySize)})}case"CLS":{let{attribution:t}=e;return m({cls_largest_shift_target:_(t.largestShiftTarget,300),cls_largest_shift_time_ms:d(t.largestShiftTime),cls_largest_shift_value:d(t.largestShiftValue,4),cls_load_state:t.loadState})}case"INP":{let{attribution:t}=e;return m({inp_interaction_target:_(t.interactionTarget,300),inp_interaction_type:t.interactionType,inp_interaction_time_ms:d(t.interactionTime),inp_next_paint_time_ms:d(t.nextPaintTime),inp_input_delay_ms:d(t.inputDelay),inp_processing_duration_ms:d(t.processingDuration),inp_presentation_delay_ms:d(t.presentationDelay),inp_load_state:t.loadState,inp_total_script_duration_ms:d(t.totalScriptDuration),inp_total_style_layout_duration_ms:d(t.totalStyleAndLayoutDuration),inp_total_paint_duration_ms:d(t.totalPaintDuration),inp_total_unattributed_duration_ms:d(t.totalUnattributedDuration),inp_longest_script_subpart:t.longestScript?.subpart,inp_longest_script_duration_ms:d(t.longestScript?.intersectingDuration),inp_longest_script_url:_(t.longestScript?.entry.sourceURL,1e3),inp_longest_script_function:_(t.longestScript?.entry.sourceFunctionName,200),inp_longest_script_invoker:_(t.longestScript?.entry.invoker,300),inp_longest_script_invoker_type:t.longestScript?.entry.invokerType})}case"FCP":{let{attribution:t}=e;return m({fcp_time_to_first_byte_ms:d(t.timeToFirstByte),fcp_first_byte_to_fcp_ms:d(t.firstByteToFCP),fcp_load_state:t.loadState})}case"TTFB":{let{attribution:t}=e;return m({ttfb_waiting_duration_ms:d(t.waitingDuration),ttfb_cache_duration_ms:d(t.cacheDuration),ttfb_dns_duration_ms:d(t.dnsDuration),ttfb_connection_duration_ms:d(t.connectionDuration),ttfb_request_duration_ms:d(t.requestDuration)})}}return{}}(e)},{duration_ms:e.value,immediate:!0})};(0,i.fK)(o,{reportAllChanges:r}),(0,i.IN)(o,{reportAllChanges:r}),(0,i.rH)(o),(0,i.zB)(o),(0,i.Ck)(o);let g=function(e){let t;if("u"<typeof performance)return()=>{};let n=!1,r=t=>{if(n)return;let r=performance.getEntriesByType("navigation")[0];if(!r)return;n=!0;let i=h(r,"ribbiHtmlCache"),o=h(r,"cfEdge"),s=h(r,"cfOrigin"),c=h(r,"cfWorker"),l=d(r.responseStart,1),g=d(r.responseEnd,1),y=d(r.domInteractive,1),v=d(r.domContentLoadedEventEnd,1),w=d(r.loadEventEnd,1),b=f("first-paint"),k=f("first-contentful-paint"),S=p(r.requestStart,r.responseStart),x=d(r.encodedBodySize),T=d(r.decodedBodySize),E="number"==typeof x&&"number"==typeof T&&T>0?d(x/T,4):void 0;u?.(a.Ej,m({metric_name:"DOCUMENT_NAVIGATION",metric_id:`navigation-${Math.round(r.startTime)}`,metric_primary_value:"ttfb_ms",metric_report_reason:t,navigation_type:r.type,redirect_count:r.redirectCount,protocol:_(r.nextHopProtocol,40),redirect_duration_ms:p(r.redirectStart,r.redirectEnd),worker_start_ms:d(r.workerStart,1),dns_duration_ms:p(r.domainLookupStart,r.domainLookupEnd),connect_duration_ms:p(r.connectStart,r.connectEnd),tls_duration_ms:p(r.secureConnectionStart,r.connectEnd),ttfb_ms:S,request_to_first_byte_ms:S,document_download_ms:p(r.responseStart,r.responseEnd),response_start_ms:l,response_end_ms:g,dom_interactive_ms:y,dom_content_loaded_ms:v,load_event_ms:w,first_paint_ms:b,first_contentful_paint_ms:k,transfer_size_bytes:d(r.transferSize),encoded_body_size_bytes:x,decoded_body_size_bytes:T,html_compression_ratio:E,ribbi_html_cache:i.description,ribbi_html_cache_duration_ms:i.duration_ms,cf_edge_ms:o.duration_ms,cf_origin_ms:s.duration_ms,cf_worker_ms:c.duration_ms,...e}),{duration_ms:S??g??k??r.duration,immediate:!0})},i=()=>{t&&clearTimeout(t),t=setTimeout(()=>r("load"),0)};return"complete"===document.readyState?t=setTimeout(()=>r("complete"),3e3):(window.addEventListener("load",i,{once:!0}),t=setTimeout(()=>r("timeout"),3e3)),()=>{t&&clearTimeout(t),window.removeEventListener("load",i),r("cleanup")}}(n),y=function(e){if(!("PerformanceObserver"in window)||!PerformanceObserver.supportedEntryTypes?.includes("longtask"))return()=>{};let t=performance.now(),n=[],r=!1,i=i=>{if(r||0===n.length)return;r=!0;let o=n.reduce((e,t)=>
1e+t.duration,0),s=n.reduce((e,t)=>e+Math.max(0,t.duration-50),0),c=n.reduce((e,t)=>!e||t.duration>e.duration?t:e,null),l=c?.attribution?.[0];u?.(a.Ej,m({metric_name:"LONG_TASK_TBT_ESTIMATE",metric_id:`longtask-${Math.round(t)}`,metric_window_ms:Math.round(performance.now()-t),metric_entries_count:n.length,metric_report_reason:i,long_task_total_duration_ms:d(o),long_task_worst_duration_ms:d(c?.duration),long_task_worst_start_ms:d(c?.startTime),long_task_worst_attribution_name:_(l?.name,200),long_task_worst_container_type:_(l?.containerType,80),long_task_worst_container_name:_(l?.containerName,200),long_task_worst_container_src:_(l?.containerSrc,1e3),long_task_worst_container_id:_(l?.containerId,120),...e}),{duration_ms:d(s),immediate:!0})},o=new PerformanceObserver(e=>{n.push(...e.getEntries())});o.observe({type:"longtask",buffered:!0});let s=setTimeout(()=>i("timeout"),1e4),c=()=>{"hidden"===document.visibilityState&&i("hidden")},l=()=>i("pagehide");return document.addEventListener("visibilitychange",c),window.addEventListener("pagehide",l),()=>{o?.disconnect(),s&&clearTimeout(s),document.removeEventListener("visibilitychange",c),window.removeEventListener("pagehide",l)}}(n),v=function(e){if(!("PerformanceObserver"in window)||!PerformanceObserver.supportedEntryTypes?.includes("long-animation-frame"))return()=>{};let t=performance.now(),n=[],r=new Map,i=!1,o=o=>{if(i||0===n.length)return;i=!0;let s=n.reduce((e,t)=>e+Math.max(0,t.blockingDuration??t.duration-50),0),c=n.reduce((e,t)=>e+t.duration,0),l=Array.from(r.entries()).sort((e,t)=>t[1].duration-e[1].duration).slice(0,5).map(([e,t])=>({sourceURL:_(e,300),count:t.count,duration_ms:d(t.duration),forced_layout_ms:d(t.forcedLayout),invoker:_(t.invoker,160),invoker_type:_(t.invokerType,80)}
1));u?.(a.Ej,m({metric_name:"LONG_ANIMATION_FRAME_SUMMARY",metric_id:`laf-${Math.round(t)}`,metric_window_ms:Math.round(performance.now()-t),metric_entries_count:n.length,metric_report_reason:o,long_frame_total_duration_ms:d(c),long_frame_top_scripts:l.length>0?l:void 0,...e}),{duration_ms:d(s),immediate:!0})},s=new PerformanceObserver(e=>{let t=e.getEntries();for(let e of(n.push(...t),t))for(let t of e.scripts??[]){let e=t.sourceURL||t.invoker||"(unknown)",n=r.get(e)??{count:0,duration:0,forcedLayout:0,invoker:t.invoker,invokerType:t.invokerType};n.count+=1,n.duration+=t.duration??0,n.forcedLayout+=t.forcedStyleAndLayoutDuration??0,n.invoker||=t.invoker,n.invokerType||=t.invokerType,r.set(e,n)}});s.observe({type:"long-animation-frame",buffered:!0});let c=setTimeout(()=>o("timeout"),1e4),l=()=>{"hidden"===document.visibilityState&&o("hidden")},p=()=>o("pagehide");return document.addEventListener("visibilitychange",l),window.addEventListener("pagehide",p),()=>{s?.disconnect(),c&&clearTimeout(c),document.removeEventListener("visibilitychange",l),window.removeEventListener("pagehide",p)}}(n);return()=>{g(),y(),v()}},[]),null}},57289:(e,t,n)=>{n.d(t,{uL:()=>l,y5:()=>u});var r=n(2869);let i="2795708767459038";function o(e){let t={};for(let[n,r]of Object.entries(e)){let e=function(e){if("string"==typeof e)return e.slice(0,200);if("number"==typeof e&&Number.isFinite(e)||"boolean"==typeof e)return e;if(Array.isArray(e)){let t=e.filter(e=>"string"==typeof e).map(e=>e.slice(0,200));return t.length>0?t:void 0}}(r);void 0!==e&&(t[n]=e)}return t}function a(){let e=window.fbq;if(!e){let t;(t=function(...e){"function"==typeof t.callMethod?t.callMethod.apply(t,e):(t.queue=t.queue??[],t.queue.push(e))}).push=t,t.loaded=!0,t.version="2.0",t.queue=[],e=t,window.fbq=e}if(window._fbq||(window._fbq=e),!document.getElementById("meta-pixel-sdk")){let e=document.createElement("script");e.id="meta-pixel-sdk",e.async=!0,e.src="https://connect.facebook.net/en_US/fbevents.js";let t=document.getElementsByTagName("script")[0];t?.parentNode?.insertBefore(e,t)}!window.__ribbiMetaPixelReady&&i&&(e("init",i),window.__ribbiMetaPixelReady=!0)}let s="ribbi_meta_purchase_sent";function c(){try{let e=sessionStorage.getItem(s),t=e?JSON.parse(e):[];return Array.isArray(t)?t.filter(e=>"string"==typeof e):[]}catch{return[]}}function l(e){if(!(i&&1))return"skipped_disabled";try{if(c().includes(e.eventId))return"skipped_duplicate";a();let n=window.fbq;if(!n)return"skipped_no_fbq";n("track","Purchase",{value:Math.round(100*e.value)/100,currency:e.currency.toUpperCase().slice(0,3),content_type:"product",content_ids:[e.contentType],purchase_type:e.contentType},{eventID:e.eventId});var t=e.eventId;try{let e=c();e.push(t),sessionStorage.setItem(s,JSON.stringify(e.slice(-20)))}catch{}return"sent"}catch{return"error"}}function u(e){if(i&&1)try{var t;let n=function(e){var t;let n=e.context??{};if("page_view"===e.event_name)return{name:"PageView",params:o({page_location:n.url,page_path:n.path,page_title:n.title,page_group:n.page_group,locale:n.locale})};if(e.event_name===r.ZZ){let e="string"==typeof n.creative_id?n.creative_id:void 0;return{name:"ViewContent",params:o({content_type:"creative",content_ids:e?[e]:void 0,platform:n.platform,format:n.format,action:n.action,page_group:n.page_group,locale:n.locale})}}if(e.event_name===r.KR)return{command:"trackCustom",name:"ChatMessageSent",params:o({page_group:n.page_group,origin:n.origin,locale:n.locale})};if(e.event_name===r.Np&&"chat"===n.page_group)return{command:"trackCustom",name:"AssetDownloaded",params:o({page_group:n.page_group,asset_type:n.asset_type,download_method:n.download_method,source:n.source,locale:n.locale})};if(e.event_name===r.CM&&(!0===(t=n.is_new)||"true"===t||1===t||"1"===t))return{name:"CompleteRegistration",params:o({method:"google",page_group:n.page_group,locale:n.locale})};if(e.event_name===r.VJ){let e=function(e){if("number"==typeof e&&Number.isFinite(e))return Math.round(100*e)/100}(n.price_usd??n.amount_usd),t="string"==typeof n.plan?n.plan:"string"==typeof n.checkout_type?n.checkout_type:void 0;return{name:"InitiateCheckout",params:{...o({checkout_type:n.checkout_type,content_type:"product",content_ids:t?[t]:void 0,content_name:n.plan_name??n.plan,billing_cycle:n.selected_cycle,current_plan:n.current_plan,page_group:n.page_group,locale:n.locale}),...void 0!==e?{currency:"USD",value:e}:{}}}}return e.event_name===r.Fb,null}(e);if(!n)return;a();let i=window.fbq;if(!i)return;let s=(t=e.context??{},"string"==typeof t.event_id?t.event_id:void 0);i(n.command??"track",n.name,n.params,s?{eventID:s}:void 0)}catch{}}}
1,60562:(e,t,n)=>{n.d(t,{AnalyticsWrapper:()=>_});var r=n(95155),i=n(19059),o=n(12115);function a(e,t){return e.length<=t?e:e.slice(0,t)+"..."}class s extends o.Component{constructor(e){super(e),this.state={hasError:!1,error:null}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){let{track:n,debug:r}=this.props;if(r&&console.log("[Analytics] React Error Boundary caught:",e.message),n("error_react_boundary",{message:a(e.message,500),stack:e.stack?a(e.stack,1e3):void 0,component_stack:t.componentStack?a(t.componentStack,1e3):void 0,error_type:e.name??"Error",url:window.location.href,user_agent:"u">typeof navigator?navigator.userAgent:void 0}),"ChunkLoadError"===e.name){let e="chunk_reload_count",t=Number(sessionStorage.getItem(e)||0);t<2&&(sessionStorage.setItem(e,String(t+1)),window.location.reload())}}render(){return this.state.hasError?this.props.fallback?this.props.fallback:(0,r.jsx)("div",{className:"flex min-h-screen flex-col items-center justify-center p-4",children:(0,r.jsxs)("div",{className:"text-center",children:[(0,r.jsx)("h1",{className:"text-2xl font-semibold text-foreground mb-2",children:"Something went wrong"}),(0,r.jsx)("p",{className:"text-muted-foreground mb-4",children:"We're sorry, an unexpected error occurred."}),(0,r.jsx)("button",{onClick:()=>window.location.reload(),className:"px-4 py-2 bg-primary text-primary-foreground rounded-md hover:opacity-90 transition-opacity",children:"Refresh Page"})]})}):this.props.children}}var c=n(18380),l=n(42623);function u({children:e,debug:t,errorFallback:n}){let{track:i}=(0,c.useAnalytics)();return(0,r.jsx)(s,{track:i,debug:t,fallback:n,children:e})}function _({children:e,config:t,errorFallback:n}){let o=t?.debug??!1,{user:a}=(0,l.A)();return(0,r.jsx)(i.AnalyticsProvider,{config:t,userId:a?.id??null,children:(0,r.jsx)(u,{debug:o,errorFallback:n,children:e})})}},62833:(e,t,n)=>{n.d(t,{zh:()=>c.zh,R5:()=>c.R5,Y1:()=>c.Y1,iT:()=>c.iT,Ce:()=>c.Ce,wG:()=>c.wG,aY:()=>c.aY,xO:()=>c.xO,pp:()=>c.pp,Q$:()=>c.Q$,Xd:()=>c.Xd,Qf:()=>c.Qf,e$:()=>c.e$,KR:()=>c.KR,xR:()=>c.xR,yz:()=>c.yz,r:()=>c.r,Uw:()=>c.Uw,R2:()=>c.R2,AP:()=>c.AP,r9:()=>c.r9,nR:()=>c.nR,Fb:()=>c.Fb,DI:()=>c.DI,DS:()=>c.DS,hG:()=>c.hG,VJ:()=>c.VJ,fR:()=>c.fR,no:()=>c.no,U3:()=>c.U3,gq:()=>c.gq,dy:()=>c.dy,_2:()=>c._2,iw:()=>c.iw,Ab:()=>c.Ab,ad:()=>c.ad,fQ:()=>c.fQ,wC:()=>c.wC,Oh:()=>c.Oh,DA:()=>c.DA,XU:()=>c.XU,XO:()=>c.XO,BL:()=>c.BL,BE:()=>c.BE,MZ:()=>c.MZ,qV:()=>c.qV,Vk:()=>c.Vk,v:()=>c.v,sx:()=>c.sx,kO:()=>c.kO,OM:()=>c.OM,ZZ:()=>c.ZZ,ay:()=>c.ay,ky:()=>c.ky,hd:()=>c.hd,vx:()=>c.vx,gw:()=>c.gw,o9:()=>c.o9,ZJ:()=>c.ZJ,Yb:()=>c.Yb,f8:()=>c.f8,jn:()=>c.jn,g$:()=>r.ImpressionTracker,k1:()=>c.k1,hg:()=>c.hg,CM:()=>c.CM,mV:()=>c.mV,T_:()=>c.T_,LA:()=>c.LA,XB:()=>c.XB,zr:()=>c.zr,qj:()=>c.qj,KJ:()=>c.KJ,yN:()=>c.yN,EQ:()=>c.EQ,Np:()=>c.Np,Je:()=>c.Je,IZ:()=>c.IZ,aD:()=>c.aD,KH:()=>c.KH,ZT:()=>c.ZT,NH:()=>c.NH,fo:()=>c.fo,Jh:()=>c.Jh,sK:()=>c.sK,hS:()=>c.hS,we:()=>c.we,qr:()=>c.qr,AT:()=>c.AT,pj:()=>c.pj,EO:()=>c.EO,OY:()=>c.OY,_z:()=>c._z,aK:()=>c.aK,ri:()=>c.ri,Iw:()=>c.Iw,df:()=>c.df,R6:()=>c.R6,j1:()=>c.j1,PW:()=>c.PW,p1:()=>c.p1,sy:()=>c.sy,n8:()=>c.n8,is:()=>c.is,pX:()=>c.pX,xN:()=>c.xN,jN:()=>c.jN,fA:()=>c.fA,mG:()=>c.mG,BM:()=>c.BM,Q_:()=>c.Q_,GW:()=>c.GW,fs:()=>c.fs,RK:()=>c.RK,t7:()=>c.t7,zg:()=>c.zg,VQ:()=>c.VQ,Te:()=>c.Te,RH:()=>c.RH,ww:()=>s.w,uL:()=>a.uL,st:()=>i.useAnalytics,lq:()=>i.useAnalyticsSafe,sr:()=>o.useTracker}),n(19059),n(60562),n(95155),n(65596),n(55811),n(99857);var r=n(8162),i=n(18380),o=n(54640);n(14397),n(24964);var a=n(57289),s=n(98239),c=n(2869)},98239:(e,t,n)=>{n.d(t,{w:()=>o});let r="AW-18201646394",i={subscription:"jqT3CInh3LgcELqqnOdD",recharge:"A_qrCKe2xbgcELqqnOdD",sign_up:"6JkWCJiI5LocELqqnOdD",login:"uAhDCOfs-LocELqqnOdD",new_chat:"eidRCMzC5LocELqqnOdD",send_message:"YX_DCJv6-LocELqqnOdD"};function o(e){if(!(r&&1)||!r)return;let t=i[e.type];if(t)try{window.dataLayer=window.dataLayer??[],window.gtag=window.gtag??function(...e){window.dataLayer?.push(e)};let n=window.gtag;if(!n)return;let i={send_to:`${r}/${t}`,transport_type:"beacon"};"number"==typeof e.value&&Number.isFinite(e.value)&&(i.value=Math.round(100*e.value)/100,i.currency=e.currency??"USD"),e.transactionId&&(i.transaction_id=e.transactionId),n("event","conversion",i)}catch{}}},99857:(e,t,n)=>{n.d(t,{ResourceTimingReporter:()=>l});var r=n(12115),i=n(54640),o=n(2869);let a=new Set,s=!1,c=null;function l(){let e=(0,i.useTracker)();return(0,r.useEffect)(()=>(c=e,()=>{c===e&&(c=null)}),[e]),(0,r.useEffect)(()=>
1{if(!(s||"u"<typeof PerformanceObserver)){s=!0;try{"u">typeof performance&&performance.setResourceTimingBufferSize&&performance.setResourceTimingBufferSize(1e3)}catch{}new PerformanceObserver(e=>{for(let n of e.getEntriesByType("resource")){var t;let e=(t=n.name,/\.m3u8(\?|$)/i.test(t)?{pattern:"hls_manifest",isHlsManifest:!0,isHlsSegment:!1}:/\.(ts|m4s)(\?|$)/i.test(t)?{pattern:"hls_segment",isHlsManifest:!1,isHlsSegment:!0}:/\/api\/v1\/files\//i.test(t)?{pattern:"r2_asset",isHlsManifest:!1,isHlsSegment:!1}:/^https:\/\/imagedelivery\.net\//i.test(t)||/\/(?:cdn-images|cdn-cgi\/image)\//i.test(t)?{pattern:"cf_images",isHlsManifest:!1,isHlsSegment:!1}:/cloudflarestream\.com\/|videodelivery\.net\//i.test(t)?{pattern:"cf_stream",isHlsManifest:!1,isHlsSegment:!1}:{pattern:null,isHlsManifest:!1,isHlsSegment:!1});e.pattern&&(!e.isHlsSegment||function(e){try{let t=new URL(e).pathname.replace(/\/[^/]+\.(ts|m4s)(\?.*)?$/,"");if(a.has(t))return!1;return a.add(t),!0}catch{return!1}}(n.name))&&c?.(o.JH,function(e,t){let n,r,i=e.transferSize||0,o=e.encodedBodySize||0;return{url:e.name,filename:function(e){try{return new URL(e).pathname.split("/").pop()||""}catch{return""}}(e.name),resource_type:e.initiatorType,pattern:t.pattern,is_hls_segment:t.isHlsSegment||void 0,is_hls_manifest:t.isHlsManifest||void 0,...(n=e.requestStart>0&&e.responseStart>0,{total_ms:(r=(e,t)=>Math.max(0,Math.round(t-e)))(e.startTime,e.responseEnd),has_full_timing:n,dns_ms:n?r(e.domainLookupStart,e.domainLookupEnd):void 0,tcp_ms:n?r(e.connectStart,e.connectEnd):void 0,tls_ms:n?e.secureConnectionStart>0?r(e.secureConnectionStart,e.connectEnd):0:void 0,ttfb_ms:n?r(e.requestStart,e.responseStart):void 0,download_ms:n?r(e.responseStart,e.responseEnd):void 0,stall_ms:n?r(e.startTime,e.requestStart):void 0}),transfer_size:i,encoded_body_size:o,cache_hit:0===i&&o>0,protocol:e.nextHopProtocol||void 0}}(n,e))}}).observe({type:"resource",buffered:!0})}},[]),null}}}]);
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.