smbls 3.14.795 → 3.14.796
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/smbls.cjs +1 -1
- package/dist/smbls.esm.js +1 -1
- package/dist/smbls.iife-string.js +2 -2
- package/dist/smbls.iife.js +1 -1
- package/package.json +1 -1
package/dist/smbls.cjs
CHANGED
|
@@ -86,7 +86,7 @@ FROM ${a}${l}`},KE=t=>{let e=[],r=(o,n)=>{for(let s in o){let i=n?`${n}/${s}`:s;
|
|
|
86
86
|
${c}`}var J1={"backdrop-filter":"-webkit-backdrop-filter","user-select":"-webkit-user-select"},Z1="@media (hover: hover)",Q1=/(?:^|[^\\]):hover(?![\w-])/,z0=t=>typeof t=="string"&&(t.indexOf("{")!==-1||t.indexOf("}")!==-1);function H0(t){let e=t.split("\0"),r=[],o=[];for(let n=0;n+1<e.length;n+=2){let s=e[n],i=e[n+1];if(!i||z0(i))continue;let a=U0[s]||Ur(s),c=Ma(i),l=`_${a}-${c}`,f=Gn(s);r.push(l),o.push(`.${l}{${f}:${i}}`)}return r.join(" ")+"\0"+o.join(`
|
|
87
87
|
`)}function W0(t,e,r){let o=t+e,n=`_c${Ur(o)}`,s=e.split("\0"),i="";for(let l=0;l+1<s.length;l+=2){let f=s[l],u=s[l+1];u&&(z0(u)||(i+=`${Gn(f)}:${u};`))}let a,c;if(t.startsWith("@media"))c=`.${n}`,a=`${t}{${c}{${i}}}`;else if(t.startsWith(":")||t.startsWith("&")){let l=t.startsWith("&")?t.slice(1):t;c=`.${n}${l}`,a=`${c}{${i}}`}else t.includes("&")?(c=t.replace("&",`.${n}`),a=`${c}{${i}}`):(c=`.${n} ${t}`,a=`${c}{${i}}`);return r!==!1&&Q1.test(c)&&(a=`${Z1}{${a}}`),`${n}
|
|
88
88
|
${a}`}var wy=null;function Vf(t){wy=t}var Pe={structuralHash:jf,deepEqual:Bf,mergeStructural:_y,overwriteDeep:xy,shortHash:Ur,toKebab:Gn,sanitizeValue:Ma,batchShortHash:B0,atomicCssClass:V0,batchAtomicCss:H0,compoundCssClass:W0},q0=!1,Uf=null;function K0(t){return Uf||(Uf=import(t||"@symbo.ls/wasm/pkg").then(e=>(e.structuralHash&&(Pe.structuralHash=e.structuralHash),e.deepEqual&&(Pe.deepEqual=e.deepEqual),e.mergeStructural&&(Pe.mergeStructural=e.mergeStructural),e.overwriteDeep&&(Pe.overwriteDeep=e.overwriteDeep),e.shortHash&&(Pe.shortHash=e.shortHash),e.toKebab&&(Pe.toKebab=e.toKebab),e.sanitizeValue&&(Pe.sanitizeValue=e.sanitizeValue),e.batchShortHash&&(Pe.batchShortHash=e.batchShortHash),e.atomicCssClass&&(Pe.atomicCssClass=e.atomicCssClass),e.batchAtomicCss&&(Pe.batchAtomicCss=e.batchAtomicCss),e.compoundCssClass&&(Pe.compoundCssClass=e.compoundCssClass),q0=!0,wy&&e.batchAtomicCss&&wy({batchAtomicCss:e.batchAtomicCss,compoundCssClass:e.compoundCssClass}),!0)).catch(e=>(console.debug("[smbls] WASM not available, using JS fallbacks:",e.message),!1)),Uf)}function G0(){return q0}R();var Fa={};P(Fa,{CDN_PROVIDERS:()=>de,DOMQL_EVENTS:()=>Vd,DOMQ_PROPERTIES:()=>br,ENV:()=>np,HTML_TAGS:()=>Zo,METHODS:()=>Ko,METHODS_EXL:()=>Ds,NODE_ENV:()=>ve,OPTIONS:()=>ni,PACKAGE_MANAGER_TO_CDN:()=>Er,PARSED_DOMQ_PROPERTIES:()=>Is,PROPS_METHODS:()=>_r,STATE_METHODS:()=>oo,STATE_PROPERTIES:()=>Ud,SVG_TAGS:()=>d_,TYPES:()=>Cs,UNIVERSAL_RESERVED_KEYS:()=>xl,addCaching:()=>rl,addContext:()=>el,addExtend:()=>Op,addExtends:()=>Kt,addItemAfterEveryElement:()=>Td,addProtoToArray:()=>Ts,addRef:()=>Zc,applyCSS:()=>ky,applyDependentState:()=>Gp,applyEvent:()=>cl,applyEventUpdate:()=>ll,applyExtends:()=>g_,applyProps:()=>Js,arrayContainsOtherArray:()=>wd,arraysEqual:()=>Rd,arrayzeValue:()=>uo,buildImgSrcset:()=>Fi,buildSourcesAndImg:()=>Ni,cache:()=>Qp,call:()=>mh,captureSnapshot:()=>bh,checkForStateTypes:()=>Hp,checkIfInherits:()=>al,checkIfStringIsInArray:()=>Dd,clone:()=>Hd,cloneAndMergeArrayExtend:()=>zs,cloneFunction:()=>pp,concatAddExtends:()=>Ep,copyJavaScriptToClipboard:()=>Nh,copyStringToClipboard:()=>Fh,createBasedOnType:()=>Jc,createElement:()=>zp,createElementExtends:()=>jc,createExtends:()=>Ws,createExtendsFromKeys:()=>Qo,createExtendsStack:()=>zc,createIfConditionFlag:()=>hp,createInheritedState:()=>Wp,createKey:()=>Us,createNestedObject:()=>Jd,createNestedObjectByKeyPath:()=>Kp,createObjectWithoutPrototype:()=>Ic,createParent:()=>Qc,createPath:()=>tl,createProps:()=>Zs,createPropsStack:()=>Yc,createRoot:()=>Vp,createScope:()=>Xp,createSnapshotId:()=>Bs,customDecodeURIComponent:()=>Bd,customEncodeURIComponent:()=>jd,cutArrayAfterValue:()=>Ed,cutArrayBeforeValue:()=>Cd,debounce:()=>Vs,debounceOnContext:()=>fp,decodeNewlines:()=>Nd,deepClone:()=>ft,deepContains:()=>Yd,deepDefaults:()=>Pi,deepDestringifyFunctions:()=>fe,deepExtend:()=>Nc,deepMerge:()=>st,deepMergeExtends:()=>je,deepStringifyFunctions:()=>Ls,defineSetter:()=>hh,destringifyGlobalScope:()=>Fs,detectHeightOnInit:()=>kh,detectInfiniteLoop:()=>ep,document:()=>Q,encodeNewlines:()=>Fd,error:()=>lo,excludeKeysFromObject:()=>op,exec:()=>ut,extendCachedRegistry:()=>Ap,extendStackRegistry:()=>qs,extractArrayExtend:()=>Gs,fetchLibraryData:()=>Cl,fibonacciNumberByIndex:()=>vh,filterArrays:()=>Pd,filterArraysFast:()=>Id,finalizeExtends:()=>Hc,findClosestNumber:()=>vl,findClosestNumberInFactory:()=>$h,findInheritedState:()=>il,findKeyPosition:()=>Ld,flattenExtend:()=>tn,formatDate:()=>Sh,generateHash:()=>Lc,generateHeadArrayTags:()=>kl,generateKey:()=>js,generateMetaTags:()=>Ih,get:()=>uh,getActiveRoute:()=>ay,getCDNDirUrl:()=>wl,getCDNUrl:()=>Ee,getCapitalCaseKeys:()=>Ip,getCdnProviderFromConfig:()=>sn,getChildStateInKey:()=>sl,getChildren:()=>gi,getContext:()=>Si,getCookie:()=>_p,getDB:()=>Ai,getEmotionStylesheet:()=>Vh,getExtendsInElement:()=>Rp,getExtendsStack:()=>Hs,getExtendsStackRegistry:()=>Fc,getFrequencyInArray:()=>Sd,getHashedExtend:()=>Ks,getImportMapScript:()=>wh,getInObjectByPath:()=>tp,getLocalStorage:()=>wp,getNev:()=>cp,getPageMetadata:()=>Dh,getParentStateInKey:()=>nl,getPath:()=>mi,getQuery:()=>Ti,getRef:()=>ph,getRoot:()=>_i,getRootContext:()=>wi,getRootData:()=>xi,getRootState:()=>bi,getRootStateInKey:()=>ol,getSpreadChildren:()=>Dp,global:()=>bd,hasFunction:()=>Ne,hasHandlerPlugin:()=>Yo,hasOwnProperty:()=>qd,hashContent:()=>fn,inheritChildExtends:()=>Uc,inheritChildPropsExtends:()=>Bc,inheritParentProps:()=>Qs,inheritRecursiveChildExtends:()=>Vc,init:()=>ur,initProps:()=>jp,is:()=>Wt,isArray:()=>T,isBoolean:()=>Ac,isContextComponent:()=>$p,isCyclic:()=>rp,isDOMNode:()=>Ht,isDate:()=>Oc,isDefined:()=>bt,isDevelopment:()=>wr,isEmpty:()=>Rc,isEmptyObject:()=>Kd,isEqualDeep:()=>Pc,isFunction:()=>A,isHtmlElement:()=>ks,isLocal:()=>ap,isLoudDevRuntime:()=>Pt,isMalformedDependency:()=>an,isMethod:()=>yh,isMobile:()=>yp,isNode:()=>Qe,isNot:()=>xd,isNotProduction:()=>io,isNull:()=>Tc,isNumber:()=>Fe,isObject:()=>S,isObjectLike:()=>z,isPhoto:()=>Ch,isPolyglotWritableKey:()=>er,isProduction:()=>xr,isStaging:()=>ip,isState:()=>qp,isString:()=>w,isStringFunction:()=>dp,isTest:()=>$c,isTesting:()=>sp,isUndefined:()=>Tt,isUniversallyReservedKey:()=>_h,isUnresolvableDependency:()=>fo,isValidDependencyMap:()=>cn,isValidHtmlTag:()=>kp,isWrappedLibrary:()=>Di,joinArrays:()=>Ho,jointStacks:()=>Tp,keys:()=>bl,lastLevel:()=>Nf,lastPathname:()=>Ff,loadCssFile:()=>Oh,loadJavascript:()=>Rh,loadJavascriptFile:()=>Eh,loadJavascriptFileEmbedSync:()=>Th,loadJavascriptFileSync:()=>Ah,loadRemoteCSS:()=>Ph,loadRemoteScript:()=>ln,log:()=>gh,logGroupIf:()=>mp,logIf:()=>gp,lookdown:()=>lh,lookdownAll:()=>fh,lookup:()=>ch,lowercaseFirstLetter:()=>ro,makeObjectWithoutPrototype:()=>Gd,map:()=>zd,mapStringsWithContextComponents:()=>Ys,markPolyglotSeeded:()=>Ue,matchRoute:()=>ny,matchesComponentNaming:()=>Be,memoize:()=>up,merge:()=>gt,mergeSharedLibraries:()=>$i,nextElement:()=>vi,normalizeIgnoreList:()=>Ii,normalizeLibraryKey:()=>un,objectToString:()=>Ms,objectizeStringProperty:()=>Xs,overwrite:()=>Ns,overwriteDeep:()=>qt,overwriteShallow:()=>so,overwriteState:()=>Yp,parse:()=>_l,parseDeep:()=>pi,parseQuery:()=>sy,parseRoutePattern:()=>oy,pickupElementFromProps:()=>Kc,pickupPropsFromElement:()=>qc,polyglotSeededKeys:()=>oi,previousElement:()=>Ci,propExists:()=>Fp,propertizeElement:()=>Gc,propertizeUpdate:()=>Mp,reinit:()=>Sy,remove:()=>V_,removeChars:()=>jh,removeCookie:()=>xp,removeDuplicateProps:()=>ei,removeDuplicatesInArray:()=>Wo,removeFromArray:()=>kd,removeFromObject:()=>Xd,removeNestedKeyByPath:()=>Zd,removeValueFromArray:()=>As,removeValueFromArrayAll:()=>Ad,reorderArrayByValues:()=>Od,replaceLiteralsWithObjectFields:()=>eo,replaceOctalEscapeSequences:()=>Md,resolveAsset:()=>Gt,resolveHandler:()=>Xo,resolveSharedLibraries:()=>Mh,returnValueAsText:()=>Xc,router:()=>Ge,runGuards:()=>iy,runPluginHook:()=>At,scratchSystem:()=>En,scratchUtils:()=>Or,self:()=>_d,set:()=>ko,setActiveRootState:()=>yi,setCookie:()=>bp,setHashedExtend:()=>Mc,setInObjectByPath:()=>Qd,setLocalStorage:()=>Sp,setNodeStyles:()=>yl,setProps:()=>dh,setPropsPrototype:()=>ti,sharedLibrary:()=>Lh,splitPackageSpecifier:()=>Oi,spotByPath:()=>hi,srcsetFor:()=>dn,stringIncludesAny:()=>Rs,stringToObject:()=>Wd,stripVersionRangePrefix:()=>Ri,swapItemsInArray:()=>vd,syncProps:()=>ri,toCamelCase:()=>Li,toDashCase:()=>Mi,toDescriptionCase:()=>Uh,toTitleCase:()=>Bh,toggleFullscreen:()=>xh,triggerEventOn:()=>Sr,triggerEventOnUpdate:()=>Jp,trimStringFromSymbols:()=>$d,unstackArrayOfObjects:()=>Es,update:()=>Np,updateProps:()=>Bp,variables:()=>Ei,verbose:()=>rn,warn:()=>ki,window:()=>v});R();R();var eO=C(),Y0=(t=eO,e)=>{let r=S(e.localFile)?e.localFile:{},o=ft(r.designSystem||{});return st(t,o,re)},rO={useVariable:!0,useReset:!0,useFontImport:!0,useIconSprite:!0,useDocumentTheme:!0,useSvgSprite:!0},Yn=(t,e)=>{let r=!e||e===":root",o={};for(let n in t)if(n.startsWith("@media")){let s=r?":root:not([data-theme])":`:root:not([data-theme]) ${e}:not([data-theme])`;o[n]={[s]:t[n]}}else r?o[n]=t[n]:o[`${e}${n}, ${n} ${e}`]=t[n];return o},ur=(t,e=rO)=>{let r=Y0(t||{},e),o=e.scopeSelector||":root",n=e.globalTheme;if(typeof window<"u"&&window.location){let p=new URLSearchParams(window.location.search).get("globalTheme");p&&(n=p)}let s=ko({verbose:e.verbose,useReset:e.useReset,useFontImport:e.useFontImport,useVariable:e.useVariable,useSvgSprite:e.useSvgSprite,useDocumentTheme:e.useDocumentTheme,useIconSprite:e.useIconSprite,useDefaultConfig:e.useDefaultConfig,globalTheme:n,themeRoot:e.themeRoot,files:e.files,assets:e.assets,...r},{newConfig:e.newConfig,config:e.config});s&&(s.scopeSelector=o);let i=zi(s.font,s.files),a=s.useReset,c=s.useVariable,l=s.useFontImport,f=s.useSvgSprite,u=t.svg,d=s.useIconSprite,h=t.icons;l&&kt(i),c&&(kt({[o]:s.CSS_VARS}),s.CSS_MEDIA_VARS&&kt(Yn(s.CSS_MEDIA_VARS,o))),a&&kt(s.reset);let g=s.animation;if(g){let p={};for(let m in g)p[`@keyframes ${m}`]=g[m];kt(p)}return(u||f)&&ya(s.svg,{document:e.document}),(h||d)&&So(s.icons,{document:e.document}),s},zf={},Sy=(t,e=zf)=>{let r=Y0(t||{},e),o=e.scopeSelector||":root",n=ko({verbose:!1,...r});return e.preventInject||(kt({[o]:n.CSS_VARS}),n.CSS_MEDIA_VARS&&kt(Yn(n.CSS_MEDIA_VARS,o)),kt(n.reset)),n},ky=(t,e=zf)=>{kt(t)},oO=(t,e=zf)=>{let r=e.scopeSelector||":root";kt({[r]:t.CSS_VARS}),t.CSS_MEDIA_VARS&&kt(Yn(t.CSS_MEDIA_VARS,r))};var nO=(t,e=zf)=>{};R();var X0=t=>!t||t==="srcdoc"||t==="about:srcdoc"||t==="blank"||t==="about:blank"?"/":t,sO=t=>{let e=t&&t.initialPath;return typeof e!="string"||!e?null:e[0]==="/"?e:"/"+e},vy={initRouter:!0,injectRouterInLinkComponent:!0,popState:!0},Na=(t,e)=>{if(!e)return t;let r=Array.isArray(e)?e:e.split("."),o=t;for(let n of r){if(!o||!o[n])return null;o=o[n]}return o},J0=(t,e)=>{if(e.router===!1)return;e.router===!0?e.router=vy:e.router=gt(e.router||{},vy);let r=e.router,o=async(s,i)=>{let a=s.context?.window||v,c=sO(r);if(!c){if(!a.location)return;let{pathname:f,search:u,hash:d}=a.location;f=X0(f),c=f+u+d}let l=s;if(r.customRouterElement){let f=Na(s,r.customRouterElement);f&&(l=f,s.routes&&(l.routes=s.routes))}l.routes&&await Ge(c,l,{},{initialRender:!0,pushState:!1})},n=!Tt(t.onRenderRouter);return r&&r.initRouter&&!n&&(t.onRenderRouter=o),iO(e,r),r},Cy=(t,e)=>{if(e.router===!1)return;let r=e.router||vy;if(!r.popState)return;let o=e.utils&&e.utils.router?e.utils.router:Ge,n=e.window||v,s=async i=>{let{pathname:a,search:c,hash:l}=n.location;a=X0(a);let f=a+c+l,u=t;if(r.customRouterElement){let d=Na(t,r.customRouterElement);d&&(u=d,t.routes&&(u.routes=t.routes))}await u.call("router",f,u,{},{pushState:!1,scrollToTop:!1,level:0,event:i})};n.addEventListener("popstate",s),e.__teardowns=e.__teardowns||[],e.__teardowns.push(()=>n.removeEventListener("popstate",s))},iO=(t,e)=>{let{components:r}=t;if(e&&e.injectRouterInLinkComponent)return st(r.Link||r["smbls.Link"],r.RouterLink||r["smbls.RouterLink"])};R();var Ey=v&&v.location?v.location.host.includes("dev."):wr(),Z0=Ey?"http://localhost:8080/get":"https://api.symbols.app/get",aO={endpoint:Z0},Q0=async(t,e=aO)=>{let r=e.endpoint||Z0,o=e.serviceRoute?T(e.serviceRoute)?e.serviceRoute.map(s=>s.toLowerCase()+"=true").join("&"):e.serviceRoute:"",n;try{return n=await globalThis.fetch(r+"/?"+o,{method:"GET",headers:{"Content-Type":"application/json","X-AppKey":t,"X-Metadata":e.metadata}}),await n.json()}catch(s){if(A(e.onError))return e.onError(s);console.error(s)}},cO=async(t,e)=>{let{editor:r}=e;if(r&&r.remote){let o=await Q0(t,r),n=Ey||e.isDevelopment?fe(o):fe(o.releases[0]);r.serviceRoute?T(r.serviceRoute)?r.serviceRoute.forEach(s=>{qt(e[s],n[s.toLowerCase()])}):qt(e[r.serviceRoute],n):["state","designSystem","components","snippets","pages","utils","files","assets","packages","functions","globalScope"].forEach(s=>{qt(e[s],n[s.toLowerCase()])})}return e},lO=async(t,e,r)=>{let{editor:o}=e;if(o&&o.remote){let n=await Q0(t,o),s=Ey||e.isDevelopment?fe(n):fe(n.releases[0]);r(s)}},tk=async(t,e)=>{if(t&&e.editor)try{e.editor.async||await cO(t,e)}catch(r){console.error(r)}},ek=(t,e,r,o)=>{if(e&&r.editor)try{r.editor.async&&lO(e,r,o||(n=>{let s=n.designSystem;S(s)&&r.utils.init(s),S(n.state)&&t.state.set(n.state)}))}catch(n){console.error(n)}};var ja=t=>{if(!t||t.__destroyed)return!1;let e=t.context;if(!e)return t.__destroyed=!0,!1;if(Array.isArray(e.__teardowns)){for(let r of e.__teardowns)try{r()}catch(o){console.error("[smbls] destroy teardown error:",o)}e.__teardowns.length=0}try{jr(t)}catch(r){console.error("[smbls] dispose error:",r)}if(e.fetch&&e.fetch.__resolved&&delete e.fetch.__resolved,e.fetch&&e.fetch.__resolving&&delete e.fetch.__resolving,e.db&&e.db.__resolved&&delete e.db.__resolved,e.db&&e.db.__resolving&&delete e.db.__resolving,e.analyze?.destroy)try{e.analyze.destroy()}catch(r){console.error("[analyze] destroy error:",r)}return t.__destroyed=!0,!0};var Oy={};P(Oy,{Helmet:()=>nk,applyMetadata:()=>Xn,default:()=>gO,extractMetadata:()=>dO,generateHeadHtml:()=>hO,helmetPlugin:()=>Ty,resolveMetadata:()=>Vr});R();var fO={title:{tag:"title"},description:{tag:"meta",attr:"name",key:"description"},keywords:{tag:"meta",attr:"name",key:"keywords"},robots:{tag:"meta",attr:"name",key:"robots"},author:{tag:"meta",attr:"name",key:"author"},canonical:{tag:"link",attr:"rel",key:"canonical",valueAttr:"href"},image:{tag:"meta",attr:"property",key:"og:image"},url:{tag:"meta",attr:"property",key:"og:url"},siteName:{tag:"meta",attr:"property",key:"og:site_name"},type:{tag:"meta",attr:"property",key:"og:type"},locale:{tag:"meta",attr:"property",key:"og:locale"},"og:title":{tag:"meta",attr:"property",key:"og:title"},"og:description":{tag:"meta",attr:"property",key:"og:description"},"og:image":{tag:"meta",attr:"property",key:"og:image"},"og:url":{tag:"meta",attr:"property",key:"og:url"},"og:type":{tag:"meta",attr:"property",key:"og:type"},"og:site_name":{tag:"meta",attr:"property",key:"og:site_name"},"og:locale":{tag:"meta",attr:"property",key:"og:locale"},"twitter:card":{tag:"meta",attr:"name",key:"twitter:card"},"twitter:title":{tag:"meta",attr:"name",key:"twitter:title"},"twitter:description":{tag:"meta",attr:"name",key:"twitter:description"},"twitter:image":{tag:"meta",attr:"name",key:"twitter:image"},"twitter:site":{tag:"meta",attr:"name",key:"twitter:site"},"theme-color":{tag:"meta",attr:"name",key:"theme-color"}},uO=t=>{if(t.tag==="link")return`link[${t.attr}="${t.key}"]`;if(t.tag&&!t.attr&&!t.key)return t.tag;if(t.tag&&t.attr&&t.key)return`${t.tag}[${t.attr}="${t.key}"]`},rk=t=>fe({v:t}).v,ok=(t,e,r,o)=>{try{return ut(t,e,r)}catch(n){console.warn(`[helmet] metadata factory for "${o}" threw; treating as unset:`,n&&n.message||n);return}},Vr=(t,e,r)=>{if(!t)return{};let o=t;w(o)&&Ne(o)&&(o=rk(o));let n=A(o)?ok(o,e,r,"metadata"):S(o)?{...o}:{};if(!S(n))return{};for(let s in n){let i=n[s];w(i)&&Ne(i)&&(i=rk(i)),A(i)?i=ok(i,e,r,s):w(i)&&Ne(i)&&(i=void 0),w(i)&&i.includes("{{")&&e?.call&&(i=e.call("replaceLiteralsWithObjectFields",i,r)),n[s]=i}return n},dO=(t,e="/",r,o)=>{let s=(t.pages||{})[e],i={};if(t.integrations?.seo&&(i={...t.integrations.seo}),t.app?.metadata){let c=Vr(t.app.metadata,r,o);i={...i,...c}}let a=new Set;if(s){let c=s.metadata||s.helmet||{},l=Vr(c,r,o);for(let f in l)a.add(f);i={...i,...l},!i.title&&s.state?.title&&(i.title=s.state.title,a.add("title")),!i.description&&s.state?.description&&(i.description=s.state.description,a.add("description"))}if(i.title||(i.title=t.name||"Symbols"),i.title&&(a.has("title")||!i["og:title"])&&(a.has("og:title")||(i["og:title"]=i.title)),i.description&&(a.has("description")||!i["og:description"])&&(a.has("og:description")||(i["og:description"]=i.description)),i.title&&!i["twitter:title"]&&(i["twitter:title"]=i.title),i.description&&!i["twitter:description"]&&(i["twitter:description"]=i.description),i["og:url"]||i.url){let c=(i["og:url"]||i.url||"").replace(/\/$/,"");if(c&&e&&e!=="/"){let l=e.startsWith("/")?e:"/"+e;i["og:url"]=c+l}}if(t.files)for(let c in i){let l=i[c];if(typeof l=="string"&&l.length>0&&!l.startsWith("/")&&!l.startsWith("http")){let f=t.files[l];f?.src&&(i[c]=f.src)}}return i},pO=(t,e)=>{let r=e.createElement(t.tag);return t.attr&&r.setAttribute(t.attr,t.key),(e.head||e.querySelector("head")).appendChild(r),r},Ba=t=>{let e=5381,r=String(t);for(let o=0;o<r.length;o++)e=(e*33^r.charCodeAt(o))>>>0;return e.toString(36)},Ay=(t,e,r,o)=>{let n=t.head||t.querySelector("head");if(!n)return;let s=new Map;for(let a of n.querySelectorAll(`[${e}]`))s.set(a.getAttribute(e),a);let i=new Set;for(let a of r)i.add(a);for(let[a,c]of s)i.has(a)||c.remove();for(let a of r){if(s.has(a))continue;let c=o(a);c&&(c.setAttribute(e,a),n.appendChild(c))}},Xn=(t,e)=>{if(!(!S(t)||!e)){for(let r in t){let o=t[r];if(o==null||r==="jsonLd"||r==="styles"||r==="scripts")continue;let n=fO[r];if(!n)continue;let s=uO(n),i=e.querySelector(s)||pO(n,e);i&&(r==="title"?i.textContent=o:n.valueAttr?i.setAttribute(n.valueAttr,o):i.setAttribute("content",o))}if(Array.isArray(t.jsonLd)){let o=t.jsonLd.filter(s=>s!=null).map(s=>w(s)?s:JSON.stringify(s)),n=o.map(Ba);Ay(e,"data-smbls-jsonld",n,s=>{let i=n.indexOf(s),a=e.createElement("script");return a.setAttribute("type","application/ld+json"),a.textContent=o[i],a})}if(Array.isArray(t.styles)){let r=t.styles.filter(n=>n!=null&&String(n).trim()),o=r.map(Ba);Ay(e,"data-smbls-style",o,n=>{let s=o.indexOf(n),i=e.createElement("style");return i.textContent=String(r[s]),i})}if(Array.isArray(t.scripts)){let r=t.scripts.filter(n=>n&&(w(n)?n.trim():n.src)),o=r.map(n=>w(n)?n:String(n.src));Ay(e,"data-smbls-script",o,n=>{let s=o.indexOf(n),i=r[s],a=e.createElement("script");return w(i)?a.setAttribute("src",i):(i.src&&a.setAttribute("src",i.src),i.type&&a.setAttribute("type",i.type),i.async&&(a.async=!0),i.defer&&(a.defer=!0),i.integrity&&a.setAttribute("integrity",i.integrity),i.crossorigin&&a.setAttribute("crossorigin",i.crossorigin),i.referrerpolicy&&a.setAttribute("referrerpolicy",i.referrerpolicy),i.nomodule&&(a.noModule=!0),i.body&&(a.textContent=String(i.body))),a})}}},ct=t=>{if(t==null)return"";let e={"&":"&","<":"<",">":">",'"':""","'":"'"};return t.toString().replace(/[&<>"']/g,r=>e[r])},hO=t=>{let e=['<meta charset="UTF-8">'],r=new Set(["charset","jsonLd","styles","scripts"]),o=!1;for(let[n,s]of Object.entries(t)){if(!s&&s!==0&&s!==!1||r.has(n)||typeof s=="function")continue;if(n==="title"){e.push(`<title>${ct(s)}</title>`);continue}if(n==="viewport"){o||(e.push(`<meta name="viewport" content="${ct(s)}">`),o=!0);continue}if(n==="canonical"){e.push(`<link rel="canonical" href="${ct(s)}">`);continue}if(n==="icon"||n==="favicon"){let f=ct(s),u=f.endsWith(".svg")?' type="image/svg+xml"':f.endsWith(".png")?' type="image/png"':"";e.push(`<link rel="icon" href="${f}"${u}>`);continue}if(n==="favicons"&&Array.isArray(s)){s.forEach(f=>{if(typeof f=="object"){let u=Object.entries(f).map(([d,h])=>`${d}="${ct(h)}"`).join(" ");e.push(`<link rel="icon" ${u}>`)}else typeof f=="string"&&e.push(`<link rel="icon" href="${ct(f)}">`)});continue}if(n==="alternate"&&Array.isArray(s)){s.forEach(f=>{if(typeof f=="object"){let u=Object.entries(f).map(([d,h])=>`${d}="${ct(h)}"`).join(" ");e.push(`<link rel="alternate" ${u}>`)}});continue}let i=["og:","article:","product:","fb:","profile:","book:","business:","music:","video:"],a=["twitter:","DC:","DCTERMS:"],c=i.some(f=>n.startsWith(f)),l=a.some(f=>n.startsWith(f));if(n.startsWith("http-equiv:")){let f=n.replace("http-equiv:","");e.push(`<meta http-equiv="${ct(f)}" content="${ct(s)}">`)}else if(n.startsWith("itemprop:")){let f=n.replace("itemprop:","");e.push(`<meta itemprop="${ct(f)}" content="${ct(s)}">`)}else c?Array.isArray(s)?s.forEach(f=>e.push(`<meta property="${ct(n)}" content="${ct(f)}">`)):e.push(`<meta property="${ct(n)}" content="${ct(s)}">`):l?e.push(`<meta name="${ct(n)}" content="${ct(s)}">`):Array.isArray(s)?s.forEach(f=>e.push(`<meta name="${ct(n)}" content="${ct(f)}">`)):(typeof s=="string"||typeof s=="number"||typeof s=="boolean")&&e.push(`<meta name="${ct(n)}" content="${ct(s)}">`)}if(o||e.splice(1,0,'<meta name="viewport" content="width=device-width, initial-scale=1">'),Array.isArray(t.jsonLd))for(let n of t.jsonLd){if(n==null)continue;let s=typeof n=="string"?n:JSON.stringify(n),i=String(s).replace(/<\/script/gi,"<\\/script");e.push(`<script type="application/ld+json" data-smbls-jsonld="${Ba(s)}">${i}<\/script>`)}if(Array.isArray(t.styles))for(let n of t.styles){if(n==null||!String(n).trim())continue;let s=String(n).replace(/<\/style/gi,"<\\/style");e.push(`<style data-smbls-style="${Ba(s)}">${s}</style>`)}if(Array.isArray(t.scripts))for(let n of t.scripts){if(!n)continue;let s=typeof n=="string",i=s?n:n.src;if(!i&&!(n&&n.body))continue;let a=[];i&&a.push(`src="${ct(i)}"`),s||(n.type&&a.push(`type="${ct(n.type)}"`),n.async&&a.push("async"),n.defer&&a.push("defer"),n.integrity&&a.push(`integrity="${ct(n.integrity)}"`),n.crossorigin&&a.push(`crossorigin="${ct(n.crossorigin)}"`),n.referrerpolicy&&a.push(`referrerpolicy="${ct(n.referrerpolicy)}"`),n.nomodule&&a.push("nomodule"));let c=` data-smbls-script="${ct(i||Ba(n.body||""))}"`;if(!s&&n.body){let l=String(n.body).replace(/<\/script/gi,"<\\/script");e.push(`<script ${a.join(" ")}${c}>${l}<\/script>`)}else e.push(`<script ${a.join(" ")}${c}><\/script>`)}return e.join(`
|
|
89
|
-
`)},nk={define:{metadata:(t,e,r)=>{let o=e.context?.document||typeof document<"u"&&document;if(!o)return;let n=Z(()=>{let s=Vr(t,e,e.state);Xn(s,o);let i=e.state?.root;S(i)&&(i.$helmet=s)});e.__ref?.__effects&&e.__ref.__effects.push(n)}}},Ty={name:"helmet",create(t){if(!t.metadata)return;let e=t.context?.document||typeof document<"u"&&document;if(!e)return;let r=Z(()=>{let o=t.metadata;if(!o)return;let n=Vr(o,t,t.state);Xn(n,e)});t.__ref?.__effects&&t.__ref.__effects.push(r)},update(t){let e=t.metadata;if(!e)return;let r=t.context?.document||typeof document<"u"&&document;if(!r)return;let o=Vr(e,t,t.state);Xn(o,r)}},gO=nk;vr();var sk=(t,e,r,o)=>{t&&di(t,e,r,o)},ik=(t,e,r)=>{if(!t)return;let o=e.context?.document||typeof document<"u"&&document;if(!o)return;let n=Vr(t,e,r);Xn(n,o)},ak=async(t,e)=>{if(!t)return;let r={tag:"fragment",...t},o=async()=>{await e.set(r,{preventDefineUpdate:"$router"})};return e.lazyLoad?window.requestAnimationFrame(o):await o(),r},Jn={routes:t=>t,metadata:ik,fetch:sk,$router:ak},ck=(t={})=>{let e={routes:r=>r};return t.metadata!==!1&&(e.metadata=ik),t.fetch!==!1&&(e.fetch=sk),t.router!==!1&&(e.$router=ak),e};var Ry={useReset:!0,useVariable:!0,useIconSprite:!0,useSvgSprite:!0,useDocumentTheme:!0,useDefaultIcons:!0,useFontImport:!0,useDefaultConfig:!0},Hf={initRouter:!0,popState:!0,injectRouterInLinkComponent:!0},Wf={...Ry,router:Hf},mO={state:{},pages:{},components:{},router:Hf,define:Jn},zr=mO;R();R();var lk=(t,e)=>z(t.extends)?t.extends:[];R();var Py={};P(Py,{default:()=>_O,getActiveLang:()=>Hr,getLanguages:()=>Va,getLocalStateLang:()=>Ka,initPolyglot:()=>Kf,loadTranslations:()=>Ha,polyglotPlugin:()=>Qn,setLang:()=>Wa,translate:()=>za,upsertTranslation:()=>qa});R();var uk="smbls_lang",yO="smbls_t_",bO="smbls_tv_",Zn={get(t){try{return window?.localStorage.getItem(t)}catch{return null}},set(t,e){try{window?.localStorage.setItem(t,e)}catch(r){console.warn("[polyglot] localStorage unavailable:",r.message)}},remove(t){try{window?.localStorage.removeItem(t)}catch(e){console.warn("[polyglot] localStorage unavailable:",e.message)}}},Ua={};function Hr(){let t=this?.context,e=t?.polyglot;return(this?.state?.root||t?.state?.root)?.lang||e?.defaultLang||"en"}function Va(){let t=this?.context?.polyglot;return t?t.languages?t.languages:t.translations?Object.keys(t.translations):[]:[]}var qf=(t,e)=>{if(!t||!e)return;if(t[e]!==void 0)return t[e];if(e.indexOf(".")===-1)return;let r=e.split("."),o=t;for(let n=0;n<r.length;n++){if(o==null)return;o=o[r[n]]}return o},fk=(t,e,r)=>{let o=e.lastIndexOf(".");if(o===-1)return t[e+"_"+r];let n=qf(t,e.substring(0,o));if(n!=null)return n[e.substring(o+1)+"_"+r]};function za(t,e){if(!t)return"";let r=this?.context,o=r?.polyglot,n=e||this.call("getActiveLang"),s=this?.state;if(s){let l=fk(s,t,n);if(l!==void 0)return l}if(o?.translations){let l=o.translations[n];if(l){let f=qf(l,t);if(f!==void 0)return f}}let a=(s?.root||r?.state?.root)?.translations;if(a){let l=a[n];if(l){let f=qf(l,t);if(f!==void 0)return f}}let c=o?.defaultLang||"en";if(s){let l=fk(s,t,c);if(l!==void 0)return l}if(o?.translations){let l=o.translations[c];if(l){let f=qf(l,t);if(f!==void 0)return f}}return t}async function Ha(t){let e=this?.context,r=e?.polyglot,o=this?.state?.root||e?.state?.root;if(!r||!o)return;let n=r.storagePrefix||yO,s=r.storageVersionPrefix||(r.storagePrefix?r.storagePrefix.replace(/_$/,"v_"):bO);if(r.translations&&r.translations[t]&&!r.fetch||!r.fetch||r._fetchFailed?.[t])return;if(!o.translations?.[t]){let c=Zn.get(n+t);if(c)try{let l=JSON.parse(c),f={translations:{...o.translations||{}}};f.translations[t]=l,o.update&&o.update(f)}catch(l){console.warn("[polyglot] Failed to apply language update:",l.message)}}let i=(r.storagePrefix||"smbls")+":"+t;if(Ua[i])return Ua[i];let a=this;return Ua[i]=(async()=>{try{let c=r.fetch,l=parseInt(Zn.get(s+t),10)||0,f,u,d;if(A(c)){let g=await c(t,l,a);if(!g||g.changed===!1)return;f=g.translations||g.data||g,u=g.version||0,d=!0}else if(S(c)){let g=a.getDB||(()=>e.fetch),p=A(g)?await g.call(a):e.fetch;if(!p)return;let m=c.rpc||c.from||"get_translations_if_changed",b={p_lang:t,p_cached_version:l,...c.params||{}},_=await p.rpc({from:m,params:b});if(_.error)throw r._fetchFailed||(r._fetchFailed={}),r._fetchFailed[t]=!0,_.error;let y=_.data;if(!y||!y.changed)return;f=y.translations||{},u=y.version||0,d=!0}else return;if(!d||!f)return;Zn.set(n+t,JSON.stringify(f)),u&&Zn.set(s+t,String(u));let h={translations:{...o.translations||{}}};h.translations[t]=f,o.update&&o.update(h)}catch(c){if(r.verbose!==!1){let l=c?.message||c?.details||(typeof c=="object"?JSON.stringify(c):String(c));console.warn("[polyglot] Failed to load translations for",t,"-",l)}}finally{delete Ua[i]}})(),Ua[i]}async function Wa(t){let e=this?.context,r=e?.polyglot,o=this?.state?.root||e?.state?.root;if(!o||this.call("getActiveLang")===t)return;let n=r?.storageLangKey||uk;Zn.set(n,t),r?.fetch&&await this.call("loadTranslations",t),e?.state&&(e.state.lang=t);let s=r?.translations?.[t],i={lang:t},a=l=>er(e,l,o);if(s&&typeof s=="object")for(let l in s){if(!a(l))continue;let f=s[l];(Array.isArray(f)||typeof f=="string"||typeof f=="number")&&(i[l]=f)}o.update&&o.update(i);for(let l in i)l!=="lang"&&Ue(e,l);if(s&&typeof s=="object")for(let l in s){if(!a(l))continue;let f=s[l];if(f&&typeof f=="object"&&!Array.isArray(f)&&o[l]&&typeof o[l]=="object"&&!Array.isArray(o[l])){for(let u in f)o[l][u]=f[u];Ue(e,l)}}let c=this?.context?.document||globalThis.document;if(c&&s){let l=c.querySelectorAll("[data-key]");for(let f of l){let u=f.ref;if(!u)continue;let d=u.__ref?.__exec?.text;if(typeof d=="string"&&d.includes("{{"))try{let h=u.call("replaceLiteralsWithObjectFields",d,u.state);h!=null&&f.textContent!==h&&(f.textContent=h)}catch{}}}}async function qa(t,e,r){let o=this?.context,n=o?.polyglot,s=this?.state?.root||o?.state?.root;if(s?.translations?.[e]&&(s.translations[e][t]=r),n?.translations?.[e]&&(n.translations[e][t]=r),n?.fetch&&S(n.fetch)){let i=this.getDB||(()=>o.fetch),a=A(i)?await i.call(this):o.fetch;if(!a)return;let c=n.fetch.table||"translations",l=await a.upsert({from:c,data:{key:t,lang:e,text:r}});if(l?.error)throw l.error;return l.data}}async function Kf(){let t=this?.context,e=t?.polyglot;if(!e)return;let r=this?.state?.root||t?.state?.root;if(!r)return;let o=e.storageLangKey||uk,s=Zn.get(o)||Hr.call(this);r.update&&r.lang!==s&&r.update({lang:s}),e.fetch&&!(e.translations&&e.translations[s])&&await this.call("loadTranslations",s)}function Ka(t){try{let e=Hr.call(this),r=this?.state;if(!r)return"";let o=t.lastIndexOf(".");if(o===-1)return r[t+e]??"";let n=t.substring(0,o).split("."),s=r;for(let i=0;i<n.length;i++){if(s==null)return"";s=s[n[i]]}return s==null?"":s[t.substring(o+1)+e]??""}catch{return""}}var Qn={name:"polyglot",render(t){t.parent&&t.parent.parent||t.__polyglotInitialized||(t.__polyglotInitialized=!0,Kf.call(t))}},_O=Qn;vr();var Dy={};P(Dy,{SYSTEM_METRICS:()=>Ga,capsizeHandler:()=>Iy,capsizePlugin:()=>Yf,computeCapsize:()=>dk,default:()=>xO,resolveFontSizePx:()=>pk,resolveMetrics:()=>hk});var Ga={arial:{capHeight:716,ascent:1854,descent:-434,lineGap:67,unitsPerEm:2048},helvetica:{capHeight:714,ascent:770,descent:-230,lineGap:0,unitsPerEm:1e3},"helvetica neue":{capHeight:714,ascent:952,descent:-213,lineGap:28,unitsPerEm:1e3},georgia:{capHeight:1419,ascent:1878,descent:-449,lineGap:0,unitsPerEm:2048},"times new roman":{capHeight:1356,ascent:1825,descent:-443,lineGap:87,unitsPerEm:2048},"courier new":{capHeight:1170,ascent:1705,descent:-615,lineGap:0,unitsPerEm:2048},verdana:{capHeight:1489,ascent:2059,descent:-430,lineGap:0,unitsPerEm:2048},roboto:{capHeight:1456,ascent:1900,descent:-500,lineGap:0,unitsPerEm:2048},"open sans":{capHeight:1462,ascent:2189,descent:-600,lineGap:0,unitsPerEm:2048},inter:{capHeight:1490,ascent:2048,descent:-512,lineGap:0,unitsPerEm:2048},lato:{capHeight:1434,ascent:1974,descent:-426,lineGap:0,unitsPerEm:2e3},"source sans":{capHeight:660,ascent:984,descent:-273,lineGap:0,unitsPerEm:1e3},"source sans pro":{capHeight:660,ascent:984,descent:-273,lineGap:0,unitsPerEm:1e3},"source sans 3":{capHeight:660,ascent:984,descent:-273,lineGap:0,unitsPerEm:1e3},montserrat:{capHeight:700,ascent:968,descent:-251,lineGap:0,unitsPerEm:1e3},poppins:{capHeight:700,ascent:1050,descent:-350,lineGap:100,unitsPerEm:1e3},raleway:{capHeight:710,ascent:1e3,descent:-250,lineGap:0,unitsPerEm:1e3},"dm sans":{capHeight:700,ascent:992,descent:-312,lineGap:0,unitsPerEm:1e3},nunito:{capHeight:705,ascent:1011,descent:-353,lineGap:0,unitsPerEm:1e3},"work sans":{capHeight:684,ascent:930,descent:-243,lineGap:0,unitsPerEm:1e3},manrope:{capHeight:708,ascent:980,descent:-300,lineGap:0,unitsPerEm:1e3},"ibm plex sans":{capHeight:698,ascent:1025,descent:-275,lineGap:0,unitsPerEm:1e3},"plus jakarta sans":{capHeight:720,ascent:1060,descent:-300,lineGap:0,unitsPerEm:1e3}},Gf=t=>parseFloat(t.toFixed(4)),dk=(t,e,r)=>{let{ascent:o,descent:n,lineGap:s,unitsPerEm:i,capHeight:a}=e,c=Math.abs(n),l=o+c+s,f=r!==void 0?r:l/i*t,u=f/t,d=l/i,h=(o-a+s/2)/i-(u-d)/2,g=(c+s/2)/i-(u-d)/2;return{fontSize:`${Gf(t/16)}rem`,lineHeight:`${Gf(f)}px`,capHeightTrim:`${Gf(-h)}em`,baselineTrim:`${Gf(-g)}em`}},pk=(t,e)=>{if(typeof t=="number")return t;let r=e?.designSystem;if(!r)return null;let{typography:o}=r;if(o?.sequence){let s=String(t).toUpperCase(),i=o.sequence[s];if(i)return i.decimal||i.val}let n=parseFloat(t);return isNaN(n)?null:typeof t=="string"&&t.endsWith("rem")?n*(r.typography?.browserDefault||16):n},hk=(t,e)=>{let o=e?.designSystem?.font_family||{};if(t){let s=o[t];if(s?.metrics)return s.metrics;let i=String(t).toLowerCase().replace(/['"]/g,"").trim();if(Ga[i])return Ga[i]}let n=o.default||Object.keys(o)[0];if(n){let s=o[n];if(s?.metrics)return s.metrics;if(s?.value&&Array.isArray(s.value))for(let i of s.value){let a=i.toLowerCase().replace(/['"]/g,"").trim();if(Ga[a])return Ga[a]}}return null},Iy=(t,e,r,o)=>{if(!t)return;let n=pk(e.fontSize,o);if(!n)return;let s=hk(e.fontFamily,o);if(!s)return;let i=e.lineHeight?parseFloat(e.lineHeight):void 0,{lineHeight:a,capHeightTrim:c,baselineTrim:l}=dk(n,s,i),f={};return e.lineHeight||(f.lineHeight=a),f["::before"]={content:'""',marginBottom:c,display:"table"},f["::after"]={content:'""',marginTop:l,display:"table"},f},Yf={name:"capsize",init(t){t.useCapsize===void 0&&t.fontSize&&(t.useCapsize=!0)}},xO=Yf;var By={};P(By,{PRESERVE_VALUE_KEYS:()=>$t,SKIP_INLINE_KEYS:()=>Wr,abbrToProp:()=>Dt,decode:()=>_k,encode:()=>mk,expand:()=>To,isComponentKey:()=>Ie,isSelectorKey:()=>De,parse:()=>Oo,parseFurther:()=>Po,propToAbbr:()=>Se,shorten:()=>Ya,shorthandPlugin:()=>Xa,stringify:()=>Ao,stringifyFurther:()=>Ro});var Se={attr:"at",childExtends:"cex",childExtendsRecursive:"cexr",childProps:"cp",children:"ch",childrenAs:"cha",class:"cl",content:"cnt",context:"ctx",data:"dt",extends:"ext",hide:"hd",html:"htm",if:"if",ignoreChildExtends:"icex",key:"ky",query:"qy",routes:"rt",scope:"scp",show:"shw",state:"st",style:"sy",tag:"tg",text:"tx",align:"aln",boxSize:"bsz",flow:"fl",heightRange:"hr",horizontalInset:"hi",round:"rnd",shadow:"shd",size:"sz",templateColumns:"tcol",verticalInset:"vi",widthRange:"wr",wrap:"wrp",aspectRatio:"ar",blockSize:"bks",boxSizing:"bxs",height:"h",inlineSize:"ins",margin:"m",marginBottom:"mb",marginLeft:"ml",marginRight:"mr",marginTop:"mt",maxBlockSize:"mxbs",maxHeight:"mxh",maxInlineSize:"mxis",maxWidth:"mxw",minBlockSize:"mnbs",minHeight:"mnh",minInlineSize:"mnis",minWidth:"mnw",padding:"p",paddingBottom:"pb",paddingInline:"pil",paddingLeft:"pl",paddingRight:"pr",paddingTop:"pt",width:"w",alignContent:"ac",alignItems:"ai",alignSelf:"as",flex:"fx",flexBasis:"fxb",flexDirection:"fxd",flexFlow:"fxf",flexGrow:"fxg",flexShrink:"fxs",flexWrap:"fxw",gap:"g",justifyContent:"jc",justifyItems:"ji",justifySelf:"js",order:"od",placeContent:"pcn",placeItems:"pit",placeSelf:"psl",rowGap:"rg",columnGap:"cg",gridArea:"ga",gridAutoColumns:"gac",gridAutoFlow:"gaf",gridAutoRows:"gar",gridColumn:"gc",gridColumnEnd:"gce",gridColumnStart:"gcs",gridRow:"gr",gridRowEnd:"gre",gridRowStart:"grs",gridTemplateAreas:"gta",gridTemplateColumns:"gtc",gridTemplateRows:"gtr",bottom:"bot",float:"flt",inset:"ist",left:"lft",position:"pos",right:"rgt",top:"tp",zIndex:"zi",clear:"clr",contain:"ctn",cursor:"cur",display:"d",opacity:"op",overflow:"ov",overflowX:"ovx",overflowY:"ovy",pointerEvents:"pe",resize:"rsz",userSelect:"us",visibility:"vis",background:"bg",backgroundAttachment:"bga",backgroundBlendMode:"bgbm",backgroundClip:"bgcl",backgroundColor:"bgc",backgroundImage:"bgi",backgroundOrigin:"bgo",backgroundPosition:"bgp",backgroundPositionX:"bgpx",backgroundPositionY:"bgpy",backgroundRepeat:"bgr",backgroundRepeatX:"bgrx",backgroundRepeatY:"bgry",backgroundSize:"bgs",color:"c",theme:"thm",themeModifier:"thmm",border:"bd",borderBottom:"bdb",borderBottomLeftRadius:"bdblr",borderBottomRightRadius:"bdbrr",borderCollapse:"bdcl",borderColor:"bdc",borderImage:"bdi",borderImageOutset:"bdio",borderImageRepeat:"bdir",borderImageSlice:"bdis",borderImageSource:"bdisrc",borderImageWidth:"bdiw",borderLeft:"bdl",borderRadius:"bdr",borderRight:"bdrg",borderSpacing:"bdsp",borderStyle:"bdst",borderTop:"bdt",borderTopLeftRadius:"bdtlr",borderTopRightRadius:"bdtrr",borderWidth:"bdw",outline:"ol",outlineColor:"olc",outlineOffset:"olo",outlineStyle:"ols",outlineWidth:"olw",boxShadow:"bxsh",textShadow:"txsh",direction:"dir",fontDisplay:"fdi",fontFamily:"ff",fontFeatureSettings:"ffs",fontKerning:"fk",fontOpticalSizing:"fos",fontPalette:"fpl",fontSize:"fs",fontSizeAdjust:"fsa",fontSmooth:"fsm",fontStretch:"fsr",fontStyle:"fsy",fontSynthesis:"fsyn",fontVariant:"fv",fontVariationSettings:"fvs",fontWeight:"fw",hyphens:"hyp",letterSpacing:"ls",lineHeight:"lh",tabSize:"tsz",textAlign:"ta",textDecoration:"td",textDecorationColor:"tdc",textDecorationLine:"tdl",textDecorationStyle:"tds",textIndent:"ti",textOverflow:"tov",textStroke:"tsk",textTransform:"tt",unicodeBidi:"ub",verticalAlign:"va",whiteSpace:"ws",wordBreak:"wbr",wordSpacing:"wsp",wordWrap:"wwr",writingMode:"wm",captionSide:"cps",counterIncrement:"ci",counterReset:"cr",emptyCells:"ec",listStyle:"lst",listStyleImage:"lsi",listStylePosition:"lsp",listStyleType:"lsty",quotes:"qt",tableLayout:"tl",columnCount:"cc",columnFill:"cf",columnRule:"crl",columnRuleColor:"crlc",columnRuleStyle:"crls",columnRuleWidth:"crlw",columnSpan:"cspn",columnWidth:"cwi",columns:"col",backdropFilter:"bdf",boxDecorationBreak:"bxdb",clipPath:"cpth",filter:"fil",isolation:"iso",mixBlendMode:"mbm",objectFit:"obf",objectPosition:"obp",perspective:"prs",perspectiveOrigin:"prso",willChange:"wc",transform:"tf",transformOrigin:"tfo",transformStyle:"tfs",transition:"trn",transitionDelay:"trnd",transitionDuration:"trndr",transitionProperty:"trnp",transitionTimingFunction:"trntf",animation:"an",animationDelay:"and",animationDirection:"andr",animationDuration:"andur",animationFillMode:"anfm",animationIterationCount:"anic",animationName:"ann",animationPlayState:"anps",animationTimingFunction:"antf",scrollBehavior:"sb",scrollMargin:"smr",scrollMarginBottom:"smrb",scrollMarginLeft:"smrl",scrollMarginRight:"smrr",scrollMarginTop:"smrt",scrollPadding:"spd",scrollPaddingBottom:"spdb",scrollPaddingLeft:"spdl",scrollPaddingRight:"spdr",scrollPaddingTop:"spdt",scrollSnapAlign:"ssa",scrollSnapStop:"sss",scrollSnapType:"sst",breakAfter:"bka",breakBefore:"bkb",breakInside:"bki",pageBreakAfter:"pbka",pageBreakBefore:"pbkb",pageBreakInside:"pbki",accessKey:"ack",className:"cn",contentEditable:"ced",contextMenu:"cmu",draggable:"drg",hidden:"hid",id:"id",is:"is",lang:"lng",nonce:"nnc",spellCheck:"spc",tabIndex:"tbi",title:"ttl",translate:"trl",accept:"acp",acceptCharset:"accs",action:"act",autoComplete:"atc",autoFocus:"atf",capture:"cap",challenge:"chg",checked:"chk",cols:"cls",colSpan:"csn",controls:"ctl",default:"def",defer:"dfr",disabled:"dis",encType:"ect",form:"frm",formAction:"fac",formEncType:"fect",formMethod:"fme",formNoValidate:"fnv",formTarget:"ftg",high:"hgh",inputMode:"imd",kind:"knd",label:"lbl",list:"lis",loop:"lp",low:"lw",max:"mx",maxLength:"mxl",method:"mtd",min:"mn",minLength:"mnl",multiple:"mul",muted:"mut",name:"nm",open:"opn",optimum:"opt",pattern:"ptn",placeholder:"phd",readOnly:"ro",required:"req",reversed:"rev",rows:"rws",rowSpan:"rsn",selected:"sel",span:"spn",start:"srt",step:"stp",type:"typ",value:"val",download:"dl",href:"hrf",hrefLang:"hrl",ping:"png",referrerPolicy:"rfp",rel:"rl",target:"tgt",allow:"alw",allowFullScreen:"afs",allowPaymentRequest:"apr",alt:"alt",cellPadding:"cpg",cellSpacing:"csg",cite:"cit",coords:"crd",crossOrigin:"cor",dateTime:"dtm",fetchPriority:"fpr",headers:"hds",httpEquiv:"hte",integrity:"itg",isMap:"ism",keyType:"kty",loading:"ldg",manifest:"mft",media:"mda",poster:"pst",preload:"prl",radioGroup:"rdg",sandbox:"sbx",scoped:"scod",seamless:"sml",shape:"shp",sizes:"szs",src:"src",srcDoc:"srd",srcLang:"srl",srcSet:"srs",useMap:"ump",ariaActiveDescendant:"aad",ariaAtomic:"aat",ariaBusy:"abu",ariaChecked:"achk",ariaControls:"acl",ariaCurrent:"acr",ariaDescribedBy:"adb",ariaDetails:"adt",ariaDisabled:"adis",ariaDropEffect:"ade",ariaErrorMessage:"aem",ariaExpanded:"aexp",ariaGrabbed:"agr",ariaHasPopup:"ahp",ariaHidden:"ahid",ariaInvalid:"ainv",ariaLabel:"alb",ariaLabelledBy:"alby",ariaLive:"alv",ariaModal:"amod",ariaMultiSelectable:"ams",ariaOrientation:"aor",ariaOwns:"aow",ariaPosInSet:"apis",ariaPressed:"aprs",ariaReadOnly:"aro",ariaRelevant:"arl",ariaRequired:"areq",ariaSelected:"asel",ariaSetSize:"assz",ariaValueMax:"avmx",ariaValueMin:"avmn",ariaValueNow:"avn",role:"role",onInit:"@in",onRender:"@rn",onUpdate:"@up",onStateChange:"@sc",onStateUpdate:"@su",onClick:"@ck",onContextMenu:"@cm",onDblClick:"@dc",onMouseDown:"@md",onMouseEnter:"@me",onMouseLeave:"@ml",onMouseMove:"@mm",onMouseOut:"@mo",onMouseOver:"@mv",onMouseUp:"@mu",onKeyDown:"@kd",onKeyPress:"@kp",onKeyUp:"@ku",onBlur:"@bl",onFocus:"@fc",onFocusIn:"@fi",onFocusOut:"@fo",onBeforeInput:"@bi",onChange:"@cg",onFormData:"@fd",onInput:"@ip",onInvalid:"@iv",onReset:"@rs",onSearch:"@sr",onSelect:"@sl",onSubmit:"@sm",onTouchCancel:"@tc",onTouchEnd:"@te",onTouchMove:"@tm",onTouchStart:"@ts",onPointerCancel:"@pc",onPointerDown:"@pd",onPointerEnter:"@pe",onPointerLeave:"@ple",onPointerMove:"@pm",onPointerOut:"@po",onPointerOver:"@pov",onPointerUp:"@pu",onDrag:"@dg",onDragEnd:"@dge",onDragEnter:"@dgn",onDragLeave:"@dgl",onDragOver:"@dgo",onDragStart:"@dgs",onDrop:"@dp",onResize:"@rz",onScroll:"@scl",onWheel:"@wh",onCopy:"@cy",onCut:"@ct",onPaste:"@pt",onCompositionEnd:"@cpe",onCompositionStart:"@cps",onCompositionUpdate:"@cpu",onAnimationEnd:"@ae",onAnimationIteration:"@ai",onAnimationStart:"@as",onTransitionEnd:"@tre",onTransitionStart:"@trs",onAbort:"@ab",onCanPlay:"@cap",onCanPlayThrough:"@cpt",onDurationChange:"@duc",onEmptied:"@em",onEncrypted:"@enc",onEnded:"@end",onError:"@er",onLoad:"@ld",onLoadedData:"@ldd",onLoadedMetadata:"@ldm",onPause:"@pa",onPlay:"@pl",onPlaying:"@plg",onProgress:"@prg",onRateChange:"@rc",onSeeked:"@sk",onSeeking:"@skg",onStalled:"@stl",onSuspend:"@ssp",onTimeUpdate:"@tu",onVolumeChange:"@vc",onWaiting:"@wt",icon:"ico",iconText:"ict",lookup:"lkp",router:"rtr",shapeModifier:"shpm"},Dt=Object.create(null);for(let t in Se)Dt[Se[t]]=t;var $y=Object.create(null);for(let t in Se){let e=Se[t];if($y[e])throw new Error(`Duplicate abbreviation "${e}" for "${t}" \u2014 already used by "${$y[e]}"`);$y[e]=t}var $t=new Set(["state","st","scope","scp","attr","at","style","sy","data","dt","context","ctx","query","qy","class","cl"]),Wr=new Set(["text","tx","html","htm","content","cnt","placeholder","phd","src","href","hrf"]);function Ie(t){return/^[A-Z]/.test(t)}function De(t){return/^[:@.!$>&]/.test(t)||t.startsWith("> ")}function mk(t){if(!t||typeof t!="object")return"";let e=[];for(let r in t){let o=t[r];if(typeof o=="function"||o!==null&&typeof o=="object"&&!Array.isArray(o)||o===void 0)continue;let n=Se[r]||r;if(o===!0)e.push(n);else if(o===!1)e.push("!"+n);else if(Array.isArray(o)){let s=o.map(i=>Xf(i));e.push(n+":"+s.join(","))}else e.push(n+":"+Xf(o))}return e.join(" ")}function Xf(t){return String(t).replace(/ /g,"_")}function Ya(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(r){return r!==null&&typeof r=="object"?Ya(r):r});let e={};for(let r in t){let o=t[r];if(Ie(r)){e[r]=Ly(o);continue}if(De(r)){e[r]=Ly(o);continue}let n=Se[r]||r;if($t.has(r)||$t.has(n)){e[n]=o;continue}e[n]=Ly(o)}return e}function Ly(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?Ya(e):e}):typeof t=="object"?Ya(t):t}function Ao(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(o){return o!==null&&typeof o=="object"?Ao(o):o});let e={},r=[];for(let o in t){let n=t[o];if(Ie(o)){e[o]=gk(n);continue}if(De(o)){e[o]=gk(n);continue}let s=Se[o]||o;if($t.has(o)||$t.has(s)){e[s]=n;continue}if(typeof n=="function"){e[s]=n;continue}if(n==null){e[s]=n;continue}if(Wr.has(o)||Wr.has(s)){e[s]=n;continue}if(Array.isArray(n)){if(n.some(function(a){return a!==null&&typeof a=="object"})){e[s]=n.map(function(a){return a!==null&&typeof a=="object"?Ao(a):a});continue}if(n.length<=1){e[s]=n;continue}r.push(s+":"+n.map(Xf).join(","));continue}if(typeof n=="object"){e[s]=Ao(n);continue}n===!0?r.push(s):n===!1?r.push("!"+s):typeof n=="number"||typeof n=="string"&&(n.includes(",")||n.includes("_"))?e[s]=n:r.push(s+":"+Xf(n))}return r.length&&(e.in=r.join(" ")),e}function gk(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?Ao(e):e}):typeof t=="object"?Ao(t):t}function _k(t){if(!t||typeof t!="string")return{};let e={},r=xk(t);for(let o of r){if(o.startsWith("!")){let c=o.slice(1),l=Dt[c]||c;e[l]=!1;continue}let n=o.indexOf(":");if(n===-1){let c=Dt[o]||o;e[c]=!0;continue}let s=o.slice(0,n),i=o.slice(n+1),a=Dt[s]||s;if(i.includes(",")){e[a]=i.split(",").map(yk);continue}e[a]=yk(i)}return e}function xk(t){return t.trim().split(/\s+/).filter(Boolean)}function yk(t){let e=t.replace(/_/g," ");return/^-?\d+(\.\d+)?$/.test(e)?Number(e):e}function bk(t){return t.replace(/_/g," ")}function wO(t){if(!t||typeof t!="string")return{};let e={},r=xk(t);for(let o of r){if(o.startsWith("!")){let c=o.slice(1),l=Dt[c]||c;e[l]=!1;continue}let n=o.indexOf(":");if(n===-1){let c=Dt[o]||o;e[c]=!0;continue}let s=o.slice(0,n),i=o.slice(n+1),a=Dt[s]||s;if(i.includes(",")){e[a]=i.split(",").map(bk);continue}e[a]=bk(i)}return e}function To(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(r){return r!==null&&typeof r=="object"?To(r):r});let e={};for(let r in t){let o=t[r];if(Ie(r)){e[r]=My(o);continue}let n=Dt[r]||r;if(De(r)&&n===r){e[r]=My(o);continue}if($t.has(n)||$t.has(r)){e[n]=o;continue}e[n]=My(o)}return e}function My(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?To(e):e}):typeof t=="object"?To(t):t}function Oo(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(r){return r!==null&&typeof r=="object"?Oo(r):r});let e={};if(typeof t.in=="string"){let r=wO(t.in);for(let o in r)e[o]=r[o]}for(let r in t){if(r==="in")continue;let o=t[r];if(Ie(r)){e[r]=Fy(o);continue}let n=Dt[r]||r;if(De(r)&&n===r){e[r]=Fy(o);continue}if($t.has(n)||$t.has(r)){e[n]=o;continue}e[n]=Fy(o)}return e}function Fy(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?Oo(e):e}):typeof t=="object"?Oo(t):t}function wk(t){return String(t).replace(/\\/g,"\\\\").replace(/_/g,"\\_").replace(/,/g,"\\,").replace(/ /g,"_")}function SO(t){let e="",r=0;for(;r<t.length;){if(t[r]==="\\"&&r+1<t.length){let o=t[r+1];if(o===","||o==="_"||o==="\\"){e+=o,r+=2;continue}}t[r]==="_"?e+=" ":e+=t[r],r++}return e}function kO(t){let e=[],r="",o=0;for(;o<t.length;){if(t[o]==="\\"&&o+1<t.length){r+=t[o]+t[o+1],o+=2;continue}if(t[o]===","){e.push(r),r="",o++;continue}r+=t[o],o++}return e.push(r),e}function Sk(t){if(t==null||typeof t!="object"||Array.isArray(t))return!1;let e=Object.keys(t);return e.length===1&&e[0]==="in"&&typeof t.in=="string"}function Ro(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(o){return o!==null&&typeof o=="object"?Ro(o):o});let e={},r=[];for(let o in t){let n=t[o];if(Ie(o)){let i=kk(n);e[o]=Sk(i)?i.in:i;continue}if(De(o)){let i=kk(n);e[o]=Sk(i)?i.in:i;continue}let s=Se[o]||o;if($t.has(o)||$t.has(s)){e[s]=n;continue}if(typeof n=="function"){e[s]=n;continue}if(n==null){e[s]=n;continue}if(Wr.has(o)||Wr.has(s)){e[s]=n;continue}if(Array.isArray(n)){if(n.some(function(a){return a!==null&&typeof a=="object"})){e[s]=n.map(function(a){return a!==null&&typeof a=="object"?Ro(a):a});continue}if(n.length<=1){e[s]=n;continue}r.push(s+":"+n.map(wk).join(","));continue}if(typeof n=="object"){e[s]=Ro(n);continue}if(n===!0){r.push(s);continue}if(n===!1){r.push("!"+s);continue}if(typeof n=="number"){r.push(s+":#"+n);continue}r.push(s+":"+wk(n))}return r.length&&(e.in=r.join(" ")),e}function kk(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?Ro(e):e}):typeof t=="object"?Ro(t):t}function vk(t){return t.startsWith("#")&&/^#-?\d+(\.\d+)?$/.test(t)?Number(t.slice(1)):SO(t)}function Ny(t){if(!t||typeof t!="string")return{};let e={},r=t.trim().split(/\s+/).filter(Boolean);for(let o of r){if(o.startsWith("!")){let l=o.slice(1),f=Dt[l]||l;e[f]=!1;continue}let n=o.indexOf(":");if(n===-1){let l=Dt[o]||o;e[l]=!0;continue}let s=o.slice(0,n),i=o.slice(n+1),a=Dt[s]||s,c=kO(i);if(c.length>1){e[a]=c.map(vk);continue}e[a]=vk(i)}return e}function Po(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(r){return r!==null&&typeof r=="object"?Po(r):r});let e={};if(typeof t.in=="string"){let r=Ny(t.in);for(let o in r)e[o]=r[o]}for(let r in t){if(r==="in")continue;let o=t[r];if(Ie(r)){typeof o=="string"?e[r]=Ny(o):e[r]=jy(o);continue}let n=Dt[r]||r;if(De(r)&&n===r){typeof o=="string"?e[r]=Ny(o):e[r]=jy(o);continue}if($t.has(n)||$t.has(r)){e[n]=o;continue}e[n]=jy(o)}return e}function jy(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?Po(e):e}):typeof t=="object"?Po(t):t}var vO={shorten:To,stringify:Oo,stringifyFurther:Po};function CO(t,e){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(o=>e(o));let r={};for(let o in t){let n=t[o];r[o]=n&&typeof n=="object"?e(n):n}return r}var EO=["components","pages","snippets"],Xa={name:"shorthand",prepareContext(t){let e=t.shorthand;if(!e)return;let o=vO[e===!0?"shorten":e];if(o){for(let n of EO)t[n]&&(t[n]=CO(t[n],o));t.app&&typeof t.app=="object"&&(t.app=o(t.app))}}};var Zy={};P(Zy,{LEVELS:()=>Ja,analyzePlugin:()=>es,attachBrowserListeners:()=>su,attachNetworkListeners:()=>Qa,classifyEvent:()=>Ky,createAnalyzeState:()=>iu,createBeaconSink:()=>Xy,createConsoleSink:()=>Gy,createDedupe:()=>Hy,createEnrich:()=>Vy,createMemorySink:()=>Yy,createPipeline:()=>tu,createRedact:()=>Qf,createRemoteSink:()=>ru,createSample:()=>Wy,createSummarize:()=>zy,default:()=>es,emitFetchEvent:()=>Ik,makeEvent:()=>X,meetsLevel:()=>Jf,normalizeLevel:()=>Za,resolveSinks:()=>nu,summarizeElement:()=>Io});var AO=0,TO=()=>`${Date.now().toString(36)}-${(AO++).toString(36)}`,X=(t,e,r={})=>({id:TO(),ts:Date.now(),type:t,level:e,...r}),OO=t=>{let e=[],r=t,o=0;for(;r&&o<32;)r.key!=null&&e.unshift(String(r.key)),r=r.parent,o++;return e.join(" > ")},Io=t=>t?{key:t.key!=null?String(t.key):null,name:t.__name||t.name||null,path:OO(t),tag:t.tag||null,component:t.component||null,route:t.context?.routerOptions?.currentRoute||null}:null;var ts=t=>t?.context?.analyze,RO={init:{category:"lifecycle",type:"lifecycle",level:"debug"},create:{category:"lifecycle",type:"lifecycle",level:"debug"},render:{category:"lifecycle",type:"lifecycle",level:"debug"},beforeRemove:{category:"lifecycle",type:"lifecycle",level:"debug"},remove:{category:"lifecycle",type:"lifecycle",level:"debug"}},PO=(t,{category:e,type:r,level:o})=>n=>{let s=ts(n);!s||!s.shouldCapture(e)||s.emit(X(r,o,{hook:t,element:Io(n)}))},Ck=t=>(e,r)=>{let o=ts(e);!o||!o.shouldCapture("state")||o.emit(X("state","debug",{hook:t,element:Io(e),changedKeys:r?.changedKeys||null}))},es={name:"analyze",error(t,e){let r=ts(t);if(!r||r.config.enabled===!1||!r.shouldCapture("errors"))return;let o=e?.error||e?.err||(e instanceof Error?e:null);r.emit(X("error","error",{hook:e?.hook||"error",element:Io(t),error:o,message:o?.message||(typeof e?.message=="string"?e.message:null)}))},renderRouter(t){let e=ts(t);e&&(!e.shouldCapture("navigation")&&!e.shouldCapture("lifecycle")||e.emit(X("navigation","info",{hook:"renderRouter",route:t.context?.routerOptions?.currentRoute||null})))},beforeUpdate(t){let e=ts(t);!e||!e.shouldCapture("updates")||t.__ref&&(t.__ref.__analyzeUpdateStart=typeof performance<"u"?performance.now():Date.now())},update(t){let e=ts(t);if(!e||!e.shouldCapture("updates"))return;let r=null;t.__ref?.__analyzeUpdateStart!=null&&(r=(typeof performance<"u"?performance.now():Date.now())-t.__ref.__analyzeUpdateStart,t.__ref.__analyzeUpdateStart=null),e.emit(X("update","debug",{hook:"update",element:Io(t),durationMs:r}))},beforeStateUpdate:Ck("beforeStateUpdate"),stateUpdate:Ck("stateUpdate")};for(let[t,e]of Object.entries(RO))es[t]=PO(t,e);R();var Ja={error:0,warn:1,info:2,debug:3,trace:4};var Jf=(t,e)=>{let r=Ja[t],o=Ja[e];return r==null||o==null?!0:r<=o},Za=t=>Ja[t]!=null?t:"warn";R();var Zf=/password|token|secret|ssn|card|cvv|pin|apikey|api_key|auth|email|otp/i;var IO=(t,e)=>{for(let r of e)if(r instanceof RegExp){if(r.test(t))return!0}else if(typeof r=="string"&&t.toLowerCase().includes(r.toLowerCase()))return!0;return!1},DO=(t,e)=>{if(e!=="redact"){if(e==="hash"){let r=0,o=String(t);for(let n=0;n<o.length;n++)r=(r<<5)-r+o.charCodeAt(n)|0;return`#${(r>>>0).toString(36)}`}return"***"}},Uy=(t,e,r,o)=>{if(o>6||t==null||typeof t!="object")return t;if(Array.isArray(t))return t.map(s=>Uy(s,e,r,o+1));let n={};for(let s of Object.keys(t))if(IO(s,e)||Zf.test(s)){let a=DO(t[s],r);a!==void 0&&(n[s]=a)}else n[s]=Uy(t[s],e,r,o+1);return n},Qf=(t=[],e="mask")=>{let r=Array.isArray(t)?t:[t];return o=>{if(!o)return o;let{id:n,ts:s,type:i,level:a,hook:c,error:l,message:f,durationMs:u,element:d,target:h,...g}=o,p=Uy(g,r,e,0);return{id:n,ts:s,type:i,level:a,hook:c,error:l,message:f,durationMs:u,element:d,target:h,...p}}};var Vy=t=>{let e=`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,8)}`,r=typeof navigator<"u"?navigator.userAgent:null,o=t.config.buildHash||null,n=t.config.appId||null;return s=>{if(!s)return s;let i=t.context?.routerOptions?.currentRoute||null,a=v,c=a&&a.innerWidth?{w:a.innerWidth,h:a.innerHeight}:null;return{...s,session:e,app:{id:n,build:o,route:i},meta:{ua:r,viewport:c}}}},zy=()=>t=>{if(!t)return t;if(t.element&&typeof t.element=="object"){let e=t.element;(e.node||e.parent||e.__ref)&&(t={...t,element:{key:e.key!=null?String(e.key):null,name:e.__name||e.name||null,tag:e.tag||null,component:e.component||null}})}return t.error instanceof Error&&(t={...t,error:{name:t.error.name,message:t.error.message,stack:t.error.stack}}),t},Hy=(t=1e3,e=500)=>{let r=new Map;return o=>{if(!o)return o;let n=`${o.type}:${o.level}:${o.message||""}:${o.error?.message||""}`,s=r.get(n),i=o.ts||Date.now();if(s&&i-s<t)return null;if(r.set(n,i),r.size>e){let a=Math.ceil(e/10),c=0;for(let l of r.keys()){if(c++>=a)break;r.delete(l)}}return o}},Wy=t=>e=>{if(!e)return e;let r=t[e.type];return r==null||r>=1?e:Math.random()>r?null:e},Ek={redact:t=>Qf(t.config.redact||[],t.config.maskStrategy),enrich:t=>Vy(t),summarize:()=>zy(),dedupe:t=>Hy(t.config.cache?.dedupeWindowMs||1e3),sample:t=>Wy(t.config.sample||{})},$O=(t,e)=>{if(typeof t=="function")return t;if(typeof t=="string"){let r=Ek[t];return r?r(e):null}return null},tu=t=>{let e=t.config,r=Array.isArray(e.transformers)?e.transformers.slice():[],o=r.findIndex(s=>s==="redact");o>=0&&r.splice(o,1);let n=[];e.redact!==!1&&n.push(Ek.redact(t));for(let s of r){let i=$O(s,t);i&&n.push(i)}return s=>{let i=s;for(let a of n){if(i==null)return null;let c=a(i);if(c==null)return null;if(Array.isArray(c)){let l=n.slice(n.indexOf(a)+1),f=[];for(let u of c){let d=u,h=!1;for(let g of l)if(d=g(d),d==null){h=!0;break}!h&&d!=null&&f.push(d)}return f}i=c}return i}};R();R();var eu=typeof v<"u"&&typeof v.document<"u",LO=5e3,MO=50,FO=3,NO=1500,jO=1e3,Ky=t=>t?t.level==="error"||t.type==="error"?"bug":t.type==="network"?"network":t.type==="console"?t.level==="error"||t.level==="warn"?"bug":"log":t.level==="warn"?"bug":t.level==="info"?"log":"verbose":"verbose",BO=t=>{try{return JSON.stringify(t)}catch{return null}},UO=()=>{try{return Intl.DateTimeFormat().resolvedOptions().timeZone||null}catch{return null}},VO=t=>{if(!t)return null;let e=String(t),r;return(r=e.match(/Edg\/([\d.]+)/))?{name:"Edge",version:r[1]}:(r=e.match(/OPR\/([\d.]+)/))?{name:"Opera",version:r[1]}:(r=e.match(/Firefox\/([\d.]+)/))?{name:"Firefox",version:r[1]}:/Chrome\/([\d.]+)/.test(e)&&/Safari\//.test(e)?(r=e.match(/Chrome\/([\d.]+)/),{name:"Chrome",version:r[1]}):(r=e.match(/Version\/([\d.]+).*Safari/))?{name:"Safari",version:r[1]}:{name:null,version:null}},zO=()=>{if(!eu)return null;try{let t=v.document?.documentElement?.getAttribute("data-theme")||null,e=typeof v.matchMedia=="function"?v.matchMedia("(prefers-color-scheme: dark)").matches:null;return{active:t||(e?"dark":e===!1?"light":null),forced:t||null,prefers:e==null?null:e?"dark":"light"}}catch{return null}},HO=()=>{if(!eu)return null;let t=v.location,e=typeof navigator<"u"?navigator:null,r=typeof screen<"u"?screen:null;return{url:t?.href||null,path:t?.pathname||null,referrer:v.document?.referrer||null,title:v.document?.title||null,ua:e?.userAgent||null,browser:VO(e?.userAgent),language:e?.language||null,languages:e?.languages||null,timezone:UO(),viewport:v.innerWidth?{w:v.innerWidth,h:v.innerHeight,dpr:v.devicePixelRatio||1}:null,screen:r?{w:r.width||null,h:r.height||null,availW:r.availWidth||null,availH:r.availHeight||null,colorDepth:r.colorDepth||null,orientation:r.orientation?.type||null}:null,theme:zO()}},ru=(t={})=>{let e=t.url,r=typeof t.transport=="function"?t.transport:null,o=typeof t.syncTransport=="function"?t.syncTransport:null;if(!e&&!r)return()=>{};let n=t.apiKey||null,s=t.appKey||t.appId||null,i=t.tenantKey||t.tenant||null,a=t.release||null,c=t.env||null,l=t.sdk||null,f=typeof t.getAuth=="function"?t.getAuth:null,u=typeof t.getContext=="function"?t.getContext:null,d=typeof t.classify=="function"?t.classify:Ky,h=typeof t.beforeSend=="function"?t.beforeSend:null,g=t.debug===!0,p=typeof t.getDebug=="function"?t.getDebug:null,m=t.batchMs!=null?t.batchMs:LO,b=t.maxBatch||MO,_=t.maxRetries!=null?t.maxRetries:FO,y=t.backoffMs||NO,x=t.queueLimit||jO,k=t.sampleRate!=null?t.sampleRate:1,E=()=>typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,10)}`,O=t.sessionId||E(),$=[],D=[],I=null,H=null,V=()=>{I||!$.length||(I=setTimeout(K,m))},rt=L=>{if(H)return;let ot=y*Math.pow(2,Math.max(0,L-1));H=setTimeout(()=>{if(H=null,!D.length)return;let U=D.shift();G(U.envelope,U.attempt)},ot)},at=(L,ot=!1)=>{let U=u?qy(u):null,Y={id:O,sentAt:Date.now()};ot&&(Y.endedAt=Date.now());let j={v:1,session:Y,app:{key:s,release:a,env:c},tenant:i,sdk:l,page:HO(),user:U?.user||null,traits:U?.traits||null,tags:U?.tags||null,events:L};if((p?qy(p)===!0:g)&&(j.app.debug=!0),h)try{return h(j)||null}catch{return j}return j},G=async(L,ot=1)=>{if(L)try{let U=!0;if(r){let Y=await r(L);U=Y!==!1&&Y?.ok!==!1}else U=await WO(e,L,{apiKey:n,getAuth:f});!U&&ot<_&&(D.push({envelope:L,attempt:ot+1}),rt(ot+1))}catch{ot<_&&(D.push({envelope:L,attempt:ot+1}),rt(ot+1))}},K=(L=!1,ot=!1)=>{if(I&&(clearTimeout(I),I=null),!$.length&&!ot)return;let U=$;$=[];let Y=at(U,ot);if(Y){if(L&&eu){if(typeof o=="function"&&qy(()=>o(Y)))return;if(navigator.sendBeacon&&e){let j=BO(Y);if(j)try{navigator.sendBeacon(e,new v.Blob([j],{type:"application/json"}));return}catch{}}}G(Y)}},lt=!1,Vt=()=>{lt||(lt=!0,K(!0,!0))};eu&&(v.addEventListener("pagehide",Vt,{passive:!0}),v.addEventListener("beforeunload",Vt,{passive:!0}),v.addEventListener("visibilitychange",()=>{v.document.visibilityState==="hidden"&&K(!0)},{passive:!0}));let W=L=>{if(!L||k<1&&Math.random()>k)return;lt&&(lt=!1);let ot={...L,log_type:d(L)};$.push(ot),$.length>x&&($=$.slice(-x)),$.length>=b?K():V()},wt=L=>(K(!1,!0),O=L||E(),lt=!1,W.sessionId=O,O);return W.flush=()=>K(!1),W.endSession=Vt,W.startNewSession=wt,W.sessionId=O,W},qy=t=>{try{return t()}catch{return null}},WO=async(t,e,{apiKey:r,getAuth:o})=>{let n={"Content-Type":"application/json","X-Analyze-Beacon":"1"};if(r&&(n["X-Analyze-Key"]=r),o)try{let s=await o();s&&(n.Authorization=`Bearer ${s}`)}catch{}try{return(await fetch(t,{method:"POST",headers:n,body:JSON.stringify(e),keepalive:!0,credentials:"omit",mode:"cors"})).ok}catch{return!1}};var qO={error:"\x1B[31m",warn:"\x1B[33m",info:"\x1B[36m",debug:"\x1B[90m",trace:"\x1B[90m"},KO="\x1B[0m",ou=typeof v<"u"&&typeof v.document<"u",Gy=(t={})=>{let e=t.minLevel||null,r=console.error.bind(console),o=console.warn.bind(console),n=console.log.bind(console);return s=>{if(!s)return;let i=s.level==="error"?r:s.level==="warn"?o:n,a=`[analyze:${s.type}]`;if(ou)i(a,s);else{let c=qO[s.level]||"";i(`${c}${a}${KO}`,s)}}},Yy=(t,e={})=>{let r=e.max||t.config.cache?.max||500,o=new Array(r),n=0,s=0,i=a=>{o[n]=a,n=(n+1)%r,s<r&&s++};return t.__memory={push:i,snapshot:()=>{let a=new Array(s),c=(n-s+r)%r;for(let l=0;l<s;l++)a[l]=o[(c+l)%r];return a},query:(a={})=>{let c=t.__memory.snapshot(),l=a.sinceMs?Date.now()-a.sinceMs:0;return c.filter(f=>!(!f||a.level&&f.level!==a.level||a.type&&f.type!==a.type||l&&f.ts<l))},clear:()=>{n=0,s=0}},i},Xy=(t={})=>{let e=t.url,r=t.batchMs!=null?t.batchMs:5e3,o=t.maxBatch||50;if(!e)return()=>{};let n=[],s=null,i=()=>{if(s&&(clearTimeout(s),s=null),!n.length)return;let c=JSON.stringify({events:n});n=[];let l=ou?new v.Blob([c],{type:"application/json"}):c;if(ou&&navigator.sendBeacon)try{navigator.sendBeacon(e,l);return}catch{}typeof fetch<"u"&&fetch(e,{method:"POST",headers:{"Content-Type":"application/json","X-Analyze-Beacon":"1"},body:c,keepalive:!0}).catch(()=>{})};ou&&(v.addEventListener("pagehide",i,{passive:!0}),v.addEventListener("beforeunload",i,{passive:!0}));let a=c=>{c&&(n.push(c),n.length>=o?i():s||(s=setTimeout(i,r)))};return a.flush=i,a},Ak={console:Gy,memory:Yy,beacon:Xy,remote:ru},Tk=(t,e)=>e.getDebug!=null||e.debug!=null?e:{...e,getDebug:()=>t.config.debug===!0},nu=t=>{let e=Array.isArray(t.config.sinks)?t.config.sinks:["console"],r=[];for(let o of e)if(typeof o=="function")r.push(o);else if(typeof o=="string"){let n=Ak[o];if(!n)continue;r.push(o==="memory"?n(t,{}):n(o==="remote"?Tk(t,{}):{}))}else if(o&&typeof o=="object"&&o.type){let n=Ak[o.type];if(!n)continue;r.push(o.type==="memory"?n(t,o):n(o.type==="remote"?Tk(t,o):o))}return r};R();var GO=typeof v<"u"&&typeof v.document<"u",YO=new Set(["password","hidden"]),Ok=(t,e)=>{let r=0,o=null,n=null;return(...s)=>{let i=Date.now();i-r>=e?(r=i,t(...s)):(n=s,o||(o=setTimeout(()=>{r=Date.now(),o=null,n&&(t(...n),n=null)},e-(i-r))))}},Jy="__analyzeKeyPath",rs=t=>{let e=t.target;if(!e)return{selector:null,key:null,path:null};if(e[Jy])return e[Jy];let r=[],o=e,n=0,s=null;for(;o&&n<64;){if(o.getAttribute){let a=o.getAttribute("data-key");a&&(s==null&&(s=a),r.unshift(a))}o=o.parentNode,n++}let i;if(r.length)i={selector:null,key:s,path:r.join(" > "),tag:e.tagName?.toLowerCase()||null};else{let a=(e.tagName||"unknown").toLowerCase(),c=e.id?`#${e.id}`:"",l=e.className&&typeof e.className=="string"?"."+e.className.trim().split(/\s+/).slice(0,2).join("."):"";i={selector:`${a}${c}${l}`,key:null,path:null}}try{e[Jy]=i}catch{}return i},XO=(t,e)=>{if(e==="mask")return"***";if(e!=="redact"){if(e==="hash"){let r=0,o=String(t||"");for(let n=0;n<o.length;n++)r=(r<<5)-r+o.charCodeAt(n)|0;return`#${(r>>>0).toString(36)}`}return"***"}},JO=t=>!!(!t||t.tagName==="INPUT"&&YO.has(t.type)||Zf.test(t.name||"")||Zf.test(t.id||"")||t.dataset?.analyze==="skip"),su=t=>{if(!GO)return;let e=t.config.capture,r=t.config.throttle,o=t.__teardown,n=(s,i,a,c)=>{s.addEventListener(i,a,c),o.push(()=>s.removeEventListener(i,a,c))};if(e.errors&&(n(v,"error",s=>{t.emit(X("error","error",{hook:"window.onerror",message:s.message||null,error:s.error||null,source:s.filename||null,line:s.lineno||null,col:s.colno||null}))}),n(v,"unhandledrejection",s=>{let i=s.reason,a=i instanceof Error?i:null;t.emit(X("error","error",{hook:"unhandledrejection",message:a?.message||(typeof i=="string"?i:"Unhandled promise rejection"),error:a}))})),e.pointer){n(v,"click",i=>{t.emit(X("pointer","info",{hook:"click",target:rs(i),button:i.button,x:i.clientX,y:i.clientY,modifiers:Rk(i)}))},{passive:!0,capture:!0}),n(v,"dblclick",i=>{t.emit(X("pointer","info",{hook:"dblclick",target:rs(i),x:i.clientX,y:i.clientY}))},{passive:!0,capture:!0}),n(v,"contextmenu",i=>{t.emit(X("pointer","info",{hook:"contextmenu",target:rs(i),x:i.clientX,y:i.clientY}))},{passive:!0,capture:!0});let s=Ok(i=>{t.emit(X("pointer","trace",{hook:"pointermove",x:i.clientX,y:i.clientY}))},r.pointermove);n(v,"pointermove",s,{passive:!0})}if(e.keyboard&&n(v,"keydown",s=>{t.emit(X("keyboard","info",{hook:"keydown",code:s.code,key:s.key&&s.key.length===1?"\xB7":s.key,modifiers:Rk(s),target:rs(s)}))},{passive:!0,capture:!0}),e.forms){let s=i=>{let a=i.target;if(!a||!a.tagName||!["INPUT","TEXTAREA","SELECT"].includes(a.tagName))return;let l=JO(a),f=a.dataset?.analyze==="track",u=null;f&&!l?u=a.value:t.config.maskFormValues!==!1&&(u=XO(a.value,t.config.maskStrategy)),t.emit(X("forms","info",{hook:i.type,target:rs(i),field:{name:a.name||null,type:a.type||a.tagName.toLowerCase()},value:u}))};n(v,"input",s,{passive:!0,capture:!0}),n(v,"change",s,{passive:!0,capture:!0}),n(v,"submit",i=>{t.emit(X("forms","info",{hook:"submit",target:rs(i)}))},{passive:!0,capture:!0})}if(e.scroll){let s=Ok(()=>{t.emit(X("scroll","trace",{hook:"scroll",x:v.scrollX,y:v.scrollY}))},r.scroll);n(v,"scroll",s,{passive:!0,capture:!0})}if(e.viewport){let s=Vs(()=>{t.emit(X("viewport","info",{hook:"resize",w:v.innerWidth,h:v.innerHeight,dpr:v.devicePixelRatio||1}))},r.resize);n(v,"resize",s,{passive:!0}),n(v,"orientationchange",()=>{t.emit(X("viewport","info",{hook:"orientationchange",orientation:typeof screen<"u"&&screen.orientation?screen.orientation.type:null}))},{passive:!0}),n(v.document,"visibilitychange",()=>{t.emit(X("viewport","info",{hook:"visibilitychange",hidden:v.document.hidden}))},{passive:!0}),t.emit(X("viewport","info",{hook:"initial",w:v.innerWidth,h:v.innerHeight,dpr:v.devicePixelRatio||1}))}if(e.console)for(let s of["log","warn","error","debug"]){let i=console[s];console[s]=function(...a){try{t.emit(X("console",s==="error"?"error":s==="warn"?"warn":"debug",{hook:`console.${s}`,args:a.map(Pk)}))}catch{}return i.apply(console,a)},o.push(()=>{console[s]=i})}if(e.performance&&typeof PerformanceObserver<"u")try{let s=new PerformanceObserver(a=>{for(let c of a.getEntries())t.emit(X("performance","info",{hook:c.entryType,name:c.name,startTime:c.startTime,duration:c.duration,value:c.value!=null?c.value:null}))}),i=["largest-contentful-paint","layout-shift","longtask","paint","first-input","event"];for(let a of i)try{s.observe({type:a,buffered:!0})}catch{}o.push(()=>s.disconnect())}catch{}},Rk=t=>({shift:!!t.shiftKey,ctrl:!!t.ctrlKey,alt:!!t.altKey,meta:!!t.metaKey}),ZO=t=>{let e={name:t.name||"Error",message:typeof t.message=="string"?t.message:String(t),stack:typeof t.stack=="string"?t.stack:null};return t.cause!==void 0&&(e.cause=Pk(t.cause)),e},Pk=t=>{if(t==null)return t;if(t instanceof Error)return ZO(t);if(typeof t=="object")try{return JSON.parse(JSON.stringify(t))}catch{return String(t)}return t};R();var QO=typeof v<"u"&&typeof v.document<"u",Ik=(t,e)=>{let r=t?.analyze;if(!r||!r.shouldCapture("network"))return;let o=e.phase==="error"?"error":"info";r.emit(X("network",o,{hook:`fetch.${e.phase}`,source:"symbo-fetch",...e}))},Qa=t=>{if(QO&&t.config.capture.network&&!t.__networkListeners){if(t.__networkListeners=!0,t.__teardown.push(()=>{t.__networkListeners=!1}),typeof v.fetch=="function"){let e=v.fetch.bind(v),r=function(o,n){if(n?.headers?.["X-Analyze-Beacon"]||!t.shouldCapture("network"))return e(o,n);let s=typeof o=="string"?o:o&&o.url||"",i=(n?.method||typeof o=="object"&&o?.method||"GET").toUpperCase(),a=typeof performance<"u"?performance.now():Date.now();return t.emit(X("network","info",{hook:"fetch.start",source:"window.fetch",url:s,method:i})),e(o,n).then(c=>{let l=(typeof performance<"u"?performance.now():Date.now())-a;return t.emit(X("network",c.ok?"info":"warn",{hook:"fetch.success",source:"window.fetch",url:s,method:i,status:c.status,ok:c.ok,durationMs:l})),c}).catch(c=>{let l=(typeof performance<"u"?performance.now():Date.now())-a;throw t.emit(X("network","error",{hook:"fetch.error",source:"window.fetch",url:s,method:i,error:c,durationMs:l})),c})};v.fetch=r,t.__teardown.push(()=>{v.fetch=e})}if(typeof v.XMLHttpRequest=="function"){let e=v.XMLHttpRequest,r=e.prototype.open,o=e.prototype.send;e.prototype.open=function(n,s){return this.__analyze={method:String(n).toUpperCase(),url:String(s)},r.apply(this,arguments)},e.prototype.send=function(n){let s=this.__analyze;if(!s||!t.shouldCapture("network"))return o.apply(this,arguments);let i=typeof performance<"u"?performance.now():Date.now();t.emit(X("network","info",{hook:"xhr.start",source:"xhr",url:s.url,method:s.method}));let a=()=>{let l=(typeof performance<"u"?performance.now():Date.now())-i,f=this.status>=200&&this.status<400;t.emit(X("network",f?"info":"warn",{hook:"xhr.success",source:"xhr",url:s.url,method:s.method,status:this.status,ok:f,durationMs:l}))},c=()=>{let l=(typeof performance<"u"?performance.now():Date.now())-i;t.emit(X("network","error",{hook:"xhr.error",source:"xhr",url:s.url,method:s.method,status:this.status,durationMs:l}))};return this.addEventListener("loadend",a),this.addEventListener("error",c),o.apply(this,arguments)},t.__teardown.push(()=>{e.prototype.open=r,e.prototype.send=o})}}};var tR={errors:!0,warnings:!0,pointer:!1,keyboard:!1,forms:!1,scroll:!1,viewport:!1,network:!1,performance:!1,navigation:!1,console:!1,lifecycle:!1,state:!1,updates:!1,replay:!1,telemetry:!1},eR={errors:!0,warnings:!0,pointer:!0,keyboard:!0,forms:!0,scroll:!0,viewport:!0,navigation:!0,state:!0},rR={errors:!0,warnings:!0,pointer:!0,navigation:!0,performance:!0,viewport:!0},oR={errors:!0,warnings:!0,console:!0,network:!1,navigation:!0,performance:!0,viewport:!0,lifecycle:!1,state:!1,updates:!1},nR=t=>{let e={...tR,...t};return e.replay&&Object.assign(e,eR),e.telemetry&&Object.assign(e,rR),e.remote&&Object.assign(e,oR),Object.assign(e,t),e},sR=64,iR=()=>{if(typeof v>"u"||!v.location)return null;try{let e=new URLSearchParams(v.location.search).get("analyze");return e||null}catch{return null}},iu=(t={})=>{let e=t===!0?{}:{...t};e.capture=nR(e.capture||{});let r=iR();(r==="debug"||e.debug)&&(e.level="debug",e.debug=!0,e.capture={...e.capture,lifecycle:!0,state:!0,updates:!0,console:!0,network:!0}),r==="off"&&(e.enabled=!1),e.level=Za(e.level||"warn"),e.cache={max:500,dedupeWindowMs:1e3,...e.cache||{}},e.throttle={pointermove:80,mousemove:80,scroll:100,resize:200,...e.throttle||{}},e.maskFormValues==null&&(e.maskFormValues=!0),e.maskStrategy||(e.maskStrategy="mask"),Array.isArray(e.sinks)||(e.sinks=["console","memory"]),Array.isArray(e.transformers)||(e.transformers=["enrich","summarize"]);let o={config:e,context:null,__ready:!1,__paused:!1,__preBuffer:[],__teardown:[],__pipeline:null,__sinks:null,__memory:null,__initialSnapshot:null},n=()=>{o.__pipeline||(o.__pipeline=tu(o),o.__sinks=nu(o))};return o.shouldCapture=s=>o.config.enabled===!1?!1:!!o.config.capture[s],o.emit=s=>{if(s&&o.config.enabled!==!1&&!o.__paused&&Jf(s.level,o.config.level)){if(!o.__ready){if(s.level!=="error"&&!o.config.captureDuringHydration)return;o.__preBuffer.length<sR&&o.__preBuffer.push(s);return}n(),Dk(o,s)}},o.activate=s=>{if(o.context==null&&(o.context=s||null),o.__ready)return;o.__ready=!0;let i=o.__preBuffer;if(o.__preBuffer=[],i.length){n();for(let a of i)Dk(o,a)}try{su(o)}catch(a){console.error("[analyze] browser attach error:",a)}try{Qa(o)}catch(a){console.error("[analyze] network attach error:",a)}for(let a of o.__onActivate||[])try{a(o)}catch(c){console.error("[analyze] onActivate error:",c)}},o.pause=()=>{o.__paused=!0},o.resume=()=>{o.__paused=!1},o.setLevel=s=>{o.config.level=Za(s)},o.setCapture=(s,i)=>{if(o.config.capture[s]=!!i,s==="network"&&i&&o.__ready)try{Qa(o)}catch(a){console.error("[analyze] network attach error:",a)}},o.query=s=>o.__memory?o.__memory.query(s):[],o.snapshot=()=>o.__memory?o.__memory.snapshot():[],o.emitNetwork=s=>{if(!o.shouldCapture("network"))return;let i=s?.phase,a=i==="error"?"error":i==="success"&&s.ok===!1?"warn":"info";o.emit({id:`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,6)}`,ts:Date.now(),type:"network",level:a,hook:`fetch.${i||"unknown"}`,...s})},o.flush=()=>{if(o.__sinks)for(let s of o.__sinks)typeof s.flush=="function"&&s.flush()},o.startNewSession=s=>{let i=s||(typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,10)}`),a=Array.isArray(o.config.sinks)?o.config.sinks:[];for(let c of a)c&&typeof c=="object"&&c.type==="remote"&&(c.sessionId=i);if(o.__sinks)for(let c of o.__sinks)typeof c.startNewSession=="function"&&c.startNewSession(i);return i},o.replay=()=>({initialSnapshot:o.__initialSnapshot,events:o.snapshot()}),o.destroy=()=>{for(let s of o.__teardown)try{s()}catch{}o.__teardown=[],o.__ready=!1,o.__paused=!0},o.__onActivate=[],o.onActivate=s=>{o.__onActivate.push(s)},o},Dk=(t,e)=>{let r=t.__pipeline(e);if(r==null)return;let o=Array.isArray(r)?r:[r];for(let n of o){if(typeof t.config.onEvent=="function")try{t.config.onEvent(n)}catch{}for(let s of t.__sinks)try{s(n)}catch(i){console.error("[analyze] sink error:",i)}}};var eb={};P(eb,{Inspect:()=>au,inspectPlugin:()=>tb});R();function $k(t){return w(t)?t:T(t)?t.find(e=>w(e)):""}function Qy(t){if(!t)return;let e=t.__ref.__componentKey,r=t.extends&&$k(t.extends),o=t.parent&&t.parent.childExtends&&$k(t.parent.childExtends);return(e||r||o||"").split("_")[0].split(".")[0].split("+")[0]}function cu(t){if(!t||!t.__ref)return;let{components:e,pages:r,editor:o}=t.context,n=Qy(t);return o&&o.onInitInspect&&!o.onInitInspect(n,t,t.state)?cu(t.parent):n&&(e[n]||r[n])?t:cu(t.parent)}var aR=(t,e,r)=>{let o=r.window||window;o.onkeydown=n=>{n.altKey&&n.shiftKey&&t.state.update({debugging:!0,preventSelect:!0},{preventUpdate:!0,preventContentUpdate:!0,preventRecursive:!0})},o.onkeyup=n=>{t.state.preventSelect&&(!n.altKey||!n.shiftKey)&&(t.state.replace({debugging:!1,preventSelect:!1},{preventUpdate:!0,preventContentUpdate:!0,preventRecursive:!0}),t.Inspector.state.update({area:!1}))}},au={".preventSelect":{userSelect:"none"},"!preventSelect":{userSelect:"auto"},onInspect:aR,onMousemove:(t,e,r)=>{let o=t.target.ref,n=cu(o),s=e.Inspector.state;if(!n||!r.debugging||!n.__ref)return s.update({area:!1});let i=Qy(n),a=l=>{s.update({area:l,focusKey:i})},c=()=>{if(t.altKey&&t.shiftKey){let{x:l,y:f,width:u,height:d}=n.node.getBoundingClientRect(),h={x:l,y:f,width:u,height:d};if(!s.area)return a(h);s.area.x!==h.x&&a(h)}else s.area&&s.update({area:!1})};window.requestAnimationFrame(()=>{c(),window.requestAnimationFrame(c)})},onMousedown:(t,e,r)=>{if(!r.debugging)return;let o=t.target.ref,n=cu(o);if(!n)return;let s=Qy(n);if(!s)return;let i=o.context.editor;if(i&&i.onInspect)return i.onInspect(s,o,o.state,{allowRouterWhileInspect:!0});let a=JSON.stringify({componentKey:`${s}`});return o.context.socket?.emit&&o.context.socket.emit("route",a),t.preventDefault(),t.stopPropagation(),!1},Inspector:{state:{},transition:"all, defaultBezier, X",position:"fixed",hide:(t,e)=>!(e.area&&e.parent.debugging),style:{boxShadow:"0 0 10px #3686F733, 0 0 0 3px #3686F766, 0 0 100vmax 100vmax #000A",zIndex:"9999999",borderRadius:"10px",pointerEvents:"none"},Span:{position:"absolute",margin:"A2 0",fontSize:"Z",color:"text",zIndex:"99999999",transition:"all, defaultBezier, X",textDecoration:"underline",fontWeight:"500",top:"100%",style:{boxShadow:"0 25px 10px 35px black",textShadow:"0 0 10px black"},text:"{{ focusKey }}"},onInit:({context:t})=>{let{components:e}=t;if(S(e)){let{Content:r,...o}=e;for(let n in o)Kn[n]||(o[n].__ref||(o[n].__ref={}),o[n].__ref.__componentKey||(o[n].__ref.__componentKey=n))}},onBeforeUpdate:(t,e,r)=>{let{area:o}=r,n=r.area&&r.parent.debugging,s;if(!n)s="display: none !important";else if(o){let{x:i,y:a,width:c,height:l}=o;s=`
|
|
89
|
+
`)},nk={define:{metadata:(t,e,r)=>{let o=e.context?.document||typeof document<"u"&&document;if(!o)return;let n=Z(()=>{let s=Vr(t,e,e.state);Xn(s,o);let i=e.state?.root;S(i)&&(i.$helmet=s)});e.__ref?.__effects&&e.__ref.__effects.push(n)}}},Ty={name:"helmet",create(t){if(!t.metadata)return;let e=t.context?.document||typeof document<"u"&&document;if(!e)return;let r=Z(()=>{let o=t.metadata;if(!o)return;let n=Vr(o,t,t.state);Xn(n,e)});t.__ref?.__effects&&t.__ref.__effects.push(r)},update(t){let e=t.metadata;if(!e)return;let r=t.context?.document||typeof document<"u"&&document;if(!r)return;let o=Vr(e,t,t.state);Xn(o,r)}},gO=nk;vr();var sk=(t,e,r,o)=>{t&&di(t,e,r,o)},ik=(t,e,r)=>{if(!t)return;let o=e.context?.document||typeof document<"u"&&document;if(!o)return;let n=Vr(t,e,r);Xn(n,o)},ak=async(t,e)=>{if(!t)return;let r={tag:"fragment",...t},o=async()=>{await e.set(r,{preventDefineUpdate:"$router"})};return e.lazyLoad?window.requestAnimationFrame(o):await o(),r},Jn={routes:t=>t,metadata:ik,fetch:sk,$router:ak},ck=(t={})=>{let e={routes:r=>r};return t.metadata!==!1&&(e.metadata=ik),t.fetch!==!1&&(e.fetch=sk),t.router!==!1&&(e.$router=ak),e};var Ry={useReset:!0,useVariable:!0,useIconSprite:!0,useSvgSprite:!0,useDocumentTheme:!0,useDefaultIcons:!0,useFontImport:!0,useDefaultConfig:!0},Hf={initRouter:!0,popState:!0,injectRouterInLinkComponent:!0},Wf={...Ry,router:Hf},mO={state:{},pages:{},components:{},router:Hf,define:Jn},zr=mO;R();R();var lk=(t,e)=>z(t.extends)?t.extends:[];R();var Py={};P(Py,{default:()=>_O,getActiveLang:()=>Hr,getLanguages:()=>Va,getLocalStateLang:()=>Ka,initPolyglot:()=>Kf,loadTranslations:()=>Ha,polyglotPlugin:()=>Qn,setLang:()=>Wa,translate:()=>za,upsertTranslation:()=>qa});R();var uk="smbls_lang",yO="smbls_t_",bO="smbls_tv_",Zn={get(t){try{return window?.localStorage.getItem(t)}catch{return null}},set(t,e){try{window?.localStorage.setItem(t,e)}catch(r){console.warn("[polyglot] localStorage unavailable:",r.message)}},remove(t){try{window?.localStorage.removeItem(t)}catch(e){console.warn("[polyglot] localStorage unavailable:",e.message)}}},Ua={};function Hr(){let t=this?.context,e=t?.polyglot;return(this?.state?.root||t?.state?.root)?.lang||t?.state?.lang||e?.defaultLang||"en"}function Va(){let t=this?.context?.polyglot;return t?t.languages?t.languages:t.translations?Object.keys(t.translations):[]:[]}var qf=(t,e)=>{if(!t||!e)return;if(t[e]!==void 0)return t[e];if(e.indexOf(".")===-1)return;let r=e.split("."),o=t;for(let n=0;n<r.length;n++){if(o==null)return;o=o[r[n]]}return o},fk=(t,e,r)=>{let o=e.lastIndexOf(".");if(o===-1)return t[e+"_"+r];let n=qf(t,e.substring(0,o));if(n!=null)return n[e.substring(o+1)+"_"+r]};function za(t,e){if(!t)return"";let r=this?.context,o=r?.polyglot,n=e||this.call("getActiveLang"),s=this?.state;if(s){let l=fk(s,t,n);if(l!==void 0)return l}if(o?.translations){let l=o.translations[n];if(l){let f=qf(l,t);if(f!==void 0)return f}}let a=(s?.root||r?.state?.root)?.translations;if(a){let l=a[n];if(l){let f=qf(l,t);if(f!==void 0)return f}}let c=o?.defaultLang||"en";if(s){let l=fk(s,t,c);if(l!==void 0)return l}if(o?.translations){let l=o.translations[c];if(l){let f=qf(l,t);if(f!==void 0)return f}}return t}async function Ha(t){let e=this?.context,r=e?.polyglot,o=this?.state?.root||e?.state?.root;if(!r||!o)return;let n=r.storagePrefix||yO,s=r.storageVersionPrefix||(r.storagePrefix?r.storagePrefix.replace(/_$/,"v_"):bO);if(r.translations&&r.translations[t]&&!r.fetch||!r.fetch||r._fetchFailed?.[t])return;if(!o.translations?.[t]){let c=Zn.get(n+t);if(c)try{let l=JSON.parse(c),f={translations:{...o.translations||{}}};f.translations[t]=l,o.update&&o.update(f)}catch(l){console.warn("[polyglot] Failed to apply language update:",l.message)}}let i=(r.storagePrefix||"smbls")+":"+t;if(Ua[i])return Ua[i];let a=this;return Ua[i]=(async()=>{try{let c=r.fetch,l=parseInt(Zn.get(s+t),10)||0,f,u,d;if(A(c)){let g=await c(t,l,a);if(!g||g.changed===!1)return;f=g.translations||g.data||g,u=g.version||0,d=!0}else if(S(c)){let g=a.getDB||(()=>e.fetch),p=A(g)?await g.call(a):e.fetch;if(!p)return;let m=c.rpc||c.from||"get_translations_if_changed",b={p_lang:t,p_cached_version:l,...c.params||{}},_=await p.rpc({from:m,params:b});if(_.error)throw r._fetchFailed||(r._fetchFailed={}),r._fetchFailed[t]=!0,_.error;let y=_.data;if(!y||!y.changed)return;f=y.translations||{},u=y.version||0,d=!0}else return;if(!d||!f)return;Zn.set(n+t,JSON.stringify(f)),u&&Zn.set(s+t,String(u));let h={translations:{...o.translations||{}}};h.translations[t]=f,o.update&&o.update(h)}catch(c){if(r.verbose!==!1){let l=c?.message||c?.details||(typeof c=="object"?JSON.stringify(c):String(c));console.warn("[polyglot] Failed to load translations for",t,"-",l)}}finally{delete Ua[i]}})(),Ua[i]}async function Wa(t){let e=this?.context,r=e?.polyglot,o=this?.state?.root||e?.state?.root;if(!o||this.call("getActiveLang")===t)return;let n=r?.storageLangKey||uk;Zn.set(n,t),r?.fetch&&await this.call("loadTranslations",t),e?.state&&(e.state.lang=t);let s=r?.translations?.[t],i={lang:t},a=l=>er(e,l,o);if(s&&typeof s=="object")for(let l in s){if(!a(l))continue;let f=s[l];(Array.isArray(f)||typeof f=="string"||typeof f=="number")&&(i[l]=f)}o.update&&o.update(i);for(let l in i)l!=="lang"&&Ue(e,l);if(s&&typeof s=="object")for(let l in s){if(!a(l))continue;let f=s[l];if(f&&typeof f=="object"&&!Array.isArray(f)&&o[l]&&typeof o[l]=="object"&&!Array.isArray(o[l])){for(let u in f)o[l][u]=f[u];Ue(e,l)}}let c=this?.context?.document||globalThis.document;if(c&&s){let l=c.querySelectorAll("[data-key]");for(let f of l){let u=f.ref;if(!u)continue;let d=u.__ref?.__exec?.text;if(typeof d=="string"&&d.includes("{{"))try{let h=u.call("replaceLiteralsWithObjectFields",d,u.state);h!=null&&f.textContent!==h&&(f.textContent=h)}catch{}}}}async function qa(t,e,r){let o=this?.context,n=o?.polyglot,s=this?.state?.root||o?.state?.root;if(s?.translations?.[e]&&(s.translations[e][t]=r),n?.translations?.[e]&&(n.translations[e][t]=r),n?.fetch&&S(n.fetch)){let i=this.getDB||(()=>o.fetch),a=A(i)?await i.call(this):o.fetch;if(!a)return;let c=n.fetch.table||"translations",l=await a.upsert({from:c,data:{key:t,lang:e,text:r}});if(l?.error)throw l.error;return l.data}}async function Kf(){let t=this?.context,e=t?.polyglot;if(!e)return;let r=this?.state?.root||t?.state?.root;if(!r)return;let o=e.storageLangKey||uk,s=Zn.get(o)||Hr.call(this);r.update&&r.lang!==s&&r.update({lang:s}),e.fetch&&!(e.translations&&e.translations[s])&&await this.call("loadTranslations",s)}function Ka(t){try{let e=Hr.call(this),r=this?.state;if(!r)return"";let o=t.lastIndexOf(".");if(o===-1)return r[t+e]??"";let n=t.substring(0,o).split("."),s=r;for(let i=0;i<n.length;i++){if(s==null)return"";s=s[n[i]]}return s==null?"":s[t.substring(o+1)+e]??""}catch{return""}}var Qn={name:"polyglot",render(t){t.parent&&t.parent.parent||t.__polyglotInitialized||(t.__polyglotInitialized=!0,Kf.call(t))}},_O=Qn;vr();var Dy={};P(Dy,{SYSTEM_METRICS:()=>Ga,capsizeHandler:()=>Iy,capsizePlugin:()=>Yf,computeCapsize:()=>dk,default:()=>xO,resolveFontSizePx:()=>pk,resolveMetrics:()=>hk});var Ga={arial:{capHeight:716,ascent:1854,descent:-434,lineGap:67,unitsPerEm:2048},helvetica:{capHeight:714,ascent:770,descent:-230,lineGap:0,unitsPerEm:1e3},"helvetica neue":{capHeight:714,ascent:952,descent:-213,lineGap:28,unitsPerEm:1e3},georgia:{capHeight:1419,ascent:1878,descent:-449,lineGap:0,unitsPerEm:2048},"times new roman":{capHeight:1356,ascent:1825,descent:-443,lineGap:87,unitsPerEm:2048},"courier new":{capHeight:1170,ascent:1705,descent:-615,lineGap:0,unitsPerEm:2048},verdana:{capHeight:1489,ascent:2059,descent:-430,lineGap:0,unitsPerEm:2048},roboto:{capHeight:1456,ascent:1900,descent:-500,lineGap:0,unitsPerEm:2048},"open sans":{capHeight:1462,ascent:2189,descent:-600,lineGap:0,unitsPerEm:2048},inter:{capHeight:1490,ascent:2048,descent:-512,lineGap:0,unitsPerEm:2048},lato:{capHeight:1434,ascent:1974,descent:-426,lineGap:0,unitsPerEm:2e3},"source sans":{capHeight:660,ascent:984,descent:-273,lineGap:0,unitsPerEm:1e3},"source sans pro":{capHeight:660,ascent:984,descent:-273,lineGap:0,unitsPerEm:1e3},"source sans 3":{capHeight:660,ascent:984,descent:-273,lineGap:0,unitsPerEm:1e3},montserrat:{capHeight:700,ascent:968,descent:-251,lineGap:0,unitsPerEm:1e3},poppins:{capHeight:700,ascent:1050,descent:-350,lineGap:100,unitsPerEm:1e3},raleway:{capHeight:710,ascent:1e3,descent:-250,lineGap:0,unitsPerEm:1e3},"dm sans":{capHeight:700,ascent:992,descent:-312,lineGap:0,unitsPerEm:1e3},nunito:{capHeight:705,ascent:1011,descent:-353,lineGap:0,unitsPerEm:1e3},"work sans":{capHeight:684,ascent:930,descent:-243,lineGap:0,unitsPerEm:1e3},manrope:{capHeight:708,ascent:980,descent:-300,lineGap:0,unitsPerEm:1e3},"ibm plex sans":{capHeight:698,ascent:1025,descent:-275,lineGap:0,unitsPerEm:1e3},"plus jakarta sans":{capHeight:720,ascent:1060,descent:-300,lineGap:0,unitsPerEm:1e3}},Gf=t=>parseFloat(t.toFixed(4)),dk=(t,e,r)=>{let{ascent:o,descent:n,lineGap:s,unitsPerEm:i,capHeight:a}=e,c=Math.abs(n),l=o+c+s,f=r!==void 0?r:l/i*t,u=f/t,d=l/i,h=(o-a+s/2)/i-(u-d)/2,g=(c+s/2)/i-(u-d)/2;return{fontSize:`${Gf(t/16)}rem`,lineHeight:`${Gf(f)}px`,capHeightTrim:`${Gf(-h)}em`,baselineTrim:`${Gf(-g)}em`}},pk=(t,e)=>{if(typeof t=="number")return t;let r=e?.designSystem;if(!r)return null;let{typography:o}=r;if(o?.sequence){let s=String(t).toUpperCase(),i=o.sequence[s];if(i)return i.decimal||i.val}let n=parseFloat(t);return isNaN(n)?null:typeof t=="string"&&t.endsWith("rem")?n*(r.typography?.browserDefault||16):n},hk=(t,e)=>{let o=e?.designSystem?.font_family||{};if(t){let s=o[t];if(s?.metrics)return s.metrics;let i=String(t).toLowerCase().replace(/['"]/g,"").trim();if(Ga[i])return Ga[i]}let n=o.default||Object.keys(o)[0];if(n){let s=o[n];if(s?.metrics)return s.metrics;if(s?.value&&Array.isArray(s.value))for(let i of s.value){let a=i.toLowerCase().replace(/['"]/g,"").trim();if(Ga[a])return Ga[a]}}return null},Iy=(t,e,r,o)=>{if(!t)return;let n=pk(e.fontSize,o);if(!n)return;let s=hk(e.fontFamily,o);if(!s)return;let i=e.lineHeight?parseFloat(e.lineHeight):void 0,{lineHeight:a,capHeightTrim:c,baselineTrim:l}=dk(n,s,i),f={};return e.lineHeight||(f.lineHeight=a),f["::before"]={content:'""',marginBottom:c,display:"table"},f["::after"]={content:'""',marginTop:l,display:"table"},f},Yf={name:"capsize",init(t){t.useCapsize===void 0&&t.fontSize&&(t.useCapsize=!0)}},xO=Yf;var By={};P(By,{PRESERVE_VALUE_KEYS:()=>$t,SKIP_INLINE_KEYS:()=>Wr,abbrToProp:()=>Dt,decode:()=>_k,encode:()=>mk,expand:()=>To,isComponentKey:()=>Ie,isSelectorKey:()=>De,parse:()=>Oo,parseFurther:()=>Po,propToAbbr:()=>Se,shorten:()=>Ya,shorthandPlugin:()=>Xa,stringify:()=>Ao,stringifyFurther:()=>Ro});var Se={attr:"at",childExtends:"cex",childExtendsRecursive:"cexr",childProps:"cp",children:"ch",childrenAs:"cha",class:"cl",content:"cnt",context:"ctx",data:"dt",extends:"ext",hide:"hd",html:"htm",if:"if",ignoreChildExtends:"icex",key:"ky",query:"qy",routes:"rt",scope:"scp",show:"shw",state:"st",style:"sy",tag:"tg",text:"tx",align:"aln",boxSize:"bsz",flow:"fl",heightRange:"hr",horizontalInset:"hi",round:"rnd",shadow:"shd",size:"sz",templateColumns:"tcol",verticalInset:"vi",widthRange:"wr",wrap:"wrp",aspectRatio:"ar",blockSize:"bks",boxSizing:"bxs",height:"h",inlineSize:"ins",margin:"m",marginBottom:"mb",marginLeft:"ml",marginRight:"mr",marginTop:"mt",maxBlockSize:"mxbs",maxHeight:"mxh",maxInlineSize:"mxis",maxWidth:"mxw",minBlockSize:"mnbs",minHeight:"mnh",minInlineSize:"mnis",minWidth:"mnw",padding:"p",paddingBottom:"pb",paddingInline:"pil",paddingLeft:"pl",paddingRight:"pr",paddingTop:"pt",width:"w",alignContent:"ac",alignItems:"ai",alignSelf:"as",flex:"fx",flexBasis:"fxb",flexDirection:"fxd",flexFlow:"fxf",flexGrow:"fxg",flexShrink:"fxs",flexWrap:"fxw",gap:"g",justifyContent:"jc",justifyItems:"ji",justifySelf:"js",order:"od",placeContent:"pcn",placeItems:"pit",placeSelf:"psl",rowGap:"rg",columnGap:"cg",gridArea:"ga",gridAutoColumns:"gac",gridAutoFlow:"gaf",gridAutoRows:"gar",gridColumn:"gc",gridColumnEnd:"gce",gridColumnStart:"gcs",gridRow:"gr",gridRowEnd:"gre",gridRowStart:"grs",gridTemplateAreas:"gta",gridTemplateColumns:"gtc",gridTemplateRows:"gtr",bottom:"bot",float:"flt",inset:"ist",left:"lft",position:"pos",right:"rgt",top:"tp",zIndex:"zi",clear:"clr",contain:"ctn",cursor:"cur",display:"d",opacity:"op",overflow:"ov",overflowX:"ovx",overflowY:"ovy",pointerEvents:"pe",resize:"rsz",userSelect:"us",visibility:"vis",background:"bg",backgroundAttachment:"bga",backgroundBlendMode:"bgbm",backgroundClip:"bgcl",backgroundColor:"bgc",backgroundImage:"bgi",backgroundOrigin:"bgo",backgroundPosition:"bgp",backgroundPositionX:"bgpx",backgroundPositionY:"bgpy",backgroundRepeat:"bgr",backgroundRepeatX:"bgrx",backgroundRepeatY:"bgry",backgroundSize:"bgs",color:"c",theme:"thm",themeModifier:"thmm",border:"bd",borderBottom:"bdb",borderBottomLeftRadius:"bdblr",borderBottomRightRadius:"bdbrr",borderCollapse:"bdcl",borderColor:"bdc",borderImage:"bdi",borderImageOutset:"bdio",borderImageRepeat:"bdir",borderImageSlice:"bdis",borderImageSource:"bdisrc",borderImageWidth:"bdiw",borderLeft:"bdl",borderRadius:"bdr",borderRight:"bdrg",borderSpacing:"bdsp",borderStyle:"bdst",borderTop:"bdt",borderTopLeftRadius:"bdtlr",borderTopRightRadius:"bdtrr",borderWidth:"bdw",outline:"ol",outlineColor:"olc",outlineOffset:"olo",outlineStyle:"ols",outlineWidth:"olw",boxShadow:"bxsh",textShadow:"txsh",direction:"dir",fontDisplay:"fdi",fontFamily:"ff",fontFeatureSettings:"ffs",fontKerning:"fk",fontOpticalSizing:"fos",fontPalette:"fpl",fontSize:"fs",fontSizeAdjust:"fsa",fontSmooth:"fsm",fontStretch:"fsr",fontStyle:"fsy",fontSynthesis:"fsyn",fontVariant:"fv",fontVariationSettings:"fvs",fontWeight:"fw",hyphens:"hyp",letterSpacing:"ls",lineHeight:"lh",tabSize:"tsz",textAlign:"ta",textDecoration:"td",textDecorationColor:"tdc",textDecorationLine:"tdl",textDecorationStyle:"tds",textIndent:"ti",textOverflow:"tov",textStroke:"tsk",textTransform:"tt",unicodeBidi:"ub",verticalAlign:"va",whiteSpace:"ws",wordBreak:"wbr",wordSpacing:"wsp",wordWrap:"wwr",writingMode:"wm",captionSide:"cps",counterIncrement:"ci",counterReset:"cr",emptyCells:"ec",listStyle:"lst",listStyleImage:"lsi",listStylePosition:"lsp",listStyleType:"lsty",quotes:"qt",tableLayout:"tl",columnCount:"cc",columnFill:"cf",columnRule:"crl",columnRuleColor:"crlc",columnRuleStyle:"crls",columnRuleWidth:"crlw",columnSpan:"cspn",columnWidth:"cwi",columns:"col",backdropFilter:"bdf",boxDecorationBreak:"bxdb",clipPath:"cpth",filter:"fil",isolation:"iso",mixBlendMode:"mbm",objectFit:"obf",objectPosition:"obp",perspective:"prs",perspectiveOrigin:"prso",willChange:"wc",transform:"tf",transformOrigin:"tfo",transformStyle:"tfs",transition:"trn",transitionDelay:"trnd",transitionDuration:"trndr",transitionProperty:"trnp",transitionTimingFunction:"trntf",animation:"an",animationDelay:"and",animationDirection:"andr",animationDuration:"andur",animationFillMode:"anfm",animationIterationCount:"anic",animationName:"ann",animationPlayState:"anps",animationTimingFunction:"antf",scrollBehavior:"sb",scrollMargin:"smr",scrollMarginBottom:"smrb",scrollMarginLeft:"smrl",scrollMarginRight:"smrr",scrollMarginTop:"smrt",scrollPadding:"spd",scrollPaddingBottom:"spdb",scrollPaddingLeft:"spdl",scrollPaddingRight:"spdr",scrollPaddingTop:"spdt",scrollSnapAlign:"ssa",scrollSnapStop:"sss",scrollSnapType:"sst",breakAfter:"bka",breakBefore:"bkb",breakInside:"bki",pageBreakAfter:"pbka",pageBreakBefore:"pbkb",pageBreakInside:"pbki",accessKey:"ack",className:"cn",contentEditable:"ced",contextMenu:"cmu",draggable:"drg",hidden:"hid",id:"id",is:"is",lang:"lng",nonce:"nnc",spellCheck:"spc",tabIndex:"tbi",title:"ttl",translate:"trl",accept:"acp",acceptCharset:"accs",action:"act",autoComplete:"atc",autoFocus:"atf",capture:"cap",challenge:"chg",checked:"chk",cols:"cls",colSpan:"csn",controls:"ctl",default:"def",defer:"dfr",disabled:"dis",encType:"ect",form:"frm",formAction:"fac",formEncType:"fect",formMethod:"fme",formNoValidate:"fnv",formTarget:"ftg",high:"hgh",inputMode:"imd",kind:"knd",label:"lbl",list:"lis",loop:"lp",low:"lw",max:"mx",maxLength:"mxl",method:"mtd",min:"mn",minLength:"mnl",multiple:"mul",muted:"mut",name:"nm",open:"opn",optimum:"opt",pattern:"ptn",placeholder:"phd",readOnly:"ro",required:"req",reversed:"rev",rows:"rws",rowSpan:"rsn",selected:"sel",span:"spn",start:"srt",step:"stp",type:"typ",value:"val",download:"dl",href:"hrf",hrefLang:"hrl",ping:"png",referrerPolicy:"rfp",rel:"rl",target:"tgt",allow:"alw",allowFullScreen:"afs",allowPaymentRequest:"apr",alt:"alt",cellPadding:"cpg",cellSpacing:"csg",cite:"cit",coords:"crd",crossOrigin:"cor",dateTime:"dtm",fetchPriority:"fpr",headers:"hds",httpEquiv:"hte",integrity:"itg",isMap:"ism",keyType:"kty",loading:"ldg",manifest:"mft",media:"mda",poster:"pst",preload:"prl",radioGroup:"rdg",sandbox:"sbx",scoped:"scod",seamless:"sml",shape:"shp",sizes:"szs",src:"src",srcDoc:"srd",srcLang:"srl",srcSet:"srs",useMap:"ump",ariaActiveDescendant:"aad",ariaAtomic:"aat",ariaBusy:"abu",ariaChecked:"achk",ariaControls:"acl",ariaCurrent:"acr",ariaDescribedBy:"adb",ariaDetails:"adt",ariaDisabled:"adis",ariaDropEffect:"ade",ariaErrorMessage:"aem",ariaExpanded:"aexp",ariaGrabbed:"agr",ariaHasPopup:"ahp",ariaHidden:"ahid",ariaInvalid:"ainv",ariaLabel:"alb",ariaLabelledBy:"alby",ariaLive:"alv",ariaModal:"amod",ariaMultiSelectable:"ams",ariaOrientation:"aor",ariaOwns:"aow",ariaPosInSet:"apis",ariaPressed:"aprs",ariaReadOnly:"aro",ariaRelevant:"arl",ariaRequired:"areq",ariaSelected:"asel",ariaSetSize:"assz",ariaValueMax:"avmx",ariaValueMin:"avmn",ariaValueNow:"avn",role:"role",onInit:"@in",onRender:"@rn",onUpdate:"@up",onStateChange:"@sc",onStateUpdate:"@su",onClick:"@ck",onContextMenu:"@cm",onDblClick:"@dc",onMouseDown:"@md",onMouseEnter:"@me",onMouseLeave:"@ml",onMouseMove:"@mm",onMouseOut:"@mo",onMouseOver:"@mv",onMouseUp:"@mu",onKeyDown:"@kd",onKeyPress:"@kp",onKeyUp:"@ku",onBlur:"@bl",onFocus:"@fc",onFocusIn:"@fi",onFocusOut:"@fo",onBeforeInput:"@bi",onChange:"@cg",onFormData:"@fd",onInput:"@ip",onInvalid:"@iv",onReset:"@rs",onSearch:"@sr",onSelect:"@sl",onSubmit:"@sm",onTouchCancel:"@tc",onTouchEnd:"@te",onTouchMove:"@tm",onTouchStart:"@ts",onPointerCancel:"@pc",onPointerDown:"@pd",onPointerEnter:"@pe",onPointerLeave:"@ple",onPointerMove:"@pm",onPointerOut:"@po",onPointerOver:"@pov",onPointerUp:"@pu",onDrag:"@dg",onDragEnd:"@dge",onDragEnter:"@dgn",onDragLeave:"@dgl",onDragOver:"@dgo",onDragStart:"@dgs",onDrop:"@dp",onResize:"@rz",onScroll:"@scl",onWheel:"@wh",onCopy:"@cy",onCut:"@ct",onPaste:"@pt",onCompositionEnd:"@cpe",onCompositionStart:"@cps",onCompositionUpdate:"@cpu",onAnimationEnd:"@ae",onAnimationIteration:"@ai",onAnimationStart:"@as",onTransitionEnd:"@tre",onTransitionStart:"@trs",onAbort:"@ab",onCanPlay:"@cap",onCanPlayThrough:"@cpt",onDurationChange:"@duc",onEmptied:"@em",onEncrypted:"@enc",onEnded:"@end",onError:"@er",onLoad:"@ld",onLoadedData:"@ldd",onLoadedMetadata:"@ldm",onPause:"@pa",onPlay:"@pl",onPlaying:"@plg",onProgress:"@prg",onRateChange:"@rc",onSeeked:"@sk",onSeeking:"@skg",onStalled:"@stl",onSuspend:"@ssp",onTimeUpdate:"@tu",onVolumeChange:"@vc",onWaiting:"@wt",icon:"ico",iconText:"ict",lookup:"lkp",router:"rtr",shapeModifier:"shpm"},Dt=Object.create(null);for(let t in Se)Dt[Se[t]]=t;var $y=Object.create(null);for(let t in Se){let e=Se[t];if($y[e])throw new Error(`Duplicate abbreviation "${e}" for "${t}" \u2014 already used by "${$y[e]}"`);$y[e]=t}var $t=new Set(["state","st","scope","scp","attr","at","style","sy","data","dt","context","ctx","query","qy","class","cl"]),Wr=new Set(["text","tx","html","htm","content","cnt","placeholder","phd","src","href","hrf"]);function Ie(t){return/^[A-Z]/.test(t)}function De(t){return/^[:@.!$>&]/.test(t)||t.startsWith("> ")}function mk(t){if(!t||typeof t!="object")return"";let e=[];for(let r in t){let o=t[r];if(typeof o=="function"||o!==null&&typeof o=="object"&&!Array.isArray(o)||o===void 0)continue;let n=Se[r]||r;if(o===!0)e.push(n);else if(o===!1)e.push("!"+n);else if(Array.isArray(o)){let s=o.map(i=>Xf(i));e.push(n+":"+s.join(","))}else e.push(n+":"+Xf(o))}return e.join(" ")}function Xf(t){return String(t).replace(/ /g,"_")}function Ya(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(r){return r!==null&&typeof r=="object"?Ya(r):r});let e={};for(let r in t){let o=t[r];if(Ie(r)){e[r]=Ly(o);continue}if(De(r)){e[r]=Ly(o);continue}let n=Se[r]||r;if($t.has(r)||$t.has(n)){e[n]=o;continue}e[n]=Ly(o)}return e}function Ly(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?Ya(e):e}):typeof t=="object"?Ya(t):t}function Ao(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(o){return o!==null&&typeof o=="object"?Ao(o):o});let e={},r=[];for(let o in t){let n=t[o];if(Ie(o)){e[o]=gk(n);continue}if(De(o)){e[o]=gk(n);continue}let s=Se[o]||o;if($t.has(o)||$t.has(s)){e[s]=n;continue}if(typeof n=="function"){e[s]=n;continue}if(n==null){e[s]=n;continue}if(Wr.has(o)||Wr.has(s)){e[s]=n;continue}if(Array.isArray(n)){if(n.some(function(a){return a!==null&&typeof a=="object"})){e[s]=n.map(function(a){return a!==null&&typeof a=="object"?Ao(a):a});continue}if(n.length<=1){e[s]=n;continue}r.push(s+":"+n.map(Xf).join(","));continue}if(typeof n=="object"){e[s]=Ao(n);continue}n===!0?r.push(s):n===!1?r.push("!"+s):typeof n=="number"||typeof n=="string"&&(n.includes(",")||n.includes("_"))?e[s]=n:r.push(s+":"+Xf(n))}return r.length&&(e.in=r.join(" ")),e}function gk(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?Ao(e):e}):typeof t=="object"?Ao(t):t}function _k(t){if(!t||typeof t!="string")return{};let e={},r=xk(t);for(let o of r){if(o.startsWith("!")){let c=o.slice(1),l=Dt[c]||c;e[l]=!1;continue}let n=o.indexOf(":");if(n===-1){let c=Dt[o]||o;e[c]=!0;continue}let s=o.slice(0,n),i=o.slice(n+1),a=Dt[s]||s;if(i.includes(",")){e[a]=i.split(",").map(yk);continue}e[a]=yk(i)}return e}function xk(t){return t.trim().split(/\s+/).filter(Boolean)}function yk(t){let e=t.replace(/_/g," ");return/^-?\d+(\.\d+)?$/.test(e)?Number(e):e}function bk(t){return t.replace(/_/g," ")}function wO(t){if(!t||typeof t!="string")return{};let e={},r=xk(t);for(let o of r){if(o.startsWith("!")){let c=o.slice(1),l=Dt[c]||c;e[l]=!1;continue}let n=o.indexOf(":");if(n===-1){let c=Dt[o]||o;e[c]=!0;continue}let s=o.slice(0,n),i=o.slice(n+1),a=Dt[s]||s;if(i.includes(",")){e[a]=i.split(",").map(bk);continue}e[a]=bk(i)}return e}function To(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(r){return r!==null&&typeof r=="object"?To(r):r});let e={};for(let r in t){let o=t[r];if(Ie(r)){e[r]=My(o);continue}let n=Dt[r]||r;if(De(r)&&n===r){e[r]=My(o);continue}if($t.has(n)||$t.has(r)){e[n]=o;continue}e[n]=My(o)}return e}function My(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?To(e):e}):typeof t=="object"?To(t):t}function Oo(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(r){return r!==null&&typeof r=="object"?Oo(r):r});let e={};if(typeof t.in=="string"){let r=wO(t.in);for(let o in r)e[o]=r[o]}for(let r in t){if(r==="in")continue;let o=t[r];if(Ie(r)){e[r]=Fy(o);continue}let n=Dt[r]||r;if(De(r)&&n===r){e[r]=Fy(o);continue}if($t.has(n)||$t.has(r)){e[n]=o;continue}e[n]=Fy(o)}return e}function Fy(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?Oo(e):e}):typeof t=="object"?Oo(t):t}function wk(t){return String(t).replace(/\\/g,"\\\\").replace(/_/g,"\\_").replace(/,/g,"\\,").replace(/ /g,"_")}function SO(t){let e="",r=0;for(;r<t.length;){if(t[r]==="\\"&&r+1<t.length){let o=t[r+1];if(o===","||o==="_"||o==="\\"){e+=o,r+=2;continue}}t[r]==="_"?e+=" ":e+=t[r],r++}return e}function kO(t){let e=[],r="",o=0;for(;o<t.length;){if(t[o]==="\\"&&o+1<t.length){r+=t[o]+t[o+1],o+=2;continue}if(t[o]===","){e.push(r),r="",o++;continue}r+=t[o],o++}return e.push(r),e}function Sk(t){if(t==null||typeof t!="object"||Array.isArray(t))return!1;let e=Object.keys(t);return e.length===1&&e[0]==="in"&&typeof t.in=="string"}function Ro(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(o){return o!==null&&typeof o=="object"?Ro(o):o});let e={},r=[];for(let o in t){let n=t[o];if(Ie(o)){let i=kk(n);e[o]=Sk(i)?i.in:i;continue}if(De(o)){let i=kk(n);e[o]=Sk(i)?i.in:i;continue}let s=Se[o]||o;if($t.has(o)||$t.has(s)){e[s]=n;continue}if(typeof n=="function"){e[s]=n;continue}if(n==null){e[s]=n;continue}if(Wr.has(o)||Wr.has(s)){e[s]=n;continue}if(Array.isArray(n)){if(n.some(function(a){return a!==null&&typeof a=="object"})){e[s]=n.map(function(a){return a!==null&&typeof a=="object"?Ro(a):a});continue}if(n.length<=1){e[s]=n;continue}r.push(s+":"+n.map(wk).join(","));continue}if(typeof n=="object"){e[s]=Ro(n);continue}if(n===!0){r.push(s);continue}if(n===!1){r.push("!"+s);continue}if(typeof n=="number"){r.push(s+":#"+n);continue}r.push(s+":"+wk(n))}return r.length&&(e.in=r.join(" ")),e}function kk(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?Ro(e):e}):typeof t=="object"?Ro(t):t}function vk(t){return t.startsWith("#")&&/^#-?\d+(\.\d+)?$/.test(t)?Number(t.slice(1)):SO(t)}function Ny(t){if(!t||typeof t!="string")return{};let e={},r=t.trim().split(/\s+/).filter(Boolean);for(let o of r){if(o.startsWith("!")){let l=o.slice(1),f=Dt[l]||l;e[f]=!1;continue}let n=o.indexOf(":");if(n===-1){let l=Dt[o]||o;e[l]=!0;continue}let s=o.slice(0,n),i=o.slice(n+1),a=Dt[s]||s,c=kO(i);if(c.length>1){e[a]=c.map(vk);continue}e[a]=vk(i)}return e}function Po(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(r){return r!==null&&typeof r=="object"?Po(r):r});let e={};if(typeof t.in=="string"){let r=Ny(t.in);for(let o in r)e[o]=r[o]}for(let r in t){if(r==="in")continue;let o=t[r];if(Ie(r)){typeof o=="string"?e[r]=Ny(o):e[r]=jy(o);continue}let n=Dt[r]||r;if(De(r)&&n===r){typeof o=="string"?e[r]=Ny(o):e[r]=jy(o);continue}if($t.has(n)||$t.has(r)){e[n]=o;continue}e[n]=jy(o)}return e}function jy(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?Po(e):e}):typeof t=="object"?Po(t):t}var vO={shorten:To,stringify:Oo,stringifyFurther:Po};function CO(t,e){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(o=>e(o));let r={};for(let o in t){let n=t[o];r[o]=n&&typeof n=="object"?e(n):n}return r}var EO=["components","pages","snippets"],Xa={name:"shorthand",prepareContext(t){let e=t.shorthand;if(!e)return;let o=vO[e===!0?"shorten":e];if(o){for(let n of EO)t[n]&&(t[n]=CO(t[n],o));t.app&&typeof t.app=="object"&&(t.app=o(t.app))}}};var Zy={};P(Zy,{LEVELS:()=>Ja,analyzePlugin:()=>es,attachBrowserListeners:()=>su,attachNetworkListeners:()=>Qa,classifyEvent:()=>Ky,createAnalyzeState:()=>iu,createBeaconSink:()=>Xy,createConsoleSink:()=>Gy,createDedupe:()=>Hy,createEnrich:()=>Vy,createMemorySink:()=>Yy,createPipeline:()=>tu,createRedact:()=>Qf,createRemoteSink:()=>ru,createSample:()=>Wy,createSummarize:()=>zy,default:()=>es,emitFetchEvent:()=>Ik,makeEvent:()=>X,meetsLevel:()=>Jf,normalizeLevel:()=>Za,resolveSinks:()=>nu,summarizeElement:()=>Io});var AO=0,TO=()=>`${Date.now().toString(36)}-${(AO++).toString(36)}`,X=(t,e,r={})=>({id:TO(),ts:Date.now(),type:t,level:e,...r}),OO=t=>{let e=[],r=t,o=0;for(;r&&o<32;)r.key!=null&&e.unshift(String(r.key)),r=r.parent,o++;return e.join(" > ")},Io=t=>t?{key:t.key!=null?String(t.key):null,name:t.__name||t.name||null,path:OO(t),tag:t.tag||null,component:t.component||null,route:t.context?.routerOptions?.currentRoute||null}:null;var ts=t=>t?.context?.analyze,RO={init:{category:"lifecycle",type:"lifecycle",level:"debug"},create:{category:"lifecycle",type:"lifecycle",level:"debug"},render:{category:"lifecycle",type:"lifecycle",level:"debug"},beforeRemove:{category:"lifecycle",type:"lifecycle",level:"debug"},remove:{category:"lifecycle",type:"lifecycle",level:"debug"}},PO=(t,{category:e,type:r,level:o})=>n=>{let s=ts(n);!s||!s.shouldCapture(e)||s.emit(X(r,o,{hook:t,element:Io(n)}))},Ck=t=>(e,r)=>{let o=ts(e);!o||!o.shouldCapture("state")||o.emit(X("state","debug",{hook:t,element:Io(e),changedKeys:r?.changedKeys||null}))},es={name:"analyze",error(t,e){let r=ts(t);if(!r||r.config.enabled===!1||!r.shouldCapture("errors"))return;let o=e?.error||e?.err||(e instanceof Error?e:null);r.emit(X("error","error",{hook:e?.hook||"error",element:Io(t),error:o,message:o?.message||(typeof e?.message=="string"?e.message:null)}))},renderRouter(t){let e=ts(t);e&&(!e.shouldCapture("navigation")&&!e.shouldCapture("lifecycle")||e.emit(X("navigation","info",{hook:"renderRouter",route:t.context?.routerOptions?.currentRoute||null})))},beforeUpdate(t){let e=ts(t);!e||!e.shouldCapture("updates")||t.__ref&&(t.__ref.__analyzeUpdateStart=typeof performance<"u"?performance.now():Date.now())},update(t){let e=ts(t);if(!e||!e.shouldCapture("updates"))return;let r=null;t.__ref?.__analyzeUpdateStart!=null&&(r=(typeof performance<"u"?performance.now():Date.now())-t.__ref.__analyzeUpdateStart,t.__ref.__analyzeUpdateStart=null),e.emit(X("update","debug",{hook:"update",element:Io(t),durationMs:r}))},beforeStateUpdate:Ck("beforeStateUpdate"),stateUpdate:Ck("stateUpdate")};for(let[t,e]of Object.entries(RO))es[t]=PO(t,e);R();var Ja={error:0,warn:1,info:2,debug:3,trace:4};var Jf=(t,e)=>{let r=Ja[t],o=Ja[e];return r==null||o==null?!0:r<=o},Za=t=>Ja[t]!=null?t:"warn";R();var Zf=/password|token|secret|ssn|card|cvv|pin|apikey|api_key|auth|email|otp/i;var IO=(t,e)=>{for(let r of e)if(r instanceof RegExp){if(r.test(t))return!0}else if(typeof r=="string"&&t.toLowerCase().includes(r.toLowerCase()))return!0;return!1},DO=(t,e)=>{if(e!=="redact"){if(e==="hash"){let r=0,o=String(t);for(let n=0;n<o.length;n++)r=(r<<5)-r+o.charCodeAt(n)|0;return`#${(r>>>0).toString(36)}`}return"***"}},Uy=(t,e,r,o)=>{if(o>6||t==null||typeof t!="object")return t;if(Array.isArray(t))return t.map(s=>Uy(s,e,r,o+1));let n={};for(let s of Object.keys(t))if(IO(s,e)||Zf.test(s)){let a=DO(t[s],r);a!==void 0&&(n[s]=a)}else n[s]=Uy(t[s],e,r,o+1);return n},Qf=(t=[],e="mask")=>{let r=Array.isArray(t)?t:[t];return o=>{if(!o)return o;let{id:n,ts:s,type:i,level:a,hook:c,error:l,message:f,durationMs:u,element:d,target:h,...g}=o,p=Uy(g,r,e,0);return{id:n,ts:s,type:i,level:a,hook:c,error:l,message:f,durationMs:u,element:d,target:h,...p}}};var Vy=t=>{let e=`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,8)}`,r=typeof navigator<"u"?navigator.userAgent:null,o=t.config.buildHash||null,n=t.config.appId||null;return s=>{if(!s)return s;let i=t.context?.routerOptions?.currentRoute||null,a=v,c=a&&a.innerWidth?{w:a.innerWidth,h:a.innerHeight}:null;return{...s,session:e,app:{id:n,build:o,route:i},meta:{ua:r,viewport:c}}}},zy=()=>t=>{if(!t)return t;if(t.element&&typeof t.element=="object"){let e=t.element;(e.node||e.parent||e.__ref)&&(t={...t,element:{key:e.key!=null?String(e.key):null,name:e.__name||e.name||null,tag:e.tag||null,component:e.component||null}})}return t.error instanceof Error&&(t={...t,error:{name:t.error.name,message:t.error.message,stack:t.error.stack}}),t},Hy=(t=1e3,e=500)=>{let r=new Map;return o=>{if(!o)return o;let n=`${o.type}:${o.level}:${o.message||""}:${o.error?.message||""}`,s=r.get(n),i=o.ts||Date.now();if(s&&i-s<t)return null;if(r.set(n,i),r.size>e){let a=Math.ceil(e/10),c=0;for(let l of r.keys()){if(c++>=a)break;r.delete(l)}}return o}},Wy=t=>e=>{if(!e)return e;let r=t[e.type];return r==null||r>=1?e:Math.random()>r?null:e},Ek={redact:t=>Qf(t.config.redact||[],t.config.maskStrategy),enrich:t=>Vy(t),summarize:()=>zy(),dedupe:t=>Hy(t.config.cache?.dedupeWindowMs||1e3),sample:t=>Wy(t.config.sample||{})},$O=(t,e)=>{if(typeof t=="function")return t;if(typeof t=="string"){let r=Ek[t];return r?r(e):null}return null},tu=t=>{let e=t.config,r=Array.isArray(e.transformers)?e.transformers.slice():[],o=r.findIndex(s=>s==="redact");o>=0&&r.splice(o,1);let n=[];e.redact!==!1&&n.push(Ek.redact(t));for(let s of r){let i=$O(s,t);i&&n.push(i)}return s=>{let i=s;for(let a of n){if(i==null)return null;let c=a(i);if(c==null)return null;if(Array.isArray(c)){let l=n.slice(n.indexOf(a)+1),f=[];for(let u of c){let d=u,h=!1;for(let g of l)if(d=g(d),d==null){h=!0;break}!h&&d!=null&&f.push(d)}return f}i=c}return i}};R();R();var eu=typeof v<"u"&&typeof v.document<"u",LO=5e3,MO=50,FO=3,NO=1500,jO=1e3,Ky=t=>t?t.level==="error"||t.type==="error"?"bug":t.type==="network"?"network":t.type==="console"?t.level==="error"||t.level==="warn"?"bug":"log":t.level==="warn"?"bug":t.level==="info"?"log":"verbose":"verbose",BO=t=>{try{return JSON.stringify(t)}catch{return null}},UO=()=>{try{return Intl.DateTimeFormat().resolvedOptions().timeZone||null}catch{return null}},VO=t=>{if(!t)return null;let e=String(t),r;return(r=e.match(/Edg\/([\d.]+)/))?{name:"Edge",version:r[1]}:(r=e.match(/OPR\/([\d.]+)/))?{name:"Opera",version:r[1]}:(r=e.match(/Firefox\/([\d.]+)/))?{name:"Firefox",version:r[1]}:/Chrome\/([\d.]+)/.test(e)&&/Safari\//.test(e)?(r=e.match(/Chrome\/([\d.]+)/),{name:"Chrome",version:r[1]}):(r=e.match(/Version\/([\d.]+).*Safari/))?{name:"Safari",version:r[1]}:{name:null,version:null}},zO=()=>{if(!eu)return null;try{let t=v.document?.documentElement?.getAttribute("data-theme")||null,e=typeof v.matchMedia=="function"?v.matchMedia("(prefers-color-scheme: dark)").matches:null;return{active:t||(e?"dark":e===!1?"light":null),forced:t||null,prefers:e==null?null:e?"dark":"light"}}catch{return null}},HO=()=>{if(!eu)return null;let t=v.location,e=typeof navigator<"u"?navigator:null,r=typeof screen<"u"?screen:null;return{url:t?.href||null,path:t?.pathname||null,referrer:v.document?.referrer||null,title:v.document?.title||null,ua:e?.userAgent||null,browser:VO(e?.userAgent),language:e?.language||null,languages:e?.languages||null,timezone:UO(),viewport:v.innerWidth?{w:v.innerWidth,h:v.innerHeight,dpr:v.devicePixelRatio||1}:null,screen:r?{w:r.width||null,h:r.height||null,availW:r.availWidth||null,availH:r.availHeight||null,colorDepth:r.colorDepth||null,orientation:r.orientation?.type||null}:null,theme:zO()}},ru=(t={})=>{let e=t.url,r=typeof t.transport=="function"?t.transport:null,o=typeof t.syncTransport=="function"?t.syncTransport:null;if(!e&&!r)return()=>{};let n=t.apiKey||null,s=t.appKey||t.appId||null,i=t.tenantKey||t.tenant||null,a=t.release||null,c=t.env||null,l=t.sdk||null,f=typeof t.getAuth=="function"?t.getAuth:null,u=typeof t.getContext=="function"?t.getContext:null,d=typeof t.classify=="function"?t.classify:Ky,h=typeof t.beforeSend=="function"?t.beforeSend:null,g=t.debug===!0,p=typeof t.getDebug=="function"?t.getDebug:null,m=t.batchMs!=null?t.batchMs:LO,b=t.maxBatch||MO,_=t.maxRetries!=null?t.maxRetries:FO,y=t.backoffMs||NO,x=t.queueLimit||jO,k=t.sampleRate!=null?t.sampleRate:1,E=()=>typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,10)}`,O=t.sessionId||E(),$=[],D=[],I=null,H=null,V=()=>{I||!$.length||(I=setTimeout(K,m))},rt=L=>{if(H)return;let ot=y*Math.pow(2,Math.max(0,L-1));H=setTimeout(()=>{if(H=null,!D.length)return;let U=D.shift();G(U.envelope,U.attempt)},ot)},at=(L,ot=!1)=>{let U=u?qy(u):null,Y={id:O,sentAt:Date.now()};ot&&(Y.endedAt=Date.now());let j={v:1,session:Y,app:{key:s,release:a,env:c},tenant:i,sdk:l,page:HO(),user:U?.user||null,traits:U?.traits||null,tags:U?.tags||null,events:L};if((p?qy(p)===!0:g)&&(j.app.debug=!0),h)try{return h(j)||null}catch{return j}return j},G=async(L,ot=1)=>{if(L)try{let U=!0;if(r){let Y=await r(L);U=Y!==!1&&Y?.ok!==!1}else U=await WO(e,L,{apiKey:n,getAuth:f});!U&&ot<_&&(D.push({envelope:L,attempt:ot+1}),rt(ot+1))}catch{ot<_&&(D.push({envelope:L,attempt:ot+1}),rt(ot+1))}},K=(L=!1,ot=!1)=>{if(I&&(clearTimeout(I),I=null),!$.length&&!ot)return;let U=$;$=[];let Y=at(U,ot);if(Y){if(L&&eu){if(typeof o=="function"&&qy(()=>o(Y)))return;if(navigator.sendBeacon&&e){let j=BO(Y);if(j)try{navigator.sendBeacon(e,new v.Blob([j],{type:"application/json"}));return}catch{}}}G(Y)}},lt=!1,Vt=()=>{lt||(lt=!0,K(!0,!0))};eu&&(v.addEventListener("pagehide",Vt,{passive:!0}),v.addEventListener("beforeunload",Vt,{passive:!0}),v.addEventListener("visibilitychange",()=>{v.document.visibilityState==="hidden"&&K(!0)},{passive:!0}));let W=L=>{if(!L||k<1&&Math.random()>k)return;lt&&(lt=!1);let ot={...L,log_type:d(L)};$.push(ot),$.length>x&&($=$.slice(-x)),$.length>=b?K():V()},wt=L=>(K(!1,!0),O=L||E(),lt=!1,W.sessionId=O,O);return W.flush=()=>K(!1),W.endSession=Vt,W.startNewSession=wt,W.sessionId=O,W},qy=t=>{try{return t()}catch{return null}},WO=async(t,e,{apiKey:r,getAuth:o})=>{let n={"Content-Type":"application/json","X-Analyze-Beacon":"1"};if(r&&(n["X-Analyze-Key"]=r),o)try{let s=await o();s&&(n.Authorization=`Bearer ${s}`)}catch{}try{return(await fetch(t,{method:"POST",headers:n,body:JSON.stringify(e),keepalive:!0,credentials:"omit",mode:"cors"})).ok}catch{return!1}};var qO={error:"\x1B[31m",warn:"\x1B[33m",info:"\x1B[36m",debug:"\x1B[90m",trace:"\x1B[90m"},KO="\x1B[0m",ou=typeof v<"u"&&typeof v.document<"u",Gy=(t={})=>{let e=t.minLevel||null,r=console.error.bind(console),o=console.warn.bind(console),n=console.log.bind(console);return s=>{if(!s)return;let i=s.level==="error"?r:s.level==="warn"?o:n,a=`[analyze:${s.type}]`;if(ou)i(a,s);else{let c=qO[s.level]||"";i(`${c}${a}${KO}`,s)}}},Yy=(t,e={})=>{let r=e.max||t.config.cache?.max||500,o=new Array(r),n=0,s=0,i=a=>{o[n]=a,n=(n+1)%r,s<r&&s++};return t.__memory={push:i,snapshot:()=>{let a=new Array(s),c=(n-s+r)%r;for(let l=0;l<s;l++)a[l]=o[(c+l)%r];return a},query:(a={})=>{let c=t.__memory.snapshot(),l=a.sinceMs?Date.now()-a.sinceMs:0;return c.filter(f=>!(!f||a.level&&f.level!==a.level||a.type&&f.type!==a.type||l&&f.ts<l))},clear:()=>{n=0,s=0}},i},Xy=(t={})=>{let e=t.url,r=t.batchMs!=null?t.batchMs:5e3,o=t.maxBatch||50;if(!e)return()=>{};let n=[],s=null,i=()=>{if(s&&(clearTimeout(s),s=null),!n.length)return;let c=JSON.stringify({events:n});n=[];let l=ou?new v.Blob([c],{type:"application/json"}):c;if(ou&&navigator.sendBeacon)try{navigator.sendBeacon(e,l);return}catch{}typeof fetch<"u"&&fetch(e,{method:"POST",headers:{"Content-Type":"application/json","X-Analyze-Beacon":"1"},body:c,keepalive:!0}).catch(()=>{})};ou&&(v.addEventListener("pagehide",i,{passive:!0}),v.addEventListener("beforeunload",i,{passive:!0}));let a=c=>{c&&(n.push(c),n.length>=o?i():s||(s=setTimeout(i,r)))};return a.flush=i,a},Ak={console:Gy,memory:Yy,beacon:Xy,remote:ru},Tk=(t,e)=>e.getDebug!=null||e.debug!=null?e:{...e,getDebug:()=>t.config.debug===!0},nu=t=>{let e=Array.isArray(t.config.sinks)?t.config.sinks:["console"],r=[];for(let o of e)if(typeof o=="function")r.push(o);else if(typeof o=="string"){let n=Ak[o];if(!n)continue;r.push(o==="memory"?n(t,{}):n(o==="remote"?Tk(t,{}):{}))}else if(o&&typeof o=="object"&&o.type){let n=Ak[o.type];if(!n)continue;r.push(o.type==="memory"?n(t,o):n(o.type==="remote"?Tk(t,o):o))}return r};R();var GO=typeof v<"u"&&typeof v.document<"u",YO=new Set(["password","hidden"]),Ok=(t,e)=>{let r=0,o=null,n=null;return(...s)=>{let i=Date.now();i-r>=e?(r=i,t(...s)):(n=s,o||(o=setTimeout(()=>{r=Date.now(),o=null,n&&(t(...n),n=null)},e-(i-r))))}},Jy="__analyzeKeyPath",rs=t=>{let e=t.target;if(!e)return{selector:null,key:null,path:null};if(e[Jy])return e[Jy];let r=[],o=e,n=0,s=null;for(;o&&n<64;){if(o.getAttribute){let a=o.getAttribute("data-key");a&&(s==null&&(s=a),r.unshift(a))}o=o.parentNode,n++}let i;if(r.length)i={selector:null,key:s,path:r.join(" > "),tag:e.tagName?.toLowerCase()||null};else{let a=(e.tagName||"unknown").toLowerCase(),c=e.id?`#${e.id}`:"",l=e.className&&typeof e.className=="string"?"."+e.className.trim().split(/\s+/).slice(0,2).join("."):"";i={selector:`${a}${c}${l}`,key:null,path:null}}try{e[Jy]=i}catch{}return i},XO=(t,e)=>{if(e==="mask")return"***";if(e!=="redact"){if(e==="hash"){let r=0,o=String(t||"");for(let n=0;n<o.length;n++)r=(r<<5)-r+o.charCodeAt(n)|0;return`#${(r>>>0).toString(36)}`}return"***"}},JO=t=>!!(!t||t.tagName==="INPUT"&&YO.has(t.type)||Zf.test(t.name||"")||Zf.test(t.id||"")||t.dataset?.analyze==="skip"),su=t=>{if(!GO)return;let e=t.config.capture,r=t.config.throttle,o=t.__teardown,n=(s,i,a,c)=>{s.addEventListener(i,a,c),o.push(()=>s.removeEventListener(i,a,c))};if(e.errors&&(n(v,"error",s=>{t.emit(X("error","error",{hook:"window.onerror",message:s.message||null,error:s.error||null,source:s.filename||null,line:s.lineno||null,col:s.colno||null}))}),n(v,"unhandledrejection",s=>{let i=s.reason,a=i instanceof Error?i:null;t.emit(X("error","error",{hook:"unhandledrejection",message:a?.message||(typeof i=="string"?i:"Unhandled promise rejection"),error:a}))})),e.pointer){n(v,"click",i=>{t.emit(X("pointer","info",{hook:"click",target:rs(i),button:i.button,x:i.clientX,y:i.clientY,modifiers:Rk(i)}))},{passive:!0,capture:!0}),n(v,"dblclick",i=>{t.emit(X("pointer","info",{hook:"dblclick",target:rs(i),x:i.clientX,y:i.clientY}))},{passive:!0,capture:!0}),n(v,"contextmenu",i=>{t.emit(X("pointer","info",{hook:"contextmenu",target:rs(i),x:i.clientX,y:i.clientY}))},{passive:!0,capture:!0});let s=Ok(i=>{t.emit(X("pointer","trace",{hook:"pointermove",x:i.clientX,y:i.clientY}))},r.pointermove);n(v,"pointermove",s,{passive:!0})}if(e.keyboard&&n(v,"keydown",s=>{t.emit(X("keyboard","info",{hook:"keydown",code:s.code,key:s.key&&s.key.length===1?"\xB7":s.key,modifiers:Rk(s),target:rs(s)}))},{passive:!0,capture:!0}),e.forms){let s=i=>{let a=i.target;if(!a||!a.tagName||!["INPUT","TEXTAREA","SELECT"].includes(a.tagName))return;let l=JO(a),f=a.dataset?.analyze==="track",u=null;f&&!l?u=a.value:t.config.maskFormValues!==!1&&(u=XO(a.value,t.config.maskStrategy)),t.emit(X("forms","info",{hook:i.type,target:rs(i),field:{name:a.name||null,type:a.type||a.tagName.toLowerCase()},value:u}))};n(v,"input",s,{passive:!0,capture:!0}),n(v,"change",s,{passive:!0,capture:!0}),n(v,"submit",i=>{t.emit(X("forms","info",{hook:"submit",target:rs(i)}))},{passive:!0,capture:!0})}if(e.scroll){let s=Ok(()=>{t.emit(X("scroll","trace",{hook:"scroll",x:v.scrollX,y:v.scrollY}))},r.scroll);n(v,"scroll",s,{passive:!0,capture:!0})}if(e.viewport){let s=Vs(()=>{t.emit(X("viewport","info",{hook:"resize",w:v.innerWidth,h:v.innerHeight,dpr:v.devicePixelRatio||1}))},r.resize);n(v,"resize",s,{passive:!0}),n(v,"orientationchange",()=>{t.emit(X("viewport","info",{hook:"orientationchange",orientation:typeof screen<"u"&&screen.orientation?screen.orientation.type:null}))},{passive:!0}),n(v.document,"visibilitychange",()=>{t.emit(X("viewport","info",{hook:"visibilitychange",hidden:v.document.hidden}))},{passive:!0}),t.emit(X("viewport","info",{hook:"initial",w:v.innerWidth,h:v.innerHeight,dpr:v.devicePixelRatio||1}))}if(e.console)for(let s of["log","warn","error","debug"]){let i=console[s];console[s]=function(...a){try{t.emit(X("console",s==="error"?"error":s==="warn"?"warn":"debug",{hook:`console.${s}`,args:a.map(Pk)}))}catch{}return i.apply(console,a)},o.push(()=>{console[s]=i})}if(e.performance&&typeof PerformanceObserver<"u")try{let s=new PerformanceObserver(a=>{for(let c of a.getEntries())t.emit(X("performance","info",{hook:c.entryType,name:c.name,startTime:c.startTime,duration:c.duration,value:c.value!=null?c.value:null}))}),i=["largest-contentful-paint","layout-shift","longtask","paint","first-input","event"];for(let a of i)try{s.observe({type:a,buffered:!0})}catch{}o.push(()=>s.disconnect())}catch{}},Rk=t=>({shift:!!t.shiftKey,ctrl:!!t.ctrlKey,alt:!!t.altKey,meta:!!t.metaKey}),ZO=t=>{let e={name:t.name||"Error",message:typeof t.message=="string"?t.message:String(t),stack:typeof t.stack=="string"?t.stack:null};return t.cause!==void 0&&(e.cause=Pk(t.cause)),e},Pk=t=>{if(t==null)return t;if(t instanceof Error)return ZO(t);if(typeof t=="object")try{return JSON.parse(JSON.stringify(t))}catch{return String(t)}return t};R();var QO=typeof v<"u"&&typeof v.document<"u",Ik=(t,e)=>{let r=t?.analyze;if(!r||!r.shouldCapture("network"))return;let o=e.phase==="error"?"error":"info";r.emit(X("network",o,{hook:`fetch.${e.phase}`,source:"symbo-fetch",...e}))},Qa=t=>{if(QO&&t.config.capture.network&&!t.__networkListeners){if(t.__networkListeners=!0,t.__teardown.push(()=>{t.__networkListeners=!1}),typeof v.fetch=="function"){let e=v.fetch.bind(v),r=function(o,n){if(n?.headers?.["X-Analyze-Beacon"]||!t.shouldCapture("network"))return e(o,n);let s=typeof o=="string"?o:o&&o.url||"",i=(n?.method||typeof o=="object"&&o?.method||"GET").toUpperCase(),a=typeof performance<"u"?performance.now():Date.now();return t.emit(X("network","info",{hook:"fetch.start",source:"window.fetch",url:s,method:i})),e(o,n).then(c=>{let l=(typeof performance<"u"?performance.now():Date.now())-a;return t.emit(X("network",c.ok?"info":"warn",{hook:"fetch.success",source:"window.fetch",url:s,method:i,status:c.status,ok:c.ok,durationMs:l})),c}).catch(c=>{let l=(typeof performance<"u"?performance.now():Date.now())-a;throw t.emit(X("network","error",{hook:"fetch.error",source:"window.fetch",url:s,method:i,error:c,durationMs:l})),c})};v.fetch=r,t.__teardown.push(()=>{v.fetch=e})}if(typeof v.XMLHttpRequest=="function"){let e=v.XMLHttpRequest,r=e.prototype.open,o=e.prototype.send;e.prototype.open=function(n,s){return this.__analyze={method:String(n).toUpperCase(),url:String(s)},r.apply(this,arguments)},e.prototype.send=function(n){let s=this.__analyze;if(!s||!t.shouldCapture("network"))return o.apply(this,arguments);let i=typeof performance<"u"?performance.now():Date.now();t.emit(X("network","info",{hook:"xhr.start",source:"xhr",url:s.url,method:s.method}));let a=()=>{let l=(typeof performance<"u"?performance.now():Date.now())-i,f=this.status>=200&&this.status<400;t.emit(X("network",f?"info":"warn",{hook:"xhr.success",source:"xhr",url:s.url,method:s.method,status:this.status,ok:f,durationMs:l}))},c=()=>{let l=(typeof performance<"u"?performance.now():Date.now())-i;t.emit(X("network","error",{hook:"xhr.error",source:"xhr",url:s.url,method:s.method,status:this.status,durationMs:l}))};return this.addEventListener("loadend",a),this.addEventListener("error",c),o.apply(this,arguments)},t.__teardown.push(()=>{e.prototype.open=r,e.prototype.send=o})}}};var tR={errors:!0,warnings:!0,pointer:!1,keyboard:!1,forms:!1,scroll:!1,viewport:!1,network:!1,performance:!1,navigation:!1,console:!1,lifecycle:!1,state:!1,updates:!1,replay:!1,telemetry:!1},eR={errors:!0,warnings:!0,pointer:!0,keyboard:!0,forms:!0,scroll:!0,viewport:!0,navigation:!0,state:!0},rR={errors:!0,warnings:!0,pointer:!0,navigation:!0,performance:!0,viewport:!0},oR={errors:!0,warnings:!0,console:!0,network:!1,navigation:!0,performance:!0,viewport:!0,lifecycle:!1,state:!1,updates:!1},nR=t=>{let e={...tR,...t};return e.replay&&Object.assign(e,eR),e.telemetry&&Object.assign(e,rR),e.remote&&Object.assign(e,oR),Object.assign(e,t),e},sR=64,iR=()=>{if(typeof v>"u"||!v.location)return null;try{let e=new URLSearchParams(v.location.search).get("analyze");return e||null}catch{return null}},iu=(t={})=>{let e=t===!0?{}:{...t};e.capture=nR(e.capture||{});let r=iR();(r==="debug"||e.debug)&&(e.level="debug",e.debug=!0,e.capture={...e.capture,lifecycle:!0,state:!0,updates:!0,console:!0,network:!0}),r==="off"&&(e.enabled=!1),e.level=Za(e.level||"warn"),e.cache={max:500,dedupeWindowMs:1e3,...e.cache||{}},e.throttle={pointermove:80,mousemove:80,scroll:100,resize:200,...e.throttle||{}},e.maskFormValues==null&&(e.maskFormValues=!0),e.maskStrategy||(e.maskStrategy="mask"),Array.isArray(e.sinks)||(e.sinks=["console","memory"]),Array.isArray(e.transformers)||(e.transformers=["enrich","summarize"]);let o={config:e,context:null,__ready:!1,__paused:!1,__preBuffer:[],__teardown:[],__pipeline:null,__sinks:null,__memory:null,__initialSnapshot:null},n=()=>{o.__pipeline||(o.__pipeline=tu(o),o.__sinks=nu(o))};return o.shouldCapture=s=>o.config.enabled===!1?!1:!!o.config.capture[s],o.emit=s=>{if(s&&o.config.enabled!==!1&&!o.__paused&&Jf(s.level,o.config.level)){if(!o.__ready){if(s.level!=="error"&&!o.config.captureDuringHydration)return;o.__preBuffer.length<sR&&o.__preBuffer.push(s);return}n(),Dk(o,s)}},o.activate=s=>{if(o.context==null&&(o.context=s||null),o.__ready)return;o.__ready=!0;let i=o.__preBuffer;if(o.__preBuffer=[],i.length){n();for(let a of i)Dk(o,a)}try{su(o)}catch(a){console.error("[analyze] browser attach error:",a)}try{Qa(o)}catch(a){console.error("[analyze] network attach error:",a)}for(let a of o.__onActivate||[])try{a(o)}catch(c){console.error("[analyze] onActivate error:",c)}},o.pause=()=>{o.__paused=!0},o.resume=()=>{o.__paused=!1},o.setLevel=s=>{o.config.level=Za(s)},o.setCapture=(s,i)=>{if(o.config.capture[s]=!!i,s==="network"&&i&&o.__ready)try{Qa(o)}catch(a){console.error("[analyze] network attach error:",a)}},o.query=s=>o.__memory?o.__memory.query(s):[],o.snapshot=()=>o.__memory?o.__memory.snapshot():[],o.emitNetwork=s=>{if(!o.shouldCapture("network"))return;let i=s?.phase,a=i==="error"?"error":i==="success"&&s.ok===!1?"warn":"info";o.emit({id:`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,6)}`,ts:Date.now(),type:"network",level:a,hook:`fetch.${i||"unknown"}`,...s})},o.flush=()=>{if(o.__sinks)for(let s of o.__sinks)typeof s.flush=="function"&&s.flush()},o.startNewSession=s=>{let i=s||(typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,10)}`),a=Array.isArray(o.config.sinks)?o.config.sinks:[];for(let c of a)c&&typeof c=="object"&&c.type==="remote"&&(c.sessionId=i);if(o.__sinks)for(let c of o.__sinks)typeof c.startNewSession=="function"&&c.startNewSession(i);return i},o.replay=()=>({initialSnapshot:o.__initialSnapshot,events:o.snapshot()}),o.destroy=()=>{for(let s of o.__teardown)try{s()}catch{}o.__teardown=[],o.__ready=!1,o.__paused=!0},o.__onActivate=[],o.onActivate=s=>{o.__onActivate.push(s)},o},Dk=(t,e)=>{let r=t.__pipeline(e);if(r==null)return;let o=Array.isArray(r)?r:[r];for(let n of o){if(typeof t.config.onEvent=="function")try{t.config.onEvent(n)}catch{}for(let s of t.__sinks)try{s(n)}catch(i){console.error("[analyze] sink error:",i)}}};var eb={};P(eb,{Inspect:()=>au,inspectPlugin:()=>tb});R();function $k(t){return w(t)?t:T(t)?t.find(e=>w(e)):""}function Qy(t){if(!t)return;let e=t.__ref.__componentKey,r=t.extends&&$k(t.extends),o=t.parent&&t.parent.childExtends&&$k(t.parent.childExtends);return(e||r||o||"").split("_")[0].split(".")[0].split("+")[0]}function cu(t){if(!t||!t.__ref)return;let{components:e,pages:r,editor:o}=t.context,n=Qy(t);return o&&o.onInitInspect&&!o.onInitInspect(n,t,t.state)?cu(t.parent):n&&(e[n]||r[n])?t:cu(t.parent)}var aR=(t,e,r)=>{let o=r.window||window;o.onkeydown=n=>{n.altKey&&n.shiftKey&&t.state.update({debugging:!0,preventSelect:!0},{preventUpdate:!0,preventContentUpdate:!0,preventRecursive:!0})},o.onkeyup=n=>{t.state.preventSelect&&(!n.altKey||!n.shiftKey)&&(t.state.replace({debugging:!1,preventSelect:!1},{preventUpdate:!0,preventContentUpdate:!0,preventRecursive:!0}),t.Inspector.state.update({area:!1}))}},au={".preventSelect":{userSelect:"none"},"!preventSelect":{userSelect:"auto"},onInspect:aR,onMousemove:(t,e,r)=>{let o=t.target.ref,n=cu(o),s=e.Inspector.state;if(!n||!r.debugging||!n.__ref)return s.update({area:!1});let i=Qy(n),a=l=>{s.update({area:l,focusKey:i})},c=()=>{if(t.altKey&&t.shiftKey){let{x:l,y:f,width:u,height:d}=n.node.getBoundingClientRect(),h={x:l,y:f,width:u,height:d};if(!s.area)return a(h);s.area.x!==h.x&&a(h)}else s.area&&s.update({area:!1})};window.requestAnimationFrame(()=>{c(),window.requestAnimationFrame(c)})},onMousedown:(t,e,r)=>{if(!r.debugging)return;let o=t.target.ref,n=cu(o);if(!n)return;let s=Qy(n);if(!s)return;let i=o.context.editor;if(i&&i.onInspect)return i.onInspect(s,o,o.state,{allowRouterWhileInspect:!0});let a=JSON.stringify({componentKey:`${s}`});return o.context.socket?.emit&&o.context.socket.emit("route",a),t.preventDefault(),t.stopPropagation(),!1},Inspector:{state:{},transition:"all, defaultBezier, X",position:"fixed",hide:(t,e)=>!(e.area&&e.parent.debugging),style:{boxShadow:"0 0 10px #3686F733, 0 0 0 3px #3686F766, 0 0 100vmax 100vmax #000A",zIndex:"9999999",borderRadius:"10px",pointerEvents:"none"},Span:{position:"absolute",margin:"A2 0",fontSize:"Z",color:"text",zIndex:"99999999",transition:"all, defaultBezier, X",textDecoration:"underline",fontWeight:"500",top:"100%",style:{boxShadow:"0 25px 10px 35px black",textShadow:"0 0 10px black"},text:"{{ focusKey }}"},onInit:({context:t})=>{let{components:e}=t;if(S(e)){let{Content:r,...o}=e;for(let n in o)Kn[n]||(o[n].__ref||(o[n].__ref={}),o[n].__ref.__componentKey||(o[n].__ref.__componentKey=n))}},onBeforeUpdate:(t,e,r)=>{let{area:o}=r,n=r.area&&r.parent.debugging,s;if(!n)s="display: none !important";else if(o){let{x:i,y:a,width:c,height:l}=o;s=`
|
|
90
90
|
display: block !important;
|
|
91
91
|
top: ${a-6}px;
|
|
92
92
|
left: ${i-6}px;
|