PageSourceSearch

https://hivetrace.ai/_app/immutable/chunks/BQ9G7sPW.js

js hivetrace.ai collected 2026-10-05 14:01:29 UTC 10,438 bytes, 9 lines download raw bytes

1import{D as e,F as t,K as n,N as r,P as i,Q as a,S as o,U as s,V as c,X as l,Y as u,Z as d,a as f,at as p,bt as m,ct as h,it as g,j as _,lt as v,m as y,nt as b,ot as x,r as ee,rt as S,yt as C}from"./C-YqTXJR.js";import"./xihTtKlq.js";import{t as w}from"./C1RU5mPb.js";var T=typeof window<`u`?window:void 0;typeof window<`u`&&window.document,typeof window<`u`&&window.navigator,typeof window<`u`&&window.location;function E(e){let t=e.activeElement;for(;t?.shadowRoot;){let e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}new class{#e;#t;constructor(e={}){let{window:t=T,document:n=t?.document}=e;t!==void 0&&(this.#e=n,this.#t=v(e=>{let n=c(t,`focusin`,e),r=c(t,`focusout`,e);return()=>{n(),r()}}))}get current(){return this.#t?.(),this.#e?E(this.#e):null}};function D(e,t){switch(e){case`post`:d(t);break;case`pre`:a(t)}}function O(e,t,r,i={}){let{lazy:a=!1}=i,o=!a,s=Array.isArray(e)?[]:void 0;D(t,()=>{let t=Array.isArray(e)?e.map(e=>e()):e();if(!o){o=!0,s=t;return}let i=n(()=>r(t,s));return s=t,i})}function k(e,t,n){O(e,`post`,t,n)}function te(e,t,n){O(e,`pre`,t,n)}k.pre=te;function ne(e,t){switch(e){case`local`:return t.localStorage;case`session`:return t.sessionStorage}}var A=class{#e;#t;#n;#r;#i;#a=x(0);constructor(e,t,n={}){let{storage:r=`local`,serializer:i={serialize:JSON.stringify,deserialize:JSON.parse},syncTabs:a=!0,window:o=T}=n;if(this.#e=t,this.#t=e,this.#n=i,o===void 0)return;let s=ne(r,o);this.#r=s;let l=s.getItem(e);l===null?this.#c(t):this.#e=this.#s(l),a&&r===`local`&&(this.#i=v(()=>c(o,`storage`,this.#o)))}get current(){this.#i?.(),s(this.#a);let e=this.#s(this.#r?.getItem(this.#t))??this.#e,t=new WeakMap,n=r=>{if(r===null||r?.constructor.name===`Date`||typeof r!=`object`)return r;let i=t.get(r);return i||(i=new Proxy(r,{get:(e,t)=>(s(this.#a),n(Reflect.get(e,t))),set:(t,n,r)=>(p(this.#a,s(this.#a)+1),Reflect.set(t,n,r),this.#c(e),!0)}),t.set(r,i)),i};return n(e)}set current(e){this.#c(e),p(this.#a,s(this.#a)+1)}#o=e=>{e.key===this.#t&&e.newValue!==null&&(this.#e=this.#s(e.newValue),p(this.#a,s(this.#a)+1))};#s(e){try{return this.#n.deserialize(e)}catch(t){console.error(`Error when parsing "${e}" from persisted store "${this.#t}"`,t);return}}#c(e){try{e!=null&&this.#r?.setItem(this.#t,this.#n.serialize(e))}catch(e){console.error(`Error when writing value from persisted store "${this.#t}" to ${this.#r}`,e)}}};function j(e){return e.filter(e=>e.length>0)}var M={getItem:e=>null,setItem:(e,t)=>{}},N=typeof document<`u`;function re(e){return typeof e==`function`}function ie(e){return typeof e==`object`&&!!e}var P=Symbol(`box`),F=Symbol(`is-writable`);function ae(e){return ie(e)&&P in e}function oe(e){return I.isBox(e)&&F in e}function I(e){let t=x(g(e));return{[P]:!0,[F]:!0,get current(){return s(t)},set current(e){p(t,e,!0)}}}function se(e,t){let n=h(e);return t?{[P]:!0,[F]:!0,get current(){return s(n)},set current(e){t(e)}}:{[P]:!0,get current(){return e()}}}function ce(e){return I.isBox(e)?e:re(e)?I.with(e):I(e)}function le(e){return Object.entries(e).reduce((e,[t,n])=>I.isBox(n)?(I.isWritableBox(n)?Object.defineProperty(e,t,{get(){return n.current},set(e){n.current=e}}):Object.defineProperty(e,t,{get(){return n.current}}),e):Object.assign(e,{[t]:n}),{})}function ue(e){return I.isWritableBox(e)?{[P]:!0,get current(){return e.current}}:e}I.from=ce,I.with=se,I.flatten=le,I.readonly=ue,I.isBox=ae,I.isWritableBox=oe;function de(e,t){let n=RegExp(e,`g`);return e=>{if(typeof e!=`string`)throw TypeError(`expected an argument of type string, but got ${typeof e}`);return e.match(n)?e.replace(n,t):e}}var fe=de(/[A-Z]/,e=>`-${e.toLowerCase()}`);function pe(e){if(!e||typeof e!=`object`||Array.isArray(e))throw TypeError(`expected an argument of type object, but got ${typeof e}`);return Object.keys(e).map(t=>`${fe(t)}: ${e[t]};`).join(`
2`)}function me(e={}){return pe(e).replace(`
3`,` `)}me({position:`absolute`,width:`1px`,height:`1px`,padding:`0`,margin:`-1px`,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,borderWidth:`0`,transform:`translateX(-100%)`});var he=typeof window<`u`?window:void 0;typeof window<`u`&&window.document,typeof window<`u`&&window.navigator,typeof window<`u`&&window.location;function ge(e){let t=e.activeElement;for(;t?.shadowRoot;){let e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}new class{#e;#t;constructor(e={}){let{window:t=he,document:n=t?.document}=e;t!==void 0&&(this.#e=n,this.#t=v(e=>{let n=c(t,`focusin`,e),r=c(t,`focusout`,e);return()=>{n(),r()}}))}get current(){return this.#t?.(),this.#e?ge(this.#e):null}};var L=I(`mode-watcher-mode`),R=I(`mode-watcher-theme`),_e=[`dark`,`light`,`system`];function z(e){return typeof e==`string`&&_e.includes(e)}var ve=class{#e=`system`;#t=N?localStorage:M;#n=this.#t.getItem(L.current);#r=z(this.#n)?this.#n:this.#e;#i=x(g(this.#a()));#a(e=this.#r){return new A(L.current,e,{serializer:{serialize:e=>e,deserialize:e=>z(e)?e:this.#e}})}constructor(){u(()=>k.pre(()=>L.current,(e,t)=>{let n=s(this.#i).current;p(this.#i,this.#a(n),!0),t&&localStorage.removeItem(t)}))}get current(){return s(this.#i).current}set current(e){s(this.#i).current=e}},ye=class{#e=void 0;#t=!0;#n=x(g(this.#e));#r=typeof window<`u`&&typeof window.matchMedia==`function`?new w(`prefers-color-scheme: light`):{current:!1};query(){N&&p(this.#n,this.#r.current?`light`:`dark`,!0)}tracking(e){this.#t=e}constructor(){u(()=>{a(()=>{this.#t&&this.query()})}),this.query=this.query.bind(this),this.tracking=this.tracking.bind(this)}get current(){return s(this.#n)}},B=new ve,V=new ye,H=new class{#e=N?localStorage:M;#t=this.#e.getItem(R.current);#n=this.#t===null||this.#t===void 0?``:this.#t;#r=x(g(this.#i()));#i(e=this.#n){return new A(R.current,e,{serializer:{serialize:e=>typeof e==`string`?e:``,deserialize:e=>e}})}constructor(){u(()=>k.pre(()=>R.current,(e,t)=>{let n=s(this.#r).current;p(this.#r,this.#i(n),!0),t&&localStorage.removeItem(t)}))}get current(){return s(this.#r).current}set current(e){s(this.#r).current=e}},U,W,G=!1,K=null;function be(){return K||(K=document.createElement(`style`),K.appendChild(document.createTextNode(`* {
4		-webkit-transition: none !important;
5		-moz-transition: none !important;
6		-o-transition: none !important;
7		-ms-transition: none !important;
8		transition: none !important;
9	}`)),K)}function q(e,t=!1){if(typeof document>`u`)return;if(!G){G=!0,e();return}if(typeof window<`u`&&window.__vitest_worker__){e();return}clearTimeout(U),clearTimeout(W);let n=be(),r=()=>document.head.appendChild(n),i=()=>{n.parentNode&&document.head.removeChild(n)};function a(){e(),window.requestAnimationFrame(i)}if(window.requestAnimationFrame!==void 0){r(),t?a():window.requestAnimationFrame(()=>{a()});return}r(),U=window.setTimeout(()=>{e(),W=window.setTimeout(i,16)},16)}var J=I(void 0),Y=I(!0),X=I(!1),Z=I([]),Q=I([]);function xe(){let e=h(()=>
9{if(!N)return;let e=B.current===`system`?V.current:B.current,t=j(Z.current),n=j(Q.current);function r(){let r=document.documentElement,i=document.querySelector(`meta[name="theme-color"]`);e===`light`?(t.length&&r.classList.remove(...t),n.length&&r.classList.add(...n),r.style.colorScheme=`light`,i&&J.current&&i.setAttribute(`content`,J.current.light)):(n.length&&r.classList.remove(...n),t.length&&r.classList.add(...t),r.style.colorScheme=`dark`,i&&J.current&&i.setAttribute(`content`,J.current.dark))}return Y.current?q(r,X.current):r(),e});return{get current(){return s(e)}}}function Se(){let e=h(()=>{if(H.current,!N)return;function e(){document.documentElement.setAttribute(`data-theme`,H.current)}return Y.current?q(e,n(()=>X.current)):e(),H.current});return{get current(){return s(e)}}}var $=xe(),Ce=Se();function we(){B.current=$.current===`dark`?`light`:`dark`}function Te(e){B.current=e}function Ee(e){H.current=e}function De(e){return e}function Oe({defaultMode:e=`system`,themeColors:t,darkClassNames:n=[`dark`],lightClassNames:r=[],defaultTheme:i=``,modeStorageKey:a=`mode-watcher-mode`,themeStorageKey:o=`mode-watcher-theme`}){let s=document.documentElement,c=localStorage.getItem(a)??e,l=localStorage.getItem(o)??i,u=c===`light`||c===`system`&&window.matchMedia(`(prefers-color-scheme: light)`).matches;if(u?(n.length&&s.classList.remove(...n.filter(Boolean)),r.length&&s.classList.add(...r.filter(Boolean))):(r.length&&s.classList.remove(...r.filter(Boolean)),n.length&&s.classList.add(...n.filter(Boolean))),s.style.colorScheme=u?`light`:`dark`,t){let e=document.querySelector(`meta[name="theme-color"]`);e&&e.setAttribute(`content`,c===`light`?t.light:t.dark)}l&&(s.setAttribute(`data-theme`,l),localStorage.setItem(o,l)),localStorage.setItem(a,c)}var ke=t(`<meta name="theme-color"/>`);function Ae(e,t){m(t,!0);var n=i(),a=b(n),o=e=>{var n=ke();l(()=>y(n,`content`,t.themeColors.dark)),r(e,n)};_(a,e=>{t.themeColors&&e(o)}),r(e,n),C()}var je=t(`<meta name="theme-color"/>`),Me=t(`<!> <!>`,1);function Ne(t,n){m(n,!0);let i=f(n,`trueNonce`,3,``);o(`16i307t`,t=>{var a=Me(),o=b(a),s=e=>{var t=je();l(()=>y(t,`content`,n.themeColors.dark)),r(e,t)};_(o,e=>{n.themeColors&&e(s)});var c=S(o,2);e(c,()=>`<script${i()?` nonce=${i()}`:``}>(`+Oe.toString()+`)(`+JSON.stringify(n.initConfig)+`);<\/script>`),r(t,a)}),C()}function Pe(e,t){m(t,!0);let n=f(t,`track`,3,!0),o=f(t,`defaultMode`,3,`system`),c=f(t,`disableTransitions`,3,!0),l=f(t,`darkClassNames`,19,()=>[`dark`]),u=f(t,`lightClassNames`,19,()=>[]),d=f(t,`defaultTheme`,3,``),p=f(t,`nonce`,3,``),g=f(t,`themeStorageKey`,3,`mode-watcher-theme`),v=f(t,`modeStorageKey`,3,`mode-watcher-mode`),y=f(t,`disableHeadScriptInjection`,3,!1),x=f(t,`synchronousModeChanges`,3,!1);L.current=v(),R.current=g(),Z.current=l(),Q.current=u(),Y.current=c(),J.current=t.themeColors,X.current=x(),a(()=>{X.current=x()}),a(()=>{Y.current=c()}),a(()=>{J.current=t.themeColors}),a(()=>{Z.current=l()}),a(()=>{Q.current=u()}),a(()=>{L.current=v()}),a(()=>{R.current=g()}),a(()=>{$.current,L.current,R.current,Ce.current}),ee(()=>{V.tracking(n()),V.query();let e=localStorage.getItem(L.current);Te(z(e)?e:o()),Ee(localStorage.getItem(R.current)||d())});let S=De({defaultMode:o(),themeColors:t.themeColors,darkClassNames:l(),lightClassNames:u(),defaultTheme:d(),modeStorageKey:v(),themeStorageKey:g()}),w=h(()=>typeof window>`u`?p():``);var T=i(),E=b(T),D=e=>{Ae(e,{get themeColors(){return J.current}})},O=e=>{Ne(e,{get trueNonce(){return s(w)},get initConfig(){return S},get themeColors(){return J.current}})};_(E,e=>{y()?e(D):e(O,-1)}),r(e,T),C()}export{we as n,Pe as t};

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