1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["static/main-CD1DaFKY.js","static/preload-helper-BZ1Pz5am.js","static/bufferedData-C0LKI4lP.js","static/main-B8ZWgsHs.js"])))=>i.map(i=>d[i]); 2import{n as e,r as t}from"./runtime-QtgwY_nV.js";import{t as n}from"./preload-helper-BZ1Pz5am.js";import{r}from"./backend-CC2lXJt_.js";import{W as i}from"./vendor-data-D4IPhVFk.js";function a(e,t){let n=e,r=o(t(`cf-error-type`)),i=o(t(`cf-error-origin`)),a=n?.cloudflare_error===!0;return!a&&!r&&!i?{}:{cloudflare:{error:!0,detection:a?`json`:`header`,ray_id:o(t(`cf-ray`))||o(n?.ray_id),error_type:r,error_origin:i,error_code:typeof n?.error_code==`number`?n.error_code:void 0,error_category:o(n?.error_category)}}}function o(e){return typeof e==`string`&&e.length>0?e:void 0}var s=`b44_consent`,c=`.base44.com`,l=3456e4;function u(e){return btoa(unescape(encodeURIComponent(e))).replace(/\+/g,`-`).replace(/\//g,`_`).replace(/=+$/,``)}function d(e){let t=e.replace(/-/g,`+`).replace(/_/g,`/`);return decodeURIComponent(escape(atob(t)))}function f(e){if(!e||typeof e!=`object`)return!1;let t=e;return typeof t.essential==`boolean`&&typeof t.analytics==`boolean`&&typeof t.marketing==`boolean`}function p(e){return u(JSON.stringify(e))}function m(e){if(!e)return null;let t;try{t=JSON.parse(d(e))}catch{return null}if(!t||typeof t!=`object`)return null;let n=t;return n.v!==2||typeof n.uuid!=`string`||typeof n.configVersion!=`number`||typeof n.materialVersion!=`number`||typeof n.regionKey!=`string`||typeof n.decidedAt!=`number`||typeof n.gpc!=`boolean`||!f(n.choices)?null:{v:2,uuid:n.uuid,configVersion:n.configVersion,materialVersion:n.materialVersion,regionKey:n.regionKey,decidedAt:n.decidedAt,gpc:n.gpc,choices:{...n.choices,essential:!0}}}function h(e){if(typeof document>`u`)return null;let t=document.cookie.match(RegExp(`(?:^|; )`+e.replace(/[.$?*|{}()[\]\\/+^]/g,`\\$&`)+`=([^;]*)`));return t?t[1]:null}function ee(){return h(`no_cmp`)!==null}function g(){let e=m(h(s));if(e)return e;try{return m(localStorage.getItem(s))}catch{return null}}function te(e){let t=p(e);if(typeof document<`u`){let e=typeof location<`u`&&location.hostname.endsWith(`base44.com`)?`; domain=${c}`:``;document.cookie=`${s}=${t}; path=/; max-age=${l}${e}; SameSite=Lax; Secure`}try{localStorage.setItem(s,t)}catch{}}var ne=2592e6;function _(e,t,n){return!e||t.config_version===0||e.configVersion===0||e.regionKey!==t.region_key||e.materialVersion<t.material_version?!1:n<e.decidedAt+t.ttl_months*ne}function v(e,t,n){return!t.native_consent_enabled||t.mode!==`opt_in`&&t.mode!==`notice_only`?!1:!_(e,t,n)}function y(e){let t=new Map(e.categories.map(e=>[e.key,e.default_enabled]));return{essential:!0,analytics:t.get(`analytics`)??!1,marketing:t.get(`marketing`)??!1}}function re(e,t){if(!e.native_consent_enabled)return b(`accept_all`);let n=y(e);return t&&e.honor_gpc?{essential:!0,analytics:!1,marketing:!1}:n}function ie(e,t,n,r){return t.native_consent_enabled?_(e,t,n)?{...e.choices,essential:!0}:re(t,r):{essential:!0,analytics:e?.choices.analytics??!0,marketing:e?.choices.marketing??!0}}function ae(e,t,n){return t&&_(e,t,n)?{analytics:e.choices.analytics,policyDefault:!1}:t?{analytics:y(t).analytics,policyDefault:!0}:{analytics:e?.choices.analytics??!0,policyDefault:e===null}}function b(e){let t=e===`accept_all`;return{essential:!0,analytics:t,marketing:t}}function oe(){if(typeof navigator>`u`)return!1;let e=navigator;if(typeof e.globalPrivacyControl==`boolean`)return e.globalPrivacyControl;if(typeof window<`u`){let e=window;if(typeof e.globalPrivacyControl==`boolean`)return e.globalPrivacyControl}return!1}var se=`/api/consent/config`,ce=`b44_consent_config`,le=3e5,ue=3e3,de={region_key:`unknown`,native_consent_enabled:!0,mode:`opt_in`,honor_gpc:!0,show_do_not_sell_link:!1,ttl_months:12,consent_mode_v2:`advanced`,persistence:`persistent`,banner_copy:{},categories:[{key:`essential`,default_enabled:!0,trackers:[]},{key:`analytics`,default_enabled:!1,trackers:[]},{key:`marketing`,default_enabled:!1,trackers:[]}],config_version:0,material_version:0};function fe(e){return[ce,e.baseUrl??``,e.country??``,e.state??``,e.locale??``,e.forceNativeConsent?`force`:``].join(`|`)}function pe(e,t){try{let n=sessionStorage.getItem(e);if(!n)return null;let r=JSON.parse(n);return t-r.at>le?null:r}catch{return null}}function me(e,t,n){try{sessionStorage.setItem(e,JSON.stringify({at:n,
2config:t}))}catch{}}async function x(e={}){let t=t=>e.onDiagnostic?.(t),n=e.now??Date.now(),r=fe(e),i=e.bypassCache?null:pe(r,n);if(i)return t(S(i.config,`cache`,i.at)),i.config;t({outcome:`pending`});let a=new URLSearchParams;e.country&&a.set(`country`,e.country),e.state&&a.set(`state`,e.state),e.locale&&a.set(`locale`,e.locale);let o=a.toString(),s=`${e.baseUrl??``}${se}${o?`?${o}`:``}`,c=e.signal?null:new AbortController,l=c?setTimeout(()=>c.abort(),ue):null;try{let n=await fetch(s,{method:`GET`,credentials:`omit`,...e.bypassCache?{cache:`no-store`}:{},headers:{Accept:`application/json`},signal:e.signal??c?.signal});if(!n.ok)return t({outcome:`http_error`,status:n.status}),null;let i=await n.json(),a=e.forceNativeConsent?{...i,native_consent_enabled:!0}:i,o=e.now??Date.now();return t({...S(a,`success`),observed_at_ms:o}),me(r,a,o),a}catch(n){return t({outcome:c?.signal.aborted?`timeout`:e.signal?.aborted?`aborted`:n instanceof SyntaxError?`invalid_json`:`network_error`}),null}finally{l!==null&&clearTimeout(l)}}async function he(e={}){return await x(e)??de}function S(e,t,n){return{outcome:e.config_version===0?`server_fallback`:t,...n===void 0?{}:{cached:!0,observed_at_ms:n},config_version:e.config_version,region:e.region_key,mode:e.mode,enabled:e.native_consent_enabled}}var ge=`/api/consent/receipts`,_e=3,ve=400;function C(e,t,n=1){if(typeof fetch!=`function`)return;let r=()=>{n<_e&&setTimeout(()=>C(e,t,n+1),ve*n)};fetch(e,{method:`POST`,headers:{"Content-Type":`application/json`},body:t,keepalive:!0,credentials:`omit`}).then(e=>{e.ok||r()}).catch(r)}function ye(e,t=``){let n=`${t}${ge}`,r=JSON.stringify(e);if(t===``&&typeof navigator<`u`&&typeof navigator.sendBeacon==`function`)try{let e=new Blob([r],{type:`application/json`});if(navigator.sendBeacon(n,e))return}catch{}C(n,r)}var be={status:`idle`,config:null,record:null,choices:{essential:!0,analytics:!1,marketing:!1},showBanner:!1,gpc:!1};function w(e,t,n){return t.native_consent_enabled&&n&&t.honor_gpc&&(t.mode===`opt_out_gpc`||t.mode===`opt_out`)?{essential:!0,analytics:!1,marketing:!1}:e}function xe(e){let t=be,n=new Set,r=``,i,a,o,s=()=>n.forEach(e=>e()),c=e=>{t={...t,...e},s()};function l(n,r){return{v:2,uuid:t.record?.uuid??e.uuid(),configVersion:n.config_version,materialVersion:n.material_version,regionKey:n.region_key,choices:{...r,essential:!0},decidedAt:e.now(),gpc:t.gpc}}function u(n,i,s){let u=w(i,n,t.gpc),d=u.analytics!==i.analytics||u.marketing!==i.marketing?`gpc_auto_optout`:s,f=l(n,u);e.writeRecord(f),e.postReceipt({receipt_id:e.uuid(),visitor_id:f.uuid,action:d,choices:f.choices,gpc_signal:t.gpc,displayed_config_version:n.config_version,...a?{displayed_country:a}:{},...o?{displayed_state:o}:{}},r),c({record:f,choices:f.choices,showBanner:v(f,n,e.now())})}async function d(t){i=t,c({status:`loading`}),r=t?.receiptBaseUrl??t?.baseUrl??``,a=t?.country,o=t?.country?t?.state:void 0;let n=e.detectGpc(),s=await e.fetchConfig(t),l=e.readRecord(),d=e.now(),f=_(l,s,d),p=s.native_consent_enabled&&n&&s.honor_gpc&&(s.mode===`opt_out_gpc`||s.mode===`opt_out`)&&(!f||l.choices.analytics===!0||l.choices.marketing===!0),m=w(ie(l,s,d,n),s,n);c({status:`ready`,config:s,record:l,gpc:n,choices:m,showBanner:v(l,s,d)}),p&&u(s,m,`gpc_auto_optout`)}let f=()=>t.config?.config_version===0?(t.status!==`loading`&&d({...i,bypassCache:!0}),null):t.config,p={getSnapshot:()=>t,subscribe(e){return n.add(e),()=>n.delete(e)},init:d,refreshFromStorage(){let n=t.config,r=e.readRecord();if(!n){JSON.stringify(r)!==JSON.stringify(t.record)&&c({record:r});return}let i=e.now();c({record:r,choices:w(ie(r,n,i,t.gpc),n,t.gpc),showBanner:v(r,n,i)})},acceptAll(){let e=f();e&&u(e,b(`accept_all`),`accept_all`)},rejectAll(){let e=f();e&&u(e,b(`reject_all`),`reject_all`)},saveCustom(e){let t=f();t&&u(t,{essential:!0,analytics:!!e.analytics,marketing:!!e.marketing},`custom`)},dismiss(){let e=f();
2e&&u(e,t.choices,`dismiss`)},withdraw(){let e=f();e&&u(e,b(`reject_all`),`withdraw`)},whenConsented(e,n,r){let i=!1,a=!1,o=()=>{if(t.status!==`ready`)return;let o=t.choices[e]===!0;o&&!i?(i=!0,a||(a=!0,n())):!o&&i&&(i=!1,a=!1,r?.onRevoke?.())};return o(),p.subscribe(o)}};return p}var T={},E=new Set;function D(){E.forEach(e=>{try{e(T)}catch{}})}function Se(e){return E.add(e),e(T),()=>{E.delete(e)}}function Ce(e,t){if(typeof window>`u`)return;let n={...t,observed_at_ms:t.observed_at_ms??Date.now()};if(T={...T,[e]:n},![`pending`,`cache`,`success`].includes(t.outcome)){let r=T[`${e}_last_failure`];(!t.cached||!r||r.observed_at_ms<n.observed_at_ms)&&(T={...T,[`${e}_last_failure`]:{...n}})}D()}function we(e){typeof window>`u`||(T={...T,selection:e},D())}function Te(e){typeof window>`u`||(T={...T,native_marker:e},D())}function Ee(){return typeof crypto<`u`&&typeof crypto.randomUUID==`function`?crypto.randomUUID():`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,10)}`}var O=xe({fetchConfig:e=>he({...e,onDiagnostic:e=>Ce(`config`,e)}),readRecord:g,writeRecord:te,postReceipt:ye,detectGpc:oe,now:()=>Date.now(),uuid:Ee}),k=!1;function De(e=O){if(k||typeof window>`u`)return;k=!0,window.addEventListener(`storage`,t=>{t.key===`b44_consent`&&e.refreshFromStorage()});let t=()=>{document.visibilityState===`visible`&&e.refreshFromStorage()};document.addEventListener(`visibilitychange`,t),window.addEventListener(`focus`,t)}function Oe(e){let t=!1,n=new Set,r=()=>{let{status:t,record:n}=e.getSnapshot();return t===`ready`?n?.choices.analytics===!1:e.readRecord()?.choices.analytics===!1};return{setAnalyticsGateActive(e){let r=e&&!t;
2t=e,r&&n.forEach(e=>e())},isAnalyticsBannerActive:()=>t,onAnalyticsGateActivated(e){return n.add(e),()=>n.delete(e)},analyticsConsentDenied:r,analyticsConsentWithdrawn(){let{status:t,record:n,choices:r,showBanner:i}=e.getSnapshot();return t===`ready`?r.analytics===!1&&n?.choices.analytics===!1&&!i:e.readRecord()?.choices.analytics===!1},analyticsTrackingAllowed(){if(!t)return!r();let{status:n,choices:i}=e.getSnapshot();return n===`ready`&&i.analytics===!0},analyticsConsentGranted(){let{status:n,choices:r}=e.getSnapshot();return n===`ready`?r.analytics===!0:!t&&e.readRecord()?.choices.analytics===!0}}}var ke=e=>{let t=e.public_settings===`public_without_login`?e.preview_screenshot_url:null;return e.screenshot_url??t??``},A=e=>e?.app_type===`user_agent`,j=e=>e===`mobile_app`,Ae=e=>j(e?.app_type),M=e=>e===`slide`,je=e=>M(e?.app_type),N=e=>e?.app_type===`user_game`,Me=e=>e?.app_type===`imported_app`,Ne=e=>N(e)&&e?.game_meta?.game_engine_subtype!==`game_no_engine`,Pe=e=>!!e&&!N(e)&&!A(e),Fe=(e,t)=>!e||!t?!1:e.toLowerCase()===t.toLowerCase(),Ie=[`@base44.com`,`@wix.com`],P=e=>e?Ie.some(t=>e.toLowerCase().endsWith(t)):!1,Le=e=>e.filter(e=>!P(e.email)),F={applicationId:e(`DATADOG_APPLICATION_ID`)||``,clientToken:e(`DATADOG_CLIENT_TOKEN`)||``,site:e(`DATADOG_SITE`)||`datadoghq.com`,service:e(`DATADOG_SERVICE`)||`base44-frontend`,version:e(`GIT_SHA`)||`unknown`};function Re(){return!!(F.applicationId&&F.clientToken)}function ze(){return t()}function Be(e){let t;try{t=new URL(e).pathname}catch{t=e.split(`?`)[0].split(`#`)[0]}let n=t;return n=n.replace(/\/apps\/[^/]+/,`/apps/:appId`),n=n.replace(/(\/editor\/preview)\/.*$/,`$1`),n=n.replace(/\/entity-[^/?]+/,`/entity`),n=n.replace(/\/trash-entity-[^/?]+/,`/trash-entity`),n=n.replace(/\/system-email-[^/?]+/,`/system-email`),n=n.replace(/\/email-[^/?]+/,`/email`),n=n.replace(/^\/workspace\/[^/]+/,`/workspace/:workspaceId`),n=n.replace(/\/remix-app\/[^/]+/,`/remix-app/:appId`),n=n.replace(/\/app-templates\/manage-listing\/[^/]+/,`/app-templates/manage-listing/:appId`),n.length>1&&n.endsWith(`/`)&&(n=n.slice(0,-1)),n}function I(e){return e.replace(/[a-f0-9]{24}\.[A-Za-z0-9_-]{22}(?![A-Za-z0-9_-])/g,`[REDACTED]`).replace(/B44LINK_[a-f0-9]{24}_[A-Za-z0-9_-]{22}(?![A-Za-z0-9_-])/g,`[REDACTED]`)}var{setAnalyticsGateActive:Ve,isAnalyticsBannerActive:He,onAnalyticsGateActivated:L,analyticsConsentDenied:Ue,analyticsConsentWithdrawn:R,analyticsTrackingAllowed:z,analyticsConsentGranted:B}=Oe({getSnapshot:()=>O.getSnapshot(),readRecord:g}),V=[],We=50;L(()=>{V.length=0});function H(){if(!z()){V.length=0;return}let e=J();if(!e)return;let t=Y();for(;V.length>0;){let n=V.shift();try{n.type===`error`?(e.addError(n.error,n.context),n.logLevel&&t&&t.logger[n.logLevel](n.error.message,n.context,n.error)):n.type===`forced-replay-action`?(e.startSessionReplayRecording({force:!0}),e.addAction(n.name,n.context)):(e.addAction(n.name,n.context),n.logLevel&&t&&t.logger[n.logLevel](n.name,n.context))}catch{}}}function U(e){if(!z())return;V.length<We&&V.push(e);let t=Ke();t&&t.then(H).catch(()=>{})}function Ge(e,t){if(!z())return;let n={type:`forced-replay-action`,name:e,context:t},r=J();if(!X()||!r){U(n);return}try{r.startSessionReplayRecording({force:!0}),r.addAction(e,t)}catch{}}var W=!1,G=null,K=null,q=null;function J(){return K}function Y(){return q}function Ke(){return G}function qe(t={}){if(W)return Promise.resolve();if(G)return G;if(!Re())return Promise.resolve();let n=ze();return n===`development`&&e(`DATADOG_ENABLE_DEV`)!==`true`?Promise.resolve():(G=Je(n,t),G)}async function Je(e,t){try{let{datadogRum:i}=await n(async()=>{let{datadogRum:e}=await import(`./main-CD1DaFKY.js`);return{datadogRum:e}},__vite__mapDeps([0,1,2]));K=i;let a=()=>z()?`granted`:`not-granted`;try{let{datadogLogs:t}=await n(async()=>{let{datadogLogs:e}=await import(`./main-B8ZWgsHs.js`);return{datadogLogs:e}},__vite__mapDeps([3,2]));t.init({clientToken:F.clientToken,site:F.site,service:F.service,env:e,version:F.version,trackingConsent:a(),forwardErrorsToLogs:!1,sessionSampleRate:100,beforeSend:e=>(e.view?.url&&(e.view.url=I(e.view.url)),e.view?.referrer&&(e.view.referrer=I(e.view.referrer)),e.http?.url&&(e.http.url=I(e.http.url)),!0)}),q=t}catch{q=null}i.init({applicationId:F.applicationId,clientToken:F.clientToken,site:F.site,service:F.service,env:e,version:F.version,trackingConsent:a(),sessionSampleRate:100,sessionReplaySampleRate:10,defaultPrivacyLevel:`mask-user-input`,trackUserInteractions:!0,trackResources:!0,trackLongTasks:!0,allowedTracingUrls:[{match:e=>e.startsWith(r()),propagatorTypes:[`datadog`]}],traceSampleRate:100,enableExperimentalFeatures:[`feature_operation_vital`],beforeSend:e=>(e.view?.url?.includes(`#`)&&(e.view.url=e.view.url.split(`#`)[0]),e.view?.url&&(e.view.url=I(e.view.url)),e.view&&`referrer`in e.view&&typeof e.view.referrer==`string`&&(e.view.referrer=I(e.view.referrer)),e.type===`resource`&&(e.resource.url=I(e.resource.url)),e.type===`view`&&(e.view.name=Be(e.view.url)),!(e.type===`error`&&e.error.message?.includes(`Script error.`)))}),Se(e=>{i.setGlobalContextProperty(`consent_diagnostics`,e)}),W=!0,t.appContext&&i.setGlobalContextProperty(`app_context`,t.appContext),a()===`granted`&&Ye(t.user??null),H()}catch{K=null,q=null,G=null}}function Ye(e){if(!W||!K)return;let t=!!e&&P(e.email);if(e){let n={id:e.id,marketing_client_id:e.marketing_client_id,email:t?e.email:void 0};K.setUser(n),q?.setUser(n)}else K.clearUser(),q?.clearUser();K.startSessionReplayRecording()}
2function Xe(){if(!(typeof document>`u`))try{document.cookie=`_dd_s=; path=/; max-age=0`}catch{}}function Ze(e){if(!e&&!K&&!q){R()&&Xe();return}if(e&&!B())return;let t=e?`granted`:`not-granted`;K?.setTrackingConsent(t),q?.setTrackingConsent(t),!e&&R()&&Xe()}function X(){return W}var Z=function(e){return e.CREATE_APP_STARTED=`create_app_started`,e.CREATE_APP_SUCCESS=`create_app_success`,e.APP_DELETED=`app_deleted`,e.APP_PUBLISHED=`app_published`,e.APP_DUPLICATED=`app_duplicated`,e.EDITOR_PROMPT_SENT=`editor_prompt_sent`,e.EDITOR_CODE_EDITED=`editor_code_edited`,e.EDITOR_PREVIEW_REFRESHED=`editor_preview_refreshed`,e.EDITOR_SIDEBAR_SEARCH=`editor_sidebar_search`,e.APP_ERROR_RESOLVE_WITH_AI_CLICKED=`app_error_resolve_with_ai_clicked`,e.USER_SIGNED_UP=`user_signed_up`,e.USER_LOGGED_IN=`user_logged_in`,e.USER_LOGGED_OUT=`user_logged_out`,e.PLAN_UPGRADE_STARTED=`plan_upgrade_started`,e.PLAN_UPGRADE_COMPLETED=`plan_upgrade_completed`,e.WORKSPACE_CREATED=`workspace_created`,e.WORKSPACE_MEMBER_INVITED=`workspace_member_invited`,e.BUILDER_COMMAND_PALETTE_OPENED=`builder_command_palette_opened`,e.BUILDER_COMMAND_PALETTE_EXECUTED=`builder_command_palette_executed`,e.HOME_COMMAND_PALETTE_OPENED=`home_command_palette_opened`,e.HOME_COMMAND_PALETTE_EXECUTED=`home_command_palette_executed`,e.IDEA_CARD_CLICKED=`idea_card_clicked`,e.AGENT_CREATED_FROM_IDEA=`agent_created_from_idea`,e.WAF_BLOCK=`waf_block`,e.MOBILE_CHAT_OPENED=`mobile_chat_opened`,e.CHAT_TURN_STARTED=`chat_turn_started`,e.CHAT_TURN=`chat_turn`,e.CHAT_FIRST_OUTPUT=`chat_first_output`,e.PREVIEW_PROCESS_KILLED=`preview_process_killed`,e.PAGE_OOM_RELOAD=`page_oom_reload`,e.HEAP_SAMPLE=`heap_sample`,e}({}),Qe=function(e){return e.CREATE_APP=`create_app`,e.CREATE_AGENT=`create_agent`,e}({}),Q=function(e){return e.API=`api`,e.BUSINESS=`business`,e.ASYNC=`async`,e.EVENT_HANDLER=`event_handler`,e.REACT=`react`,e.CUSTOM=`custom`,e}({});function $e(e,t={}){try{let{source:n=Q.CUSTOM,context:r={},component:i,logLevel:a}=t,o=rt(e),s={error_source:n,component:i||`unknown`,...r};if(!X()){U({type:`error`,error:o,context:s,logLevel:a});return}if(J()?.addError(o,s),a)try{Y()?.logger[a](o.message,s,o)}catch{}}catch{}}function et(e,t){try{let n=e,r={...t};if(n?.config&&(r.url=r.url||tt(n.config),r.method=r.method||n.config.method,r.request_id=n.response?.data?.request_id||n.requestId||n.config.requestId),n?.response){r.statusCode=r.statusCode||n.response.status;let e=i.from(n.response.headers);Object.assign(r,a(n.response.data,t=>e.get(t))),r.responseData=n.response.data?.message||n.response.data?.error}let o=nt(e);o&&$(Z.WAF_BLOCK,{action:Z.WAF_BLOCK,url:r.url,method:r.method,status_code:403,cf_ray:o}
2,{logLevel:`warn`}),$e(e,{source:Q.API,component:`axiosClient`,context:r})}catch{}}function tt(e){return e?.url?/^https?:\/\//i.test(e.url)?e.url:`${(e.baseURL??``).replace(/\/$/,``)}${e.url.startsWith(`/`)?e.url:`/${e.url}`}`:e?.baseURL}function nt(e){let t=e?.response;if(!t||t.status!==403)return null;let n=typeof t.data==`string`?t.data:``;if(!(/web application firewall/i.test(n)&&/Powered by\s*Render/i.test(n)))return null;let r=t.headers??{},i=r[`cf-ray`]??r[`CF-RAY`];return typeof i!=`string`||i.length===0?null:i}function rt(e){if(e instanceof Error)return e;if(typeof e==`string`)return Error(e);if(typeof e==`object`&&e){let t=e,n=t.message||t.error||JSON.stringify(e),r=Error(n);return t.stack&&(r.stack=t.stack),r}return Error(String(e))}function $(e,t,n){if(!X()){U({type:`action`,name:e,context:t,logLevel:n?.logLevel});return}try{J()?.addAction(e,t)}catch{}if(n?.logLevel)try{Y()?.logger[n.logLevel](e,t)}catch{}}export{M as A,Ne as C,j as D,Ae as E,Te as F,x as I,ae as L,O as M,De as N,Fe as O,we as P,ee as R,A as S,P as T,L as _,Q as a,Le as b,qe as c,Ye as d,Ge as f,z as g,R as h,Z as i,Pe as j,je as k,X as l,B as m,$e as n,Qe as o,Ue as p,$ as r,J as s,et as t,Ze as u,Ve as v,Me as w,ke as x,I as y,g as z};
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.